
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int __regparm3 moveToChild(BtCursor *pCur,u32 newPgno)

{
  uint uVar1;
  u16 uVar2;
  BtShared *pBVar3;
  void *pvVar4;
  void *pvVar5;
  char cVar6;
  undefined1 uVar7;
  int iVar8;
  int iVar9;
  char *pcVar10;
  int in_GS_OFFSET;
  MemPage *local_34;
  DbPage *pDbPage;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x5962b;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  cVar6 = pCur->iPage;
  if ('\x12' < cVar6) {
    pcVar10 = sqlite3_sourceid();
    sqlite3_log(0xb,"%s at line %d of [%.10s]","database corruption",0x10fd1,pcVar10 + 0x14);
    iVar9 = 0xb;
    goto LAB_00059704;
  }
  uVar2 = pCur->ix;
  (pCur->info).nSize = 0;
  pBVar3 = pCur->pBt;
  pCur->curFlags = pCur->curFlags & 0xf9;
  pCur->aiIdx[cVar6] = uVar2;
  pCur->apPage[cVar6] = pCur->pPage;
  pCur->iPage = cVar6 + '\x01';
  uVar1 = pBVar3->nPage;
  pCur->ix = 0;
  if (uVar1 < newPgno) {
    iVar9 = sqlite3CorruptError(0x10464);
  }
  else {
    iVar8 = (*pBVar3->pPager->xGet)(pBVar3->pPager,newPgno,&pDbPage,(int)pCur->curPagerFlags);
    iVar9 = iVar8;
    if (iVar8 == 0) {
      local_34 = (MemPage *)pDbPage->pExtra;
      pCur->pPage = local_34;
      if (local_34->isInit == '\0') {
        pvVar4 = pDbPage->pExtra;
        if (newPgno != *(u32 *)((int)pvVar4 + 4)) {
          pvVar5 = pDbPage->pData;
          *(DbPage **)((int)pvVar4 + 0x48) = pDbPage;
          *(BtShared **)((int)pvVar4 + 0x34) = pBVar3;
          *(u32 *)((int)pvVar4 + 4) = newPgno;
          *(void **)((int)pvVar4 + 0x38) = pvVar5;
          uVar7 = 0;
          if (newPgno == 1) {
            uVar7 = 100;
          }
          *(undefined1 *)((int)pvVar4 + 9) = uVar7;
        }
        iVar9 = btreeInitPage(local_34);
        if (iVar9 == 0) {
          local_34 = pCur->pPage;
          goto LAB_000596be;
        }
      }
      else {
LAB_000596be:
        if ((local_34->nCell != 0) && (iVar9 = iVar8, local_34->intKey == pCur->curIntKey))
        goto LAB_00059704;
        iVar9 = sqlite3CorruptError(0x10479);
      }
      if (pCur->pPage != (MemPage *)0x0) {
        sqlite3PagerUnrefNotNull(pCur->pPage->pDbPage);
      }
    }
  }
  cVar6 = pCur->iPage + -1;
  pCur->iPage = cVar6;
  pCur->pPage = pCur->apPage[cVar6];
LAB_00059704:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return iVar9;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int __regparm3 FUN_00059620(int param_1,uint param_2)

{
  uint uVar1;
  int *piVar2;
  undefined4 uVar3;
  char cVar4;
  undefined1 uVar5;
  int iVar6;
  int iVar7;
  int in_GS_OFFSET;
  char *local_34;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x5962b;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  cVar4 = *(char *)(param_1 + 0x3c);
  if ('\x12' < cVar4) {
    iVar7 = sqlite3_sourceid();
    sqlite3_log(0xb,"%s at line %d of [%.10s]","database corruption",0x10fd1,iVar7 + 0x14);
    iVar7 = 0xb;
    goto LAB_00059704;
  }
  *(undefined2 *)(param_1 + 0x2e) = 0;
  piVar2 = *(int **)(param_1 + 0x14);
  *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;
  *(undefined2 *)(param_1 + 0x40 + cVar4 * 2) = *(undefined2 *)(param_1 + 0x3e);
  *(undefined4 *)(param_1 + 0x70 + cVar4 * 4) = *(undefined4 *)(param_1 + 0x6c);
  *(char *)(param_1 + 0x3c) = cVar4 + '\x01';
  uVar1 = piVar2[0xc];
  *(undefined2 *)(param_1 + 0x3e) = 0;
  if (uVar1 < param_2) {
    iVar7 = FUN_00037780();
  }
  else {
    iVar6 = (**(code **)(*piVar2 + 200))(*piVar2,param_2,&local_24,*(undefined1 *)(param_1 + 2));
    iVar7 = iVar6;
    if (iVar6 == 0) {
      local_34 = *(char **)(local_24 + 8);
      *(char **)(param_1 + 0x6c) = local_34;
      if (*local_34 == '\0') {
        iVar7 = *(int *)(local_24 + 8);
        if (param_2 != *(uint *)(iVar7 + 4)) {
          uVar3 = *(undefined4 *)(local_24 + 4);
          *(int *)(iVar7 + 0x48) = local_24;
          *(int **)(iVar7 + 0x34) = piVar2;
          *(uint *)(iVar7 + 4) = param_2;
          *(undefined4 *)(iVar7 + 0x38) = uVar3;
          uVar5 = 0;
          if (param_2 == 1) {
            uVar5 = 100;
          }
          *(undefined1 *)(iVar7 + 9) = uVar5;
        }
        iVar7 = FUN_00058850();
        if (iVar7 == 0) {
          local_34 = *(char **)(param_1 + 0x6c);
          goto LAB_000596be;
        }
      }
      else {
LAB_000596be:
        if ((*(short *)(local_34 + 0x18) != 0) &&
           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;
        iVar7 = FUN_00037780();
      }
      if (*(int *)(param_1 + 0x6c) != 0) {
        FUN_0001f280();
      }
    }
  }
  cVar4 = *(char *)(param_1 + 0x3c) + -1;
  *(char *)(param_1 + 0x3c) = cVar4;
  *(undefined4 *)(param_1 + 0x6c) = *(undefined4 *)(param_1 + 0x70 + cVar4 * 4);
LAB_00059704:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_000d1450();
  }
  return iVar7;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,EAX
CALL 0x0001ddf0
ADD EBX,0xac9d5
SUB ESP,0x2c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x1c],EAX
XOR EAX,EAX
MOVZX EAX,byte ptr [ESI + 0x3c]
CMP AL,0x12
JG 0x00059720
MOVZX ECX,word ptr [ESI + 0x3e]
MOV EDI,EDX
XOR EDX,EDX
MOV word ptr [ESI + 0x2e],DX
MOVSX EDX,AL
MOV EBP,dword ptr [ESI + 0x14]
AND byte ptr [ESI + 0x1],0xf9
ADD EAX,0x1
MOV word ptr [ESI + EDX*0x2 + 0x40],CX
MOV ECX,dword ptr [ESI + 0x6c]
MOV dword ptr [ESI + EDX*0x4 + 0x70],ECX
XOR ECX,ECX
MOV byte ptr [ESI + 0x3c],AL
CMP EDI,dword ptr [EBP + 0x30]
MOV word ptr [ESI + 0x3e],CX
MOVZX EDX,byte ptr [ESI + 0x2]
JA 0x000597a0
MOV EAX,dword ptr [EBP]
PUSH EDX
LEA EDX,[ESP + 0x1c]
PUSH EDX
PUSH EDI
PUSH EAX
CALL dword ptr [EAX + 0xc8]
ADD ESP,0x10
TEST EAX,EAX
MOV EBX,EAX
JNZ 0x000596f0
MOV EDX,dword ptr [ESP + 0x18]
MOV EAX,dword ptr [EDX + 0x8]
MOV dword ptr [ESP + 0x8],EAX
MOV dword ptr [ESI + 0x6c],EAX
MOVZX EAX,byte ptr [EAX]
TEST AL,AL
MOV byte ptr [ESP + 0xf],AL
JZ 0x00059750
MOV EAX,dword ptr [ESP + 0x8]
CMP word ptr [EAX + 0x18],0x0
JZ 0x000596d2
MOVZX ECX,byte ptr [ESI + 0x3d]
CMP byte ptr [EAX + 0x2],CL
JZ 0x00059704
MOV EAX,0x10479
CALL 0x00037780
MOV EBX,EAX
MOV EAX,dword ptr [ESI + 0x6c]
TEST EAX,EAX
JZ 0x000596f0
MOV EAX,dword ptr [EAX + 0x48]
CALL 0x0001f280
LEA ESI,[ESI]
MOVZX EAX,byte ptr [ESI + 0x3c]
SUB EAX,0x1
MOV byte ptr [ESI + 0x3c],AL
MOVSX EAX,AL
MOV EAX,dword ptr [ESI + EAX*0x4 + 0x70]
MOV dword ptr [ESI + 0x6c],EAX
MOV EDI,dword ptr [ESP + 0x1c]
XOR EDI,dword ptr GS:[0x14]
MOV EAX,EBX
JNZ 0x000597b1
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x00016620
SUB ESP,0xc
ADD EAX,0x14
PUSH EAX
LEA EAX,[EBX + 0xfffcb668]
PUSH 0x10fd1
PUSH EAX
LEA EAX,[EBX + 0xfffcb64f]
PUSH EAX
PUSH 0xb
CALL 0x00016ab0
ADD ESP,0x20
MOV EBX,0xb
JMP 0x00059704
MOV ECX,dword ptr [EDX + 0x8]
CMP EDI,dword ptr [ECX + 0x4]
JZ 0x0005977a
MOV EAX,dword ptr [EDX + 0x4]
CMP EDI,0x1
MOV dword ptr [ECX + 0x48],EDX
MOV EDX,0x64
MOV dword ptr [ECX + 0x34],EBP
MOV dword ptr [ECX + 0x4],EDI
MOV dword ptr [ECX + 0x38],EAX
MOVZX EAX,byte ptr [ESP + 0xf]
CMOVZ EAX,EDX
MOV byte ptr [ECX + 0x9],AL
MOV EAX,dword ptr [ESP + 0x8]
CALL 0x00058850
TEST EAX,EAX
JNZ 0x00059798
MOV EAX,dword ptr [ESI + 0x6c]
MOV dword ptr [ESP + 0x8],EAX
JMP 0x000596be
MOV EBX,EAX
JMP 0x000596de
MOV EAX,0x10464
CALL 0x00037780
MOV EBX,EAX
JMP 0x000596f0
CALL 0x000d1450
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 FUN_00059620(int param_1,uint param_2)\n\n{\n  uint uVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  char cVar4;\n  undefined1 uVar5;\n  int iVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  char *local_34;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5962b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  cVar4 = *(char *)(param_1 + 0x3c);\n  if ('\x12' < cVar4) {\n    iVar7 = sqlite3_sourceid();\n    sqlite3_log(0xb,"%s at line %d of [%.10s]","database corruption",0x10fd1,iVar7 + 0x14);\n    iVar7 = 0xb;\n    goto LAB_00059704;\n  }\n  *(undefined2 *)(param_1 + 0x2e) = 0;\n  piVar2 = *(int **)(param_1 + 0x14);\n  *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;\n  *(undefined2 *)(param_1 + 0x40 + cVar4 * 2) = *(undefined2 *)(param_1 + 0x3e);\n  *(undefined4 *)(param_1 + 0x70 + cVar4 * 4) = *(undefined4 *)(param_1 + 0x6c);\n  *(char *)(param_1 + 0x3c) = cVar4 + '\x01';\n  uVar1 = piVar2[0xc];\n  *(undefined2 *)(param_1 + 0x3e) = 0;\n  if (uVar1 < param_2) {\n    iVar7 = FUN_00037780();\n  }\n  else {\n    iVar6 = (**(code **)(*piVar2 + 200))(*piVar2,param_2,&local_24,*(undefined1 *)(param_1 + 2));\n    iVar7 = iVar6;\n    if (iVar6 == 0) {\n      local_34 = *(char **)(local_24 + 8);\n      *(char **)(param_1 + 0x6c) = local_34;\n      if (*local_34 == '\0') {\n        iVar7 = *(int *)(local_24 + 8);\n        if (param_2 != *(uint *)(iVar7 + 4)) {\n          uVar3 = *(undefined4 *)(local_24 + 4);\n          *(int *)(iVar7 + 0x48) = local_24;\n          *(int **)(iVar7 + 0x34) = piVar2;\n          *(uint *)(iVar7 + 4) = param_2;\n          *(undefined4 *)(iVar7 + 0x38) = uVar3;\n          uVar5 = 0;\n          if (param_2 == 1) {\n            uVar5 = 100;\n          }\n          *(undefined1 *)(iVar7 + 9) = uVar5;\n        }\n        iVar7 = FUN_00058850();\n        if (iVar7 == 0) {\n          local_34 = *(char **)(param_1 + 0x6c);\n          goto LAB_000596be;\n        }\n      }\n      else {\nLAB_000596be:\n        if ((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;\n        iVar7 = FUN_00037780();\n      }\n      if (*(int *)(param_1 + 0x6c) != 0) {\n        FUN_0001f280();\n      }\n    }\n  }\n  cVar4 = *(char *)(param_1 + 0x3c) + -1;\n  *(char *)(param_1 + 0x3c) = cVar4;\n  *(undefined4 *)(param_1 + 0x6c) = *(undefined4 *)(param_1 + 0x70 + cVar4 * 4);\nLAB_00059704:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000d1450();\n  }\n  return iVar7;\n}\n\n" comment (function_definition "int __regparm3 FUN_00059620(int param_1,uint param_2)\n\n{\n  uint uVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  char cVar4;\n  undefined1 uVar5;\n  int iVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  char *local_34;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5962b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  cVar4 = *(char *)(param_1 + 0x3c);\n  if ('\x12' < cVar4) {\n    iVar7 = sqlite3_sourceid();\n    sqlite3_log(0xb,"%s at line %d of [%.10s]","database corruption",0x10fd1,iVar7 + 0x14);\n    iVar7 = 0xb;\n    goto LAB_00059704;\n  }\n  *(undefined2 *)(param_1 + 0x2e) = 0;\n  piVar2 = *(int **)(param_1 + 0x14);\n  *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;\n  *(undefined2 *)(param_1 + 0x40 + cVar4 * 2) = *(undefined2 *)(param_1 + 0x3e);\n  *(undefined4 *)(param_1 + 0x70 + cVar4 * 4) = *(undefined4 *)(param_1 + 0x6c);\n  *(char *)(param_1 + 0x3c) = cVar4 + '\x01';\n  uVar1 = piVar2[0xc];\n  *(undefined2 *)(param_1 + 0x3e) = 0;\n  if (uVar1 < param_2) {\n    iVar7 = FUN_00037780();\n  }\n  else {\n    iVar6 = (**(code **)(*piVar2 + 200))(*piVar2,param_2,&local_24,*(undefined1 *)(param_1 + 2));\n    iVar7 = iVar6;\n    if (iVar6 == 0) {\n      local_34 = *(char **)(local_24 + 8);\n      *(char **)(param_1 + 0x6c) = local_34;\n      if (*local_34 == '\0') {\n        iVar7 = *(int *)(local_24 + 8);\n        if (param_2 != *(uint *)(iVar7 + 4)) {\n          uVar3 = *(undefined4 *)(local_24 + 4);\n          *(int *)(iVar7 + 0x48) = local_24;\n          *(int **)(iVar7 + 0x34) = piVar2;\n          *(uint *)(iVar7 + 4) = param_2;\n          *(undefined4 *)(iVar7 + 0x38) = uVar3;\n          uVar5 = 0;\n          if (param_2 == 1) {\n            uVar5 = 100;\n          }\n          *(undefined1 *)(iVar7 + 9) = uVar5;\n        }\n        iVar7 = FUN_00058850();\n        if (iVar7 == 0) {\n          local_34 = *(char **)(param_1 + 0x6c);\n          goto LAB_000596be;\n        }\n      }\n      else {\nLAB_000596be:\n        if ((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;\n        iVar7 = FUN_00037780();\n      }\n      if (*(int *)(param_1 + 0x6c) != 0) {\n        FUN_0001f280();\n      }\n    }\n  }\n  cVar4 = *(char *)(param_1 + 0x3c) + -1;\n  *(char *)(param_1 + 0x3c) = cVar4;\n  *(undefined4 *)(param_1 + 0x6c) = *(undefined4 *)(param_1 + 0x70 + cVar4 * 4);\nLAB_00059704:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000d1450();\n  }\n  return iVar7;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00059620(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  char cVar4;\n  undefined1 uVar5;\n  int iVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  char *local_34;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5962b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  cVar4 = *(char *)(param_1 + 0x3c);\n  if ('\x12' < cVar4) {\n    iVar7 = sqlite3_sourceid();\n    sqlite3_log(0xb,"%s at line %d of [%.10s]","database corruption",0x10fd1,iVar7 + 0x14);\n    iVar7 = 0xb;\n    goto LAB_00059704;\n  }\n  *(undefined2 *)(param_1 + 0x2e) = 0;\n  piVar2 = *(int **)(param_1 + 0x14);\n  *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;\n  *(undefined2 *)(param_1 + 0x40 + cVar4 * 2) = *(undefined2 *)(param_1 + 0x3e);\n  *(undefined4 *)(param_1 + 0x70 + cVar4 * 4) = *(undefined4 *)(param_1 + 0x6c);\n  *(char *)(param_1 + 0x3c) = cVar4 + '\x01';\n  uVar1 = piVar2[0xc];\n  *(undefined2 *)(param_1 + 0x3e) = 0;\n  if (uVar1 < param_2) {\n    iVar7 = FUN_00037780();\n  }\n  else {\n    iVar6 = (**(code **)(*piVar2 + 200))(*piVar2,param_2,&local_24,*(undefined1 *)(param_1 + 2));\n    iVar7 = iVar6;\n    if (iVar6 == 0) {\n      local_34 = *(char **)(local_24 + 8);\n      *(char **)(param_1 + 0x6c) = local_34;\n      if (*local_34 == '\0') {\n        iVar7 = *(int *)(local_24 + 8);\n        if (param_2 != *(uint *)(iVar7 + 4)) {\n          uVar3 = *(undefined4 *)(local_24 + 4);\n          *(int *)(iVar7 + 0x48) = local_24;\n          *(int **)(iVar7 + 0x34) = piVar2;\n          *(uint *)(iVar7 + 4) = param_2;\n          *(undefined4 *)(iVar7 + 0x38) = uVar3;\n          uVar5 = 0;\n          if (param_2 == 1) {\n            uVar5 = 100;\n          }\n          *(undefined1 *)(iVar7 + 9) = uVar5;\n        }\n        iVar7 = FUN_00058850();\n        if (iVar7 == 0) {\n          local_34 = *(char **)(param_1 + 0x6c);\n          goto LAB_000596be;\n        }\n      }\n      else {\nLAB_000596be:\n        if ((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;\n        iVar7 = FUN_00037780();\n      }\n      if (*(int *)(param_1 + 0x6c) != 0) {\n        FUN_0001f280();\n      }\n    }\n  }\n  cVar4 = *(char *)(param_1 + 0x3c) + -1;\n  *(char *)(param_1 + 0x3c) = cVar4;\n  *(undefined4 *)(param_1 + 0x6c) = *(undefined4 *)(param_1 + 0x70 + cVar4 * 4);\nLAB_00059704:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000d1450();\n  }\n  return iVar7;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "undefined1 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *local_34;" primitive_type (pointer_declarator "*local_34" * identifier) ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x5962b;" (assignment_expression "uStack_14 = 0x5962b" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "cVar4 = *(char *)(param_1 + 0x3c);" (assignment_expression "cVar4 = *(char *)(param_1 + 0x3c)" identifier = (pointer_expression "*(char *)(param_1 + 0x3c)" * (cast_expression "(char *)(param_1 + 0x3c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) ))))) ;) (if_statement "if ('\x12' < cVar4) {\n    iVar7 = sqlite3_sourceid();\n    sqlite3_log(0xb,"%s at line %d of [%.10s]","database corruption",0x10fd1,iVar7 + 0x14);\n    iVar7 = 0xb;\n    goto LAB_00059704;\n  }" if (parenthesized_expression "('\x12' < cVar4)" ( (binary_expression "'\x12' < cVar4" (char_literal "'\x12'" ' escape_sequence ') < identifier) )) (compound_statement "{\n    iVar7 = sqlite3_sourceid();\n    sqlite3_log(0xb,"%s at line %d of [%.10s]","database corruption",0x10fd1,iVar7 + 0x14);\n    iVar7 = 0xb;\n    goto LAB_00059704;\n  }" { (expression_statement "iVar7 = sqlite3_sourceid();" (assignment_expression "iVar7 = sqlite3_sourceid()" identifier = (call_expression "sqlite3_sourceid()" identifier (argument_list "()" ( )))) ;) (expression_statement "sqlite3_log(0xb,"%s at line %d of [%.10s]","database corruption",0x10fd1,iVar7 + 0x14);" (call_expression "sqlite3_log(0xb,"%s at line %d of [%.10s]","database corruption",0x10fd1,iVar7 + 0x14)" identifier (argument_list "(0xb,"%s at line %d of [%.10s]","database corruption",0x10fd1,iVar7 + 0x14)" ( number_literal , (string_literal ""%s at line %d of [%.10s]"" " string_content ") , (string_literal ""database corruption"" " string_content ") , number_literal , (binary_expression "iVar7 + 0x14" identifier + number_literal) ))) ;) (expression_statement "iVar7 = 0xb;" (assignment_expression "iVar7 = 0xb" identifier = number_literal) ;) (goto_statement "goto LAB_00059704;" goto statement_identifier ;) })) (expression_statement "*(undefined2 *)(param_1 + 0x2e) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0x2e) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0x2e)" * (cast_expression "(undefined2 *)(param_1 + 0x2e)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2e)" ( (binary_expression "param_1 + 0x2e" identifier + number_literal) )))) = number_literal) ;) (expression_statement "piVar2 = *(int **)(param_1 + 0x14);" (assignment_expression "piVar2 = *(int **)(param_1 + 0x14)" identifier = (pointer_expression "*(int **)(param_1 + 0x14)" * (cast_expression "(int **)(param_1 + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "*(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;" (assignment_expression "*(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9" (pointer_expression "*(byte *)(param_1 + 1)" * (cast_expression "(byte *)(param_1 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) = (binary_expression "*(byte *)(param_1 + 1) & 0xf9" (pointer_expression "*(byte *)(param_1 + 1)" * (cast_expression "(byte *)(param_1 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) & number_literal)) ;) (expression_statement "*(undefined2 *)(param_1 + 0x40 + cVar4 * 2) = *(undefined2 *)(param_1 + 0x3e);" (assignment_expression "*(undefined2 *)(param_1 + 0x40 + cVar4 * 2) = *(undefined2 *)(param_1 + 0x3e)" (pointer_expression "*(undefined2 *)(param_1 + 0x40 + cVar4 * 2)" * (cast_expression "(undefined2 *)(param_1 + 0x40 + cVar4 * 2)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40 + cVar4 * 2)" ( (binary_expression "param_1 + 0x40 + cVar4 * 2" (binary_expression "param_1 + 0x40" identifier + number_literal) + (binary_expression "cVar4 * 2" identifier * number_literal)) )))) = (pointer_expression "*(undefined2 *)(param_1 + 0x3e)" * (cast_expression "(undefined2 *)(param_1 + 0x3e)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3e)" ( (binary_expression "param_1 + 0x3e" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x70 + cVar4 * 4) = *(undefined4 *)(param_1 + 0x6c);" (assignment_expression "*(undefined4 *)(param_1 + 0x70 + cVar4 * 4) = *(undefined4 *)(param_1 + 0x6c)" (pointer_expression "*(undefined4 *)(param_1 + 0x70 + cVar4 * 4)" * (cast_expression "(undefined4 *)(param_1 + 0x70 + cVar4 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70 + cVar4 * 4)" ( (binary_expression "param_1 + 0x70 + cVar4 * 4" (binary_expression "param_1 + 0x70" identifier + number_literal) + (binary_expression "cVar4 * 4" identifier * number_literal)) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x6c)" * (cast_expression "(undefined4 *)(param_1 + 0x6c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) ))))) ;) (expression_statement "*(char *)(param_1 + 0x3c) = cVar4 + '\x01';" (assignment_expression "*(char *)(param_1 + 0x3c) = cVar4 + '\x01'" (pointer_expression "*(char *)(param_1 + 0x3c)" * (cast_expression "(char *)(param_1 + 0x3c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) = (binary_expression "cVar4 + '\x01'" identifier + (char_literal "'\x01'" ' escape_sequence '))) ;) (expression_statement "uVar1 = piVar2[0xc];" (assignment_expression "uVar1 = piVar2[0xc]" identifier = (subscript_expression "piVar2[0xc]" identifier [ number_literal ])) ;) (expression_statement "*(undefined2 *)(param_1 + 0x3e) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0x3e) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0x3e)" * (cast_expression "(undefined2 *)(param_1 + 0x3e)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3e)" ( (binary_expression "param_1 + 0x3e" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (uVar1 < param_2) {\n    iVar7 = FUN_00037780();\n  }\n  else {\n    iVar6 = (**(code **)(*piVar2 + 200))(*piVar2,param_2,&local_24,*(undefined1 *)(param_1 + 2));\n    iVar7 = iVar6;\n    if (iVar6 == 0) {\n      local_34 = *(char **)(local_24 + 8);\n      *(char **)(param_1 + 0x6c) = local_34;\n      if (*local_34 == '\0') {\n        iVar7 = *(int *)(local_24 + 8);\n        if (param_2 != *(uint *)(iVar7 + 4)) {\n          uVar3 = *(undefined4 *)(local_24 + 4);\n          *(int *)(iVar7 + 0x48) = local_24;\n          *(int **)(iVar7 + 0x34) = piVar2;\n          *(uint *)(iVar7 + 4) = param_2;\n          *(undefined4 *)(iVar7 + 0x38) = uVar3;\n          uVar5 = 0;\n          if (param_2 == 1) {\n            uVar5 = 100;\n          }\n          *(undefined1 *)(iVar7 + 9) = uVar5;\n        }\n        iVar7 = FUN_00058850();\n        if (iVar7 == 0) {\n          local_34 = *(char **)(param_1 + 0x6c);\n          goto LAB_000596be;\n        }\n      }\n      else {\nLAB_000596be:\n        if ((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;\n        iVar7 = FUN_00037780();\n      }\n      if (*(int *)(param_1 + 0x6c) != 0) {\n        FUN_0001f280();\n      }\n    }\n  }" if (parenthesized_expression "(uVar1 < param_2)" ( (binary_expression "uVar1 < param_2" identifier < identifier) )) (compound_statement "{\n    iVar7 = FUN_00037780();\n  }" { (expression_statement "iVar7 = FUN_00037780();" (assignment_expression "iVar7 = FUN_00037780()" identifier = (call_expression "FUN_00037780()" identifier (argument_list "()" ( )))) ;) }) (else_clause "else {\n    iVar6 = (**(code **)(*piVar2 + 200))(*piVar2,param_2,&local_24,*(undefined1 *)(param_1 + 2));\n    iVar7 = iVar6;\n    if (iVar6 == 0) {\n      local_34 = *(char **)(local_24 + 8);\n      *(char **)(param_1 + 0x6c) = local_34;\n      if (*local_34 == '\0') {\n        iVar7 = *(int *)(local_24 + 8);\n        if (param_2 != *(uint *)(iVar7 + 4)) {\n          uVar3 = *(undefined4 *)(local_24 + 4);\n          *(int *)(iVar7 + 0x48) = local_24;\n          *(int **)(iVar7 + 0x34) = piVar2;\n          *(uint *)(iVar7 + 4) = param_2;\n          *(undefined4 *)(iVar7 + 0x38) = uVar3;\n          uVar5 = 0;\n          if (param_2 == 1) {\n            uVar5 = 100;\n          }\n          *(undefined1 *)(iVar7 + 9) = uVar5;\n        }\n        iVar7 = FUN_00058850();\n        if (iVar7 == 0) {\n          local_34 = *(char **)(param_1 + 0x6c);\n          goto LAB_000596be;\n        }\n      }\n      else {\nLAB_000596be:\n        if ((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;\n        iVar7 = FUN_00037780();\n      }\n      if (*(int *)(param_1 + 0x6c) != 0) {\n        FUN_0001f280();\n      }\n    }\n  }" else (compound_statement "{\n    iVar6 = (**(code **)(*piVar2 + 200))(*piVar2,param_2,&local_24,*(undefined1 *)(param_1 + 2));\n    iVar7 = iVar6;\n    if (iVar6 == 0) {\n      local_34 = *(char **)(local_24 + 8);\n      *(char **)(param_1 + 0x6c) = local_34;\n      if (*local_34 == '\0') {\n        iVar7 = *(int *)(local_24 + 8);\n        if (param_2 != *(uint *)(iVar7 + 4)) {\n          uVar3 = *(undefined4 *)(local_24 + 4);\n          *(int *)(iVar7 + 0x48) = local_24;\n          *(int **)(iVar7 + 0x34) = piVar2;\n          *(uint *)(iVar7 + 4) = param_2;\n          *(undefined4 *)(iVar7 + 0x38) = uVar3;\n          uVar5 = 0;\n          if (param_2 == 1) {\n            uVar5 = 100;\n          }\n          *(undefined1 *)(iVar7 + 9) = uVar5;\n        }\n        iVar7 = FUN_00058850();\n        if (iVar7 == 0) {\n          local_34 = *(char **)(param_1 + 0x6c);\n          goto LAB_000596be;\n        }\n      }\n      else {\nLAB_000596be:\n        if ((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;\n        iVar7 = FUN_00037780();\n      }\n      if (*(int *)(param_1 + 0x6c) != 0) {\n        FUN_0001f280();\n      }\n    }\n  }" { (expression_statement "iVar6 = (**(code **)(*piVar2 + 200))(*piVar2,param_2,&local_24,*(undefined1 *)(param_1 + 2));" (assignment_expression "iVar6 = (**(code **)(*piVar2 + 200))(*piVar2,param_2,&local_24,*(undefined1 *)(param_1 + 2))" identifier = (call_expression "(**(code **)(*piVar2 + 200))(*piVar2,param_2,&local_24,*(undefined1 *)(param_1 + 2))" (parenthesized_expression "(**(code **)(*piVar2 + 200))" ( (pointer_expression "**(code **)(*piVar2 + 200)" * (pointer_expression "*(code **)(*piVar2 + 200)" * (cast_expression "(code **)(*piVar2 + 200)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 200)" ( (binary_expression "*piVar2 + 200" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(*piVar2,param_2,&local_24,*(undefined1 *)(param_1 + 2))" ( (pointer_expression "*piVar2" * identifier) , identifier , (pointer_expression "&local_24" & identifier) , (pointer_expression "*(undefined1 *)(param_1 + 2)" * (cast_expression "(undefined1 *)(param_1 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) )))) ;) (expression_statement "iVar7 = iVar6;" (assignment_expression "iVar7 = iVar6" identifier = identifier) ;) (if_statement "if (iVar6 == 0) {\n      local_34 = *(char **)(local_24 + 8);\n      *(char **)(param_1 + 0x6c) = local_34;\n      if (*local_34 == '\0') {\n        iVar7 = *(int *)(local_24 + 8);\n        if (param_2 != *(uint *)(iVar7 + 4)) {\n          uVar3 = *(undefined4 *)(local_24 + 4);\n          *(int *)(iVar7 + 0x48) = local_24;\n          *(int **)(iVar7 + 0x34) = piVar2;\n          *(uint *)(iVar7 + 4) = param_2;\n          *(undefined4 *)(iVar7 + 0x38) = uVar3;\n          uVar5 = 0;\n          if (param_2 == 1) {\n            uVar5 = 100;\n          }\n          *(undefined1 *)(iVar7 + 9) = uVar5;\n        }\n        iVar7 = FUN_00058850();\n        if (iVar7 == 0) {\n          local_34 = *(char **)(param_1 + 0x6c);\n          goto LAB_000596be;\n        }\n      }\n      else {\nLAB_000596be:\n        if ((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;\n        iVar7 = FUN_00037780();\n      }\n      if (*(int *)(param_1 + 0x6c) != 0) {\n        FUN_0001f280();\n      }\n    }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n      local_34 = *(char **)(local_24 + 8);\n      *(char **)(param_1 + 0x6c) = local_34;\n      if (*local_34 == '\0') {\n        iVar7 = *(int *)(local_24 + 8);\n        if (param_2 != *(uint *)(iVar7 + 4)) {\n          uVar3 = *(undefined4 *)(local_24 + 4);\n          *(int *)(iVar7 + 0x48) = local_24;\n          *(int **)(iVar7 + 0x34) = piVar2;\n          *(uint *)(iVar7 + 4) = param_2;\n          *(undefined4 *)(iVar7 + 0x38) = uVar3;\n          uVar5 = 0;\n          if (param_2 == 1) {\n            uVar5 = 100;\n          }\n          *(undefined1 *)(iVar7 + 9) = uVar5;\n        }\n        iVar7 = FUN_00058850();\n        if (iVar7 == 0) {\n          local_34 = *(char **)(param_1 + 0x6c);\n          goto LAB_000596be;\n        }\n      }\n      else {\nLAB_000596be:\n        if ((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;\n        iVar7 = FUN_00037780();\n      }\n      if (*(int *)(param_1 + 0x6c) != 0) {\n        FUN_0001f280();\n      }\n    }" { (expression_statement "local_34 = *(char **)(local_24 + 8);" (assignment_expression "local_34 = *(char **)(local_24 + 8)" identifier = (pointer_expression "*(char **)(local_24 + 8)" * (cast_expression "(char **)(local_24 + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(local_24 + 8)" ( (binary_expression "local_24 + 8" identifier + number_literal) ))))) ;) (expression_statement "*(char **)(param_1 + 0x6c) = local_34;" (assignment_expression "*(char **)(param_1 + 0x6c) = local_34" (pointer_expression "*(char **)(param_1 + 0x6c)" * (cast_expression "(char **)(param_1 + 0x6c)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*local_34 == '\0') {\n        iVar7 = *(int *)(local_24 + 8);\n        if (param_2 != *(uint *)(iVar7 + 4)) {\n          uVar3 = *(undefined4 *)(local_24 + 4);\n          *(int *)(iVar7 + 0x48) = local_24;\n          *(int **)(iVar7 + 0x34) = piVar2;\n          *(uint *)(iVar7 + 4) = param_2;\n          *(undefined4 *)(iVar7 + 0x38) = uVar3;\n          uVar5 = 0;\n          if (param_2 == 1) {\n            uVar5 = 100;\n          }\n          *(undefined1 *)(iVar7 + 9) = uVar5;\n        }\n        iVar7 = FUN_00058850();\n        if (iVar7 == 0) {\n          local_34 = *(char **)(param_1 + 0x6c);\n          goto LAB_000596be;\n        }\n      }\n      else {\nLAB_000596be:\n        if ((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;\n        iVar7 = FUN_00037780();\n      }" if (parenthesized_expression "(*local_34 == '\0')" ( (binary_expression "*local_34 == '\0'" (pointer_expression "*local_34" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar7 = *(int *)(local_24 + 8);\n        if (param_2 != *(uint *)(iVar7 + 4)) {\n          uVar3 = *(undefined4 *)(local_24 + 4);\n          *(int *)(iVar7 + 0x48) = local_24;\n          *(int **)(iVar7 + 0x34) = piVar2;\n          *(uint *)(iVar7 + 4) = param_2;\n          *(undefined4 *)(iVar7 + 0x38) = uVar3;\n          uVar5 = 0;\n          if (param_2 == 1) {\n            uVar5 = 100;\n          }\n          *(undefined1 *)(iVar7 + 9) = uVar5;\n        }\n        iVar7 = FUN_00058850();\n        if (iVar7 == 0) {\n          local_34 = *(char **)(param_1 + 0x6c);\n          goto LAB_000596be;\n        }\n      }" { (expression_statement "iVar7 = *(int *)(local_24 + 8);" (assignment_expression "iVar7 = *(int *)(local_24 + 8)" identifier = (pointer_expression "*(int *)(local_24 + 8)" * (cast_expression "(int *)(local_24 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_24 + 8)" ( (binary_expression "local_24 + 8" identifier + number_literal) ))))) ;) (if_statement "if (param_2 != *(uint *)(iVar7 + 4)) {\n          uVar3 = *(undefined4 *)(local_24 + 4);\n          *(int *)(iVar7 + 0x48) = local_24;\n          *(int **)(iVar7 + 0x34) = piVar2;\n          *(uint *)(iVar7 + 4) = param_2;\n          *(undefined4 *)(iVar7 + 0x38) = uVar3;\n          uVar5 = 0;\n          if (param_2 == 1) {\n            uVar5 = 100;\n          }\n          *(undefined1 *)(iVar7 + 9) = uVar5;\n        }" if (parenthesized_expression "(param_2 != *(uint *)(iVar7 + 4))" ( (binary_expression "param_2 != *(uint *)(iVar7 + 4)" identifier != (pointer_expression "*(uint *)(iVar7 + 4)" * (cast_expression "(uint *)(iVar7 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 4)" ( (binary_expression "iVar7 + 4" identifier + number_literal) ))))) )) (compound_statement "{\n          uVar3 = *(undefined4 *)(local_24 + 4);\n          *(int *)(iVar7 + 0x48) = local_24;\n          *(int **)(iVar7 + 0x34) = piVar2;\n          *(uint *)(iVar7 + 4) = param_2;\n          *(undefined4 *)(iVar7 + 0x38) = uVar3;\n          uVar5 = 0;\n          if (param_2 == 1) {\n            uVar5 = 100;\n          }\n          *(undefined1 *)(iVar7 + 9) = uVar5;\n        }" { (expression_statement "uVar3 = *(undefined4 *)(local_24 + 4);" (assignment_expression "uVar3 = *(undefined4 *)(local_24 + 4)" identifier = (pointer_expression "*(undefined4 *)(local_24 + 4)" * (cast_expression "(undefined4 *)(local_24 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_24 + 4)" ( (binary_expression "local_24 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar7 + 0x48) = local_24;" (assignment_expression "*(int *)(iVar7 + 0x48) = local_24" (pointer_expression "*(int *)(iVar7 + 0x48)" * (cast_expression "(int *)(iVar7 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x48)" ( (binary_expression "iVar7 + 0x48" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int **)(iVar7 + 0x34) = piVar2;" (assignment_expression "*(int **)(iVar7 + 0x34) = piVar2" (pointer_expression "*(int **)(iVar7 + 0x34)" * (cast_expression "(int **)(iVar7 + 0x34)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar7 + 0x34)" ( (binary_expression "iVar7 + 0x34" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(iVar7 + 4) = param_2;" (assignment_expression "*(uint *)(iVar7 + 4) = param_2" (pointer_expression "*(uint *)(iVar7 + 4)" * (cast_expression "(uint *)(iVar7 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 4)" ( (binary_expression "iVar7 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar7 + 0x38) = uVar3;" (assignment_expression "*(undefined4 *)(iVar7 + 0x38) = uVar3" (pointer_expression "*(undefined4 *)(iVar7 + 0x38)" * (cast_expression "(undefined4 *)(iVar7 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x38)" ( (binary_expression "iVar7 + 0x38" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (if_statement "if (param_2 == 1) {\n            uVar5 = 100;\n          }" if (parenthesized_expression "(param_2 == 1)" ( (binary_expression "param_2 == 1" identifier == number_literal) )) (compound_statement "{\n            uVar5 = 100;\n          }" { (expression_statement "uVar5 = 100;" (assignment_expression "uVar5 = 100" identifier = number_literal) ;) })) (expression_statement "*(undefined1 *)(iVar7 + 9) = uVar5;" (assignment_expression "*(undefined1 *)(iVar7 + 9) = uVar5" (pointer_expression "*(undefined1 *)(iVar7 + 9)" * (cast_expression "(undefined1 *)(iVar7 + 9)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 9)" ( (binary_expression "iVar7 + 9" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "iVar7 = FUN_00058850();" (assignment_expression "iVar7 = FUN_00058850()" identifier = (call_expression "FUN_00058850()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar7 == 0) {\n          local_34 = *(char **)(param_1 + 0x6c);\n          goto LAB_000596be;\n        }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n          local_34 = *(char **)(param_1 + 0x6c);\n          goto LAB_000596be;\n        }" { (expression_statement "local_34 = *(char **)(param_1 + 0x6c);" (assignment_expression "local_34 = *(char **)(param_1 + 0x6c)" identifier = (pointer_expression "*(char **)(param_1 + 0x6c)" * (cast_expression "(char **)(param_1 + 0x6c)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) ))))) ;) (goto_statement "goto LAB_000596be;" goto statement_identifier ;) })) }) (else_clause "else {\nLAB_000596be:\n        if ((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;\n        iVar7 = FUN_00037780();\n      }" else (compound_statement "{\nLAB_000596be:\n        if ((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;\n        iVar7 = FUN_00037780();\n      }" { (labeled_statement "LAB_000596be:\n        if ((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;" statement_identifier : (if_statement "if ((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;" if (parenthesized_expression "((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d)))" ( (binary_expression "(*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))" (parenthesized_expression "(*(short *)(local_34 + 0x18) != 0)" ( (binary_expression "*(short *)(local_34 + 0x18) != 0" (pointer_expression "*(short *)(local_34 + 0x18)" * (cast_expression "(short *)(local_34 + 0x18)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_34 + 0x18)" ( (binary_expression "local_34 + 0x18" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))" ( (comma_expression "iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d)" (assignment_expression "iVar7 = iVar6" identifier = identifier) , (binary_expression "local_34[2] == *(char *)(param_1 + 0x3d)" (subscript_expression "local_34[2]" identifier [ number_literal ]) == (pointer_expression "*(char *)(param_1 + 0x3d)" * (cast_expression "(char *)(param_1 + 0x3d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3d)" ( (binary_expression "param_1 + 0x3d" identifier + number_literal) )))))) ))) )) (goto_statement "goto LAB_00059704;" goto statement_identifier ;))) (expression_statement "iVar7 = FUN_00037780();" (assignment_expression "iVar7 = FUN_00037780()" identifier = (call_expression "FUN_00037780()" identifier (argument_list "()" ( )))) ;) }))) (if_statement "if (*(int *)(param_1 + 0x6c) != 0) {\n        FUN_0001f280();\n      }" if (parenthesized_expression "(*(int *)(param_1 + 0x6c) != 0)" ( (binary_expression "*(int *)(param_1 + 0x6c) != 0" (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        FUN_0001f280();\n      }" { (expression_statement "FUN_0001f280();" (call_expression "FUN_0001f280()" identifier (argument_list "()" ( ))) ;) })) })) }))) (expression_statement "cVar4 = *(char *)(param_1 + 0x3c) + -1;" (assignment_expression "cVar4 = *(char *)(param_1 + 0x3c) + -1" identifier = (binary_expression "*(char *)(param_1 + 0x3c) + -1" (pointer_expression "*(char *)(param_1 + 0x3c)" * (cast_expression "(char *)(param_1 + 0x3c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(char *)(param_1 + 0x3c) = cVar4;" (assignment_expression "*(char *)(param_1 + 0x3c) = cVar4" (pointer_expression "*(char *)(param_1 + 0x3c)" * (cast_expression "(char *)(param_1 + 0x3c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x6c) = *(undefined4 *)(param_1 + 0x70 + cVar4 * 4);" (assignment_expression "*(undefined4 *)(param_1 + 0x6c) = *(undefined4 *)(param_1 + 0x70 + cVar4 * 4)" (pointer_expression "*(undefined4 *)(param_1 + 0x6c)" * (cast_expression "(undefined4 *)(param_1 + 0x6c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x70 + cVar4 * 4)" * (cast_expression "(undefined4 *)(param_1 + 0x70 + cVar4 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70 + cVar4 * 4)" ( (binary_expression "param_1 + 0x70 + cVar4 * 4" (binary_expression "param_1 + 0x70" identifier + number_literal) + (binary_expression "cVar4 * 4" identifier * number_literal)) ))))) ;) (labeled_statement "LAB_00059704:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000d1450();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000d1450();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_000d1450();\n  }" { comment (expression_statement "FUN_000d1450();" (call_expression "FUN_000d1450()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar7;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 moveToChild(BtCursor *pCur,u32 newPgno)\n\n{\n  uint uVar1;\n  u16 uVar2;\n  BtShared *pBVar3;\n  void *pvVar4;\n  void *pvVar5;\n  char cVar6;\n  undefined1 uVar7;\n  int iVar8;\n  int iVar9;\n  char *pcVar10;\n  int in_GS_OFFSET;\n  MemPage *local_34;\n  DbPage *pDbPage;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5962b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  cVar6 = pCur->iPage;\n  if ('\x12' < cVar6) {\n    pcVar10 = sqlite3_sourceid();\n    sqlite3_log(0xb,"%s at line %d of [%.10s]","database corruption",0x10fd1,pcVar10 + 0x14);\n    iVar9 = 0xb;\n    goto LAB_00059704;\n  }\n  uVar2 = pCur->ix;\n  (pCur->info).nSize = 0;\n  pBVar3 = pCur->pBt;\n  pCur->curFlags = pCur->curFlags & 0xf9;\n  pCur->aiIdx[cVar6] = uVar2;\n  pCur->apPage[cVar6] = pCur->pPage;\n  pCur->iPage = cVar6 + '\x01';\n  uVar1 = pBVar3->nPage;\n  pCur->ix = 0;\n  if (uVar1 < newPgno) {\n    iVar9 = sqlite3CorruptError(0x10464);\n  }\n  else {\n    iVar8 = (*pBVar3->pPager->xGet)(pBVar3->pPager,newPgno,&pDbPage,(int)pCur->curPagerFlags);\n    iVar9 = iVar8;\n    if (iVar8 == 0) {\n      local_34 = (MemPage *)pDbPage->pExtra;\n      pCur->pPage = local_34;\n      if (local_34->isInit == '\0') {\n        pvVar4 = pDbPage->pExtra;\n        if (newPgno != *(u32 *)((int)pvVar4 + 4)) {\n          pvVar5 = pDbPage->pData;\n          *(DbPage **)((int)pvVar4 + 0x48) = pDbPage;\n          *(BtShared **)((int)pvVar4 + 0x34) = pBVar3;\n          *(u32 *)((int)pvVar4 + 4) = newPgno;\n          *(void **)((int)pvVar4 + 0x38) = pvVar5;\n          uVar7 = 0;\n          if (newPgno == 1) {\n            uVar7 = 100;\n          }\n          *(undefined1 *)((int)pvVar4 + 9) = uVar7;\n        }\n        iVar9 = btreeInitPage(local_34);\n        if (iVar9 == 0) {\n          local_34 = pCur->pPage;\n          goto LAB_000596be;\n        }\n      }\n      else {\nLAB_000596be:\n        if ((local_34->nCell != 0) && (iVar9 = iVar8, local_34->intKey == pCur->curIntKey))\n        goto LAB_00059704;\n        iVar9 = sqlite3CorruptError(0x10479);\n      }\n      if (pCur->pPage != (MemPage *)0x0) {\n        sqlite3PagerUnrefNotNull(pCur->pPage->pDbPage);\n      }\n    }\n  }\n  cVar6 = pCur->iPage + -1;\n  pCur->iPage = cVar6;\n  pCur->pPage = pCur->apPage[cVar6];\nLAB_00059704:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar9;\n}\n\n" comment (function_definition "int __regparm3 moveToChild(BtCursor *pCur,u32 newPgno)\n\n{\n  uint uVar1;\n  u16 uVar2;\n  BtShared *pBVar3;\n  void *pvVar4;\n  void *pvVar5;\n  char cVar6;\n  undefined1 uVar7;\n  int iVar8;\n  int iVar9;\n  char *pcVar10;\n  int in_GS_OFFSET;\n  MemPage *local_34;\n  DbPage *pDbPage;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5962b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  cVar6 = pCur->iPage;\n  if ('\x12' < cVar6) {\n    pcVar10 = sqlite3_sourceid();\n    sqlite3_log(0xb,"%s at line %d of [%.10s]","database corruption",0x10fd1,pcVar10 + 0x14);\n    iVar9 = 0xb;\n    goto LAB_00059704;\n  }\n  uVar2 = pCur->ix;\n  (pCur->info).nSize = 0;\n  pBVar3 = pCur->pBt;\n  pCur->curFlags = pCur->curFlags & 0xf9;\n  pCur->aiIdx[cVar6] = uVar2;\n  pCur->apPage[cVar6] = pCur->pPage;\n  pCur->iPage = cVar6 + '\x01';\n  uVar1 = pBVar3->nPage;\n  pCur->ix = 0;\n  if (uVar1 < newPgno) {\n    iVar9 = sqlite3CorruptError(0x10464);\n  }\n  else {\n    iVar8 = (*pBVar3->pPager->xGet)(pBVar3->pPager,newPgno,&pDbPage,(int)pCur->curPagerFlags);\n    iVar9 = iVar8;\n    if (iVar8 == 0) {\n      local_34 = (MemPage *)pDbPage->pExtra;\n      pCur->pPage = local_34;\n      if (local_34->isInit == '\0') {\n        pvVar4 = pDbPage->pExtra;\n        if (newPgno != *(u32 *)((int)pvVar4 + 4)) {\n          pvVar5 = pDbPage->pData;\n          *(DbPage **)((int)pvVar4 + 0x48) = pDbPage;\n          *(BtShared **)((int)pvVar4 + 0x34) = pBVar3;\n          *(u32 *)((int)pvVar4 + 4) = newPgno;\n          *(void **)((int)pvVar4 + 0x38) = pvVar5;\n          uVar7 = 0;\n          if (newPgno == 1) {\n            uVar7 = 100;\n          }\n          *(undefined1 *)((int)pvVar4 + 9) = uVar7;\n        }\n        iVar9 = btreeInitPage(local_34);\n        if (iVar9 == 0) {\n          local_34 = pCur->pPage;\n          goto LAB_000596be;\n        }\n      }\n      else {\nLAB_000596be:\n        if ((local_34->nCell != 0) && (iVar9 = iVar8, local_34->intKey == pCur->curIntKey))\n        goto LAB_00059704;\n        iVar9 = sqlite3CorruptError(0x10479);\n      }\n      if (pCur->pPage != (MemPage *)0x0) {\n        sqlite3PagerUnrefNotNull(pCur->pPage->pDbPage);\n      }\n    }\n  }\n  cVar6 = pCur->iPage + -1;\n  pCur->iPage = cVar6;\n  pCur->pPage = pCur->apPage[cVar6];\nLAB_00059704:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar9;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "moveToChild(BtCursor *pCur,u32 newPgno)" identifier (parameter_list "(BtCursor *pCur,u32 newPgno)" ( (parameter_declaration "BtCursor *pCur" type_identifier (pointer_declarator "*pCur" * identifier)) , (parameter_declaration "u32 newPgno" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  u16 uVar2;\n  BtShared *pBVar3;\n  void *pvVar4;\n  void *pvVar5;\n  char cVar6;\n  undefined1 uVar7;\n  int iVar8;\n  int iVar9;\n  char *pcVar10;\n  int in_GS_OFFSET;\n  MemPage *local_34;\n  DbPage *pDbPage;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5962b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  cVar6 = pCur->iPage;\n  if ('\x12' < cVar6) {\n    pcVar10 = sqlite3_sourceid();\n    sqlite3_log(0xb,"%s at line %d of [%.10s]","database corruption",0x10fd1,pcVar10 + 0x14);\n    iVar9 = 0xb;\n    goto LAB_00059704;\n  }\n  uVar2 = pCur->ix;\n  (pCur->info).nSize = 0;\n  pBVar3 = pCur->pBt;\n  pCur->curFlags = pCur->curFlags & 0xf9;\n  pCur->aiIdx[cVar6] = uVar2;\n  pCur->apPage[cVar6] = pCur->pPage;\n  pCur->iPage = cVar6 + '\x01';\n  uVar1 = pBVar3->nPage;\n  pCur->ix = 0;\n  if (uVar1 < newPgno) {\n    iVar9 = sqlite3CorruptError(0x10464);\n  }\n  else {\n    iVar8 = (*pBVar3->pPager->xGet)(pBVar3->pPager,newPgno,&pDbPage,(int)pCur->curPagerFlags);\n    iVar9 = iVar8;\n    if (iVar8 == 0) {\n      local_34 = (MemPage *)pDbPage->pExtra;\n      pCur->pPage = local_34;\n      if (local_34->isInit == '\0') {\n        pvVar4 = pDbPage->pExtra;\n        if (newPgno != *(u32 *)((int)pvVar4 + 4)) {\n          pvVar5 = pDbPage->pData;\n          *(DbPage **)((int)pvVar4 + 0x48) = pDbPage;\n          *(BtShared **)((int)pvVar4 + 0x34) = pBVar3;\n          *(u32 *)((int)pvVar4 + 4) = newPgno;\n          *(void **)((int)pvVar4 + 0x38) = pvVar5;\n          uVar7 = 0;\n          if (newPgno == 1) {\n            uVar7 = 100;\n          }\n          *(undefined1 *)((int)pvVar4 + 9) = uVar7;\n        }\n        iVar9 = btreeInitPage(local_34);\n        if (iVar9 == 0) {\n          local_34 = pCur->pPage;\n          goto LAB_000596be;\n        }\n      }\n      else {\nLAB_000596be:\n        if ((local_34->nCell != 0) && (iVar9 = iVar8, local_34->intKey == pCur->curIntKey))\n        goto LAB_00059704;\n        iVar9 = sqlite3CorruptError(0x10479);\n      }\n      if (pCur->pPage != (MemPage *)0x0) {\n        sqlite3PagerUnrefNotNull(pCur->pPage->pDbPage);\n      }\n    }\n  }\n  cVar6 = pCur->iPage + -1;\n  pCur->iPage = cVar6;\n  pCur->pPage = pCur->apPage[cVar6];\nLAB_00059704:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar9;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "u16 uVar2;" type_identifier identifier ;) (declaration "BtShared *pBVar3;" type_identifier (pointer_declarator "*pBVar3" * identifier) ;) (declaration "void *pvVar4;" primitive_type (pointer_declarator "*pvVar4" * identifier) ;) (declaration "void *pvVar5;" primitive_type (pointer_declarator "*pvVar5" * identifier) ;) (declaration "char cVar6;" primitive_type identifier ;) (declaration "undefined1 uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "MemPage *local_34;" type_identifier (pointer_declarator "*local_34" * identifier) ;) (declaration "DbPage *pDbPage;" type_identifier (pointer_declarator "*pDbPage" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x5962b;" (assignment_expression "uStack_14 = 0x5962b" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "cVar6 = pCur->iPage;" (assignment_expression "cVar6 = pCur->iPage" identifier = (field_expression "pCur->iPage" identifier -> field_identifier)) ;) (if_statement "if ('\x12' < cVar6) {\n    pcVar10 = sqlite3_sourceid();\n    sqlite3_log(0xb,"%s at line %d of [%.10s]","database corruption",0x10fd1,pcVar10 + 0x14);\n    iVar9 = 0xb;\n    goto LAB_00059704;\n  }" if (parenthesized_expression "('\x12' < cVar6)" ( (binary_expression "'\x12' < cVar6" (char_literal "'\x12'" ' escape_sequence ') < identifier) )) (compound_statement "{\n    pcVar10 = sqlite3_sourceid();\n    sqlite3_log(0xb,"%s at line %d of [%.10s]","database corruption",0x10fd1,pcVar10 + 0x14);\n    iVar9 = 0xb;\n    goto LAB_00059704;\n  }" { (expression_statement "pcVar10 = sqlite3_sourceid();" (assignment_expression "pcVar10 = sqlite3_sourceid()" identifier = (call_expression "sqlite3_sourceid()" identifier (argument_list "()" ( )))) ;) (expression_statement "sqlite3_log(0xb,"%s at line %d of [%.10s]","database corruption",0x10fd1,pcVar10 + 0x14);" (call_expression "sqlite3_log(0xb,"%s at line %d of [%.10s]","database corruption",0x10fd1,pcVar10 + 0x14)" identifier (argument_list "(0xb,"%s at line %d of [%.10s]","database corruption",0x10fd1,pcVar10 + 0x14)" ( number_literal , (string_literal ""%s at line %d of [%.10s]"" " string_content ") , (string_literal ""database corruption"" " string_content ") , number_literal , (binary_expression "pcVar10 + 0x14" identifier + number_literal) ))) ;) (expression_statement "iVar9 = 0xb;" (assignment_expression "iVar9 = 0xb" identifier = number_literal) ;) (goto_statement "goto LAB_00059704;" goto statement_identifier ;) })) (expression_statement "uVar2 = pCur->ix;" (assignment_expression "uVar2 = pCur->ix" identifier = (field_expression "pCur->ix" identifier -> field_identifier)) ;) (expression_statement "(pCur->info).nSize = 0;" (assignment_expression "(pCur->info).nSize = 0" (field_expression "(pCur->info).nSize" (parenthesized_expression "(pCur->info)" ( (field_expression "pCur->info" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "pBVar3 = pCur->pBt;" (assignment_expression "pBVar3 = pCur->pBt" identifier = (field_expression "pCur->pBt" identifier -> field_identifier)) ;) (expression_statement "pCur->curFlags = pCur->curFlags & 0xf9;" (assignment_expression "pCur->curFlags = pCur->curFlags & 0xf9" (field_expression "pCur->curFlags" identifier -> field_identifier) = (binary_expression "pCur->curFlags & 0xf9" (field_expression "pCur->curFlags" identifier -> field_identifier) & number_literal)) ;) (expression_statement "pCur->aiIdx[cVar6] = uVar2;" (assignment_expression "pCur->aiIdx[cVar6] = uVar2" (subscript_expression "pCur->aiIdx[cVar6]" (field_expression "pCur->aiIdx" identifier -> field_identifier) [ identifier ]) = identifier) ;) (expression_statement "pCur->apPage[cVar6] = pCur->pPage;" (assignment_expression "pCur->apPage[cVar6] = pCur->pPage" (subscript_expression "pCur->apPage[cVar6]" (field_expression "pCur->apPage" identifier -> field_identifier) [ identifier ]) = (field_expression "pCur->pPage" identifier -> field_identifier)) ;) (expression_statement "pCur->iPage = cVar6 + '\x01';" (assignment_expression "pCur->iPage = cVar6 + '\x01'" (field_expression "pCur->iPage" identifier -> field_identifier) = (binary_expression "cVar6 + '\x01'" identifier + (char_literal "'\x01'" ' escape_sequence '))) ;) (expression_statement "uVar1 = pBVar3->nPage;" (assignment_expression "uVar1 = pBVar3->nPage" identifier = (field_expression "pBVar3->nPage" identifier -> field_identifier)) ;) (expression_statement "pCur->ix = 0;" (assignment_expression "pCur->ix = 0" (field_expression "pCur->ix" identifier -> field_identifier) = number_literal) ;) (if_statement "if (uVar1 < newPgno) {\n    iVar9 = sqlite3CorruptError(0x10464);\n  }\n  else {\n    iVar8 = (*pBVar3->pPager->xGet)(pBVar3->pPager,newPgno,&pDbPage,(int)pCur->curPagerFlags);\n    iVar9 = iVar8;\n    if (iVar8 == 0) {\n      local_34 = (MemPage *)pDbPage->pExtra;\n      pCur->pPage = local_34;\n      if (local_34->isInit == '\0') {\n        pvVar4 = pDbPage->pExtra;\n        if (newPgno != *(u32 *)((int)pvVar4 + 4)) {\n          pvVar5 = pDbPage->pData;\n          *(DbPage **)((int)pvVar4 + 0x48) = pDbPage;\n          *(BtShared **)((int)pvVar4 + 0x34) = pBVar3;\n          *(u32 *)((int)pvVar4 + 4) = newPgno;\n          *(void **)((int)pvVar4 + 0x38) = pvVar5;\n          uVar7 = 0;\n          if (newPgno == 1) {\n            uVar7 = 100;\n          }\n          *(undefined1 *)((int)pvVar4 + 9) = uVar7;\n        }\n        iVar9 = btreeInitPage(local_34);\n        if (iVar9 == 0) {\n          local_34 = pCur->pPage;\n          goto LAB_000596be;\n        }\n      }\n      else {\nLAB_000596be:\n        if ((local_34->nCell != 0) && (iVar9 = iVar8, local_34->intKey == pCur->curIntKey))\n        goto LAB_00059704;\n        iVar9 = sqlite3CorruptError(0x10479);\n      }\n      if (pCur->pPage != (MemPage *)0x0) {\n        sqlite3PagerUnrefNotNull(pCur->pPage->pDbPage);\n      }\n    }\n  }" if (parenthesized_expression "(uVar1 < newPgno)" ( (binary_expression "uVar1 < newPgno" identifier < identifier) )) (compound_statement "{\n    iVar9 = sqlite3CorruptError(0x10464);\n  }" { (expression_statement "iVar9 = sqlite3CorruptError(0x10464);" (assignment_expression "iVar9 = sqlite3CorruptError(0x10464)" identifier = (call_expression "sqlite3CorruptError(0x10464)" identifier (argument_list "(0x10464)" ( number_literal )))) ;) }) (else_clause "else {\n    iVar8 = (*pBVar3->pPager->xGet)(pBVar3->pPager,newPgno,&pDbPage,(int)pCur->curPagerFlags);\n    iVar9 = iVar8;\n    if (iVar8 == 0) {\n      local_34 = (MemPage *)pDbPage->pExtra;\n      pCur->pPage = local_34;\n      if (local_34->isInit == '\0') {\n        pvVar4 = pDbPage->pExtra;\n        if (newPgno != *(u32 *)((int)pvVar4 + 4)) {\n          pvVar5 = pDbPage->pData;\n          *(DbPage **)((int)pvVar4 + 0x48) = pDbPage;\n          *(BtShared **)((int)pvVar4 + 0x34) = pBVar3;\n          *(u32 *)((int)pvVar4 + 4) = newPgno;\n          *(void **)((int)pvVar4 + 0x38) = pvVar5;\n          uVar7 = 0;\n          if (newPgno == 1) {\n            uVar7 = 100;\n          }\n          *(undefined1 *)((int)pvVar4 + 9) = uVar7;\n        }\n        iVar9 = btreeInitPage(local_34);\n        if (iVar9 == 0) {\n          local_34 = pCur->pPage;\n          goto LAB_000596be;\n        }\n      }\n      else {\nLAB_000596be:\n        if ((local_34->nCell != 0) && (iVar9 = iVar8, local_34->intKey == pCur->curIntKey))\n        goto LAB_00059704;\n        iVar9 = sqlite3CorruptError(0x10479);\n      }\n      if (pCur->pPage != (MemPage *)0x0) {\n        sqlite3PagerUnrefNotNull(pCur->pPage->pDbPage);\n      }\n    }\n  }" else (compound_statement "{\n    iVar8 = (*pBVar3->pPager->xGet)(pBVar3->pPager,newPgno,&pDbPage,(int)pCur->curPagerFlags);\n    iVar9 = iVar8;\n    if (iVar8 == 0) {\n      local_34 = (MemPage *)pDbPage->pExtra;\n      pCur->pPage = local_34;\n      if (local_34->isInit == '\0') {\n        pvVar4 = pDbPage->pExtra;\n        if (newPgno != *(u32 *)((int)pvVar4 + 4)) {\n          pvVar5 = pDbPage->pData;\n          *(DbPage **)((int)pvVar4 + 0x48) = pDbPage;\n          *(BtShared **)((int)pvVar4 + 0x34) = pBVar3;\n          *(u32 *)((int)pvVar4 + 4) = newPgno;\n          *(void **)((int)pvVar4 + 0x38) = pvVar5;\n          uVar7 = 0;\n          if (newPgno == 1) {\n            uVar7 = 100;\n          }\n          *(undefined1 *)((int)pvVar4 + 9) = uVar7;\n        }\n        iVar9 = btreeInitPage(local_34);\n        if (iVar9 == 0) {\n          local_34 = pCur->pPage;\n          goto LAB_000596be;\n        }\n      }\n      else {\nLAB_000596be:\n        if ((local_34->nCell != 0) && (iVar9 = iVar8, local_34->intKey == pCur->curIntKey))\n        goto LAB_00059704;\n        iVar9 = sqlite3CorruptError(0x10479);\n      }\n      if (pCur->pPage != (MemPage *)0x0) {\n        sqlite3PagerUnrefNotNull(pCur->pPage->pDbPage);\n      }\n    }\n  }" { (expression_statement "iVar8 = (*pBVar3->pPager->xGet)(pBVar3->pPager,newPgno,&pDbPage,(int)pCur->curPagerFlags);" (assignment_expression "iVar8 = (*pBVar3->pPager->xGet)(pBVar3->pPager,newPgno,&pDbPage,(int)pCur->curPagerFlags)" identifier = (call_expression "(*pBVar3->pPager->xGet)(pBVar3->pPager,newPgno,&pDbPage,(int)pCur->curPagerFlags)" (parenthesized_expression "(*pBVar3->pPager->xGet)" ( (pointer_expression "*pBVar3->pPager->xGet" * (field_expression "pBVar3->pPager->xGet" (field_expression "pBVar3->pPager" identifier -> field_identifier) -> field_identifier)) )) (argument_list "(pBVar3->pPager,newPgno,&pDbPage,(int)pCur->curPagerFlags)" ( (field_expression "pBVar3->pPager" identifier -> field_identifier) , identifier , (pointer_expression "&pDbPage" & identifier) , (cast_expression "(int)pCur->curPagerFlags" ( (type_descriptor "int" primitive_type) ) (field_expression "pCur->curPagerFlags" identifier -> field_identifier)) )))) ;) (expression_statement "iVar9 = iVar8;" (assignment_expression "iVar9 = iVar8" identifier = identifier) ;) (if_statement "if (iVar8 == 0) {\n      local_34 = (MemPage *)pDbPage->pExtra;\n      pCur->pPage = local_34;\n      if (local_34->isInit == '\0') {\n        pvVar4 = pDbPage->pExtra;\n        if (newPgno != *(u32 *)((int)pvVar4 + 4)) {\n          pvVar5 = pDbPage->pData;\n          *(DbPage **)((int)pvVar4 + 0x48) = pDbPage;\n          *(BtShared **)((int)pvVar4 + 0x34) = pBVar3;\n          *(u32 *)((int)pvVar4 + 4) = newPgno;\n          *(void **)((int)pvVar4 + 0x38) = pvVar5;\n          uVar7 = 0;\n          if (newPgno == 1) {\n            uVar7 = 100;\n          }\n          *(undefined1 *)((int)pvVar4 + 9) = uVar7;\n        }\n        iVar9 = btreeInitPage(local_34);\n        if (iVar9 == 0) {\n          local_34 = pCur->pPage;\n          goto LAB_000596be;\n        }\n      }\n      else {\nLAB_000596be:\n        if ((local_34->nCell != 0) && (iVar9 = iVar8, local_34->intKey == pCur->curIntKey))\n        goto LAB_00059704;\n        iVar9 = sqlite3CorruptError(0x10479);\n      }\n      if (pCur->pPage != (MemPage *)0x0) {\n        sqlite3PagerUnrefNotNull(pCur->pPage->pDbPage);\n      }\n    }" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (compound_statement "{\n      local_34 = (MemPage *)pDbPage->pExtra;\n      pCur->pPage = local_34;\n      if (local_34->isInit == '\0') {\n        pvVar4 = pDbPage->pExtra;\n        if (newPgno != *(u32 *)((int)pvVar4 + 4)) {\n          pvVar5 = pDbPage->pData;\n          *(DbPage **)((int)pvVar4 + 0x48) = pDbPage;\n          *(BtShared **)((int)pvVar4 + 0x34) = pBVar3;\n          *(u32 *)((int)pvVar4 + 4) = newPgno;\n          *(void **)((int)pvVar4 + 0x38) = pvVar5;\n          uVar7 = 0;\n          if (newPgno == 1) {\n            uVar7 = 100;\n          }\n          *(undefined1 *)((int)pvVar4 + 9) = uVar7;\n        }\n        iVar9 = btreeInitPage(local_34);\n        if (iVar9 == 0) {\n          local_34 = pCur->pPage;\n          goto LAB_000596be;\n        }\n      }\n      else {\nLAB_000596be:\n        if ((local_34->nCell != 0) && (iVar9 = iVar8, local_34->intKey == pCur->curIntKey))\n        goto LAB_00059704;\n        iVar9 = sqlite3CorruptError(0x10479);\n      }\n      if (pCur->pPage != (MemPage *)0x0) {\n        sqlite3PagerUnrefNotNull(pCur->pPage->pDbPage);\n      }\n    }" { (expression_statement "local_34 = (MemPage *)pDbPage->pExtra;" (assignment_expression "local_34 = (MemPage *)pDbPage->pExtra" identifier = (cast_expression "(MemPage *)pDbPage->pExtra" ( (type_descriptor "MemPage *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pDbPage->pExtra" identifier -> field_identifier))) ;) (expression_statement "pCur->pPage = local_34;" (assignment_expression "pCur->pPage = local_34" (field_expression "pCur->pPage" identifier -> field_identifier) = identifier) ;) (if_statement "if (local_34->isInit == '\0') {\n        pvVar4 = pDbPage->pExtra;\n        if (newPgno != *(u32 *)((int)pvVar4 + 4)) {\n          pvVar5 = pDbPage->pData;\n          *(DbPage **)((int)pvVar4 + 0x48) = pDbPage;\n          *(BtShared **)((int)pvVar4 + 0x34) = pBVar3;\n          *(u32 *)((int)pvVar4 + 4) = newPgno;\n          *(void **)((int)pvVar4 + 0x38) = pvVar5;\n          uVar7 = 0;\n          if (newPgno == 1) {\n            uVar7 = 100;\n          }\n          *(undefined1 *)((int)pvVar4 + 9) = uVar7;\n        }\n        iVar9 = btreeInitPage(local_34);\n        if (iVar9 == 0) {\n          local_34 = pCur->pPage;\n          goto LAB_000596be;\n        }\n      }\n      else {\nLAB_000596be:\n        if ((local_34->nCell != 0) && (iVar9 = iVar8, local_34->intKey == pCur->curIntKey))\n        goto LAB_00059704;\n        iVar9 = sqlite3CorruptError(0x10479);\n      }" if (parenthesized_expression "(local_34->isInit == '\0')" ( (binary_expression "local_34->isInit == '\0'" (field_expression "local_34->isInit" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        pvVar4 = pDbPage->pExtra;\n        if (newPgno != *(u32 *)((int)pvVar4 + 4)) {\n          pvVar5 = pDbPage->pData;\n          *(DbPage **)((int)pvVar4 + 0x48) = pDbPage;\n          *(BtShared **)((int)pvVar4 + 0x34) = pBVar3;\n          *(u32 *)((int)pvVar4 + 4) = newPgno;\n          *(void **)((int)pvVar4 + 0x38) = pvVar5;\n          uVar7 = 0;\n          if (newPgno == 1) {\n            uVar7 = 100;\n          }\n          *(undefined1 *)((int)pvVar4 + 9) = uVar7;\n        }\n        iVar9 = btreeInitPage(local_34);\n        if (iVar9 == 0) {\n          local_34 = pCur->pPage;\n          goto LAB_000596be;\n        }\n      }" { (expression_statement "pvVar4 = pDbPage->pExtra;" (assignment_expression "pvVar4 = pDbPage->pExtra" identifier = (field_expression "pDbPage->pExtra" identifier -> field_identifier)) ;) (if_statement "if (newPgno != *(u32 *)((int)pvVar4 + 4)) {\n          pvVar5 = pDbPage->pData;\n          *(DbPage **)((int)pvVar4 + 0x48) = pDbPage;\n          *(BtShared **)((int)pvVar4 + 0x34) = pBVar3;\n          *(u32 *)((int)pvVar4 + 4) = newPgno;\n          *(void **)((int)pvVar4 + 0x38) = pvVar5;\n          uVar7 = 0;\n          if (newPgno == 1) {\n            uVar7 = 100;\n          }\n          *(undefined1 *)((int)pvVar4 + 9) = uVar7;\n        }" if (parenthesized_expression "(newPgno != *(u32 *)((int)pvVar4 + 4))" ( (binary_expression "newPgno != *(u32 *)((int)pvVar4 + 4)" identifier != (pointer_expression "*(u32 *)((int)pvVar4 + 4)" * (cast_expression "(u32 *)((int)pvVar4 + 4)" ( (type_descriptor "u32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar4 + 4)" ( (binary_expression "(int)pvVar4 + 4" (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) )) (compound_statement "{\n          pvVar5 = pDbPage->pData;\n          *(DbPage **)((int)pvVar4 + 0x48) = pDbPage;\n          *(BtShared **)((int)pvVar4 + 0x34) = pBVar3;\n          *(u32 *)((int)pvVar4 + 4) = newPgno;\n          *(void **)((int)pvVar4 + 0x38) = pvVar5;\n          uVar7 = 0;\n          if (newPgno == 1) {\n            uVar7 = 100;\n          }\n          *(undefined1 *)((int)pvVar4 + 9) = uVar7;\n        }" { (expression_statement "pvVar5 = pDbPage->pData;" (assignment_expression "pvVar5 = pDbPage->pData" identifier = (field_expression "pDbPage->pData" identifier -> field_identifier)) ;) (expression_statement "*(DbPage **)((int)pvVar4 + 0x48) = pDbPage;" (assignment_expression "*(DbPage **)((int)pvVar4 + 0x48) = pDbPage" (pointer_expression "*(DbPage **)((int)pvVar4 + 0x48)" * (cast_expression "(DbPage **)((int)pvVar4 + 0x48)" ( (type_descriptor "DbPage **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar4 + 0x48)" ( (binary_expression "(int)pvVar4 + 0x48" (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(BtShared **)((int)pvVar4 + 0x34) = pBVar3;" (assignment_expression "*(BtShared **)((int)pvVar4 + 0x34) = pBVar3" (pointer_expression "*(BtShared **)((int)pvVar4 + 0x34)" * (cast_expression "(BtShared **)((int)pvVar4 + 0x34)" ( (type_descriptor "BtShared **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar4 + 0x34)" ( (binary_expression "(int)pvVar4 + 0x34" (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(u32 *)((int)pvVar4 + 4) = newPgno;" (assignment_expression "*(u32 *)((int)pvVar4 + 4) = newPgno" (pointer_expression "*(u32 *)((int)pvVar4 + 4)" * (cast_expression "(u32 *)((int)pvVar4 + 4)" ( (type_descriptor "u32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar4 + 4)" ( (binary_expression "(int)pvVar4 + 4" (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(void **)((int)pvVar4 + 0x38) = pvVar5;" (assignment_expression "*(void **)((int)pvVar4 + 0x38) = pvVar5" (pointer_expression "*(void **)((int)pvVar4 + 0x38)" * (cast_expression "(void **)((int)pvVar4 + 0x38)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar4 + 0x38)" ( (binary_expression "(int)pvVar4 + 0x38" (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (if_statement "if (newPgno == 1) {\n            uVar7 = 100;\n          }" if (parenthesized_expression "(newPgno == 1)" ( (binary_expression "newPgno == 1" identifier == number_literal) )) (compound_statement "{\n            uVar7 = 100;\n          }" { (expression_statement "uVar7 = 100;" (assignment_expression "uVar7 = 100" identifier = number_literal) ;) })) (expression_statement "*(undefined1 *)((int)pvVar4 + 9) = uVar7;" (assignment_expression "*(undefined1 *)((int)pvVar4 + 9) = uVar7" (pointer_expression "*(undefined1 *)((int)pvVar4 + 9)" * (cast_expression "(undefined1 *)((int)pvVar4 + 9)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar4 + 9)" ( (binary_expression "(int)pvVar4 + 9" (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) })) (expression_statement "iVar9 = btreeInitPage(local_34);" (assignment_expression "iVar9 = btreeInitPage(local_34)" identifier = (call_expression "btreeInitPage(local_34)" identifier (argument_list "(local_34)" ( identifier )))) ;) (if_statement "if (iVar9 == 0) {\n          local_34 = pCur->pPage;\n          goto LAB_000596be;\n        }" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (compound_statement "{\n          local_34 = pCur->pPage;\n          goto LAB_000596be;\n        }" { (expression_statement "local_34 = pCur->pPage;" (assignment_expression "local_34 = pCur->pPage" identifier = (field_expression "pCur->pPage" identifier -> field_identifier)) ;) (goto_statement "goto LAB_000596be;" goto statement_identifier ;) })) }) (else_clause "else {\nLAB_000596be:\n        if ((local_34->nCell != 0) && (iVar9 = iVar8, local_34->intKey == pCur->curIntKey))\n        goto LAB_00059704;\n        iVar9 = sqlite3CorruptError(0x10479);\n      }" else (compound_statement "{\nLAB_000596be:\n        if ((local_34->nCell != 0) && (iVar9 = iVar8, local_34->intKey == pCur->curIntKey))\n        goto LAB_00059704;\n        iVar9 = sqlite3CorruptError(0x10479);\n      }" { (labeled_statement "LAB_000596be:\n        if ((local_34->nCell != 0) && (iVar9 = iVar8, local_34->intKey == pCur->curIntKey))\n        goto LAB_00059704;" statement_identifier : (if_statement "if ((local_34->nCell != 0) && (iVar9 = iVar8, local_34->intKey == pCur->curIntKey))\n        goto LAB_00059704;" if (parenthesized_expression "((local_34->nCell != 0) && (iVar9 = iVar8, local_34->intKey == pCur->curIntKey))" ( (binary_expression "(local_34->nCell != 0) && (iVar9 = iVar8, local_34->intKey == pCur->curIntKey)" (parenthesized_expression "(local_34->nCell != 0)" ( (binary_expression "local_34->nCell != 0" (field_expression "local_34->nCell" identifier -> field_identifier) != number_literal) )) && (parenthesized_expression "(iVar9 = iVar8, local_34->intKey == pCur->curIntKey)" ( (comma_expression "iVar9 = iVar8, local_34->intKey == pCur->curIntKey" (assignment_expression "iVar9 = iVar8" identifier = identifier) , (binary_expression "local_34->intKey == pCur->curIntKey" (field_expression "local_34->intKey" identifier -> field_identifier) == (field_expression "pCur->curIntKey" identifier -> field_identifier))) ))) )) (goto_statement "goto LAB_00059704;" goto statement_identifier ;))) (expression_statement "iVar9 = sqlite3CorruptError(0x10479);" (assignment_expression "iVar9 = sqlite3CorruptError(0x10479)" identifier = (call_expression "sqlite3CorruptError(0x10479)" identifier (argument_list "(0x10479)" ( number_literal )))) ;) }))) (if_statement "if (pCur->pPage != (MemPage *)0x0) {\n        sqlite3PagerUnrefNotNull(pCur->pPage->pDbPage);\n      }" if (parenthesized_expression "(pCur->pPage != (MemPage *)0x0)" ( (binary_expression "pCur->pPage != (MemPage *)0x0" (field_expression "pCur->pPage" identifier -> field_identifier) != (cast_expression "(MemPage *)0x0" ( (type_descriptor "MemPage *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        sqlite3PagerUnrefNotNull(pCur->pPage->pDbPage);\n      }" { (expression_statement "sqlite3PagerUnrefNotNull(pCur->pPage->pDbPage);" (call_expression "sqlite3PagerUnrefNotNull(pCur->pPage->pDbPage)" identifier (argument_list "(pCur->pPage->pDbPage)" ( (field_expression "pCur->pPage->pDbPage" (field_expression "pCur->pPage" identifier -> field_identifier) -> field_identifier) ))) ;) })) })) }))) (expression_statement "cVar6 = pCur->iPage + -1;" (assignment_expression "cVar6 = pCur->iPage + -1" identifier = (binary_expression "pCur->iPage + -1" (field_expression "pCur->iPage" identifier -> field_identifier) + number_literal)) ;) (expression_statement "pCur->iPage = cVar6;" (assignment_expression "pCur->iPage = cVar6" (field_expression "pCur->iPage" identifier -> field_identifier) = identifier) ;) (expression_statement "pCur->pPage = pCur->apPage[cVar6];" (assignment_expression "pCur->pPage = pCur->apPage[cVar6]" (field_expression "pCur->pPage" identifier -> field_identifier) = (subscript_expression "pCur->apPage[cVar6]" (field_expression "pCur->apPage" identifier -> field_identifier) [ identifier ])) ;) (labeled_statement "LAB_00059704:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar9;" return identifier ;) })))
(translation_unit "int __regparm3 FUN_00059620(int param_1,uint param_2)\n\n{\n  uint uVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  char cVar4;\n  undefined1 uVar5;\n  int iVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  char *local_34;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5962b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  cVar4 = *(char *)(param_1 + 0x3c);\n  if ('\x12' < cVar4) {\n    iVar7 = sqlite3_sourceid();\n    sqlite3_log(0xb,"%s at line %d of [%.10s]","database corruption",0x10fd1,iVar7 + 0x14);\n    iVar7 = 0xb;\n    goto LAB_00059704;\n  }\n  *(undefined2 *)(param_1 + 0x2e) = 0;\n  piVar2 = *(int **)(param_1 + 0x14);\n  *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;\n  *(undefined2 *)(param_1 + 0x40 + cVar4 * 2) = *(undefined2 *)(param_1 + 0x3e);\n  *(undefined4 *)(param_1 + 0x70 + cVar4 * 4) = *(undefined4 *)(param_1 + 0x6c);\n  *(char *)(param_1 + 0x3c) = cVar4 + '\x01';\n  uVar1 = piVar2[0xc];\n  *(undefined2 *)(param_1 + 0x3e) = 0;\n  if (uVar1 < param_2) {\n    iVar7 = FUN_00037780();\n  }\n  else {\n    iVar6 = (**(code **)(*piVar2 + 200))(*piVar2,param_2,&local_24,*(undefined1 *)(param_1 + 2));\n    iVar7 = iVar6;\n    if (iVar6 == 0) {\n      local_34 = *(char **)(local_24 + 8);\n      *(char **)(param_1 + 0x6c) = local_34;\n      if (*local_34 == '\0') {\n        iVar7 = *(int *)(local_24 + 8);\n        if (param_2 != *(uint *)(iVar7 + 4)) {\n          uVar3 = *(undefined4 *)(local_24 + 4);\n          *(int *)(iVar7 + 0x48) = local_24;\n          *(int **)(iVar7 + 0x34) = piVar2;\n          *(uint *)(iVar7 + 4) = param_2;\n          *(undefined4 *)(iVar7 + 0x38) = uVar3;\n          uVar5 = 0;\n          if (param_2 == 1) {\n            uVar5 = 100;\n          }\n          *(undefined1 *)(iVar7 + 9) = uVar5;\n        }\n        iVar7 = FUN_00058850();\n        if (iVar7 == 0) {\n          local_34 = *(char **)(param_1 + 0x6c);\n          goto LAB_000596be;\n        }\n      }\n      else {\nLAB_000596be:\n        if ((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;\n        iVar7 = FUN_00037780();\n      }\n      if (*(int *)(param_1 + 0x6c) != 0) {\n        FUN_0001f280();\n      }\n    }\n  }\n  cVar4 = *(char *)(param_1 + 0x3c) + -1;\n  *(char *)(param_1 + 0x3c) = cVar4;\n  *(undefined4 *)(param_1 + 0x6c) = *(undefined4 *)(param_1 + 0x70 + cVar4 * 4);\nLAB_00059704:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000d1450();\n  }\n  return iVar7;\n}\n\n" (function_definition "int __regparm3 FUN_00059620(int param_1,uint param_2)\n\n{\n  uint uVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  char cVar4;\n  undefined1 uVar5;\n  int iVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  char *local_34;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5962b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  cVar4 = *(char *)(param_1 + 0x3c);\n  if ('\x12' < cVar4) {\n    iVar7 = sqlite3_sourceid();\n    sqlite3_log(0xb,"%s at line %d of [%.10s]","database corruption",0x10fd1,iVar7 + 0x14);\n    iVar7 = 0xb;\n    goto LAB_00059704;\n  }\n  *(undefined2 *)(param_1 + 0x2e) = 0;\n  piVar2 = *(int **)(param_1 + 0x14);\n  *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;\n  *(undefined2 *)(param_1 + 0x40 + cVar4 * 2) = *(undefined2 *)(param_1 + 0x3e);\n  *(undefined4 *)(param_1 + 0x70 + cVar4 * 4) = *(undefined4 *)(param_1 + 0x6c);\n  *(char *)(param_1 + 0x3c) = cVar4 + '\x01';\n  uVar1 = piVar2[0xc];\n  *(undefined2 *)(param_1 + 0x3e) = 0;\n  if (uVar1 < param_2) {\n    iVar7 = FUN_00037780();\n  }\n  else {\n    iVar6 = (**(code **)(*piVar2 + 200))(*piVar2,param_2,&local_24,*(undefined1 *)(param_1 + 2));\n    iVar7 = iVar6;\n    if (iVar6 == 0) {\n      local_34 = *(char **)(local_24 + 8);\n      *(char **)(param_1 + 0x6c) = local_34;\n      if (*local_34 == '\0') {\n        iVar7 = *(int *)(local_24 + 8);\n        if (param_2 != *(uint *)(iVar7 + 4)) {\n          uVar3 = *(undefined4 *)(local_24 + 4);\n          *(int *)(iVar7 + 0x48) = local_24;\n          *(int **)(iVar7 + 0x34) = piVar2;\n          *(uint *)(iVar7 + 4) = param_2;\n          *(undefined4 *)(iVar7 + 0x38) = uVar3;\n          uVar5 = 0;\n          if (param_2 == 1) {\n            uVar5 = 100;\n          }\n          *(undefined1 *)(iVar7 + 9) = uVar5;\n        }\n        iVar7 = FUN_00058850();\n        if (iVar7 == 0) {\n          local_34 = *(char **)(param_1 + 0x6c);\n          goto LAB_000596be;\n        }\n      }\n      else {\nLAB_000596be:\n        if ((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;\n        iVar7 = FUN_00037780();\n      }\n      if (*(int *)(param_1 + 0x6c) != 0) {\n        FUN_0001f280();\n      }\n    }\n  }\n  cVar4 = *(char *)(param_1 + 0x3c) + -1;\n  *(char *)(param_1 + 0x3c) = cVar4;\n  *(undefined4 *)(param_1 + 0x6c) = *(undefined4 *)(param_1 + 0x70 + cVar4 * 4);\nLAB_00059704:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000d1450();\n  }\n  return iVar7;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00059620(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  char cVar4;\n  undefined1 uVar5;\n  int iVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  char *local_34;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5962b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  cVar4 = *(char *)(param_1 + 0x3c);\n  if ('\x12' < cVar4) {\n    iVar7 = sqlite3_sourceid();\n    sqlite3_log(0xb,"%s at line %d of [%.10s]","database corruption",0x10fd1,iVar7 + 0x14);\n    iVar7 = 0xb;\n    goto LAB_00059704;\n  }\n  *(undefined2 *)(param_1 + 0x2e) = 0;\n  piVar2 = *(int **)(param_1 + 0x14);\n  *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;\n  *(undefined2 *)(param_1 + 0x40 + cVar4 * 2) = *(undefined2 *)(param_1 + 0x3e);\n  *(undefined4 *)(param_1 + 0x70 + cVar4 * 4) = *(undefined4 *)(param_1 + 0x6c);\n  *(char *)(param_1 + 0x3c) = cVar4 + '\x01';\n  uVar1 = piVar2[0xc];\n  *(undefined2 *)(param_1 + 0x3e) = 0;\n  if (uVar1 < param_2) {\n    iVar7 = FUN_00037780();\n  }\n  else {\n    iVar6 = (**(code **)(*piVar2 + 200))(*piVar2,param_2,&local_24,*(undefined1 *)(param_1 + 2));\n    iVar7 = iVar6;\n    if (iVar6 == 0) {\n      local_34 = *(char **)(local_24 + 8);\n      *(char **)(param_1 + 0x6c) = local_34;\n      if (*local_34 == '\0') {\n        iVar7 = *(int *)(local_24 + 8);\n        if (param_2 != *(uint *)(iVar7 + 4)) {\n          uVar3 = *(undefined4 *)(local_24 + 4);\n          *(int *)(iVar7 + 0x48) = local_24;\n          *(int **)(iVar7 + 0x34) = piVar2;\n          *(uint *)(iVar7 + 4) = param_2;\n          *(undefined4 *)(iVar7 + 0x38) = uVar3;\n          uVar5 = 0;\n          if (param_2 == 1) {\n            uVar5 = 100;\n          }\n          *(undefined1 *)(iVar7 + 9) = uVar5;\n        }\n        iVar7 = FUN_00058850();\n        if (iVar7 == 0) {\n          local_34 = *(char **)(param_1 + 0x6c);\n          goto LAB_000596be;\n        }\n      }\n      else {\nLAB_000596be:\n        if ((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;\n        iVar7 = FUN_00037780();\n      }\n      if (*(int *)(param_1 + 0x6c) != 0) {\n        FUN_0001f280();\n      }\n    }\n  }\n  cVar4 = *(char *)(param_1 + 0x3c) + -1;\n  *(char *)(param_1 + 0x3c) = cVar4;\n  *(undefined4 *)(param_1 + 0x6c) = *(undefined4 *)(param_1 + 0x70 + cVar4 * 4);\nLAB_00059704:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000d1450();\n  }\n  return iVar7;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "undefined1 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *local_34;" primitive_type (pointer_declarator "*local_34" * identifier) ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x5962b;" (assignment_expression "uStack_14 = 0x5962b" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "cVar4 = *(char *)(param_1 + 0x3c);" (assignment_expression "cVar4 = *(char *)(param_1 + 0x3c)" identifier = (pointer_expression "*(char *)(param_1 + 0x3c)" * (cast_expression "(char *)(param_1 + 0x3c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) ))))) ;) (if_statement "if ('\x12' < cVar4) {\n    iVar7 = sqlite3_sourceid();\n    sqlite3_log(0xb,"%s at line %d of [%.10s]","database corruption",0x10fd1,iVar7 + 0x14);\n    iVar7 = 0xb;\n    goto LAB_00059704;\n  }" if (parenthesized_expression "('\x12' < cVar4)" ( (binary_expression "'\x12' < cVar4" (char_literal "'\x12'" ' escape_sequence ') < identifier) )) (compound_statement "{\n    iVar7 = sqlite3_sourceid();\n    sqlite3_log(0xb,"%s at line %d of [%.10s]","database corruption",0x10fd1,iVar7 + 0x14);\n    iVar7 = 0xb;\n    goto LAB_00059704;\n  }" { (expression_statement "iVar7 = sqlite3_sourceid();" (assignment_expression "iVar7 = sqlite3_sourceid()" identifier = (call_expression "sqlite3_sourceid()" identifier (argument_list "()" ( )))) ;) (expression_statement "sqlite3_log(0xb,"%s at line %d of [%.10s]","database corruption",0x10fd1,iVar7 + 0x14);" (call_expression "sqlite3_log(0xb,"%s at line %d of [%.10s]","database corruption",0x10fd1,iVar7 + 0x14)" identifier (argument_list "(0xb,"%s at line %d of [%.10s]","database corruption",0x10fd1,iVar7 + 0x14)" ( number_literal , (string_literal ""%s at line %d of [%.10s]"" " string_content ") , (string_literal ""database corruption"" " string_content ") , number_literal , (binary_expression "iVar7 + 0x14" identifier + number_literal) ))) ;) (expression_statement "iVar7 = 0xb;" (assignment_expression "iVar7 = 0xb" identifier = number_literal) ;) (goto_statement "goto LAB_00059704;" goto statement_identifier ;) })) (expression_statement "*(undefined2 *)(param_1 + 0x2e) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0x2e) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0x2e)" * (cast_expression "(undefined2 *)(param_1 + 0x2e)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2e)" ( (binary_expression "param_1 + 0x2e" identifier + number_literal) )))) = number_literal) ;) (expression_statement "piVar2 = *(int **)(param_1 + 0x14);" (assignment_expression "piVar2 = *(int **)(param_1 + 0x14)" identifier = (pointer_expression "*(int **)(param_1 + 0x14)" * (cast_expression "(int **)(param_1 + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "*(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;" (assignment_expression "*(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9" (pointer_expression "*(byte *)(param_1 + 1)" * (cast_expression "(byte *)(param_1 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) = (binary_expression "*(byte *)(param_1 + 1) & 0xf9" (pointer_expression "*(byte *)(param_1 + 1)" * (cast_expression "(byte *)(param_1 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) & number_literal)) ;) (expression_statement "*(undefined2 *)(param_1 + 0x40 + cVar4 * 2) = *(undefined2 *)(param_1 + 0x3e);" (assignment_expression "*(undefined2 *)(param_1 + 0x40 + cVar4 * 2) = *(undefined2 *)(param_1 + 0x3e)" (pointer_expression "*(undefined2 *)(param_1 + 0x40 + cVar4 * 2)" * (cast_expression "(undefined2 *)(param_1 + 0x40 + cVar4 * 2)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40 + cVar4 * 2)" ( (binary_expression "param_1 + 0x40 + cVar4 * 2" (binary_expression "param_1 + 0x40" identifier + number_literal) + (binary_expression "cVar4 * 2" identifier * number_literal)) )))) = (pointer_expression "*(undefined2 *)(param_1 + 0x3e)" * (cast_expression "(undefined2 *)(param_1 + 0x3e)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3e)" ( (binary_expression "param_1 + 0x3e" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x70 + cVar4 * 4) = *(undefined4 *)(param_1 + 0x6c);" (assignment_expression "*(undefined4 *)(param_1 + 0x70 + cVar4 * 4) = *(undefined4 *)(param_1 + 0x6c)" (pointer_expression "*(undefined4 *)(param_1 + 0x70 + cVar4 * 4)" * (cast_expression "(undefined4 *)(param_1 + 0x70 + cVar4 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70 + cVar4 * 4)" ( (binary_expression "param_1 + 0x70 + cVar4 * 4" (binary_expression "param_1 + 0x70" identifier + number_literal) + (binary_expression "cVar4 * 4" identifier * number_literal)) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x6c)" * (cast_expression "(undefined4 *)(param_1 + 0x6c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) ))))) ;) (expression_statement "*(char *)(param_1 + 0x3c) = cVar4 + '\x01';" (assignment_expression "*(char *)(param_1 + 0x3c) = cVar4 + '\x01'" (pointer_expression "*(char *)(param_1 + 0x3c)" * (cast_expression "(char *)(param_1 + 0x3c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) = (binary_expression "cVar4 + '\x01'" identifier + (char_literal "'\x01'" ' escape_sequence '))) ;) (expression_statement "uVar1 = piVar2[0xc];" (assignment_expression "uVar1 = piVar2[0xc]" identifier = (subscript_expression "piVar2[0xc]" identifier [ number_literal ])) ;) (expression_statement "*(undefined2 *)(param_1 + 0x3e) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0x3e) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0x3e)" * (cast_expression "(undefined2 *)(param_1 + 0x3e)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3e)" ( (binary_expression "param_1 + 0x3e" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (uVar1 < param_2) {\n    iVar7 = FUN_00037780();\n  }\n  else {\n    iVar6 = (**(code **)(*piVar2 + 200))(*piVar2,param_2,&local_24,*(undefined1 *)(param_1 + 2));\n    iVar7 = iVar6;\n    if (iVar6 == 0) {\n      local_34 = *(char **)(local_24 + 8);\n      *(char **)(param_1 + 0x6c) = local_34;\n      if (*local_34 == '\0') {\n        iVar7 = *(int *)(local_24 + 8);\n        if (param_2 != *(uint *)(iVar7 + 4)) {\n          uVar3 = *(undefined4 *)(local_24 + 4);\n          *(int *)(iVar7 + 0x48) = local_24;\n          *(int **)(iVar7 + 0x34) = piVar2;\n          *(uint *)(iVar7 + 4) = param_2;\n          *(undefined4 *)(iVar7 + 0x38) = uVar3;\n          uVar5 = 0;\n          if (param_2 == 1) {\n            uVar5 = 100;\n          }\n          *(undefined1 *)(iVar7 + 9) = uVar5;\n        }\n        iVar7 = FUN_00058850();\n        if (iVar7 == 0) {\n          local_34 = *(char **)(param_1 + 0x6c);\n          goto LAB_000596be;\n        }\n      }\n      else {\nLAB_000596be:\n        if ((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;\n        iVar7 = FUN_00037780();\n      }\n      if (*(int *)(param_1 + 0x6c) != 0) {\n        FUN_0001f280();\n      }\n    }\n  }" if (parenthesized_expression "(uVar1 < param_2)" ( (binary_expression "uVar1 < param_2" identifier < identifier) )) (compound_statement "{\n    iVar7 = FUN_00037780();\n  }" { (expression_statement "iVar7 = FUN_00037780();" (assignment_expression "iVar7 = FUN_00037780()" identifier = (call_expression "FUN_00037780()" identifier (argument_list "()" ( )))) ;) }) (else_clause "else {\n    iVar6 = (**(code **)(*piVar2 + 200))(*piVar2,param_2,&local_24,*(undefined1 *)(param_1 + 2));\n    iVar7 = iVar6;\n    if (iVar6 == 0) {\n      local_34 = *(char **)(local_24 + 8);\n      *(char **)(param_1 + 0x6c) = local_34;\n      if (*local_34 == '\0') {\n        iVar7 = *(int *)(local_24 + 8);\n        if (param_2 != *(uint *)(iVar7 + 4)) {\n          uVar3 = *(undefined4 *)(local_24 + 4);\n          *(int *)(iVar7 + 0x48) = local_24;\n          *(int **)(iVar7 + 0x34) = piVar2;\n          *(uint *)(iVar7 + 4) = param_2;\n          *(undefined4 *)(iVar7 + 0x38) = uVar3;\n          uVar5 = 0;\n          if (param_2 == 1) {\n            uVar5 = 100;\n          }\n          *(undefined1 *)(iVar7 + 9) = uVar5;\n        }\n        iVar7 = FUN_00058850();\n        if (iVar7 == 0) {\n          local_34 = *(char **)(param_1 + 0x6c);\n          goto LAB_000596be;\n        }\n      }\n      else {\nLAB_000596be:\n        if ((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;\n        iVar7 = FUN_00037780();\n      }\n      if (*(int *)(param_1 + 0x6c) != 0) {\n        FUN_0001f280();\n      }\n    }\n  }" else (compound_statement "{\n    iVar6 = (**(code **)(*piVar2 + 200))(*piVar2,param_2,&local_24,*(undefined1 *)(param_1 + 2));\n    iVar7 = iVar6;\n    if (iVar6 == 0) {\n      local_34 = *(char **)(local_24 + 8);\n      *(char **)(param_1 + 0x6c) = local_34;\n      if (*local_34 == '\0') {\n        iVar7 = *(int *)(local_24 + 8);\n        if (param_2 != *(uint *)(iVar7 + 4)) {\n          uVar3 = *(undefined4 *)(local_24 + 4);\n          *(int *)(iVar7 + 0x48) = local_24;\n          *(int **)(iVar7 + 0x34) = piVar2;\n          *(uint *)(iVar7 + 4) = param_2;\n          *(undefined4 *)(iVar7 + 0x38) = uVar3;\n          uVar5 = 0;\n          if (param_2 == 1) {\n            uVar5 = 100;\n          }\n          *(undefined1 *)(iVar7 + 9) = uVar5;\n        }\n        iVar7 = FUN_00058850();\n        if (iVar7 == 0) {\n          local_34 = *(char **)(param_1 + 0x6c);\n          goto LAB_000596be;\n        }\n      }\n      else {\nLAB_000596be:\n        if ((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;\n        iVar7 = FUN_00037780();\n      }\n      if (*(int *)(param_1 + 0x6c) != 0) {\n        FUN_0001f280();\n      }\n    }\n  }" { (expression_statement "iVar6 = (**(code **)(*piVar2 + 200))(*piVar2,param_2,&local_24,*(undefined1 *)(param_1 + 2));" (assignment_expression "iVar6 = (**(code **)(*piVar2 + 200))(*piVar2,param_2,&local_24,*(undefined1 *)(param_1 + 2))" identifier = (call_expression "(**(code **)(*piVar2 + 200))(*piVar2,param_2,&local_24,*(undefined1 *)(param_1 + 2))" (parenthesized_expression "(**(code **)(*piVar2 + 200))" ( (pointer_expression "**(code **)(*piVar2 + 200)" * (pointer_expression "*(code **)(*piVar2 + 200)" * (cast_expression "(code **)(*piVar2 + 200)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 200)" ( (binary_expression "*piVar2 + 200" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(*piVar2,param_2,&local_24,*(undefined1 *)(param_1 + 2))" ( (pointer_expression "*piVar2" * identifier) , identifier , (pointer_expression "&local_24" & identifier) , (pointer_expression "*(undefined1 *)(param_1 + 2)" * (cast_expression "(undefined1 *)(param_1 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) )))) ;) (expression_statement "iVar7 = iVar6;" (assignment_expression "iVar7 = iVar6" identifier = identifier) ;) (if_statement "if (iVar6 == 0) {\n      local_34 = *(char **)(local_24 + 8);\n      *(char **)(param_1 + 0x6c) = local_34;\n      if (*local_34 == '\0') {\n        iVar7 = *(int *)(local_24 + 8);\n        if (param_2 != *(uint *)(iVar7 + 4)) {\n          uVar3 = *(undefined4 *)(local_24 + 4);\n          *(int *)(iVar7 + 0x48) = local_24;\n          *(int **)(iVar7 + 0x34) = piVar2;\n          *(uint *)(iVar7 + 4) = param_2;\n          *(undefined4 *)(iVar7 + 0x38) = uVar3;\n          uVar5 = 0;\n          if (param_2 == 1) {\n            uVar5 = 100;\n          }\n          *(undefined1 *)(iVar7 + 9) = uVar5;\n        }\n        iVar7 = FUN_00058850();\n        if (iVar7 == 0) {\n          local_34 = *(char **)(param_1 + 0x6c);\n          goto LAB_000596be;\n        }\n      }\n      else {\nLAB_000596be:\n        if ((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;\n        iVar7 = FUN_00037780();\n      }\n      if (*(int *)(param_1 + 0x6c) != 0) {\n        FUN_0001f280();\n      }\n    }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n      local_34 = *(char **)(local_24 + 8);\n      *(char **)(param_1 + 0x6c) = local_34;\n      if (*local_34 == '\0') {\n        iVar7 = *(int *)(local_24 + 8);\n        if (param_2 != *(uint *)(iVar7 + 4)) {\n          uVar3 = *(undefined4 *)(local_24 + 4);\n          *(int *)(iVar7 + 0x48) = local_24;\n          *(int **)(iVar7 + 0x34) = piVar2;\n          *(uint *)(iVar7 + 4) = param_2;\n          *(undefined4 *)(iVar7 + 0x38) = uVar3;\n          uVar5 = 0;\n          if (param_2 == 1) {\n            uVar5 = 100;\n          }\n          *(undefined1 *)(iVar7 + 9) = uVar5;\n        }\n        iVar7 = FUN_00058850();\n        if (iVar7 == 0) {\n          local_34 = *(char **)(param_1 + 0x6c);\n          goto LAB_000596be;\n        }\n      }\n      else {\nLAB_000596be:\n        if ((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;\n        iVar7 = FUN_00037780();\n      }\n      if (*(int *)(param_1 + 0x6c) != 0) {\n        FUN_0001f280();\n      }\n    }" { (expression_statement "local_34 = *(char **)(local_24 + 8);" (assignment_expression "local_34 = *(char **)(local_24 + 8)" identifier = (pointer_expression "*(char **)(local_24 + 8)" * (cast_expression "(char **)(local_24 + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(local_24 + 8)" ( (binary_expression "local_24 + 8" identifier + number_literal) ))))) ;) (expression_statement "*(char **)(param_1 + 0x6c) = local_34;" (assignment_expression "*(char **)(param_1 + 0x6c) = local_34" (pointer_expression "*(char **)(param_1 + 0x6c)" * (cast_expression "(char **)(param_1 + 0x6c)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*local_34 == '\0') {\n        iVar7 = *(int *)(local_24 + 8);\n        if (param_2 != *(uint *)(iVar7 + 4)) {\n          uVar3 = *(undefined4 *)(local_24 + 4);\n          *(int *)(iVar7 + 0x48) = local_24;\n          *(int **)(iVar7 + 0x34) = piVar2;\n          *(uint *)(iVar7 + 4) = param_2;\n          *(undefined4 *)(iVar7 + 0x38) = uVar3;\n          uVar5 = 0;\n          if (param_2 == 1) {\n            uVar5 = 100;\n          }\n          *(undefined1 *)(iVar7 + 9) = uVar5;\n        }\n        iVar7 = FUN_00058850();\n        if (iVar7 == 0) {\n          local_34 = *(char **)(param_1 + 0x6c);\n          goto LAB_000596be;\n        }\n      }\n      else {\nLAB_000596be:\n        if ((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;\n        iVar7 = FUN_00037780();\n      }" if (parenthesized_expression "(*local_34 == '\0')" ( (binary_expression "*local_34 == '\0'" (pointer_expression "*local_34" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar7 = *(int *)(local_24 + 8);\n        if (param_2 != *(uint *)(iVar7 + 4)) {\n          uVar3 = *(undefined4 *)(local_24 + 4);\n          *(int *)(iVar7 + 0x48) = local_24;\n          *(int **)(iVar7 + 0x34) = piVar2;\n          *(uint *)(iVar7 + 4) = param_2;\n          *(undefined4 *)(iVar7 + 0x38) = uVar3;\n          uVar5 = 0;\n          if (param_2 == 1) {\n            uVar5 = 100;\n          }\n          *(undefined1 *)(iVar7 + 9) = uVar5;\n        }\n        iVar7 = FUN_00058850();\n        if (iVar7 == 0) {\n          local_34 = *(char **)(param_1 + 0x6c);\n          goto LAB_000596be;\n        }\n      }" { (expression_statement "iVar7 = *(int *)(local_24 + 8);" (assignment_expression "iVar7 = *(int *)(local_24 + 8)" identifier = (pointer_expression "*(int *)(local_24 + 8)" * (cast_expression "(int *)(local_24 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_24 + 8)" ( (binary_expression "local_24 + 8" identifier + number_literal) ))))) ;) (if_statement "if (param_2 != *(uint *)(iVar7 + 4)) {\n          uVar3 = *(undefined4 *)(local_24 + 4);\n          *(int *)(iVar7 + 0x48) = local_24;\n          *(int **)(iVar7 + 0x34) = piVar2;\n          *(uint *)(iVar7 + 4) = param_2;\n          *(undefined4 *)(iVar7 + 0x38) = uVar3;\n          uVar5 = 0;\n          if (param_2 == 1) {\n            uVar5 = 100;\n          }\n          *(undefined1 *)(iVar7 + 9) = uVar5;\n        }" if (parenthesized_expression "(param_2 != *(uint *)(iVar7 + 4))" ( (binary_expression "param_2 != *(uint *)(iVar7 + 4)" identifier != (pointer_expression "*(uint *)(iVar7 + 4)" * (cast_expression "(uint *)(iVar7 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 4)" ( (binary_expression "iVar7 + 4" identifier + number_literal) ))))) )) (compound_statement "{\n          uVar3 = *(undefined4 *)(local_24 + 4);\n          *(int *)(iVar7 + 0x48) = local_24;\n          *(int **)(iVar7 + 0x34) = piVar2;\n          *(uint *)(iVar7 + 4) = param_2;\n          *(undefined4 *)(iVar7 + 0x38) = uVar3;\n          uVar5 = 0;\n          if (param_2 == 1) {\n            uVar5 = 100;\n          }\n          *(undefined1 *)(iVar7 + 9) = uVar5;\n        }" { (expression_statement "uVar3 = *(undefined4 *)(local_24 + 4);" (assignment_expression "uVar3 = *(undefined4 *)(local_24 + 4)" identifier = (pointer_expression "*(undefined4 *)(local_24 + 4)" * (cast_expression "(undefined4 *)(local_24 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_24 + 4)" ( (binary_expression "local_24 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar7 + 0x48) = local_24;" (assignment_expression "*(int *)(iVar7 + 0x48) = local_24" (pointer_expression "*(int *)(iVar7 + 0x48)" * (cast_expression "(int *)(iVar7 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x48)" ( (binary_expression "iVar7 + 0x48" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int **)(iVar7 + 0x34) = piVar2;" (assignment_expression "*(int **)(iVar7 + 0x34) = piVar2" (pointer_expression "*(int **)(iVar7 + 0x34)" * (cast_expression "(int **)(iVar7 + 0x34)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar7 + 0x34)" ( (binary_expression "iVar7 + 0x34" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(iVar7 + 4) = param_2;" (assignment_expression "*(uint *)(iVar7 + 4) = param_2" (pointer_expression "*(uint *)(iVar7 + 4)" * (cast_expression "(uint *)(iVar7 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 4)" ( (binary_expression "iVar7 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar7 + 0x38) = uVar3;" (assignment_expression "*(undefined4 *)(iVar7 + 0x38) = uVar3" (pointer_expression "*(undefined4 *)(iVar7 + 0x38)" * (cast_expression "(undefined4 *)(iVar7 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x38)" ( (binary_expression "iVar7 + 0x38" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (if_statement "if (param_2 == 1) {\n            uVar5 = 100;\n          }" if (parenthesized_expression "(param_2 == 1)" ( (binary_expression "param_2 == 1" identifier == number_literal) )) (compound_statement "{\n            uVar5 = 100;\n          }" { (expression_statement "uVar5 = 100;" (assignment_expression "uVar5 = 100" identifier = number_literal) ;) })) (expression_statement "*(undefined1 *)(iVar7 + 9) = uVar5;" (assignment_expression "*(undefined1 *)(iVar7 + 9) = uVar5" (pointer_expression "*(undefined1 *)(iVar7 + 9)" * (cast_expression "(undefined1 *)(iVar7 + 9)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 9)" ( (binary_expression "iVar7 + 9" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "iVar7 = FUN_00058850();" (assignment_expression "iVar7 = FUN_00058850()" identifier = (call_expression "FUN_00058850()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar7 == 0) {\n          local_34 = *(char **)(param_1 + 0x6c);\n          goto LAB_000596be;\n        }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n          local_34 = *(char **)(param_1 + 0x6c);\n          goto LAB_000596be;\n        }" { (expression_statement "local_34 = *(char **)(param_1 + 0x6c);" (assignment_expression "local_34 = *(char **)(param_1 + 0x6c)" identifier = (pointer_expression "*(char **)(param_1 + 0x6c)" * (cast_expression "(char **)(param_1 + 0x6c)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) ))))) ;) (goto_statement "goto LAB_000596be;" goto statement_identifier ;) })) }) (else_clause "else {\nLAB_000596be:\n        if ((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;\n        iVar7 = FUN_00037780();\n      }" else (compound_statement "{\nLAB_000596be:\n        if ((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;\n        iVar7 = FUN_00037780();\n      }" { (labeled_statement "LAB_000596be:\n        if ((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;" statement_identifier : (if_statement "if ((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;" if (parenthesized_expression "((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d)))" ( (binary_expression "(*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))" (parenthesized_expression "(*(short *)(local_34 + 0x18) != 0)" ( (binary_expression "*(short *)(local_34 + 0x18) != 0" (pointer_expression "*(short *)(local_34 + 0x18)" * (cast_expression "(short *)(local_34 + 0x18)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_34 + 0x18)" ( (binary_expression "local_34 + 0x18" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))" ( (comma_expression "iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d)" (assignment_expression "iVar7 = iVar6" identifier = identifier) , (binary_expression "local_34[2] == *(char *)(param_1 + 0x3d)" (subscript_expression "local_34[2]" identifier [ number_literal ]) == (pointer_expression "*(char *)(param_1 + 0x3d)" * (cast_expression "(char *)(param_1 + 0x3d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3d)" ( (binary_expression "param_1 + 0x3d" identifier + number_literal) )))))) ))) )) (goto_statement "goto LAB_00059704;" goto statement_identifier ;))) (expression_statement "iVar7 = FUN_00037780();" (assignment_expression "iVar7 = FUN_00037780()" identifier = (call_expression "FUN_00037780()" identifier (argument_list "()" ( )))) ;) }))) (if_statement "if (*(int *)(param_1 + 0x6c) != 0) {\n        FUN_0001f280();\n      }" if (parenthesized_expression "(*(int *)(param_1 + 0x6c) != 0)" ( (binary_expression "*(int *)(param_1 + 0x6c) != 0" (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        FUN_0001f280();\n      }" { (expression_statement "FUN_0001f280();" (call_expression "FUN_0001f280()" identifier (argument_list "()" ( ))) ;) })) })) }))) (expression_statement "cVar4 = *(char *)(param_1 + 0x3c) + -1;" (assignment_expression "cVar4 = *(char *)(param_1 + 0x3c) + -1" identifier = (binary_expression "*(char *)(param_1 + 0x3c) + -1" (pointer_expression "*(char *)(param_1 + 0x3c)" * (cast_expression "(char *)(param_1 + 0x3c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(char *)(param_1 + 0x3c) = cVar4;" (assignment_expression "*(char *)(param_1 + 0x3c) = cVar4" (pointer_expression "*(char *)(param_1 + 0x3c)" * (cast_expression "(char *)(param_1 + 0x3c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x6c) = *(undefined4 *)(param_1 + 0x70 + cVar4 * 4);" (assignment_expression "*(undefined4 *)(param_1 + 0x6c) = *(undefined4 *)(param_1 + 0x70 + cVar4 * 4)" (pointer_expression "*(undefined4 *)(param_1 + 0x6c)" * (cast_expression "(undefined4 *)(param_1 + 0x6c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x70 + cVar4 * 4)" * (cast_expression "(undefined4 *)(param_1 + 0x70 + cVar4 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70 + cVar4 * 4)" ( (binary_expression "param_1 + 0x70 + cVar4 * 4" (binary_expression "param_1 + 0x70" identifier + number_literal) + (binary_expression "cVar4 * 4" identifier * number_literal)) ))))) ;) (labeled_statement "LAB_00059704:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000d1450();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000d1450();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_000d1450();\n  }" { (expression_statement "FUN_000d1450();" (call_expression "FUN_000d1450()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar7;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (char_literal ' escape_sequence ') < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , (string_literal " string_content ") , LIT , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_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 * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + (char_literal ' escape_sequence '))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( (pointer_expression * IDENT) , IDENT , (pointer_expression & IDENT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (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 * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (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 * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression (subscript_expression IDENT [ LIT ]) == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ))) )) (goto_statement goto statement_identifier ;))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) })) }))) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (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 *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int __regparm3 FUN_00059620(int param_1,uint param_2)\n\n{\n  uint uVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  char cVar4;\n  undefined1 uVar5;\n  int iVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  char *local_34;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5962b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  cVar4 = *(char *)(param_1 + 0x3c);\n  if ('\x12' < cVar4) {\n    iVar7 = sqlite3_sourceid();\n    sqlite3_log(0xb,"%s at line %d of [%.10s]","database corruption",0x10fd1,iVar7 + 0x14);\n    iVar7 = 0xb;\n    goto LAB_00059704;\n  }\n  *(undefined2 *)(param_1 + 0x2e) = 0;\n  piVar2 = *(int **)(param_1 + 0x14);\n  *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;\n  *(undefined2 *)(param_1 + 0x40 + cVar4 * 2) = *(undefined2 *)(param_1 + 0x3e);\n  *(undefined4 *)(param_1 + 0x70 + cVar4 * 4) = *(undefined4 *)(param_1 + 0x6c);\n  *(char *)(param_1 + 0x3c) = cVar4 + '\x01';\n  uVar1 = piVar2[0xc];\n  *(undefined2 *)(param_1 + 0x3e) = 0;\n  if (uVar1 < param_2) {\n    iVar7 = FUN_00037780();\n  }\n  else {\n    iVar6 = (**(code **)(*piVar2 + 200))(*piVar2,param_2,&local_24,*(undefined1 *)(param_1 + 2));\n    iVar7 = iVar6;\n    if (iVar6 == 0) {\n      local_34 = *(char **)(local_24 + 8);\n      *(char **)(param_1 + 0x6c) = local_34;\n      if (*local_34 == '\0') {\n        iVar7 = *(int *)(local_24 + 8);\n        if (param_2 != *(uint *)(iVar7 + 4)) {\n          uVar3 = *(undefined4 *)(local_24 + 4);\n          *(int *)(iVar7 + 0x48) = local_24;\n          *(int **)(iVar7 + 0x34) = piVar2;\n          *(uint *)(iVar7 + 4) = param_2;\n          *(undefined4 *)(iVar7 + 0x38) = uVar3;\n          uVar5 = 0;\n          if (param_2 == 1) {\n            uVar5 = 100;\n          }\n          *(undefined1 *)(iVar7 + 9) = uVar5;\n        }\n        iVar7 = FUN_00058850();\n        if (iVar7 == 0) {\n          local_34 = *(char **)(param_1 + 0x6c);\n          goto LAB_000596be;\n        }\n      }\n      else {\nLAB_000596be:\n        if ((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;\n        iVar7 = FUN_00037780();\n      }\n      if (*(int *)(param_1 + 0x6c) != 0) {\n        FUN_0001f280();\n      }\n    }\n  }\n  cVar4 = *(char *)(param_1 + 0x3c) + -1;\n  *(char *)(param_1 + 0x3c) = cVar4;\n  *(undefined4 *)(param_1 + 0x6c) = *(undefined4 *)(param_1 + 0x70 + cVar4 * 4);\nLAB_00059704:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000d1450();\n  }\n  return iVar7;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00059620(int param_1,uint param_2)" (identifier "FUN_00059620") (parameter_list "(int param_1,uint param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  uint uVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  char cVar4;\n  undefined1 uVar5;\n  int iVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  char *local_34;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5962b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  cVar4 = *(char *)(param_1 + 0x3c);\n  if ('\x12' < cVar4) {\n    iVar7 = sqlite3_sourceid();\n    sqlite3_log(0xb,"%s at line %d of [%.10s]","database corruption",0x10fd1,iVar7 + 0x14);\n    iVar7 = 0xb;\n    goto LAB_00059704;\n  }\n  *(undefined2 *)(param_1 + 0x2e) = 0;\n  piVar2 = *(int **)(param_1 + 0x14);\n  *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;\n  *(undefined2 *)(param_1 + 0x40 + cVar4 * 2) = *(undefined2 *)(param_1 + 0x3e);\n  *(undefined4 *)(param_1 + 0x70 + cVar4 * 4) = *(undefined4 *)(param_1 + 0x6c);\n  *(char *)(param_1 + 0x3c) = cVar4 + '\x01';\n  uVar1 = piVar2[0xc];\n  *(undefined2 *)(param_1 + 0x3e) = 0;\n  if (uVar1 < param_2) {\n    iVar7 = FUN_00037780();\n  }\n  else {\n    iVar6 = (**(code **)(*piVar2 + 200))(*piVar2,param_2,&local_24,*(undefined1 *)(param_1 + 2));\n    iVar7 = iVar6;\n    if (iVar6 == 0) {\n      local_34 = *(char **)(local_24 + 8);\n      *(char **)(param_1 + 0x6c) = local_34;\n      if (*local_34 == '\0') {\n        iVar7 = *(int *)(local_24 + 8);\n        if (param_2 != *(uint *)(iVar7 + 4)) {\n          uVar3 = *(undefined4 *)(local_24 + 4);\n          *(int *)(iVar7 + 0x48) = local_24;\n          *(int **)(iVar7 + 0x34) = piVar2;\n          *(uint *)(iVar7 + 4) = param_2;\n          *(undefined4 *)(iVar7 + 0x38) = uVar3;\n          uVar5 = 0;\n          if (param_2 == 1) {\n            uVar5 = 100;\n          }\n          *(undefined1 *)(iVar7 + 9) = uVar5;\n        }\n        iVar7 = FUN_00058850();\n        if (iVar7 == 0) {\n          local_34 = *(char **)(param_1 + 0x6c);\n          goto LAB_000596be;\n        }\n      }\n      else {\nLAB_000596be:\n        if ((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;\n        iVar7 = FUN_00037780();\n      }\n      if (*(int *)(param_1 + 0x6c) != 0) {\n        FUN_0001f280();\n      }\n    }\n  }\n  cVar4 = *(char *)(param_1 + 0x3c) + -1;\n  *(char *)(param_1 + 0x3c) = cVar4;\n  *(undefined4 *)(param_1 + 0x6c) = *(undefined4 *)(param_1 + 0x70 + cVar4 * 4);\nLAB_00059704:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000d1450();\n  }\n  return iVar7;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "char cVar4;" (primitive_type "char") (identifier "cVar4") (; ";")) (declaration "undefined1 uVar5;" (type_identifier "undefined1") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "char *local_34;" (primitive_type "char") (pointer_declarator "*local_34" (* "*") (identifier "local_34")) (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x5962b;" (assignment_expression "uStack_14 = 0x5962b" (identifier "uStack_14") (= "=") (number_literal "0x5962b")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "cVar4 = *(char *)(param_1 + 0x3c);" (assignment_expression "cVar4 = *(char *)(param_1 + 0x3c)" (identifier "cVar4") (= "=") (pointer_expression "*(char *)(param_1 + 0x3c)" (* "*") (cast_expression "(char *)(param_1 + 0x3c)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3c)" (( "(") (binary_expression "param_1 + 0x3c" (identifier "param_1") (+ "+") (number_literal "0x3c")) () ")"))))) (; ";")) (if_statement "if ('\x12' < cVar4) {\n    iVar7 = sqlite3_sourceid();\n    sqlite3_log(0xb,"%s at line %d of [%.10s]","database corruption",0x10fd1,iVar7 + 0x14);\n    iVar7 = 0xb;\n    goto LAB_00059704;\n  }" (if "if") (parenthesized_expression "('\x12' < cVar4)" (( "(") (binary_expression "'\x12' < cVar4" (char_literal "'\x12'" (' "'") (escape_sequence "\x12") (' "'")) (< "<") (identifier "cVar4")) () ")")) (compound_statement "{\n    iVar7 = sqlite3_sourceid();\n    sqlite3_log(0xb,"%s at line %d of [%.10s]","database corruption",0x10fd1,iVar7 + 0x14);\n    iVar7 = 0xb;\n    goto LAB_00059704;\n  }" ({ "{") (expression_statement "iVar7 = sqlite3_sourceid();" (assignment_expression "iVar7 = sqlite3_sourceid()" (identifier "iVar7") (= "=") (call_expression "sqlite3_sourceid()" (identifier "sqlite3_sourceid") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "sqlite3_log(0xb,"%s at line %d of [%.10s]","database corruption",0x10fd1,iVar7 + 0x14);" (call_expression "sqlite3_log(0xb,"%s at line %d of [%.10s]","database corruption",0x10fd1,iVar7 + 0x14)" (identifier "sqlite3_log") (argument_list "(0xb,"%s at line %d of [%.10s]","database corruption",0x10fd1,iVar7 + 0x14)" (( "(") (number_literal "0xb") (, ",") (string_literal ""%s at line %d of [%.10s]"" (" """) (string_content "%s at line %d of [%.10s]") (" """)) (, ",") (string_literal ""database corruption"" (" """) (string_content "database corruption") (" """)) (, ",") (number_literal "0x10fd1") (, ",") (binary_expression "iVar7 + 0x14" (identifier "iVar7") (+ "+") (number_literal "0x14")) () ")"))) (; ";")) (expression_statement "iVar7 = 0xb;" (assignment_expression "iVar7 = 0xb" (identifier "iVar7") (= "=") (number_literal "0xb")) (; ";")) (goto_statement "goto LAB_00059704;" (goto "goto") (statement_identifier "LAB_00059704") (; ";")) (} "}"))) (expression_statement "*(undefined2 *)(param_1 + 0x2e) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0x2e) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0x2e)" (* "*") (cast_expression "(undefined2 *)(param_1 + 0x2e)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2e)" (( "(") (binary_expression "param_1 + 0x2e" (identifier "param_1") (+ "+") (number_literal "0x2e")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar2 = *(int **)(param_1 + 0x14);" (assignment_expression "piVar2 = *(int **)(param_1 + 0x14)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(param_1 + 0x14)" (* "*") (cast_expression "(int **)(param_1 + 0x14)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "*(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;" (assignment_expression "*(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9" (pointer_expression "*(byte *)(param_1 + 1)" (* "*") (cast_expression "(byte *)(param_1 + 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")")))) (= "=") (binary_expression "*(byte *)(param_1 + 1) & 0xf9" (pointer_expression "*(byte *)(param_1 + 1)" (* "*") (cast_expression "(byte *)(param_1 + 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")")))) (& "&") (number_literal "0xf9"))) (; ";")) (expression_statement "*(undefined2 *)(param_1 + 0x40 + cVar4 * 2) = *(undefined2 *)(param_1 + 0x3e);" (assignment_expression "*(undefined2 *)(param_1 + 0x40 + cVar4 * 2) = *(undefined2 *)(param_1 + 0x3e)" (pointer_expression "*(undefined2 *)(param_1 + 0x40 + cVar4 * 2)" (* "*") (cast_expression "(undefined2 *)(param_1 + 0x40 + cVar4 * 2)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40 + cVar4 * 2)" (( "(") (binary_expression "param_1 + 0x40 + cVar4 * 2" (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) (+ "+") (binary_expression "cVar4 * 2" (identifier "cVar4") (* "*") (number_literal "2"))) () ")")))) (= "=") (pointer_expression "*(undefined2 *)(param_1 + 0x3e)" (* "*") (cast_expression "(undefined2 *)(param_1 + 0x3e)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3e)" (( "(") (binary_expression "param_1 + 0x3e" (identifier "param_1") (+ "+") (number_literal "0x3e")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x70 + cVar4 * 4) = *(undefined4 *)(param_1 + 0x6c);" (assignment_expression "*(undefined4 *)(param_1 + 0x70 + cVar4 * 4) = *(undefined4 *)(param_1 + 0x6c)" (pointer_expression "*(undefined4 *)(param_1 + 0x70 + cVar4 * 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x70 + cVar4 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70 + cVar4 * 4)" (( "(") (binary_expression "param_1 + 0x70 + cVar4 * 4" (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) (+ "+") (binary_expression "cVar4 * 4" (identifier "cVar4") (* "*") (number_literal "4"))) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x6c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x6c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")"))))) (; ";")) (expression_statement "*(char *)(param_1 + 0x3c) = cVar4 + '\x01';" (assignment_expression "*(char *)(param_1 + 0x3c) = cVar4 + '\x01'" (pointer_expression "*(char *)(param_1 + 0x3c)" (* "*") (cast_expression "(char *)(param_1 + 0x3c)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3c)" (( "(") (binary_expression "param_1 + 0x3c" (identifier "param_1") (+ "+") (number_literal "0x3c")) () ")")))) (= "=") (binary_expression "cVar4 + '\x01'" (identifier "cVar4") (+ "+") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'")))) (; ";")) (expression_statement "uVar1 = piVar2[0xc];" (assignment_expression "uVar1 = piVar2[0xc]" (identifier "uVar1") (= "=") (subscript_expression "piVar2[0xc]" (identifier "piVar2") ([ "[") (number_literal "0xc") (] "]"))) (; ";")) (expression_statement "*(undefined2 *)(param_1 + 0x3e) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0x3e) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0x3e)" (* "*") (cast_expression "(undefined2 *)(param_1 + 0x3e)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3e)" (( "(") (binary_expression "param_1 + 0x3e" (identifier "param_1") (+ "+") (number_literal "0x3e")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if (uVar1 < param_2) {\n    iVar7 = FUN_00037780();\n  }\n  else {\n    iVar6 = (**(code **)(*piVar2 + 200))(*piVar2,param_2,&local_24,*(undefined1 *)(param_1 + 2));\n    iVar7 = iVar6;\n    if (iVar6 == 0) {\n      local_34 = *(char **)(local_24 + 8);\n      *(char **)(param_1 + 0x6c) = local_34;\n      if (*local_34 == '\0') {\n        iVar7 = *(int *)(local_24 + 8);\n        if (param_2 != *(uint *)(iVar7 + 4)) {\n          uVar3 = *(undefined4 *)(local_24 + 4);\n          *(int *)(iVar7 + 0x48) = local_24;\n          *(int **)(iVar7 + 0x34) = piVar2;\n          *(uint *)(iVar7 + 4) = param_2;\n          *(undefined4 *)(iVar7 + 0x38) = uVar3;\n          uVar5 = 0;\n          if (param_2 == 1) {\n            uVar5 = 100;\n          }\n          *(undefined1 *)(iVar7 + 9) = uVar5;\n        }\n        iVar7 = FUN_00058850();\n        if (iVar7 == 0) {\n          local_34 = *(char **)(param_1 + 0x6c);\n          goto LAB_000596be;\n        }\n      }\n      else {\nLAB_000596be:\n        if ((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;\n        iVar7 = FUN_00037780();\n      }\n      if (*(int *)(param_1 + 0x6c) != 0) {\n        FUN_0001f280();\n      }\n    }\n  }" (if "if") (parenthesized_expression "(uVar1 < param_2)" (( "(") (binary_expression "uVar1 < param_2" (identifier "uVar1") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n    iVar7 = FUN_00037780();\n  }" ({ "{") (expression_statement "iVar7 = FUN_00037780();" (assignment_expression "iVar7 = FUN_00037780()" (identifier "iVar7") (= "=") (call_expression "FUN_00037780()" (identifier "FUN_00037780") (argument_list "()" (( "(") () ")")))) (; ";")) (} "}")) (else_clause "else {\n    iVar6 = (**(code **)(*piVar2 + 200))(*piVar2,param_2,&local_24,*(undefined1 *)(param_1 + 2));\n    iVar7 = iVar6;\n    if (iVar6 == 0) {\n      local_34 = *(char **)(local_24 + 8);\n      *(char **)(param_1 + 0x6c) = local_34;\n      if (*local_34 == '\0') {\n        iVar7 = *(int *)(local_24 + 8);\n        if (param_2 != *(uint *)(iVar7 + 4)) {\n          uVar3 = *(undefined4 *)(local_24 + 4);\n          *(int *)(iVar7 + 0x48) = local_24;\n          *(int **)(iVar7 + 0x34) = piVar2;\n          *(uint *)(iVar7 + 4) = param_2;\n          *(undefined4 *)(iVar7 + 0x38) = uVar3;\n          uVar5 = 0;\n          if (param_2 == 1) {\n            uVar5 = 100;\n          }\n          *(undefined1 *)(iVar7 + 9) = uVar5;\n        }\n        iVar7 = FUN_00058850();\n        if (iVar7 == 0) {\n          local_34 = *(char **)(param_1 + 0x6c);\n          goto LAB_000596be;\n        }\n      }\n      else {\nLAB_000596be:\n        if ((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;\n        iVar7 = FUN_00037780();\n      }\n      if (*(int *)(param_1 + 0x6c) != 0) {\n        FUN_0001f280();\n      }\n    }\n  }" (else "else") (compound_statement "{\n    iVar6 = (**(code **)(*piVar2 + 200))(*piVar2,param_2,&local_24,*(undefined1 *)(param_1 + 2));\n    iVar7 = iVar6;\n    if (iVar6 == 0) {\n      local_34 = *(char **)(local_24 + 8);\n      *(char **)(param_1 + 0x6c) = local_34;\n      if (*local_34 == '\0') {\n        iVar7 = *(int *)(local_24 + 8);\n        if (param_2 != *(uint *)(iVar7 + 4)) {\n          uVar3 = *(undefined4 *)(local_24 + 4);\n          *(int *)(iVar7 + 0x48) = local_24;\n          *(int **)(iVar7 + 0x34) = piVar2;\n          *(uint *)(iVar7 + 4) = param_2;\n          *(undefined4 *)(iVar7 + 0x38) = uVar3;\n          uVar5 = 0;\n          if (param_2 == 1) {\n            uVar5 = 100;\n          }\n          *(undefined1 *)(iVar7 + 9) = uVar5;\n        }\n        iVar7 = FUN_00058850();\n        if (iVar7 == 0) {\n          local_34 = *(char **)(param_1 + 0x6c);\n          goto LAB_000596be;\n        }\n      }\n      else {\nLAB_000596be:\n        if ((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;\n        iVar7 = FUN_00037780();\n      }\n      if (*(int *)(param_1 + 0x6c) != 0) {\n        FUN_0001f280();\n      }\n    }\n  }" ({ "{") (expression_statement "iVar6 = (**(code **)(*piVar2 + 200))(*piVar2,param_2,&local_24,*(undefined1 *)(param_1 + 2));" (assignment_expression "iVar6 = (**(code **)(*piVar2 + 200))(*piVar2,param_2,&local_24,*(undefined1 *)(param_1 + 2))" (identifier "iVar6") (= "=") (call_expression "(**(code **)(*piVar2 + 200))(*piVar2,param_2,&local_24,*(undefined1 *)(param_1 + 2))" (parenthesized_expression "(**(code **)(*piVar2 + 200))" (( "(") (pointer_expression "**(code **)(*piVar2 + 200)" (* "*") (pointer_expression "*(code **)(*piVar2 + 200)" (* "*") (cast_expression "(code **)(*piVar2 + 200)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar2 + 200)" (( "(") (binary_expression "*piVar2 + 200" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (number_literal "200")) () ")"))))) () ")")) (argument_list "(*piVar2,param_2,&local_24,*(undefined1 *)(param_1 + 2))" (( "(") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (, ",") (identifier "param_2") (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) (, ",") (pointer_expression "*(undefined1 *)(param_1 + 2)" (* "*") (cast_expression "(undefined1 *)(param_1 + 2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) () ")")))) (; ";")) (expression_statement "iVar7 = iVar6;" (assignment_expression "iVar7 = iVar6" (identifier "iVar7") (= "=") (identifier "iVar6")) (; ";")) (if_statement "if (iVar6 == 0) {\n      local_34 = *(char **)(local_24 + 8);\n      *(char **)(param_1 + 0x6c) = local_34;\n      if (*local_34 == '\0') {\n        iVar7 = *(int *)(local_24 + 8);\n        if (param_2 != *(uint *)(iVar7 + 4)) {\n          uVar3 = *(undefined4 *)(local_24 + 4);\n          *(int *)(iVar7 + 0x48) = local_24;\n          *(int **)(iVar7 + 0x34) = piVar2;\n          *(uint *)(iVar7 + 4) = param_2;\n          *(undefined4 *)(iVar7 + 0x38) = uVar3;\n          uVar5 = 0;\n          if (param_2 == 1) {\n            uVar5 = 100;\n          }\n          *(undefined1 *)(iVar7 + 9) = uVar5;\n        }\n        iVar7 = FUN_00058850();\n        if (iVar7 == 0) {\n          local_34 = *(char **)(param_1 + 0x6c);\n          goto LAB_000596be;\n        }\n      }\n      else {\nLAB_000596be:\n        if ((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;\n        iVar7 = FUN_00037780();\n      }\n      if (*(int *)(param_1 + 0x6c) != 0) {\n        FUN_0001f280();\n      }\n    }" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      local_34 = *(char **)(local_24 + 8);\n      *(char **)(param_1 + 0x6c) = local_34;\n      if (*local_34 == '\0') {\n        iVar7 = *(int *)(local_24 + 8);\n        if (param_2 != *(uint *)(iVar7 + 4)) {\n          uVar3 = *(undefined4 *)(local_24 + 4);\n          *(int *)(iVar7 + 0x48) = local_24;\n          *(int **)(iVar7 + 0x34) = piVar2;\n          *(uint *)(iVar7 + 4) = param_2;\n          *(undefined4 *)(iVar7 + 0x38) = uVar3;\n          uVar5 = 0;\n          if (param_2 == 1) {\n            uVar5 = 100;\n          }\n          *(undefined1 *)(iVar7 + 9) = uVar5;\n        }\n        iVar7 = FUN_00058850();\n        if (iVar7 == 0) {\n          local_34 = *(char **)(param_1 + 0x6c);\n          goto LAB_000596be;\n        }\n      }\n      else {\nLAB_000596be:\n        if ((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;\n        iVar7 = FUN_00037780();\n      }\n      if (*(int *)(param_1 + 0x6c) != 0) {\n        FUN_0001f280();\n      }\n    }" ({ "{") (expression_statement "local_34 = *(char **)(local_24 + 8);" (assignment_expression "local_34 = *(char **)(local_24 + 8)" (identifier "local_34") (= "=") (pointer_expression "*(char **)(local_24 + 8)" (* "*") (cast_expression "(char **)(local_24 + 8)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(local_24 + 8)" (( "(") (binary_expression "local_24 + 8" (identifier "local_24") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "*(char **)(param_1 + 0x6c) = local_34;" (assignment_expression "*(char **)(param_1 + 0x6c) = local_34" (pointer_expression "*(char **)(param_1 + 0x6c)" (* "*") (cast_expression "(char **)(param_1 + 0x6c)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")")))) (= "=") (identifier "local_34")) (; ";")) (if_statement "if (*local_34 == '\0') {\n        iVar7 = *(int *)(local_24 + 8);\n        if (param_2 != *(uint *)(iVar7 + 4)) {\n          uVar3 = *(undefined4 *)(local_24 + 4);\n          *(int *)(iVar7 + 0x48) = local_24;\n          *(int **)(iVar7 + 0x34) = piVar2;\n          *(uint *)(iVar7 + 4) = param_2;\n          *(undefined4 *)(iVar7 + 0x38) = uVar3;\n          uVar5 = 0;\n          if (param_2 == 1) {\n            uVar5 = 100;\n          }\n          *(undefined1 *)(iVar7 + 9) = uVar5;\n        }\n        iVar7 = FUN_00058850();\n        if (iVar7 == 0) {\n          local_34 = *(char **)(param_1 + 0x6c);\n          goto LAB_000596be;\n        }\n      }\n      else {\nLAB_000596be:\n        if ((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;\n        iVar7 = FUN_00037780();\n      }" (if "if") (parenthesized_expression "(*local_34 == '\0')" (( "(") (binary_expression "*local_34 == '\0'" (pointer_expression "*local_34" (* "*") (identifier "local_34")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        iVar7 = *(int *)(local_24 + 8);\n        if (param_2 != *(uint *)(iVar7 + 4)) {\n          uVar3 = *(undefined4 *)(local_24 + 4);\n          *(int *)(iVar7 + 0x48) = local_24;\n          *(int **)(iVar7 + 0x34) = piVar2;\n          *(uint *)(iVar7 + 4) = param_2;\n          *(undefined4 *)(iVar7 + 0x38) = uVar3;\n          uVar5 = 0;\n          if (param_2 == 1) {\n            uVar5 = 100;\n          }\n          *(undefined1 *)(iVar7 + 9) = uVar5;\n        }\n        iVar7 = FUN_00058850();\n        if (iVar7 == 0) {\n          local_34 = *(char **)(param_1 + 0x6c);\n          goto LAB_000596be;\n        }\n      }" ({ "{") (expression_statement "iVar7 = *(int *)(local_24 + 8);" (assignment_expression "iVar7 = *(int *)(local_24 + 8)" (identifier "iVar7") (= "=") (pointer_expression "*(int *)(local_24 + 8)" (* "*") (cast_expression "(int *)(local_24 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_24 + 8)" (( "(") (binary_expression "local_24 + 8" (identifier "local_24") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if (param_2 != *(uint *)(iVar7 + 4)) {\n          uVar3 = *(undefined4 *)(local_24 + 4);\n          *(int *)(iVar7 + 0x48) = local_24;\n          *(int **)(iVar7 + 0x34) = piVar2;\n          *(uint *)(iVar7 + 4) = param_2;\n          *(undefined4 *)(iVar7 + 0x38) = uVar3;\n          uVar5 = 0;\n          if (param_2 == 1) {\n            uVar5 = 100;\n          }\n          *(undefined1 *)(iVar7 + 9) = uVar5;\n        }" (if "if") (parenthesized_expression "(param_2 != *(uint *)(iVar7 + 4))" (( "(") (binary_expression "param_2 != *(uint *)(iVar7 + 4)" (identifier "param_2") (!= "!=") (pointer_expression "*(uint *)(iVar7 + 4)" (* "*") (cast_expression "(uint *)(iVar7 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 4)" (( "(") (binary_expression "iVar7 + 4" (identifier "iVar7") (+ "+") (number_literal "4")) () ")"))))) () ")")) (compound_statement "{\n          uVar3 = *(undefined4 *)(local_24 + 4);\n          *(int *)(iVar7 + 0x48) = local_24;\n          *(int **)(iVar7 + 0x34) = piVar2;\n          *(uint *)(iVar7 + 4) = param_2;\n          *(undefined4 *)(iVar7 + 0x38) = uVar3;\n          uVar5 = 0;\n          if (param_2 == 1) {\n            uVar5 = 100;\n          }\n          *(undefined1 *)(iVar7 + 9) = uVar5;\n        }" ({ "{") (expression_statement "uVar3 = *(undefined4 *)(local_24 + 4);" (assignment_expression "uVar3 = *(undefined4 *)(local_24 + 4)" (identifier "uVar3") (= "=") (pointer_expression "*(undefined4 *)(local_24 + 4)" (* "*") (cast_expression "(undefined4 *)(local_24 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_24 + 4)" (( "(") (binary_expression "local_24 + 4" (identifier "local_24") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "*(int *)(iVar7 + 0x48) = local_24;" (assignment_expression "*(int *)(iVar7 + 0x48) = local_24" (pointer_expression "*(int *)(iVar7 + 0x48)" (* "*") (cast_expression "(int *)(iVar7 + 0x48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x48)" (( "(") (binary_expression "iVar7 + 0x48" (identifier "iVar7") (+ "+") (number_literal "0x48")) () ")")))) (= "=") (identifier "local_24")) (; ";")) (expression_statement "*(int **)(iVar7 + 0x34) = piVar2;" (assignment_expression "*(int **)(iVar7 + 0x34) = piVar2" (pointer_expression "*(int **)(iVar7 + 0x34)" (* "*") (cast_expression "(int **)(iVar7 + 0x34)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar7 + 0x34)" (( "(") (binary_expression "iVar7 + 0x34" (identifier "iVar7") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (identifier "piVar2")) (; ";")) (expression_statement "*(uint *)(iVar7 + 4) = param_2;" (assignment_expression "*(uint *)(iVar7 + 4) = param_2" (pointer_expression "*(uint *)(iVar7 + 4)" (* "*") (cast_expression "(uint *)(iVar7 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 4)" (( "(") (binary_expression "iVar7 + 4" (identifier "iVar7") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(undefined4 *)(iVar7 + 0x38) = uVar3;" (assignment_expression "*(undefined4 *)(iVar7 + 0x38) = uVar3" (pointer_expression "*(undefined4 *)(iVar7 + 0x38)" (* "*") (cast_expression "(undefined4 *)(iVar7 + 0x38)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x38)" (( "(") (binary_expression "iVar7 + 0x38" (identifier "iVar7") (+ "+") (number_literal "0x38")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" (identifier "uVar5") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_2 == 1) {\n            uVar5 = 100;\n          }" (if "if") (parenthesized_expression "(param_2 == 1)" (( "(") (binary_expression "param_2 == 1" (identifier "param_2") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            uVar5 = 100;\n          }" ({ "{") (expression_statement "uVar5 = 100;" (assignment_expression "uVar5 = 100" (identifier "uVar5") (= "=") (number_literal "100")) (; ";")) (} "}"))) (expression_statement "*(undefined1 *)(iVar7 + 9) = uVar5;" (assignment_expression "*(undefined1 *)(iVar7 + 9) = uVar5" (pointer_expression "*(undefined1 *)(iVar7 + 9)" (* "*") (cast_expression "(undefined1 *)(iVar7 + 9)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 9)" (( "(") (binary_expression "iVar7 + 9" (identifier "iVar7") (+ "+") (number_literal "9")) () ")")))) (= "=") (identifier "uVar5")) (; ";")) (} "}"))) (expression_statement "iVar7 = FUN_00058850();" (assignment_expression "iVar7 = FUN_00058850()" (identifier "iVar7") (= "=") (call_expression "FUN_00058850()" (identifier "FUN_00058850") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar7 == 0) {\n          local_34 = *(char **)(param_1 + 0x6c);\n          goto LAB_000596be;\n        }" (if "if") (parenthesized_expression "(iVar7 == 0)" (( "(") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          local_34 = *(char **)(param_1 + 0x6c);\n          goto LAB_000596be;\n        }" ({ "{") (expression_statement "local_34 = *(char **)(param_1 + 0x6c);" (assignment_expression "local_34 = *(char **)(param_1 + 0x6c)" (identifier "local_34") (= "=") (pointer_expression "*(char **)(param_1 + 0x6c)" (* "*") (cast_expression "(char **)(param_1 + 0x6c)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")"))))) (; ";")) (goto_statement "goto LAB_000596be;" (goto "goto") (statement_identifier "LAB_000596be") (; ";")) (} "}"))) (} "}")) (else_clause "else {\nLAB_000596be:\n        if ((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;\n        iVar7 = FUN_00037780();\n      }" (else "else") (compound_statement "{\nLAB_000596be:\n        if ((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;\n        iVar7 = FUN_00037780();\n      }" ({ "{") (labeled_statement "LAB_000596be:\n        if ((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;" (statement_identifier "LAB_000596be") (: ":") (if_statement "if ((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;" (if "if") (parenthesized_expression "((*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d)))" (( "(") (binary_expression "(*(short *)(local_34 + 0x18) != 0) &&\n           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))" (parenthesized_expression "(*(short *)(local_34 + 0x18) != 0)" (( "(") (binary_expression "*(short *)(local_34 + 0x18) != 0" (pointer_expression "*(short *)(local_34 + 0x18)" (* "*") (cast_expression "(short *)(local_34 + 0x18)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_34 + 0x18)" (( "(") (binary_expression "local_34 + 0x18" (identifier "local_34") (+ "+") (number_literal "0x18")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))" (( "(") (comma_expression "iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d)" (assignment_expression "iVar7 = iVar6" (identifier "iVar7") (= "=") (identifier "iVar6")) (, ",") (binary_expression "local_34[2] == *(char *)(param_1 + 0x3d)" (subscript_expression "local_34[2]" (identifier "local_34") ([ "[") (number_literal "2") (] "]")) (== "==") (pointer_expression "*(char *)(param_1 + 0x3d)" (* "*") (cast_expression "(char *)(param_1 + 0x3d)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3d)" (( "(") (binary_expression "param_1 + 0x3d" (identifier "param_1") (+ "+") (number_literal "0x3d")) () ")")))))) () ")"))) () ")")) (goto_statement "goto LAB_00059704;" (goto "goto") (statement_identifier "LAB_00059704") (; ";")))) (expression_statement "iVar7 = FUN_00037780();" (assignment_expression "iVar7 = FUN_00037780()" (identifier "iVar7") (= "=") (call_expression "FUN_00037780()" (identifier "FUN_00037780") (argument_list "()" (( "(") () ")")))) (; ";")) (} "}")))) (if_statement "if (*(int *)(param_1 + 0x6c) != 0) {\n        FUN_0001f280();\n      }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x6c) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x6c) != 0" (pointer_expression "*(int *)(param_1 + 0x6c)" (* "*") (cast_expression "(int *)(param_1 + 0x6c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_0001f280();\n      }" ({ "{") (expression_statement "FUN_0001f280();" (call_expression "FUN_0001f280()" (identifier "FUN_0001f280") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (} "}"))) (} "}")))) (expression_statement "cVar4 = *(char *)(param_1 + 0x3c) + -1;" (assignment_expression "cVar4 = *(char *)(param_1 + 0x3c) + -1" (identifier "cVar4") (= "=") (binary_expression "*(char *)(param_1 + 0x3c) + -1" (pointer_expression "*(char *)(param_1 + 0x3c)" (* "*") (cast_expression "(char *)(param_1 + 0x3c)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3c)" (( "(") (binary_expression "param_1 + 0x3c" (identifier "param_1") (+ "+") (number_literal "0x3c")) () ")")))) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*(char *)(param_1 + 0x3c) = cVar4;" (assignment_expression "*(char *)(param_1 + 0x3c) = cVar4" (pointer_expression "*(char *)(param_1 + 0x3c)" (* "*") (cast_expression "(char *)(param_1 + 0x3c)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3c)" (( "(") (binary_expression "param_1 + 0x3c" (identifier "param_1") (+ "+") (number_literal "0x3c")) () ")")))) (= "=") (identifier "cVar4")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x6c) = *(undefined4 *)(param_1 + 0x70 + cVar4 * 4);" (assignment_expression "*(undefined4 *)(param_1 + 0x6c) = *(undefined4 *)(param_1 + 0x70 + cVar4 * 4)" (pointer_expression "*(undefined4 *)(param_1 + 0x6c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x6c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x70 + cVar4 * 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x70 + cVar4 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70 + cVar4 * 4)" (( "(") (binary_expression "param_1 + 0x70 + cVar4 * 4" (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) (+ "+") (binary_expression "cVar4 * 4" (identifier "cVar4") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (labeled_statement "LAB_00059704:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000d1450();\n  }" (statement_identifier "LAB_00059704") (: ":") (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000d1450();\n  }" (if "if") (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_000d1450();\n  }" ({ "{") (expression_statement "FUN_000d1450();" (call_expression "FUN_000d1450()" (identifier "FUN_000d1450") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return iVar7;" (return "return") (identifier "iVar7") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int __regparm3 function_1(type_1 *pCur,type_2 var_7)

{
  type_3 var_6;
  type_4 uVar2;
  type_5 *pBVar3;
  void *pvVar4;
  void *pvVar5;
  char var_2;
  type_6 uVar7;
  int var_9;
  int var_11;
  char *var_5;
  int var_1;
  type_7 *local_34;
  type_8 *pDbPage;
  int var_13;
  type_9 uStack_14;
  
  uStack_14 = 0x5962b;
  var_13 = *(int *)(var_1 + 0x14);
  var_2 = pCur->iPage;
  if ('\x12' < var_2) {
    var_5 = var_3();
    var_4(0xb,"%s at line %d of [%.10s]","database corruption",0x10fd1,var_5 + 0x14);
    var_11 = 0xb;
    goto LAB_00059704;
  }
  uVar2 = pCur->ix;
  (pCur->info).nSize = 0;
  pBVar3 = pCur->pBt;
  pCur->curFlags = pCur->curFlags & 0xf9;
  pCur->aiIdx[var_2] = uVar2;
  pCur->apPage[var_2] = pCur->pPage;
  pCur->iPage = var_2 + '\x01';
  var_6 = pBVar3->nPage;
  pCur->ix = 0;
  if (var_6 < var_7) {
    var_11 = var_8(0x10464);
  }
  else {
    var_9 = (*pBVar3->pPager->xGet)(pBVar3->pPager,var_7,&pDbPage,(int)pCur->curPagerFlags);
    var_11 = var_9;
    if (var_9 == 0) {
      local_34 = (type_7 *)pDbPage->pExtra;
      pCur->pPage = local_34;
      if (local_34->isInit == '\0') {
        pvVar4 = pDbPage->pExtra;
        if (var_7 != *(type_2 *)((int)pvVar4 + 4)) {
          pvVar5 = pDbPage->pData;
          *(type_8 **)((int)pvVar4 + 0x48) = pDbPage;
          *(type_5 **)((int)pvVar4 + 0x34) = pBVar3;
          *(type_2 *)((int)pvVar4 + 4) = var_7;
          *(void **)((int)pvVar4 + 0x38) = pvVar5;
          uVar7 = 0;
          if (var_7 == 1) {
            uVar7 = 100;
          }
          *(type_6 *)((int)pvVar4 + 9) = uVar7;
        }
        var_11 = var_10(local_34);
        if (var_11 == 0) {
          local_34 = pCur->pPage;
          goto LAB_000596be;
        }
      }
      else {
LAB_000596be:
        if ((local_34->nCell != 0) && (var_11 = var_9, local_34->intKey == pCur->curIntKey))
        goto LAB_00059704;
        var_11 = var_8(0x10479);
      }
      if (pCur->pPage != (type_7 *)0x0) {
        var_12(pCur->pPage->pDbPage);
      }
    }
  }
  var_2 = pCur->iPage + -1;
  pCur->iPage = var_2;
  pCur->pPage = pCur->apPage[var_2];
LAB_00059704:
  if (var_13 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_14();
  }
  return var_11;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int __regparm3 MASKED(int param_1,uint param_2)

{
  uint uVar1;
  int *piVar2;
  undefined4 uVar3;
  char cVar4;
  undefined1 uVar5;
  int iVar6;
  int iVar7;
  int in_GS_OFFSET;
  char *local_34;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x5962b;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  cVar4 = *(char *)(param_1 + 0x3c);
  if ('\x12' < cVar4) {
    iVar7 = sqlite3_sourceid();
    sqlite3_log(0xb,"%s at line %d of [%.10s]","database corruption",0x10fd1,iVar7 + 0x14);
    iVar7 = 0xb;
    goto LAB_00059704;
  }
  *(undefined2 *)(param_1 + 0x2e) = 0;
  piVar2 = *(int **)(param_1 + 0x14);
  *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;
  *(undefined2 *)(param_1 + 0x40 + cVar4 * 2) = *(undefined2 *)(param_1 + 0x3e);
  *(undefined4 *)(param_1 + 0x70 + cVar4 * 4) = *(undefined4 *)(param_1 + 0x6c);
  *(char *)(param_1 + 0x3c) = cVar4 + '\x01';
  uVar1 = piVar2[0xc];
  *(undefined2 *)(param_1 + 0x3e) = 0;
  if (uVar1 < param_2) {
    iVar7 = FUN_00037780();
  }
  else {
    iVar6 = (**(code **)(*piVar2 + 200))(*piVar2,param_2,&local_24,*(undefined1 *)(param_1 + 2));
    iVar7 = iVar6;
    if (iVar6 == 0) {
      local_34 = *(char **)(local_24 + 8);
      *(char **)(param_1 + 0x6c) = local_34;
      if (*local_34 == '\0') {
        iVar7 = *(int *)(local_24 + 8);
        if (param_2 != *(uint *)(iVar7 + 4)) {
          uVar3 = *(undefined4 *)(local_24 + 4);
          *(int *)(iVar7 + 0x48) = local_24;
          *(int **)(iVar7 + 0x34) = piVar2;
          *(uint *)(iVar7 + 4) = param_2;
          *(undefined4 *)(iVar7 + 0x38) = uVar3;
          uVar5 = 0;
          if (param_2 == 1) {
            uVar5 = 100;
          }
          *(undefined1 *)(iVar7 + 9) = uVar5;
        }
        iVar7 = FUN_00058850();
        if (iVar7 == 0) {
          local_34 = *(char **)(param_1 + 0x6c);
          goto LAB_000596be;
        }
      }
      else {
LAB_000596be:
        if ((*(short *)(local_34 + 0x18) != 0) &&
           (iVar7 = iVar6, local_34[2] == *(char *)(param_1 + 0x3d))) goto LAB_00059704;
        iVar7 = FUN_00037780();
      }
      if (*(int *)(param_1 + 0x6c) != 0) {
        FUN_0001f280();
      }
    }
  }
  cVar4 = *(char *)(param_1 + 0x3c) + -1;
  *(char *)(param_1 + 0x3c) = cVar4;
  *(undefined4 *)(param_1 + 0x6c) = *(undefined4 *)(param_1 + 0x70 + cVar4 * 4);
LAB_00059704:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_000d1450();
  }
  return iVar7;
}

