
int completionNext(sqlite3_vtab_cursor *cur)

{
  int iVar1;
  int iVar2;
  sqlite3_vtab *psVar3;
  uchar *puVar4;
  char *pcVar5;
  char *pcVar6;
  undefined4 uVar7;
  long in_FS_OFFSET;
  sqlite3_stmt *pS2;
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  cur[8].pVtab = (sqlite3_vtab *)((long)&(cur[8].pVtab)->pModule + 1);
  iVar2 = -1;
  uVar7 = 0;
LAB_00112674:
  iVar1 = *(int *)&cur[9].pVtab;
  if (iVar1 == 0xb) {
    iVar1 = 0;
    goto LAB_00112860;
  }
  if (iVar1 == 7) {
    iVar2 = 1;
    uVar7 = 8;
    if (cur[7].pVtab == (sqlite3_vtab *)0x0) {
      sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,
                         (sqlite3_stmt **)(cur + 7),(char **)0x0);
    }
LAB_00112631:
    iVar1 = sqlite3_step((sqlite3_stmt *)cur[7].pVtab);
    if (iVar1 != 100) {
      sqlite3_finalize((sqlite3_stmt *)cur[7].pVtab);
      cur[7].pVtab = (sqlite3_vtab *)0x0;
      *(undefined4 *)&cur[9].pVtab = uVar7;
      goto LAB_00112674;
    }
    psVar3 = (sqlite3_vtab *)sqlite3_column_text((sqlite3_stmt *)cur[7].pVtab,iVar2);
    cur[5].pVtab = psVar3;
    iVar1 = sqlite3_column_bytes((sqlite3_stmt *)cur[7].pVtab,iVar2);
    *(int *)&cur[6].pVtab = iVar1;
  }
  else {
    if (7 < iVar1) {
      if (iVar1 == 8) {
        iVar2 = 0;
        uVar7 = 9;
        if (cur[7].pVtab == (sqlite3_vtab *)0x0) {
          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,&pS2,(char **)0x0);
          pcVar5 = (char *)0x0;
          pcVar6 = "";
          while (iVar2 = sqlite3_step(pS2), iVar2 == 100) {
            puVar4 = sqlite3_column_text(pS2,1);
            pcVar5 = sqlite3_mprintf("%z%sSELECT name FROM \"%w\".sqlite_master",pcVar5,pcVar6,
                                     puVar4);
            pcVar6 = " UNION ";
            if (pcVar5 == (char *)0x0) {
              iVar1 = 7;
              goto LAB_00112860;
            }
          }
          sqlite3_finalize(pS2);
          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,pcVar5,-1,(sqlite3_stmt **)(cur + 7),
                             (char **)0x0);
          sqlite3_free(pcVar5);
          iVar2 = 0;
          uVar7 = 9;
        }
      }
      else {
        if (iVar1 != 9) goto LAB_00112810;
        iVar2 = 0;
        uVar7 = 0xb;
        if (cur[7].pVtab == (sqlite3_vtab *)0x0) {
          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,&pS2,(char **)0x0);
          pcVar5 = (char *)0x0;
          pcVar6 = "";
          while (iVar2 = sqlite3_step(pS2), iVar2 == 100) {
            puVar4 = sqlite3_column_text(pS2,1);
            pcVar5 = sqlite3_mprintf("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"
                                     ,pcVar5,pcVar6,puVar4,puVar4);
            pcVar6 = " UNION ";
            if (pcVar5 == (char *)0x0) {
              iVar1 = 7;
              goto LAB_00112860;
            }
          }
          sqlite3_finalize(pS2);
          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,pcVar5,-1,(sqlite3_stmt **)(cur + 7),
                             (char **)0x0);
          sqlite3_free(pcVar5);
          iVar2 = 0;
          uVar7 = 0xb;
        }
      }
      goto LAB_00112631;
    }
    if (iVar1 == 1) {
      iVar2 = *(int *)((long)&cur[9].pVtab + 4);
      iVar1 = sqlite3_keyword_count();
      if (iVar1 <= iVar2) {
        cur[5].pVtab = (sqlite3_vtab *)0x0;
        *(undefined4 *)&cur[9].pVtab = 7;
        iVar2 = -1;
        goto LAB_00112674;
      }
      iVar2 = *(int *)((long)&cur[9].pVtab + 4);
      *(int *)((long)&cur[9].pVtab + 4) = iVar2 + 1;
      sqlite3_keyword_name(iVar2,(char **)(cur + 5),(int *)(cur + 6));
      iVar2 = -1;
    }
    else {
LAB_00112810:
      if (-1 < iVar2) goto LAB_00112631;
    }
    if (cur[5].pVtab == (sqlite3_vtab *)0x0) goto LAB_00112674;
  }
  iVar1 = *(int *)&cur[2].pVtab;
  if (iVar1 == 0) goto LAB_00112860;
  if ((iVar1 <= *(int *)&cur[6].pVtab) &&
     (iVar1 = sqlite3_strnicmp((char *)cur[3].pVtab,(char *)cur[5].pVtab,iVar1), iVar1 == 0)) {
    iVar1 = 0;
LAB_00112860:
    if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
      __stack_chk_fail();
    }
    return iVar1;
  }
  goto LAB_00112674;
}



ulong FUN_00112558(long param_1)

{
  uint uVar1;
  int iVar2;
  undefined4 uVar3;
  int iVar4;
  undefined8 uVar5;
  long lVar6;
  ulong uVar7;
  char *pcVar8;
  undefined4 uVar9;
  long in_FS_OFFSET;
  undefined8 local_48;
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  *(long *)(param_1 + 0x40) = *(long *)(param_1 + 0x40) + 1;
  iVar4 = -1;
  uVar9 = 0;
LAB_00112674:
  iVar2 = *(int *)(param_1 + 0x48);
  if (iVar2 == 0xb) {
    uVar7 = 0;
LAB_00112860:
    if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
      __stack_chk_fail();
    }
    return uVar7;
  }
  if (iVar2 == 7) {
    iVar4 = 1;
    uVar9 = 8;
    if (*(long *)(param_1 + 0x38) == 0) {
      FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,param_1 + 0x38,0);
    }
