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

Btree * __regparm3 findBtree(sqlite3 *pErrorDb,sqlite3 *pDb,char *zDb)

{
  int iVar1;
  uint uVar2;
  int iVar3;
  int iVar4;
  Db *pDVar5;
  Btree *pBVar6;
  Parse *pPVar7;
  int in_GS_OFFSET;
  byte bVar8;
  Btree *local_13c;
  Parse sParse;
  
  bVar8 = 0;
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (zDb != (char *)0x0) {
    iVar4 = pDb->nDb + -1;
    pDVar5 = pDb->aDb + iVar4;
    if (-1 < iVar4) {
LAB_000876f7:
      iVar3 = sqlite3_stricmp(pDVar5->zDbSName,zDb);
      if (iVar3 == 0) {
        iVar3 = iVar4 << 4;
        if (iVar4 == 1) {
          pPVar7 = &sParse;
          for (iVar4 = 0x46; iVar4 != 0; iVar4 = iVar4 + -1) {
            pPVar7->db = (sqlite3 *)0x0;
            pPVar7 = (Parse *)((int)pPVar7 + (uint)bVar8 * -8 + 4);
          }
          sParse.db = pDb;
          if (pDb->aDb[1].pBt == (Btree *)0x0) {
            iVar4 = sqlite3BtreeOpen(pDb->pVfs,(char *)0x0,pDb,&local_13c,0,0x21e);
            if (iVar4 == 0) {
              pDb->aDb[1].pBt = local_13c;
              iVar4 = sqlite3BtreeSetPageSize(local_13c,pDb->nextPagesize,0,0);
              if (iVar4 != 7) {
                if (sParse.zErrMsg != (char *)0x0) {
                  sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg);
                }
                goto LAB_0008779f;
              }
              uVar2._0_1_ = pDb->temp_store;
              uVar2._1_1_ = pDb->mallocFailed;
              uVar2._2_1_ = pDb->bBenignMalloc;
              uVar2._3_1_ = pDb->dfltLockMode;
              if ((uVar2 & 0xffff00) == 0) {
                sqlite3OomFault(pDb);
              }
            }
            else {
              sqlite3ErrorMsg(&sParse,
                              "unable to open a temporary database file for storing temporary tables"
                             );
              sParse.rc = iVar4;
            }
            sqlite3ErrorWithMsg(pErrorDb,sParse.rc,"%s",sParse.zErrMsg);
            pBVar6 = (Btree *)0x0;
            if (sParse.zErrMsg == (char *)0x0) {
              sqlite3ParserReset(&sParse);
            }
            else {
              sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg);
              sqlite3ParserReset(&sParse);
            }
            goto LAB_0008771e;
          }
LAB_0008779f:
          sqlite3ParserReset(&sParse);
          iVar3 = 0x10;
        }
        goto LAB_00087713;
      }
      if (iVar4 != 0) {
        iVar4 = iVar4 + -1;
        pDVar5 = pDVar5 + -1;
        if (iVar4 == -1) goto LAB_00087760;
        goto LAB_000876f7;
      }
      iVar4 = sqlite3_stricmp("main",zDb);
      if (iVar4 != 0) goto LAB_00087760;
      iVar3 = 0;
LAB_00087713:
      pBVar6 = *(Btree **)((int)&pDb->aDb->pBt + iVar3);
      goto LAB_0008771e;
    }
  }
LAB_00087760:
  pBVar6 = (Btree *)0x0;
  sqlite3ErrorWithMsg(pErrorDb,1,"unknown database %s",zDb);
LAB_0008771e:
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return pBVar6;
}



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

undefined4 __regparm3 FUN_00087690(undefined4 param_1,int param_2,int param_3)

{
  int iVar1;
  undefined4 *puVar2;
  int iVar3;
  undefined4 uVar4;
  int *piVar5;
  int in_GS_OFFSET;
  byte bVar6;
  undefined4 local_13c;
  int local_138;
  int local_134;
  int local_12c;
  int local_20;
  undefined4 uStack_14;
  
  bVar6 = 0;
  uStack_14 = 0x8769b;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_3 != 0) {
    iVar3 = *(int *)(param_2 + 0x14) + -1;
    puVar2 = (undefined4 *)(iVar3 * 0x10 + *(int *)(param_2 + 0x10));
    if (-1 < iVar3) {
LAB_000876f7:
      iVar1 = sqlite3_stricmp(*puVar2,param_3);
      if (iVar1 == 0) {
        iVar1 = iVar3 << 4;
        if (iVar3 == 1) {
          piVar5 = &local_138;
          for (iVar3 = 0x46; iVar3 != 0; iVar3 = iVar3 + -1) {
            *piVar5 = 0;
            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;
          }
          local_138 = param_2;
          if (*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0) {
            iVar3 = FUN_00086310(&local_13c,0,0x21e);
            if (iVar3 == 0) {
              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;
              iVar3 = FUN_0004ad20(0);
              if (iVar3 != 7) {
                if (local_134 != 0) {
                  FUN_00023410();
                }
                goto LAB_0008779f;
              }
              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {
                FUN_000265f0();
              }
            }
            else {
              FUN_0003d470(&local_138,
                           "unable to open a temporary database file for storing temporary tables");
              local_12c = iVar3;
            }
            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);
            uVar4 = 0;
            if (local_134 == 0) {
              FUN_00054190();
            }
            else {
              FUN_00023410();
              FUN_00054190();
            }
            goto LAB_0008771e;
          }
LAB_0008779f:
          FUN_00054190();
          iVar1 = 0x10;
        }
        goto LAB_00087713;
      }
      if (iVar3 != 0) {
        iVar3 = iVar3 + -1;
        puVar2 = puVar2 + -4;
        if (iVar3 == -1) goto LAB_00087760;
        goto LAB_000876f7;
      }
      iVar3 = sqlite3_stricmp(&DAT_000d1493,param_3);
      if (iVar3 != 0) goto LAB_00087760;
      iVar1 = 0;
LAB_00087713:
      uVar4 = *(undefined4 *)(*(int *)(param_2 + 0x10) + 4 + iVar1);
      goto LAB_0008771e;
    }
  }
LAB_00087760:
  uVar4 = 0;
  FUN_00050420(param_1,1,"unknown database %s",param_3);
LAB_0008771e:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_000d1450();
  }
  return uVar4;
}