LAB_00112631:
    iVar2 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0x38));
    if (iVar2 != 100) {
      FUN_0018ccd2(*(undefined8 *)(param_1 + 0x38));
      *(undefined8 *)(param_1 + 0x38) = 0;
      *(undefined4 *)(param_1 + 0x48) = uVar9;
      goto LAB_00112674;
    }
    uVar5 = FUN_00156d81(*(undefined8 *)(param_1 + 0x38),iVar4);
    *(undefined8 *)(param_1 + 0x28) = uVar5;
    uVar3 = FUN_00156893(*(undefined8 *)(param_1 + 0x38),iVar4);
    *(undefined4 *)(param_1 + 0x30) = uVar3;
  }
  else {
    if (7 < iVar2) {
      if (iVar2 == 8) {
        iVar4 = 0;
        uVar9 = 9;
        if (*(long *)(param_1 + 0x38) == 0) {
          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);
          lVar6 = 0;
          pcVar8 = "";
          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {
            uVar5 = FUN_00156d81(local_48,1);
            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);
            pcVar8 = " UNION ";
            if (lVar6 == 0) {
              uVar7 = 7;
              goto LAB_00112860;
            }
          }
          FUN_0018ccd2(local_48);
          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);
          FUN_00141303(lVar6);
          iVar4 = 0;
          uVar9 = 9;
        }
      }
      else {
        if (iVar2 != 9) goto LAB_00112810;
        iVar4 = 0;
        uVar9 = 0xb;
        if (*(long *)(param_1 + 0x38) == 0) {
          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);
          lVar6 = 0;
          pcVar8 = "";
          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {
            uVar5 = FUN_00156d81(local_48,1);
            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"
                                 ,lVar6,pcVar8,uVar5,uVar5);
            pcVar8 = " UNION ";
            if (lVar6 == 0) {
              uVar7 = 7;
              goto LAB_00112860;
            }
          }
          FUN_0018ccd2(local_48);
          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);
          FUN_00141303(lVar6);
          iVar4 = 0;
          uVar9 = 0xb;
        }
      }
      goto LAB_00112631;
    }
    if (iVar2 == 1) {
      iVar4 = *(int *)(param_1 + 0x4c);
      iVar2 = FUN_001307b1();
      if (iVar2 <= iVar4) {
        *(undefined8 *)(param_1 + 0x28) = 0;
        *(undefined4 *)(param_1 + 0x48) = 7;
        iVar4 = -1;
        goto LAB_00112674;
      }
      iVar4 = *(int *)(param_1 + 0x4c);
      *(int *)(param_1 + 0x4c) = iVar4 + 1;
      FUN_00130776(iVar4,param_1 + 0x28,param_1 + 0x30);
      iVar4 = -1;
    }
    else {
LAB_00112810:
      if (-1 < iVar4) goto LAB_00112631;
    }
    if (*(long *)(param_1 + 0x28) == 0) goto LAB_00112674;
  }
  uVar1 = *(uint *)(param_1 + 0x10);
  uVar7 = (ulong)uVar1;
  if ((uVar1 == 0) ||
     (((int)uVar1 <= *(int *)(param_1 + 0x30) &&
      (uVar7 = FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1),
      (int)uVar7 == 0)))) goto LAB_00112860;
  goto LAB_00112674;
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x18
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x8],RAX
XOR EAX,EAX
ADD qword ptr [RDI + 0x40],0x1
MOV EBP,0xffffffff
MOV R12D,0x0
MOV R15,RSP
LEA R14,[0x1eb0ce]
JMP 0x00112674
CMP EAX,0x1
JNZ 0x00112810
MOV EBP,dword ptr [RBX + 0x4c]
CALL 0x001307b1
CMP EBP,EAX
JL 0x001125c6
MOV qword ptr [RBX + 0x28],0x0
MOV dword ptr [RBX + 0x48],0x7
MOV EBP,0xffffffff
JMP 0x00112674
MOV EDI,dword ptr [RBX + 0x4c]
LEA EAX,[RDI + 0x1]
MOV dword ptr [RBX + 0x4c],EAX
LEA RDX,[RBX + 0x30]
LEA RSI,[RBX + 0x28]
CALL 0x00130776
MOV EBP,0xffffffff
JMP 0x00112818
MOV EBP,0x1
MOV R12D,0x8
CMP qword ptr [RBX + 0x38],0x0
JNZ 0x00112631
LEA RCX,[RBX + 0x38]
MOV RDI,qword ptr [RBX + 0x8]
MOV R8D,0x0
MOV EDX,0xffffffff
LEA RSI,[0x1eb0b9]
CALL 0x001bf242
JMP 0x00112631
MOV R13,qword ptr [RBX + 0x38]
MOV EBP,0x0
MOV R12D,0x9
TEST R13,R13
JZ 0x00112728
MOV RDI,qword ptr [RBX + 0x38]
CALL 0x001ab5c0
CMP EAX,0x64
JNZ 0x00112828
MOV RDI,qword ptr [RBX + 0x38]
MOV ESI,EBP
CALL 0x00156d81
MOV qword ptr [RBX + 0x28],RAX
MOV RDI,qword ptr [RBX + 0x38]
MOV ESI,EBP
CALL 0x00156893
MOV dword ptr [RBX + 0x30],EAX
MOV EAX,dword ptr [RBX + 0x10]
TEST EAX,EAX
JZ 0x00112860
CMP EAX,dword ptr [RBX + 0x30]
JLE 0x00112842
MOV EAX,dword ptr [RBX + 0x48]
CMP EAX,0xb
JZ 0x0011285b
CMP EAX,0x7
JZ 0x001125e6
JLE 0x00112598
CMP EAX,0x8
JZ 0x00112619
CMP EAX,0x9
JNZ 0x00112810
MOV R13,qword ptr [RBX + 0x38]
MOV EBP,0x0
MOV R12D,0xb
TEST R13,R13
JNZ 0x00112631
MOV RDI,qword ptr [RBX + 0x8]
MOV R8D,0x0
MOV RCX,R15
MOV EDX,0xffffffff
LEA RSI,[0x1eb0b9]
CALL 0x001bf242
LEA RBP,[0x1eb77f]
MOV RDI,qword ptr [RSP]
CALL 0x001ab5c0
CMP EAX,0x64
JNZ 0x001127d4
MOV ESI,0x1
MOV RDI,qword ptr [RSP]
CALL 0x00156d81
MOV R8,RAX
MOV RCX,RAX
MOV RDX,RBP
MOV RSI,R13
LEA RDI,[0x1ed418]
MOV EAX,0x0
CALL 0x001776d2
MOV R13,RAX
MOV RBP,R14
TEST RAX,RAX
JNZ 0x001126d6
MOV EAX,0x7
JMP 0x00112860
MOV RDI,qword ptr [RBX + 0x8]
MOV R8D,0x0
MOV RCX,R15
MOV EDX,0xffffffff
LEA RSI,[0x1eb0b9]
CALL 0x001bf242
LEA RBP,[0x1eb77f]
MOV RDI,qword ptr [RSP]
CALL 0x001ab5c0
CMP EAX,0x64
JNZ 0x00112798
MOV ESI,0x1
MOV RDI,qword ptr [RSP]
CALL 0x00156d81
MOV RCX,RAX
MOV RDX,RBP
MOV RSI,R13
LEA RDI,[0x1ed3f0]
MOV EAX,0x0
CALL 0x001776d2
MOV R13,RAX
MOV RBP,R14
TEST RAX,RAX
JNZ 0x0011274d
MOV EAX,0x7
JMP 0x00112860
MOV RDI,qword ptr [RSP]
CALL 0x0018ccd2
LEA RCX,[RBX + 0x38]
MOV RDI,qword ptr [RBX + 0x8]
MOV R8D,0x0
MOV EDX,0xffffffff
MOV RSI,R13
CALL 0x001bf242
MOV RDI,R13
CALL 0x00141303
MOV EBP,0x0
MOV R12D,0x9
JMP 0x00112631
MOV RDI,qword ptr [RSP]
CALL 0x0018ccd2
LEA RCX,[RBX + 0x38]
MOV RDI,qword ptr [RBX + 0x8]
MOV R8D,0x0
MOV EDX,0xffffffff
MOV RSI,R13
CALL 0x001bf242
MOV RDI,R13
CALL 0x00141303
MOV EBP,0x0
MOV R12D,0xb
JMP 0x00112631
TEST EBP,EBP
JNS 0x00112631
CMP qword ptr [RBX + 0x28],0x0
JNZ 0x00112660
JMP 0x00112674
MOV RDI,qword ptr [RBX + 0x38]
CALL 0x0018ccd2
MOV qword ptr [RBX + 0x38],0x0
MOV dword ptr [RBX + 0x48],R12D
JMP 0x00112674
MOV RSI,qword ptr [RBX + 0x28]
MOV RDI,qword ptr [RBX + 0x18]
MOV EDX,EAX
CALL 0x0012ada6
TEST EAX,EAX
JNZ 0x00112674
JMP 0x00112860
MOV EAX,0x0
MOV RCX,qword ptr [RSP + 0x8]
XOR RCX,qword ptr FS:[0x28]
JNZ 0x0011287f
ADD RSP,0x18
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
CALL 0x0010e4d0
(translation_unit "ulong FUN_00112558(long param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined8 uVar5;\n  long lVar6;\n  ulong uVar7;\n  char *pcVar8;\n  undefined4 uVar9;\n  long in_FS_OFFSET;\n  undefined8 local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  *(long *)(param_1 + 0x40) = *(long *)(param_1 + 0x40) + 1;\n  iVar4 = -1;\n  uVar9 = 0;\nLAB_00112674:\n  iVar2 = *(int *)(param_1 + 0x48);\n  if (iVar2 == 0xb) {\n    uVar7 = 0;\nLAB_00112860:\n    if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }\n    return uVar7;\n  }\n  if (iVar2 == 7) {\n    iVar4 = 1;\n    uVar9 = 8;\n    if (*(long *)(param_1 + 0x38) == 0) {\n      FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,param_1 + 0x38,0);\n    }\nLAB_00112631:\n    iVar2 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0x38));\n    if (iVar2 != 100) {\n      FUN_0018ccd2(*(undefined8 *)(param_1 + 0x38));\n      *(undefined8 *)(param_1 + 0x38) = 0;\n      *(undefined4 *)(param_1 + 0x48) = uVar9;\n      goto LAB_00112674;\n    }\n    uVar5 = FUN_00156d81(*(undefined8 *)(param_1 + 0x38),iVar4);\n    *(undefined8 *)(param_1 + 0x28) = uVar5;\n    uVar3 = FUN_00156893(*(undefined8 *)(param_1 + 0x38),iVar4);\n    *(undefined4 *)(param_1 + 0x30) = uVar3;\n  }\n  else {\n    if (7 < iVar2) {\n      if (iVar2 == 8) {\n        iVar4 = 0;\n        uVar9 = 9;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 9;\n        }\n      }\n      else {\n        if (iVar2 != 9) goto LAB_00112810;\n        iVar4 = 0;\n        uVar9 = 0xb;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 0xb;\n        }\n      }\n      goto LAB_00112631;\n    }\n    if (iVar2 == 1) {\n      iVar4 = *(int *)(param_1 + 0x4c);\n      iVar2 = FUN_001307b1();\n      if (iVar2 <= iVar4) {\n        *(undefined8 *)(param_1 + 0x28) = 0;\n        *(undefined4 *)(param_1 + 0x48) = 7;\n        iVar4 = -1;\n        goto LAB_00112674;\n      }\n      iVar4 = *(int *)(param_1 + 0x4c);\n      *(int *)(param_1 + 0x4c) = iVar4 + 1;\n      FUN_00130776(iVar4,param_1 + 0x28,param_1 + 0x30);\n      iVar4 = -1;\n    }\n    else {\nLAB_00112810:\n      if (-1 < iVar4) goto LAB_00112631;\n    }\n    if (*(long *)(param_1 + 0x28) == 0) goto LAB_00112674;\n  }\n  uVar1 = *(uint *)(param_1 + 0x10);\n  uVar7 = (ulong)uVar1;\n  if ((uVar1 == 0) ||\n     (((int)uVar1 <= *(int *)(param_1 + 0x30) &&\n      (uVar7 = FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1),\n      (int)uVar7 == 0)))) goto LAB_00112860;\n  goto LAB_00112674;\n}\n\n" (function_definition "ulong FUN_00112558(long param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined8 uVar5;\n  long lVar6;\n  ulong uVar7;\n  char *pcVar8;\n  undefined4 uVar9;\n  long in_FS_OFFSET;\n  undefined8 local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  *(long *)(param_1 + 0x40) = *(long *)(param_1 + 0x40) + 1;\n  iVar4 = -1;\n  uVar9 = 0;\nLAB_00112674:\n  iVar2 = *(int *)(param_1 + 0x48);\n  if (iVar2 == 0xb) {\n    uVar7 = 0;\nLAB_00112860:\n    if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }\n    return uVar7;\n  }\n  if (iVar2 == 7) {\n    iVar4 = 1;\n    uVar9 = 8;\n    if (*(long *)(param_1 + 0x38) == 0) {\n      FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,param_1 + 0x38,0);\n    }\nLAB_00112631:\n    iVar2 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0x38));\n    if (iVar2 != 100) {\n      FUN_0018ccd2(*(undefined8 *)(param_1 + 0x38));\n      *(undefined8 *)(param_1 + 0x38) = 0;\n      *(undefined4 *)(param_1 + 0x48) = uVar9;\n      goto LAB_00112674;\n    }\n    uVar5 = FUN_00156d81(*(undefined8 *)(param_1 + 0x38),iVar4);\n    *(undefined8 *)(param_1 + 0x28) = uVar5;\n    uVar3 = FUN_00156893(*(undefined8 *)(param_1 + 0x38),iVar4);\n    *(undefined4 *)(param_1 + 0x30) = uVar3;\n  }\n  else {\n    if (7 < iVar2) {\n      if (iVar2 == 8) {\n        iVar4 = 0;\n        uVar9 = 9;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 9;\n        }\n      }\n      else {\n        if (iVar2 != 9) goto LAB_00112810;\n        iVar4 = 0;\n        uVar9 = 0xb;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 0xb;\n        }\n      }\n      goto LAB_00112631;\n    }\n    if (iVar2 == 1) {\n      iVar4 = *(int *)(param_1 + 0x4c);\n      iVar2 = FUN_001307b1();\n      if (iVar2 <= iVar4) {\n        *(undefined8 *)(param_1 + 0x28) = 0;\n        *(undefined4 *)(param_1 + 0x48) = 7;\n        iVar4 = -1;\n        goto LAB_00112674;\n      }\n      iVar4 = *(int *)(param_1 + 0x4c);\n      *(int *)(param_1 + 0x4c) = iVar4 + 1;\n      FUN_00130776(iVar4,param_1 + 0x28,param_1 + 0x30);\n      iVar4 = -1;\n    }\n    else {\nLAB_00112810:\n      if (-1 < iVar4) goto LAB_00112631;\n    }\n    if (*(long *)(param_1 + 0x28) == 0) goto LAB_00112674;\n  }\n  uVar1 = *(uint *)(param_1 + 0x10);\n  uVar7 = (ulong)uVar1;\n  if ((uVar1 == 0) ||\n     (((int)uVar1 <= *(int *)(param_1 + 0x30) &&\n      (uVar7 = FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1),\n      (int)uVar7 == 0)))) goto LAB_00112860;\n  goto LAB_00112674;\n}" type_identifier (function_declarator "FUN_00112558(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined8 uVar5;\n  long lVar6;\n  ulong uVar7;\n  char *pcVar8;\n  undefined4 uVar9;\n  long in_FS_OFFSET;\n  undefined8 local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  *(long *)(param_1 + 0x40) = *(long *)(param_1 + 0x40) + 1;\n  iVar4 = -1;\n  uVar9 = 0;\nLAB_00112674:\n  iVar2 = *(int *)(param_1 + 0x48);\n  if (iVar2 == 0xb) {\n    uVar7 = 0;\nLAB_00112860:\n    if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }\n    return uVar7;\n  }\n  if (iVar2 == 7) {\n    iVar4 = 1;\n    uVar9 = 8;\n    if (*(long *)(param_1 + 0x38) == 0) {\n      FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,param_1 + 0x38,0);\n    }\nLAB_00112631:\n    iVar2 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0x38));\n    if (iVar2 != 100) {\n      FUN_0018ccd2(*(undefined8 *)(param_1 + 0x38));\n      *(undefined8 *)(param_1 + 0x38) = 0;\n      *(undefined4 *)(param_1 + 0x48) = uVar9;\n      goto LAB_00112674;\n    }\n    uVar5 = FUN_00156d81(*(undefined8 *)(param_1 + 0x38),iVar4);\n    *(undefined8 *)(param_1 + 0x28) = uVar5;\n    uVar3 = FUN_00156893(*(undefined8 *)(param_1 + 0x38),iVar4);\n    *(undefined4 *)(param_1 + 0x30) = uVar3;\n  }\n  else {\n    if (7 < iVar2) {\n      if (iVar2 == 8) {\n        iVar4 = 0;\n        uVar9 = 9;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 9;\n        }\n      }\n      else {\n        if (iVar2 != 9) goto LAB_00112810;\n        iVar4 = 0;\n        uVar9 = 0xb;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 0xb;\n        }\n      }\n      goto LAB_00112631;\n    }\n    if (iVar2 == 1) {\n      iVar4 = *(int *)(param_1 + 0x4c);\n      iVar2 = FUN_001307b1();\n      if (iVar2 <= iVar4) {\n        *(undefined8 *)(param_1 + 0x28) = 0;\n        *(undefined4 *)(param_1 + 0x48) = 7;\n        iVar4 = -1;\n        goto LAB_00112674;\n      }\n      iVar4 = *(int *)(param_1 + 0x4c);\n      *(int *)(param_1 + 0x4c) = iVar4 + 1;\n      FUN_00130776(iVar4,param_1 + 0x28,param_1 + 0x30);\n      iVar4 = -1;\n    }\n    else {\nLAB_00112810:\n      if (-1 < iVar4) goto LAB_00112631;\n    }\n    if (*(long *)(param_1 + 0x28) == 0) goto LAB_00112674;\n  }\n  uVar1 = *(uint *)(param_1 + 0x10);\n  uVar7 = (ulong)uVar1;\n  if ((uVar1 == 0) ||\n     (((int)uVar1 <= *(int *)(param_1 + 0x30) &&\n      (uVar7 = FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1),\n      (int)uVar7 == 0)))) goto LAB_00112860;\n  goto LAB_00112674;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined8 uVar5;" type_identifier identifier ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar7;" type_identifier identifier ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 local_48;" type_identifier identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "*(long *)(param_1 + 0x40) = *(long *)(param_1 + 0x40) + 1;" (assignment_expression "*(long *)(param_1 + 0x40) = *(long *)(param_1 + 0x40) + 1" (pointer_expression "*(long *)(param_1 + 0x40)" * (cast_expression "(long *)(param_1 + 0x40)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) = (binary_expression "*(long *)(param_1 + 0x40) + 1" (pointer_expression "*(long *)(param_1 + 0x40)" * (cast_expression "(long *)(param_1 + 0x40)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00112674:\n  iVar2 = *(int *)(param_1 + 0x48);" statement_identifier : (expression_statement "iVar2 = *(int *)(param_1 + 0x48);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x48)" identifier = (pointer_expression "*(int *)(param_1 + 0x48)" * (cast_expression "(int *)(param_1 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) ))))) ;)) (if_statement "if (iVar2 == 0xb) {\n    uVar7 = 0;\nLAB_00112860:\n    if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }\n    return uVar7;\n  }" if (parenthesized_expression "(iVar2 == 0xb)" ( (binary_expression "iVar2 == 0xb" identifier == number_literal) )) (compound_statement "{\n    uVar7 = 0;\nLAB_00112860:\n    if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }\n    return uVar7;\n  }" { (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00112860:\n    if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }" statement_identifier : (if_statement "if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }" if (parenthesized_expression "(local_40 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }" { comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return uVar7;" return identifier ;) })) (if_statement "if (iVar2 == 7) {\n    iVar4 = 1;\n    uVar9 = 8;\n    if (*(long *)(param_1 + 0x38) == 0) {\n      FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,param_1 + 0x38,0);\n    }\nLAB_00112631:\n    iVar2 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0x38));\n    if (iVar2 != 100) {\n      FUN_0018ccd2(*(undefined8 *)(param_1 + 0x38));\n      *(undefined8 *)(param_1 + 0x38) = 0;\n      *(undefined4 *)(param_1 + 0x48) = uVar9;\n      goto LAB_00112674;\n    }\n    uVar5 = FUN_00156d81(*(undefined8 *)(param_1 + 0x38),iVar4);\n    *(undefined8 *)(param_1 + 0x28) = uVar5;\n    uVar3 = FUN_00156893(*(undefined8 *)(param_1 + 0x38),iVar4);\n    *(undefined4 *)(param_1 + 0x30) = uVar3;\n  }\n  else {\n    if (7 < iVar2) {\n      if (iVar2 == 8) {\n        iVar4 = 0;\n        uVar9 = 9;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 9;\n        }\n      }\n      else {\n        if (iVar2 != 9) goto LAB_00112810;\n        iVar4 = 0;\n        uVar9 = 0xb;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 0xb;\n        }\n      }\n      goto LAB_00112631;\n    }\n    if (iVar2 == 1) {\n      iVar4 = *(int *)(param_1 + 0x4c);\n      iVar2 = FUN_001307b1();\n      if (iVar2 <= iVar4) {\n        *(undefined8 *)(param_1 + 0x28) = 0;\n        *(undefined4 *)(param_1 + 0x48) = 7;\n        iVar4 = -1;\n        goto LAB_00112674;\n      }\n      iVar4 = *(int *)(param_1 + 0x4c);\n      *(int *)(param_1 + 0x4c) = iVar4 + 1;\n      FUN_00130776(iVar4,param_1 + 0x28,param_1 + 0x30);\n      iVar4 = -1;\n    }\n    else {\nLAB_00112810:\n      if (-1 < iVar4) goto LAB_00112631;\n    }\n    if (*(long *)(param_1 + 0x28) == 0) goto LAB_00112674;\n  }" if (parenthesized_expression "(iVar2 == 7)" ( (binary_expression "iVar2 == 7" identifier == number_literal) )) (compound_statement "{\n    iVar4 = 1;\n    uVar9 = 8;\n    if (*(long *)(param_1 + 0x38) == 0) {\n      FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,param_1 + 0x38,0);\n    }\nLAB_00112631:\n    iVar2 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0x38));\n    if (iVar2 != 100) {\n      FUN_0018ccd2(*(undefined8 *)(param_1 + 0x38));\n      *(undefined8 *)(param_1 + 0x38) = 0;\n      *(undefined4 *)(param_1 + 0x48) = uVar9;\n      goto LAB_00112674;\n    }\n    uVar5 = FUN_00156d81(*(undefined8 *)(param_1 + 0x38),iVar4);\n    *(undefined8 *)(param_1 + 0x28) = uVar5;\n    uVar3 = FUN_00156893(*(undefined8 *)(param_1 + 0x38),iVar4);\n    *(undefined4 *)(param_1 + 0x30) = uVar3;\n  }" { (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (expression_statement "uVar9 = 8;" (assignment_expression "uVar9 = 8" identifier = number_literal) ;) (if_statement "if (*(long *)(param_1 + 0x38) == 0) {\n      FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,param_1 + 0x38,0);\n    }" if (parenthesized_expression "(*(long *)(param_1 + 0x38) == 0)" ( (binary_expression "*(long *)(param_1 + 0x38) == 0" (pointer_expression "*(long *)(param_1 + 0x38)" * (cast_expression "(long *)(param_1 + 0x38)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,param_1 + 0x38,0);\n    }" { (expression_statement "FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,param_1 + 0x38,0);" (call_expression "FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,param_1 + 0x38,0)" identifier (argument_list "(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,param_1 + 0x38,0)" ( (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , (string_literal ""PRAGMA database_list"" " string_content ") , number_literal , (binary_expression "param_1 + 0x38" identifier + number_literal) , number_literal ))) ;) })) (labeled_statement "LAB_00112631:\n    iVar2 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0x38));" statement_identifier : (expression_statement "iVar2 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0x38));" (assignment_expression "iVar2 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0x38))" identifier = (call_expression "FUN_001ab5c0(*(undefined8 *)(param_1 + 0x38))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x38))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x38)" * (cast_expression "(undefined8 *)(param_1 + 0x38)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) )))) ;)) (if_statement "if (iVar2 != 100) {\n      FUN_0018ccd2(*(undefined8 *)(param_1 + 0x38));\n      *(undefined8 *)(param_1 + 0x38) = 0;\n      *(undefined4 *)(param_1 + 0x48) = uVar9;\n      goto LAB_00112674;\n    }" if (parenthesized_expression "(iVar2 != 100)" ( (binary_expression "iVar2 != 100" identifier != number_literal) )) (compound_statement "{\n      FUN_0018ccd2(*(undefined8 *)(param_1 + 0x38));\n      *(undefined8 *)(param_1 + 0x38) = 0;\n      *(undefined4 *)(param_1 + 0x48) = uVar9;\n      goto LAB_00112674;\n    }" { (expression_statement "FUN_0018ccd2(*(undefined8 *)(param_1 + 0x38));" (call_expression "FUN_0018ccd2(*(undefined8 *)(param_1 + 0x38))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x38))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x38)" * (cast_expression "(undefined8 *)(param_1 + 0x38)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined8 *)(param_1 + 0x38) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x38) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x38)" * (cast_expression "(undefined8 *)(param_1 + 0x38)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x48) = uVar9;" (assignment_expression "*(undefined4 *)(param_1 + 0x48) = uVar9" (pointer_expression "*(undefined4 *)(param_1 + 0x48)" * (cast_expression "(undefined4 *)(param_1 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) = identifier) ;) (goto_statement "goto LAB_00112674;" goto statement_identifier ;) })) (expression_statement "uVar5 = FUN_00156d81(*(undefined8 *)(param_1 + 0x38),iVar4);" (assignment_expression "uVar5 = FUN_00156d81(*(undefined8 *)(param_1 + 0x38),iVar4)" identifier = (call_expression "FUN_00156d81(*(undefined8 *)(param_1 + 0x38),iVar4)" identifier (argument_list "(*(undefined8 *)(param_1 + 0x38),iVar4)" ( (pointer_expression "*(undefined8 *)(param_1 + 0x38)" * (cast_expression "(undefined8 *)(param_1 + 0x38)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "*(undefined8 *)(param_1 + 0x28) = uVar5;" (assignment_expression "*(undefined8 *)(param_1 + 0x28) = uVar5" (pointer_expression "*(undefined8 *)(param_1 + 0x28)" * (cast_expression "(undefined8 *)(param_1 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar3 = FUN_00156893(*(undefined8 *)(param_1 + 0x38),iVar4);" (assignment_expression "uVar3 = FUN_00156893(*(undefined8 *)(param_1 + 0x38),iVar4)" identifier = (call_expression "FUN_00156893(*(undefined8 *)(param_1 + 0x38),iVar4)" identifier (argument_list "(*(undefined8 *)(param_1 + 0x38),iVar4)" ( (pointer_expression "*(undefined8 *)(param_1 + 0x38)" * (cast_expression "(undefined8 *)(param_1 + 0x38)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x30) = uVar3;" (assignment_expression "*(undefined4 *)(param_1 + 0x30) = uVar3" (pointer_expression "*(undefined4 *)(param_1 + 0x30)" * (cast_expression "(undefined4 *)(param_1 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n    if (7 < iVar2) {\n      if (iVar2 == 8) {\n        iVar4 = 0;\n        uVar9 = 9;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 9;\n        }\n      }\n      else {\n        if (iVar2 != 9) goto LAB_00112810;\n        iVar4 = 0;\n        uVar9 = 0xb;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 0xb;\n        }\n      }\n      goto LAB_00112631;\n    }\n    if (iVar2 == 1) {\n      iVar4 = *(int *)(param_1 + 0x4c);\n      iVar2 = FUN_001307b1();\n      if (iVar2 <= iVar4) {\n        *(undefined8 *)(param_1 + 0x28) = 0;\n        *(undefined4 *)(param_1 + 0x48) = 7;\n        iVar4 = -1;\n        goto LAB_00112674;\n      }\n      iVar4 = *(int *)(param_1 + 0x4c);\n      *(int *)(param_1 + 0x4c) = iVar4 + 1;\n      FUN_00130776(iVar4,param_1 + 0x28,param_1 + 0x30);\n      iVar4 = -1;\n    }\n    else {\nLAB_00112810:\n      if (-1 < iVar4) goto LAB_00112631;\n    }\n    if (*(long *)(param_1 + 0x28) == 0) goto LAB_00112674;\n  }" else (compound_statement "{\n    if (7 < iVar2) {\n      if (iVar2 == 8) {\n        iVar4 = 0;\n        uVar9 = 9;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 9;\n        }\n      }\n      else {\n        if (iVar2 != 9) goto LAB_00112810;\n        iVar4 = 0;\n        uVar9 = 0xb;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 0xb;\n        }\n      }\n      goto LAB_00112631;\n    }\n    if (iVar2 == 1) {\n      iVar4 = *(int *)(param_1 + 0x4c);\n      iVar2 = FUN_001307b1();\n      if (iVar2 <= iVar4) {\n        *(undefined8 *)(param_1 + 0x28) = 0;\n        *(undefined4 *)(param_1 + 0x48) = 7;\n        iVar4 = -1;\n        goto LAB_00112674;\n      }\n      iVar4 = *(int *)(param_1 + 0x4c);\n      *(int *)(param_1 + 0x4c) = iVar4 + 1;\n      FUN_00130776(iVar4,param_1 + 0x28,param_1 + 0x30);\n      iVar4 = -1;\n    }\n    else {\nLAB_00112810:\n      if (-1 < iVar4) goto LAB_00112631;\n    }\n    if (*(long *)(param_1 + 0x28) == 0) goto LAB_00112674;\n  }" { (if_statement "if (7 < iVar2) {\n      if (iVar2 == 8) {\n        iVar4 = 0;\n        uVar9 = 9;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 9;\n        }\n      }\n      else {\n        if (iVar2 != 9) goto LAB_00112810;\n        iVar4 = 0;\n        uVar9 = 0xb;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 0xb;\n        }\n      }\n      goto LAB_00112631;\n    }" if (parenthesized_expression "(7 < iVar2)" ( (binary_expression "7 < iVar2" number_literal < identifier) )) (compound_statement "{\n      if (iVar2 == 8) {\n        iVar4 = 0;\n        uVar9 = 9;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 9;\n        }\n      }\n      else {\n        if (iVar2 != 9) goto LAB_00112810;\n        iVar4 = 0;\n        uVar9 = 0xb;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 0xb;\n        }\n      }\n      goto LAB_00112631;\n    }" { (if_statement "if (iVar2 == 8) {\n        iVar4 = 0;\n        uVar9 = 9;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 9;\n        }\n      }\n      else {\n        if (iVar2 != 9) goto LAB_00112810;\n        iVar4 = 0;\n        uVar9 = 0xb;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 0xb;\n        }\n      }" if (parenthesized_expression "(iVar2 == 8)" ( (binary_expression "iVar2 == 8" identifier == number_literal) )) (compound_statement "{\n        iVar4 = 0;\n        uVar9 = 9;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 9;\n        }\n      }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "uVar9 = 9;" (assignment_expression "uVar9 = 9" identifier = number_literal) ;) (if_statement "if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 9;\n        }" if (parenthesized_expression "(*(long *)(param_1 + 0x38) == 0)" ( (binary_expression "*(long *)(param_1 + 0x38) == 0" (pointer_expression "*(long *)(param_1 + 0x38)" * (cast_expression "(long *)(param_1 + 0x38)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 9;\n        }" { (expression_statement "FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);" (call_expression "FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0)" identifier (argument_list "(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0)" ( (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , (string_literal ""PRAGMA database_list"" " string_content ") , number_literal , (pointer_expression "&local_48" & identifier) , number_literal ))) ;) (expression_statement "lVar6 = 0;" (assignment_expression "lVar6 = 0" identifier = number_literal) ;) (expression_statement "pcVar8 = "";" (assignment_expression "pcVar8 = """ identifier = (string_literal """" " ")) ;) (while_statement "while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }" while (parenthesized_expression "(iVar4 = FUN_001ab5c0(local_48), iVar4 == 100)" ( (comma_expression "iVar4 = FUN_001ab5c0(local_48), iVar4 == 100" (assignment_expression "iVar4 = FUN_001ab5c0(local_48)" identifier = (call_expression "FUN_001ab5c0(local_48)" identifier (argument_list "(local_48)" ( identifier )))) , (binary_expression "iVar4 == 100" identifier == number_literal)) )) (compound_statement "{\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }" { (expression_statement "uVar5 = FUN_00156d81(local_48,1);" (assignment_expression "uVar5 = FUN_00156d81(local_48,1)" identifier = (call_expression "FUN_00156d81(local_48,1)" identifier (argument_list "(local_48,1)" ( identifier , number_literal )))) ;) (expression_statement "lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);" (assignment_expression "lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5)" identifier = (call_expression "FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5)" identifier (argument_list "("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5)" ( (string_literal ""%z%sSELECT name FROM \"%w\".sqlite_master"" " string_content escape_sequence string_content escape_sequence string_content ") , identifier , identifier , identifier )))) ;) (expression_statement "pcVar8 = " UNION ";" (assignment_expression "pcVar8 = " UNION "" identifier = (string_literal "" UNION "" " string_content ")) ;) (if_statement "if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }" if (parenthesized_expression "(lVar6 == 0)" ( (binary_expression "lVar6 == 0" identifier == number_literal) )) (compound_statement "{\n              uVar7 = 7;\n              goto LAB_00112860;\n            }" { (expression_statement "uVar7 = 7;" (assignment_expression "uVar7 = 7" identifier = number_literal) ;) (goto_statement "goto LAB_00112860;" goto statement_identifier ;) })) })) (expression_statement "FUN_0018ccd2(local_48);" (call_expression "FUN_0018ccd2(local_48)" identifier (argument_list "(local_48)" ( identifier ))) ;) (expression_statement "FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);" (call_expression "FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0)" identifier (argument_list "(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0)" ( (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , identifier , number_literal , (binary_expression "param_1 + 0x38" identifier + number_literal) , number_literal ))) ;) (expression_statement "FUN_00141303(lVar6);" (call_expression "FUN_00141303(lVar6)" identifier (argument_list "(lVar6)" ( identifier ))) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "uVar9 = 9;" (assignment_expression "uVar9 = 9" identifier = number_literal) ;) })) }) (else_clause "else {\n        if (iVar2 != 9) goto LAB_00112810;\n        iVar4 = 0;\n        uVar9 = 0xb;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 0xb;\n        }\n      }" else (compound_statement "{\n        if (iVar2 != 9) goto LAB_00112810;\n        iVar4 = 0;\n        uVar9 = 0xb;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 0xb;\n        }\n      }" { (if_statement "if (iVar2 != 9) goto LAB_00112810;" if (parenthesized_expression "(iVar2 != 9)" ( (binary_expression "iVar2 != 9" identifier != number_literal) )) (goto_statement "goto LAB_00112810;" goto statement_identifier ;)) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "uVar9 = 0xb;" (assignment_expression "uVar9 = 0xb" identifier = number_literal) ;) (if_statement "if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 0xb;\n        }" if (parenthesized_expression "(*(long *)(param_1 + 0x38) == 0)" ( (binary_expression "*(long *)(param_1 + 0x38) == 0" (pointer_expression "*(long *)(param_1 + 0x38)" * (cast_expression "(long *)(param_1 + 0x38)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 0xb;\n        }" { (expression_statement "FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);" (call_expression "FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0)" identifier (argument_list "(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0)" ( (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , (string_literal ""PRAGMA database_list"" " string_content ") , number_literal , (pointer_expression "&local_48" & identifier) , number_literal ))) ;) (expression_statement "lVar6 = 0;" (assignment_expression "lVar6 = 0" identifier = number_literal) ;) (expression_statement "pcVar8 = "";" (assignment_expression "pcVar8 = """ identifier = (string_literal """" " ")) ;) (while_statement "while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }" while (parenthesized_expression "(iVar4 = FUN_001ab5c0(local_48), iVar4 == 100)" ( (comma_expression "iVar4 = FUN_001ab5c0(local_48), iVar4 == 100" (assignment_expression "iVar4 = FUN_001ab5c0(local_48)" identifier = (call_expression "FUN_001ab5c0(local_48)" identifier (argument_list "(local_48)" ( identifier )))) , (binary_expression "iVar4 == 100" identifier == number_literal)) )) (compound_statement "{\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }" { (expression_statement "uVar5 = FUN_00156d81(local_48,1);" (assignment_expression "uVar5 = FUN_00156d81(local_48,1)" identifier = (call_expression "FUN_00156d81(local_48,1)" identifier (argument_list "(local_48,1)" ( identifier , number_literal )))) ;) (expression_statement "lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);" (assignment_expression "lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5)" identifier = (call_expression "FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5)" identifier (argument_list "("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5)" ( (string_literal ""%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"" " string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence ") , identifier , identifier , identifier , identifier )))) ;) (expression_statement "pcVar8 = " UNION ";" (assignment_expression "pcVar8 = " UNION "" identifier = (string_literal "" UNION "" " string_content ")) ;) (if_statement "if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }" if (parenthesized_expression "(lVar6 == 0)" ( (binary_expression "lVar6 == 0" identifier == number_literal) )) (compound_statement "{\n              uVar7 = 7;\n              goto LAB_00112860;\n            }" { (expression_statement "uVar7 = 7;" (assignment_expression "uVar7 = 7" identifier = number_literal) ;) (goto_statement "goto LAB_00112860;" goto statement_identifier ;) })) })) (expression_statement "FUN_0018ccd2(local_48);" (call_expression "FUN_0018ccd2(local_48)" identifier (argument_list "(local_48)" ( identifier ))) ;) (expression_statement "FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);" (call_expression "FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0)" identifier (argument_list "(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0)" ( (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , identifier , number_literal , (binary_expression "param_1 + 0x38" identifier + number_literal) , number_literal ))) ;) (expression_statement "FUN_00141303(lVar6);" (call_expression "FUN_00141303(lVar6)" identifier (argument_list "(lVar6)" ( identifier ))) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "uVar9 = 0xb;" (assignment_expression "uVar9 = 0xb" identifier = number_literal) ;) })) }))) (goto_statement "goto LAB_00112631;" goto statement_identifier ;) })) (if_statement "if (iVar2 == 1) {\n      iVar4 = *(int *)(param_1 + 0x4c);\n      iVar2 = FUN_001307b1();\n      if (iVar2 <= iVar4) {\n        *(undefined8 *)(param_1 + 0x28) = 0;\n        *(undefined4 *)(param_1 + 0x48) = 7;\n        iVar4 = -1;\n        goto LAB_00112674;\n      }\n      iVar4 = *(int *)(param_1 + 0x4c);\n      *(int *)(param_1 + 0x4c) = iVar4 + 1;\n      FUN_00130776(iVar4,param_1 + 0x28,param_1 + 0x30);\n      iVar4 = -1;\n    }\n    else {\nLAB_00112810:\n      if (-1 < iVar4) goto LAB_00112631;\n    }" if (parenthesized_expression "(iVar2 == 1)" ( (binary_expression "iVar2 == 1" identifier == number_literal) )) (compound_statement "{\n      iVar4 = *(int *)(param_1 + 0x4c);\n      iVar2 = FUN_001307b1();\n      if (iVar2 <= iVar4) {\n        *(undefined8 *)(param_1 + 0x28) = 0;\n        *(undefined4 *)(param_1 + 0x48) = 7;\n        iVar4 = -1;\n        goto LAB_00112674;\n      }\n      iVar4 = *(int *)(param_1 + 0x4c);\n      *(int *)(param_1 + 0x4c) = iVar4 + 1;\n      FUN_00130776(iVar4,param_1 + 0x28,param_1 + 0x30);\n      iVar4 = -1;\n    }" { (expression_statement "iVar4 = *(int *)(param_1 + 0x4c);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x4c)" identifier = (pointer_expression "*(int *)(param_1 + 0x4c)" * (cast_expression "(int *)(param_1 + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = FUN_001307b1();" (assignment_expression "iVar2 = FUN_001307b1()" identifier = (call_expression "FUN_001307b1()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 <= iVar4) {\n        *(undefined8 *)(param_1 + 0x28) = 0;\n        *(undefined4 *)(param_1 + 0x48) = 7;\n        iVar4 = -1;\n        goto LAB_00112674;\n      }" if (parenthesized_expression "(iVar2 <= iVar4)" ( (binary_expression "iVar2 <= iVar4" identifier <= identifier) )) (compound_statement "{\n        *(undefined8 *)(param_1 + 0x28) = 0;\n        *(undefined4 *)(param_1 + 0x48) = 7;\n        iVar4 = -1;\n        goto LAB_00112674;\n      }" { (expression_statement "*(undefined8 *)(param_1 + 0x28) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x28) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x28)" * (cast_expression "(undefined8 *)(param_1 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x48) = 7;" (assignment_expression "*(undefined4 *)(param_1 + 0x48) = 7" (pointer_expression "*(undefined4 *)(param_1 + 0x48)" * (cast_expression "(undefined4 *)(param_1 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_00112674;" goto statement_identifier ;) })) (expression_statement "iVar4 = *(int *)(param_1 + 0x4c);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x4c)" identifier = (pointer_expression "*(int *)(param_1 + 0x4c)" * (cast_expression "(int *)(param_1 + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 0x4c) = iVar4 + 1;" (assignment_expression "*(int *)(param_1 + 0x4c) = iVar4 + 1" (pointer_expression "*(int *)(param_1 + 0x4c)" * (cast_expression "(int *)(param_1 + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "FUN_00130776(iVar4,param_1 + 0x28,param_1 + 0x30);" (call_expression "FUN_00130776(iVar4,param_1 + 0x28,param_1 + 0x30)" identifier (argument_list "(iVar4,param_1 + 0x28,param_1 + 0x30)" ( identifier , (binary_expression "param_1 + 0x28" identifier + number_literal) , (binary_expression "param_1 + 0x30" identifier + number_literal) ))) ;) (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) }) (else_clause "else {\nLAB_00112810:\n      if (-1 < iVar4) goto LAB_00112631;\n    }" else (compound_statement "{\nLAB_00112810:\n      if (-1 < iVar4) goto LAB_00112631;\n    }" { (labeled_statement "LAB_00112810:\n      if (-1 < iVar4) goto LAB_00112631;" statement_identifier : (if_statement "if (-1 < iVar4) goto LAB_00112631;" if (parenthesized_expression "(-1 < iVar4)" ( (binary_expression "-1 < iVar4" number_literal < identifier) )) (goto_statement "goto LAB_00112631;" goto statement_identifier ;))) }))) (if_statement "if (*(long *)(param_1 + 0x28) == 0) goto LAB_00112674;" if (parenthesized_expression "(*(long *)(param_1 + 0x28) == 0)" ( (binary_expression "*(long *)(param_1 + 0x28) == 0" (pointer_expression "*(long *)(param_1 + 0x28)" * (cast_expression "(long *)(param_1 + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_00112674;" goto statement_identifier ;)) }))) (expression_statement "uVar1 = *(uint *)(param_1 + 0x10);" (assignment_expression "uVar1 = *(uint *)(param_1 + 0x10)" identifier = (pointer_expression "*(uint *)(param_1 + 0x10)" * (cast_expression "(uint *)(param_1 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "uVar7 = (ulong)uVar1;" (assignment_expression "uVar7 = (ulong)uVar1" identifier = (cast_expression "(ulong)uVar1" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (if_statement "if ((uVar1 == 0) ||\n     (((int)uVar1 <= *(int *)(param_1 + 0x30) &&\n      (uVar7 = FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1),\n      (int)uVar7 == 0)))) goto LAB_00112860;" if (parenthesized_expression "((uVar1 == 0) ||\n     (((int)uVar1 <= *(int *)(param_1 + 0x30) &&\n      (uVar7 = FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1),\n      (int)uVar7 == 0))))" ( (binary_expression "(uVar1 == 0) ||\n     (((int)uVar1 <= *(int *)(param_1 + 0x30) &&\n      (uVar7 = FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1),\n      (int)uVar7 == 0)))" (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) || (parenthesized_expression "(((int)uVar1 <= *(int *)(param_1 + 0x30) &&\n      (uVar7 = FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1),\n      (int)uVar7 == 0)))" ( (parenthesized_expression "((int)uVar1 <= *(int *)(param_1 + 0x30) &&\n      (uVar7 = FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1),\n      (int)uVar7 == 0))" ( (binary_expression "(int)uVar1 <= *(int *)(param_1 + 0x30) &&\n      (uVar7 = FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1),\n      (int)uVar7 == 0)" (binary_expression "(int)uVar1 <= *(int *)(param_1 + 0x30)" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) <= (pointer_expression "*(int *)(param_1 + 0x30)" * (cast_expression "(int *)(param_1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) && (parenthesized_expression "(uVar7 = FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1),\n      (int)uVar7 == 0)" ( (comma_expression "uVar7 = FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1),\n      (int)uVar7 == 0" (assignment_expression "uVar7 = FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1)" identifier = (call_expression "FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1)" identifier (argument_list "(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1)" ( (pointer_expression "*(undefined8 *)(param_1 + 0x18)" * (cast_expression "(undefined8 *)(param_1 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(param_1 + 0x28)" * (cast_expression "(undefined8 *)(param_1 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) , identifier )))) , (binary_expression "(int)uVar7 == 0" (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal)) ))) )) ))) )) (goto_statement "goto LAB_00112860;" goto statement_identifier ;)) (goto_statement "goto LAB_00112674;" goto statement_identifier ;) })))
(translation_unit "int completionNext(sqlite3_vtab_cursor *cur)\n\n{\n  int iVar1;\n  int iVar2;\n  sqlite3_vtab *psVar3;\n  uchar *puVar4;\n  char *pcVar5;\n  char *pcVar6;\n  undefined4 uVar7;\n  long in_FS_OFFSET;\n  sqlite3_stmt *pS2;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  cur[8].pVtab = (sqlite3_vtab *)((long)&(cur[8].pVtab)->pModule + 1);\n  iVar2 = -1;\n  uVar7 = 0;\nLAB_00112674:\n  iVar1 = *(int *)&cur[9].pVtab;\n  if (iVar1 == 0xb) {\n    iVar1 = 0;\n    goto LAB_00112860;\n  }\n  if (iVar1 == 7) {\n    iVar2 = 1;\n    uVar7 = 8;\n    if (cur[7].pVtab == (sqlite3_vtab *)0x0) {\n      sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,\n                         (sqlite3_stmt **)(cur + 7),(char **)0x0);\n    }\nLAB_00112631:\n    iVar1 = sqlite3_step((sqlite3_stmt *)cur[7].pVtab);\n    if (iVar1 != 100) {\n      sqlite3_finalize((sqlite3_stmt *)cur[7].pVtab);\n      cur[7].pVtab = (sqlite3_vtab *)0x0;\n      *(undefined4 *)&cur[9].pVtab = uVar7;\n      goto LAB_00112674;\n    }\n    psVar3 = (sqlite3_vtab *)sqlite3_column_text((sqlite3_stmt *)cur[7].pVtab,iVar2);\n    cur[5].pVtab = psVar3;\n    iVar1 = sqlite3_column_bytes((sqlite3_stmt *)cur[7].pVtab,iVar2);\n    *(int *)&cur[6].pVtab = iVar1;\n  }\n  else {\n    if (7 < iVar1) {\n      if (iVar1 == 8) {\n        iVar2 = 0;\n        uVar7 = 9;\n        if (cur[7].pVtab == (sqlite3_vtab *)0x0) {\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,&pS2,(char **)0x0);\n          pcVar5 = (char *)0x0;\n          pcVar6 = "";\n          while (iVar2 = sqlite3_step(pS2), iVar2 == 100) {\n            puVar4 = sqlite3_column_text(pS2,1);\n            pcVar5 = sqlite3_mprintf("%z%sSELECT name FROM \"%w\".sqlite_master",pcVar5,pcVar6,\n                                     puVar4);\n            pcVar6 = " UNION ";\n            if (pcVar5 == (char *)0x0) {\n              iVar1 = 7;\n              goto LAB_00112860;\n            }\n          }\n          sqlite3_finalize(pS2);\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,pcVar5,-1,(sqlite3_stmt **)(cur + 7),\n                             (char **)0x0);\n          sqlite3_free(pcVar5);\n          iVar2 = 0;\n          uVar7 = 9;\n        }\n      }\n      else {\n        if (iVar1 != 9) goto LAB_00112810;\n        iVar2 = 0;\n        uVar7 = 0xb;\n        if (cur[7].pVtab == (sqlite3_vtab *)0x0) {\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,&pS2,(char **)0x0);\n          pcVar5 = (char *)0x0;\n          pcVar6 = "";\n          while (iVar2 = sqlite3_step(pS2), iVar2 == 100) {\n            puVar4 = sqlite3_column_text(pS2,1);\n            pcVar5 = sqlite3_mprintf("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                     ,pcVar5,pcVar6,puVar4,puVar4);\n            pcVar6 = " UNION ";\n            if (pcVar5 == (char *)0x0) {\n              iVar1 = 7;\n              goto LAB_00112860;\n            }\n          }\n          sqlite3_finalize(pS2);\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,pcVar5,-1,(sqlite3_stmt **)(cur + 7),\n                             (char **)0x0);\n          sqlite3_free(pcVar5);\n          iVar2 = 0;\n          uVar7 = 0xb;\n        }\n      }\n      goto LAB_00112631;\n    }\n    if (iVar1 == 1) {\n      iVar2 = *(int *)((long)&cur[9].pVtab + 4);\n      iVar1 = sqlite3_keyword_count();\n      if (iVar1 <= iVar2) {\n        cur[5].pVtab = (sqlite3_vtab *)0x0;\n        *(undefined4 *)&cur[9].pVtab = 7;\n        iVar2 = -1;\n        goto LAB_00112674;\n      }\n      iVar2 = *(int *)((long)&cur[9].pVtab + 4);\n      *(int *)((long)&cur[9].pVtab + 4) = iVar2 + 1;\n      sqlite3_keyword_name(iVar2,(char **)(cur + 5),(int *)(cur + 6));\n      iVar2 = -1;\n    }\n    else {\nLAB_00112810:\n      if (-1 < iVar2) goto LAB_00112631;\n    }\n    if (cur[5].pVtab == (sqlite3_vtab *)0x0) goto LAB_00112674;\n  }\n  iVar1 = *(int *)&cur[2].pVtab;\n  if (iVar1 == 0) goto LAB_00112860;\n  if ((iVar1 <= *(int *)&cur[6].pVtab) &&\n     (iVar1 = sqlite3_strnicmp((char *)cur[3].pVtab,(char *)cur[5].pVtab,iVar1), iVar1 == 0)) {\n    iVar1 = 0;\nLAB_00112860:\n    if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }\n    return iVar1;\n  }\n  goto LAB_00112674;\n}\n\n" (function_definition "int completionNext(sqlite3_vtab_cursor *cur)\n\n{\n  int iVar1;\n  int iVar2;\n  sqlite3_vtab *psVar3;\n  uchar *puVar4;\n  char *pcVar5;\n  char *pcVar6;\n  undefined4 uVar7;\n  long in_FS_OFFSET;\n  sqlite3_stmt *pS2;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  cur[8].pVtab = (sqlite3_vtab *)((long)&(cur[8].pVtab)->pModule + 1);\n  iVar2 = -1;\n  uVar7 = 0;\nLAB_00112674:\n  iVar1 = *(int *)&cur[9].pVtab;\n  if (iVar1 == 0xb) {\n    iVar1 = 0;\n    goto LAB_00112860;\n  }\n  if (iVar1 == 7) {\n    iVar2 = 1;\n    uVar7 = 8;\n    if (cur[7].pVtab == (sqlite3_vtab *)0x0) {\n      sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,\n                         (sqlite3_stmt **)(cur + 7),(char **)0x0);\n    }\nLAB_00112631:\n    iVar1 = sqlite3_step((sqlite3_stmt *)cur[7].pVtab);\n    if (iVar1 != 100) {\n      sqlite3_finalize((sqlite3_stmt *)cur[7].pVtab);\n      cur[7].pVtab = (sqlite3_vtab *)0x0;\n      *(undefined4 *)&cur[9].pVtab = uVar7;\n      goto LAB_00112674;\n    }\n    psVar3 = (sqlite3_vtab *)sqlite3_column_text((sqlite3_stmt *)cur[7].pVtab,iVar2);\n    cur[5].pVtab = psVar3;\n    iVar1 = sqlite3_column_bytes((sqlite3_stmt *)cur[7].pVtab,iVar2);\n    *(int *)&cur[6].pVtab = iVar1;\n  }\n  else {\n    if (7 < iVar1) {\n      if (iVar1 == 8) {\n        iVar2 = 0;\n        uVar7 = 9;\n        if (cur[7].pVtab == (sqlite3_vtab *)0x0) {\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,&pS2,(char **)0x0);\n          pcVar5 = (char *)0x0;\n          pcVar6 = "";\n          while (iVar2 = sqlite3_step(pS2), iVar2 == 100) {\n            puVar4 = sqlite3_column_text(pS2,1);\n            pcVar5 = sqlite3_mprintf("%z%sSELECT name FROM \"%w\".sqlite_master",pcVar5,pcVar6,\n                                     puVar4);\n            pcVar6 = " UNION ";\n            if (pcVar5 == (char *)0x0) {\n              iVar1 = 7;\n              goto LAB_00112860;\n            }\n          }\n          sqlite3_finalize(pS2);\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,pcVar5,-1,(sqlite3_stmt **)(cur + 7),\n                             (char **)0x0);\n          sqlite3_free(pcVar5);\n          iVar2 = 0;\n          uVar7 = 9;\n        }\n      }\n      else {\n        if (iVar1 != 9) goto LAB_00112810;\n        iVar2 = 0;\n        uVar7 = 0xb;\n        if (cur[7].pVtab == (sqlite3_vtab *)0x0) {\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,&pS2,(char **)0x0);\n          pcVar5 = (char *)0x0;\n          pcVar6 = "";\n          while (iVar2 = sqlite3_step(pS2), iVar2 == 100) {\n            puVar4 = sqlite3_column_text(pS2,1);\n            pcVar5 = sqlite3_mprintf("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                     ,pcVar5,pcVar6,puVar4,puVar4);\n            pcVar6 = " UNION ";\n            if (pcVar5 == (char *)0x0) {\n              iVar1 = 7;\n              goto LAB_00112860;\n            }\n          }\n          sqlite3_finalize(pS2);\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,pcVar5,-1,(sqlite3_stmt **)(cur + 7),\n                             (char **)0x0);\n          sqlite3_free(pcVar5);\n          iVar2 = 0;\n          uVar7 = 0xb;\n        }\n      }\n      goto LAB_00112631;\n    }\n    if (iVar1 == 1) {\n      iVar2 = *(int *)((long)&cur[9].pVtab + 4);\n      iVar1 = sqlite3_keyword_count();\n      if (iVar1 <= iVar2) {\n        cur[5].pVtab = (sqlite3_vtab *)0x0;\n        *(undefined4 *)&cur[9].pVtab = 7;\n        iVar2 = -1;\n        goto LAB_00112674;\n      }\n      iVar2 = *(int *)((long)&cur[9].pVtab + 4);\n      *(int *)((long)&cur[9].pVtab + 4) = iVar2 + 1;\n      sqlite3_keyword_name(iVar2,(char **)(cur + 5),(int *)(cur + 6));\n      iVar2 = -1;\n    }\n    else {\nLAB_00112810:\n      if (-1 < iVar2) goto LAB_00112631;\n    }\n    if (cur[5].pVtab == (sqlite3_vtab *)0x0) goto LAB_00112674;\n  }\n  iVar1 = *(int *)&cur[2].pVtab;\n  if (iVar1 == 0) goto LAB_00112860;\n  if ((iVar1 <= *(int *)&cur[6].pVtab) &&\n     (iVar1 = sqlite3_strnicmp((char *)cur[3].pVtab,(char *)cur[5].pVtab,iVar1), iVar1 == 0)) {\n    iVar1 = 0;\nLAB_00112860:\n    if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }\n    return iVar1;\n  }\n  goto LAB_00112674;\n}" primitive_type (function_declarator "completionNext(sqlite3_vtab_cursor *cur)" identifier (parameter_list "(sqlite3_vtab_cursor *cur)" ( (parameter_declaration "sqlite3_vtab_cursor *cur" type_identifier (pointer_declarator "*cur" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  sqlite3_vtab *psVar3;\n  uchar *puVar4;\n  char *pcVar5;\n  char *pcVar6;\n  undefined4 uVar7;\n  long in_FS_OFFSET;\n  sqlite3_stmt *pS2;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  cur[8].pVtab = (sqlite3_vtab *)((long)&(cur[8].pVtab)->pModule + 1);\n  iVar2 = -1;\n  uVar7 = 0;\nLAB_00112674:\n  iVar1 = *(int *)&cur[9].pVtab;\n  if (iVar1 == 0xb) {\n    iVar1 = 0;\n    goto LAB_00112860;\n  }\n  if (iVar1 == 7) {\n    iVar2 = 1;\n    uVar7 = 8;\n    if (cur[7].pVtab == (sqlite3_vtab *)0x0) {\n      sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,\n                         (sqlite3_stmt **)(cur + 7),(char **)0x0);\n    }\nLAB_00112631:\n    iVar1 = sqlite3_step((sqlite3_stmt *)cur[7].pVtab);\n    if (iVar1 != 100) {\n      sqlite3_finalize((sqlite3_stmt *)cur[7].pVtab);\n      cur[7].pVtab = (sqlite3_vtab *)0x0;\n      *(undefined4 *)&cur[9].pVtab = uVar7;\n      goto LAB_00112674;\n    }\n    psVar3 = (sqlite3_vtab *)sqlite3_column_text((sqlite3_stmt *)cur[7].pVtab,iVar2);\n    cur[5].pVtab = psVar3;\n    iVar1 = sqlite3_column_bytes((sqlite3_stmt *)cur[7].pVtab,iVar2);\n    *(int *)&cur[6].pVtab = iVar1;\n  }\n  else {\n    if (7 < iVar1) {\n      if (iVar1 == 8) {\n        iVar2 = 0;\n        uVar7 = 9;\n        if (cur[7].pVtab == (sqlite3_vtab *)0x0) {\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,&pS2,(char **)0x0);\n          pcVar5 = (char *)0x0;\n          pcVar6 = "";\n          while (iVar2 = sqlite3_step(pS2), iVar2 == 100) {\n            puVar4 = sqlite3_column_text(pS2,1);\n            pcVar5 = sqlite3_mprintf("%z%sSELECT name FROM \"%w\".sqlite_master",pcVar5,pcVar6,\n                                     puVar4);\n            pcVar6 = " UNION ";\n            if (pcVar5 == (char *)0x0) {\n              iVar1 = 7;\n              goto LAB_00112860;\n            }\n          }\n          sqlite3_finalize(pS2);\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,pcVar5,-1,(sqlite3_stmt **)(cur + 7),\n                             (char **)0x0);\n          sqlite3_free(pcVar5);\n          iVar2 = 0;\n          uVar7 = 9;\n        }\n      }\n      else {\n        if (iVar1 != 9) goto LAB_00112810;\n        iVar2 = 0;\n        uVar7 = 0xb;\n        if (cur[7].pVtab == (sqlite3_vtab *)0x0) {\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,&pS2,(char **)0x0);\n          pcVar5 = (char *)0x0;\n          pcVar6 = "";\n          while (iVar2 = sqlite3_step(pS2), iVar2 == 100) {\n            puVar4 = sqlite3_column_text(pS2,1);\n            pcVar5 = sqlite3_mprintf("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                     ,pcVar5,pcVar6,puVar4,puVar4);\n            pcVar6 = " UNION ";\n            if (pcVar5 == (char *)0x0) {\n              iVar1 = 7;\n              goto LAB_00112860;\n            }\n          }\n          sqlite3_finalize(pS2);\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,pcVar5,-1,(sqlite3_stmt **)(cur + 7),\n                             (char **)0x0);\n          sqlite3_free(pcVar5);\n          iVar2 = 0;\n          uVar7 = 0xb;\n        }\n      }\n      goto LAB_00112631;\n    }\n    if (iVar1 == 1) {\n      iVar2 = *(int *)((long)&cur[9].pVtab + 4);\n      iVar1 = sqlite3_keyword_count();\n      if (iVar1 <= iVar2) {\n        cur[5].pVtab = (sqlite3_vtab *)0x0;\n        *(undefined4 *)&cur[9].pVtab = 7;\n        iVar2 = -1;\n        goto LAB_00112674;\n      }\n      iVar2 = *(int *)((long)&cur[9].pVtab + 4);\n      *(int *)((long)&cur[9].pVtab + 4) = iVar2 + 1;\n      sqlite3_keyword_name(iVar2,(char **)(cur + 5),(int *)(cur + 6));\n      iVar2 = -1;\n    }\n    else {\nLAB_00112810:\n      if (-1 < iVar2) goto LAB_00112631;\n    }\n    if (cur[5].pVtab == (sqlite3_vtab *)0x0) goto LAB_00112674;\n  }\n  iVar1 = *(int *)&cur[2].pVtab;\n  if (iVar1 == 0) goto LAB_00112860;\n  if ((iVar1 <= *(int *)&cur[6].pVtab) &&\n     (iVar1 = sqlite3_strnicmp((char *)cur[3].pVtab,(char *)cur[5].pVtab,iVar1), iVar1 == 0)) {\n    iVar1 = 0;\nLAB_00112860:\n    if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }\n    return iVar1;\n  }\n  goto LAB_00112674;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "sqlite3_vtab *psVar3;" type_identifier (pointer_declarator "*psVar3" * identifier) ;) (declaration "uchar *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "sqlite3_stmt *pS2;" type_identifier (pointer_declarator "*pS2" * identifier) ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "cur[8].pVtab = (sqlite3_vtab *)((long)&(cur[8].pVtab)->pModule + 1);" (assignment_expression "cur[8].pVtab = (sqlite3_vtab *)((long)&(cur[8].pVtab)->pModule + 1)" (field_expression "cur[8].pVtab" (subscript_expression "cur[8]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_vtab *)((long)&(cur[8].pVtab)->pModule + 1)" ( (type_descriptor "sqlite3_vtab *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&(cur[8].pVtab)->pModule + 1)" ( (binary_expression "(long)&(cur[8].pVtab)->pModule + 1" (cast_expression "(long)&(cur[8].pVtab)->pModule" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&(cur[8].pVtab)->pModule" & (field_expression "(cur[8].pVtab)->pModule" (parenthesized_expression "(cur[8].pVtab)" ( (field_expression "cur[8].pVtab" (subscript_expression "cur[8]" identifier [ number_literal ]) . field_identifier) )) -> field_identifier))) + number_literal) )))) ;) (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00112674:\n  iVar1 = *(int *)&cur[9].pVtab;" statement_identifier : (expression_statement "iVar1 = *(int *)&cur[9].pVtab;" (assignment_expression "iVar1 = *(int *)&cur[9].pVtab" identifier = (pointer_expression "*(int *)&cur[9].pVtab" * (cast_expression "(int *)&cur[9].pVtab" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&cur[9].pVtab" & (field_expression "cur[9].pVtab" (subscript_expression "cur[9]" identifier [ number_literal ]) . field_identifier))))) ;)) (if_statement "if (iVar1 == 0xb) {\n    iVar1 = 0;\n    goto LAB_00112860;\n  }" if (parenthesized_expression "(iVar1 == 0xb)" ( (binary_expression "iVar1 == 0xb" identifier == number_literal) )) (compound_statement "{\n    iVar1 = 0;\n    goto LAB_00112860;\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00112860;" goto statement_identifier ;) })) (if_statement "if (iVar1 == 7) {\n    iVar2 = 1;\n    uVar7 = 8;\n    if (cur[7].pVtab == (sqlite3_vtab *)0x0) {\n      sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,\n                         (sqlite3_stmt **)(cur + 7),(char **)0x0);\n    }\nLAB_00112631:\n    iVar1 = sqlite3_step((sqlite3_stmt *)cur[7].pVtab);\n    if (iVar1 != 100) {\n      sqlite3_finalize((sqlite3_stmt *)cur[7].pVtab);\n      cur[7].pVtab = (sqlite3_vtab *)0x0;\n      *(undefined4 *)&cur[9].pVtab = uVar7;\n      goto LAB_00112674;\n    }\n    psVar3 = (sqlite3_vtab *)sqlite3_column_text((sqlite3_stmt *)cur[7].pVtab,iVar2);\n    cur[5].pVtab = psVar3;\n    iVar1 = sqlite3_column_bytes((sqlite3_stmt *)cur[7].pVtab,iVar2);\n    *(int *)&cur[6].pVtab = iVar1;\n  }\n  else {\n    if (7 < iVar1) {\n      if (iVar1 == 8) {\n        iVar2 = 0;\n        uVar7 = 9;\n        if (cur[7].pVtab == (sqlite3_vtab *)0x0) {\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,&pS2,(char **)0x0);\n          pcVar5 = (char *)0x0;\n          pcVar6 = "";\n          while (iVar2 = sqlite3_step(pS2), iVar2 == 100) {\n            puVar4 = sqlite3_column_text(pS2,1);\n            pcVar5 = sqlite3_mprintf("%z%sSELECT name FROM \"%w\".sqlite_master",pcVar5,pcVar6,\n                                     puVar4);\n            pcVar6 = " UNION ";\n            if (pcVar5 == (char *)0x0) {\n              iVar1 = 7;\n              goto LAB_00112860;\n            }\n          }\n          sqlite3_finalize(pS2);\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,pcVar5,-1,(sqlite3_stmt **)(cur + 7),\n                             (char **)0x0);\n          sqlite3_free(pcVar5);\n          iVar2 = 0;\n          uVar7 = 9;\n        }\n      }\n      else {\n        if (iVar1 != 9) goto LAB_00112810;\n        iVar2 = 0;\n        uVar7 = 0xb;\n        if (cur[7].pVtab == (sqlite3_vtab *)0x0) {\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,&pS2,(char **)0x0);\n          pcVar5 = (char *)0x0;\n          pcVar6 = "";\n          while (iVar2 = sqlite3_step(pS2), iVar2 == 100) {\n            puVar4 = sqlite3_column_text(pS2,1);\n            pcVar5 = sqlite3_mprintf("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                     ,pcVar5,pcVar6,puVar4,puVar4);\n            pcVar6 = " UNION ";\n            if (pcVar5 == (char *)0x0) {\n              iVar1 = 7;\n              goto LAB_00112860;\n            }\n          }\n          sqlite3_finalize(pS2);\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,pcVar5,-1,(sqlite3_stmt **)(cur + 7),\n                             (char **)0x0);\n          sqlite3_free(pcVar5);\n          iVar2 = 0;\n          uVar7 = 0xb;\n        }\n      }\n      goto LAB_00112631;\n    }\n    if (iVar1 == 1) {\n      iVar2 = *(int *)((long)&cur[9].pVtab + 4);\n      iVar1 = sqlite3_keyword_count();\n      if (iVar1 <= iVar2) {\n        cur[5].pVtab = (sqlite3_vtab *)0x0;\n        *(undefined4 *)&cur[9].pVtab = 7;\n        iVar2 = -1;\n        goto LAB_00112674;\n      }\n      iVar2 = *(int *)((long)&cur[9].pVtab + 4);\n      *(int *)((long)&cur[9].pVtab + 4) = iVar2 + 1;\n      sqlite3_keyword_name(iVar2,(char **)(cur + 5),(int *)(cur + 6));\n      iVar2 = -1;\n    }\n    else {\nLAB_00112810:\n      if (-1 < iVar2) goto LAB_00112631;\n    }\n    if (cur[5].pVtab == (sqlite3_vtab *)0x0) goto LAB_00112674;\n  }" if (parenthesized_expression "(iVar1 == 7)" ( (binary_expression "iVar1 == 7" identifier == number_literal) )) (compound_statement "{\n    iVar2 = 1;\n    uVar7 = 8;\n    if (cur[7].pVtab == (sqlite3_vtab *)0x0) {\n      sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,\n                         (sqlite3_stmt **)(cur + 7),(char **)0x0);\n    }\nLAB_00112631:\n    iVar1 = sqlite3_step((sqlite3_stmt *)cur[7].pVtab);\n    if (iVar1 != 100) {\n      sqlite3_finalize((sqlite3_stmt *)cur[7].pVtab);\n      cur[7].pVtab = (sqlite3_vtab *)0x0;\n      *(undefined4 *)&cur[9].pVtab = uVar7;\n      goto LAB_00112674;\n    }\n    psVar3 = (sqlite3_vtab *)sqlite3_column_text((sqlite3_stmt *)cur[7].pVtab,iVar2);\n    cur[5].pVtab = psVar3;\n    iVar1 = sqlite3_column_bytes((sqlite3_stmt *)cur[7].pVtab,iVar2);\n    *(int *)&cur[6].pVtab = iVar1;\n  }" { (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" identifier = number_literal) ;) (expression_statement "uVar7 = 8;" (assignment_expression "uVar7 = 8" identifier = number_literal) ;) (if_statement "if (cur[7].pVtab == (sqlite3_vtab *)0x0) {\n      sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,\n                         (sqlite3_stmt **)(cur + 7),(char **)0x0);\n    }" if (parenthesized_expression "(cur[7].pVtab == (sqlite3_vtab *)0x0)" ( (binary_expression "cur[7].pVtab == (sqlite3_vtab *)0x0" (field_expression "cur[7].pVtab" (subscript_expression "cur[7]" identifier [ number_literal ]) . field_identifier) == (cast_expression "(sqlite3_vtab *)0x0" ( (type_descriptor "sqlite3_vtab *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,\n                         (sqlite3_stmt **)(cur + 7),(char **)0x0);\n    }" { (expression_statement "sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,\n                         (sqlite3_stmt **)(cur + 7),(char **)0x0);" (call_expression "sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,\n                         (sqlite3_stmt **)(cur + 7),(char **)0x0)" identifier (argument_list "((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,\n                         (sqlite3_stmt **)(cur + 7),(char **)0x0)" ( (cast_expression "(sqlite3 *)cur[1].pVtab" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "cur[1].pVtab" (subscript_expression "cur[1]" identifier [ number_literal ]) . field_identifier)) , (string_literal ""PRAGMA database_list"" " string_content ") , number_literal , (cast_expression "(sqlite3_stmt **)(cur + 7)" ( (type_descriptor "sqlite3_stmt **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(cur + 7)" ( (binary_expression "cur + 7" identifier + number_literal) ))) , (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) ))) ;) })) (labeled_statement "LAB_00112631:\n    iVar1 = sqlite3_step((sqlite3_stmt *)cur[7].pVtab);" statement_identifier : (expression_statement "iVar1 = sqlite3_step((sqlite3_stmt *)cur[7].pVtab);" (assignment_expression "iVar1 = sqlite3_step((sqlite3_stmt *)cur[7].pVtab)" identifier = (call_expression "sqlite3_step((sqlite3_stmt *)cur[7].pVtab)" identifier (argument_list "((sqlite3_stmt *)cur[7].pVtab)" ( (cast_expression "(sqlite3_stmt *)cur[7].pVtab" ( (type_descriptor "sqlite3_stmt *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "cur[7].pVtab" (subscript_expression "cur[7]" identifier [ number_literal ]) . field_identifier)) )))) ;)) (if_statement "if (iVar1 != 100) {\n      sqlite3_finalize((sqlite3_stmt *)cur[7].pVtab);\n      cur[7].pVtab = (sqlite3_vtab *)0x0;\n      *(undefined4 *)&cur[9].pVtab = uVar7;\n      goto LAB_00112674;\n    }" if (parenthesized_expression "(iVar1 != 100)" ( (binary_expression "iVar1 != 100" identifier != number_literal) )) (compound_statement "{\n      sqlite3_finalize((sqlite3_stmt *)cur[7].pVtab);\n      cur[7].pVtab = (sqlite3_vtab *)0x0;\n      *(undefined4 *)&cur[9].pVtab = uVar7;\n      goto LAB_00112674;\n    }" { (expression_statement "sqlite3_finalize((sqlite3_stmt *)cur[7].pVtab);" (call_expression "sqlite3_finalize((sqlite3_stmt *)cur[7].pVtab)" identifier (argument_list "((sqlite3_stmt *)cur[7].pVtab)" ( (cast_expression "(sqlite3_stmt *)cur[7].pVtab" ( (type_descriptor "sqlite3_stmt *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "cur[7].pVtab" (subscript_expression "cur[7]" identifier [ number_literal ]) . field_identifier)) ))) ;) (expression_statement "cur[7].pVtab = (sqlite3_vtab *)0x0;" (assignment_expression "cur[7].pVtab = (sqlite3_vtab *)0x0" (field_expression "cur[7].pVtab" (subscript_expression "cur[7]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_vtab *)0x0" ( (type_descriptor "sqlite3_vtab *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "*(undefined4 *)&cur[9].pVtab = uVar7;" (assignment_expression "*(undefined4 *)&cur[9].pVtab = uVar7" (pointer_expression "*(undefined4 *)&cur[9].pVtab" * (cast_expression "(undefined4 *)&cur[9].pVtab" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&cur[9].pVtab" & (field_expression "cur[9].pVtab" (subscript_expression "cur[9]" identifier [ number_literal ]) . field_identifier)))) = identifier) ;) (goto_statement "goto LAB_00112674;" goto statement_identifier ;) })) (expression_statement "psVar3 = (sqlite3_vtab *)sqlite3_column_text((sqlite3_stmt *)cur[7].pVtab,iVar2);" (assignment_expression "psVar3 = (sqlite3_vtab *)sqlite3_column_text((sqlite3_stmt *)cur[7].pVtab,iVar2)" identifier = (cast_expression "(sqlite3_vtab *)sqlite3_column_text((sqlite3_stmt *)cur[7].pVtab,iVar2)" ( (type_descriptor "sqlite3_vtab *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_column_text((sqlite3_stmt *)cur[7].pVtab,iVar2)" identifier (argument_list "((sqlite3_stmt *)cur[7].pVtab,iVar2)" ( (cast_expression "(sqlite3_stmt *)cur[7].pVtab" ( (type_descriptor "sqlite3_stmt *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "cur[7].pVtab" (subscript_expression "cur[7]" identifier [ number_literal ]) . field_identifier)) , identifier ))))) ;) (expression_statement "cur[5].pVtab = psVar3;" (assignment_expression "cur[5].pVtab = psVar3" (field_expression "cur[5].pVtab" (subscript_expression "cur[5]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "iVar1 = sqlite3_column_bytes((sqlite3_stmt *)cur[7].pVtab,iVar2);" (assignment_expression "iVar1 = sqlite3_column_bytes((sqlite3_stmt *)cur[7].pVtab,iVar2)" identifier = (call_expression "sqlite3_column_bytes((sqlite3_stmt *)cur[7].pVtab,iVar2)" identifier (argument_list "((sqlite3_stmt *)cur[7].pVtab,iVar2)" ( (cast_expression "(sqlite3_stmt *)cur[7].pVtab" ( (type_descriptor "sqlite3_stmt *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "cur[7].pVtab" (subscript_expression "cur[7]" identifier [ number_literal ]) . field_identifier)) , identifier )))) ;) (expression_statement "*(int *)&cur[6].pVtab = iVar1;" (assignment_expression "*(int *)&cur[6].pVtab = iVar1" (pointer_expression "*(int *)&cur[6].pVtab" * (cast_expression "(int *)&cur[6].pVtab" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&cur[6].pVtab" & (field_expression "cur[6].pVtab" (subscript_expression "cur[6]" identifier [ number_literal ]) . field_identifier)))) = identifier) ;) }) (else_clause "else {\n    if (7 < iVar1) {\n      if (iVar1 == 8) {\n        iVar2 = 0;\n        uVar7 = 9;\n        if (cur[7].pVtab == (sqlite3_vtab *)0x0) {\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,&pS2,(char **)0x0);\n          pcVar5 = (char *)0x0;\n          pcVar6 = "";\n          while (iVar2 = sqlite3_step(pS2), iVar2 == 100) {\n            puVar4 = sqlite3_column_text(pS2,1);\n            pcVar5 = sqlite3_mprintf("%z%sSELECT name FROM \"%w\".sqlite_master",pcVar5,pcVar6,\n                                     puVar4);\n            pcVar6 = " UNION ";\n            if (pcVar5 == (char *)0x0) {\n              iVar1 = 7;\n              goto LAB_00112860;\n            }\n          }\n          sqlite3_finalize(pS2);\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,pcVar5,-1,(sqlite3_stmt **)(cur + 7),\n                             (char **)0x0);\n          sqlite3_free(pcVar5);\n          iVar2 = 0;\n          uVar7 = 9;\n        }\n      }\n      else {\n        if (iVar1 != 9) goto LAB_00112810;\n        iVar2 = 0;\n        uVar7 = 0xb;\n        if (cur[7].pVtab == (sqlite3_vtab *)0x0) {\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,&pS2,(char **)0x0);\n          pcVar5 = (char *)0x0;\n          pcVar6 = "";\n          while (iVar2 = sqlite3_step(pS2), iVar2 == 100) {\n            puVar4 = sqlite3_column_text(pS2,1);\n            pcVar5 = sqlite3_mprintf("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                     ,pcVar5,pcVar6,puVar4,puVar4);\n            pcVar6 = " UNION ";\n            if (pcVar5 == (char *)0x0) {\n              iVar1 = 7;\n              goto LAB_00112860;\n            }\n          }\n          sqlite3_finalize(pS2);\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,pcVar5,-1,(sqlite3_stmt **)(cur + 7),\n                             (char **)0x0);\n          sqlite3_free(pcVar5);\n          iVar2 = 0;\n          uVar7 = 0xb;\n        }\n      }\n      goto LAB_00112631;\n    }\n    if (iVar1 == 1) {\n      iVar2 = *(int *)((long)&cur[9].pVtab + 4);\n      iVar1 = sqlite3_keyword_count();\n      if (iVar1 <= iVar2) {\n        cur[5].pVtab = (sqlite3_vtab *)0x0;\n        *(undefined4 *)&cur[9].pVtab = 7;\n        iVar2 = -1;\n        goto LAB_00112674;\n      }\n      iVar2 = *(int *)((long)&cur[9].pVtab + 4);\n      *(int *)((long)&cur[9].pVtab + 4) = iVar2 + 1;\n      sqlite3_keyword_name(iVar2,(char **)(cur + 5),(int *)(cur + 6));\n      iVar2 = -1;\n    }\n    else {\nLAB_00112810:\n      if (-1 < iVar2) goto LAB_00112631;\n    }\n    if (cur[5].pVtab == (sqlite3_vtab *)0x0) goto LAB_00112674;\n  }" else (compound_statement "{\n    if (7 < iVar1) {\n      if (iVar1 == 8) {\n        iVar2 = 0;\n        uVar7 = 9;\n        if (cur[7].pVtab == (sqlite3_vtab *)0x0) {\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,&pS2,(char **)0x0);\n          pcVar5 = (char *)0x0;\n          pcVar6 = "";\n          while (iVar2 = sqlite3_step(pS2), iVar2 == 100) {\n            puVar4 = sqlite3_column_text(pS2,1);\n            pcVar5 = sqlite3_mprintf("%z%sSELECT name FROM \"%w\".sqlite_master",pcVar5,pcVar6,\n                                     puVar4);\n            pcVar6 = " UNION ";\n            if (pcVar5 == (char *)0x0) {\n              iVar1 = 7;\n              goto LAB_00112860;\n            }\n          }\n          sqlite3_finalize(pS2);\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,pcVar5,-1,(sqlite3_stmt **)(cur + 7),\n                             (char **)0x0);\n          sqlite3_free(pcVar5);\n          iVar2 = 0;\n          uVar7 = 9;\n        }\n      }\n      else {\n        if (iVar1 != 9) goto LAB_00112810;\n        iVar2 = 0;\n        uVar7 = 0xb;\n        if (cur[7].pVtab == (sqlite3_vtab *)0x0) {\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,&pS2,(char **)0x0);\n          pcVar5 = (char *)0x0;\n          pcVar6 = "";\n          while (iVar2 = sqlite3_step(pS2), iVar2 == 100) {\n            puVar4 = sqlite3_column_text(pS2,1);\n            pcVar5 = sqlite3_mprintf("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                     ,pcVar5,pcVar6,puVar4,puVar4);\n            pcVar6 = " UNION ";\n            if (pcVar5 == (char *)0x0) {\n              iVar1 = 7;\n              goto LAB_00112860;\n            }\n          }\n          sqlite3_finalize(pS2);\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,pcVar5,-1,(sqlite3_stmt **)(cur + 7),\n                             (char **)0x0);\n          sqlite3_free(pcVar5);\n          iVar2 = 0;\n          uVar7 = 0xb;\n        }\n      }\n      goto LAB_00112631;\n    }\n    if (iVar1 == 1) {\n      iVar2 = *(int *)((long)&cur[9].pVtab + 4);\n      iVar1 = sqlite3_keyword_count();\n      if (iVar1 <= iVar2) {\n        cur[5].pVtab = (sqlite3_vtab *)0x0;\n        *(undefined4 *)&cur[9].pVtab = 7;\n        iVar2 = -1;\n        goto LAB_00112674;\n      }\n      iVar2 = *(int *)((long)&cur[9].pVtab + 4);\n      *(int *)((long)&cur[9].pVtab + 4) = iVar2 + 1;\n      sqlite3_keyword_name(iVar2,(char **)(cur + 5),(int *)(cur + 6));\n      iVar2 = -1;\n    }\n    else {\nLAB_00112810:\n      if (-1 < iVar2) goto LAB_00112631;\n    }\n    if (cur[5].pVtab == (sqlite3_vtab *)0x0) goto LAB_00112674;\n  }" { (if_statement "if (7 < iVar1) {\n      if (iVar1 == 8) {\n        iVar2 = 0;\n        uVar7 = 9;\n        if (cur[7].pVtab == (sqlite3_vtab *)0x0) {\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,&pS2,(char **)0x0);\n          pcVar5 = (char *)0x0;\n          pcVar6 = "";\n          while (iVar2 = sqlite3_step(pS2), iVar2 == 100) {\n            puVar4 = sqlite3_column_text(pS2,1);\n            pcVar5 = sqlite3_mprintf("%z%sSELECT name FROM \"%w\".sqlite_master",pcVar5,pcVar6,\n                                     puVar4);\n            pcVar6 = " UNION ";\n            if (pcVar5 == (char *)0x0) {\n              iVar1 = 7;\n              goto LAB_00112860;\n            }\n          }\n          sqlite3_finalize(pS2);\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,pcVar5,-1,(sqlite3_stmt **)(cur + 7),\n                             (char **)0x0);\n          sqlite3_free(pcVar5);\n          iVar2 = 0;\n          uVar7 = 9;\n        }\n      }\n      else {\n        if (iVar1 != 9) goto LAB_00112810;\n        iVar2 = 0;\n        uVar7 = 0xb;\n        if (cur[7].pVtab == (sqlite3_vtab *)0x0) {\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,&pS2,(char **)0x0);\n          pcVar5 = (char *)0x0;\n          pcVar6 = "";\n          while (iVar2 = sqlite3_step(pS2), iVar2 == 100) {\n            puVar4 = sqlite3_column_text(pS2,1);\n            pcVar5 = sqlite3_mprintf("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                     ,pcVar5,pcVar6,puVar4,puVar4);\n            pcVar6 = " UNION ";\n            if (pcVar5 == (char *)0x0) {\n              iVar1 = 7;\n              goto LAB_00112860;\n            }\n          }\n          sqlite3_finalize(pS2);\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,pcVar5,-1,(sqlite3_stmt **)(cur + 7),\n                             (char **)0x0);\n          sqlite3_free(pcVar5);\n          iVar2 = 0;\n          uVar7 = 0xb;\n        }\n      }\n      goto LAB_00112631;\n    }" if (parenthesized_expression "(7 < iVar1)" ( (binary_expression "7 < iVar1" number_literal < identifier) )) (compound_statement "{\n      if (iVar1 == 8) {\n        iVar2 = 0;\n        uVar7 = 9;\n        if (cur[7].pVtab == (sqlite3_vtab *)0x0) {\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,&pS2,(char **)0x0);\n          pcVar5 = (char *)0x0;\n          pcVar6 = "";\n          while (iVar2 = sqlite3_step(pS2), iVar2 == 100) {\n            puVar4 = sqlite3_column_text(pS2,1);\n            pcVar5 = sqlite3_mprintf("%z%sSELECT name FROM \"%w\".sqlite_master",pcVar5,pcVar6,\n                                     puVar4);\n            pcVar6 = " UNION ";\n            if (pcVar5 == (char *)0x0) {\n              iVar1 = 7;\n              goto LAB_00112860;\n            }\n          }\n          sqlite3_finalize(pS2);\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,pcVar5,-1,(sqlite3_stmt **)(cur + 7),\n                             (char **)0x0);\n          sqlite3_free(pcVar5);\n          iVar2 = 0;\n          uVar7 = 9;\n        }\n      }\n      else {\n        if (iVar1 != 9) goto LAB_00112810;\n        iVar2 = 0;\n        uVar7 = 0xb;\n        if (cur[7].pVtab == (sqlite3_vtab *)0x0) {\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,&pS2,(char **)0x0);\n          pcVar5 = (char *)0x0;\n          pcVar6 = "";\n          while (iVar2 = sqlite3_step(pS2), iVar2 == 100) {\n            puVar4 = sqlite3_column_text(pS2,1);\n            pcVar5 = sqlite3_mprintf("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                     ,pcVar5,pcVar6,puVar4,puVar4);\n            pcVar6 = " UNION ";\n            if (pcVar5 == (char *)0x0) {\n              iVar1 = 7;\n              goto LAB_00112860;\n            }\n          }\n          sqlite3_finalize(pS2);\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,pcVar5,-1,(sqlite3_stmt **)(cur + 7),\n                             (char **)0x0);\n          sqlite3_free(pcVar5);\n          iVar2 = 0;\n          uVar7 = 0xb;\n        }\n      }\n      goto LAB_00112631;\n    }" { (if_statement "if (iVar1 == 8) {\n        iVar2 = 0;\n        uVar7 = 9;\n        if (cur[7].pVtab == (sqlite3_vtab *)0x0) {\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,&pS2,(char **)0x0);\n          pcVar5 = (char *)0x0;\n          pcVar6 = "";\n          while (iVar2 = sqlite3_step(pS2), iVar2 == 100) {\n            puVar4 = sqlite3_column_text(pS2,1);\n            pcVar5 = sqlite3_mprintf("%z%sSELECT name FROM \"%w\".sqlite_master",pcVar5,pcVar6,\n                                     puVar4);\n            pcVar6 = " UNION ";\n            if (pcVar5 == (char *)0x0) {\n              iVar1 = 7;\n              goto LAB_00112860;\n            }\n          }\n          sqlite3_finalize(pS2);\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,pcVar5,-1,(sqlite3_stmt **)(cur + 7),\n                             (char **)0x0);\n          sqlite3_free(pcVar5);\n          iVar2 = 0;\n          uVar7 = 9;\n        }\n      }\n      else {\n        if (iVar1 != 9) goto LAB_00112810;\n        iVar2 = 0;\n        uVar7 = 0xb;\n        if (cur[7].pVtab == (sqlite3_vtab *)0x0) {\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,&pS2,(char **)0x0);\n          pcVar5 = (char *)0x0;\n          pcVar6 = "";\n          while (iVar2 = sqlite3_step(pS2), iVar2 == 100) {\n            puVar4 = sqlite3_column_text(pS2,1);\n            pcVar5 = sqlite3_mprintf("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                     ,pcVar5,pcVar6,puVar4,puVar4);\n            pcVar6 = " UNION ";\n            if (pcVar5 == (char *)0x0) {\n              iVar1 = 7;\n              goto LAB_00112860;\n            }\n          }\n          sqlite3_finalize(pS2);\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,pcVar5,-1,(sqlite3_stmt **)(cur + 7),\n                             (char **)0x0);\n          sqlite3_free(pcVar5);\n          iVar2 = 0;\n          uVar7 = 0xb;\n        }\n      }" if (parenthesized_expression "(iVar1 == 8)" ( (binary_expression "iVar1 == 8" identifier == number_literal) )) (compound_statement "{\n        iVar2 = 0;\n        uVar7 = 9;\n        if (cur[7].pVtab == (sqlite3_vtab *)0x0) {\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,&pS2,(char **)0x0);\n          pcVar5 = (char *)0x0;\n          pcVar6 = "";\n          while (iVar2 = sqlite3_step(pS2), iVar2 == 100) {\n            puVar4 = sqlite3_column_text(pS2,1);\n            pcVar5 = sqlite3_mprintf("%z%sSELECT name FROM \"%w\".sqlite_master",pcVar5,pcVar6,\n                                     puVar4);\n            pcVar6 = " UNION ";\n            if (pcVar5 == (char *)0x0) {\n              iVar1 = 7;\n              goto LAB_00112860;\n            }\n          }\n          sqlite3_finalize(pS2);\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,pcVar5,-1,(sqlite3_stmt **)(cur + 7),\n                             (char **)0x0);\n          sqlite3_free(pcVar5);\n          iVar2 = 0;\n          uVar7 = 9;\n        }\n      }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "uVar7 = 9;" (assignment_expression "uVar7 = 9" identifier = number_literal) ;) (if_statement "if (cur[7].pVtab == (sqlite3_vtab *)0x0) {\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,&pS2,(char **)0x0);\n          pcVar5 = (char *)0x0;\n          pcVar6 = "";\n          while (iVar2 = sqlite3_step(pS2), iVar2 == 100) {\n            puVar4 = sqlite3_column_text(pS2,1);\n            pcVar5 = sqlite3_mprintf("%z%sSELECT name FROM \"%w\".sqlite_master",pcVar5,pcVar6,\n                                     puVar4);\n            pcVar6 = " UNION ";\n            if (pcVar5 == (char *)0x0) {\n              iVar1 = 7;\n              goto LAB_00112860;\n            }\n          }\n          sqlite3_finalize(pS2);\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,pcVar5,-1,(sqlite3_stmt **)(cur + 7),\n                             (char **)0x0);\n          sqlite3_free(pcVar5);\n          iVar2 = 0;\n          uVar7 = 9;\n        }" if (parenthesized_expression "(cur[7].pVtab == (sqlite3_vtab *)0x0)" ( (binary_expression "cur[7].pVtab == (sqlite3_vtab *)0x0" (field_expression "cur[7].pVtab" (subscript_expression "cur[7]" identifier [ number_literal ]) . field_identifier) == (cast_expression "(sqlite3_vtab *)0x0" ( (type_descriptor "sqlite3_vtab *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,&pS2,(char **)0x0);\n          pcVar5 = (char *)0x0;\n          pcVar6 = "";\n          while (iVar2 = sqlite3_step(pS2), iVar2 == 100) {\n            puVar4 = sqlite3_column_text(pS2,1);\n            pcVar5 = sqlite3_mprintf("%z%sSELECT name FROM \"%w\".sqlite_master",pcVar5,pcVar6,\n                                     puVar4);\n            pcVar6 = " UNION ";\n            if (pcVar5 == (char *)0x0) {\n              iVar1 = 7;\n              goto LAB_00112860;\n            }\n          }\n          sqlite3_finalize(pS2);\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,pcVar5,-1,(sqlite3_stmt **)(cur + 7),\n                             (char **)0x0);\n          sqlite3_free(pcVar5);\n          iVar2 = 0;\n          uVar7 = 9;\n        }" { (expression_statement "sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,&pS2,(char **)0x0);" (call_expression "sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,&pS2,(char **)0x0)" identifier (argument_list "((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,&pS2,(char **)0x0)" ( (cast_expression "(sqlite3 *)cur[1].pVtab" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "cur[1].pVtab" (subscript_expression "cur[1]" identifier [ number_literal ]) . field_identifier)) , (string_literal ""PRAGMA database_list"" " string_content ") , number_literal , (pointer_expression "&pS2" & identifier) , (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) ))) ;) (expression_statement "pcVar5 = (char *)0x0;" (assignment_expression "pcVar5 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pcVar6 = "";" (assignment_expression "pcVar6 = """ identifier = (string_literal """" " ")) ;) (while_statement "while (iVar2 = sqlite3_step(pS2), iVar2 == 100) {\n            puVar4 = sqlite3_column_text(pS2,1);\n            pcVar5 = sqlite3_mprintf("%z%sSELECT name FROM \"%w\".sqlite_master",pcVar5,pcVar6,\n                                     puVar4);\n            pcVar6 = " UNION ";\n            if (pcVar5 == (char *)0x0) {\n              iVar1 = 7;\n              goto LAB_00112860;\n            }\n          }" while (parenthesized_expression "(iVar2 = sqlite3_step(pS2), iVar2 == 100)" ( (comma_expression "iVar2 = sqlite3_step(pS2), iVar2 == 100" (assignment_expression "iVar2 = sqlite3_step(pS2)" identifier = (call_expression "sqlite3_step(pS2)" identifier (argument_list "(pS2)" ( identifier )))) , (binary_expression "iVar2 == 100" identifier == number_literal)) )) (compound_statement "{\n            puVar4 = sqlite3_column_text(pS2,1);\n            pcVar5 = sqlite3_mprintf("%z%sSELECT name FROM \"%w\".sqlite_master",pcVar5,pcVar6,\n                                     puVar4);\n            pcVar6 = " UNION ";\n            if (pcVar5 == (char *)0x0) {\n              iVar1 = 7;\n              goto LAB_00112860;\n            }\n          }" { (expression_statement "puVar4 = sqlite3_column_text(pS2,1);" (assignment_expression "puVar4 = sqlite3_column_text(pS2,1)" identifier = (call_expression "sqlite3_column_text(pS2,1)" identifier (argument_list "(pS2,1)" ( identifier , number_literal )))) ;) (expression_statement "pcVar5 = sqlite3_mprintf("%z%sSELECT name FROM \"%w\".sqlite_master",pcVar5,pcVar6,\n                                     puVar4);" (assignment_expression "pcVar5 = sqlite3_mprintf("%z%sSELECT name FROM \"%w\".sqlite_master",pcVar5,pcVar6,\n                                     puVar4)" identifier = (call_expression "sqlite3_mprintf("%z%sSELECT name FROM \"%w\".sqlite_master",pcVar5,pcVar6,\n                                     puVar4)" identifier (argument_list "("%z%sSELECT name FROM \"%w\".sqlite_master",pcVar5,pcVar6,\n                                     puVar4)" ( (string_literal ""%z%sSELECT name FROM \"%w\".sqlite_master"" " string_content escape_sequence string_content escape_sequence string_content ") , identifier , identifier , identifier )))) ;) (expression_statement "pcVar6 = " UNION ";" (assignment_expression "pcVar6 = " UNION "" identifier = (string_literal "" UNION "" " string_content ")) ;) (if_statement "if (pcVar5 == (char *)0x0) {\n              iVar1 = 7;\n              goto LAB_00112860;\n            }" if (parenthesized_expression "(pcVar5 == (char *)0x0)" ( (binary_expression "pcVar5 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              iVar1 = 7;\n              goto LAB_00112860;\n            }" { (expression_statement "iVar1 = 7;" (assignment_expression "iVar1 = 7" identifier = number_literal) ;) (goto_statement "goto LAB_00112860;" goto statement_identifier ;) })) })) (expression_statement "sqlite3_finalize(pS2);" (call_expression "sqlite3_finalize(pS2)" identifier (argument_list "(pS2)" ( identifier ))) ;) (expression_statement "sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,pcVar5,-1,(sqlite3_stmt **)(cur + 7),\n                             (char **)0x0);" (call_expression "sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,pcVar5,-1,(sqlite3_stmt **)(cur + 7),\n                             (char **)0x0)" identifier (argument_list "((sqlite3 *)cur[1].pVtab,pcVar5,-1,(sqlite3_stmt **)(cur + 7),\n                             (char **)0x0)" ( (cast_expression "(sqlite3 *)cur[1].pVtab" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "cur[1].pVtab" (subscript_expression "cur[1]" identifier [ number_literal ]) . field_identifier)) , identifier , number_literal , (cast_expression "(sqlite3_stmt **)(cur + 7)" ( (type_descriptor "sqlite3_stmt **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(cur + 7)" ( (binary_expression "cur + 7" identifier + number_literal) ))) , (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) ))) ;) (expression_statement "sqlite3_free(pcVar5);" (call_expression "sqlite3_free(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier ))) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "uVar7 = 9;" (assignment_expression "uVar7 = 9" identifier = number_literal) ;) })) }) (else_clause "else {\n        if (iVar1 != 9) goto LAB_00112810;\n        iVar2 = 0;\n        uVar7 = 0xb;\n        if (cur[7].pVtab == (sqlite3_vtab *)0x0) {\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,&pS2,(char **)0x0);\n          pcVar5 = (char *)0x0;\n          pcVar6 = "";\n          while (iVar2 = sqlite3_step(pS2), iVar2 == 100) {\n            puVar4 = sqlite3_column_text(pS2,1);\n            pcVar5 = sqlite3_mprintf("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                     ,pcVar5,pcVar6,puVar4,puVar4);\n            pcVar6 = " UNION ";\n            if (pcVar5 == (char *)0x0) {\n              iVar1 = 7;\n              goto LAB_00112860;\n            }\n          }\n          sqlite3_finalize(pS2);\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,pcVar5,-1,(sqlite3_stmt **)(cur + 7),\n                             (char **)0x0);\n          sqlite3_free(pcVar5);\n          iVar2 = 0;\n          uVar7 = 0xb;\n        }\n      }" else (compound_statement "{\n        if (iVar1 != 9) goto LAB_00112810;\n        iVar2 = 0;\n        uVar7 = 0xb;\n        if (cur[7].pVtab == (sqlite3_vtab *)0x0) {\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,&pS2,(char **)0x0);\n          pcVar5 = (char *)0x0;\n          pcVar6 = "";\n          while (iVar2 = sqlite3_step(pS2), iVar2 == 100) {\n            puVar4 = sqlite3_column_text(pS2,1);\n            pcVar5 = sqlite3_mprintf("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                     ,pcVar5,pcVar6,puVar4,puVar4);\n            pcVar6 = " UNION ";\n            if (pcVar5 == (char *)0x0) {\n              iVar1 = 7;\n              goto LAB_00112860;\n            }\n          }\n          sqlite3_finalize(pS2);\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,pcVar5,-1,(sqlite3_stmt **)(cur + 7),\n                             (char **)0x0);\n          sqlite3_free(pcVar5);\n          iVar2 = 0;\n          uVar7 = 0xb;\n        }\n      }" { (if_statement "if (iVar1 != 9) goto LAB_00112810;" if (parenthesized_expression "(iVar1 != 9)" ( (binary_expression "iVar1 != 9" identifier != number_literal) )) (goto_statement "goto LAB_00112810;" goto statement_identifier ;)) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "uVar7 = 0xb;" (assignment_expression "uVar7 = 0xb" identifier = number_literal) ;) (if_statement "if (cur[7].pVtab == (sqlite3_vtab *)0x0) {\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,&pS2,(char **)0x0);\n          pcVar5 = (char *)0x0;\n          pcVar6 = "";\n          while (iVar2 = sqlite3_step(pS2), iVar2 == 100) {\n            puVar4 = sqlite3_column_text(pS2,1);\n            pcVar5 = sqlite3_mprintf("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                     ,pcVar5,pcVar6,puVar4,puVar4);\n            pcVar6 = " UNION ";\n            if (pcVar5 == (char *)0x0) {\n              iVar1 = 7;\n              goto LAB_00112860;\n            }\n          }\n          sqlite3_finalize(pS2);\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,pcVar5,-1,(sqlite3_stmt **)(cur + 7),\n                             (char **)0x0);\n          sqlite3_free(pcVar5);\n          iVar2 = 0;\n          uVar7 = 0xb;\n        }" if (parenthesized_expression "(cur[7].pVtab == (sqlite3_vtab *)0x0)" ( (binary_expression "cur[7].pVtab == (sqlite3_vtab *)0x0" (field_expression "cur[7].pVtab" (subscript_expression "cur[7]" identifier [ number_literal ]) . field_identifier) == (cast_expression "(sqlite3_vtab *)0x0" ( (type_descriptor "sqlite3_vtab *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,&pS2,(char **)0x0);\n          pcVar5 = (char *)0x0;\n          pcVar6 = "";\n          while (iVar2 = sqlite3_step(pS2), iVar2 == 100) {\n            puVar4 = sqlite3_column_text(pS2,1);\n            pcVar5 = sqlite3_mprintf("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                     ,pcVar5,pcVar6,puVar4,puVar4);\n            pcVar6 = " UNION ";\n            if (pcVar5 == (char *)0x0) {\n              iVar1 = 7;\n              goto LAB_00112860;\n            }\n          }\n          sqlite3_finalize(pS2);\n          sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,pcVar5,-1,(sqlite3_stmt **)(cur + 7),\n                             (char **)0x0);\n          sqlite3_free(pcVar5);\n          iVar2 = 0;\n          uVar7 = 0xb;\n        }" { (expression_statement "sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,&pS2,(char **)0x0);" (call_expression "sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,&pS2,(char **)0x0)" identifier (argument_list "((sqlite3 *)cur[1].pVtab,"PRAGMA database_list",-1,&pS2,(char **)0x0)" ( (cast_expression "(sqlite3 *)cur[1].pVtab" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "cur[1].pVtab" (subscript_expression "cur[1]" identifier [ number_literal ]) . field_identifier)) , (string_literal ""PRAGMA database_list"" " string_content ") , number_literal , (pointer_expression "&pS2" & identifier) , (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) ))) ;) (expression_statement "pcVar5 = (char *)0x0;" (assignment_expression "pcVar5 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pcVar6 = "";" (assignment_expression "pcVar6 = """ identifier = (string_literal """" " ")) ;) (while_statement "while (iVar2 = sqlite3_step(pS2), iVar2 == 100) {\n            puVar4 = sqlite3_column_text(pS2,1);\n            pcVar5 = sqlite3_mprintf("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                     ,pcVar5,pcVar6,puVar4,puVar4);\n            pcVar6 = " UNION ";\n            if (pcVar5 == (char *)0x0) {\n              iVar1 = 7;\n              goto LAB_00112860;\n            }\n          }" while (parenthesized_expression "(iVar2 = sqlite3_step(pS2), iVar2 == 100)" ( (comma_expression "iVar2 = sqlite3_step(pS2), iVar2 == 100" (assignment_expression "iVar2 = sqlite3_step(pS2)" identifier = (call_expression "sqlite3_step(pS2)" identifier (argument_list "(pS2)" ( identifier )))) , (binary_expression "iVar2 == 100" identifier == number_literal)) )) (compound_statement "{\n            puVar4 = sqlite3_column_text(pS2,1);\n            pcVar5 = sqlite3_mprintf("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                     ,pcVar5,pcVar6,puVar4,puVar4);\n            pcVar6 = " UNION ";\n            if (pcVar5 == (char *)0x0) {\n              iVar1 = 7;\n              goto LAB_00112860;\n            }\n          }" { (expression_statement "puVar4 = sqlite3_column_text(pS2,1);" (assignment_expression "puVar4 = sqlite3_column_text(pS2,1)" identifier = (call_expression "sqlite3_column_text(pS2,1)" identifier (argument_list "(pS2,1)" ( identifier , number_literal )))) ;) (expression_statement "pcVar5 = sqlite3_mprintf("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                     ,pcVar5,pcVar6,puVar4,puVar4);" (assignment_expression "pcVar5 = sqlite3_mprintf("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                     ,pcVar5,pcVar6,puVar4,puVar4)" identifier = (call_expression "sqlite3_mprintf("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                     ,pcVar5,pcVar6,puVar4,puVar4)" identifier (argument_list "("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                     ,pcVar5,pcVar6,puVar4,puVar4)" ( (string_literal ""%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"" " string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence ") , identifier , identifier , identifier , identifier )))) ;) (expression_statement "pcVar6 = " UNION ";" (assignment_expression "pcVar6 = " UNION "" identifier = (string_literal "" UNION "" " string_content ")) ;) (if_statement "if (pcVar5 == (char *)0x0) {\n              iVar1 = 7;\n              goto LAB_00112860;\n            }" if (parenthesized_expression "(pcVar5 == (char *)0x0)" ( (binary_expression "pcVar5 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              iVar1 = 7;\n              goto LAB_00112860;\n            }" { (expression_statement "iVar1 = 7;" (assignment_expression "iVar1 = 7" identifier = number_literal) ;) (goto_statement "goto LAB_00112860;" goto statement_identifier ;) })) })) (expression_statement "sqlite3_finalize(pS2);" (call_expression "sqlite3_finalize(pS2)" identifier (argument_list "(pS2)" ( identifier ))) ;) (expression_statement "sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,pcVar5,-1,(sqlite3_stmt **)(cur + 7),\n                             (char **)0x0);" (call_expression "sqlite3_prepare_v2((sqlite3 *)cur[1].pVtab,pcVar5,-1,(sqlite3_stmt **)(cur + 7),\n                             (char **)0x0)" identifier (argument_list "((sqlite3 *)cur[1].pVtab,pcVar5,-1,(sqlite3_stmt **)(cur + 7),\n                             (char **)0x0)" ( (cast_expression "(sqlite3 *)cur[1].pVtab" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "cur[1].pVtab" (subscript_expression "cur[1]" identifier [ number_literal ]) . field_identifier)) , identifier , number_literal , (cast_expression "(sqlite3_stmt **)(cur + 7)" ( (type_descriptor "sqlite3_stmt **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(cur + 7)" ( (binary_expression "cur + 7" identifier + number_literal) ))) , (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) ))) ;) (expression_statement "sqlite3_free(pcVar5);" (call_expression "sqlite3_free(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier ))) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "uVar7 = 0xb;" (assignment_expression "uVar7 = 0xb" identifier = number_literal) ;) })) }))) (goto_statement "goto LAB_00112631;" goto statement_identifier ;) })) (if_statement "if (iVar1 == 1) {\n      iVar2 = *(int *)((long)&cur[9].pVtab + 4);\n      iVar1 = sqlite3_keyword_count();\n      if (iVar1 <= iVar2) {\n        cur[5].pVtab = (sqlite3_vtab *)0x0;\n        *(undefined4 *)&cur[9].pVtab = 7;\n        iVar2 = -1;\n        goto LAB_00112674;\n      }\n      iVar2 = *(int *)((long)&cur[9].pVtab + 4);\n      *(int *)((long)&cur[9].pVtab + 4) = iVar2 + 1;\n      sqlite3_keyword_name(iVar2,(char **)(cur + 5),(int *)(cur + 6));\n      iVar2 = -1;\n    }\n    else {\nLAB_00112810:\n      if (-1 < iVar2) goto LAB_00112631;\n    }" if (parenthesized_expression "(iVar1 == 1)" ( (binary_expression "iVar1 == 1" identifier == number_literal) )) (compound_statement "{\n      iVar2 = *(int *)((long)&cur[9].pVtab + 4);\n      iVar1 = sqlite3_keyword_count();\n      if (iVar1 <= iVar2) {\n        cur[5].pVtab = (sqlite3_vtab *)0x0;\n        *(undefined4 *)&cur[9].pVtab = 7;\n        iVar2 = -1;\n        goto LAB_00112674;\n      }\n      iVar2 = *(int *)((long)&cur[9].pVtab + 4);\n      *(int *)((long)&cur[9].pVtab + 4) = iVar2 + 1;\n      sqlite3_keyword_name(iVar2,(char **)(cur + 5),(int *)(cur + 6));\n      iVar2 = -1;\n    }" { (expression_statement "iVar2 = *(int *)((long)&cur[9].pVtab + 4);" (assignment_expression "iVar2 = *(int *)((long)&cur[9].pVtab + 4)" identifier = (pointer_expression "*(int *)((long)&cur[9].pVtab + 4)" * (cast_expression "(int *)((long)&cur[9].pVtab + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&cur[9].pVtab + 4)" ( (binary_expression "(long)&cur[9].pVtab + 4" (cast_expression "(long)&cur[9].pVtab" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&cur[9].pVtab" & (field_expression "cur[9].pVtab" (subscript_expression "cur[9]" identifier [ number_literal ]) . field_identifier))) + number_literal) ))))) ;) (expression_statement "iVar1 = sqlite3_keyword_count();" (assignment_expression "iVar1 = sqlite3_keyword_count()" identifier = (call_expression "sqlite3_keyword_count()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 <= iVar2) {\n        cur[5].pVtab = (sqlite3_vtab *)0x0;\n        *(undefined4 *)&cur[9].pVtab = 7;\n        iVar2 = -1;\n        goto LAB_00112674;\n      }" if (parenthesized_expression "(iVar1 <= iVar2)" ( (binary_expression "iVar1 <= iVar2" identifier <= identifier) )) (compound_statement "{\n        cur[5].pVtab = (sqlite3_vtab *)0x0;\n        *(undefined4 *)&cur[9].pVtab = 7;\n        iVar2 = -1;\n        goto LAB_00112674;\n      }" { (expression_statement "cur[5].pVtab = (sqlite3_vtab *)0x0;" (assignment_expression "cur[5].pVtab = (sqlite3_vtab *)0x0" (field_expression "cur[5].pVtab" (subscript_expression "cur[5]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_vtab *)0x0" ( (type_descriptor "sqlite3_vtab *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "*(undefined4 *)&cur[9].pVtab = 7;" (assignment_expression "*(undefined4 *)&cur[9].pVtab = 7" (pointer_expression "*(undefined4 *)&cur[9].pVtab" * (cast_expression "(undefined4 *)&cur[9].pVtab" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&cur[9].pVtab" & (field_expression "cur[9].pVtab" (subscript_expression "cur[9]" identifier [ number_literal ]) . field_identifier)))) = number_literal) ;) (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_00112674;" goto statement_identifier ;) })) (expression_statement "iVar2 = *(int *)((long)&cur[9].pVtab + 4);" (assignment_expression "iVar2 = *(int *)((long)&cur[9].pVtab + 4)" identifier = (pointer_expression "*(int *)((long)&cur[9].pVtab + 4)" * (cast_expression "(int *)((long)&cur[9].pVtab + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&cur[9].pVtab + 4)" ( (binary_expression "(long)&cur[9].pVtab + 4" (cast_expression "(long)&cur[9].pVtab" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&cur[9].pVtab" & (field_expression "cur[9].pVtab" (subscript_expression "cur[9]" identifier [ number_literal ]) . field_identifier))) + number_literal) ))))) ;) (expression_statement "*(int *)((long)&cur[9].pVtab + 4) = iVar2 + 1;" (assignment_expression "*(int *)((long)&cur[9].pVtab + 4) = iVar2 + 1" (pointer_expression "*(int *)((long)&cur[9].pVtab + 4)" * (cast_expression "(int *)((long)&cur[9].pVtab + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&cur[9].pVtab + 4)" ( (binary_expression "(long)&cur[9].pVtab + 4" (cast_expression "(long)&cur[9].pVtab" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&cur[9].pVtab" & (field_expression "cur[9].pVtab" (subscript_expression "cur[9]" identifier [ number_literal ]) . field_identifier))) + number_literal) )))) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "sqlite3_keyword_name(iVar2,(char **)(cur + 5),(int *)(cur + 6));" (call_expression "sqlite3_keyword_name(iVar2,(char **)(cur + 5),(int *)(cur + 6))" identifier (argument_list "(iVar2,(char **)(cur + 5),(int *)(cur + 6))" ( identifier , (cast_expression "(char **)(cur + 5)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(cur + 5)" ( (binary_expression "cur + 5" identifier + number_literal) ))) , (cast_expression "(int *)(cur + 6)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(cur + 6)" ( (binary_expression "cur + 6" identifier + number_literal) ))) ))) ;) (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) }) (else_clause "else {\nLAB_00112810:\n      if (-1 < iVar2) goto LAB_00112631;\n    }" else (compound_statement "{\nLAB_00112810:\n      if (-1 < iVar2) goto LAB_00112631;\n    }" { (labeled_statement "LAB_00112810:\n      if (-1 < iVar2) goto LAB_00112631;" statement_identifier : (if_statement "if (-1 < iVar2) goto LAB_00112631;" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (goto_statement "goto LAB_00112631;" goto statement_identifier ;))) }))) (if_statement "if (cur[5].pVtab == (sqlite3_vtab *)0x0) goto LAB_00112674;" if (parenthesized_expression "(cur[5].pVtab == (sqlite3_vtab *)0x0)" ( (binary_expression "cur[5].pVtab == (sqlite3_vtab *)0x0" (field_expression "cur[5].pVtab" (subscript_expression "cur[5]" identifier [ number_literal ]) . field_identifier) == (cast_expression "(sqlite3_vtab *)0x0" ( (type_descriptor "sqlite3_vtab *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00112674;" goto statement_identifier ;)) }))) (expression_statement "iVar1 = *(int *)&cur[2].pVtab;" (assignment_expression "iVar1 = *(int *)&cur[2].pVtab" identifier = (pointer_expression "*(int *)&cur[2].pVtab" * (cast_expression "(int *)&cur[2].pVtab" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&cur[2].pVtab" & (field_expression "cur[2].pVtab" (subscript_expression "cur[2]" identifier [ number_literal ]) . field_identifier))))) ;) (if_statement "if (iVar1 == 0) goto LAB_00112860;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00112860;" goto statement_identifier ;)) (if_statement "if ((iVar1 <= *(int *)&cur[6].pVtab) &&\n     (iVar1 = sqlite3_strnicmp((char *)cur[3].pVtab,(char *)cur[5].pVtab,iVar1), iVar1 == 0)) {\n    iVar1 = 0;\nLAB_00112860:\n    if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }\n    return iVar1;\n  }" if (parenthesized_expression "((iVar1 <= *(int *)&cur[6].pVtab) &&\n     (iVar1 = sqlite3_strnicmp((char *)cur[3].pVtab,(char *)cur[5].pVtab,iVar1), iVar1 == 0))" ( (binary_expression "(iVar1 <= *(int *)&cur[6].pVtab) &&\n     (iVar1 = sqlite3_strnicmp((char *)cur[3].pVtab,(char *)cur[5].pVtab,iVar1), iVar1 == 0)" (parenthesized_expression "(iVar1 <= *(int *)&cur[6].pVtab)" ( (binary_expression "iVar1 <= *(int *)&cur[6].pVtab" identifier <= (pointer_expression "*(int *)&cur[6].pVtab" * (cast_expression "(int *)&cur[6].pVtab" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&cur[6].pVtab" & (field_expression "cur[6].pVtab" (subscript_expression "cur[6]" identifier [ number_literal ]) . field_identifier))))) )) && (parenthesized_expression "(iVar1 = sqlite3_strnicmp((char *)cur[3].pVtab,(char *)cur[5].pVtab,iVar1), iVar1 == 0)" ( (comma_expression "iVar1 = sqlite3_strnicmp((char *)cur[3].pVtab,(char *)cur[5].pVtab,iVar1), iVar1 == 0" (assignment_expression "iVar1 = sqlite3_strnicmp((char *)cur[3].pVtab,(char *)cur[5].pVtab,iVar1)" identifier = (call_expression "sqlite3_strnicmp((char *)cur[3].pVtab,(char *)cur[5].pVtab,iVar1)" identifier (argument_list "((char *)cur[3].pVtab,(char *)cur[5].pVtab,iVar1)" ( (cast_expression "(char *)cur[3].pVtab" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "cur[3].pVtab" (subscript_expression "cur[3]" identifier [ number_literal ]) . field_identifier)) , (cast_expression "(char *)cur[5].pVtab" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "cur[5].pVtab" (subscript_expression "cur[5]" identifier [ number_literal ]) . field_identifier)) , identifier )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    iVar1 = 0;\nLAB_00112860:\n    if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }\n    return iVar1;\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00112860:\n    if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }" statement_identifier : (if_statement "if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }" if (parenthesized_expression "(local_40 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }" { comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar1;" return identifier ;) })) (goto_statement "goto LAB_00112674;" goto statement_identifier ;) })))
(translation_unit "ulong FUN_00112558(long param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined8 uVar5;\n  long lVar6;\n  ulong uVar7;\n  char *pcVar8;\n  undefined4 uVar9;\n  long in_FS_OFFSET;\n  undefined8 local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  *(long *)(param_1 + 0x40) = *(long *)(param_1 + 0x40) + 1;\n  iVar4 = -1;\n  uVar9 = 0;\nLAB_00112674:\n  iVar2 = *(int *)(param_1 + 0x48);\n  if (iVar2 == 0xb) {\n    uVar7 = 0;\nLAB_00112860:\n    if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n      __stack_chk_fail();\n    }\n    return uVar7;\n  }\n  if (iVar2 == 7) {\n    iVar4 = 1;\n    uVar9 = 8;\n    if (*(long *)(param_1 + 0x38) == 0) {\n      FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,param_1 + 0x38,0);\n    }\nLAB_00112631:\n    iVar2 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0x38));\n    if (iVar2 != 100) {\n      FUN_0018ccd2(*(undefined8 *)(param_1 + 0x38));\n      *(undefined8 *)(param_1 + 0x38) = 0;\n      *(undefined4 *)(param_1 + 0x48) = uVar9;\n      goto LAB_00112674;\n    }\n    uVar5 = FUN_00156d81(*(undefined8 *)(param_1 + 0x38),iVar4);\n    *(undefined8 *)(param_1 + 0x28) = uVar5;\n    uVar3 = FUN_00156893(*(undefined8 *)(param_1 + 0x38),iVar4);\n    *(undefined4 *)(param_1 + 0x30) = uVar3;\n  }\n  else {\n    if (7 < iVar2) {\n      if (iVar2 == 8) {\n        iVar4 = 0;\n        uVar9 = 9;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 9;\n        }\n      }\n      else {\n        if (iVar2 != 9) goto LAB_00112810;\n        iVar4 = 0;\n        uVar9 = 0xb;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 0xb;\n        }\n      }\n      goto LAB_00112631;\n    }\n    if (iVar2 == 1) {\n      iVar4 = *(int *)(param_1 + 0x4c);\n      iVar2 = FUN_001307b1();\n      if (iVar2 <= iVar4) {\n        *(undefined8 *)(param_1 + 0x28) = 0;\n        *(undefined4 *)(param_1 + 0x48) = 7;\n        iVar4 = -1;\n        goto LAB_00112674;\n      }\n      iVar4 = *(int *)(param_1 + 0x4c);\n      *(int *)(param_1 + 0x4c) = iVar4 + 1;\n      FUN_00130776(iVar4,param_1 + 0x28,param_1 + 0x30);\n      iVar4 = -1;\n    }\n    else {\nLAB_00112810:\n      if (-1 < iVar4) goto LAB_00112631;\n    }\n    if (*(long *)(param_1 + 0x28) == 0) goto LAB_00112674;\n  }\n  uVar1 = *(uint *)(param_1 + 0x10);\n  uVar7 = (ulong)uVar1;\n  if ((uVar1 == 0) ||\n     (((int)uVar1 <= *(int *)(param_1 + 0x30) &&\n      (uVar7 = FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1),\n      (int)uVar7 == 0)))) goto LAB_00112860;\n  goto LAB_00112674;\n}\n\n" (function_definition "ulong FUN_00112558(long param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined8 uVar5;\n  long lVar6;\n  ulong uVar7;\n  char *pcVar8;\n  undefined4 uVar9;\n  long in_FS_OFFSET;\n  undefined8 local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  *(long *)(param_1 + 0x40) = *(long *)(param_1 + 0x40) + 1;\n  iVar4 = -1;\n  uVar9 = 0;\nLAB_00112674:\n  iVar2 = *(int *)(param_1 + 0x48);\n  if (iVar2 == 0xb) {\n    uVar7 = 0;\nLAB_00112860:\n    if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n      __stack_chk_fail();\n    }\n    return uVar7;\n  }\n  if (iVar2 == 7) {\n    iVar4 = 1;\n    uVar9 = 8;\n    if (*(long *)(param_1 + 0x38) == 0) {\n      FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,param_1 + 0x38,0);\n    }\nLAB_00112631:\n    iVar2 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0x38));\n    if (iVar2 != 100) {\n      FUN_0018ccd2(*(undefined8 *)(param_1 + 0x38));\n      *(undefined8 *)(param_1 + 0x38) = 0;\n      *(undefined4 *)(param_1 + 0x48) = uVar9;\n      goto LAB_00112674;\n    }\n    uVar5 = FUN_00156d81(*(undefined8 *)(param_1 + 0x38),iVar4);\n    *(undefined8 *)(param_1 + 0x28) = uVar5;\n    uVar3 = FUN_00156893(*(undefined8 *)(param_1 + 0x38),iVar4);\n    *(undefined4 *)(param_1 + 0x30) = uVar3;\n  }\n  else {\n    if (7 < iVar2) {\n      if (iVar2 == 8) {\n        iVar4 = 0;\n        uVar9 = 9;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 9;\n        }\n      }\n      else {\n        if (iVar2 != 9) goto LAB_00112810;\n        iVar4 = 0;\n        uVar9 = 0xb;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 0xb;\n        }\n      }\n      goto LAB_00112631;\n    }\n    if (iVar2 == 1) {\n      iVar4 = *(int *)(param_1 + 0x4c);\n      iVar2 = FUN_001307b1();\n      if (iVar2 <= iVar4) {\n        *(undefined8 *)(param_1 + 0x28) = 0;\n        *(undefined4 *)(param_1 + 0x48) = 7;\n        iVar4 = -1;\n        goto LAB_00112674;\n      }\n      iVar4 = *(int *)(param_1 + 0x4c);\n      *(int *)(param_1 + 0x4c) = iVar4 + 1;\n      FUN_00130776(iVar4,param_1 + 0x28,param_1 + 0x30);\n      iVar4 = -1;\n    }\n    else {\nLAB_00112810:\n      if (-1 < iVar4) goto LAB_00112631;\n    }\n    if (*(long *)(param_1 + 0x28) == 0) goto LAB_00112674;\n  }\n  uVar1 = *(uint *)(param_1 + 0x10);\n  uVar7 = (ulong)uVar1;\n  if ((uVar1 == 0) ||\n     (((int)uVar1 <= *(int *)(param_1 + 0x30) &&\n      (uVar7 = FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1),\n      (int)uVar7 == 0)))) goto LAB_00112860;\n  goto LAB_00112674;\n}" type_identifier (function_declarator "FUN_00112558(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined8 uVar5;\n  long lVar6;\n  ulong uVar7;\n  char *pcVar8;\n  undefined4 uVar9;\n  long in_FS_OFFSET;\n  undefined8 local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  *(long *)(param_1 + 0x40) = *(long *)(param_1 + 0x40) + 1;\n  iVar4 = -1;\n  uVar9 = 0;\nLAB_00112674:\n  iVar2 = *(int *)(param_1 + 0x48);\n  if (iVar2 == 0xb) {\n    uVar7 = 0;\nLAB_00112860:\n    if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n      __stack_chk_fail();\n    }\n    return uVar7;\n  }\n  if (iVar2 == 7) {\n    iVar4 = 1;\n    uVar9 = 8;\n    if (*(long *)(param_1 + 0x38) == 0) {\n      FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,param_1 + 0x38,0);\n    }\nLAB_00112631:\n    iVar2 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0x38));\n    if (iVar2 != 100) {\n      FUN_0018ccd2(*(undefined8 *)(param_1 + 0x38));\n      *(undefined8 *)(param_1 + 0x38) = 0;\n      *(undefined4 *)(param_1 + 0x48) = uVar9;\n      goto LAB_00112674;\n    }\n    uVar5 = FUN_00156d81(*(undefined8 *)(param_1 + 0x38),iVar4);\n    *(undefined8 *)(param_1 + 0x28) = uVar5;\n    uVar3 = FUN_00156893(*(undefined8 *)(param_1 + 0x38),iVar4);\n    *(undefined4 *)(param_1 + 0x30) = uVar3;\n  }\n  else {\n    if (7 < iVar2) {\n      if (iVar2 == 8) {\n        iVar4 = 0;\n        uVar9 = 9;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 9;\n        }\n      }\n      else {\n        if (iVar2 != 9) goto LAB_00112810;\n        iVar4 = 0;\n        uVar9 = 0xb;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 0xb;\n        }\n      }\n      goto LAB_00112631;\n    }\n    if (iVar2 == 1) {\n      iVar4 = *(int *)(param_1 + 0x4c);\n      iVar2 = FUN_001307b1();\n      if (iVar2 <= iVar4) {\n        *(undefined8 *)(param_1 + 0x28) = 0;\n        *(undefined4 *)(param_1 + 0x48) = 7;\n        iVar4 = -1;\n        goto LAB_00112674;\n      }\n      iVar4 = *(int *)(param_1 + 0x4c);\n      *(int *)(param_1 + 0x4c) = iVar4 + 1;\n      FUN_00130776(iVar4,param_1 + 0x28,param_1 + 0x30);\n      iVar4 = -1;\n    }\n    else {\nLAB_00112810:\n      if (-1 < iVar4) goto LAB_00112631;\n    }\n    if (*(long *)(param_1 + 0x28) == 0) goto LAB_00112674;\n  }\n  uVar1 = *(uint *)(param_1 + 0x10);\n  uVar7 = (ulong)uVar1;\n  if ((uVar1 == 0) ||\n     (((int)uVar1 <= *(int *)(param_1 + 0x30) &&\n      (uVar7 = FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1),\n      (int)uVar7 == 0)))) goto LAB_00112860;\n  goto LAB_00112674;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined8 uVar5;" type_identifier identifier ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar7;" type_identifier identifier ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 local_48;" type_identifier identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "*(long *)(param_1 + 0x40) = *(long *)(param_1 + 0x40) + 1;" (assignment_expression "*(long *)(param_1 + 0x40) = *(long *)(param_1 + 0x40) + 1" (pointer_expression "*(long *)(param_1 + 0x40)" * (cast_expression "(long *)(param_1 + 0x40)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) = (binary_expression "*(long *)(param_1 + 0x40) + 1" (pointer_expression "*(long *)(param_1 + 0x40)" * (cast_expression "(long *)(param_1 + 0x40)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00112674:\n  iVar2 = *(int *)(param_1 + 0x48);" statement_identifier : (expression_statement "iVar2 = *(int *)(param_1 + 0x48);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x48)" identifier = (pointer_expression "*(int *)(param_1 + 0x48)" * (cast_expression "(int *)(param_1 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) ))))) ;)) (if_statement "if (iVar2 == 0xb) {\n    uVar7 = 0;\nLAB_00112860:\n    if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n      __stack_chk_fail();\n    }\n    return uVar7;\n  }" if (parenthesized_expression "(iVar2 == 0xb)" ( (binary_expression "iVar2 == 0xb" identifier == number_literal) )) (compound_statement "{\n    uVar7 = 0;\nLAB_00112860:\n    if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n      __stack_chk_fail();\n    }\n    return uVar7;\n  }" { (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00112860:\n    if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n      __stack_chk_fail();\n    }" statement_identifier : (if_statement "if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n      __stack_chk_fail();\n    }" if (parenthesized_expression "(local_40 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n      __stack_chk_fail();\n    }" { (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return uVar7;" return identifier ;) })) (if_statement "if (iVar2 == 7) {\n    iVar4 = 1;\n    uVar9 = 8;\n    if (*(long *)(param_1 + 0x38) == 0) {\n      FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,param_1 + 0x38,0);\n    }\nLAB_00112631:\n    iVar2 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0x38));\n    if (iVar2 != 100) {\n      FUN_0018ccd2(*(undefined8 *)(param_1 + 0x38));\n      *(undefined8 *)(param_1 + 0x38) = 0;\n      *(undefined4 *)(param_1 + 0x48) = uVar9;\n      goto LAB_00112674;\n    }\n    uVar5 = FUN_00156d81(*(undefined8 *)(param_1 + 0x38),iVar4);\n    *(undefined8 *)(param_1 + 0x28) = uVar5;\n    uVar3 = FUN_00156893(*(undefined8 *)(param_1 + 0x38),iVar4);\n    *(undefined4 *)(param_1 + 0x30) = uVar3;\n  }\n  else {\n    if (7 < iVar2) {\n      if (iVar2 == 8) {\n        iVar4 = 0;\n        uVar9 = 9;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 9;\n        }\n      }\n      else {\n        if (iVar2 != 9) goto LAB_00112810;\n        iVar4 = 0;\n        uVar9 = 0xb;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 0xb;\n        }\n      }\n      goto LAB_00112631;\n    }\n    if (iVar2 == 1) {\n      iVar4 = *(int *)(param_1 + 0x4c);\n      iVar2 = FUN_001307b1();\n      if (iVar2 <= iVar4) {\n        *(undefined8 *)(param_1 + 0x28) = 0;\n        *(undefined4 *)(param_1 + 0x48) = 7;\n        iVar4 = -1;\n        goto LAB_00112674;\n      }\n      iVar4 = *(int *)(param_1 + 0x4c);\n      *(int *)(param_1 + 0x4c) = iVar4 + 1;\n      FUN_00130776(iVar4,param_1 + 0x28,param_1 + 0x30);\n      iVar4 = -1;\n    }\n    else {\nLAB_00112810:\n      if (-1 < iVar4) goto LAB_00112631;\n    }\n    if (*(long *)(param_1 + 0x28) == 0) goto LAB_00112674;\n  }" if (parenthesized_expression "(iVar2 == 7)" ( (binary_expression "iVar2 == 7" identifier == number_literal) )) (compound_statement "{\n    iVar4 = 1;\n    uVar9 = 8;\n    if (*(long *)(param_1 + 0x38) == 0) {\n      FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,param_1 + 0x38,0);\n    }\nLAB_00112631:\n    iVar2 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0x38));\n    if (iVar2 != 100) {\n      FUN_0018ccd2(*(undefined8 *)(param_1 + 0x38));\n      *(undefined8 *)(param_1 + 0x38) = 0;\n      *(undefined4 *)(param_1 + 0x48) = uVar9;\n      goto LAB_00112674;\n    }\n    uVar5 = FUN_00156d81(*(undefined8 *)(param_1 + 0x38),iVar4);\n    *(undefined8 *)(param_1 + 0x28) = uVar5;\n    uVar3 = FUN_00156893(*(undefined8 *)(param_1 + 0x38),iVar4);\n    *(undefined4 *)(param_1 + 0x30) = uVar3;\n  }" { (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (expression_statement "uVar9 = 8;" (assignment_expression "uVar9 = 8" identifier = number_literal) ;) (if_statement "if (*(long *)(param_1 + 0x38) == 0) {\n      FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,param_1 + 0x38,0);\n    }" if (parenthesized_expression "(*(long *)(param_1 + 0x38) == 0)" ( (binary_expression "*(long *)(param_1 + 0x38) == 0" (pointer_expression "*(long *)(param_1 + 0x38)" * (cast_expression "(long *)(param_1 + 0x38)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,param_1 + 0x38,0);\n    }" { (expression_statement "FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,param_1 + 0x38,0);" (call_expression "FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,param_1 + 0x38,0)" identifier (argument_list "(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,param_1 + 0x38,0)" ( (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , (string_literal ""PRAGMA database_list"" " string_content ") , number_literal , (binary_expression "param_1 + 0x38" identifier + number_literal) , number_literal ))) ;) })) (labeled_statement "LAB_00112631:\n    iVar2 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0x38));" statement_identifier : (expression_statement "iVar2 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0x38));" (assignment_expression "iVar2 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0x38))" identifier = (call_expression "FUN_001ab5c0(*(undefined8 *)(param_1 + 0x38))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x38))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x38)" * (cast_expression "(undefined8 *)(param_1 + 0x38)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) )))) ;)) (if_statement "if (iVar2 != 100) {\n      FUN_0018ccd2(*(undefined8 *)(param_1 + 0x38));\n      *(undefined8 *)(param_1 + 0x38) = 0;\n      *(undefined4 *)(param_1 + 0x48) = uVar9;\n      goto LAB_00112674;\n    }" if (parenthesized_expression "(iVar2 != 100)" ( (binary_expression "iVar2 != 100" identifier != number_literal) )) (compound_statement "{\n      FUN_0018ccd2(*(undefined8 *)(param_1 + 0x38));\n      *(undefined8 *)(param_1 + 0x38) = 0;\n      *(undefined4 *)(param_1 + 0x48) = uVar9;\n      goto LAB_00112674;\n    }" { (expression_statement "FUN_0018ccd2(*(undefined8 *)(param_1 + 0x38));" (call_expression "FUN_0018ccd2(*(undefined8 *)(param_1 + 0x38))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x38))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x38)" * (cast_expression "(undefined8 *)(param_1 + 0x38)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined8 *)(param_1 + 0x38) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x38) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x38)" * (cast_expression "(undefined8 *)(param_1 + 0x38)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x48) = uVar9;" (assignment_expression "*(undefined4 *)(param_1 + 0x48) = uVar9" (pointer_expression "*(undefined4 *)(param_1 + 0x48)" * (cast_expression "(undefined4 *)(param_1 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) = identifier) ;) (goto_statement "goto LAB_00112674;" goto statement_identifier ;) })) (expression_statement "uVar5 = FUN_00156d81(*(undefined8 *)(param_1 + 0x38),iVar4);" (assignment_expression "uVar5 = FUN_00156d81(*(undefined8 *)(param_1 + 0x38),iVar4)" identifier = (call_expression "FUN_00156d81(*(undefined8 *)(param_1 + 0x38),iVar4)" identifier (argument_list "(*(undefined8 *)(param_1 + 0x38),iVar4)" ( (pointer_expression "*(undefined8 *)(param_1 + 0x38)" * (cast_expression "(undefined8 *)(param_1 + 0x38)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "*(undefined8 *)(param_1 + 0x28) = uVar5;" (assignment_expression "*(undefined8 *)(param_1 + 0x28) = uVar5" (pointer_expression "*(undefined8 *)(param_1 + 0x28)" * (cast_expression "(undefined8 *)(param_1 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar3 = FUN_00156893(*(undefined8 *)(param_1 + 0x38),iVar4);" (assignment_expression "uVar3 = FUN_00156893(*(undefined8 *)(param_1 + 0x38),iVar4)" identifier = (call_expression "FUN_00156893(*(undefined8 *)(param_1 + 0x38),iVar4)" identifier (argument_list "(*(undefined8 *)(param_1 + 0x38),iVar4)" ( (pointer_expression "*(undefined8 *)(param_1 + 0x38)" * (cast_expression "(undefined8 *)(param_1 + 0x38)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x30) = uVar3;" (assignment_expression "*(undefined4 *)(param_1 + 0x30) = uVar3" (pointer_expression "*(undefined4 *)(param_1 + 0x30)" * (cast_expression "(undefined4 *)(param_1 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n    if (7 < iVar2) {\n      if (iVar2 == 8) {\n        iVar4 = 0;\n        uVar9 = 9;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 9;\n        }\n      }\n      else {\n        if (iVar2 != 9) goto LAB_00112810;\n        iVar4 = 0;\n        uVar9 = 0xb;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 0xb;\n        }\n      }\n      goto LAB_00112631;\n    }\n    if (iVar2 == 1) {\n      iVar4 = *(int *)(param_1 + 0x4c);\n      iVar2 = FUN_001307b1();\n      if (iVar2 <= iVar4) {\n        *(undefined8 *)(param_1 + 0x28) = 0;\n        *(undefined4 *)(param_1 + 0x48) = 7;\n        iVar4 = -1;\n        goto LAB_00112674;\n      }\n      iVar4 = *(int *)(param_1 + 0x4c);\n      *(int *)(param_1 + 0x4c) = iVar4 + 1;\n      FUN_00130776(iVar4,param_1 + 0x28,param_1 + 0x30);\n      iVar4 = -1;\n    }\n    else {\nLAB_00112810:\n      if (-1 < iVar4) goto LAB_00112631;\n    }\n    if (*(long *)(param_1 + 0x28) == 0) goto LAB_00112674;\n  }" else (compound_statement "{\n    if (7 < iVar2) {\n      if (iVar2 == 8) {\n        iVar4 = 0;\n        uVar9 = 9;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 9;\n        }\n      }\n      else {\n        if (iVar2 != 9) goto LAB_00112810;\n        iVar4 = 0;\n        uVar9 = 0xb;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 0xb;\n        }\n      }\n      goto LAB_00112631;\n    }\n    if (iVar2 == 1) {\n      iVar4 = *(int *)(param_1 + 0x4c);\n      iVar2 = FUN_001307b1();\n      if (iVar2 <= iVar4) {\n        *(undefined8 *)(param_1 + 0x28) = 0;\n        *(undefined4 *)(param_1 + 0x48) = 7;\n        iVar4 = -1;\n        goto LAB_00112674;\n      }\n      iVar4 = *(int *)(param_1 + 0x4c);\n      *(int *)(param_1 + 0x4c) = iVar4 + 1;\n      FUN_00130776(iVar4,param_1 + 0x28,param_1 + 0x30);\n      iVar4 = -1;\n    }\n    else {\nLAB_00112810:\n      if (-1 < iVar4) goto LAB_00112631;\n    }\n    if (*(long *)(param_1 + 0x28) == 0) goto LAB_00112674;\n  }" { (if_statement "if (7 < iVar2) {\n      if (iVar2 == 8) {\n        iVar4 = 0;\n        uVar9 = 9;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 9;\n        }\n      }\n      else {\n        if (iVar2 != 9) goto LAB_00112810;\n        iVar4 = 0;\n        uVar9 = 0xb;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 0xb;\n        }\n      }\n      goto LAB_00112631;\n    }" if (parenthesized_expression "(7 < iVar2)" ( (binary_expression "7 < iVar2" number_literal < identifier) )) (compound_statement "{\n      if (iVar2 == 8) {\n        iVar4 = 0;\n        uVar9 = 9;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 9;\n        }\n      }\n      else {\n        if (iVar2 != 9) goto LAB_00112810;\n        iVar4 = 0;\n        uVar9 = 0xb;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 0xb;\n        }\n      }\n      goto LAB_00112631;\n    }" { (if_statement "if (iVar2 == 8) {\n        iVar4 = 0;\n        uVar9 = 9;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 9;\n        }\n      }\n      else {\n        if (iVar2 != 9) goto LAB_00112810;\n        iVar4 = 0;\n        uVar9 = 0xb;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 0xb;\n        }\n      }" if (parenthesized_expression "(iVar2 == 8)" ( (binary_expression "iVar2 == 8" identifier == number_literal) )) (compound_statement "{\n        iVar4 = 0;\n        uVar9 = 9;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 9;\n        }\n      }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "uVar9 = 9;" (assignment_expression "uVar9 = 9" identifier = number_literal) ;) (if_statement "if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 9;\n        }" if (parenthesized_expression "(*(long *)(param_1 + 0x38) == 0)" ( (binary_expression "*(long *)(param_1 + 0x38) == 0" (pointer_expression "*(long *)(param_1 + 0x38)" * (cast_expression "(long *)(param_1 + 0x38)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 9;\n        }" { (expression_statement "FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);" (call_expression "FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0)" identifier (argument_list "(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0)" ( (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , (string_literal ""PRAGMA database_list"" " string_content ") , number_literal , (pointer_expression "&local_48" & identifier) , number_literal ))) ;) (expression_statement "lVar6 = 0;" (assignment_expression "lVar6 = 0" identifier = number_literal) ;) (expression_statement "pcVar8 = "";" (assignment_expression "pcVar8 = """ identifier = (string_literal """" " ")) ;) (while_statement "while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }" while (parenthesized_expression "(iVar4 = FUN_001ab5c0(local_48), iVar4 == 100)" ( (comma_expression "iVar4 = FUN_001ab5c0(local_48), iVar4 == 100" (assignment_expression "iVar4 = FUN_001ab5c0(local_48)" identifier = (call_expression "FUN_001ab5c0(local_48)" identifier (argument_list "(local_48)" ( identifier )))) , (binary_expression "iVar4 == 100" identifier == number_literal)) )) (compound_statement "{\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }" { (expression_statement "uVar5 = FUN_00156d81(local_48,1);" (assignment_expression "uVar5 = FUN_00156d81(local_48,1)" identifier = (call_expression "FUN_00156d81(local_48,1)" identifier (argument_list "(local_48,1)" ( identifier , number_literal )))) ;) (expression_statement "lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);" (assignment_expression "lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5)" identifier = (call_expression "FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5)" identifier (argument_list "("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5)" ( (string_literal ""%z%sSELECT name FROM \"%w\".sqlite_master"" " string_content escape_sequence string_content escape_sequence string_content ") , identifier , identifier , identifier )))) ;) (expression_statement "pcVar8 = " UNION ";" (assignment_expression "pcVar8 = " UNION "" identifier = (string_literal "" UNION "" " string_content ")) ;) (if_statement "if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }" if (parenthesized_expression "(lVar6 == 0)" ( (binary_expression "lVar6 == 0" identifier == number_literal) )) (compound_statement "{\n              uVar7 = 7;\n              goto LAB_00112860;\n            }" { (expression_statement "uVar7 = 7;" (assignment_expression "uVar7 = 7" identifier = number_literal) ;) (goto_statement "goto LAB_00112860;" goto statement_identifier ;) })) })) (expression_statement "FUN_0018ccd2(local_48);" (call_expression "FUN_0018ccd2(local_48)" identifier (argument_list "(local_48)" ( identifier ))) ;) (expression_statement "FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);" (call_expression "FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0)" identifier (argument_list "(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0)" ( (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , identifier , number_literal , (binary_expression "param_1 + 0x38" identifier + number_literal) , number_literal ))) ;) (expression_statement "FUN_00141303(lVar6);" (call_expression "FUN_00141303(lVar6)" identifier (argument_list "(lVar6)" ( identifier ))) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "uVar9 = 9;" (assignment_expression "uVar9 = 9" identifier = number_literal) ;) })) }) (else_clause "else {\n        if (iVar2 != 9) goto LAB_00112810;\n        iVar4 = 0;\n        uVar9 = 0xb;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 0xb;\n        }\n      }" else (compound_statement "{\n        if (iVar2 != 9) goto LAB_00112810;\n        iVar4 = 0;\n        uVar9 = 0xb;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 0xb;\n        }\n      }" { (if_statement "if (iVar2 != 9) goto LAB_00112810;" if (parenthesized_expression "(iVar2 != 9)" ( (binary_expression "iVar2 != 9" identifier != number_literal) )) (goto_statement "goto LAB_00112810;" goto statement_identifier ;)) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "uVar9 = 0xb;" (assignment_expression "uVar9 = 0xb" identifier = number_literal) ;) (if_statement "if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 0xb;\n        }" if (parenthesized_expression "(*(long *)(param_1 + 0x38) == 0)" ( (binary_expression "*(long *)(param_1 + 0x38) == 0" (pointer_expression "*(long *)(param_1 + 0x38)" * (cast_expression "(long *)(param_1 + 0x38)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 0xb;\n        }" { (expression_statement "FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);" (call_expression "FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0)" identifier (argument_list "(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0)" ( (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , (string_literal ""PRAGMA database_list"" " string_content ") , number_literal , (pointer_expression "&local_48" & identifier) , number_literal ))) ;) (expression_statement "lVar6 = 0;" (assignment_expression "lVar6 = 0" identifier = number_literal) ;) (expression_statement "pcVar8 = "";" (assignment_expression "pcVar8 = """ identifier = (string_literal """" " ")) ;) (while_statement "while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }" while (parenthesized_expression "(iVar4 = FUN_001ab5c0(local_48), iVar4 == 100)" ( (comma_expression "iVar4 = FUN_001ab5c0(local_48), iVar4 == 100" (assignment_expression "iVar4 = FUN_001ab5c0(local_48)" identifier = (call_expression "FUN_001ab5c0(local_48)" identifier (argument_list "(local_48)" ( identifier )))) , (binary_expression "iVar4 == 100" identifier == number_literal)) )) (compound_statement "{\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }" { (expression_statement "uVar5 = FUN_00156d81(local_48,1);" (assignment_expression "uVar5 = FUN_00156d81(local_48,1)" identifier = (call_expression "FUN_00156d81(local_48,1)" identifier (argument_list "(local_48,1)" ( identifier , number_literal )))) ;) (expression_statement "lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);" (assignment_expression "lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5)" identifier = (call_expression "FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5)" identifier (argument_list "("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5)" ( (string_literal ""%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"" " string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence ") , identifier , identifier , identifier , identifier )))) ;) (expression_statement "pcVar8 = " UNION ";" (assignment_expression "pcVar8 = " UNION "" identifier = (string_literal "" UNION "" " string_content ")) ;) (if_statement "if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }" if (parenthesized_expression "(lVar6 == 0)" ( (binary_expression "lVar6 == 0" identifier == number_literal) )) (compound_statement "{\n              uVar7 = 7;\n              goto LAB_00112860;\n            }" { (expression_statement "uVar7 = 7;" (assignment_expression "uVar7 = 7" identifier = number_literal) ;) (goto_statement "goto LAB_00112860;" goto statement_identifier ;) })) })) (expression_statement "FUN_0018ccd2(local_48);" (call_expression "FUN_0018ccd2(local_48)" identifier (argument_list "(local_48)" ( identifier ))) ;) (expression_statement "FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);" (call_expression "FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0)" identifier (argument_list "(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0)" ( (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , identifier , number_literal , (binary_expression "param_1 + 0x38" identifier + number_literal) , number_literal ))) ;) (expression_statement "FUN_00141303(lVar6);" (call_expression "FUN_00141303(lVar6)" identifier (argument_list "(lVar6)" ( identifier ))) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "uVar9 = 0xb;" (assignment_expression "uVar9 = 0xb" identifier = number_literal) ;) })) }))) (goto_statement "goto LAB_00112631;" goto statement_identifier ;) })) (if_statement "if (iVar2 == 1) {\n      iVar4 = *(int *)(param_1 + 0x4c);\n      iVar2 = FUN_001307b1();\n      if (iVar2 <= iVar4) {\n        *(undefined8 *)(param_1 + 0x28) = 0;\n        *(undefined4 *)(param_1 + 0x48) = 7;\n        iVar4 = -1;\n        goto LAB_00112674;\n      }\n      iVar4 = *(int *)(param_1 + 0x4c);\n      *(int *)(param_1 + 0x4c) = iVar4 + 1;\n      FUN_00130776(iVar4,param_1 + 0x28,param_1 + 0x30);\n      iVar4 = -1;\n    }\n    else {\nLAB_00112810:\n      if (-1 < iVar4) goto LAB_00112631;\n    }" if (parenthesized_expression "(iVar2 == 1)" ( (binary_expression "iVar2 == 1" identifier == number_literal) )) (compound_statement "{\n      iVar4 = *(int *)(param_1 + 0x4c);\n      iVar2 = FUN_001307b1();\n      if (iVar2 <= iVar4) {\n        *(undefined8 *)(param_1 + 0x28) = 0;\n        *(undefined4 *)(param_1 + 0x48) = 7;\n        iVar4 = -1;\n        goto LAB_00112674;\n      }\n      iVar4 = *(int *)(param_1 + 0x4c);\n      *(int *)(param_1 + 0x4c) = iVar4 + 1;\n      FUN_00130776(iVar4,param_1 + 0x28,param_1 + 0x30);\n      iVar4 = -1;\n    }" { (expression_statement "iVar4 = *(int *)(param_1 + 0x4c);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x4c)" identifier = (pointer_expression "*(int *)(param_1 + 0x4c)" * (cast_expression "(int *)(param_1 + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = FUN_001307b1();" (assignment_expression "iVar2 = FUN_001307b1()" identifier = (call_expression "FUN_001307b1()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 <= iVar4) {\n        *(undefined8 *)(param_1 + 0x28) = 0;\n        *(undefined4 *)(param_1 + 0x48) = 7;\n        iVar4 = -1;\n        goto LAB_00112674;\n      }" if (parenthesized_expression "(iVar2 <= iVar4)" ( (binary_expression "iVar2 <= iVar4" identifier <= identifier) )) (compound_statement "{\n        *(undefined8 *)(param_1 + 0x28) = 0;\n        *(undefined4 *)(param_1 + 0x48) = 7;\n        iVar4 = -1;\n        goto LAB_00112674;\n      }" { (expression_statement "*(undefined8 *)(param_1 + 0x28) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x28) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x28)" * (cast_expression "(undefined8 *)(param_1 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x48) = 7;" (assignment_expression "*(undefined4 *)(param_1 + 0x48) = 7" (pointer_expression "*(undefined4 *)(param_1 + 0x48)" * (cast_expression "(undefined4 *)(param_1 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_00112674;" goto statement_identifier ;) })) (expression_statement "iVar4 = *(int *)(param_1 + 0x4c);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x4c)" identifier = (pointer_expression "*(int *)(param_1 + 0x4c)" * (cast_expression "(int *)(param_1 + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 0x4c) = iVar4 + 1;" (assignment_expression "*(int *)(param_1 + 0x4c) = iVar4 + 1" (pointer_expression "*(int *)(param_1 + 0x4c)" * (cast_expression "(int *)(param_1 + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "FUN_00130776(iVar4,param_1 + 0x28,param_1 + 0x30);" (call_expression "FUN_00130776(iVar4,param_1 + 0x28,param_1 + 0x30)" identifier (argument_list "(iVar4,param_1 + 0x28,param_1 + 0x30)" ( identifier , (binary_expression "param_1 + 0x28" identifier + number_literal) , (binary_expression "param_1 + 0x30" identifier + number_literal) ))) ;) (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) }) (else_clause "else {\nLAB_00112810:\n      if (-1 < iVar4) goto LAB_00112631;\n    }" else (compound_statement "{\nLAB_00112810:\n      if (-1 < iVar4) goto LAB_00112631;\n    }" { (labeled_statement "LAB_00112810:\n      if (-1 < iVar4) goto LAB_00112631;" statement_identifier : (if_statement "if (-1 < iVar4) goto LAB_00112631;" if (parenthesized_expression "(-1 < iVar4)" ( (binary_expression "-1 < iVar4" number_literal < identifier) )) (goto_statement "goto LAB_00112631;" goto statement_identifier ;))) }))) (if_statement "if (*(long *)(param_1 + 0x28) == 0) goto LAB_00112674;" if (parenthesized_expression "(*(long *)(param_1 + 0x28) == 0)" ( (binary_expression "*(long *)(param_1 + 0x28) == 0" (pointer_expression "*(long *)(param_1 + 0x28)" * (cast_expression "(long *)(param_1 + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_00112674;" goto statement_identifier ;)) }))) (expression_statement "uVar1 = *(uint *)(param_1 + 0x10);" (assignment_expression "uVar1 = *(uint *)(param_1 + 0x10)" identifier = (pointer_expression "*(uint *)(param_1 + 0x10)" * (cast_expression "(uint *)(param_1 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "uVar7 = (ulong)uVar1;" (assignment_expression "uVar7 = (ulong)uVar1" identifier = (cast_expression "(ulong)uVar1" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (if_statement "if ((uVar1 == 0) ||\n     (((int)uVar1 <= *(int *)(param_1 + 0x30) &&\n      (uVar7 = FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1),\n      (int)uVar7 == 0)))) goto LAB_00112860;" if (parenthesized_expression "((uVar1 == 0) ||\n     (((int)uVar1 <= *(int *)(param_1 + 0x30) &&\n      (uVar7 = FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1),\n      (int)uVar7 == 0))))" ( (binary_expression "(uVar1 == 0) ||\n     (((int)uVar1 <= *(int *)(param_1 + 0x30) &&\n      (uVar7 = FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1),\n      (int)uVar7 == 0)))" (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) || (parenthesized_expression "(((int)uVar1 <= *(int *)(param_1 + 0x30) &&\n      (uVar7 = FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1),\n      (int)uVar7 == 0)))" ( (parenthesized_expression "((int)uVar1 <= *(int *)(param_1 + 0x30) &&\n      (uVar7 = FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1),\n      (int)uVar7 == 0))" ( (binary_expression "(int)uVar1 <= *(int *)(param_1 + 0x30) &&\n      (uVar7 = FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1),\n      (int)uVar7 == 0)" (binary_expression "(int)uVar1 <= *(int *)(param_1 + 0x30)" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) <= (pointer_expression "*(int *)(param_1 + 0x30)" * (cast_expression "(int *)(param_1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) && (parenthesized_expression "(uVar7 = FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1),\n      (int)uVar7 == 0)" ( (comma_expression "uVar7 = FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1),\n      (int)uVar7 == 0" (assignment_expression "uVar7 = FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1)" identifier = (call_expression "FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1)" identifier (argument_list "(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1)" ( (pointer_expression "*(undefined8 *)(param_1 + 0x18)" * (cast_expression "(undefined8 *)(param_1 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(param_1 + 0x28)" * (cast_expression "(undefined8 *)(param_1 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) , identifier )))) , (binary_expression "(int)uVar7 == 0" (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal)) ))) )) ))) )) (goto_statement "goto LAB_00112860;" goto statement_identifier ;)) (goto_statement "goto LAB_00112674;" goto statement_identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (string_literal " string_content ") , LIT , (binary_expression IDENT + LIT) , LIT ))) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (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) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (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 = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (string_literal " string_content ") , LIT , (pointer_expression & IDENT) , LIT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (string_literal " ")) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) , (binary_expression IDENT == LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence string_content escape_sequence string_content ") , IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , LIT , (binary_expression IDENT + LIT) , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (string_literal " string_content ") , LIT , (pointer_expression & IDENT) , LIT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (string_literal " ")) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) , (binary_expression IDENT == LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence ") , IDENT , IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , LIT , (binary_expression IDENT + LIT) , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) }))) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (goto_statement goto statement_identifier ;))) }))) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT )))) , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) == LIT)) ))) )) ))) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })))
(function_definition "ulong FUN_00112558(long param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined8 uVar5;\n  long lVar6;\n  ulong uVar7;\n  char *pcVar8;\n  undefined4 uVar9;\n  long in_FS_OFFSET;\n  undefined8 local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  *(long *)(param_1 + 0x40) = *(long *)(param_1 + 0x40) + 1;\n  iVar4 = -1;\n  uVar9 = 0;\nLAB_00112674:\n  iVar2 = *(int *)(param_1 + 0x48);\n  if (iVar2 == 0xb) {\n    uVar7 = 0;\nLAB_00112860:\n    if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n      __stack_chk_fail();\n    }\n    return uVar7;\n  }\n  if (iVar2 == 7) {\n    iVar4 = 1;\n    uVar9 = 8;\n    if (*(long *)(param_1 + 0x38) == 0) {\n      FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,param_1 + 0x38,0);\n    }\nLAB_00112631:\n    iVar2 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0x38));\n    if (iVar2 != 100) {\n      FUN_0018ccd2(*(undefined8 *)(param_1 + 0x38));\n      *(undefined8 *)(param_1 + 0x38) = 0;\n      *(undefined4 *)(param_1 + 0x48) = uVar9;\n      goto LAB_00112674;\n    }\n    uVar5 = FUN_00156d81(*(undefined8 *)(param_1 + 0x38),iVar4);\n    *(undefined8 *)(param_1 + 0x28) = uVar5;\n    uVar3 = FUN_00156893(*(undefined8 *)(param_1 + 0x38),iVar4);\n    *(undefined4 *)(param_1 + 0x30) = uVar3;\n  }\n  else {\n    if (7 < iVar2) {\n      if (iVar2 == 8) {\n        iVar4 = 0;\n        uVar9 = 9;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 9;\n        }\n      }\n      else {\n        if (iVar2 != 9) goto LAB_00112810;\n        iVar4 = 0;\n        uVar9 = 0xb;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 0xb;\n        }\n      }\n      goto LAB_00112631;\n    }\n    if (iVar2 == 1) {\n      iVar4 = *(int *)(param_1 + 0x4c);\n      iVar2 = FUN_001307b1();\n      if (iVar2 <= iVar4) {\n        *(undefined8 *)(param_1 + 0x28) = 0;\n        *(undefined4 *)(param_1 + 0x48) = 7;\n        iVar4 = -1;\n        goto LAB_00112674;\n      }\n      iVar4 = *(int *)(param_1 + 0x4c);\n      *(int *)(param_1 + 0x4c) = iVar4 + 1;\n      FUN_00130776(iVar4,param_1 + 0x28,param_1 + 0x30);\n      iVar4 = -1;\n    }\n    else {\nLAB_00112810:\n      if (-1 < iVar4) goto LAB_00112631;\n    }\n    if (*(long *)(param_1 + 0x28) == 0) goto LAB_00112674;\n  }\n  uVar1 = *(uint *)(param_1 + 0x10);\n  uVar7 = (ulong)uVar1;\n  if ((uVar1 == 0) ||\n     (((int)uVar1 <= *(int *)(param_1 + 0x30) &&\n      (uVar7 = FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1),\n      (int)uVar7 == 0)))) goto LAB_00112860;\n  goto LAB_00112674;\n}" (type_identifier "ulong") (function_declarator "FUN_00112558(long param_1)" (identifier "FUN_00112558") (parameter_list "(long param_1)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) () ")"))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined8 uVar5;\n  long lVar6;\n  ulong uVar7;\n  char *pcVar8;\n  undefined4 uVar9;\n  long in_FS_OFFSET;\n  undefined8 local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  *(long *)(param_1 + 0x40) = *(long *)(param_1 + 0x40) + 1;\n  iVar4 = -1;\n  uVar9 = 0;\nLAB_00112674:\n  iVar2 = *(int *)(param_1 + 0x48);\n  if (iVar2 == 0xb) {\n    uVar7 = 0;\nLAB_00112860:\n    if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n      __stack_chk_fail();\n    }\n    return uVar7;\n  }\n  if (iVar2 == 7) {\n    iVar4 = 1;\n    uVar9 = 8;\n    if (*(long *)(param_1 + 0x38) == 0) {\n      FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,param_1 + 0x38,0);\n    }\nLAB_00112631:\n    iVar2 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0x38));\n    if (iVar2 != 100) {\n      FUN_0018ccd2(*(undefined8 *)(param_1 + 0x38));\n      *(undefined8 *)(param_1 + 0x38) = 0;\n      *(undefined4 *)(param_1 + 0x48) = uVar9;\n      goto LAB_00112674;\n    }\n    uVar5 = FUN_00156d81(*(undefined8 *)(param_1 + 0x38),iVar4);\n    *(undefined8 *)(param_1 + 0x28) = uVar5;\n    uVar3 = FUN_00156893(*(undefined8 *)(param_1 + 0x38),iVar4);\n    *(undefined4 *)(param_1 + 0x30) = uVar3;\n  }\n  else {\n    if (7 < iVar2) {\n      if (iVar2 == 8) {\n        iVar4 = 0;\n        uVar9 = 9;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 9;\n        }\n      }\n      else {\n        if (iVar2 != 9) goto LAB_00112810;\n        iVar4 = 0;\n        uVar9 = 0xb;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 0xb;\n        }\n      }\n      goto LAB_00112631;\n    }\n    if (iVar2 == 1) {\n      iVar4 = *(int *)(param_1 + 0x4c);\n      iVar2 = FUN_001307b1();\n      if (iVar2 <= iVar4) {\n        *(undefined8 *)(param_1 + 0x28) = 0;\n        *(undefined4 *)(param_1 + 0x48) = 7;\n        iVar4 = -1;\n        goto LAB_00112674;\n      }\n      iVar4 = *(int *)(param_1 + 0x4c);\n      *(int *)(param_1 + 0x4c) = iVar4 + 1;\n      FUN_00130776(iVar4,param_1 + 0x28,param_1 + 0x30);\n      iVar4 = -1;\n    }\n    else {\nLAB_00112810:\n      if (-1 < iVar4) goto LAB_00112631;\n    }\n    if (*(long *)(param_1 + 0x28) == 0) goto LAB_00112674;\n  }\n  uVar1 = *(uint *)(param_1 + 0x10);\n  uVar7 = (ulong)uVar1;\n  if ((uVar1 == 0) ||\n     (((int)uVar1 <= *(int *)(param_1 + 0x30) &&\n      (uVar7 = FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1),\n      (int)uVar7 == 0)))) goto LAB_00112860;\n  goto LAB_00112674;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined8 uVar5;" (type_identifier "undefined8") (identifier "uVar5") (; ";")) (declaration "long lVar6;" (sized_type_specifier "long" (long "long")) (identifier "lVar6") (; ";")) (declaration "ulong uVar7;" (type_identifier "ulong") (identifier "uVar7") (; ";")) (declaration "char *pcVar8;" (primitive_type "char") (pointer_declarator "*pcVar8" (* "*") (identifier "pcVar8")) (; ";")) (declaration "undefined4 uVar9;" (type_identifier "undefined4") (identifier "uVar9") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "undefined8 local_48;" (type_identifier "undefined8") (identifier "local_48") (; ";")) (declaration "long local_40;" (sized_type_specifier "long" (long "long")) (identifier "local_40") (; ";")) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "*(long *)(param_1 + 0x40) = *(long *)(param_1 + 0x40) + 1;" (assignment_expression "*(long *)(param_1 + 0x40) = *(long *)(param_1 + 0x40) + 1" (pointer_expression "*(long *)(param_1 + 0x40)" (* "*") (cast_expression "(long *)(param_1 + 0x40)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")")))) (= "=") (binary_expression "*(long *)(param_1 + 0x40) + 1" (pointer_expression "*(long *)(param_1 + 0x40)" (* "*") (cast_expression "(long *)(param_1 + 0x40)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" (identifier "iVar4") (= "=") (number_literal "-1")) (; ";")) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" (identifier "uVar9") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_00112674:\n  iVar2 = *(int *)(param_1 + 0x48);" (statement_identifier "LAB_00112674") (: ":") (expression_statement "iVar2 = *(int *)(param_1 + 0x48);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x48)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x48)" (* "*") (cast_expression "(int *)(param_1 + 0x48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")"))))) (; ";"))) (if_statement "if (iVar2 == 0xb) {\n    uVar7 = 0;\nLAB_00112860:\n    if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n      __stack_chk_fail();\n    }\n    return uVar7;\n  }" (if "if") (parenthesized_expression "(iVar2 == 0xb)" (( "(") (binary_expression "iVar2 == 0xb" (identifier "iVar2") (== "==") (number_literal "0xb")) () ")")) (compound_statement "{\n    uVar7 = 0;\nLAB_00112860:\n    if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n      __stack_chk_fail();\n    }\n    return uVar7;\n  }" ({ "{") (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" (identifier "uVar7") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_00112860:\n    if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n      __stack_chk_fail();\n    }" (statement_identifier "LAB_00112860") (: ":") (if_statement "if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n      __stack_chk_fail();\n    }" (if "if") (parenthesized_expression "(local_40 != *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_40 != *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (!= "!=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n                    \n      __stack_chk_fail();\n    }" ({ "{") (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return uVar7;" (return "return") (identifier "uVar7") (; ";")) (} "}"))) (if_statement "if (iVar2 == 7) {\n    iVar4 = 1;\n    uVar9 = 8;\n    if (*(long *)(param_1 + 0x38) == 0) {\n      FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,param_1 + 0x38,0);\n    }\nLAB_00112631:\n    iVar2 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0x38));\n    if (iVar2 != 100) {\n      FUN_0018ccd2(*(undefined8 *)(param_1 + 0x38));\n      *(undefined8 *)(param_1 + 0x38) = 0;\n      *(undefined4 *)(param_1 + 0x48) = uVar9;\n      goto LAB_00112674;\n    }\n    uVar5 = FUN_00156d81(*(undefined8 *)(param_1 + 0x38),iVar4);\n    *(undefined8 *)(param_1 + 0x28) = uVar5;\n    uVar3 = FUN_00156893(*(undefined8 *)(param_1 + 0x38),iVar4);\n    *(undefined4 *)(param_1 + 0x30) = uVar3;\n  }\n  else {\n    if (7 < iVar2) {\n      if (iVar2 == 8) {\n        iVar4 = 0;\n        uVar9 = 9;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 9;\n        }\n      }\n      else {\n        if (iVar2 != 9) goto LAB_00112810;\n        iVar4 = 0;\n        uVar9 = 0xb;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 0xb;\n        }\n      }\n      goto LAB_00112631;\n    }\n    if (iVar2 == 1) {\n      iVar4 = *(int *)(param_1 + 0x4c);\n      iVar2 = FUN_001307b1();\n      if (iVar2 <= iVar4) {\n        *(undefined8 *)(param_1 + 0x28) = 0;\n        *(undefined4 *)(param_1 + 0x48) = 7;\n        iVar4 = -1;\n        goto LAB_00112674;\n      }\n      iVar4 = *(int *)(param_1 + 0x4c);\n      *(int *)(param_1 + 0x4c) = iVar4 + 1;\n      FUN_00130776(iVar4,param_1 + 0x28,param_1 + 0x30);\n      iVar4 = -1;\n    }\n    else {\nLAB_00112810:\n      if (-1 < iVar4) goto LAB_00112631;\n    }\n    if (*(long *)(param_1 + 0x28) == 0) goto LAB_00112674;\n  }" (if "if") (parenthesized_expression "(iVar2 == 7)" (( "(") (binary_expression "iVar2 == 7" (identifier "iVar2") (== "==") (number_literal "7")) () ")")) (compound_statement "{\n    iVar4 = 1;\n    uVar9 = 8;\n    if (*(long *)(param_1 + 0x38) == 0) {\n      FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,param_1 + 0x38,0);\n    }\nLAB_00112631:\n    iVar2 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0x38));\n    if (iVar2 != 100) {\n      FUN_0018ccd2(*(undefined8 *)(param_1 + 0x38));\n      *(undefined8 *)(param_1 + 0x38) = 0;\n      *(undefined4 *)(param_1 + 0x48) = uVar9;\n      goto LAB_00112674;\n    }\n    uVar5 = FUN_00156d81(*(undefined8 *)(param_1 + 0x38),iVar4);\n    *(undefined8 *)(param_1 + 0x28) = uVar5;\n    uVar3 = FUN_00156893(*(undefined8 *)(param_1 + 0x38),iVar4);\n    *(undefined4 *)(param_1 + 0x30) = uVar3;\n  }" ({ "{") (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" (identifier "iVar4") (= "=") (number_literal "1")) (; ";")) (expression_statement "uVar9 = 8;" (assignment_expression "uVar9 = 8" (identifier "uVar9") (= "=") (number_literal "8")) (; ";")) (if_statement "if (*(long *)(param_1 + 0x38) == 0) {\n      FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,param_1 + 0x38,0);\n    }" (if "if") (parenthesized_expression "(*(long *)(param_1 + 0x38) == 0)" (( "(") (binary_expression "*(long *)(param_1 + 0x38) == 0" (pointer_expression "*(long *)(param_1 + 0x38)" (* "*") (cast_expression "(long *)(param_1 + 0x38)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,param_1 + 0x38,0);\n    }" ({ "{") (expression_statement "FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,param_1 + 0x38,0);" (call_expression "FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,param_1 + 0x38,0)" (identifier "FUN_001bf242") (argument_list "(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,param_1 + 0x38,0)" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 8)" (* "*") (cast_expression "(undefined8 *)(param_1 + 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (, ",") (string_literal ""PRAGMA database_list"" (" """) (string_content "PRAGMA database_list") (" """)) (, ",") (number_literal "0xffffffff") (, ",") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) (, ",") (number_literal "0") () ")"))) (; ";")) (} "}"))) (labeled_statement "LAB_00112631:\n    iVar2 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0x38));" (statement_identifier "LAB_00112631") (: ":") (expression_statement "iVar2 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0x38));" (assignment_expression "iVar2 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0x38))" (identifier "iVar2") (= "=") (call_expression "FUN_001ab5c0(*(undefined8 *)(param_1 + 0x38))" (identifier "FUN_001ab5c0") (argument_list "(*(undefined8 *)(param_1 + 0x38))" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x38)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x38)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) () ")")))) (; ";"))) (if_statement "if (iVar2 != 100) {\n      FUN_0018ccd2(*(undefined8 *)(param_1 + 0x38));\n      *(undefined8 *)(param_1 + 0x38) = 0;\n      *(undefined4 *)(param_1 + 0x48) = uVar9;\n      goto LAB_00112674;\n    }" (if "if") (parenthesized_expression "(iVar2 != 100)" (( "(") (binary_expression "iVar2 != 100" (identifier "iVar2") (!= "!=") (number_literal "100")) () ")")) (compound_statement "{\n      FUN_0018ccd2(*(undefined8 *)(param_1 + 0x38));\n      *(undefined8 *)(param_1 + 0x38) = 0;\n      *(undefined4 *)(param_1 + 0x48) = uVar9;\n      goto LAB_00112674;\n    }" ({ "{") (expression_statement "FUN_0018ccd2(*(undefined8 *)(param_1 + 0x38));" (call_expression "FUN_0018ccd2(*(undefined8 *)(param_1 + 0x38))" (identifier "FUN_0018ccd2") (argument_list "(*(undefined8 *)(param_1 + 0x38))" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x38)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x38)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) () ")"))) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0x38) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x38) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x38)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x38)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x48) = uVar9;" (assignment_expression "*(undefined4 *)(param_1 + 0x48) = uVar9" (pointer_expression "*(undefined4 *)(param_1 + 0x48)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x48)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")")))) (= "=") (identifier "uVar9")) (; ";")) (goto_statement "goto LAB_00112674;" (goto "goto") (statement_identifier "LAB_00112674") (; ";")) (} "}"))) (expression_statement "uVar5 = FUN_00156d81(*(undefined8 *)(param_1 + 0x38),iVar4);" (assignment_expression "uVar5 = FUN_00156d81(*(undefined8 *)(param_1 + 0x38),iVar4)" (identifier "uVar5") (= "=") (call_expression "FUN_00156d81(*(undefined8 *)(param_1 + 0x38),iVar4)" (identifier "FUN_00156d81") (argument_list "(*(undefined8 *)(param_1 + 0x38),iVar4)" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x38)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x38)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (, ",") (identifier "iVar4") () ")")))) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0x28) = uVar5;" (assignment_expression "*(undefined8 *)(param_1 + 0x28) = uVar5" (pointer_expression "*(undefined8 *)(param_1 + 0x28)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x28)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (= "=") (identifier "uVar5")) (; ";")) (expression_statement "uVar3 = FUN_00156893(*(undefined8 *)(param_1 + 0x38),iVar4);" (assignment_expression "uVar3 = FUN_00156893(*(undefined8 *)(param_1 + 0x38),iVar4)" (identifier "uVar3") (= "=") (call_expression "FUN_00156893(*(undefined8 *)(param_1 + 0x38),iVar4)" (identifier "FUN_00156893") (argument_list "(*(undefined8 *)(param_1 + 0x38),iVar4)" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x38)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x38)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (, ",") (identifier "iVar4") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x30) = uVar3;" (assignment_expression "*(undefined4 *)(param_1 + 0x30) = uVar3" (pointer_expression "*(undefined4 *)(param_1 + 0x30)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (} "}")) (else_clause "else {\n    if (7 < iVar2) {\n      if (iVar2 == 8) {\n        iVar4 = 0;\n        uVar9 = 9;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 9;\n        }\n      }\n      else {\n        if (iVar2 != 9) goto LAB_00112810;\n        iVar4 = 0;\n        uVar9 = 0xb;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 0xb;\n        }\n      }\n      goto LAB_00112631;\n    }\n    if (iVar2 == 1) {\n      iVar4 = *(int *)(param_1 + 0x4c);\n      iVar2 = FUN_001307b1();\n      if (iVar2 <= iVar4) {\n        *(undefined8 *)(param_1 + 0x28) = 0;\n        *(undefined4 *)(param_1 + 0x48) = 7;\n        iVar4 = -1;\n        goto LAB_00112674;\n      }\n      iVar4 = *(int *)(param_1 + 0x4c);\n      *(int *)(param_1 + 0x4c) = iVar4 + 1;\n      FUN_00130776(iVar4,param_1 + 0x28,param_1 + 0x30);\n      iVar4 = -1;\n    }\n    else {\nLAB_00112810:\n      if (-1 < iVar4) goto LAB_00112631;\n    }\n    if (*(long *)(param_1 + 0x28) == 0) goto LAB_00112674;\n  }" (else "else") (compound_statement "{\n    if (7 < iVar2) {\n      if (iVar2 == 8) {\n        iVar4 = 0;\n        uVar9 = 9;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 9;\n        }\n      }\n      else {\n        if (iVar2 != 9) goto LAB_00112810;\n        iVar4 = 0;\n        uVar9 = 0xb;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 0xb;\n        }\n      }\n      goto LAB_00112631;\n    }\n    if (iVar2 == 1) {\n      iVar4 = *(int *)(param_1 + 0x4c);\n      iVar2 = FUN_001307b1();\n      if (iVar2 <= iVar4) {\n        *(undefined8 *)(param_1 + 0x28) = 0;\n        *(undefined4 *)(param_1 + 0x48) = 7;\n        iVar4 = -1;\n        goto LAB_00112674;\n      }\n      iVar4 = *(int *)(param_1 + 0x4c);\n      *(int *)(param_1 + 0x4c) = iVar4 + 1;\n      FUN_00130776(iVar4,param_1 + 0x28,param_1 + 0x30);\n      iVar4 = -1;\n    }\n    else {\nLAB_00112810:\n      if (-1 < iVar4) goto LAB_00112631;\n    }\n    if (*(long *)(param_1 + 0x28) == 0) goto LAB_00112674;\n  }" ({ "{") (if_statement "if (7 < iVar2) {\n      if (iVar2 == 8) {\n        iVar4 = 0;\n        uVar9 = 9;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 9;\n        }\n      }\n      else {\n        if (iVar2 != 9) goto LAB_00112810;\n        iVar4 = 0;\n        uVar9 = 0xb;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 0xb;\n        }\n      }\n      goto LAB_00112631;\n    }" (if "if") (parenthesized_expression "(7 < iVar2)" (( "(") (binary_expression "7 < iVar2" (number_literal "7") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n      if (iVar2 == 8) {\n        iVar4 = 0;\n        uVar9 = 9;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 9;\n        }\n      }\n      else {\n        if (iVar2 != 9) goto LAB_00112810;\n        iVar4 = 0;\n        uVar9 = 0xb;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 0xb;\n        }\n      }\n      goto LAB_00112631;\n    }" ({ "{") (if_statement "if (iVar2 == 8) {\n        iVar4 = 0;\n        uVar9 = 9;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 9;\n        }\n      }\n      else {\n        if (iVar2 != 9) goto LAB_00112810;\n        iVar4 = 0;\n        uVar9 = 0xb;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 0xb;\n        }\n      }" (if "if") (parenthesized_expression "(iVar2 == 8)" (( "(") (binary_expression "iVar2 == 8" (identifier "iVar2") (== "==") (number_literal "8")) () ")")) (compound_statement "{\n        iVar4 = 0;\n        uVar9 = 9;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 9;\n        }\n      }" ({ "{") (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar9 = 9;" (assignment_expression "uVar9 = 9" (identifier "uVar9") (= "=") (number_literal "9")) (; ";")) (if_statement "if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 9;\n        }" (if "if") (parenthesized_expression "(*(long *)(param_1 + 0x38) == 0)" (( "(") (binary_expression "*(long *)(param_1 + 0x38) == 0" (pointer_expression "*(long *)(param_1 + 0x38)" (* "*") (cast_expression "(long *)(param_1 + 0x38)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 9;\n        }" ({ "{") (expression_statement "FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);" (call_expression "FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0)" (identifier "FUN_001bf242") (argument_list "(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0)" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 8)" (* "*") (cast_expression "(undefined8 *)(param_1 + 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (, ",") (string_literal ""PRAGMA database_list"" (" """) (string_content "PRAGMA database_list") (" """)) (, ",") (number_literal "0xffffffff") (, ",") (pointer_expression "&local_48" (& "&") (identifier "local_48")) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "lVar6 = 0;" (assignment_expression "lVar6 = 0" (identifier "lVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "pcVar8 = "";" (assignment_expression "pcVar8 = """ (identifier "pcVar8") (= "=") (string_literal """" (" """) (" """))) (; ";")) (while_statement "while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }" (while "while") (parenthesized_expression "(iVar4 = FUN_001ab5c0(local_48), iVar4 == 100)" (( "(") (comma_expression "iVar4 = FUN_001ab5c0(local_48), iVar4 == 100" (assignment_expression "iVar4 = FUN_001ab5c0(local_48)" (identifier "iVar4") (= "=") (call_expression "FUN_001ab5c0(local_48)" (identifier "FUN_001ab5c0") (argument_list "(local_48)" (( "(") (identifier "local_48") () ")")))) (, ",") (binary_expression "iVar4 == 100" (identifier "iVar4") (== "==") (number_literal "100"))) () ")")) (compound_statement "{\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }" ({ "{") (expression_statement "uVar5 = FUN_00156d81(local_48,1);" (assignment_expression "uVar5 = FUN_00156d81(local_48,1)" (identifier "uVar5") (= "=") (call_expression "FUN_00156d81(local_48,1)" (identifier "FUN_00156d81") (argument_list "(local_48,1)" (( "(") (identifier "local_48") (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);" (assignment_expression "lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5)" (identifier "lVar6") (= "=") (call_expression "FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5)" (identifier "FUN_001776d2") (argument_list "("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5)" (( "(") (string_literal ""%z%sSELECT name FROM \"%w\".sqlite_master"" (" """) (string_content "%z%sSELECT name FROM ") (escape_sequence "\"") (string_content "%w") (escape_sequence "\"") (string_content ".sqlite_master") (" """)) (, ",") (identifier "lVar6") (, ",") (identifier "pcVar8") (, ",") (identifier "uVar5") () ")")))) (; ";")) (expression_statement "pcVar8 = " UNION ";" (assignment_expression "pcVar8 = " UNION "" (identifier "pcVar8") (= "=") (string_literal "" UNION "" (" """) (string_content " UNION ") (" """))) (; ";")) (if_statement "if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }" (if "if") (parenthesized_expression "(lVar6 == 0)" (( "(") (binary_expression "lVar6 == 0" (identifier "lVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n              uVar7 = 7;\n              goto LAB_00112860;\n            }" ({ "{") (expression_statement "uVar7 = 7;" (assignment_expression "uVar7 = 7" (identifier "uVar7") (= "=") (number_literal "7")) (; ";")) (goto_statement "goto LAB_00112860;" (goto "goto") (statement_identifier "LAB_00112860") (; ";")) (} "}"))) (} "}"))) (expression_statement "FUN_0018ccd2(local_48);" (call_expression "FUN_0018ccd2(local_48)" (identifier "FUN_0018ccd2") (argument_list "(local_48)" (( "(") (identifier "local_48") () ")"))) (; ";")) (expression_statement "FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);" (call_expression "FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0)" (identifier "FUN_001bf242") (argument_list "(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0)" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 8)" (* "*") (cast_expression "(undefined8 *)(param_1 + 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (, ",") (identifier "lVar6") (, ",") (number_literal "0xffffffff") (, ",") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "FUN_00141303(lVar6);" (call_expression "FUN_00141303(lVar6)" (identifier "FUN_00141303") (argument_list "(lVar6)" (( "(") (identifier "lVar6") () ")"))) (; ";")) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar9 = 9;" (assignment_expression "uVar9 = 9" (identifier "uVar9") (= "=") (number_literal "9")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n        if (iVar2 != 9) goto LAB_00112810;\n        iVar4 = 0;\n        uVar9 = 0xb;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 0xb;\n        }\n      }" (else "else") (compound_statement "{\n        if (iVar2 != 9) goto LAB_00112810;\n        iVar4 = 0;\n        uVar9 = 0xb;\n        if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 0xb;\n        }\n      }" ({ "{") (if_statement "if (iVar2 != 9) goto LAB_00112810;" (if "if") (parenthesized_expression "(iVar2 != 9)" (( "(") (binary_expression "iVar2 != 9" (identifier "iVar2") (!= "!=") (number_literal "9")) () ")")) (goto_statement "goto LAB_00112810;" (goto "goto") (statement_identifier "LAB_00112810") (; ";"))) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar9 = 0xb;" (assignment_expression "uVar9 = 0xb" (identifier "uVar9") (= "=") (number_literal "0xb")) (; ";")) (if_statement "if (*(long *)(param_1 + 0x38) == 0) {\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 0xb;\n        }" (if "if") (parenthesized_expression "(*(long *)(param_1 + 0x38) == 0)" (( "(") (binary_expression "*(long *)(param_1 + 0x38) == 0" (pointer_expression "*(long *)(param_1 + 0x38)" (* "*") (cast_expression "(long *)(param_1 + 0x38)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);\n          lVar6 = 0;\n          pcVar8 = "";\n          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }\n          FUN_0018ccd2(local_48);\n          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);\n          FUN_00141303(lVar6);\n          iVar4 = 0;\n          uVar9 = 0xb;\n        }" ({ "{") (expression_statement "FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);" (call_expression "FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0)" (identifier "FUN_001bf242") (argument_list "(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0)" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 8)" (* "*") (cast_expression "(undefined8 *)(param_1 + 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (, ",") (string_literal ""PRAGMA database_list"" (" """) (string_content "PRAGMA database_list") (" """)) (, ",") (number_literal "0xffffffff") (, ",") (pointer_expression "&local_48" (& "&") (identifier "local_48")) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "lVar6 = 0;" (assignment_expression "lVar6 = 0" (identifier "lVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "pcVar8 = "";" (assignment_expression "pcVar8 = """ (identifier "pcVar8") (= "=") (string_literal """" (" """) (" """))) (; ";")) (while_statement "while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }" (while "while") (parenthesized_expression "(iVar4 = FUN_001ab5c0(local_48), iVar4 == 100)" (( "(") (comma_expression "iVar4 = FUN_001ab5c0(local_48), iVar4 == 100" (assignment_expression "iVar4 = FUN_001ab5c0(local_48)" (identifier "iVar4") (= "=") (call_expression "FUN_001ab5c0(local_48)" (identifier "FUN_001ab5c0") (argument_list "(local_48)" (( "(") (identifier "local_48") () ")")))) (, ",") (binary_expression "iVar4 == 100" (identifier "iVar4") (== "==") (number_literal "100"))) () ")")) (compound_statement "{\n            uVar5 = FUN_00156d81(local_48,1);\n            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);\n            pcVar8 = " UNION ";\n            if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }\n          }" ({ "{") (expression_statement "uVar5 = FUN_00156d81(local_48,1);" (assignment_expression "uVar5 = FUN_00156d81(local_48,1)" (identifier "uVar5") (= "=") (call_expression "FUN_00156d81(local_48,1)" (identifier "FUN_00156d81") (argument_list "(local_48,1)" (( "(") (identifier "local_48") (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5);" (assignment_expression "lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5)" (identifier "lVar6") (= "=") (call_expression "FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5)" (identifier "FUN_001776d2") (argument_list "("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"\n                                 ,lVar6,pcVar8,uVar5,uVar5)" (( "(") (string_literal ""%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"" (" """) (string_content "%z%sSELECT pti.name FROM ") (escape_sequence "\"") (string_content "%w") (escape_sequence "\"") (string_content ".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=") (escape_sequence "\'") (string_content "table") (escape_sequence "\'") (" """)) (, ",") (identifier "lVar6") (, ",") (identifier "pcVar8") (, ",") (identifier "uVar5") (, ",") (identifier "uVar5") () ")")))) (; ";")) (expression_statement "pcVar8 = " UNION ";" (assignment_expression "pcVar8 = " UNION "" (identifier "pcVar8") (= "=") (string_literal "" UNION "" (" """) (string_content " UNION ") (" """))) (; ";")) (if_statement "if (lVar6 == 0) {\n              uVar7 = 7;\n              goto LAB_00112860;\n            }" (if "if") (parenthesized_expression "(lVar6 == 0)" (( "(") (binary_expression "lVar6 == 0" (identifier "lVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n              uVar7 = 7;\n              goto LAB_00112860;\n            }" ({ "{") (expression_statement "uVar7 = 7;" (assignment_expression "uVar7 = 7" (identifier "uVar7") (= "=") (number_literal "7")) (; ";")) (goto_statement "goto LAB_00112860;" (goto "goto") (statement_identifier "LAB_00112860") (; ";")) (} "}"))) (} "}"))) (expression_statement "FUN_0018ccd2(local_48);" (call_expression "FUN_0018ccd2(local_48)" (identifier "FUN_0018ccd2") (argument_list "(local_48)" (( "(") (identifier "local_48") () ")"))) (; ";")) (expression_statement "FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);" (call_expression "FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0)" (identifier "FUN_001bf242") (argument_list "(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0)" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 8)" (* "*") (cast_expression "(undefined8 *)(param_1 + 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (, ",") (identifier "lVar6") (, ",") (number_literal "0xffffffff") (, ",") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "FUN_00141303(lVar6);" (call_expression "FUN_00141303(lVar6)" (identifier "FUN_00141303") (argument_list "(lVar6)" (( "(") (identifier "lVar6") () ")"))) (; ";")) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar9 = 0xb;" (assignment_expression "uVar9 = 0xb" (identifier "uVar9") (= "=") (number_literal "0xb")) (; ";")) (} "}"))) (} "}")))) (goto_statement "goto LAB_00112631;" (goto "goto") (statement_identifier "LAB_00112631") (; ";")) (} "}"))) (if_statement "if (iVar2 == 1) {\n      iVar4 = *(int *)(param_1 + 0x4c);\n      iVar2 = FUN_001307b1();\n      if (iVar2 <= iVar4) {\n        *(undefined8 *)(param_1 + 0x28) = 0;\n        *(undefined4 *)(param_1 + 0x48) = 7;\n        iVar4 = -1;\n        goto LAB_00112674;\n      }\n      iVar4 = *(int *)(param_1 + 0x4c);\n      *(int *)(param_1 + 0x4c) = iVar4 + 1;\n      FUN_00130776(iVar4,param_1 + 0x28,param_1 + 0x30);\n      iVar4 = -1;\n    }\n    else {\nLAB_00112810:\n      if (-1 < iVar4) goto LAB_00112631;\n    }" (if "if") (parenthesized_expression "(iVar2 == 1)" (( "(") (binary_expression "iVar2 == 1" (identifier "iVar2") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      iVar4 = *(int *)(param_1 + 0x4c);\n      iVar2 = FUN_001307b1();\n      if (iVar2 <= iVar4) {\n        *(undefined8 *)(param_1 + 0x28) = 0;\n        *(undefined4 *)(param_1 + 0x48) = 7;\n        iVar4 = -1;\n        goto LAB_00112674;\n      }\n      iVar4 = *(int *)(param_1 + 0x4c);\n      *(int *)(param_1 + 0x4c) = iVar4 + 1;\n      FUN_00130776(iVar4,param_1 + 0x28,param_1 + 0x30);\n      iVar4 = -1;\n    }" ({ "{") (expression_statement "iVar4 = *(int *)(param_1 + 0x4c);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x4c)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_1 + 0x4c)" (* "*") (cast_expression "(int *)(param_1 + 0x4c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")"))))) (; ";")) (expression_statement "iVar2 = FUN_001307b1();" (assignment_expression "iVar2 = FUN_001307b1()" (identifier "iVar2") (= "=") (call_expression "FUN_001307b1()" (identifier "FUN_001307b1") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar2 <= iVar4) {\n        *(undefined8 *)(param_1 + 0x28) = 0;\n        *(undefined4 *)(param_1 + 0x48) = 7;\n        iVar4 = -1;\n        goto LAB_00112674;\n      }" (if "if") (parenthesized_expression "(iVar2 <= iVar4)" (( "(") (binary_expression "iVar2 <= iVar4" (identifier "iVar2") (<= "<=") (identifier "iVar4")) () ")")) (compound_statement "{\n        *(undefined8 *)(param_1 + 0x28) = 0;\n        *(undefined4 *)(param_1 + 0x48) = 7;\n        iVar4 = -1;\n        goto LAB_00112674;\n      }" ({ "{") (expression_statement "*(undefined8 *)(param_1 + 0x28) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x28) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x28)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x28)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x48) = 7;" (assignment_expression "*(undefined4 *)(param_1 + 0x48) = 7" (pointer_expression "*(undefined4 *)(param_1 + 0x48)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x48)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")")))) (= "=") (number_literal "7")) (; ";")) (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" (identifier "iVar4") (= "=") (number_literal "-1")) (; ";")) (goto_statement "goto LAB_00112674;" (goto "goto") (statement_identifier "LAB_00112674") (; ";")) (} "}"))) (expression_statement "iVar4 = *(int *)(param_1 + 0x4c);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x4c)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_1 + 0x4c)" (* "*") (cast_expression "(int *)(param_1 + 0x4c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")"))))) (; ";")) (expression_statement "*(int *)(param_1 + 0x4c) = iVar4 + 1;" (assignment_expression "*(int *)(param_1 + 0x4c) = iVar4 + 1" (pointer_expression "*(int *)(param_1 + 0x4c)" (* "*") (cast_expression "(int *)(param_1 + 0x4c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")")))) (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "FUN_00130776(iVar4,param_1 + 0x28,param_1 + 0x30);" (call_expression "FUN_00130776(iVar4,param_1 + 0x28,param_1 + 0x30)" (identifier "FUN_00130776") (argument_list "(iVar4,param_1 + 0x28,param_1 + 0x30)" (( "(") (identifier "iVar4") (, ",") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) (, ",") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")"))) (; ";")) (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" (identifier "iVar4") (= "=") (number_literal "-1")) (; ";")) (} "}")) (else_clause "else {\nLAB_00112810:\n      if (-1 < iVar4) goto LAB_00112631;\n    }" (else "else") (compound_statement "{\nLAB_00112810:\n      if (-1 < iVar4) goto LAB_00112631;\n    }" ({ "{") (labeled_statement "LAB_00112810:\n      if (-1 < iVar4) goto LAB_00112631;" (statement_identifier "LAB_00112810") (: ":") (if_statement "if (-1 < iVar4) goto LAB_00112631;" (if "if") (parenthesized_expression "(-1 < iVar4)" (( "(") (binary_expression "-1 < iVar4" (number_literal "-1") (< "<") (identifier "iVar4")) () ")")) (goto_statement "goto LAB_00112631;" (goto "goto") (statement_identifier "LAB_00112631") (; ";")))) (} "}")))) (if_statement "if (*(long *)(param_1 + 0x28) == 0) goto LAB_00112674;" (if "if") (parenthesized_expression "(*(long *)(param_1 + 0x28) == 0)" (( "(") (binary_expression "*(long *)(param_1 + 0x28) == 0" (pointer_expression "*(long *)(param_1 + 0x28)" (* "*") (cast_expression "(long *)(param_1 + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00112674;" (goto "goto") (statement_identifier "LAB_00112674") (; ";"))) (} "}")))) (expression_statement "uVar1 = *(uint *)(param_1 + 0x10);" (assignment_expression "uVar1 = *(uint *)(param_1 + 0x10)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(param_1 + 0x10)" (* "*") (cast_expression "(uint *)(param_1 + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "uVar7 = (ulong)uVar1;" (assignment_expression "uVar7 = (ulong)uVar1" (identifier "uVar7") (= "=") (cast_expression "(ulong)uVar1" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "uVar1"))) (; ";")) (if_statement "if ((uVar1 == 0) ||\n     (((int)uVar1 <= *(int *)(param_1 + 0x30) &&\n      (uVar7 = FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1),\n      (int)uVar7 == 0)))) goto LAB_00112860;" (if "if") (parenthesized_expression "((uVar1 == 0) ||\n     (((int)uVar1 <= *(int *)(param_1 + 0x30) &&\n      (uVar7 = FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1),\n      (int)uVar7 == 0))))" (( "(") (binary_expression "(uVar1 == 0) ||\n     (((int)uVar1 <= *(int *)(param_1 + 0x30) &&\n      (uVar7 = FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1),\n      (int)uVar7 == 0)))" (parenthesized_expression "(uVar1 == 0)" (( "(") (binary_expression "uVar1 == 0" (identifier "uVar1") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(((int)uVar1 <= *(int *)(param_1 + 0x30) &&\n      (uVar7 = FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1),\n      (int)uVar7 == 0)))" (( "(") (parenthesized_expression "((int)uVar1 <= *(int *)(param_1 + 0x30) &&\n      (uVar7 = FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1),\n      (int)uVar7 == 0))" (( "(") (binary_expression "(int)uVar1 <= *(int *)(param_1 + 0x30) &&\n      (uVar7 = FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1),\n      (int)uVar7 == 0)" (binary_expression "(int)uVar1 <= *(int *)(param_1 + 0x30)" (cast_expression "(int)uVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar1")) (<= "<=") (pointer_expression "*(int *)(param_1 + 0x30)" (* "*") (cast_expression "(int *)(param_1 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")"))))) (&& "&&") (parenthesized_expression "(uVar7 = FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1),\n      (int)uVar7 == 0)" (( "(") (comma_expression "uVar7 = FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1),\n      (int)uVar7 == 0" (assignment_expression "uVar7 = FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1)" (identifier "uVar7") (= "=") (call_expression "FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1)" (identifier "FUN_0012ada6") (argument_list "(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1)" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (, ",") (pointer_expression "*(undefined8 *)(param_1 + 0x28)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x28)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (, ",") (identifier "uVar1") () ")")))) (, ",") (binary_expression "(int)uVar7 == 0" (cast_expression "(int)uVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar7")) (== "==") (number_literal "0"))) () ")"))) () ")")) () ")"))) () ")")) (goto_statement "goto LAB_00112860;" (goto "goto") (statement_identifier "LAB_00112860") (; ";"))) (goto_statement "goto LAB_00112674;" (goto "goto") (statement_identifier "LAB_00112674") (; ";")) (} "}")))

int function_1(type_1 *var_4)

{
  int var_2;
  int var_9;
  type_2 *psVar3;
  type_3 *puVar4;
  char *var_11;
  char *pcVar6;
  type_4 uVar7;
  long var_1;
  type_5 *pS2;
  long var_16;
  
  var_16 = *(long *)(var_1 + 0x28);
  var_4[8].pVtab = (type_2 *)((long)&(var_4[8].pVtab)->pModule + 1);
  var_9 = -1;
  uVar7 = 0;
LAB_00112674:
  var_2 = *(int *)&var_4[9].pVtab;
  if (var_2 == 0xb) {
    var_2 = 0;
    goto LAB_00112860;
  }
  if (var_2 == 7) {
    var_9 = 1;
    uVar7 = 8;
    if (var_4[7].pVtab == (type_2 *)0x0) {
      var_3((type_6 *)var_4[1].pVtab,"PRAGMA database_list",-1,
                         (type_5 **)(var_4 + 7),(char **)0x0);
    }
LAB_00112631:
    var_2 = var_5((type_5 *)var_4[7].pVtab);
    if (var_2 != 100) {
      var_6((type_5 *)var_4[7].pVtab);
      var_4[7].pVtab = (type_2 *)0x0;
      *(type_4 *)&var_4[9].pVtab = uVar7;
      goto LAB_00112674;
    }
    psVar3 = (type_2 *)var_7((type_5 *)var_4[7].pVtab,var_9);
    var_4[5].pVtab = psVar3;
    var_2 = var_8((type_5 *)var_4[7].pVtab,var_9);
    *(int *)&var_4[6].pVtab = var_2;
  }
  else {
    if (7 < var_2) {
      if (var_2 == 8) {
        var_9 = 0;
        uVar7 = 9;
        if (var_4[7].pVtab == (type_2 *)0x0) {
          var_3((type_6 *)var_4[1].pVtab,"PRAGMA database_list",-1,&pS2,(char **)0x0);
          var_11 = (char *)0x0;
          pcVar6 = "";
          while (var_9 = var_5(pS2), var_9 == 100) {
            puVar4 = var_7(pS2,1);
            var_11 = var_10("%z%sSELECT name FROM \"%w\".sqlite_master",var_11,pcVar6,
                                     puVar4);
            pcVar6 = " UNION ";
            if (var_11 == (char *)0x0) {
              var_2 = 7;
              goto LAB_00112860;
            }
          }
          var_6(pS2);
          var_3((type_6 *)var_4[1].pVtab,var_11,-1,(type_5 **)(var_4 + 7),
                             (char **)0x0);
          var_12(var_11);
          var_9 = 0;
          uVar7 = 9;
        }
      }
      else {
        if (var_2 != 9) goto LAB_00112810;
        var_9 = 0;
        uVar7 = 0xb;
        if (var_4[7].pVtab == (type_2 *)0x0) {
          var_3((type_6 *)var_4[1].pVtab,"PRAGMA database_list",-1,&pS2,(char **)0x0);
          var_11 = (char *)0x0;
          pcVar6 = "";
          while (var_9 = var_5(pS2), var_9 == 100) {
            puVar4 = var_7(pS2,1);
            var_11 = var_10("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"
                                     ,var_11,pcVar6,puVar4,puVar4);
            pcVar6 = " UNION ";
            if (var_11 == (char *)0x0) {
              var_2 = 7;
              goto LAB_00112860;
            }
          }
          var_6(pS2);
          var_3((type_6 *)var_4[1].pVtab,var_11,-1,(type_5 **)(var_4 + 7),
                             (char **)0x0);
          var_12(var_11);
          var_9 = 0;
          uVar7 = 0xb;
        }
      }
      goto LAB_00112631;
    }
    if (var_2 == 1) {
      var_9 = *(int *)((long)&var_4[9].pVtab + 4);
      var_2 = var_13();
      if (var_2 <= var_9) {
        var_4[5].pVtab = (type_2 *)0x0;
        *(type_4 *)&var_4[9].pVtab = 7;
        var_9 = -1;
        goto LAB_00112674;
      }
      var_9 = *(int *)((long)&var_4[9].pVtab + 4);
      *(int *)((long)&var_4[9].pVtab + 4) = var_9 + 1;
      var_14(var_9,(char **)(var_4 + 5),(int *)(var_4 + 6));
      var_9 = -1;
    }
    else {
LAB_00112810:
      if (-1 < var_9) goto LAB_00112631;
    }
    if (var_4[5].pVtab == (type_2 *)0x0) goto LAB_00112674;
  }
  var_2 = *(int *)&var_4[2].pVtab;
  if (var_2 == 0) goto LAB_00112860;
  if ((var_2 <= *(int *)&var_4[6].pVtab) &&
     (var_2 = var_15((char *)var_4[3].pVtab,(char *)var_4[5].pVtab,var_2), var_2 == 0)) {
    var_2 = 0;
LAB_00112860:
    if (var_16 != *(long *)(var_1 + 0x28)) {
                    /* WARNING: Subroutine does not return */
      var_17();
    }
    return var_2;
  }
  goto LAB_00112674;
}


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

ulong MASKED(long param_1)

{
  uint uVar1;
  int iVar2;
  undefined4 uVar3;
  int iVar4;
  undefined8 uVar5;
  long lVar6;
  ulong uVar7;
  char *pcVar8;
  undefined4 uVar9;
  long in_FS_OFFSET;
  undefined8 local_48;
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  *(long *)(param_1 + 0x40) = *(long *)(param_1 + 0x40) + 1;
  iVar4 = -1;
  uVar9 = 0;
LAB_00112674:
  iVar2 = *(int *)(param_1 + 0x48);
  if (iVar2 == 0xb) {
    uVar7 = 0;
LAB_00112860:
    if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
      __stack_chk_fail();
    }
    return uVar7;
  }
  if (iVar2 == 7) {
    iVar4 = 1;
    uVar9 = 8;
    if (*(long *)(param_1 + 0x38) == 0) {
      FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,param_1 + 0x38,0);
    }
LAB_00112631:
    iVar2 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0x38));
    if (iVar2 != 100) {
      FUN_0018ccd2(*(undefined8 *)(param_1 + 0x38));
      *(undefined8 *)(param_1 + 0x38) = 0;
      *(undefined4 *)(param_1 + 0x48) = uVar9;
      goto LAB_00112674;
    }
    uVar5 = FUN_00156d81(*(undefined8 *)(param_1 + 0x38),iVar4);
    *(undefined8 *)(param_1 + 0x28) = uVar5;
    uVar3 = FUN_00156893(*(undefined8 *)(param_1 + 0x38),iVar4);
    *(undefined4 *)(param_1 + 0x30) = uVar3;
  }
  else {
    if (7 < iVar2) {
      if (iVar2 == 8) {
        iVar4 = 0;
        uVar9 = 9;
        if (*(long *)(param_1 + 0x38) == 0) {
          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);
          lVar6 = 0;
          pcVar8 = "";
          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {
            uVar5 = FUN_00156d81(local_48,1);
            lVar6 = FUN_001776d2("%z%sSELECT name FROM \"%w\".sqlite_master",lVar6,pcVar8,uVar5);
            pcVar8 = " UNION ";
            if (lVar6 == 0) {
              uVar7 = 7;
              goto LAB_00112860;
            }
          }
          FUN_0018ccd2(local_48);
          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);
          FUN_00141303(lVar6);
          iVar4 = 0;
          uVar9 = 9;
        }
      }
      else {
        if (iVar2 != 9) goto LAB_00112810;
        iVar4 = 0;
        uVar9 = 0xb;
        if (*(long *)(param_1 + 0x38) == 0) {
          FUN_001bf242(*(undefined8 *)(param_1 + 8),"PRAGMA database_list",0xffffffff,&local_48,0);
          lVar6 = 0;
          pcVar8 = "";
          while (iVar4 = FUN_001ab5c0(local_48), iVar4 == 100) {
            uVar5 = FUN_00156d81(local_48,1);
            lVar6 = FUN_001776d2("%z%sSELECT pti.name FROM \"%w\".sqlite_master AS sm JOIN pragma_table_info(sm.name,%Q) AS pti WHERE sm.type=\'table\'"
                                 ,lVar6,pcVar8,uVar5,uVar5);
            pcVar8 = " UNION ";
            if (lVar6 == 0) {
              uVar7 = 7;
              goto LAB_00112860;
            }
          }
          FUN_0018ccd2(local_48);
          FUN_001bf242(*(undefined8 *)(param_1 + 8),lVar6,0xffffffff,param_1 + 0x38,0);
          FUN_00141303(lVar6);
          iVar4 = 0;
          uVar9 = 0xb;
        }
      }
      goto LAB_00112631;
    }
    if (iVar2 == 1) {
      iVar4 = *(int *)(param_1 + 0x4c);
      iVar2 = FUN_001307b1();
      if (iVar2 <= iVar4) {
        *(undefined8 *)(param_1 + 0x28) = 0;
        *(undefined4 *)(param_1 + 0x48) = 7;
        iVar4 = -1;
        goto LAB_00112674;
      }
      iVar4 = *(int *)(param_1 + 0x4c);
      *(int *)(param_1 + 0x4c) = iVar4 + 1;
      FUN_00130776(iVar4,param_1 + 0x28,param_1 + 0x30);
      iVar4 = -1;
    }
    else {
LAB_00112810:
      if (-1 < iVar4) goto LAB_00112631;
    }
    if (*(long *)(param_1 + 0x28) == 0) goto LAB_00112674;
  }
  uVar1 = *(uint *)(param_1 + 0x10);
  uVar7 = (ulong)uVar1;
  if ((uVar1 == 0) ||
     (((int)uVar1 <= *(int *)(param_1 + 0x30) &&
      (uVar7 = FUN_0012ada6(*(undefined8 *)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x28),uVar1),
      (int)uVar7 == 0)))) goto LAB_00112860;
  goto LAB_00112674;
}