PUSH EBP
PUSH EDI
MOV EDI,ECX
PUSH ESI
PUSH EBX
CALL 0x0001ddf0
ADD EBX,0x7e965
SUB ESP,0x13c
MOV dword ptr [ESP + 0xc],EAX
MOV dword ptr [ESP + 0x4],EDX
MOV EAX,EDX
MOV EDX,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x12c],EDX
XOR EDX,EDX
TEST ECX,ECX
JZ 0x00087760
MOV EDX,dword ptr [EAX + 0x14]
LEA EBP,[EDX + -0x1]
MOV dword ptr [ESP + 0x8],EDX
MOV ECX,EBP
SHL ECX,0x4
ADD ECX,dword ptr [EAX + 0x10]
TEST EBP,EBP
MOV ESI,ECX
JNS 0x000876f7
JMP 0x00087760
TEST EBP,EBP
JZ 0x0008773f
SUB EBP,0x1
SUB ESI,0x10
CMP EBP,-0x1
JZ 0x00087760
SUB ESP,0x8
PUSH EDI
PUSH dword ptr [ESI]
CALL 0x00016960
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x000876e8
MOV ECX,EBP
SHL ECX,0x4
CMP EBP,0x1
JZ 0x00087780
MOV EAX,dword ptr [ESP + 0x4]
MOV EAX,dword ptr [EAX + 0x10]
MOV EDI,dword ptr [EAX + ECX*0x1 + 0x4]
MOV EDX,dword ptr [ESP + 0x12c]
XOR EDX,dword ptr GS:[0x14]
MOV EAX,EDI
JNZ 0x00087897
ADD ESP,0x13c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[EBX + 0xfffcb493]
SUB ESP,0x8
PUSH EDI
PUSH EAX
CALL 0x00016960
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0008782c
LEA ESI,[ESI]
LEA EAX,[EBX + 0xfffcbf42]
PUSH EDI
XOR EDI,EDI
PUSH EAX
PUSH 0x1
PUSH dword ptr [ESP + 0x18]
CALL 0x00050420
ADD ESP,0x10
JMP 0x0008771e
LEA EDI,[ESP + 0x14]
MOV ECX,0x46
MOV ESI,EDI
STOSD.REP ES:EDI
MOV EAX,dword ptr [ESP + 0x4]
MOV dword ptr [ESP + 0x14],EAX
MOV EAX,dword ptr [EAX + 0x10]
MOV EDI,dword ptr [EAX + 0x14]
TEST EDI,EDI
JZ 0x000877b0
MOV EAX,ESI
CALL 0x00054190
MOV ECX,0x10
JMP 0x00087713
SUB ESP,0x4
XOR EDX,EDX
PUSH 0x21e
PUSH 0x0
LEA EAX,[ESP + 0x1c]
PUSH EAX
MOV EAX,dword ptr [ESP + 0x14]
MOV ECX,EAX
MOV EAX,dword ptr [EAX]
CALL 0x00086310
ADD ESP,0x10
TEST EAX,EAX
MOV dword ptr [ESP + 0x8],EAX
JZ 0x00087833
LEA EDX,[EBX + 0xfffce8a8]
SUB ESP,0x8
PUSH EDX
PUSH ESI
CALL 0x0003d470
MOV EAX,dword ptr [ESP + 0x18]
MOV dword ptr [ESP + 0x30],EAX
ADD ESP,0x10
LEA EDX,[EBX + 0xfffcb760]
PUSH dword ptr [ESP + 0x18]
PUSH EDX
PUSH EAX
MOV EBX,dword ptr [ESP + 0x18]
PUSH EBX
CALL 0x00050420
MOV EDX,dword ptr [ESP + 0x28]
ADD ESP,0x10
TEST EDX,EDX
JZ 0x0008789c
MOV EAX,EBX
CALL 0x00023410
MOV EAX,ESI
CALL 0x00054190
JMP 0x0008771e
XOR ECX,ECX
JMP 0x00087713
MOV ECX,dword ptr [ESP + 0x4]
MOV EAX,dword ptr [ESP + 0x10]
SUB ESP,0xc
MOV EDX,dword ptr [ECX + 0x10]
MOV dword ptr [EDX + 0x14],EAX
MOV EDX,dword ptr [ECX + 0x58]
XOR ECX,ECX
PUSH 0x0
CALL 0x0004ad20
ADD ESP,0x10
CMP EAX,0x7
JZ 0x00087872
MOV EDX,dword ptr [ESP + 0x18]
TEST EDX,EDX
JZ 0x0008779f
MOV EAX,dword ptr [ESP + 0xc]
CALL 0x00023410
JMP 0x0008779f
MOV EDX,dword ptr [ESP + 0x4]
MOV EAX,dword ptr [ESP + 0x20]
TEST dword ptr [EDX + 0x4c],0xffff00
JNZ 0x000877f4
MOV EAX,EDX
CALL 0x000265f0
MOV EAX,dword ptr [ESP + 0x20]
JMP 0x000877f4
CALL 0x000d1450
MOV EAX,ESI
CALL 0x00054190
JMP 0x0008771e
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3 FUN_00087690(undefined4 param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int in_GS_OFFSET;\n  byte bVar6;\n  undefined4 local_13c;\n  int local_138;\n  int local_134;\n  int local_12c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar6 = 0;\n  uStack_14 = 0x8769b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_3 != 0) {\n    iVar3 = *(int *)(param_2 + 0x14) + -1;\n    puVar2 = (undefined4 *)(iVar3 * 0x10 + *(int *)(param_2 + 0x10));\n    if (-1 < iVar3) {\nLAB_000876f7:\n      iVar1 = sqlite3_stricmp(*puVar2,param_3);\n      if (iVar1 == 0) {\n        iVar1 = iVar3 << 4;\n        if (iVar3 == 1) {\n          piVar5 = &local_138;\n          for (iVar3 = 0x46; iVar3 != 0; iVar3 = iVar3 + -1) {\n            *piVar5 = 0;\n            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;\n          }\n          local_138 = param_2;\n          if (*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0) {\n            iVar3 = FUN_00086310(&local_13c,0,0x21e);\n            if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }\n            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);\n            uVar4 = 0;\n            if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          FUN_00054190();\n          iVar1 = 0x10;\n        }\n        goto LAB_00087713;\n      }\n      if (iVar3 != 0) {\n        iVar3 = iVar3 + -1;\n        puVar2 = puVar2 + -4;\n        if (iVar3 == -1) goto LAB_00087760;\n        goto LAB_000876f7;\n      }\n      iVar3 = sqlite3_stricmp(&DAT_000d1493,param_3);\n      if (iVar3 != 0) goto LAB_00087760;\n      iVar1 = 0;\nLAB_00087713:\n      uVar4 = *(undefined4 *)(*(int *)(param_2 + 0x10) + 4 + iVar1);\n      goto LAB_0008771e;\n    }\n  }\nLAB_00087760:\n  uVar4 = 0;\n  FUN_00050420(param_1,1,"unknown database %s",param_3);\nLAB_0008771e:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000d1450();\n  }\n  return uVar4;\n}\n\n" comment (function_definition "undefined4 __regparm3 FUN_00087690(undefined4 param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int in_GS_OFFSET;\n  byte bVar6;\n  undefined4 local_13c;\n  int local_138;\n  int local_134;\n  int local_12c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar6 = 0;\n  uStack_14 = 0x8769b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_3 != 0) {\n    iVar3 = *(int *)(param_2 + 0x14) + -1;\n    puVar2 = (undefined4 *)(iVar3 * 0x10 + *(int *)(param_2 + 0x10));\n    if (-1 < iVar3) {\nLAB_000876f7:\n      iVar1 = sqlite3_stricmp(*puVar2,param_3);\n      if (iVar1 == 0) {\n        iVar1 = iVar3 << 4;\n        if (iVar3 == 1) {\n          piVar5 = &local_138;\n          for (iVar3 = 0x46; iVar3 != 0; iVar3 = iVar3 + -1) {\n            *piVar5 = 0;\n            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;\n          }\n          local_138 = param_2;\n          if (*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0) {\n            iVar3 = FUN_00086310(&local_13c,0,0x21e);\n            if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }\n            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);\n            uVar4 = 0;\n            if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          FUN_00054190();\n          iVar1 = 0x10;\n        }\n        goto LAB_00087713;\n      }\n      if (iVar3 != 0) {\n        iVar3 = iVar3 + -1;\n        puVar2 = puVar2 + -4;\n        if (iVar3 == -1) goto LAB_00087760;\n        goto LAB_000876f7;\n      }\n      iVar3 = sqlite3_stricmp(&DAT_000d1493,param_3);\n      if (iVar3 != 0) goto LAB_00087760;\n      iVar1 = 0;\nLAB_00087713:\n      uVar4 = *(undefined4 *)(*(int *)(param_2 + 0x10) + 4 + iVar1);\n      goto LAB_0008771e;\n    }\n  }\nLAB_00087760:\n  uVar4 = 0;\n  FUN_00050420(param_1,1,"unknown database %s",param_3);\nLAB_0008771e:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000d1450();\n  }\n  return uVar4;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00087690(undefined4 param_1,int param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int in_GS_OFFSET;\n  byte bVar6;\n  undefined4 local_13c;\n  int local_138;\n  int local_134;\n  int local_12c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar6 = 0;\n  uStack_14 = 0x8769b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_3 != 0) {\n    iVar3 = *(int *)(param_2 + 0x14) + -1;\n    puVar2 = (undefined4 *)(iVar3 * 0x10 + *(int *)(param_2 + 0x10));\n    if (-1 < iVar3) {\nLAB_000876f7:\n      iVar1 = sqlite3_stricmp(*puVar2,param_3);\n      if (iVar1 == 0) {\n        iVar1 = iVar3 << 4;\n        if (iVar3 == 1) {\n          piVar5 = &local_138;\n          for (iVar3 = 0x46; iVar3 != 0; iVar3 = iVar3 + -1) {\n            *piVar5 = 0;\n            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;\n          }\n          local_138 = param_2;\n          if (*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0) {\n            iVar3 = FUN_00086310(&local_13c,0,0x21e);\n            if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }\n            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);\n            uVar4 = 0;\n            if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          FUN_00054190();\n          iVar1 = 0x10;\n        }\n        goto LAB_00087713;\n      }\n      if (iVar3 != 0) {\n        iVar3 = iVar3 + -1;\n        puVar2 = puVar2 + -4;\n        if (iVar3 == -1) goto LAB_00087760;\n        goto LAB_000876f7;\n      }\n      iVar3 = sqlite3_stricmp(&DAT_000d1493,param_3);\n      if (iVar3 != 0) goto LAB_00087760;\n      iVar1 = 0;\nLAB_00087713:\n      uVar4 = *(undefined4 *)(*(int *)(param_2 + 0x10) + 4 + iVar1);\n      goto LAB_0008771e;\n    }\n  }\nLAB_00087760:\n  uVar4 = 0;\n  FUN_00050420(param_1,1,"unknown database %s",param_3);\nLAB_0008771e:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000d1450();\n  }\n  return uVar4;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar6;" type_identifier identifier ;) (declaration "undefined4 local_13c;" type_identifier identifier ;) (declaration "int local_138;" primitive_type identifier ;) (declaration "int local_134;" primitive_type identifier ;) (declaration "int local_12c;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 0x8769b;" (assignment_expression "uStack_14 = 0x8769b" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_3 != 0) {\n    iVar3 = *(int *)(param_2 + 0x14) + -1;\n    puVar2 = (undefined4 *)(iVar3 * 0x10 + *(int *)(param_2 + 0x10));\n    if (-1 < iVar3) {\nLAB_000876f7:\n      iVar1 = sqlite3_stricmp(*puVar2,param_3);\n      if (iVar1 == 0) {\n        iVar1 = iVar3 << 4;\n        if (iVar3 == 1) {\n          piVar5 = &local_138;\n          for (iVar3 = 0x46; iVar3 != 0; iVar3 = iVar3 + -1) {\n            *piVar5 = 0;\n            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;\n          }\n          local_138 = param_2;\n          if (*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0) {\n            iVar3 = FUN_00086310(&local_13c,0,0x21e);\n            if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }\n            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);\n            uVar4 = 0;\n            if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          FUN_00054190();\n          iVar1 = 0x10;\n        }\n        goto LAB_00087713;\n      }\n      if (iVar3 != 0) {\n        iVar3 = iVar3 + -1;\n        puVar2 = puVar2 + -4;\n        if (iVar3 == -1) goto LAB_00087760;\n        goto LAB_000876f7;\n      }\n      iVar3 = sqlite3_stricmp(&DAT_000d1493,param_3);\n      if (iVar3 != 0) goto LAB_00087760;\n      iVar1 = 0;\nLAB_00087713:\n      uVar4 = *(undefined4 *)(*(int *)(param_2 + 0x10) + 4 + iVar1);\n      goto LAB_0008771e;\n    }\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = *(int *)(param_2 + 0x14) + -1;\n    puVar2 = (undefined4 *)(iVar3 * 0x10 + *(int *)(param_2 + 0x10));\n    if (-1 < iVar3) {\nLAB_000876f7:\n      iVar1 = sqlite3_stricmp(*puVar2,param_3);\n      if (iVar1 == 0) {\n        iVar1 = iVar3 << 4;\n        if (iVar3 == 1) {\n          piVar5 = &local_138;\n          for (iVar3 = 0x46; iVar3 != 0; iVar3 = iVar3 + -1) {\n            *piVar5 = 0;\n            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;\n          }\n          local_138 = param_2;\n          if (*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0) {\n            iVar3 = FUN_00086310(&local_13c,0,0x21e);\n            if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }\n            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);\n            uVar4 = 0;\n            if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          FUN_00054190();\n          iVar1 = 0x10;\n        }\n        goto LAB_00087713;\n      }\n      if (iVar3 != 0) {\n        iVar3 = iVar3 + -1;\n        puVar2 = puVar2 + -4;\n        if (iVar3 == -1) goto LAB_00087760;\n        goto LAB_000876f7;\n      }\n      iVar3 = sqlite3_stricmp(&DAT_000d1493,param_3);\n      if (iVar3 != 0) goto LAB_00087760;\n      iVar1 = 0;\nLAB_00087713:\n      uVar4 = *(undefined4 *)(*(int *)(param_2 + 0x10) + 4 + iVar1);\n      goto LAB_0008771e;\n    }\n  }" { (expression_statement "iVar3 = *(int *)(param_2 + 0x14) + -1;" (assignment_expression "iVar3 = *(int *)(param_2 + 0x14) + -1" identifier = (binary_expression "*(int *)(param_2 + 0x14) + -1" (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "puVar2 = (undefined4 *)(iVar3 * 0x10 + *(int *)(param_2 + 0x10));" (assignment_expression "puVar2 = (undefined4 *)(iVar3 * 0x10 + *(int *)(param_2 + 0x10))" identifier = (cast_expression "(undefined4 *)(iVar3 * 0x10 + *(int *)(param_2 + 0x10))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 * 0x10 + *(int *)(param_2 + 0x10))" ( (binary_expression "iVar3 * 0x10 + *(int *)(param_2 + 0x10)" (binary_expression "iVar3 * 0x10" identifier * number_literal) + (pointer_expression "*(int *)(param_2 + 0x10)" * (cast_expression "(int *)(param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) ))))) )))) ;) (if_statement "if (-1 < iVar3) {\nLAB_000876f7:\n      iVar1 = sqlite3_stricmp(*puVar2,param_3);\n      if (iVar1 == 0) {\n        iVar1 = iVar3 << 4;\n        if (iVar3 == 1) {\n          piVar5 = &local_138;\n          for (iVar3 = 0x46; iVar3 != 0; iVar3 = iVar3 + -1) {\n            *piVar5 = 0;\n            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;\n          }\n          local_138 = param_2;\n          if (*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0) {\n            iVar3 = FUN_00086310(&local_13c,0,0x21e);\n            if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }\n            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);\n            uVar4 = 0;\n            if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          FUN_00054190();\n          iVar1 = 0x10;\n        }\n        goto LAB_00087713;\n      }\n      if (iVar3 != 0) {\n        iVar3 = iVar3 + -1;\n        puVar2 = puVar2 + -4;\n        if (iVar3 == -1) goto LAB_00087760;\n        goto LAB_000876f7;\n      }\n      iVar3 = sqlite3_stricmp(&DAT_000d1493,param_3);\n      if (iVar3 != 0) goto LAB_00087760;\n      iVar1 = 0;\nLAB_00087713:\n      uVar4 = *(undefined4 *)(*(int *)(param_2 + 0x10) + 4 + iVar1);\n      goto LAB_0008771e;\n    }" if (parenthesized_expression "(-1 < iVar3)" ( (binary_expression "-1 < iVar3" number_literal < identifier) )) (compound_statement "{\nLAB_000876f7:\n      iVar1 = sqlite3_stricmp(*puVar2,param_3);\n      if (iVar1 == 0) {\n        iVar1 = iVar3 << 4;\n        if (iVar3 == 1) {\n          piVar5 = &local_138;\n          for (iVar3 = 0x46; iVar3 != 0; iVar3 = iVar3 + -1) {\n            *piVar5 = 0;\n            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;\n          }\n          local_138 = param_2;\n          if (*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0) {\n            iVar3 = FUN_00086310(&local_13c,0,0x21e);\n            if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }\n            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);\n            uVar4 = 0;\n            if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          FUN_00054190();\n          iVar1 = 0x10;\n        }\n        goto LAB_00087713;\n      }\n      if (iVar3 != 0) {\n        iVar3 = iVar3 + -1;\n        puVar2 = puVar2 + -4;\n        if (iVar3 == -1) goto LAB_00087760;\n        goto LAB_000876f7;\n      }\n      iVar3 = sqlite3_stricmp(&DAT_000d1493,param_3);\n      if (iVar3 != 0) goto LAB_00087760;\n      iVar1 = 0;\nLAB_00087713:\n      uVar4 = *(undefined4 *)(*(int *)(param_2 + 0x10) + 4 + iVar1);\n      goto LAB_0008771e;\n    }" { (labeled_statement "LAB_000876f7:\n      iVar1 = sqlite3_stricmp(*puVar2,param_3);" statement_identifier : (expression_statement "iVar1 = sqlite3_stricmp(*puVar2,param_3);" (assignment_expression "iVar1 = sqlite3_stricmp(*puVar2,param_3)" identifier = (call_expression "sqlite3_stricmp(*puVar2,param_3)" identifier (argument_list "(*puVar2,param_3)" ( (pointer_expression "*puVar2" * identifier) , identifier )))) ;)) (if_statement "if (iVar1 == 0) {\n        iVar1 = iVar3 << 4;\n        if (iVar3 == 1) {\n          piVar5 = &local_138;\n          for (iVar3 = 0x46; iVar3 != 0; iVar3 = iVar3 + -1) {\n            *piVar5 = 0;\n            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;\n          }\n          local_138 = param_2;\n          if (*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0) {\n            iVar3 = FUN_00086310(&local_13c,0,0x21e);\n            if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }\n            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);\n            uVar4 = 0;\n            if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          FUN_00054190();\n          iVar1 = 0x10;\n        }\n        goto LAB_00087713;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar1 = iVar3 << 4;\n        if (iVar3 == 1) {\n          piVar5 = &local_138;\n          for (iVar3 = 0x46; iVar3 != 0; iVar3 = iVar3 + -1) {\n            *piVar5 = 0;\n            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;\n          }\n          local_138 = param_2;\n          if (*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0) {\n            iVar3 = FUN_00086310(&local_13c,0,0x21e);\n            if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }\n            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);\n            uVar4 = 0;\n            if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          FUN_00054190();\n          iVar1 = 0x10;\n        }\n        goto LAB_00087713;\n      }" { (expression_statement "iVar1 = iVar3 << 4;" (assignment_expression "iVar1 = iVar3 << 4" identifier = (binary_expression "iVar3 << 4" identifier << number_literal)) ;) (if_statement "if (iVar3 == 1) {\n          piVar5 = &local_138;\n          for (iVar3 = 0x46; iVar3 != 0; iVar3 = iVar3 + -1) {\n            *piVar5 = 0;\n            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;\n          }\n          local_138 = param_2;\n          if (*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0) {\n            iVar3 = FUN_00086310(&local_13c,0,0x21e);\n            if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }\n            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);\n            uVar4 = 0;\n            if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          FUN_00054190();\n          iVar1 = 0x10;\n        }" if (parenthesized_expression "(iVar3 == 1)" ( (binary_expression "iVar3 == 1" identifier == number_literal) )) (compound_statement "{\n          piVar5 = &local_138;\n          for (iVar3 = 0x46; iVar3 != 0; iVar3 = iVar3 + -1) {\n            *piVar5 = 0;\n            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;\n          }\n          local_138 = param_2;\n          if (*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0) {\n            iVar3 = FUN_00086310(&local_13c,0,0x21e);\n            if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }\n            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);\n            uVar4 = 0;\n            if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          FUN_00054190();\n          iVar1 = 0x10;\n        }" { (expression_statement "piVar5 = &local_138;" (assignment_expression "piVar5 = &local_138" identifier = (pointer_expression "&local_138" & identifier)) ;) (for_statement "for (iVar3 = 0x46; iVar3 != 0; iVar3 = iVar3 + -1) {\n            *piVar5 = 0;\n            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;\n          }" for ( (assignment_expression "iVar3 = 0x46" identifier = number_literal) ; (binary_expression "iVar3 != 0" identifier != number_literal) ; (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ) (compound_statement "{\n            *piVar5 = 0;\n            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;\n          }" { (expression_statement "*piVar5 = 0;" (assignment_expression "*piVar5 = 0" (pointer_expression "*piVar5" * identifier) = number_literal) ;) (expression_statement "piVar5 = piVar5 + (uint)bVar6 * -2 + 1;" (assignment_expression "piVar5 = piVar5 + (uint)bVar6 * -2 + 1" identifier = (binary_expression "piVar5 + (uint)bVar6 * -2 + 1" (binary_expression "piVar5 + (uint)bVar6 * -2" identifier + (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "local_138 = param_2;" (assignment_expression "local_138 = param_2" identifier = identifier) ;) (if_statement "if (*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0) {\n            iVar3 = FUN_00086310(&local_13c,0,0x21e);\n            if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }\n            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);\n            uVar4 = 0;\n            if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }\n            goto LAB_0008771e;\n          }" if (parenthesized_expression "(*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0)" ( (binary_expression "*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0" (pointer_expression "*(int *)(*(int *)(param_2 + 0x10) + 0x14)" * (cast_expression "(int *)(*(int *)(param_2 + 0x10) + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 0x10) + 0x14)" ( (binary_expression "*(int *)(param_2 + 0x10) + 0x14" (pointer_expression "*(int *)(param_2 + 0x10)" * (cast_expression "(int *)(param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) + number_literal) )))) == number_literal) )) (compound_statement "{\n            iVar3 = FUN_00086310(&local_13c,0,0x21e);\n            if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }\n            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);\n            uVar4 = 0;\n            if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }\n            goto LAB_0008771e;\n          }" { (expression_statement "iVar3 = FUN_00086310(&local_13c,0,0x21e);" (assignment_expression "iVar3 = FUN_00086310(&local_13c,0,0x21e)" identifier = (call_expression "FUN_00086310(&local_13c,0,0x21e)" identifier (argument_list "(&local_13c,0,0x21e)" ( (pointer_expression "&local_13c" & identifier) , number_literal , number_literal )))) ;) (if_statement "if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }" { (expression_statement "*(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;" (assignment_expression "*(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c" (pointer_expression "*(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14)" * (cast_expression "(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 0x10) + 0x14)" ( (binary_expression "*(int *)(param_2 + 0x10) + 0x14" (pointer_expression "*(int *)(param_2 + 0x10)" * (cast_expression "(int *)(param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) + number_literal) )))) = identifier) ;) (expression_statement "iVar3 = FUN_0004ad20(0);" (assignment_expression "iVar3 = FUN_0004ad20(0)" identifier = (call_expression "FUN_0004ad20(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (if_statement "if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }" if (parenthesized_expression "(iVar3 != 7)" ( (binary_expression "iVar3 != 7" identifier != number_literal) )) (compound_statement "{\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }" { (if_statement "if (local_134 != 0) {\n                  FUN_00023410();\n                }" if (parenthesized_expression "(local_134 != 0)" ( (binary_expression "local_134 != 0" identifier != number_literal) )) (compound_statement "{\n                  FUN_00023410();\n                }" { (expression_statement "FUN_00023410();" (call_expression "FUN_00023410()" identifier (argument_list "()" ( ))) ;) })) (goto_statement "goto LAB_0008779f;" goto statement_identifier ;) })) (if_statement "if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }" if (parenthesized_expression "((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0)" ( (binary_expression "(*(uint *)(param_2 + 0x4c) & 0xffff00) == 0" (parenthesized_expression "(*(uint *)(param_2 + 0x4c) & 0xffff00)" ( (binary_expression "*(uint *)(param_2 + 0x4c) & 0xffff00" (pointer_expression "*(uint *)(param_2 + 0x4c)" * (cast_expression "(uint *)(param_2 + 0x4c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x4c)" ( (binary_expression "param_2 + 0x4c" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n                FUN_000265f0();\n              }" { (expression_statement "FUN_000265f0();" (call_expression "FUN_000265f0()" identifier (argument_list "()" ( ))) ;) })) }) (else_clause "else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }" else (compound_statement "{\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }" { (expression_statement "FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");" (call_expression "FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables")" identifier (argument_list "(&local_138,\n                           "unable to open a temporary database file for storing temporary tables")" ( (pointer_expression "&local_138" & identifier) , (string_literal ""unable to open a temporary database file for storing temporary tables"" " string_content ") ))) ;) (expression_statement "local_12c = iVar3;" (assignment_expression "local_12c = iVar3" identifier = identifier) ;) }))) (expression_statement "FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);" (call_expression "FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134)" identifier (argument_list "(param_1,local_12c,&DAT_000d1760,local_134)" ( identifier , identifier , (pointer_expression "&DAT_000d1760" & identifier) , identifier ))) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (if_statement "if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }" if (parenthesized_expression "(local_134 == 0)" ( (binary_expression "local_134 == 0" identifier == number_literal) )) (compound_statement "{\n              FUN_00054190();\n            }" { (expression_statement "FUN_00054190();" (call_expression "FUN_00054190()" identifier (argument_list "()" ( ))) ;) }) (else_clause "else {\n              FUN_00023410();\n              FUN_00054190();\n            }" else (compound_statement "{\n              FUN_00023410();\n              FUN_00054190();\n            }" { (expression_statement "FUN_00023410();" (call_expression "FUN_00023410()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00054190();" (call_expression "FUN_00054190()" identifier (argument_list "()" ( ))) ;) }))) (goto_statement "goto LAB_0008771e;" goto statement_identifier ;) })) (labeled_statement "LAB_0008779f:\n          FUN_00054190();" statement_identifier : (expression_statement "FUN_00054190();" (call_expression "FUN_00054190()" identifier (argument_list "()" ( ))) ;)) (expression_statement "iVar1 = 0x10;" (assignment_expression "iVar1 = 0x10" identifier = number_literal) ;) })) (goto_statement "goto LAB_00087713;" goto statement_identifier ;) })) (if_statement "if (iVar3 != 0) {\n        iVar3 = iVar3 + -1;\n        puVar2 = puVar2 + -4;\n        if (iVar3 == -1) goto LAB_00087760;\n        goto LAB_000876f7;\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar3 = iVar3 + -1;\n        puVar2 = puVar2 + -4;\n        if (iVar3 == -1) goto LAB_00087760;\n        goto LAB_000876f7;\n      }" { (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (expression_statement "puVar2 = puVar2 + -4;" (assignment_expression "puVar2 = puVar2 + -4" identifier = (binary_expression "puVar2 + -4" identifier + number_literal)) ;) (if_statement "if (iVar3 == -1) goto LAB_00087760;" if (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00087760;" goto statement_identifier ;)) (goto_statement "goto LAB_000876f7;" goto statement_identifier ;) })) (expression_statement "iVar3 = sqlite3_stricmp(&DAT_000d1493,param_3);" (assignment_expression "iVar3 = sqlite3_stricmp(&DAT_000d1493,param_3)" identifier = (call_expression "sqlite3_stricmp(&DAT_000d1493,param_3)" identifier (argument_list "(&DAT_000d1493,param_3)" ( (pointer_expression "&DAT_000d1493" & identifier) , identifier )))) ;) (if_statement "if (iVar3 != 0) goto LAB_00087760;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00087760;" goto statement_identifier ;)) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00087713:\n      uVar4 = *(undefined4 *)(*(int *)(param_2 + 0x10) + 4 + iVar1);" statement_identifier : (expression_statement "uVar4 = *(undefined4 *)(*(int *)(param_2 + 0x10) + 4 + iVar1);" (assignment_expression "uVar4 = *(undefined4 *)(*(int *)(param_2 + 0x10) + 4 + iVar1)" identifier = (pointer_expression "*(undefined4 *)(*(int *)(param_2 + 0x10) + 4 + iVar1)" * (cast_expression "(undefined4 *)(*(int *)(param_2 + 0x10) + 4 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 0x10) + 4 + iVar1)" ( (binary_expression "*(int *)(param_2 + 0x10) + 4 + iVar1" (binary_expression "*(int *)(param_2 + 0x10) + 4" (pointer_expression "*(int *)(param_2 + 0x10)" * (cast_expression "(int *)(param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) + number_literal) + identifier) ))))) ;)) (goto_statement "goto LAB_0008771e;" goto statement_identifier ;) })) })) (labeled_statement "LAB_00087760:\n  uVar4 = 0;" statement_identifier : (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;)) (expression_statement "FUN_00050420(param_1,1,"unknown database %s",param_3);" (call_expression "FUN_00050420(param_1,1,"unknown database %s",param_3)" identifier (argument_list "(param_1,1,"unknown database %s",param_3)" ( identifier , number_literal , (string_literal ""unknown database %s"" " string_content ") , identifier ))) ;) (labeled_statement "LAB_0008771e:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000d1450();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000d1450();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_000d1450();\n  }" { comment (expression_statement "FUN_000d1450();" (call_expression "FUN_000d1450()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return uVar4;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nBtree * __regparm3 findBtree(sqlite3 *pErrorDb,sqlite3 *pDb,char *zDb)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  Db *pDVar5;\n  Btree *pBVar6;\n  Parse *pPVar7;\n  int in_GS_OFFSET;\n  byte bVar8;\n  Btree *local_13c;\n  Parse sParse;\n  \n  bVar8 = 0;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (zDb != (char *)0x0) {\n    iVar4 = pDb->nDb + -1;\n    pDVar5 = pDb->aDb + iVar4;\n    if (-1 < iVar4) {\nLAB_000876f7:\n      iVar3 = sqlite3_stricmp(pDVar5->zDbSName,zDb);\n      if (iVar3 == 0) {\n        iVar3 = iVar4 << 4;\n        if (iVar4 == 1) {\n          pPVar7 = &sParse;\n          for (iVar4 = 0x46; iVar4 != 0; iVar4 = iVar4 + -1) {\n            pPVar7->db = (sqlite3 *)0x0;\n            pPVar7 = (Parse *)((int)pPVar7 + (uint)bVar8 * -8 + 4);\n          }\n          sParse.db = pDb;\n          if (pDb->aDb[1].pBt == (Btree *)0x0) {\n            iVar4 = sqlite3BtreeOpen(pDb->pVfs,(char *)0x0,pDb,&local_13c,0,0x21e);\n            if (iVar4 == 0) {\n              pDb->aDb[1].pBt = local_13c;\n              iVar4 = sqlite3BtreeSetPageSize(local_13c,pDb->nextPagesize,0,0);\n              if (iVar4 != 7) {\n                if (sParse.zErrMsg != (char *)0x0) {\n                  sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg);\n                }\n                goto LAB_0008779f;\n              }\n              uVar2._0_1_ = pDb->temp_store;\n              uVar2._1_1_ = pDb->mallocFailed;\n              uVar2._2_1_ = pDb->bBenignMalloc;\n              uVar2._3_1_ = pDb->dfltLockMode;\n              if ((uVar2 & 0xffff00) == 0) {\n                sqlite3OomFault(pDb);\n              }\n            }\n            else {\n              sqlite3ErrorMsg(&sParse,\n                              "unable to open a temporary database file for storing temporary tables"\n                             );\n              sParse.rc = iVar4;\n            }\n            sqlite3ErrorWithMsg(pErrorDb,sParse.rc,"%s",sParse.zErrMsg);\n            pBVar6 = (Btree *)0x0;\n            if (sParse.zErrMsg == (char *)0x0) {\n              sqlite3ParserReset(&sParse);\n            }\n            else {\n              sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg);\n              sqlite3ParserReset(&sParse);\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          sqlite3ParserReset(&sParse);\n          iVar3 = 0x10;\n        }\n        goto LAB_00087713;\n      }\n      if (iVar4 != 0) {\n        iVar4 = iVar4 + -1;\n        pDVar5 = pDVar5 + -1;\n        if (iVar4 == -1) goto LAB_00087760;\n        goto LAB_000876f7;\n      }\n      iVar4 = sqlite3_stricmp("main",zDb);\n      if (iVar4 != 0) goto LAB_00087760;\n      iVar3 = 0;\nLAB_00087713:\n      pBVar6 = *(Btree **)((int)&pDb->aDb->pBt + iVar3);\n      goto LAB_0008771e;\n    }\n  }\nLAB_00087760:\n  pBVar6 = (Btree *)0x0;\n  sqlite3ErrorWithMsg(pErrorDb,1,"unknown database %s",zDb);\nLAB_0008771e:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return pBVar6;\n}\n\n" comment (ERROR "Btree * __regparm3 findBtree(sqlite3 *pErrorDb,sqlite3 *pDb,char *zDb)" (binary_expression "Btree * __regparm3 findBtree(sqlite3 *pErrorDb,sqlite3 *pDb,char *zDb)" identifier * (ERROR "__regparm3" identifier) (call_expression "findBtree(sqlite3 *pErrorDb,sqlite3 *pDb,char *zDb)" identifier (argument_list "(sqlite3 *pErrorDb,sqlite3 *pDb,char *zDb)" ( (binary_expression "sqlite3 *pErrorDb" identifier * identifier) , (binary_expression "sqlite3 *pDb" identifier * identifier) , (binary_expression "char *zDb" identifier * identifier) ))))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  Db *pDVar5;\n  Btree *pBVar6;\n  Parse *pPVar7;\n  int in_GS_OFFSET;\n  byte bVar8;\n  Btree *local_13c;\n  Parse sParse;\n  \n  bVar8 = 0;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (zDb != (char *)0x0) {\n    iVar4 = pDb->nDb + -1;\n    pDVar5 = pDb->aDb + iVar4;\n    if (-1 < iVar4) {\nLAB_000876f7:\n      iVar3 = sqlite3_stricmp(pDVar5->zDbSName,zDb);\n      if (iVar3 == 0) {\n        iVar3 = iVar4 << 4;\n        if (iVar4 == 1) {\n          pPVar7 = &sParse;\n          for (iVar4 = 0x46; iVar4 != 0; iVar4 = iVar4 + -1) {\n            pPVar7->db = (sqlite3 *)0x0;\n            pPVar7 = (Parse *)((int)pPVar7 + (uint)bVar8 * -8 + 4);\n          }\n          sParse.db = pDb;\n          if (pDb->aDb[1].pBt == (Btree *)0x0) {\n            iVar4 = sqlite3BtreeOpen(pDb->pVfs,(char *)0x0,pDb,&local_13c,0,0x21e);\n            if (iVar4 == 0) {\n              pDb->aDb[1].pBt = local_13c;\n              iVar4 = sqlite3BtreeSetPageSize(local_13c,pDb->nextPagesize,0,0);\n              if (iVar4 != 7) {\n                if (sParse.zErrMsg != (char *)0x0) {\n                  sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg);\n                }\n                goto LAB_0008779f;\n              }\n              uVar2._0_1_ = pDb->temp_store;\n              uVar2._1_1_ = pDb->mallocFailed;\n              uVar2._2_1_ = pDb->bBenignMalloc;\n              uVar2._3_1_ = pDb->dfltLockMode;\n              if ((uVar2 & 0xffff00) == 0) {\n                sqlite3OomFault(pDb);\n              }\n            }\n            else {\n              sqlite3ErrorMsg(&sParse,\n                              "unable to open a temporary database file for storing temporary tables"\n                             );\n              sParse.rc = iVar4;\n            }\n            sqlite3ErrorWithMsg(pErrorDb,sParse.rc,"%s",sParse.zErrMsg);\n            pBVar6 = (Btree *)0x0;\n            if (sParse.zErrMsg == (char *)0x0) {\n              sqlite3ParserReset(&sParse);\n            }\n            else {\n              sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg);\n              sqlite3ParserReset(&sParse);\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          sqlite3ParserReset(&sParse);\n          iVar3 = 0x10;\n        }\n        goto LAB_00087713;\n      }\n      if (iVar4 != 0) {\n        iVar4 = iVar4 + -1;\n        pDVar5 = pDVar5 + -1;\n        if (iVar4 == -1) goto LAB_00087760;\n        goto LAB_000876f7;\n      }\n      iVar4 = sqlite3_stricmp("main",zDb);\n      if (iVar4 != 0) goto LAB_00087760;\n      iVar3 = 0;\nLAB_00087713:\n      pBVar6 = *(Btree **)((int)&pDb->aDb->pBt + iVar3);\n      goto LAB_0008771e;\n    }\n  }\nLAB_00087760:\n  pBVar6 = (Btree *)0x0;\n  sqlite3ErrorWithMsg(pErrorDb,1,"unknown database %s",zDb);\nLAB_0008771e:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return pBVar6;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "Db *pDVar5;" type_identifier (pointer_declarator "*pDVar5" * identifier) ;) (declaration "Btree *pBVar6;" type_identifier (pointer_declarator "*pBVar6" * identifier) ;) (declaration "Parse *pPVar7;" type_identifier (pointer_declarator "*pPVar7" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar8;" type_identifier identifier ;) (declaration "Btree *local_13c;" type_identifier (pointer_declarator "*local_13c" * identifier) ;) (declaration "Parse sParse;" type_identifier identifier ;) (expression_statement "bVar8 = 0;" (assignment_expression "bVar8 = 0" identifier = number_literal) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (zDb != (char *)0x0) {\n    iVar4 = pDb->nDb + -1;\n    pDVar5 = pDb->aDb + iVar4;\n    if (-1 < iVar4) {\nLAB_000876f7:\n      iVar3 = sqlite3_stricmp(pDVar5->zDbSName,zDb);\n      if (iVar3 == 0) {\n        iVar3 = iVar4 << 4;\n        if (iVar4 == 1) {\n          pPVar7 = &sParse;\n          for (iVar4 = 0x46; iVar4 != 0; iVar4 = iVar4 + -1) {\n            pPVar7->db = (sqlite3 *)0x0;\n            pPVar7 = (Parse *)((int)pPVar7 + (uint)bVar8 * -8 + 4);\n          }\n          sParse.db = pDb;\n          if (pDb->aDb[1].pBt == (Btree *)0x0) {\n            iVar4 = sqlite3BtreeOpen(pDb->pVfs,(char *)0x0,pDb,&local_13c,0,0x21e);\n            if (iVar4 == 0) {\n              pDb->aDb[1].pBt = local_13c;\n              iVar4 = sqlite3BtreeSetPageSize(local_13c,pDb->nextPagesize,0,0);\n              if (iVar4 != 7) {\n                if (sParse.zErrMsg != (char *)0x0) {\n                  sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg);\n                }\n                goto LAB_0008779f;\n              }\n              uVar2._0_1_ = pDb->temp_store;\n              uVar2._1_1_ = pDb->mallocFailed;\n              uVar2._2_1_ = pDb->bBenignMalloc;\n              uVar2._3_1_ = pDb->dfltLockMode;\n              if ((uVar2 & 0xffff00) == 0) {\n                sqlite3OomFault(pDb);\n              }\n            }\n            else {\n              sqlite3ErrorMsg(&sParse,\n                              "unable to open a temporary database file for storing temporary tables"\n                             );\n              sParse.rc = iVar4;\n            }\n            sqlite3ErrorWithMsg(pErrorDb,sParse.rc,"%s",sParse.zErrMsg);\n            pBVar6 = (Btree *)0x0;\n            if (sParse.zErrMsg == (char *)0x0) {\n              sqlite3ParserReset(&sParse);\n            }\n            else {\n              sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg);\n              sqlite3ParserReset(&sParse);\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          sqlite3ParserReset(&sParse);\n          iVar3 = 0x10;\n        }\n        goto LAB_00087713;\n      }\n      if (iVar4 != 0) {\n        iVar4 = iVar4 + -1;\n        pDVar5 = pDVar5 + -1;\n        if (iVar4 == -1) goto LAB_00087760;\n        goto LAB_000876f7;\n      }\n      iVar4 = sqlite3_stricmp("main",zDb);\n      if (iVar4 != 0) goto LAB_00087760;\n      iVar3 = 0;\nLAB_00087713:\n      pBVar6 = *(Btree **)((int)&pDb->aDb->pBt + iVar3);\n      goto LAB_0008771e;\n    }\n  }" if (parenthesized_expression "(zDb != (char *)0x0)" ( (binary_expression "zDb != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar4 = pDb->nDb + -1;\n    pDVar5 = pDb->aDb + iVar4;\n    if (-1 < iVar4) {\nLAB_000876f7:\n      iVar3 = sqlite3_stricmp(pDVar5->zDbSName,zDb);\n      if (iVar3 == 0) {\n        iVar3 = iVar4 << 4;\n        if (iVar4 == 1) {\n          pPVar7 = &sParse;\n          for (iVar4 = 0x46; iVar4 != 0; iVar4 = iVar4 + -1) {\n            pPVar7->db = (sqlite3 *)0x0;\n            pPVar7 = (Parse *)((int)pPVar7 + (uint)bVar8 * -8 + 4);\n          }\n          sParse.db = pDb;\n          if (pDb->aDb[1].pBt == (Btree *)0x0) {\n            iVar4 = sqlite3BtreeOpen(pDb->pVfs,(char *)0x0,pDb,&local_13c,0,0x21e);\n            if (iVar4 == 0) {\n              pDb->aDb[1].pBt = local_13c;\n              iVar4 = sqlite3BtreeSetPageSize(local_13c,pDb->nextPagesize,0,0);\n              if (iVar4 != 7) {\n                if (sParse.zErrMsg != (char *)0x0) {\n                  sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg);\n                }\n                goto LAB_0008779f;\n              }\n              uVar2._0_1_ = pDb->temp_store;\n              uVar2._1_1_ = pDb->mallocFailed;\n              uVar2._2_1_ = pDb->bBenignMalloc;\n              uVar2._3_1_ = pDb->dfltLockMode;\n              if ((uVar2 & 0xffff00) == 0) {\n                sqlite3OomFault(pDb);\n              }\n            }\n            else {\n              sqlite3ErrorMsg(&sParse,\n                              "unable to open a temporary database file for storing temporary tables"\n                             );\n              sParse.rc = iVar4;\n            }\n            sqlite3ErrorWithMsg(pErrorDb,sParse.rc,"%s",sParse.zErrMsg);\n            pBVar6 = (Btree *)0x0;\n            if (sParse.zErrMsg == (char *)0x0) {\n              sqlite3ParserReset(&sParse);\n            }\n            else {\n              sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg);\n              sqlite3ParserReset(&sParse);\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          sqlite3ParserReset(&sParse);\n          iVar3 = 0x10;\n        }\n        goto LAB_00087713;\n      }\n      if (iVar4 != 0) {\n        iVar4 = iVar4 + -1;\n        pDVar5 = pDVar5 + -1;\n        if (iVar4 == -1) goto LAB_00087760;\n        goto LAB_000876f7;\n      }\n      iVar4 = sqlite3_stricmp("main",zDb);\n      if (iVar4 != 0) goto LAB_00087760;\n      iVar3 = 0;\nLAB_00087713:\n      pBVar6 = *(Btree **)((int)&pDb->aDb->pBt + iVar3);\n      goto LAB_0008771e;\n    }\n  }" { (expression_statement "iVar4 = pDb->nDb + -1;" (assignment_expression "iVar4 = pDb->nDb + -1" identifier = (binary_expression "pDb->nDb + -1" (field_expression "pDb->nDb" identifier -> field_identifier) + number_literal)) ;) (expression_statement "pDVar5 = pDb->aDb + iVar4;" (assignment_expression "pDVar5 = pDb->aDb + iVar4" identifier = (binary_expression "pDb->aDb + iVar4" (field_expression "pDb->aDb" identifier -> field_identifier) + identifier)) ;) (if_statement "if (-1 < iVar4) {\nLAB_000876f7:\n      iVar3 = sqlite3_stricmp(pDVar5->zDbSName,zDb);\n      if (iVar3 == 0) {\n        iVar3 = iVar4 << 4;\n        if (iVar4 == 1) {\n          pPVar7 = &sParse;\n          for (iVar4 = 0x46; iVar4 != 0; iVar4 = iVar4 + -1) {\n            pPVar7->db = (sqlite3 *)0x0;\n            pPVar7 = (Parse *)((int)pPVar7 + (uint)bVar8 * -8 + 4);\n          }\n          sParse.db = pDb;\n          if (pDb->aDb[1].pBt == (Btree *)0x0) {\n            iVar4 = sqlite3BtreeOpen(pDb->pVfs,(char *)0x0,pDb,&local_13c,0,0x21e);\n            if (iVar4 == 0) {\n              pDb->aDb[1].pBt = local_13c;\n              iVar4 = sqlite3BtreeSetPageSize(local_13c,pDb->nextPagesize,0,0);\n              if (iVar4 != 7) {\n                if (sParse.zErrMsg != (char *)0x0) {\n                  sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg);\n                }\n                goto LAB_0008779f;\n              }\n              uVar2._0_1_ = pDb->temp_store;\n              uVar2._1_1_ = pDb->mallocFailed;\n              uVar2._2_1_ = pDb->bBenignMalloc;\n              uVar2._3_1_ = pDb->dfltLockMode;\n              if ((uVar2 & 0xffff00) == 0) {\n                sqlite3OomFault(pDb);\n              }\n            }\n            else {\n              sqlite3ErrorMsg(&sParse,\n                              "unable to open a temporary database file for storing temporary tables"\n                             );\n              sParse.rc = iVar4;\n            }\n            sqlite3ErrorWithMsg(pErrorDb,sParse.rc,"%s",sParse.zErrMsg);\n            pBVar6 = (Btree *)0x0;\n            if (sParse.zErrMsg == (char *)0x0) {\n              sqlite3ParserReset(&sParse);\n            }\n            else {\n              sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg);\n              sqlite3ParserReset(&sParse);\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          sqlite3ParserReset(&sParse);\n          iVar3 = 0x10;\n        }\n        goto LAB_00087713;\n      }\n      if (iVar4 != 0) {\n        iVar4 = iVar4 + -1;\n        pDVar5 = pDVar5 + -1;\n        if (iVar4 == -1) goto LAB_00087760;\n        goto LAB_000876f7;\n      }\n      iVar4 = sqlite3_stricmp("main",zDb);\n      if (iVar4 != 0) goto LAB_00087760;\n      iVar3 = 0;\nLAB_00087713:\n      pBVar6 = *(Btree **)((int)&pDb->aDb->pBt + iVar3);\n      goto LAB_0008771e;\n    }" if (parenthesized_expression "(-1 < iVar4)" ( (binary_expression "-1 < iVar4" number_literal < identifier) )) (compound_statement "{\nLAB_000876f7:\n      iVar3 = sqlite3_stricmp(pDVar5->zDbSName,zDb);\n      if (iVar3 == 0) {\n        iVar3 = iVar4 << 4;\n        if (iVar4 == 1) {\n          pPVar7 = &sParse;\n          for (iVar4 = 0x46; iVar4 != 0; iVar4 = iVar4 + -1) {\n            pPVar7->db = (sqlite3 *)0x0;\n            pPVar7 = (Parse *)((int)pPVar7 + (uint)bVar8 * -8 + 4);\n          }\n          sParse.db = pDb;\n          if (pDb->aDb[1].pBt == (Btree *)0x0) {\n            iVar4 = sqlite3BtreeOpen(pDb->pVfs,(char *)0x0,pDb,&local_13c,0,0x21e);\n            if (iVar4 == 0) {\n              pDb->aDb[1].pBt = local_13c;\n              iVar4 = sqlite3BtreeSetPageSize(local_13c,pDb->nextPagesize,0,0);\n              if (iVar4 != 7) {\n                if (sParse.zErrMsg != (char *)0x0) {\n                  sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg);\n                }\n                goto LAB_0008779f;\n              }\n              uVar2._0_1_ = pDb->temp_store;\n              uVar2._1_1_ = pDb->mallocFailed;\n              uVar2._2_1_ = pDb->bBenignMalloc;\n              uVar2._3_1_ = pDb->dfltLockMode;\n              if ((uVar2 & 0xffff00) == 0) {\n                sqlite3OomFault(pDb);\n              }\n            }\n            else {\n              sqlite3ErrorMsg(&sParse,\n                              "unable to open a temporary database file for storing temporary tables"\n                             );\n              sParse.rc = iVar4;\n            }\n            sqlite3ErrorWithMsg(pErrorDb,sParse.rc,"%s",sParse.zErrMsg);\n            pBVar6 = (Btree *)0x0;\n            if (sParse.zErrMsg == (char *)0x0) {\n              sqlite3ParserReset(&sParse);\n            }\n            else {\n              sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg);\n              sqlite3ParserReset(&sParse);\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          sqlite3ParserReset(&sParse);\n          iVar3 = 0x10;\n        }\n        goto LAB_00087713;\n      }\n      if (iVar4 != 0) {\n        iVar4 = iVar4 + -1;\n        pDVar5 = pDVar5 + -1;\n        if (iVar4 == -1) goto LAB_00087760;\n        goto LAB_000876f7;\n      }\n      iVar4 = sqlite3_stricmp("main",zDb);\n      if (iVar4 != 0) goto LAB_00087760;\n      iVar3 = 0;\nLAB_00087713:\n      pBVar6 = *(Btree **)((int)&pDb->aDb->pBt + iVar3);\n      goto LAB_0008771e;\n    }" { (labeled_statement "LAB_000876f7:\n      iVar3 = sqlite3_stricmp(pDVar5->zDbSName,zDb);" statement_identifier : (expression_statement "iVar3 = sqlite3_stricmp(pDVar5->zDbSName,zDb);" (assignment_expression "iVar3 = sqlite3_stricmp(pDVar5->zDbSName,zDb)" identifier = (call_expression "sqlite3_stricmp(pDVar5->zDbSName,zDb)" identifier (argument_list "(pDVar5->zDbSName,zDb)" ( (field_expression "pDVar5->zDbSName" identifier -> field_identifier) , identifier )))) ;)) (if_statement "if (iVar3 == 0) {\n        iVar3 = iVar4 << 4;\n        if (iVar4 == 1) {\n          pPVar7 = &sParse;\n          for (iVar4 = 0x46; iVar4 != 0; iVar4 = iVar4 + -1) {\n            pPVar7->db = (sqlite3 *)0x0;\n            pPVar7 = (Parse *)((int)pPVar7 + (uint)bVar8 * -8 + 4);\n          }\n          sParse.db = pDb;\n          if (pDb->aDb[1].pBt == (Btree *)0x0) {\n            iVar4 = sqlite3BtreeOpen(pDb->pVfs,(char *)0x0,pDb,&local_13c,0,0x21e);\n            if (iVar4 == 0) {\n              pDb->aDb[1].pBt = local_13c;\n              iVar4 = sqlite3BtreeSetPageSize(local_13c,pDb->nextPagesize,0,0);\n              if (iVar4 != 7) {\n                if (sParse.zErrMsg != (char *)0x0) {\n                  sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg);\n                }\n                goto LAB_0008779f;\n              }\n              uVar2._0_1_ = pDb->temp_store;\n              uVar2._1_1_ = pDb->mallocFailed;\n              uVar2._2_1_ = pDb->bBenignMalloc;\n              uVar2._3_1_ = pDb->dfltLockMode;\n              if ((uVar2 & 0xffff00) == 0) {\n                sqlite3OomFault(pDb);\n              }\n            }\n            else {\n              sqlite3ErrorMsg(&sParse,\n                              "unable to open a temporary database file for storing temporary tables"\n                             );\n              sParse.rc = iVar4;\n            }\n            sqlite3ErrorWithMsg(pErrorDb,sParse.rc,"%s",sParse.zErrMsg);\n            pBVar6 = (Btree *)0x0;\n            if (sParse.zErrMsg == (char *)0x0) {\n              sqlite3ParserReset(&sParse);\n            }\n            else {\n              sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg);\n              sqlite3ParserReset(&sParse);\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          sqlite3ParserReset(&sParse);\n          iVar3 = 0x10;\n        }\n        goto LAB_00087713;\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar3 = iVar4 << 4;\n        if (iVar4 == 1) {\n          pPVar7 = &sParse;\n          for (iVar4 = 0x46; iVar4 != 0; iVar4 = iVar4 + -1) {\n            pPVar7->db = (sqlite3 *)0x0;\n            pPVar7 = (Parse *)((int)pPVar7 + (uint)bVar8 * -8 + 4);\n          }\n          sParse.db = pDb;\n          if (pDb->aDb[1].pBt == (Btree *)0x0) {\n            iVar4 = sqlite3BtreeOpen(pDb->pVfs,(char *)0x0,pDb,&local_13c,0,0x21e);\n            if (iVar4 == 0) {\n              pDb->aDb[1].pBt = local_13c;\n              iVar4 = sqlite3BtreeSetPageSize(local_13c,pDb->nextPagesize,0,0);\n              if (iVar4 != 7) {\n                if (sParse.zErrMsg != (char *)0x0) {\n                  sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg);\n                }\n                goto LAB_0008779f;\n              }\n              uVar2._0_1_ = pDb->temp_store;\n              uVar2._1_1_ = pDb->mallocFailed;\n              uVar2._2_1_ = pDb->bBenignMalloc;\n              uVar2._3_1_ = pDb->dfltLockMode;\n              if ((uVar2 & 0xffff00) == 0) {\n                sqlite3OomFault(pDb);\n              }\n            }\n            else {\n              sqlite3ErrorMsg(&sParse,\n                              "unable to open a temporary database file for storing temporary tables"\n                             );\n              sParse.rc = iVar4;\n            }\n            sqlite3ErrorWithMsg(pErrorDb,sParse.rc,"%s",sParse.zErrMsg);\n            pBVar6 = (Btree *)0x0;\n            if (sParse.zErrMsg == (char *)0x0) {\n              sqlite3ParserReset(&sParse);\n            }\n            else {\n              sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg);\n              sqlite3ParserReset(&sParse);\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          sqlite3ParserReset(&sParse);\n          iVar3 = 0x10;\n        }\n        goto LAB_00087713;\n      }" { (expression_statement "iVar3 = iVar4 << 4;" (assignment_expression "iVar3 = iVar4 << 4" identifier = (binary_expression "iVar4 << 4" identifier << number_literal)) ;) (if_statement "if (iVar4 == 1) {\n          pPVar7 = &sParse;\n          for (iVar4 = 0x46; iVar4 != 0; iVar4 = iVar4 + -1) {\n            pPVar7->db = (sqlite3 *)0x0;\n            pPVar7 = (Parse *)((int)pPVar7 + (uint)bVar8 * -8 + 4);\n          }\n          sParse.db = pDb;\n          if (pDb->aDb[1].pBt == (Btree *)0x0) {\n            iVar4 = sqlite3BtreeOpen(pDb->pVfs,(char *)0x0,pDb,&local_13c,0,0x21e);\n            if (iVar4 == 0) {\n              pDb->aDb[1].pBt = local_13c;\n              iVar4 = sqlite3BtreeSetPageSize(local_13c,pDb->nextPagesize,0,0);\n              if (iVar4 != 7) {\n                if (sParse.zErrMsg != (char *)0x0) {\n                  sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg);\n                }\n                goto LAB_0008779f;\n              }\n              uVar2._0_1_ = pDb->temp_store;\n              uVar2._1_1_ = pDb->mallocFailed;\n              uVar2._2_1_ = pDb->bBenignMalloc;\n              uVar2._3_1_ = pDb->dfltLockMode;\n              if ((uVar2 & 0xffff00) == 0) {\n                sqlite3OomFault(pDb);\n              }\n            }\n            else {\n              sqlite3ErrorMsg(&sParse,\n                              "unable to open a temporary database file for storing temporary tables"\n                             );\n              sParse.rc = iVar4;\n            }\n            sqlite3ErrorWithMsg(pErrorDb,sParse.rc,"%s",sParse.zErrMsg);\n            pBVar6 = (Btree *)0x0;\n            if (sParse.zErrMsg == (char *)0x0) {\n              sqlite3ParserReset(&sParse);\n            }\n            else {\n              sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg);\n              sqlite3ParserReset(&sParse);\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          sqlite3ParserReset(&sParse);\n          iVar3 = 0x10;\n        }" if (parenthesized_expression "(iVar4 == 1)" ( (binary_expression "iVar4 == 1" identifier == number_literal) )) (compound_statement "{\n          pPVar7 = &sParse;\n          for (iVar4 = 0x46; iVar4 != 0; iVar4 = iVar4 + -1) {\n            pPVar7->db = (sqlite3 *)0x0;\n            pPVar7 = (Parse *)((int)pPVar7 + (uint)bVar8 * -8 + 4);\n          }\n          sParse.db = pDb;\n          if (pDb->aDb[1].pBt == (Btree *)0x0) {\n            iVar4 = sqlite3BtreeOpen(pDb->pVfs,(char *)0x0,pDb,&local_13c,0,0x21e);\n            if (iVar4 == 0) {\n              pDb->aDb[1].pBt = local_13c;\n              iVar4 = sqlite3BtreeSetPageSize(local_13c,pDb->nextPagesize,0,0);\n              if (iVar4 != 7) {\n                if (sParse.zErrMsg != (char *)0x0) {\n                  sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg);\n                }\n                goto LAB_0008779f;\n              }\n              uVar2._0_1_ = pDb->temp_store;\n              uVar2._1_1_ = pDb->mallocFailed;\n              uVar2._2_1_ = pDb->bBenignMalloc;\n              uVar2._3_1_ = pDb->dfltLockMode;\n              if ((uVar2 & 0xffff00) == 0) {\n                sqlite3OomFault(pDb);\n              }\n            }\n            else {\n              sqlite3ErrorMsg(&sParse,\n                              "unable to open a temporary database file for storing temporary tables"\n                             );\n              sParse.rc = iVar4;\n            }\n            sqlite3ErrorWithMsg(pErrorDb,sParse.rc,"%s",sParse.zErrMsg);\n            pBVar6 = (Btree *)0x0;\n            if (sParse.zErrMsg == (char *)0x0) {\n              sqlite3ParserReset(&sParse);\n            }\n            else {\n              sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg);\n              sqlite3ParserReset(&sParse);\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          sqlite3ParserReset(&sParse);\n          iVar3 = 0x10;\n        }" { (expression_statement "pPVar7 = &sParse;" (assignment_expression "pPVar7 = &sParse" identifier = (pointer_expression "&sParse" & identifier)) ;) (for_statement "for (iVar4 = 0x46; iVar4 != 0; iVar4 = iVar4 + -1) {\n            pPVar7->db = (sqlite3 *)0x0;\n            pPVar7 = (Parse *)((int)pPVar7 + (uint)bVar8 * -8 + 4);\n          }" for ( (assignment_expression "iVar4 = 0x46" identifier = number_literal) ; (binary_expression "iVar4 != 0" identifier != number_literal) ; (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ) (compound_statement "{\n            pPVar7->db = (sqlite3 *)0x0;\n            pPVar7 = (Parse *)((int)pPVar7 + (uint)bVar8 * -8 + 4);\n          }" { (expression_statement "pPVar7->db = (sqlite3 *)0x0;" (assignment_expression "pPVar7->db = (sqlite3 *)0x0" (field_expression "pPVar7->db" identifier -> field_identifier) = (cast_expression "(sqlite3 *)0x0" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pPVar7 = (Parse *)((int)pPVar7 + (uint)bVar8 * -8 + 4);" (assignment_expression "pPVar7 = (Parse *)((int)pPVar7 + (uint)bVar8 * -8 + 4)" identifier = (cast_expression "(Parse *)((int)pPVar7 + (uint)bVar8 * -8 + 4)" ( (type_descriptor "Parse *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pPVar7 + (uint)bVar8 * -8 + 4)" ( (binary_expression "(int)pPVar7 + (uint)bVar8 * -8 + 4" (binary_expression "(int)pPVar7 + (uint)bVar8 * -8" (cast_expression "(int)pPVar7" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar8 * -8" (cast_expression "(uint)bVar8" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) })) (expression_statement "sParse.db = pDb;" (assignment_expression "sParse.db = pDb" (field_expression "sParse.db" identifier . field_identifier) = identifier) ;) (if_statement "if (pDb->aDb[1].pBt == (Btree *)0x0) {\n            iVar4 = sqlite3BtreeOpen(pDb->pVfs,(char *)0x0,pDb,&local_13c,0,0x21e);\n            if (iVar4 == 0) {\n              pDb->aDb[1].pBt = local_13c;\n              iVar4 = sqlite3BtreeSetPageSize(local_13c,pDb->nextPagesize,0,0);\n              if (iVar4 != 7) {\n                if (sParse.zErrMsg != (char *)0x0) {\n                  sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg);\n                }\n                goto LAB_0008779f;\n              }\n              uVar2._0_1_ = pDb->temp_store;\n              uVar2._1_1_ = pDb->mallocFailed;\n              uVar2._2_1_ = pDb->bBenignMalloc;\n              uVar2._3_1_ = pDb->dfltLockMode;\n              if ((uVar2 & 0xffff00) == 0) {\n                sqlite3OomFault(pDb);\n              }\n            }\n            else {\n              sqlite3ErrorMsg(&sParse,\n                              "unable to open a temporary database file for storing temporary tables"\n                             );\n              sParse.rc = iVar4;\n            }\n            sqlite3ErrorWithMsg(pErrorDb,sParse.rc,"%s",sParse.zErrMsg);\n            pBVar6 = (Btree *)0x0;\n            if (sParse.zErrMsg == (char *)0x0) {\n              sqlite3ParserReset(&sParse);\n            }\n            else {\n              sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg);\n              sqlite3ParserReset(&sParse);\n            }\n            goto LAB_0008771e;\n          }" if (parenthesized_expression "(pDb->aDb[1].pBt == (Btree *)0x0)" ( (binary_expression "pDb->aDb[1].pBt == (Btree *)0x0" (field_expression "pDb->aDb[1].pBt" (subscript_expression "pDb->aDb[1]" (field_expression "pDb->aDb" identifier -> field_identifier) [ number_literal ]) . field_identifier) == (cast_expression "(Btree *)0x0" ( (type_descriptor "Btree *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            iVar4 = sqlite3BtreeOpen(pDb->pVfs,(char *)0x0,pDb,&local_13c,0,0x21e);\n            if (iVar4 == 0) {\n              pDb->aDb[1].pBt = local_13c;\n              iVar4 = sqlite3BtreeSetPageSize(local_13c,pDb->nextPagesize,0,0);\n              if (iVar4 != 7) {\n                if (sParse.zErrMsg != (char *)0x0) {\n                  sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg);\n                }\n                goto LAB_0008779f;\n              }\n              uVar2._0_1_ = pDb->temp_store;\n              uVar2._1_1_ = pDb->mallocFailed;\n              uVar2._2_1_ = pDb->bBenignMalloc;\n              uVar2._3_1_ = pDb->dfltLockMode;\n              if ((uVar2 & 0xffff00) == 0) {\n                sqlite3OomFault(pDb);\n              }\n            }\n            else {\n              sqlite3ErrorMsg(&sParse,\n                              "unable to open a temporary database file for storing temporary tables"\n                             );\n              sParse.rc = iVar4;\n            }\n            sqlite3ErrorWithMsg(pErrorDb,sParse.rc,"%s",sParse.zErrMsg);\n            pBVar6 = (Btree *)0x0;\n            if (sParse.zErrMsg == (char *)0x0) {\n              sqlite3ParserReset(&sParse);\n            }\n            else {\n              sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg);\n              sqlite3ParserReset(&sParse);\n            }\n            goto LAB_0008771e;\n          }" { (expression_statement "iVar4 = sqlite3BtreeOpen(pDb->pVfs,(char *)0x0,pDb,&local_13c,0,0x21e);" (assignment_expression "iVar4 = sqlite3BtreeOpen(pDb->pVfs,(char *)0x0,pDb,&local_13c,0,0x21e)" identifier = (call_expression "sqlite3BtreeOpen(pDb->pVfs,(char *)0x0,pDb,&local_13c,0,0x21e)" identifier (argument_list "(pDb->pVfs,(char *)0x0,pDb,&local_13c,0,0x21e)" ( (field_expression "pDb->pVfs" identifier -> field_identifier) , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , (pointer_expression "&local_13c" & identifier) , number_literal , number_literal )))) ;) (if_statement "if (iVar4 == 0) {\n              pDb->aDb[1].pBt = local_13c;\n              iVar4 = sqlite3BtreeSetPageSize(local_13c,pDb->nextPagesize,0,0);\n              if (iVar4 != 7) {\n                if (sParse.zErrMsg != (char *)0x0) {\n                  sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg);\n                }\n                goto LAB_0008779f;\n              }\n              uVar2._0_1_ = pDb->temp_store;\n              uVar2._1_1_ = pDb->mallocFailed;\n              uVar2._2_1_ = pDb->bBenignMalloc;\n              uVar2._3_1_ = pDb->dfltLockMode;\n              if ((uVar2 & 0xffff00) == 0) {\n                sqlite3OomFault(pDb);\n              }\n            }\n            else {\n              sqlite3ErrorMsg(&sParse,\n                              "unable to open a temporary database file for storing temporary tables"\n                             );\n              sParse.rc = iVar4;\n            }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n              pDb->aDb[1].pBt = local_13c;\n              iVar4 = sqlite3BtreeSetPageSize(local_13c,pDb->nextPagesize,0,0);\n              if (iVar4 != 7) {\n                if (sParse.zErrMsg != (char *)0x0) {\n                  sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg);\n                }\n                goto LAB_0008779f;\n              }\n              uVar2._0_1_ = pDb->temp_store;\n              uVar2._1_1_ = pDb->mallocFailed;\n              uVar2._2_1_ = pDb->bBenignMalloc;\n              uVar2._3_1_ = pDb->dfltLockMode;\n              if ((uVar2 & 0xffff00) == 0) {\n                sqlite3OomFault(pDb);\n              }\n            }" { (expression_statement "pDb->aDb[1].pBt = local_13c;" (assignment_expression "pDb->aDb[1].pBt = local_13c" (field_expression "pDb->aDb[1].pBt" (subscript_expression "pDb->aDb[1]" (field_expression "pDb->aDb" identifier -> field_identifier) [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "iVar4 = sqlite3BtreeSetPageSize(local_13c,pDb->nextPagesize,0,0);" (assignment_expression "iVar4 = sqlite3BtreeSetPageSize(local_13c,pDb->nextPagesize,0,0)" identifier = (call_expression "sqlite3BtreeSetPageSize(local_13c,pDb->nextPagesize,0,0)" identifier (argument_list "(local_13c,pDb->nextPagesize,0,0)" ( identifier , (field_expression "pDb->nextPagesize" identifier -> field_identifier) , number_literal , number_literal )))) ;) (if_statement "if (iVar4 != 7) {\n                if (sParse.zErrMsg != (char *)0x0) {\n                  sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg);\n                }\n                goto LAB_0008779f;\n              }" if (parenthesized_expression "(iVar4 != 7)" ( (binary_expression "iVar4 != 7" identifier != number_literal) )) (compound_statement "{\n                if (sParse.zErrMsg != (char *)0x0) {\n                  sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg);\n                }\n                goto LAB_0008779f;\n              }" { (if_statement "if (sParse.zErrMsg != (char *)0x0) {\n                  sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg);\n                }" if (parenthesized_expression "(sParse.zErrMsg != (char *)0x0)" ( (binary_expression "sParse.zErrMsg != (char *)0x0" (field_expression "sParse.zErrMsg" identifier . field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                  sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg);\n                }" { (expression_statement "sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg);" (call_expression "sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg)" identifier (argument_list "(pErrorDb,sParse.zErrMsg)" ( identifier , (field_expression "sParse.zErrMsg" identifier . field_identifier) ))) ;) })) (goto_statement "goto LAB_0008779f;" goto statement_identifier ;) })) (expression_statement "uVar2._0_1_ = pDb->temp_store;" (assignment_expression "uVar2._0_1_ = pDb->temp_store" (field_expression "uVar2._0_1_" identifier . field_identifier) = (field_expression "pDb->temp_store" identifier -> field_identifier)) ;) (expression_statement "uVar2._1_1_ = pDb->mallocFailed;" (assignment_expression "uVar2._1_1_ = pDb->mallocFailed" (field_expression "uVar2._1_1_" identifier . field_identifier) = (field_expression "pDb->mallocFailed" identifier -> field_identifier)) ;) (expression_statement "uVar2._2_1_ = pDb->bBenignMalloc;" (assignment_expression "uVar2._2_1_ = pDb->bBenignMalloc" (field_expression "uVar2._2_1_" identifier . field_identifier) = (field_expression "pDb->bBenignMalloc" identifier -> field_identifier)) ;) (expression_statement "uVar2._3_1_ = pDb->dfltLockMode;" (assignment_expression "uVar2._3_1_ = pDb->dfltLockMode" (field_expression "uVar2._3_1_" identifier . field_identifier) = (field_expression "pDb->dfltLockMode" identifier -> field_identifier)) ;) (if_statement "if ((uVar2 & 0xffff00) == 0) {\n                sqlite3OomFault(pDb);\n              }" if (parenthesized_expression "((uVar2 & 0xffff00) == 0)" ( (binary_expression "(uVar2 & 0xffff00) == 0" (parenthesized_expression "(uVar2 & 0xffff00)" ( (binary_expression "uVar2 & 0xffff00" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n                sqlite3OomFault(pDb);\n              }" { (expression_statement "sqlite3OomFault(pDb);" (call_expression "sqlite3OomFault(pDb)" identifier (argument_list "(pDb)" ( identifier ))) ;) })) }) (else_clause "else {\n              sqlite3ErrorMsg(&sParse,\n                              "unable to open a temporary database file for storing temporary tables"\n                             );\n              sParse.rc = iVar4;\n            }" else (compound_statement "{\n              sqlite3ErrorMsg(&sParse,\n                              "unable to open a temporary database file for storing temporary tables"\n                             );\n              sParse.rc = iVar4;\n            }" { (expression_statement "sqlite3ErrorMsg(&sParse,\n                              "unable to open a temporary database file for storing temporary tables"\n                             );" (call_expression "sqlite3ErrorMsg(&sParse,\n                              "unable to open a temporary database file for storing temporary tables"\n                             )" identifier (argument_list "(&sParse,\n                              "unable to open a temporary database file for storing temporary tables"\n                             )" ( (pointer_expression "&sParse" & identifier) , (string_literal ""unable to open a temporary database file for storing temporary tables"" " string_content ") ))) ;) (expression_statement "sParse.rc = iVar4;" (assignment_expression "sParse.rc = iVar4" (field_expression "sParse.rc" identifier . field_identifier) = identifier) ;) }))) (expression_statement "sqlite3ErrorWithMsg(pErrorDb,sParse.rc,"%s",sParse.zErrMsg);" (call_expression "sqlite3ErrorWithMsg(pErrorDb,sParse.rc,"%s",sParse.zErrMsg)" identifier (argument_list "(pErrorDb,sParse.rc,"%s",sParse.zErrMsg)" ( identifier , (field_expression "sParse.rc" identifier . field_identifier) , (string_literal ""%s"" " string_content ") , (field_expression "sParse.zErrMsg" identifier . field_identifier) ))) ;) (expression_statement "pBVar6 = (Btree *)0x0;" (assignment_expression "pBVar6 = (Btree *)0x0" identifier = (cast_expression "(Btree *)0x0" ( (type_descriptor "Btree *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (sParse.zErrMsg == (char *)0x0) {\n              sqlite3ParserReset(&sParse);\n            }\n            else {\n              sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg);\n              sqlite3ParserReset(&sParse);\n            }" if (parenthesized_expression "(sParse.zErrMsg == (char *)0x0)" ( (binary_expression "sParse.zErrMsg == (char *)0x0" (field_expression "sParse.zErrMsg" identifier . field_identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              sqlite3ParserReset(&sParse);\n            }" { (expression_statement "sqlite3ParserReset(&sParse);" (call_expression "sqlite3ParserReset(&sParse)" identifier (argument_list "(&sParse)" ( (pointer_expression "&sParse" & identifier) ))) ;) }) (else_clause "else {\n              sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg);\n              sqlite3ParserReset(&sParse);\n            }" else (compound_statement "{\n              sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg);\n              sqlite3ParserReset(&sParse);\n            }" { (expression_statement "sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg);" (call_expression "sqlite3DbFreeNN(pErrorDb,sParse.zErrMsg)" identifier (argument_list "(pErrorDb,sParse.zErrMsg)" ( identifier , (field_expression "sParse.zErrMsg" identifier . field_identifier) ))) ;) (expression_statement "sqlite3ParserReset(&sParse);" (call_expression "sqlite3ParserReset(&sParse)" identifier (argument_list "(&sParse)" ( (pointer_expression "&sParse" & identifier) ))) ;) }))) (goto_statement "goto LAB_0008771e;" goto statement_identifier ;) })) (labeled_statement "LAB_0008779f:\n          sqlite3ParserReset(&sParse);" statement_identifier : (expression_statement "sqlite3ParserReset(&sParse);" (call_expression "sqlite3ParserReset(&sParse)" identifier (argument_list "(&sParse)" ( (pointer_expression "&sParse" & identifier) ))) ;)) (expression_statement "iVar3 = 0x10;" (assignment_expression "iVar3 = 0x10" identifier = number_literal) ;) })) (goto_statement "goto LAB_00087713;" goto statement_identifier ;) })) (if_statement "if (iVar4 != 0) {\n        iVar4 = iVar4 + -1;\n        pDVar5 = pDVar5 + -1;\n        if (iVar4 == -1) goto LAB_00087760;\n        goto LAB_000876f7;\n      }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar4 = iVar4 + -1;\n        pDVar5 = pDVar5 + -1;\n        if (iVar4 == -1) goto LAB_00087760;\n        goto LAB_000876f7;\n      }" { (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (expression_statement "pDVar5 = pDVar5 + -1;" (assignment_expression "pDVar5 = pDVar5 + -1" identifier = (binary_expression "pDVar5 + -1" identifier + number_literal)) ;) (if_statement "if (iVar4 == -1) goto LAB_00087760;" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00087760;" goto statement_identifier ;)) (goto_statement "goto LAB_000876f7;" goto statement_identifier ;) })) (expression_statement "iVar4 = sqlite3_stricmp("main",zDb);" (assignment_expression "iVar4 = sqlite3_stricmp("main",zDb)" identifier = (call_expression "sqlite3_stricmp("main",zDb)" identifier (argument_list "("main",zDb)" ( (string_literal ""main"" " string_content ") , identifier )))) ;) (if_statement "if (iVar4 != 0) goto LAB_00087760;" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00087760;" goto statement_identifier ;)) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00087713:\n      pBVar6 = *(Btree **)((int)&pDb->aDb->pBt + iVar3);" statement_identifier : (expression_statement "pBVar6 = *(Btree **)((int)&pDb->aDb->pBt + iVar3);" (assignment_expression "pBVar6 = *(Btree **)((int)&pDb->aDb->pBt + iVar3)" identifier = (pointer_expression "*(Btree **)((int)&pDb->aDb->pBt + iVar3)" * (cast_expression "(Btree **)((int)&pDb->aDb->pBt + iVar3)" ( (type_descriptor "Btree **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)&pDb->aDb->pBt + iVar3)" ( (binary_expression "(int)&pDb->aDb->pBt + iVar3" (cast_expression "(int)&pDb->aDb->pBt" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pDb->aDb->pBt" & (field_expression "pDb->aDb->pBt" (field_expression "pDb->aDb" identifier -> field_identifier) -> field_identifier))) + identifier) ))))) ;)) (goto_statement "goto LAB_0008771e;" goto statement_identifier ;) })) })) (labeled_statement "LAB_00087760:\n  pBVar6 = (Btree *)0x0;" statement_identifier : (expression_statement "pBVar6 = (Btree *)0x0;" (assignment_expression "pBVar6 = (Btree *)0x0" identifier = (cast_expression "(Btree *)0x0" ( (type_descriptor "Btree *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) (expression_statement "sqlite3ErrorWithMsg(pErrorDb,1,"unknown database %s",zDb);" (call_expression "sqlite3ErrorWithMsg(pErrorDb,1,"unknown database %s",zDb)" identifier (argument_list "(pErrorDb,1,"unknown database %s",zDb)" ( identifier , number_literal , (string_literal ""unknown database %s"" " string_content ") , identifier ))) ;) (labeled_statement "LAB_0008771e:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" statement_identifier : (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return pBVar6;" return identifier ;) }))
(translation_unit "undefined4 __regparm3 FUN_00087690(undefined4 param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int in_GS_OFFSET;\n  byte bVar6;\n  undefined4 local_13c;\n  int local_138;\n  int local_134;\n  int local_12c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar6 = 0;\n  uStack_14 = 0x8769b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_3 != 0) {\n    iVar3 = *(int *)(param_2 + 0x14) + -1;\n    puVar2 = (undefined4 *)(iVar3 * 0x10 + *(int *)(param_2 + 0x10));\n    if (-1 < iVar3) {\nLAB_000876f7:\n      iVar1 = sqlite3_stricmp(*puVar2,param_3);\n      if (iVar1 == 0) {\n        iVar1 = iVar3 << 4;\n        if (iVar3 == 1) {\n          piVar5 = &local_138;\n          for (iVar3 = 0x46; iVar3 != 0; iVar3 = iVar3 + -1) {\n            *piVar5 = 0;\n            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;\n          }\n          local_138 = param_2;\n          if (*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0) {\n            iVar3 = FUN_00086310(&local_13c,0,0x21e);\n            if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }\n            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);\n            uVar4 = 0;\n            if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          FUN_00054190();\n          iVar1 = 0x10;\n        }\n        goto LAB_00087713;\n      }\n      if (iVar3 != 0) {\n        iVar3 = iVar3 + -1;\n        puVar2 = puVar2 + -4;\n        if (iVar3 == -1) goto LAB_00087760;\n        goto LAB_000876f7;\n      }\n      iVar3 = sqlite3_stricmp(&DAT_000d1493,param_3);\n      if (iVar3 != 0) goto LAB_00087760;\n      iVar1 = 0;\nLAB_00087713:\n      uVar4 = *(undefined4 *)(*(int *)(param_2 + 0x10) + 4 + iVar1);\n      goto LAB_0008771e;\n    }\n  }\nLAB_00087760:\n  uVar4 = 0;\n  FUN_00050420(param_1,1,"unknown database %s",param_3);\nLAB_0008771e:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000d1450();\n  }\n  return uVar4;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_00087690(undefined4 param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int in_GS_OFFSET;\n  byte bVar6;\n  undefined4 local_13c;\n  int local_138;\n  int local_134;\n  int local_12c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar6 = 0;\n  uStack_14 = 0x8769b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_3 != 0) {\n    iVar3 = *(int *)(param_2 + 0x14) + -1;\n    puVar2 = (undefined4 *)(iVar3 * 0x10 + *(int *)(param_2 + 0x10));\n    if (-1 < iVar3) {\nLAB_000876f7:\n      iVar1 = sqlite3_stricmp(*puVar2,param_3);\n      if (iVar1 == 0) {\n        iVar1 = iVar3 << 4;\n        if (iVar3 == 1) {\n          piVar5 = &local_138;\n          for (iVar3 = 0x46; iVar3 != 0; iVar3 = iVar3 + -1) {\n            *piVar5 = 0;\n            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;\n          }\n          local_138 = param_2;\n          if (*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0) {\n            iVar3 = FUN_00086310(&local_13c,0,0x21e);\n            if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }\n            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);\n            uVar4 = 0;\n            if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          FUN_00054190();\n          iVar1 = 0x10;\n        }\n        goto LAB_00087713;\n      }\n      if (iVar3 != 0) {\n        iVar3 = iVar3 + -1;\n        puVar2 = puVar2 + -4;\n        if (iVar3 == -1) goto LAB_00087760;\n        goto LAB_000876f7;\n      }\n      iVar3 = sqlite3_stricmp(&DAT_000d1493,param_3);\n      if (iVar3 != 0) goto LAB_00087760;\n      iVar1 = 0;\nLAB_00087713:\n      uVar4 = *(undefined4 *)(*(int *)(param_2 + 0x10) + 4 + iVar1);\n      goto LAB_0008771e;\n    }\n  }\nLAB_00087760:\n  uVar4 = 0;\n  FUN_00050420(param_1,1,"unknown database %s",param_3);\nLAB_0008771e:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000d1450();\n  }\n  return uVar4;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00087690(undefined4 param_1,int param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int in_GS_OFFSET;\n  byte bVar6;\n  undefined4 local_13c;\n  int local_138;\n  int local_134;\n  int local_12c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar6 = 0;\n  uStack_14 = 0x8769b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_3 != 0) {\n    iVar3 = *(int *)(param_2 + 0x14) + -1;\n    puVar2 = (undefined4 *)(iVar3 * 0x10 + *(int *)(param_2 + 0x10));\n    if (-1 < iVar3) {\nLAB_000876f7:\n      iVar1 = sqlite3_stricmp(*puVar2,param_3);\n      if (iVar1 == 0) {\n        iVar1 = iVar3 << 4;\n        if (iVar3 == 1) {\n          piVar5 = &local_138;\n          for (iVar3 = 0x46; iVar3 != 0; iVar3 = iVar3 + -1) {\n            *piVar5 = 0;\n            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;\n          }\n          local_138 = param_2;\n          if (*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0) {\n            iVar3 = FUN_00086310(&local_13c,0,0x21e);\n            if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }\n            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);\n            uVar4 = 0;\n            if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          FUN_00054190();\n          iVar1 = 0x10;\n        }\n        goto LAB_00087713;\n      }\n      if (iVar3 != 0) {\n        iVar3 = iVar3 + -1;\n        puVar2 = puVar2 + -4;\n        if (iVar3 == -1) goto LAB_00087760;\n        goto LAB_000876f7;\n      }\n      iVar3 = sqlite3_stricmp(&DAT_000d1493,param_3);\n      if (iVar3 != 0) goto LAB_00087760;\n      iVar1 = 0;\nLAB_00087713:\n      uVar4 = *(undefined4 *)(*(int *)(param_2 + 0x10) + 4 + iVar1);\n      goto LAB_0008771e;\n    }\n  }\nLAB_00087760:\n  uVar4 = 0;\n  FUN_00050420(param_1,1,"unknown database %s",param_3);\nLAB_0008771e:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000d1450();\n  }\n  return uVar4;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar6;" type_identifier identifier ;) (declaration "undefined4 local_13c;" type_identifier identifier ;) (declaration "int local_138;" primitive_type identifier ;) (declaration "int local_134;" primitive_type identifier ;) (declaration "int local_12c;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 0x8769b;" (assignment_expression "uStack_14 = 0x8769b" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_3 != 0) {\n    iVar3 = *(int *)(param_2 + 0x14) + -1;\n    puVar2 = (undefined4 *)(iVar3 * 0x10 + *(int *)(param_2 + 0x10));\n    if (-1 < iVar3) {\nLAB_000876f7:\n      iVar1 = sqlite3_stricmp(*puVar2,param_3);\n      if (iVar1 == 0) {\n        iVar1 = iVar3 << 4;\n        if (iVar3 == 1) {\n          piVar5 = &local_138;\n          for (iVar3 = 0x46; iVar3 != 0; iVar3 = iVar3 + -1) {\n            *piVar5 = 0;\n            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;\n          }\n          local_138 = param_2;\n          if (*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0) {\n            iVar3 = FUN_00086310(&local_13c,0,0x21e);\n            if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }\n            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);\n            uVar4 = 0;\n            if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          FUN_00054190();\n          iVar1 = 0x10;\n        }\n        goto LAB_00087713;\n      }\n      if (iVar3 != 0) {\n        iVar3 = iVar3 + -1;\n        puVar2 = puVar2 + -4;\n        if (iVar3 == -1) goto LAB_00087760;\n        goto LAB_000876f7;\n      }\n      iVar3 = sqlite3_stricmp(&DAT_000d1493,param_3);\n      if (iVar3 != 0) goto LAB_00087760;\n      iVar1 = 0;\nLAB_00087713:\n      uVar4 = *(undefined4 *)(*(int *)(param_2 + 0x10) + 4 + iVar1);\n      goto LAB_0008771e;\n    }\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = *(int *)(param_2 + 0x14) + -1;\n    puVar2 = (undefined4 *)(iVar3 * 0x10 + *(int *)(param_2 + 0x10));\n    if (-1 < iVar3) {\nLAB_000876f7:\n      iVar1 = sqlite3_stricmp(*puVar2,param_3);\n      if (iVar1 == 0) {\n        iVar1 = iVar3 << 4;\n        if (iVar3 == 1) {\n          piVar5 = &local_138;\n          for (iVar3 = 0x46; iVar3 != 0; iVar3 = iVar3 + -1) {\n            *piVar5 = 0;\n            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;\n          }\n          local_138 = param_2;\n          if (*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0) {\n            iVar3 = FUN_00086310(&local_13c,0,0x21e);\n            if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }\n            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);\n            uVar4 = 0;\n            if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          FUN_00054190();\n          iVar1 = 0x10;\n        }\n        goto LAB_00087713;\n      }\n      if (iVar3 != 0) {\n        iVar3 = iVar3 + -1;\n        puVar2 = puVar2 + -4;\n        if (iVar3 == -1) goto LAB_00087760;\n        goto LAB_000876f7;\n      }\n      iVar3 = sqlite3_stricmp(&DAT_000d1493,param_3);\n      if (iVar3 != 0) goto LAB_00087760;\n      iVar1 = 0;\nLAB_00087713:\n      uVar4 = *(undefined4 *)(*(int *)(param_2 + 0x10) + 4 + iVar1);\n      goto LAB_0008771e;\n    }\n  }" { (expression_statement "iVar3 = *(int *)(param_2 + 0x14) + -1;" (assignment_expression "iVar3 = *(int *)(param_2 + 0x14) + -1" identifier = (binary_expression "*(int *)(param_2 + 0x14) + -1" (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "puVar2 = (undefined4 *)(iVar3 * 0x10 + *(int *)(param_2 + 0x10));" (assignment_expression "puVar2 = (undefined4 *)(iVar3 * 0x10 + *(int *)(param_2 + 0x10))" identifier = (cast_expression "(undefined4 *)(iVar3 * 0x10 + *(int *)(param_2 + 0x10))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 * 0x10 + *(int *)(param_2 + 0x10))" ( (binary_expression "iVar3 * 0x10 + *(int *)(param_2 + 0x10)" (binary_expression "iVar3 * 0x10" identifier * number_literal) + (pointer_expression "*(int *)(param_2 + 0x10)" * (cast_expression "(int *)(param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) ))))) )))) ;) (if_statement "if (-1 < iVar3) {\nLAB_000876f7:\n      iVar1 = sqlite3_stricmp(*puVar2,param_3);\n      if (iVar1 == 0) {\n        iVar1 = iVar3 << 4;\n        if (iVar3 == 1) {\n          piVar5 = &local_138;\n          for (iVar3 = 0x46; iVar3 != 0; iVar3 = iVar3 + -1) {\n            *piVar5 = 0;\n            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;\n          }\n          local_138 = param_2;\n          if (*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0) {\n            iVar3 = FUN_00086310(&local_13c,0,0x21e);\n            if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }\n            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);\n            uVar4 = 0;\n            if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          FUN_00054190();\n          iVar1 = 0x10;\n        }\n        goto LAB_00087713;\n      }\n      if (iVar3 != 0) {\n        iVar3 = iVar3 + -1;\n        puVar2 = puVar2 + -4;\n        if (iVar3 == -1) goto LAB_00087760;\n        goto LAB_000876f7;\n      }\n      iVar3 = sqlite3_stricmp(&DAT_000d1493,param_3);\n      if (iVar3 != 0) goto LAB_00087760;\n      iVar1 = 0;\nLAB_00087713:\n      uVar4 = *(undefined4 *)(*(int *)(param_2 + 0x10) + 4 + iVar1);\n      goto LAB_0008771e;\n    }" if (parenthesized_expression "(-1 < iVar3)" ( (binary_expression "-1 < iVar3" number_literal < identifier) )) (compound_statement "{\nLAB_000876f7:\n      iVar1 = sqlite3_stricmp(*puVar2,param_3);\n      if (iVar1 == 0) {\n        iVar1 = iVar3 << 4;\n        if (iVar3 == 1) {\n          piVar5 = &local_138;\n          for (iVar3 = 0x46; iVar3 != 0; iVar3 = iVar3 + -1) {\n            *piVar5 = 0;\n            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;\n          }\n          local_138 = param_2;\n          if (*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0) {\n            iVar3 = FUN_00086310(&local_13c,0,0x21e);\n            if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }\n            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);\n            uVar4 = 0;\n            if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          FUN_00054190();\n          iVar1 = 0x10;\n        }\n        goto LAB_00087713;\n      }\n      if (iVar3 != 0) {\n        iVar3 = iVar3 + -1;\n        puVar2 = puVar2 + -4;\n        if (iVar3 == -1) goto LAB_00087760;\n        goto LAB_000876f7;\n      }\n      iVar3 = sqlite3_stricmp(&DAT_000d1493,param_3);\n      if (iVar3 != 0) goto LAB_00087760;\n      iVar1 = 0;\nLAB_00087713:\n      uVar4 = *(undefined4 *)(*(int *)(param_2 + 0x10) + 4 + iVar1);\n      goto LAB_0008771e;\n    }" { (labeled_statement "LAB_000876f7:\n      iVar1 = sqlite3_stricmp(*puVar2,param_3);" statement_identifier : (expression_statement "iVar1 = sqlite3_stricmp(*puVar2,param_3);" (assignment_expression "iVar1 = sqlite3_stricmp(*puVar2,param_3)" identifier = (call_expression "sqlite3_stricmp(*puVar2,param_3)" identifier (argument_list "(*puVar2,param_3)" ( (pointer_expression "*puVar2" * identifier) , identifier )))) ;)) (if_statement "if (iVar1 == 0) {\n        iVar1 = iVar3 << 4;\n        if (iVar3 == 1) {\n          piVar5 = &local_138;\n          for (iVar3 = 0x46; iVar3 != 0; iVar3 = iVar3 + -1) {\n            *piVar5 = 0;\n            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;\n          }\n          local_138 = param_2;\n          if (*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0) {\n            iVar3 = FUN_00086310(&local_13c,0,0x21e);\n            if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }\n            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);\n            uVar4 = 0;\n            if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          FUN_00054190();\n          iVar1 = 0x10;\n        }\n        goto LAB_00087713;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar1 = iVar3 << 4;\n        if (iVar3 == 1) {\n          piVar5 = &local_138;\n          for (iVar3 = 0x46; iVar3 != 0; iVar3 = iVar3 + -1) {\n            *piVar5 = 0;\n            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;\n          }\n          local_138 = param_2;\n          if (*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0) {\n            iVar3 = FUN_00086310(&local_13c,0,0x21e);\n            if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }\n            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);\n            uVar4 = 0;\n            if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          FUN_00054190();\n          iVar1 = 0x10;\n        }\n        goto LAB_00087713;\n      }" { (expression_statement "iVar1 = iVar3 << 4;" (assignment_expression "iVar1 = iVar3 << 4" identifier = (binary_expression "iVar3 << 4" identifier << number_literal)) ;) (if_statement "if (iVar3 == 1) {\n          piVar5 = &local_138;\n          for (iVar3 = 0x46; iVar3 != 0; iVar3 = iVar3 + -1) {\n            *piVar5 = 0;\n            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;\n          }\n          local_138 = param_2;\n          if (*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0) {\n            iVar3 = FUN_00086310(&local_13c,0,0x21e);\n            if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }\n            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);\n            uVar4 = 0;\n            if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          FUN_00054190();\n          iVar1 = 0x10;\n        }" if (parenthesized_expression "(iVar3 == 1)" ( (binary_expression "iVar3 == 1" identifier == number_literal) )) (compound_statement "{\n          piVar5 = &local_138;\n          for (iVar3 = 0x46; iVar3 != 0; iVar3 = iVar3 + -1) {\n            *piVar5 = 0;\n            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;\n          }\n          local_138 = param_2;\n          if (*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0) {\n            iVar3 = FUN_00086310(&local_13c,0,0x21e);\n            if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }\n            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);\n            uVar4 = 0;\n            if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          FUN_00054190();\n          iVar1 = 0x10;\n        }" { (expression_statement "piVar5 = &local_138;" (assignment_expression "piVar5 = &local_138" identifier = (pointer_expression "&local_138" & identifier)) ;) (for_statement "for (iVar3 = 0x46; iVar3 != 0; iVar3 = iVar3 + -1) {\n            *piVar5 = 0;\n            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;\n          }" for ( (assignment_expression "iVar3 = 0x46" identifier = number_literal) ; (binary_expression "iVar3 != 0" identifier != number_literal) ; (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ) (compound_statement "{\n            *piVar5 = 0;\n            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;\n          }" { (expression_statement "*piVar5 = 0;" (assignment_expression "*piVar5 = 0" (pointer_expression "*piVar5" * identifier) = number_literal) ;) (expression_statement "piVar5 = piVar5 + (uint)bVar6 * -2 + 1;" (assignment_expression "piVar5 = piVar5 + (uint)bVar6 * -2 + 1" identifier = (binary_expression "piVar5 + (uint)bVar6 * -2 + 1" (binary_expression "piVar5 + (uint)bVar6 * -2" identifier + (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "local_138 = param_2;" (assignment_expression "local_138 = param_2" identifier = identifier) ;) (if_statement "if (*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0) {\n            iVar3 = FUN_00086310(&local_13c,0,0x21e);\n            if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }\n            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);\n            uVar4 = 0;\n            if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }\n            goto LAB_0008771e;\n          }" if (parenthesized_expression "(*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0)" ( (binary_expression "*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0" (pointer_expression "*(int *)(*(int *)(param_2 + 0x10) + 0x14)" * (cast_expression "(int *)(*(int *)(param_2 + 0x10) + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 0x10) + 0x14)" ( (binary_expression "*(int *)(param_2 + 0x10) + 0x14" (pointer_expression "*(int *)(param_2 + 0x10)" * (cast_expression "(int *)(param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) + number_literal) )))) == number_literal) )) (compound_statement "{\n            iVar3 = FUN_00086310(&local_13c,0,0x21e);\n            if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }\n            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);\n            uVar4 = 0;\n            if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }\n            goto LAB_0008771e;\n          }" { (expression_statement "iVar3 = FUN_00086310(&local_13c,0,0x21e);" (assignment_expression "iVar3 = FUN_00086310(&local_13c,0,0x21e)" identifier = (call_expression "FUN_00086310(&local_13c,0,0x21e)" identifier (argument_list "(&local_13c,0,0x21e)" ( (pointer_expression "&local_13c" & identifier) , number_literal , number_literal )))) ;) (if_statement "if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }" { (expression_statement "*(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;" (assignment_expression "*(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c" (pointer_expression "*(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14)" * (cast_expression "(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 0x10) + 0x14)" ( (binary_expression "*(int *)(param_2 + 0x10) + 0x14" (pointer_expression "*(int *)(param_2 + 0x10)" * (cast_expression "(int *)(param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) + number_literal) )))) = identifier) ;) (expression_statement "iVar3 = FUN_0004ad20(0);" (assignment_expression "iVar3 = FUN_0004ad20(0)" identifier = (call_expression "FUN_0004ad20(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (if_statement "if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }" if (parenthesized_expression "(iVar3 != 7)" ( (binary_expression "iVar3 != 7" identifier != number_literal) )) (compound_statement "{\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }" { (if_statement "if (local_134 != 0) {\n                  FUN_00023410();\n                }" if (parenthesized_expression "(local_134 != 0)" ( (binary_expression "local_134 != 0" identifier != number_literal) )) (compound_statement "{\n                  FUN_00023410();\n                }" { (expression_statement "FUN_00023410();" (call_expression "FUN_00023410()" identifier (argument_list "()" ( ))) ;) })) (goto_statement "goto LAB_0008779f;" goto statement_identifier ;) })) (if_statement "if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }" if (parenthesized_expression "((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0)" ( (binary_expression "(*(uint *)(param_2 + 0x4c) & 0xffff00) == 0" (parenthesized_expression "(*(uint *)(param_2 + 0x4c) & 0xffff00)" ( (binary_expression "*(uint *)(param_2 + 0x4c) & 0xffff00" (pointer_expression "*(uint *)(param_2 + 0x4c)" * (cast_expression "(uint *)(param_2 + 0x4c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x4c)" ( (binary_expression "param_2 + 0x4c" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n                FUN_000265f0();\n              }" { (expression_statement "FUN_000265f0();" (call_expression "FUN_000265f0()" identifier (argument_list "()" ( ))) ;) })) }) (else_clause "else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }" else (compound_statement "{\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }" { (expression_statement "FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");" (call_expression "FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables")" identifier (argument_list "(&local_138,\n                           "unable to open a temporary database file for storing temporary tables")" ( (pointer_expression "&local_138" & identifier) , (string_literal ""unable to open a temporary database file for storing temporary tables"" " string_content ") ))) ;) (expression_statement "local_12c = iVar3;" (assignment_expression "local_12c = iVar3" identifier = identifier) ;) }))) (expression_statement "FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);" (call_expression "FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134)" identifier (argument_list "(param_1,local_12c,&DAT_000d1760,local_134)" ( identifier , identifier , (pointer_expression "&DAT_000d1760" & identifier) , identifier ))) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (if_statement "if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }" if (parenthesized_expression "(local_134 == 0)" ( (binary_expression "local_134 == 0" identifier == number_literal) )) (compound_statement "{\n              FUN_00054190();\n            }" { (expression_statement "FUN_00054190();" (call_expression "FUN_00054190()" identifier (argument_list "()" ( ))) ;) }) (else_clause "else {\n              FUN_00023410();\n              FUN_00054190();\n            }" else (compound_statement "{\n              FUN_00023410();\n              FUN_00054190();\n            }" { (expression_statement "FUN_00023410();" (call_expression "FUN_00023410()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00054190();" (call_expression "FUN_00054190()" identifier (argument_list "()" ( ))) ;) }))) (goto_statement "goto LAB_0008771e;" goto statement_identifier ;) })) (labeled_statement "LAB_0008779f:\n          FUN_00054190();" statement_identifier : (expression_statement "FUN_00054190();" (call_expression "FUN_00054190()" identifier (argument_list "()" ( ))) ;)) (expression_statement "iVar1 = 0x10;" (assignment_expression "iVar1 = 0x10" identifier = number_literal) ;) })) (goto_statement "goto LAB_00087713;" goto statement_identifier ;) })) (if_statement "if (iVar3 != 0) {\n        iVar3 = iVar3 + -1;\n        puVar2 = puVar2 + -4;\n        if (iVar3 == -1) goto LAB_00087760;\n        goto LAB_000876f7;\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar3 = iVar3 + -1;\n        puVar2 = puVar2 + -4;\n        if (iVar3 == -1) goto LAB_00087760;\n        goto LAB_000876f7;\n      }" { (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (expression_statement "puVar2 = puVar2 + -4;" (assignment_expression "puVar2 = puVar2 + -4" identifier = (binary_expression "puVar2 + -4" identifier + number_literal)) ;) (if_statement "if (iVar3 == -1) goto LAB_00087760;" if (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00087760;" goto statement_identifier ;)) (goto_statement "goto LAB_000876f7;" goto statement_identifier ;) })) (expression_statement "iVar3 = sqlite3_stricmp(&DAT_000d1493,param_3);" (assignment_expression "iVar3 = sqlite3_stricmp(&DAT_000d1493,param_3)" identifier = (call_expression "sqlite3_stricmp(&DAT_000d1493,param_3)" identifier (argument_list "(&DAT_000d1493,param_3)" ( (pointer_expression "&DAT_000d1493" & identifier) , identifier )))) ;) (if_statement "if (iVar3 != 0) goto LAB_00087760;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00087760;" goto statement_identifier ;)) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00087713:\n      uVar4 = *(undefined4 *)(*(int *)(param_2 + 0x10) + 4 + iVar1);" statement_identifier : (expression_statement "uVar4 = *(undefined4 *)(*(int *)(param_2 + 0x10) + 4 + iVar1);" (assignment_expression "uVar4 = *(undefined4 *)(*(int *)(param_2 + 0x10) + 4 + iVar1)" identifier = (pointer_expression "*(undefined4 *)(*(int *)(param_2 + 0x10) + 4 + iVar1)" * (cast_expression "(undefined4 *)(*(int *)(param_2 + 0x10) + 4 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 0x10) + 4 + iVar1)" ( (binary_expression "*(int *)(param_2 + 0x10) + 4 + iVar1" (binary_expression "*(int *)(param_2 + 0x10) + 4" (pointer_expression "*(int *)(param_2 + 0x10)" * (cast_expression "(int *)(param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) + number_literal) + identifier) ))))) ;)) (goto_statement "goto LAB_0008771e;" goto statement_identifier ;) })) })) (labeled_statement "LAB_00087760:\n  uVar4 = 0;" statement_identifier : (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;)) (expression_statement "FUN_00050420(param_1,1,"unknown database %s",param_3);" (call_expression "FUN_00050420(param_1,1,"unknown database %s",param_3)" identifier (argument_list "(param_1,1,"unknown database %s",param_3)" ( identifier , number_literal , (string_literal ""unknown database %s"" " string_content ") , identifier ))) ;) (labeled_statement "LAB_0008771e:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000d1450();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000d1450();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_000d1450();\n  }" { (expression_statement "FUN_000d1450();" (call_expression "FUN_000d1450()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return uVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT * LIT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT << LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (for_statement for ( (assignment_expression IDENT = LIT) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , (string_literal " string_content ") ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression & IDENT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( ))) ;)) (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 = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (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 (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) + IDENT) ))))) ;)) (goto_statement goto statement_identifier ;) })) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (string_literal " string_content ") , IDENT ))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 __regparm3 FUN_00087690(undefined4 param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int in_GS_OFFSET;\n  byte bVar6;\n  undefined4 local_13c;\n  int local_138;\n  int local_134;\n  int local_12c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar6 = 0;\n  uStack_14 = 0x8769b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_3 != 0) {\n    iVar3 = *(int *)(param_2 + 0x14) + -1;\n    puVar2 = (undefined4 *)(iVar3 * 0x10 + *(int *)(param_2 + 0x10));\n    if (-1 < iVar3) {\nLAB_000876f7:\n      iVar1 = sqlite3_stricmp(*puVar2,param_3);\n      if (iVar1 == 0) {\n        iVar1 = iVar3 << 4;\n        if (iVar3 == 1) {\n          piVar5 = &local_138;\n          for (iVar3 = 0x46; iVar3 != 0; iVar3 = iVar3 + -1) {\n            *piVar5 = 0;\n            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;\n          }\n          local_138 = param_2;\n          if (*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0) {\n            iVar3 = FUN_00086310(&local_13c,0,0x21e);\n            if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }\n            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);\n            uVar4 = 0;\n            if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          FUN_00054190();\n          iVar1 = 0x10;\n        }\n        goto LAB_00087713;\n      }\n      if (iVar3 != 0) {\n        iVar3 = iVar3 + -1;\n        puVar2 = puVar2 + -4;\n        if (iVar3 == -1) goto LAB_00087760;\n        goto LAB_000876f7;\n      }\n      iVar3 = sqlite3_stricmp(&DAT_000d1493,param_3);\n      if (iVar3 != 0) goto LAB_00087760;\n      iVar1 = 0;\nLAB_00087713:\n      uVar4 = *(undefined4 *)(*(int *)(param_2 + 0x10) + 4 + iVar1);\n      goto LAB_0008771e;\n    }\n  }\nLAB_00087760:\n  uVar4 = 0;\n  FUN_00050420(param_1,1,"unknown database %s",param_3);\nLAB_0008771e:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000d1450();\n  }\n  return uVar4;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00087690(undefined4 param_1,int param_2,int param_3)" (identifier "FUN_00087690") (parameter_list "(undefined4 param_1,int param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int in_GS_OFFSET;\n  byte bVar6;\n  undefined4 local_13c;\n  int local_138;\n  int local_134;\n  int local_12c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar6 = 0;\n  uStack_14 = 0x8769b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_3 != 0) {\n    iVar3 = *(int *)(param_2 + 0x14) + -1;\n    puVar2 = (undefined4 *)(iVar3 * 0x10 + *(int *)(param_2 + 0x10));\n    if (-1 < iVar3) {\nLAB_000876f7:\n      iVar1 = sqlite3_stricmp(*puVar2,param_3);\n      if (iVar1 == 0) {\n        iVar1 = iVar3 << 4;\n        if (iVar3 == 1) {\n          piVar5 = &local_138;\n          for (iVar3 = 0x46; iVar3 != 0; iVar3 = iVar3 + -1) {\n            *piVar5 = 0;\n            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;\n          }\n          local_138 = param_2;\n          if (*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0) {\n            iVar3 = FUN_00086310(&local_13c,0,0x21e);\n            if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }\n            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);\n            uVar4 = 0;\n            if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          FUN_00054190();\n          iVar1 = 0x10;\n        }\n        goto LAB_00087713;\n      }\n      if (iVar3 != 0) {\n        iVar3 = iVar3 + -1;\n        puVar2 = puVar2 + -4;\n        if (iVar3 == -1) goto LAB_00087760;\n        goto LAB_000876f7;\n      }\n      iVar3 = sqlite3_stricmp(&DAT_000d1493,param_3);\n      if (iVar3 != 0) goto LAB_00087760;\n      iVar1 = 0;\nLAB_00087713:\n      uVar4 = *(undefined4 *)(*(int *)(param_2 + 0x10) + 4 + iVar1);\n      goto LAB_0008771e;\n    }\n  }\nLAB_00087760:\n  uVar4 = 0;\n  FUN_00050420(param_1,1,"unknown database %s",param_3);\nLAB_0008771e:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000d1450();\n  }\n  return uVar4;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "byte bVar6;" (type_identifier "byte") (identifier "bVar6") (; ";")) (declaration "undefined4 local_13c;" (type_identifier "undefined4") (identifier "local_13c") (; ";")) (declaration "int local_138;" (primitive_type "int") (identifier "local_138") (; ";")) (declaration "int local_134;" (primitive_type "int") (identifier "local_134") (; ";")) (declaration "int local_12c;" (primitive_type "int") (identifier "local_12c") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" (identifier "bVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "uStack_14 = 0x8769b;" (assignment_expression "uStack_14 = 0x8769b" (identifier "uStack_14") (= "=") (number_literal "0x8769b")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (param_3 != 0) {\n    iVar3 = *(int *)(param_2 + 0x14) + -1;\n    puVar2 = (undefined4 *)(iVar3 * 0x10 + *(int *)(param_2 + 0x10));\n    if (-1 < iVar3) {\nLAB_000876f7:\n      iVar1 = sqlite3_stricmp(*puVar2,param_3);\n      if (iVar1 == 0) {\n        iVar1 = iVar3 << 4;\n        if (iVar3 == 1) {\n          piVar5 = &local_138;\n          for (iVar3 = 0x46; iVar3 != 0; iVar3 = iVar3 + -1) {\n            *piVar5 = 0;\n            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;\n          }\n          local_138 = param_2;\n          if (*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0) {\n            iVar3 = FUN_00086310(&local_13c,0,0x21e);\n            if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }\n            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);\n            uVar4 = 0;\n            if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          FUN_00054190();\n          iVar1 = 0x10;\n        }\n        goto LAB_00087713;\n      }\n      if (iVar3 != 0) {\n        iVar3 = iVar3 + -1;\n        puVar2 = puVar2 + -4;\n        if (iVar3 == -1) goto LAB_00087760;\n        goto LAB_000876f7;\n      }\n      iVar3 = sqlite3_stricmp(&DAT_000d1493,param_3);\n      if (iVar3 != 0) goto LAB_00087760;\n      iVar1 = 0;\nLAB_00087713:\n      uVar4 = *(undefined4 *)(*(int *)(param_2 + 0x10) + 4 + iVar1);\n      goto LAB_0008771e;\n    }\n  }" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar3 = *(int *)(param_2 + 0x14) + -1;\n    puVar2 = (undefined4 *)(iVar3 * 0x10 + *(int *)(param_2 + 0x10));\n    if (-1 < iVar3) {\nLAB_000876f7:\n      iVar1 = sqlite3_stricmp(*puVar2,param_3);\n      if (iVar1 == 0) {\n        iVar1 = iVar3 << 4;\n        if (iVar3 == 1) {\n          piVar5 = &local_138;\n          for (iVar3 = 0x46; iVar3 != 0; iVar3 = iVar3 + -1) {\n            *piVar5 = 0;\n            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;\n          }\n          local_138 = param_2;\n          if (*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0) {\n            iVar3 = FUN_00086310(&local_13c,0,0x21e);\n            if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }\n            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);\n            uVar4 = 0;\n            if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          FUN_00054190();\n          iVar1 = 0x10;\n        }\n        goto LAB_00087713;\n      }\n      if (iVar3 != 0) {\n        iVar3 = iVar3 + -1;\n        puVar2 = puVar2 + -4;\n        if (iVar3 == -1) goto LAB_00087760;\n        goto LAB_000876f7;\n      }\n      iVar3 = sqlite3_stricmp(&DAT_000d1493,param_3);\n      if (iVar3 != 0) goto LAB_00087760;\n      iVar1 = 0;\nLAB_00087713:\n      uVar4 = *(undefined4 *)(*(int *)(param_2 + 0x10) + 4 + iVar1);\n      goto LAB_0008771e;\n    }\n  }" ({ "{") (expression_statement "iVar3 = *(int *)(param_2 + 0x14) + -1;" (assignment_expression "iVar3 = *(int *)(param_2 + 0x14) + -1" (identifier "iVar3") (= "=") (binary_expression "*(int *)(param_2 + 0x14) + -1" (pointer_expression "*(int *)(param_2 + 0x14)" (* "*") (cast_expression "(int *)(param_2 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "puVar2 = (undefined4 *)(iVar3 * 0x10 + *(int *)(param_2 + 0x10));" (assignment_expression "puVar2 = (undefined4 *)(iVar3 * 0x10 + *(int *)(param_2 + 0x10))" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(iVar3 * 0x10 + *(int *)(param_2 + 0x10))" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 * 0x10 + *(int *)(param_2 + 0x10))" (( "(") (binary_expression "iVar3 * 0x10 + *(int *)(param_2 + 0x10)" (binary_expression "iVar3 * 0x10" (identifier "iVar3") (* "*") (number_literal "0x10")) (+ "+") (pointer_expression "*(int *)(param_2 + 0x10)" (* "*") (cast_expression "(int *)(param_2 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")"))))) () ")")))) (; ";")) (if_statement "if (-1 < iVar3) {\nLAB_000876f7:\n      iVar1 = sqlite3_stricmp(*puVar2,param_3);\n      if (iVar1 == 0) {\n        iVar1 = iVar3 << 4;\n        if (iVar3 == 1) {\n          piVar5 = &local_138;\n          for (iVar3 = 0x46; iVar3 != 0; iVar3 = iVar3 + -1) {\n            *piVar5 = 0;\n            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;\n          }\n          local_138 = param_2;\n          if (*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0) {\n            iVar3 = FUN_00086310(&local_13c,0,0x21e);\n            if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }\n            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);\n            uVar4 = 0;\n            if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          FUN_00054190();\n          iVar1 = 0x10;\n        }\n        goto LAB_00087713;\n      }\n      if (iVar3 != 0) {\n        iVar3 = iVar3 + -1;\n        puVar2 = puVar2 + -4;\n        if (iVar3 == -1) goto LAB_00087760;\n        goto LAB_000876f7;\n      }\n      iVar3 = sqlite3_stricmp(&DAT_000d1493,param_3);\n      if (iVar3 != 0) goto LAB_00087760;\n      iVar1 = 0;\nLAB_00087713:\n      uVar4 = *(undefined4 *)(*(int *)(param_2 + 0x10) + 4 + iVar1);\n      goto LAB_0008771e;\n    }" (if "if") (parenthesized_expression "(-1 < iVar3)" (( "(") (binary_expression "-1 < iVar3" (number_literal "-1") (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\nLAB_000876f7:\n      iVar1 = sqlite3_stricmp(*puVar2,param_3);\n      if (iVar1 == 0) {\n        iVar1 = iVar3 << 4;\n        if (iVar3 == 1) {\n          piVar5 = &local_138;\n          for (iVar3 = 0x46; iVar3 != 0; iVar3 = iVar3 + -1) {\n            *piVar5 = 0;\n            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;\n          }\n          local_138 = param_2;\n          if (*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0) {\n            iVar3 = FUN_00086310(&local_13c,0,0x21e);\n            if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }\n            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);\n            uVar4 = 0;\n            if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          FUN_00054190();\n          iVar1 = 0x10;\n        }\n        goto LAB_00087713;\n      }\n      if (iVar3 != 0) {\n        iVar3 = iVar3 + -1;\n        puVar2 = puVar2 + -4;\n        if (iVar3 == -1) goto LAB_00087760;\n        goto LAB_000876f7;\n      }\n      iVar3 = sqlite3_stricmp(&DAT_000d1493,param_3);\n      if (iVar3 != 0) goto LAB_00087760;\n      iVar1 = 0;\nLAB_00087713:\n      uVar4 = *(undefined4 *)(*(int *)(param_2 + 0x10) + 4 + iVar1);\n      goto LAB_0008771e;\n    }" ({ "{") (labeled_statement "LAB_000876f7:\n      iVar1 = sqlite3_stricmp(*puVar2,param_3);" (statement_identifier "LAB_000876f7") (: ":") (expression_statement "iVar1 = sqlite3_stricmp(*puVar2,param_3);" (assignment_expression "iVar1 = sqlite3_stricmp(*puVar2,param_3)" (identifier "iVar1") (= "=") (call_expression "sqlite3_stricmp(*puVar2,param_3)" (identifier "sqlite3_stricmp") (argument_list "(*puVar2,param_3)" (( "(") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (, ",") (identifier "param_3") () ")")))) (; ";"))) (if_statement "if (iVar1 == 0) {\n        iVar1 = iVar3 << 4;\n        if (iVar3 == 1) {\n          piVar5 = &local_138;\n          for (iVar3 = 0x46; iVar3 != 0; iVar3 = iVar3 + -1) {\n            *piVar5 = 0;\n            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;\n          }\n          local_138 = param_2;\n          if (*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0) {\n            iVar3 = FUN_00086310(&local_13c,0,0x21e);\n            if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }\n            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);\n            uVar4 = 0;\n            if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          FUN_00054190();\n          iVar1 = 0x10;\n        }\n        goto LAB_00087713;\n      }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        iVar1 = iVar3 << 4;\n        if (iVar3 == 1) {\n          piVar5 = &local_138;\n          for (iVar3 = 0x46; iVar3 != 0; iVar3 = iVar3 + -1) {\n            *piVar5 = 0;\n            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;\n          }\n          local_138 = param_2;\n          if (*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0) {\n            iVar3 = FUN_00086310(&local_13c,0,0x21e);\n            if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }\n            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);\n            uVar4 = 0;\n            if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          FUN_00054190();\n          iVar1 = 0x10;\n        }\n        goto LAB_00087713;\n      }" ({ "{") (expression_statement "iVar1 = iVar3 << 4;" (assignment_expression "iVar1 = iVar3 << 4" (identifier "iVar1") (= "=") (binary_expression "iVar3 << 4" (identifier "iVar3") (<< "<<") (number_literal "4"))) (; ";")) (if_statement "if (iVar3 == 1) {\n          piVar5 = &local_138;\n          for (iVar3 = 0x46; iVar3 != 0; iVar3 = iVar3 + -1) {\n            *piVar5 = 0;\n            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;\n          }\n          local_138 = param_2;\n          if (*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0) {\n            iVar3 = FUN_00086310(&local_13c,0,0x21e);\n            if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }\n            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);\n            uVar4 = 0;\n            if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          FUN_00054190();\n          iVar1 = 0x10;\n        }" (if "if") (parenthesized_expression "(iVar3 == 1)" (( "(") (binary_expression "iVar3 == 1" (identifier "iVar3") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n          piVar5 = &local_138;\n          for (iVar3 = 0x46; iVar3 != 0; iVar3 = iVar3 + -1) {\n            *piVar5 = 0;\n            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;\n          }\n          local_138 = param_2;\n          if (*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0) {\n            iVar3 = FUN_00086310(&local_13c,0,0x21e);\n            if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }\n            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);\n            uVar4 = 0;\n            if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }\n            goto LAB_0008771e;\n          }\nLAB_0008779f:\n          FUN_00054190();\n          iVar1 = 0x10;\n        }" ({ "{") (expression_statement "piVar5 = &local_138;" (assignment_expression "piVar5 = &local_138" (identifier "piVar5") (= "=") (pointer_expression "&local_138" (& "&") (identifier "local_138"))) (; ";")) (for_statement "for (iVar3 = 0x46; iVar3 != 0; iVar3 = iVar3 + -1) {\n            *piVar5 = 0;\n            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;\n          }" (for "for") (( "(") (assignment_expression "iVar3 = 0x46" (identifier "iVar3") (= "=") (number_literal "0x46")) (; ";") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar3 = iVar3 + -1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n            *piVar5 = 0;\n            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;\n          }" ({ "{") (expression_statement "*piVar5 = 0;" (assignment_expression "*piVar5 = 0" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar5 = piVar5 + (uint)bVar6 * -2 + 1;" (assignment_expression "piVar5 = piVar5 + (uint)bVar6 * -2 + 1" (identifier "piVar5") (= "=") (binary_expression "piVar5 + (uint)bVar6 * -2 + 1" (binary_expression "piVar5 + (uint)bVar6 * -2" (identifier "piVar5") (+ "+") (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar6")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "local_138 = param_2;" (assignment_expression "local_138 = param_2" (identifier "local_138") (= "=") (identifier "param_2")) (; ";")) (if_statement "if (*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0) {\n            iVar3 = FUN_00086310(&local_13c,0,0x21e);\n            if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }\n            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);\n            uVar4 = 0;\n            if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }\n            goto LAB_0008771e;\n          }" (if "if") (parenthesized_expression "(*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0)" (( "(") (binary_expression "*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0" (pointer_expression "*(int *)(*(int *)(param_2 + 0x10) + 0x14)" (* "*") (cast_expression "(int *)(*(int *)(param_2 + 0x10) + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_2 + 0x10) + 0x14)" (( "(") (binary_expression "*(int *)(param_2 + 0x10) + 0x14" (pointer_expression "*(int *)(param_2 + 0x10)" (* "*") (cast_expression "(int *)(param_2 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (number_literal "0x14")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            iVar3 = FUN_00086310(&local_13c,0,0x21e);\n            if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }\n            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);\n            uVar4 = 0;\n            if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }\n            goto LAB_0008771e;\n          }" ({ "{") (expression_statement "iVar3 = FUN_00086310(&local_13c,0,0x21e);" (assignment_expression "iVar3 = FUN_00086310(&local_13c,0,0x21e)" (identifier "iVar3") (= "=") (call_expression "FUN_00086310(&local_13c,0,0x21e)" (identifier "FUN_00086310") (argument_list "(&local_13c,0,0x21e)" (( "(") (pointer_expression "&local_13c" (& "&") (identifier "local_13c")) (, ",") (number_literal "0") (, ",") (number_literal "0x21e") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }\n            else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;\n              iVar3 = FUN_0004ad20(0);\n              if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }\n              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }\n            }" ({ "{") (expression_statement "*(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;" (assignment_expression "*(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c" (pointer_expression "*(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_2 + 0x10) + 0x14)" (( "(") (binary_expression "*(int *)(param_2 + 0x10) + 0x14" (pointer_expression "*(int *)(param_2 + 0x10)" (* "*") (cast_expression "(int *)(param_2 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "local_13c")) (; ";")) (expression_statement "iVar3 = FUN_0004ad20(0);" (assignment_expression "iVar3 = FUN_0004ad20(0)" (identifier "iVar3") (= "=") (call_expression "FUN_0004ad20(0)" (identifier "FUN_0004ad20") (argument_list "(0)" (( "(") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar3 != 7) {\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }" (if "if") (parenthesized_expression "(iVar3 != 7)" (( "(") (binary_expression "iVar3 != 7" (identifier "iVar3") (!= "!=") (number_literal "7")) () ")")) (compound_statement "{\n                if (local_134 != 0) {\n                  FUN_00023410();\n                }\n                goto LAB_0008779f;\n              }" ({ "{") (if_statement "if (local_134 != 0) {\n                  FUN_00023410();\n                }" (if "if") (parenthesized_expression "(local_134 != 0)" (( "(") (binary_expression "local_134 != 0" (identifier "local_134") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                  FUN_00023410();\n                }" ({ "{") (expression_statement "FUN_00023410();" (call_expression "FUN_00023410()" (identifier "FUN_00023410") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (goto_statement "goto LAB_0008779f;" (goto "goto") (statement_identifier "LAB_0008779f") (; ";")) (} "}"))) (if_statement "if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {\n                FUN_000265f0();\n              }" (if "if") (parenthesized_expression "((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0)" (( "(") (binary_expression "(*(uint *)(param_2 + 0x4c) & 0xffff00) == 0" (parenthesized_expression "(*(uint *)(param_2 + 0x4c) & 0xffff00)" (( "(") (binary_expression "*(uint *)(param_2 + 0x4c) & 0xffff00" (pointer_expression "*(uint *)(param_2 + 0x4c)" (* "*") (cast_expression "(uint *)(param_2 + 0x4c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x4c)" (( "(") (binary_expression "param_2 + 0x4c" (identifier "param_2") (+ "+") (number_literal "0x4c")) () ")")))) (& "&") (number_literal "0xffff00")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                FUN_000265f0();\n              }" ({ "{") (expression_statement "FUN_000265f0();" (call_expression "FUN_000265f0()" (identifier "FUN_000265f0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }" (else "else") (compound_statement "{\n              FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");\n              local_12c = iVar3;\n            }" ({ "{") (expression_statement "FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables");" (call_expression "FUN_0003d470(&local_138,\n                           "unable to open a temporary database file for storing temporary tables")" (identifier "FUN_0003d470") (argument_list "(&local_138,\n                           "unable to open a temporary database file for storing temporary tables")" (( "(") (pointer_expression "&local_138" (& "&") (identifier "local_138")) (, ",") (string_literal ""unable to open a temporary database file for storing temporary tables"" (" """) (string_content "unable to open a temporary database file for storing temporary tables") (" """)) () ")"))) (; ";")) (expression_statement "local_12c = iVar3;" (assignment_expression "local_12c = iVar3" (identifier "local_12c") (= "=") (identifier "iVar3")) (; ";")) (} "}")))) (expression_statement "FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);" (call_expression "FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134)" (identifier "FUN_00050420") (argument_list "(param_1,local_12c,&DAT_000d1760,local_134)" (( "(") (identifier "param_1") (, ",") (identifier "local_12c") (, ",") (pointer_expression "&DAT_000d1760" (& "&") (identifier "DAT_000d1760")) (, ",") (identifier "local_134") () ")"))) (; ";")) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (if_statement "if (local_134 == 0) {\n              FUN_00054190();\n            }\n            else {\n              FUN_00023410();\n              FUN_00054190();\n            }" (if "if") (parenthesized_expression "(local_134 == 0)" (( "(") (binary_expression "local_134 == 0" (identifier "local_134") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n              FUN_00054190();\n            }" ({ "{") (expression_statement "FUN_00054190();" (call_expression "FUN_00054190()" (identifier "FUN_00054190") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")) (else_clause "else {\n              FUN_00023410();\n              FUN_00054190();\n            }" (else "else") (compound_statement "{\n              FUN_00023410();\n              FUN_00054190();\n            }" ({ "{") (expression_statement "FUN_00023410();" (call_expression "FUN_00023410()" (identifier "FUN_00023410") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_00054190();" (call_expression "FUN_00054190()" (identifier "FUN_00054190") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (goto_statement "goto LAB_0008771e;" (goto "goto") (statement_identifier "LAB_0008771e") (; ";")) (} "}"))) (labeled_statement "LAB_0008779f:\n          FUN_00054190();" (statement_identifier "LAB_0008779f") (: ":") (expression_statement "FUN_00054190();" (call_expression "FUN_00054190()" (identifier "FUN_00054190") (argument_list "()" (( "(") () ")"))) (; ";"))) (expression_statement "iVar1 = 0x10;" (assignment_expression "iVar1 = 0x10" (identifier "iVar1") (= "=") (number_literal "0x10")) (; ";")) (} "}"))) (goto_statement "goto LAB_00087713;" (goto "goto") (statement_identifier "LAB_00087713") (; ";")) (} "}"))) (if_statement "if (iVar3 != 0) {\n        iVar3 = iVar3 + -1;\n        puVar2 = puVar2 + -4;\n        if (iVar3 == -1) goto LAB_00087760;\n        goto LAB_000876f7;\n      }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        iVar3 = iVar3 + -1;\n        puVar2 = puVar2 + -4;\n        if (iVar3 == -1) goto LAB_00087760;\n        goto LAB_000876f7;\n      }" ({ "{") (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "puVar2 = puVar2 + -4;" (assignment_expression "puVar2 = puVar2 + -4" (identifier "puVar2") (= "=") (binary_expression "puVar2 + -4" (identifier "puVar2") (+ "+") (number_literal "-4"))) (; ";")) (if_statement "if (iVar3 == -1) goto LAB_00087760;" (if "if") (parenthesized_expression "(iVar3 == -1)" (( "(") (binary_expression "iVar3 == -1" (identifier "iVar3") (== "==") (number_literal "-1")) () ")")) (goto_statement "goto LAB_00087760;" (goto "goto") (statement_identifier "LAB_00087760") (; ";"))) (goto_statement "goto LAB_000876f7;" (goto "goto") (statement_identifier "LAB_000876f7") (; ";")) (} "}"))) (expression_statement "iVar3 = sqlite3_stricmp(&DAT_000d1493,param_3);" (assignment_expression "iVar3 = sqlite3_stricmp(&DAT_000d1493,param_3)" (identifier "iVar3") (= "=") (call_expression "sqlite3_stricmp(&DAT_000d1493,param_3)" (identifier "sqlite3_stricmp") (argument_list "(&DAT_000d1493,param_3)" (( "(") (pointer_expression "&DAT_000d1493" (& "&") (identifier "DAT_000d1493")) (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) goto LAB_00087760;" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00087760;" (goto "goto") (statement_identifier "LAB_00087760") (; ";"))) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_00087713:\n      uVar4 = *(undefined4 *)(*(int *)(param_2 + 0x10) + 4 + iVar1);" (statement_identifier "LAB_00087713") (: ":") (expression_statement "uVar4 = *(undefined4 *)(*(int *)(param_2 + 0x10) + 4 + iVar1);" (assignment_expression "uVar4 = *(undefined4 *)(*(int *)(param_2 + 0x10) + 4 + iVar1)" (identifier "uVar4") (= "=") (pointer_expression "*(undefined4 *)(*(int *)(param_2 + 0x10) + 4 + iVar1)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_2 + 0x10) + 4 + iVar1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_2 + 0x10) + 4 + iVar1)" (( "(") (binary_expression "*(int *)(param_2 + 0x10) + 4 + iVar1" (binary_expression "*(int *)(param_2 + 0x10) + 4" (pointer_expression "*(int *)(param_2 + 0x10)" (* "*") (cast_expression "(int *)(param_2 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (number_literal "4")) (+ "+") (identifier "iVar1")) () ")"))))) (; ";"))) (goto_statement "goto LAB_0008771e;" (goto "goto") (statement_identifier "LAB_0008771e") (; ";")) (} "}"))) (} "}"))) (labeled_statement "LAB_00087760:\n  uVar4 = 0;" (statement_identifier "LAB_00087760") (: ":") (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";"))) (expression_statement "FUN_00050420(param_1,1,"unknown database %s",param_3);" (call_expression "FUN_00050420(param_1,1,"unknown database %s",param_3)" (identifier "FUN_00050420") (argument_list "(param_1,1,"unknown database %s",param_3)" (( "(") (identifier "param_1") (, ",") (number_literal "1") (, ",") (string_literal ""unknown database %s"" (" """) (string_content "unknown database %s") (" """)) (, ",") (identifier "param_3") () ")"))) (; ";")) (labeled_statement "LAB_0008771e:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000d1450();\n  }" (statement_identifier "LAB_0008771e") (: ":") (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000d1450();\n  }" (if "if") (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_000d1450();\n  }" ({ "{") (expression_statement "FUN_000d1450();" (call_expression "FUN_000d1450()" (identifier "FUN_000d1450") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return uVar4;" (return "return") (identifier "uVar4") (; ";")) (} "}")))

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

type_3 * __regparm3 findBtree(type_6 *pErrorDb,type_6 *pDb,char *var_2)

{
  int var_15;
  type_1 var_9;
  int var_5;
  int var_3;
  type_2 *var_14;
  type_3 *pBVar6;
  type_4 *pPVar7;
  int var_1;
  type_5 bVar8;
  type_3 *local_13c;
  type_4 sParse;
  
  bVar8 = 0;
  var_15 = *(int *)(var_1 + 0x14);
  if (var_2 != (char *)0x0) {
    var_3 = pDb->nDb + -1;
    var_14 = pDb->aDb + var_3;
    if (-1 < var_3) {
LAB_000876f7:
      var_5 = var_4(var_14->zDbSName,var_2);
      if (var_5 == 0) {
        var_5 = var_3 << 4;
        if (var_3 == 1) {
          pPVar7 = &sParse;
          for (var_3 = 0x46; var_3 != 0; var_3 = var_3 + -1) {
            pPVar7->db = (type_6 *)0x0;
            pPVar7 = (type_4 *)((int)pPVar7 + (type_1)bVar8 * -8 + 4);
          }
          sParse.db = pDb;
          if (pDb->aDb[1].pBt == (type_3 *)0x0) {
            var_3 = var_6(pDb->pVfs,(char *)0x0,pDb,&local_13c,0,0x21e);
            if (var_3 == 0) {
              pDb->aDb[1].pBt = local_13c;
              var_3 = var_7(local_13c,pDb->nextPagesize,0,0);
              if (var_3 != 7) {
                if (sParse.zErrMsg != (char *)0x0) {
                  var_8(pErrorDb,sParse.zErrMsg);
                }
                goto LAB_0008779f;
              }
              var_9._0_1_ = pDb->temp_store;
              var_9._1_1_ = pDb->mallocFailed;
              var_9._2_1_ = pDb->bBenignMalloc;
              var_9._3_1_ = pDb->dfltLockMode;
              if ((var_9 & 0xffff00) == 0) {
                var_10(pDb);
              }
            }
            else {
              var_11(&sParse,
                              "unable to open a temporary database file for storing temporary tables"
                             );
              sParse.rc = var_3;
            }
            var_12(pErrorDb,sParse.rc,"%s",sParse.zErrMsg);
            pBVar6 = (type_3 *)0x0;
            if (sParse.zErrMsg == (char *)0x0) {
              var_13(&sParse);
            }
            else {
              var_8(pErrorDb,sParse.zErrMsg);
              var_13(&sParse);
            }
            goto LAB_0008771e;
          }
LAB_0008779f:
          var_13(&sParse);
          var_5 = 0x10;
        }
        goto LAB_00087713;
      }
      if (var_3 != 0) {
        var_3 = var_3 + -1;
        var_14 = var_14 + -1;
        if (var_3 == -1) goto LAB_00087760;
        goto LAB_000876f7;
      }
      var_3 = var_4("main",var_2);
      if (var_3 != 0) goto LAB_00087760;
      var_5 = 0;
LAB_00087713:
      pBVar6 = *(type_3 **)((int)&pDb->aDb->pBt + var_5);
      goto LAB_0008771e;
    }
  }
LAB_00087760:
  pBVar6 = (type_3 *)0x0;
  var_12(pErrorDb,1,"unknown database %s",var_2);
LAB_0008771e:
  if (var_15 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_16();
  }
  return pBVar6;
}


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

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

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

{
  int iVar1;
  undefined4 *puVar2;
  int iVar3;
  undefined4 uVar4;
  int *piVar5;
  int in_GS_OFFSET;
  byte bVar6;
  undefined4 local_13c;
  int local_138;
  int local_134;
  int local_12c;
  int local_20;
  undefined4 uStack_14;
  
  bVar6 = 0;
  uStack_14 = 0x8769b;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_3 != 0) {
    iVar3 = *(int *)(param_2 + 0x14) + -1;
    puVar2 = (undefined4 *)(iVar3 * 0x10 + *(int *)(param_2 + 0x10));
    if (-1 < iVar3) {
LAB_000876f7:
      iVar1 = sqlite3_stricmp(*puVar2,param_3);
      if (iVar1 == 0) {
        iVar1 = iVar3 << 4;
        if (iVar3 == 1) {
          piVar5 = &local_138;
          for (iVar3 = 0x46; iVar3 != 0; iVar3 = iVar3 + -1) {
            *piVar5 = 0;
            piVar5 = piVar5 + (uint)bVar6 * -2 + 1;
          }
          local_138 = param_2;
          if (*(int *)(*(int *)(param_2 + 0x10) + 0x14) == 0) {
            iVar3 = FUN_00086310(&local_13c,0,0x21e);
            if (iVar3 == 0) {
              *(undefined4 *)(*(int *)(param_2 + 0x10) + 0x14) = local_13c;
              iVar3 = FUN_0004ad20(0);
              if (iVar3 != 7) {
                if (local_134 != 0) {
                  FUN_00023410();
                }
                goto LAB_0008779f;
              }
              if ((*(uint *)(param_2 + 0x4c) & 0xffff00) == 0) {
                FUN_000265f0();
              }
            }
            else {
              FUN_0003d470(&local_138,
                           "unable to open a temporary database file for storing temporary tables");
              local_12c = iVar3;
            }
            FUN_00050420(param_1,local_12c,&DAT_000d1760,local_134);
            uVar4 = 0;
            if (local_134 == 0) {
              FUN_00054190();
            }
            else {
              FUN_00023410();
              FUN_00054190();
            }
            goto LAB_0008771e;
          }
LAB_0008779f:
          FUN_00054190();
          iVar1 = 0x10;
        }
        goto LAB_00087713;
      }
      if (iVar3 != 0) {
        iVar3 = iVar3 + -1;
        puVar2 = puVar2 + -4;
        if (iVar3 == -1) goto LAB_00087760;
        goto LAB_000876f7;
      }
      iVar3 = sqlite3_stricmp(&DAT_000d1493,param_3);
      if (iVar3 != 0) goto LAB_00087760;
      iVar1 = 0;
LAB_00087713:
      uVar4 = *(undefined4 *)(*(int *)(param_2 + 0x10) + 4 + iVar1);
      goto LAB_0008771e;
    }
  }
LAB_00087760:
  uVar4 = 0;
  FUN_00050420(param_1,1,"unknown database %s",param_3);
LAB_0008771e:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_000d1450();
  }
  return uVar4;
}

