
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Removing unreachable block (ram,0x0005e857) */

int unixOpen(sqlite3_vfs *pVfs,char *zPath,sqlite3_file *pFile,int flags,int *pOutFlags)

{
  ushort *puVar1;
  int iVar2;
  char cVar3;
  unixInodeInfo *puVar4;
  sqlite3_io_methods *psVar5;
  uint uVar6;
  __pid_t _Var7;
  int iVar8;
  sqlite3_io_methods *psVar9;
  uint f;
  size_t sVar10;
  sqlite3_io_methods *psVar11;
  int iVar12;
  char *pcVar13;
  int *piVar14;
  sqlite3_mutex *psVar15;
  uint uVar16;
  int lineno;
  int lineno_00;
  UnixUnusedFd **ppUVar17;
  byte *pbVar18;
  uint uVar19;
  byte *pbVar20;
  undefined4 *puVar21;
  __gid_t _Var22;
  int in_GS_OFFSET;
  bool bVar23;
  bool bVar24;
  byte bVar25;
  uint local_4cc;
  sqlite3_io_methods *local_4c8;
  char *local_4b4;
  __uid_t local_4ac;
  mode_t local_4a8;
  uint local_4a4;
  unixFileId fileId;
  stat sStat;
  char zDb [513];
  char zTmpname [514];
  
  bVar25 = 0;
  local_4cc = flags & 8;
  local_4a4 = flags & 1;
  uVar19 = flags & 2;
  bVar24 = false;
  iVar2 = *(int *)(in_GS_OFFSET + 0x14);
  uVar6 = flags & 0xfff00;
  if ((flags & 4U) != 0) {
    bVar24 = (uVar6 == 0x4000 || uVar6 == 0x800) || uVar6 == 0x80000;
  }
  _Var7 = getpid();
  if (_Var7 != randomnessPid) {
    randomnessPid = getpid();
    sqlite3_randomness(0,(void *)0x0);
  }
  pFile->pMethods = (sqlite3_io_methods *)0x0;
  pFile[0x14].pMethods = (sqlite3_io_methods *)0x0;
  puVar21 = (undefined4 *)((uint)(pFile + 1) & 0xfffffffc);
  for (uVar16 = (uint)((int)pFile + (0x54 - (int)((uint)(pFile + 1) & 0xfffffffc))) >> 2;
      uVar16 != 0; uVar16 = uVar16 - 1) {
    *puVar21 = 0;
    puVar21 = puVar21 + (uint)bVar25 * -2 + 1;
  }
  if (uVar6 == 0x100) {
    sqlite3_mutex_enter(unixBigLock);
    if ((inodeList != (unixInodeInfo *)0x0) &&
       (iVar8 = (*aSyscall[4].pCurrent)(zPath,&sStat), puVar4 = inodeList, iVar8 == 0)) {
      for (; puVar4 != (unixInodeInfo *)0x0; puVar4 = puVar4->pNext) {
        if ((*(_func_int_sqlite3_file_ptr **)((int)&(puVar4->fileId).dev + 4) == sStat.st_dev._4_4_
             && (int)(puVar4->fileId).dev == (int)sStat.st_dev) &&
           (sStat.st_ino._4_4_ ==
            *(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 **)
             ((int)&(puVar4->fileId).ino + 4) &&
            (_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino ==
            *(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 **)&(puVar4->fileId).ino)) {
          sqlite3_mutex_enter(puVar4->pLockMutex);
          psVar9 = (sqlite3_io_methods *)puVar4->pUnused;
          if (psVar9 == (sqlite3_io_methods *)0x0) goto LAB_0005ea3a;
          if ((_func_int_sqlite3_file_ptr *)(flags & 3U) != psVar9->xClose) goto LAB_0005ea33;
          ppUVar17 = &puVar4->pUnused;
          goto LAB_0005ee53;
        }
      }
    }
    sqlite3_mutex_leave(unixBigLock);
    goto LAB_0005ea54;
  }
  local_4c8 = (sqlite3_io_methods *)&DAT_ffffffff;
  local_4b4 = zPath;
  if (zPath == (char *)0x0) {
    local_4b4 = zTmpname;
    iVar8 = unixGetTempname(pVfs->mxPathname,local_4b4);
    if (iVar8 != 0) goto LAB_0005e8fb;
  }
  goto LAB_0005e781;
LAB_0005ea3a:
  sqlite3_mutex_leave(puVar4->pLockMutex);
  sqlite3_mutex_leave(unixBigLock);
LAB_0005ea54:
  psVar9 = (sqlite3_io_methods *)sqlite3_malloc64(0xc);
  if (psVar9 == (sqlite3_io_methods *)0x0) {
    iVar8 = 7;
    goto LAB_0005e8fb;
  }
  local_4c8 = (sqlite3_io_methods *)&DAT_ffffffff;
  goto LAB_0005ee78;
  while ((_func_int_sqlite3_file_ptr *)(flags & 3U) != psVar9->xClose) {
LAB_0005ea33:
    psVar11 = psVar9;
    psVar9 = (sqlite3_io_methods *)psVar11->xRead;
    if (psVar9 == (sqlite3_io_methods *)0x0) goto LAB_0005ea3a;
  }
  ppUVar17 = (UnixUnusedFd **)&psVar11->xRead;
LAB_0005ee53:
  *ppUVar17 = (UnixUnusedFd *)psVar9->xRead;
  sqlite3_mutex_leave(puVar4->pLockMutex);
  sqlite3_mutex_leave(unixBigLock);
  local_4c8 = (sqlite3_io_methods *)psVar9->iVersion;
LAB_0005ee78:
  pFile[7].pMethods = psVar9;
  local_4b4 = zPath;
LAB_0005e781:
  uVar16 = uVar19;
  if ((flags & 4U) != 0) {
    uVar16 = uVar19 | 0x40;
  }
  if ((flags & 0x10U) != 0) {
    uVar16 = uVar16 | 0x20080;
  }
  if (-1 < (int)local_4c8) goto LAB_0005e7af;
  f = uVar16 | 0x28000;
  if ((flags & 0x80800U) == 0) {
    if (local_4cc == 0) {
      if (((flags & 0x40U) != 0) &&
         (pcVar13 = sqlite3_uri_parameter(local_4b4,"modeof"), pcVar13 != (char *)0x0))
      goto LAB_0005eb2c;
LAB_0005ebd9:
      local_4c8 = (sqlite3_io_methods *)robust_open(local_4b4,f,0);
      if ((int)local_4c8 < 0) {
        local_4ac = 0;
        local_4a8 = 0;
        _Var22 = 0;
        goto LAB_0005ec06;
      }
      goto LAB_0005e7af;
    }
    local_4c8 = (sqlite3_io_methods *)robust_open(local_4b4,f,0x180);
    if (-1 < (int)local_4c8) goto LAB_0005e7af;
    _Var22 = 0;
    local_4ac = 0;
    local_4a8 = 0x180;
LAB_0005ec06:
    piVar14 = __errno_location();
    iVar8 = *piVar14;
    if ((bVar24) && (iVar8 == 0xd)) {
      iVar8 = (*aSyscall[2].pCurrent)(local_4b4,0);
      if (iVar8 == 0) {
        iVar8 = *piVar14;
        goto LAB_0005ec40;
      }
      iVar8 = 0x608;
      iVar12 = sqlite3CantopenError(0x9ae7);
      unixLogErrorAtLine(iVar12,"open",local_4b4,0x9ae7);
    }
    else {
LAB_0005ec40:
      if ((uVar19 != 0) && (iVar8 != 0x15)) {
        flags = flags & 0xfffffff9U | 1;
        local_4c8 = (sqlite3_io_methods *)
                    robust_open(local_4b4,uVar16 & 0xffffffbd | 0x28000,local_4a8);
        if (-1 < (int)local_4c8) {
          local_4a4 = 1;
          goto LAB_0005eb78;
        }
      }
      iVar8 = sqlite3CantopenError(0x9ae7);
      iVar8 = unixLogErrorAtLine(iVar8,"open",local_4b4,0x9ae7);
      if (iVar8 == 0) goto LAB_0005e8fb;
    }
LAB_0005ee17:
    sqlite3_free(pFile[7].pMethods);
  }
  else {
    if (local_4b4 == (char *)0x0) {
      iVar8 = -1;
    }
    else {
      sVar10 = strlen(local_4b4);
      iVar8 = (sVar10 & 0x3fffffff) - 1;
    }
    cVar3 = local_4b4[iVar8];
    while (cVar3 != '-') {
      if ((cVar3 == '.') || (iVar8 == 0)) goto LAB_0005ebd9;
      iVar8 = iVar8 + -1;
      cVar3 = local_4b4[iVar8];
    }
    pcVar13 = zDb;
    __memcpy_chk(pcVar13,local_4b4,iVar8,0x201);
    zDb[iVar8] = '\0';
LAB_0005eb2c:
    iVar12 = (*aSyscall[4].pCurrent)(pcVar13,&sStat);
    iVar8 = 0x70a;
    if (iVar12 != 0) goto LAB_0005e8fb;
    local_4a8 = sStat.st_mode & 0x1ff;
    local_4ac = sStat.st_uid;
    local_4c8 = (sqlite3_io_methods *)robust_open(local_4b4,f,local_4a8);
    _Var22 = sStat.st_gid;
    if ((int)local_4c8 < 0) goto LAB_0005ec06;
LAB_0005eb78:
    if (((local_4a8 != 0) && ((flags & 0x80800U) != 0)) &&
       (iVar8 = (*aSyscall[0x15].pCurrent)(), iVar8 == 0)) {
      (*aSyscall[0x14].pCurrent)(local_4c8,local_4ac,_Var22);
    }
LAB_0005e7af:
    if (pOutFlags != (int *)0x0) {
      *pOutFlags = flags;
    }
    psVar9 = pFile[7].pMethods;
    if (psVar9 != (sqlite3_io_methods *)0x0) {
      psVar9->iVersion = (int)local_4c8;
      psVar9->xClose = (_func_int_sqlite3_file_ptr *)(flags & 3);
    }
    if (local_4cc != 0) {
      (*aSyscall[0x10].pCurrent)(local_4b4);
      local_4cc = 0x20;
    }
    psVar9 = sqlite3Config.szMmap._4_4_;
    uVar19 = local_4cc | 2;
    if (local_4a4 == 0) {
      uVar19 = local_4cc;
    }
    uVar16 = uVar19 | 0x80;
    if (uVar6 == 0x100) {
      uVar16 = uVar19;
    }
    local_4cc = uVar16 | 8;
    if (!bVar24) {
      local_4cc = uVar16;
    }
    if ((flags & 0x40U) == 0) {
      *(short *)((int)&pFile[4].pMethods + 2) = (short)local_4cc;
      pFile[3].pMethods = local_4c8;
      pFile[8].pMethods = (sqlite3_io_methods *)zPath;
      pFile[1].pMethods = (sqlite3_io_methods *)pVfs;
      psVar11 = (sqlite3_io_methods *)sqlite3Config.szMmap;
      pFile[0x11].pMethods = psVar9;
      pFile[0x10].pMethods = psVar11;
      pcVar13 = (char *)0x0;
    }
    else {
      local_4cc = local_4cc | 0x40;
      pFile[3].pMethods = local_4c8;
      pFile[8].pMethods = (sqlite3_io_methods *)zPath;
      *(short *)((int)&pFile[4].pMethods + 2) = (short)local_4cc;
      pFile[1].pMethods = (sqlite3_io_methods *)pVfs;
      psVar11 = (sqlite3_io_methods *)sqlite3Config.szMmap;
      pFile[0x11].pMethods = psVar9;
      pFile[0x10].pMethods = psVar11;
      pcVar13 = zPath;
    }
    iVar8 = sqlite3_uri_boolean(pcVar13,"psow",1);
    bVar24 = iVar8 == 0;
    if (!bVar24) {
      puVar1 = (ushort *)((int)&pFile[4].pMethods + 2);
      *puVar1 = *puVar1 | 0x10;
      bVar24 = *puVar1 == 0;
    }
    bVar23 = false;
    iVar8 = 10;
    pbVar18 = (byte *)pVfs->zName;
    pbVar20 = (byte *)"unix-excl";
    do {
      if (iVar8 == 0) break;
      iVar8 = iVar8 + -1;
      bVar23 = *pbVar18 < *pbVar20;
      bVar24 = *pbVar18 == *pbVar20;
      pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1;
      pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1;
    } while (bVar24);
    if ((!bVar23 && !bVar24) == bVar23) {
      puVar1 = (ushort *)((int)&pFile[4].pMethods + 2);
      *puVar1 = *puVar1 | 1;
    }
    if ((local_4cc & 0x80) == 0) {
                    /* WARNING: Load size is inaccurate */
      psVar9 = (sqlite3_io_methods *)(**pVfs->pAppData)(zPath,pFile);
      psVar11 = &posixIoMethods;
      if (psVar9 == &posixIoMethods) {
        sqlite3_mutex_enter(unixBigLock);
        iVar8 = (*aSyscall[5].pCurrent)(pFile[3].pMethods,&sStat);
        psVar9 = (sqlite3_io_methods *)inodeList;
        if (iVar8 == 0) {
          for (; psVar9 != (sqlite3_io_methods *)0x0;
              psVar9 = (sqlite3_io_methods *)psVar9->xSectorSize) {
            if ((((int)sStat.st_dev == (int)((unixFileId *)&psVar9->iVersion)->dev) &&
                (sStat.st_dev._4_4_ == psVar9->xClose)) &&
               (((_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino ==
                 psVar9->xRead && (sStat.st_ino._4_4_ == psVar9->xWrite)))) {
              psVar9->xCheckReservedLock = psVar9->xCheckReservedLock + 1;
              psVar5 = (sqlite3_io_methods *)inodeList;
              goto LAB_0005ed6d;
            }
          }
          psVar9 = (sqlite3_io_methods *)sqlite3_malloc64(0x34);
          if (psVar9 != (sqlite3_io_methods *)0x0) {
            psVar9->xTruncate = (_func_int_sqlite3_file_ptr_sqlite3_int64 *)0x0;
            psVar9->xDeviceCharacteristics = (_func_int_sqlite3_file_ptr *)0x0;
            puVar21 = (undefined4 *)((uint)&psVar9->xSync & 0xfffffffc);
            uVar6 = (uint)((int)psVar9 + (0x34 - (int)puVar21)) >> 2;
            for (; uVar6 != 0; uVar6 = uVar6 - 1) {
              *puVar21 = 0;
              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;
            }
            *(int *)&((unixFileId *)&psVar9->iVersion)->dev = (int)sStat.st_dev;
            psVar9->xClose = sStat.st_dev._4_4_;
            bVar24 = sqlite3Config.bCoreMutex != '\0';
            psVar9->xRead = (_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino;
            psVar9->xWrite = sStat.st_ino._4_4_;
            if (bVar24) {
              psVar15 = sqlite3_mutex_alloc(0);
              psVar9->xTruncate = (_func_int_sqlite3_file_ptr_sqlite3_int64 *)psVar15;
              if (psVar15 == (sqlite3_mutex *)0x0) {
                iVar8 = 7;
                sqlite3_free(psVar9);
                goto LAB_0005efaf;
              }
            }
            psVar9->xCheckReservedLock = (_func_int_sqlite3_file_ptr_int_ptr *)0x1;
            psVar9->xDeviceCharacteristics = (_func_int_sqlite3_file_ptr *)0x0;
            psVar9->xSectorSize = (_func_int_sqlite3_file_ptr *)inodeList;
            psVar5 = psVar9;
            if (inodeList != (unixInodeInfo *)0x0) {
              inodeList->pPrev = (unixInodeInfo *)psVar9;
            }
LAB_0005ed6d:
            inodeList = (unixInodeInfo *)psVar5;
            pFile[2].pMethods = psVar9;
            sqlite3_mutex_leave(unixBigLock);
            pFile[5].pMethods = (sqlite3_io_methods *)0x0;
            goto LAB_0005e8ef;
          }
          iVar8 = 7;
        }
        else {
          piVar14 = __errno_location();
          iVar8 = 10;
          pFile[5].pMethods = (sqlite3_io_methods *)*piVar14;
        }
LAB_0005efaf:
        iVar12 = (*aSyscall[1].pCurrent)(local_4c8);
        if (iVar12 != 0) {
          robust_close((unixFile *)pFile,0x98f4,lineno_00);
        }
        sqlite3_mutex_leave(unixBigLock);
        pFile[5].pMethods = (sqlite3_io_methods *)0x0;
        goto LAB_0005ee17;
      }
      if (psVar9 != &dotlockIoMethods) goto LAB_0005e8e8;
      sVar10 = strlen(zPath);
      psVar11 = (sqlite3_io_methods *)sqlite3_malloc64((longlong)(int)(sVar10 + 6));
      if (psVar11 == (sqlite3_io_methods *)0x0) {
        pFile[6].pMethods = (sqlite3_io_methods *)0x0;
        pFile[5].pMethods = (sqlite3_io_methods *)0x0;
        iVar8 = 7;
        iVar12 = (*aSyscall[1].pCurrent)(local_4c8);
        if (iVar12 != 0) {
          robust_close((unixFile *)pFile,0x9949,lineno);
        }
        goto LAB_0005ee17;
      }
      sqlite3_snprintf(sVar10 + 6,(char *)psVar11,"%s.lock",zPath);
      pFile[5].pMethods = (sqlite3_io_methods *)0x0;
      pFile[6].pMethods = psVar11;
      psVar11 = psVar9;
    }
    else {
      psVar9 = &nolockIoMethods;
LAB_0005e8e8:
      pFile[5].pMethods = (sqlite3_io_methods *)0x0;
      psVar11 = psVar9;
    }
LAB_0005e8ef:
    pFile->pMethods = psVar11;
    iVar8 = 0;
    verifyDbFile((unixFile *)pFile);
  }
LAB_0005e8fb:
  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return iVar8;
}



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

int FUN_0005e640(int param_1,char *param_2,undefined4 *param_3,uint param_4,uint *param_5)

{
  ushort *puVar1;
  char cVar2;
  undefined4 uVar3;
  uint uVar4;
  __pid_t _Var5;
  char *pcVar6;
  int iVar7;
  undefined *puVar8;
  int *piVar9;
  size_t sVar10;
  int iVar11;
  undefined1 *puVar12;
  int *piVar13;
  uint uVar14;
  uint uVar15;
  int *piVar16;
  undefined *puVar17;
  byte *pbVar18;
  uint uVar19;
  byte *pbVar20;
  undefined4 *puVar21;
  undefined4 uVar22;
  int in_GS_OFFSET;
  bool bVar23;
  bool bVar24;
  byte bVar25;
  int iVar26;
  char *local_4b4;
  undefined4 local_4ac;
  uint local_4a8;
  uint local_4a4;
  int local_484;
  int local_480;
  uint local_474;
  undefined4 local_46c;
  undefined4 local_468;
  int local_42c;
  int local_428;
  undefined1 local_423 [513];
  char local_222 [514];
  int local_20;
  undefined4 uStack_14;
  
  bVar25 = 0;
  uStack_14 = 0x5e649;
  uVar15 = param_4 & 8;
  local_4a4 = param_4 & 1;
  uVar19 = param_4 & 2;
  bVar24 = false;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  uVar4 = param_4 & 0xfff00;
  if ((param_4 & 4) != 0) {
    bVar24 = (uVar4 == 0x4000 || uVar4 == 0x800) || uVar4 == 0x80000;
  }
  _Var5 = getpid();
  if (_Var5 != DAT_000df7ac) {
    DAT_000df7ac = getpid();
    sqlite3_randomness(0,0);
  }
  *param_3 = 0;
  param_3[0x14] = 0;
  puVar21 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);
  for (uVar14 = (uint)((int)param_3 + (0x54 - (int)((uint)(param_3 + 1) & 0xfffffffc))) >> 2;
      uVar14 != 0; uVar14 = uVar14 - 1) {
    *puVar21 = 0;
    puVar21 = puVar21 + (uint)bVar25 * -2 + 1;
  }
  if (uVar4 == 0x100) {
    sqlite3_mutex_enter(DAT_000df7a8);
    if ((DAT_000df7a4 != (int *)0x0) &&
       (iVar26 = (*(code *)PTR_FUN_000df474)(param_2,&local_484), piVar13 = DAT_000df7a4,
       iVar26 == 0)) {
      for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {
        if ((piVar13[1] == local_480 && *piVar13 == local_484) &&
           (local_428 == piVar13[3] && local_42c == piVar13[2])) {
          sqlite3_mutex_enter(piVar13[4]);
          piVar9 = (int *)piVar13[8];
          if (piVar9 == (int *)0x0) goto LAB_0005ea3a;
          if ((param_4 & 3) != piVar9[1]) goto LAB_0005ea33;
          piVar16 = piVar13 + 8;
          goto LAB_0005ee53;
        }
      }
    }
    sqlite3_mutex_leave(DAT_000df7a8);
    goto LAB_0005ea54;
  }
  iVar26 = -1;
  local_4b4 = param_2;
  if (param_2 == (char *)0x0) {
    local_4b4 = local_222;
    iVar7 = FUN_0005df50();
    if (iVar7 != 0) goto LAB_0005e8fb;
  }
  goto LAB_0005e781;
LAB_0005ea3a:
  sqlite3_mutex_leave(piVar13[4]);
  sqlite3_mutex_leave(DAT_000df7a8);
LAB_0005ea54:
  piVar9 = (int *)sqlite3_malloc64(0xc,0);
  if (piVar9 == (int *)0x0) {
    iVar7 = 7;
    goto LAB_0005e8fb;
  }
  iVar26 = -1;
  goto LAB_0005ee78;
  while ((param_4 & 3) != piVar9[1]) {
LAB_0005ea33:
    piVar16 = piVar9;
    piVar9 = (int *)piVar16[2];
    if (piVar9 == (int *)0x0) goto LAB_0005ea3a;
  }
  piVar16 = piVar16 + 2;
LAB_0005ee53:
  *piVar16 = piVar9[2];
  sqlite3_mutex_leave(piVar13[4]);
  sqlite3_mutex_leave(DAT_000df7a8);
  iVar26 = *piVar9;
LAB_0005ee78:
  param_3[7] = piVar9;
  local_4b4 = param_2;
LAB_0005e781:
  uVar14 = uVar19;
  if ((param_4 & 4) != 0) {
    uVar14 = uVar19 | 0x40;
  }
  if ((param_4 & 0x10) != 0) {
    uVar14 = uVar14 | 0x20080;
  }
  if (-1 < iVar26) goto LAB_0005e7af;
  uVar14 = uVar14 | 0x28000;
  if ((param_4 & 0x80800) == 0) {
    if (uVar15 == 0) {
      if (((param_4 & 0x40) != 0) &&
         (puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof"),
         puVar12 != (undefined1 *)0x0)) goto LAB_0005eb2c;
LAB_0005ebd9:
      iVar26 = FUN_0003a9a0(uVar15,uVar14);
      if (iVar26 < 0) {
        local_4ac = 0;
        local_4a8 = 0;
        uVar22 = 0;
        goto LAB_0005ec06;
      }
      goto LAB_0005e7af;
    }
    iVar26 = FUN_0003a9a0(uVar15,uVar14);
    if (-1 < iVar26) goto LAB_0005e7af;
    uVar22 = 0;
    local_4ac = 0;
    local_4a8 = 0x180;
LAB_0005ec06:
    piVar13 = __errno_location();
    iVar26 = *piVar13;
    if ((bVar24) && (iVar26 == 0xd)) {
      iVar26 = (*(code *)PTR_access_000df45c)(local_4b4,0);
      if (iVar26 == 0) {
        iVar26 = *piVar13;
        goto LAB_0005ec40;
      }
      iVar7 = 0x608;
      FUN_000383b0();
      FUN_0003aad0(0x9ae7);
    }
    else {
LAB_0005ec40:
      if ((uVar19 != 0) && (iVar26 != 0x15)) {
        param_4 = param_4 & 0xfffffff9 | 1;
        iVar26 = FUN_0003a9a0();
        if (-1 < iVar26) {
          local_4a4 = 1;
          goto LAB_0005eb78;
        }
      }
      FUN_000383b0();
      iVar7 = FUN_0003aad0(0x9ae7);
      if (iVar7 == 0) goto LAB_0005e8fb;
    }
LAB_0005ee17:
    sqlite3_free(param_3[7]);
  }
  else {
    if (local_4b4 == (char *)0x0) {
      iVar26 = -1;
    }
    else {
      sVar10 = strlen(local_4b4);
      iVar26 = (sVar10 & 0x3fffffff) - 1;
    }
    cVar2 = local_4b4[iVar26];
    while (cVar2 != '-') {
      if ((cVar2 == '.') || (iVar26 == 0)) goto LAB_0005ebd9;
      iVar26 = iVar26 + -1;
      cVar2 = local_4b4[iVar26];
    }
    puVar12 = local_423;
    __memcpy_chk(puVar12,local_4b4,iVar26,0x201);
    local_423[iVar26] = 0;
LAB_0005eb2c:
    iVar26 = (*(code *)PTR_FUN_000df474)(puVar12,&local_484);
    iVar7 = 0x70a;
    if (iVar26 != 0) goto LAB_0005e8fb;
    local_4a8 = local_474 & 0x1ff;
    local_4ac = local_46c;
    iVar26 = FUN_0003a9a0(uVar15,uVar14);
    uVar22 = local_468;
    if (iVar26 < 0) goto LAB_0005ec06;
LAB_0005eb78:
    if (((local_4a8 != 0) && ((param_4 & 0x80800) != 0)) &&
       (iVar7 = (*(code *)PTR_geteuid_000df540)(), iVar7 == 0)) {
      (*(code *)PTR_fchown_000df534)(iVar26,local_4ac,uVar22);
    }
LAB_0005e7af:
    if (param_5 != (uint *)0x0) {
      *param_5 = param_4;
    }
    piVar13 = (int *)param_3[7];
    if (piVar13 != (int *)0x0) {
      *piVar13 = iVar26;
      piVar13[1] = param_4 & 3;
    }
    if (uVar15 != 0) {
      (*(code *)PTR_unlink_000df504)(local_4b4);
      uVar15 = 0x20;
    }
    uVar22 = DAT_000de40c;
    uVar19 = uVar15 | 2;
    if (local_4a4 == 0) {
      uVar19 = uVar15;
    }
    uVar15 = uVar19 | 0x80;
    if (uVar4 == 0x100) {
      uVar15 = uVar19;
    }
    uVar4 = uVar15 | 8;
    if (!bVar24) {
      uVar4 = uVar15;
    }
    if ((param_4 & 0x40) == 0) {
      *(short *)((int)param_3 + 0x12) = (short)uVar4;
      param_3[3] = iVar26;
      pcVar6 = (char *)0x0;
      if ((uVar4 & 0x40) != 0) {
        pcVar6 = param_2;
      }
      param_3[8] = param_2;
      param_3[1] = param_1;
      uVar3 = DAT_000de408;
      param_3[0x11] = uVar22;
      param_3[0x10] = uVar3;
    }
    else {
      uVar4 = uVar4 | 0x40;
      param_3[3] = iVar26;
      param_3[8] = param_2;
      *(short *)((int)param_3 + 0x12) = (short)uVar4;
      param_3[1] = param_1;
      uVar3 = DAT_000de408;
      param_3[0x11] = uVar22;
      param_3[0x10] = uVar3;
      pcVar6 = param_2;
    }
    iVar7 = sqlite3_uri_boolean(pcVar6,&DAT_000aa9b5,1);
    bVar24 = iVar7 == 0;
    if (!bVar24) {
      puVar1 = (ushort *)((int)param_3 + 0x12);
      *puVar1 = *puVar1 | 0x10;
      bVar24 = *puVar1 == 0;
    }
    bVar23 = false;
    iVar7 = 10;
    pbVar18 = *(byte **)(param_1 + 0x10);
    pbVar20 = (byte *)"unix-excl";
    do {
      if (iVar7 == 0) break;
      iVar7 = iVar7 + -1;
      bVar23 = *pbVar18 < *pbVar20;
      bVar24 = *pbVar18 == *pbVar20;
      pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1;
      pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1;
    } while (bVar24);
    if ((!bVar23 && !bVar24) == bVar23) {
      *(ushort *)((int)param_3 + 0x12) = *(ushort *)((int)param_3 + 0x12) | 1;
    }
    if ((uVar4 & 0x80) == 0) {
      puVar8 = (undefined *)(*(code *)**(undefined4 **)(param_1 + 0x14))(param_2,param_3);
      puVar17 = &DAT_000dd9e0;
      if (puVar8 == &DAT_000dd9e0) {
        sqlite3_mutex_enter(DAT_000df7a8);
        iVar7 = (*(code *)PTR_FUN_000df480)(param_3[3],&local_484);
        piVar13 = DAT_000df7a4;
        if (iVar7 == 0) {
          for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {
            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&
               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {
              piVar13[9] = piVar13[9] + 1;
              piVar9 = DAT_000df7a4;
              goto LAB_0005ed6d;
            }
          }
          piVar13 = (int *)sqlite3_malloc64(0x34,0);
          if (piVar13 != (int *)0x0) {
            piVar13[4] = 0;
            piVar13[0xc] = 0;
            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);
            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>
                         2; uVar4 != 0; uVar4 = uVar4 - 1) {
              *puVar21 = 0;
              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;
            }
            *piVar13 = local_484;
            piVar13[1] = local_480;
            bVar24 = DAT_000de364 != '\0';
            piVar13[2] = local_42c;
            piVar13[3] = local_428;
            if (bVar24) {
              iVar7 = sqlite3_mutex_alloc(0);
              piVar13[4] = iVar7;
              if (iVar7 == 0) {
                iVar7 = 7;
                sqlite3_free(piVar13);
                goto LAB_0005efaf;
              }
            }
            piVar13[9] = 1;
            piVar13[0xc] = 0;
            piVar13[0xb] = (int)DAT_000df7a4;
            piVar9 = piVar13;
            if (DAT_000df7a4 != (int *)0x0) {
              DAT_000df7a4[0xc] = (int)piVar13;
            }
LAB_0005ed6d:
            DAT_000df7a4 = piVar9;
            param_3[2] = piVar13;
            puVar8 = puVar17;
            sqlite3_mutex_leave(DAT_000df7a8);
            param_3[5] = 0;
            goto LAB_0005e8ef;
          }
          iVar7 = 7;
        }
        else {
          piVar13 = __errno_location();
          iVar7 = 10;
          param_3[5] = *piVar13;
        }
LAB_0005efaf:
        iVar26 = (*(code *)PTR_close_000df450)(iVar26);
        if (iVar26 != 0) {
          FUN_0003aea0();
        }
        sqlite3_mutex_leave(DAT_000df7a8);
        param_3[5] = 0;
        goto LAB_0005ee17;
      }
      if (puVar8 != &DAT_000dd920) goto LAB_0005e8e8;
      sVar10 = strlen(param_2);
      iVar7 = sVar10 + 6;
      iVar11 = sqlite3_malloc64(iVar7,iVar7 >> 0x1f);
      if (iVar11 == 0) {
        param_3[6] = 0;
        param_3[5] = 0;
        iVar7 = 7;
        iVar26 = (*(code *)PTR_close_000df450)(iVar26);
        if (iVar26 != 0) {
          FUN_0003aea0();
        }
        goto LAB_0005ee17;
      }
      sqlite3_snprintf(iVar7,iVar11,"%s.lock",param_2);
      param_3[5] = 0;
      param_3[6] = iVar11;
    }
    else {
      puVar8 = &DAT_000dd980;
LAB_0005e8e8:
      param_3[5] = 0;
    }
LAB_0005e8ef:
    *param_3 = puVar8;
    iVar7 = 0;
    FUN_0003a610();
  }
LAB_0005e8fb:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar7;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000a9ea0();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0001d810
ADD EBX,0x7f9b7
SUB ESP,0x4bc
MOV EAX,dword ptr [ESP + 0x4d0]
MOV ESI,dword ptr [ESP + 0x4dc]
MOV EDX,dword ptr [ESP + 0x4dc]
MOV ECX,dword ptr [ESP + 0x4dc]
MOV EDI,dword ptr [ESP + 0x4dc]
MOV EBP,dword ptr [ESP + 0x4d8]
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,dword ptr [ESP + 0x4d4]
AND ESI,0x10
MOV dword ptr [ESP + 0x20],ESI
MOV ESI,dword ptr [ESP + 0x4dc]
AND EDX,0x8
AND ECX,0x1
AND EDI,0x2
MOV dword ptr [ESP],EDX
MOV dword ptr [ESP + 0x8],EAX
MOV EAX,dword ptr [ESP + 0x4e0]
MOV dword ptr [ESP + 0x28],ECX
MOV dword ptr [ESP + 0x1c],EDI
MOV dword ptr [ESP + 0x14],0x0
MOV dword ptr [ESP + 0x2c],EAX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x4ac],EAX
XOR EAX,EAX
MOV EAX,dword ptr [ESP + 0x4dc]
AND EAX,0xfff00
AND ESI,0x4
MOV dword ptr [ESP + 0x10],EAX
MOV dword ptr [ESP + 0x24],ESI
JZ 0x0005e712
MOV ECX,EAX
CMP EAX,0x4000
SETZ AL
CMP ECX,0x800
SETZ DL
OR EAX,EDX
CMP ECX,0x80000
SETZ DL
OR EAX,EDX
MOVZX EAX,AL
MOV dword ptr [ESP + 0x14],EAX
CALL 0x00016680
CMP EAX,dword ptr [EBX + 0x17ac]
JZ 0x0005e739
CALL 0x00016680
SUB ESP,0x8
MOV dword ptr [EBX + 0x17ac],EAX
PUSH 0x0
PUSH 0x0
CALL 0x000167f0
ADD ESP,0x10
LEA EDI,[EBP + 0x4]
MOV ECX,EBP
XOR EAX,EAX
MOV dword ptr [EBP],0x0
MOV dword ptr [EBP + 0x50],0x0
AND EDI,0xfffffffc
SUB ECX,EDI
ADD ECX,0x54
SHR ECX,0x2
STOSD.REP ES:EDI
CMP dword ptr [ESP + 0x10],0x100
JZ 0x0005e960
MOV EAX,dword ptr [ESP + 0x8]
MOV dword ptr [ESP + 0x4],0xffffffff
TEST EAX,EAX
MOV dword ptr [ESP + 0x18],EAX
JZ 0x0005eca0
MOV ESI,dword ptr [ESP + 0x1c]
MOV ECX,dword ptr [ESP + 0x24]
MOV EDI,dword ptr [ESP + 0x20]
MOV EAX,ESI
OR EAX,0x40
TEST ECX,ECX
CMOVNZ ESI,EAX
MOV EAX,ESI
OR EAX,0x20080
TEST EDI,EDI
CMOVNZ ESI,EAX
MOV EAX,dword ptr [ESP + 0x4]
TEST EAX,EAX
JS 0x0005ea80
MOV EAX,dword ptr [ESP + 0x2c]
TEST EAX,EAX
JZ 0x0005e7c0
MOV ECX,dword ptr [ESP + 0x4dc]
MOV dword ptr [EAX],ECX
MOV EAX,dword ptr [EBP + 0x1c]
TEST EAX,EAX
JZ 0x0005e7da
MOV EDX,dword ptr [ESP + 0x4dc]
MOV EDI,dword ptr [ESP + 0x4]
AND EDX,0x3
MOV dword ptr [EAX],EDI
MOV dword ptr [EAX + 0x4],EDX
MOV ESI,dword ptr [ESP]
TEST ESI,ESI
JZ 0x0005e7f8
SUB ESP,0xc
PUSH dword ptr [ESP + 0x24]
CALL dword ptr [EBX + 0x1504]
ADD ESP,0x10
MOV dword ptr [ESP],0x20
MOV EDI,dword ptr [ESP]
MOV EDX,dword ptr [ESP + 0x28]
MOV EAX,EDI
OR EAX,0x2
TEST EDX,EDX
CMOVZ EAX,EDI
MOV ECX,EAX
OR AL,0x80
CMP dword ptr [ESP + 0x10],0x100
CMOVZ EAX,ECX
MOV ECX,dword ptr [ESP + 0x14]
MOV EDI,EAX
OR EAX,0x8
TEST ECX,ECX
CMOVZ EAX,EDI
MOV ECX,EAX
MOV dword ptr [ESP],EAX
MOV EAX,dword ptr [ESP + 0x4dc]
AND EAX,0x40
JNZ 0x0005e920
MOV ESI,dword ptr [ESP + 0x4]
MOV EDX,dword ptr [ESP + 0x8]
MOV EDI,dword ptr [EBX + 0x40c]
MOV word ptr [EBP + 0x12],CX
AND ECX,0x40
MOV dword ptr [EBP + 0xc],ESI
MOV ESI,dword ptr [ESP + 0xc]
CMOVNZ EAX,EDX
MOV dword ptr [EBP + 0x20],EDX
MOV dword ptr [EBP + 0x4],ESI
MOV ESI,dword ptr [EBX + 0x408]
MOV dword ptr [EBP + 0x44],EDI
MOV dword ptr [EBP + 0x40],ESI
LEA EDX,[EBX + 0xfffcc9b5]
SUB ESP,0x4
PUSH 0x1
PUSH EDX
PUSH EAX
CALL 0x00016400
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0005e88a
OR word ptr [EBP + 0x12],0x10
MOV EAX,dword ptr [ESP + 0xc]
LEA EDI,[EBX + 0xfffcc9ba]
MOV ECX,0xa
MOV ESI,dword ptr [EAX + 0x10]
CMPSB.REPE ES:EDI,ESI
SETA AL
SBB AL,0x0
TEST AL,AL
JNZ 0x0005e8ac
OR word ptr [EBP + 0x12],0x1
TEST byte ptr [ESP],0x80
JNZ 0x0005ee40
SUB ESP,0x8
MOV EAX,dword ptr [ESP + 0x14]
MOV EAX,dword ptr [EAX + 0x14]
PUSH EBP
PUSH dword ptr [ESP + 0x14]
CALL dword ptr [EAX]
LEA EDX,[EBX + 0xfffff9e0]
ADD ESP,0x10
MOV ESI,EAX
CMP EAX,EDX
JZ 0x0005ecd0
LEA EAX,[EBX + 0xfffff920]
CMP ESI,EAX
JZ 0x0005ed98
MOV dword ptr [EBP + 0x14],0x0
MOV dword ptr [EBP],ESI
MOV EAX,EBP
XOR EDI,EDI
CALL 0x0003a610
MOV EBX,dword ptr [ESP + 0x4ac]
XOR EBX,dword ptr GS:[0x14]
MOV EAX,EDI
JNZ 0x0005f0ba
ADD ESP,0x4bc
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0x4]
OR dword ptr [ESP],0x40
MOV ESI,dword ptr [ESP + 0x8]
MOV EDX,dword ptr [EBX + 0x40c]
MOV EDI,dword ptr [ESP]
MOV dword ptr [EBP + 0xc],EAX
MOV EAX,dword ptr [ESP + 0xc]
MOV dword ptr [EBP + 0x20],ESI
MOV word ptr [EBP + 0x12],DI
MOV dword ptr [EBP + 0x4],EAX
MOV EAX,dword ptr [EBX + 0x408]
MOV dword ptr [EBP + 0x44],EDX
MOV dword ptr [EBP + 0x40],EAX
MOV EAX,ESI
JMP 0x0005e86c
SUB ESP,0xc
PUSH dword ptr [EBX + 0x17a8]
CALL 0x000168d0
MOV EAX,dword ptr [EBX + 0x17a4]
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0005ec88
SUB ESP,0x8
LEA EAX,[ESP + 0x50]
PUSH EAX
PUSH dword ptr [ESP + 0x14]
CALL dword ptr [EBX + 0x1474]
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0005ec88
MOV ESI,dword ptr [EBX + 0x17a4]
TEST ESI,ESI
JZ 0x0005ec88
MOV EAX,dword ptr [ESP + 0xa0]
MOV EDI,dword ptr [ESP + 0x48]
MOV ECX,dword ptr [ESP + 0x4c]
MOV dword ptr [ESP + 0x4],EAX
MOV EAX,dword ptr [ESP + 0xa4]
MOV dword ptr [ESP + 0x18],EAX
JMP 0x0005e9db
MOV ESI,dword ptr [ESI + 0x2c]
TEST ESI,ESI
JZ 0x0005ec88
MOV EAX,dword ptr [ESI]
MOV EDX,dword ptr [ESI + 0x4]
XOR EAX,EDI
XOR EDX,ECX
OR EDX,EAX
JNZ 0x0005e9d0
MOV EAX,dword ptr [ESP + 0x4]
MOV EDX,dword ptr [ESP + 0x18]
XOR EAX,dword ptr [ESI + 0x8]
XOR EDX,dword ptr [ESI + 0xc]
OR EDX,EAX
JNZ 0x0005e9d0
SUB ESP,0xc
PUSH dword ptr [ESI + 0x10]
CALL 0x000168d0
MOV EDX,dword ptr [ESP + 0x4ec]
MOV EAX,dword ptr [ESI + 0x20]
ADD ESP,0x10
AND EDX,0x3
TEST EAX,EAX
JZ 0x0005ea3a
CMP EDX,dword ptr [EAX + 0x4]
JNZ 0x0005ea33
JMP 0x0005efff
CMP EDX,dword ptr [EDI + 0x4]
JZ 0x0005ee50
MOV EAX,EDI
MOV EDI,dword ptr [EAX + 0x8]
TEST EDI,EDI
JNZ 0x0005ea28
SUB ESP,0xc
PUSH dword ptr [ESI + 0x10]
CALL 0x00016830
POP EAX
PUSH dword ptr [EBX + 0x17a8]
CALL 0x00016830
ADD ESP,0x10
SUB ESP,0x8
PUSH 0x0
PUSH 0xc
CALL 0x000165b0
ADD ESP,0x10
TEST EAX,EAX
MOV EDI,EAX
JZ 0x0005eebc
MOV dword ptr [ESP + 0x4],0xffffffff
JMP 0x0005ee78
MOV EAX,ESI
OR EAX,0x28000
TEST dword ptr [ESP + 0x4dc],0x80800
MOV dword ptr [ESP + 0x4],EAX
JZ 0x0005ebc0
MOV EAX,dword ptr [ESP + 0x18]
TEST EAX,EAX
JZ 0x0005eff0
SUB ESP,0xc
PUSH EAX
CALL 0x000167d0
AND EAX,0x3fffffff
ADD ESP,0x10
LEA EDI,[EAX + -0x1]
MOV EDX,EDI
MOV EAX,dword ptr [ESP + 0x18]
MOVZX EAX,byte ptr [EAX + EDX*0x1]
CMP AL,0x2d
JZ 0x0005eafd
CMP AL,0x2e
JZ 0x0005ebd9
TEST EDI,EDI
MOV ECX,dword ptr [ESP + 0x18]
JNZ 0x0005eaf0
JMP 0x0005ebd9
CMP AL,0x2e
JZ 0x0005ebd9
TEST EDI,EDI
JZ 0x0005ebd9
SUB EDI,0x1
MOVZX EAX,byte ptr [ECX + EDI*0x1]
MOV EDX,EDI
CMP AL,0x2d
JNZ 0x0005eae0
PUSH 0x201
PUSH EDX
PUSH dword ptr [ESP + 0x20]
LEA EDX,[ESP + 0xb5]
PUSH EDX
MOV dword ptr [ESP + 0x30],EDX
CALL 0x00016730
MOV byte ptr [ESP + EDI*0x1 + 0xb9],0x0
POP EAX
POP EDX
LEA EAX,[ESP + 0x50]
PUSH EAX
MOV EDX,dword ptr [ESP + 0x2c]
PUSH EDX
CALL dword ptr [EBX + 0x1474]
ADD ESP,0x10
TEST EAX,EAX
MOV EDI,0x70a
JNZ 0x0005e8fb
MOV EAX,dword ptr [ESP + 0x58]
MOV EDX,dword ptr [ESP + 0x4]
MOV EDI,dword ptr [ESP + 0x64]
AND EAX,0x1ff
MOV dword ptr [ESP + 0x24],EAX
MOV EAX,dword ptr [ESP + 0x60]
MOV ECX,dword ptr [ESP + 0x24]
MOV dword ptr [ESP + 0x20],EAX
MOV EAX,dword ptr [ESP + 0x18]
CALL 0x0003a9a0
TEST EAX,EAX
MOV dword ptr [ESP + 0x4],EAX
JS 0x0005ec06
CMP dword ptr [ESP + 0x24],0x0
JZ 0x0005e7af
TEST dword ptr [ESP + 0x4dc],0x80800
JZ 0x0005e7af
CALL dword ptr [EBX + 0x1540]
TEST EAX,EAX
JNZ 0x0005e7af
SUB ESP,0x4
PUSH EDI
PUSH dword ptr [ESP + 0x28]
PUSH dword ptr [ESP + 0x10]
CALL dword ptr [EBX + 0x1534]
ADD ESP,0x10
JMP 0x0005e7af
MOV EDI,dword ptr [ESP]
TEST EDI,EDI
JNZ 0x0005ef68
TEST byte ptr [ESP + 0x4dc],0x40
JNZ 0x0005ee90
MOV EDX,dword ptr [ESP + 0x4]
MOV EAX,dword ptr [ESP + 0x18]
XOR ECX,ECX
CALL 0x0003a9a0
TEST EAX,EAX
MOV dword ptr [ESP + 0x4],EAX
JNS 0x0005e7af
XOR EDI,EDI
MOV dword ptr [ESP + 0x20],0x0
MOV dword ptr [ESP + 0x24],0x0
CALL 0x00016900
MOV ECX,dword ptr [ESP + 0x14]
MOV EDX,EAX
MOV EAX,dword ptr [EAX]
MOV dword ptr [ESP + 0x4],EDX
TEST ECX,ECX
JZ 0x0005ec40
CMP EAX,0xd
JNZ 0x0005ec40
SUB ESP,0x8
PUSH 0x0
PUSH dword ptr [ESP + 0x24]
CALL dword ptr [EBX + 0x145c]
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0005f009
MOV EDX,dword ptr [ESP + 0x4]
MOV EAX,dword ptr [EDX]
MOV EDX,dword ptr [ESP + 0x1c]
TEST EDX,EDX
JZ 0x0005ec51
CMP EAX,0x15
JNZ 0x0005f041
MOV EAX,0x9ae7
CALL 0x000383b0
SUB ESP,0xc
LEA EDX,[EBX + 0xfffcc725]
PUSH 0x9ae7
MOV ECX,dword ptr [ESP + 0x28]
CALL 0x0003aad0
MOV EDI,EAX
ADD ESP,0x10
TEST EDI,EDI
JZ 0x0005e8fb
JMP 0x0005ee17
SUB ESP,0xc
PUSH dword ptr [EBX + 0x17a8]
CALL 0x00016830
ADD ESP,0x10
JMP 0x0005ea54
MOV EAX,dword ptr [ESP + 0xc]
LEA ESI,[ESP + 0x2aa]
MOV EDX,ESI
MOV EAX,dword ptr [EAX + 0x8]
CALL 0x0005df50
TEST EAX,EAX
MOV EDI,EAX
JNZ 0x0005e8fb
MOV dword ptr [ESP + 0x18],ESI
JMP 0x0005e781
MOV dword ptr [ESP],EDX
SUB ESP,0xc
PUSH dword ptr [EBX + 0x17a8]
CALL 0x000168d0
POP ESI
POP EDI
LEA EAX,[ESP + 0x50]
PUSH EAX
PUSH dword ptr [EBP + 0xc]
CALL dword ptr [EBX + 0x1480]
ADD ESP,0x10
TEST EAX,EAX
MOV EDX,dword ptr [ESP]
JNZ 0x0005efa0
MOV ESI,dword ptr [ESP + 0x48]
MOV EDI,dword ptr [ESP + 0x4c]
LEA EAX,[ESP + 0x38]
MOV dword ptr [ESP + 0x38],ESI
MOV ESI,dword ptr [ESP + 0xa0]
MOV dword ptr [ESP + 0x3c],EDI
MOV EDI,dword ptr [ESP + 0xa4]
MOV dword ptr [ESP + 0x40],ESI
MOV ESI,dword ptr [EBX + 0x17a4]
MOV dword ptr [ESP + 0x44],EDI
TEST ESI,ESI
JNZ 0x0005ed4b
JMP 0x0005eed0
MOV ESI,dword ptr [ESI + 0x2c]
TEST ESI,ESI
JZ 0x0005eed0
MOV ECX,dword ptr [ESI]
CMP dword ptr [EAX],ECX
JNZ 0x0005ed40
MOV ECX,dword ptr [ESI + 0x4]
CMP dword ptr [EAX + 0x4],ECX
JNZ 0x0005ed40
MOV ECX,dword ptr [ESI + 0x8]
CMP dword ptr [EAX + 0x8],ECX
JNZ 0x0005ed40
MOV ECX,dword ptr [ESI + 0xc]
CMP dword ptr [EAX + 0xc],ECX
JNZ 0x0005ed40
ADD dword ptr [ESI + 0x24],0x1
MOV dword ptr [ESP],EDX
MOV dword ptr [EBP + 0x8],ESI
SUB ESP,0xc
PUSH dword ptr [EBX + 0x17a8]
CALL 0x00016830
ADD ESP,0x10
MOV EDX,dword ptr [ESP]
MOV dword ptr [EBP + 0x14],0x0
MOV ESI,EDX
JMP 0x0005e8ef
SUB ESP,0xc
PUSH dword ptr [ESP + 0x14]
CALL 0x000167d0
LEA EDI,[EAX + 0x6]
POP EDX
MOV EAX,EDI
POP ECX
CDQ
PUSH EDX
PUSH EDI
CALL 0x000165b0
ADD ESP,0x10
TEST EAX,EAX
MOV EDX,EAX
JZ 0x0005edf0
LEA EAX,[EBX + 0xfffcc9c4]
PUSH dword ptr [ESP + 0x8]
PUSH EAX
PUSH EDX
MOV dword ptr [ESP + 0xc],EDX
PUSH EDI
CALL 0x000167c0
MOV EDX,dword ptr [ESP + 0x10]
MOV dword ptr [EBP + 0x14],0x0
ADD ESP,0x10
MOV dword ptr [EBP + 0x18],EDX
JMP 0x0005e8ef
SUB ESP,0xc
MOV dword ptr [EBP + 0x18],0x0
MOV dword ptr [EBP + 0x14],0x0
PUSH dword ptr [ESP + 0x10]
MOV EDI,0x7
CALL dword ptr [EBX + 0x1450]
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0005ee30
SUB ESP,0xc
PUSH dword ptr [EBP + 0x1c]
CALL 0x00016d30
ADD ESP,0x10
JMP 0x0005e8fb
MOV EDX,0x9949
MOV EAX,EBP
CALL 0x0003aea0
JMP 0x0005ee17
LEA ESI,[EBX + 0xfffff980]
JMP 0x0005e8e8
LEA EDX,[EAX + 0x8]
MOV EAX,dword ptr [EDI + 0x8]
SUB ESP,0xc
MOV dword ptr [EDX],EAX
PUSH dword ptr [ESI + 0x10]
CALL 0x00016830
POP EAX
PUSH dword ptr [EBX + 0x17a8]
CALL 0x00016830
MOV EAX,dword ptr [EDI]
MOV dword ptr [ESP + 0x14],EAX
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x8]
MOV dword ptr [EBP + 0x1c],EDI
MOV dword ptr [ESP + 0x18],EAX
JMP 0x0005e781
LEA EAX,[EBX + 0xfffcc9ae]
SUB ESP,0x8
PUSH EAX
PUSH dword ptr [ESP + 0x24]
CALL 0x00016760
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0005ebd9
SUB ESP,0x8
LEA EDX,[ESP + 0x50]
PUSH EDX
PUSH EAX
JMP 0x0005eb2c
MOV EDI,0x7
JMP 0x0005e8fb
MOV dword ptr [ESP],EDX
SUB ESP,0x8
PUSH 0x0
PUSH 0x34
CALL 0x000165b0
ADD ESP,0x10
TEST EAX,EAX
MOV ESI,EAX
MOV EDX,dword ptr [ESP]
JZ 0x0005f037
LEA EDI,[ESI + 0x14]
LEA EAX,[ESI + 0x10]
MOV dword ptr [ESI + 0x10],0x0
MOV dword ptr [ESI + 0x30],0x0
AND EDI,0xfffffffc
SUB EAX,EDI
LEA ECX,[EAX + 0x24]
XOR EAX,EAX
SHR ECX,0x2
STOSD.REP ES:EDI
MOV EAX,dword ptr [ESP + 0x38]
MOV dword ptr [ESI],EAX
MOV EAX,dword ptr [ESP + 0x3c]
MOV dword ptr [ESI + 0x4],EAX
MOV EAX,dword ptr [ESP + 0x40]
CMP byte ptr [EBX + 0x364],0x0
MOV dword ptr [ESI + 0x8],EAX
MOV EAX,dword ptr [ESP + 0x44]
MOV dword ptr [ESI + 0xc],EAX
JNZ 0x0005f086
MOV EAX,dword ptr [EBX + 0x17a4]
MOV dword ptr [ESI + 0x24],0x1
MOV dword ptr [ESI + 0x30],0x0
TEST EAX,EAX
MOV dword ptr [ESI + 0x2c],EAX
JZ 0x0005ef58
MOV dword ptr [EAX + 0x30],ESI
MOV dword ptr [EBX + 0x17a4],ESI
JMP 0x0005ed6d
MOV EDX,dword ptr [ESP + 0x4]
MOV EAX,dword ptr [ESP + 0x18]
MOV ECX,0x180
CALL 0x0003a9a0
TEST EAX,EAX
MOV dword ptr [ESP + 0x4],EAX
JNS 0x0005e7af
XOR EDI,EDI
MOV dword ptr [ESP + 0x20],0x0
MOV dword ptr [ESP + 0x24],0x180
JMP 0x0005ec06
CALL 0x00016900
MOV EAX,dword ptr [EAX]
MOV EDI,0xa
MOV dword ptr [EBP + 0x14],EAX
SUB ESP,0xc
PUSH dword ptr [ESP + 0x10]
CALL dword ptr [EBX + 0x1450]
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0005efe0
SUB ESP,0xc
PUSH dword ptr [EBX + 0x17a8]
CALL 0x00016830
MOV dword ptr [EBP + 0x14],0x0
ADD ESP,0x10
JMP 0x0005ee17
MOV EDX,0x98f4
MOV EAX,EBP
CALL 0x0003aea0
JMP 0x0005efc3
MOV EDX,0xffffffff
MOV EDI,0xffffffff
JMP 0x0005eabe
LEA EDX,[ESI + 0x20]
MOV EDI,EAX
JMP 0x0005ee53
MOV EAX,0x9ae7
MOV EDI,0x608
CALL 0x000383b0
SUB ESP,0xc
LEA EDX,[EBX + 0xfffcc725]
PUSH 0x9ae7
MOV ECX,dword ptr [ESP + 0x28]
CALL 0x0003aad0
ADD ESP,0x10
JMP 0x0005ee17
MOV EDI,0x7
JMP 0x0005efaf
MOV EAX,dword ptr [ESP + 0x4dc]
AND ESI,0xffffffbd
MOV ECX,dword ptr [ESP + 0x24]
MOV EDX,ESI
OR EDX,0x28000
AND EAX,0xfffffff9
OR EAX,0x1
MOV dword ptr [ESP + 0x4dc],EAX
MOV EAX,dword ptr [ESP + 0x18]
CALL 0x0003a9a0
TEST EAX,EAX
MOV dword ptr [ESP + 0x4],EAX
JS 0x0005ec51
MOV dword ptr [ESP + 0x28],0x1
JMP 0x0005eb78
MOV dword ptr [ESP],EDX
SUB ESP,0xc
PUSH 0x0
CALL 0x00016500
ADD ESP,0x10
TEST EAX,EAX
MOV dword ptr [ESI + 0x10],EAX
MOV EDX,dword ptr [ESP]
JNZ 0x0005ef3a
SUB ESP,0xc
MOV EDI,0x7
PUSH ESI
CALL 0x00016d30
ADD ESP,0x10
JMP 0x0005efaf
CALL 0x000a9ea0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_0005e640(int param_1,char *param_2,undefined4 *param_3,uint param_4,uint *param_5)\n\n{\n  ushort *puVar1;\n  char cVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  __pid_t _Var5;\n  char *pcVar6;\n  int iVar7;\n  undefined *puVar8;\n  int *piVar9;\n  size_t sVar10;\n  int iVar11;\n  undefined1 *puVar12;\n  int *piVar13;\n  uint uVar14;\n  uint uVar15;\n  int *piVar16;\n  undefined *puVar17;\n  byte *pbVar18;\n  uint uVar19;\n  byte *pbVar20;\n  undefined4 *puVar21;\n  undefined4 uVar22;\n  int in_GS_OFFSET;\n  bool bVar23;\n  bool bVar24;\n  byte bVar25;\n  int iVar26;\n  char *local_4b4;\n  undefined4 local_4ac;\n  uint local_4a8;\n  uint local_4a4;\n  int local_484;\n  int local_480;\n  uint local_474;\n  undefined4 local_46c;\n  undefined4 local_468;\n  int local_42c;\n  int local_428;\n  undefined1 local_423 [513];\n  char local_222 [514];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar25 = 0;\n  uStack_14 = 0x5e649;\n  uVar15 = param_4 & 8;\n  local_4a4 = param_4 & 1;\n  uVar19 = param_4 & 2;\n  bVar24 = false;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar4 = param_4 & 0xfff00;\n  if ((param_4 & 4) != 0) {\n    bVar24 = (uVar4 == 0x4000 || uVar4 == 0x800) || uVar4 == 0x80000;\n  }\n  _Var5 = getpid();\n  if (_Var5 != DAT_000df7ac) {\n    DAT_000df7ac = getpid();\n    sqlite3_randomness(0,0);\n  }\n  *param_3 = 0;\n  param_3[0x14] = 0;\n  puVar21 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);\n  for (uVar14 = (uint)((int)param_3 + (0x54 - (int)((uint)(param_3 + 1) & 0xfffffffc))) >> 2;\n      uVar14 != 0; uVar14 = uVar14 - 1) {\n    *puVar21 = 0;\n    puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n  }\n  if (uVar4 == 0x100) {\n    sqlite3_mutex_enter(DAT_000df7a8);\n    if ((DAT_000df7a4 != (int *)0x0) &&\n       (iVar26 = (*(code *)PTR_FUN_000df474)(param_2,&local_484), piVar13 = DAT_000df7a4,\n       iVar26 == 0)) {\n      for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n        if ((piVar13[1] == local_480 && *piVar13 == local_484) &&\n           (local_428 == piVar13[3] && local_42c == piVar13[2])) {\n          sqlite3_mutex_enter(piVar13[4]);\n          piVar9 = (int *)piVar13[8];\n          if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n          if ((param_4 & 3) != piVar9[1]) goto LAB_0005ea33;\n          piVar16 = piVar13 + 8;\n          goto LAB_0005ee53;\n        }\n      }\n    }\n    sqlite3_mutex_leave(DAT_000df7a8);\n    goto LAB_0005ea54;\n  }\n  iVar26 = -1;\n  local_4b4 = param_2;\n  if (param_2 == (char *)0x0) {\n    local_4b4 = local_222;\n    iVar7 = FUN_0005df50();\n    if (iVar7 != 0) goto LAB_0005e8fb;\n  }\n  goto LAB_0005e781;\nLAB_0005ea3a:\n  sqlite3_mutex_leave(piVar13[4]);\n  sqlite3_mutex_leave(DAT_000df7a8);\nLAB_0005ea54:\n  piVar9 = (int *)sqlite3_malloc64(0xc,0);\n  if (piVar9 == (int *)0x0) {\n    iVar7 = 7;\n    goto LAB_0005e8fb;\n  }\n  iVar26 = -1;\n  goto LAB_0005ee78;\n  while ((param_4 & 3) != piVar9[1]) {\nLAB_0005ea33:\n    piVar16 = piVar9;\n    piVar9 = (int *)piVar16[2];\n    if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n  }\n  piVar16 = piVar16 + 2;\nLAB_0005ee53:\n  *piVar16 = piVar9[2];\n  sqlite3_mutex_leave(piVar13[4]);\n  sqlite3_mutex_leave(DAT_000df7a8);\n  iVar26 = *piVar9;\nLAB_0005ee78:\n  param_3[7] = piVar9;\n  local_4b4 = param_2;\nLAB_0005e781:\n  uVar14 = uVar19;\n  if ((param_4 & 4) != 0) {\n    uVar14 = uVar19 | 0x40;\n  }\n  if ((param_4 & 0x10) != 0) {\n    uVar14 = uVar14 | 0x20080;\n  }\n  if (-1 < iVar26) goto LAB_0005e7af;\n  uVar14 = uVar14 | 0x28000;\n  if ((param_4 & 0x80800) == 0) {\n    if (uVar15 == 0) {\n      if (((param_4 & 0x40) != 0) &&\n         (puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof"),\n         puVar12 != (undefined1 *)0x0)) goto LAB_0005eb2c;\nLAB_0005ebd9:\n      iVar26 = FUN_0003a9a0(uVar15,uVar14);\n      if (iVar26 < 0) {\n        local_4ac = 0;\n        local_4a8 = 0;\n        uVar22 = 0;\n        goto LAB_0005ec06;\n      }\n      goto LAB_0005e7af;\n    }\n    iVar26 = FUN_0003a9a0(uVar15,uVar14);\n    if (-1 < iVar26) goto LAB_0005e7af;\n    uVar22 = 0;\n    local_4ac = 0;\n    local_4a8 = 0x180;\nLAB_0005ec06:\n    piVar13 = __errno_location();\n    iVar26 = *piVar13;\n    if ((bVar24) && (iVar26 == 0xd)) {\n      iVar26 = (*(code *)PTR_access_000df45c)(local_4b4,0);\n      if (iVar26 == 0) {\n        iVar26 = *piVar13;\n        goto LAB_0005ec40;\n      }\n      iVar7 = 0x608;\n      FUN_000383b0();\n      FUN_0003aad0(0x9ae7);\n    }\n    else {\nLAB_0005ec40:\n      if ((uVar19 != 0) && (iVar26 != 0x15)) {\n        param_4 = param_4 & 0xfffffff9 | 1;\n        iVar26 = FUN_0003a9a0();\n        if (-1 < iVar26) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }\n      FUN_000383b0();\n      iVar7 = FUN_0003aad0(0x9ae7);\n      if (iVar7 == 0) goto LAB_0005e8fb;\n    }\nLAB_0005ee17:\n    sqlite3_free(param_3[7]);\n  }\n  else {\n    if (local_4b4 == (char *)0x0) {\n      iVar26 = -1;\n    }\n    else {\n      sVar10 = strlen(local_4b4);\n      iVar26 = (sVar10 & 0x3fffffff) - 1;\n    }\n    cVar2 = local_4b4[iVar26];\n    while (cVar2 != '-') {\n      if ((cVar2 == '.') || (iVar26 == 0)) goto LAB_0005ebd9;\n      iVar26 = iVar26 + -1;\n      cVar2 = local_4b4[iVar26];\n    }\n    puVar12 = local_423;\n    __memcpy_chk(puVar12,local_4b4,iVar26,0x201);\n    local_423[iVar26] = 0;\nLAB_0005eb2c:\n    iVar26 = (*(code *)PTR_FUN_000df474)(puVar12,&local_484);\n    iVar7 = 0x70a;\n    if (iVar26 != 0) goto LAB_0005e8fb;\n    local_4a8 = local_474 & 0x1ff;\n    local_4ac = local_46c;\n    iVar26 = FUN_0003a9a0(uVar15,uVar14);\n    uVar22 = local_468;\n    if (iVar26 < 0) goto LAB_0005ec06;\nLAB_0005eb78:\n    if (((local_4a8 != 0) && ((param_4 & 0x80800) != 0)) &&\n       (iVar7 = (*(code *)PTR_geteuid_000df540)(), iVar7 == 0)) {\n      (*(code *)PTR_fchown_000df534)(iVar26,local_4ac,uVar22);\n    }\nLAB_0005e7af:\n    if (param_5 != (uint *)0x0) {\n      *param_5 = param_4;\n    }\n    piVar13 = (int *)param_3[7];\n    if (piVar13 != (int *)0x0) {\n      *piVar13 = iVar26;\n      piVar13[1] = param_4 & 3;\n    }\n    if (uVar15 != 0) {\n      (*(code *)PTR_unlink_000df504)(local_4b4);\n      uVar15 = 0x20;\n    }\n    uVar22 = DAT_000de40c;\n    uVar19 = uVar15 | 2;\n    if (local_4a4 == 0) {\n      uVar19 = uVar15;\n    }\n    uVar15 = uVar19 | 0x80;\n    if (uVar4 == 0x100) {\n      uVar15 = uVar19;\n    }\n    uVar4 = uVar15 | 8;\n    if (!bVar24) {\n      uVar4 = uVar15;\n    }\n    if ((param_4 & 0x40) == 0) {\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[3] = iVar26;\n      pcVar6 = (char *)0x0;\n      if ((uVar4 & 0x40) != 0) {\n        pcVar6 = param_2;\n      }\n      param_3[8] = param_2;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n    }\n    else {\n      uVar4 = uVar4 | 0x40;\n      param_3[3] = iVar26;\n      param_3[8] = param_2;\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n      pcVar6 = param_2;\n    }\n    iVar7 = sqlite3_uri_boolean(pcVar6,&DAT_000aa9b5,1);\n    bVar24 = iVar7 == 0;\n    if (!bVar24) {\n      puVar1 = (ushort *)((int)param_3 + 0x12);\n      *puVar1 = *puVar1 | 0x10;\n      bVar24 = *puVar1 == 0;\n    }\n    bVar23 = false;\n    iVar7 = 10;\n    pbVar18 = *(byte **)(param_1 + 0x10);\n    pbVar20 = (byte *)"unix-excl";\n    do {\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      bVar23 = *pbVar18 < *pbVar20;\n      bVar24 = *pbVar18 == *pbVar20;\n      pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1;\n      pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1;\n    } while (bVar24);\n    if ((!bVar23 && !bVar24) == bVar23) {\n      *(ushort *)((int)param_3 + 0x12) = *(ushort *)((int)param_3 + 0x12) | 1;\n    }\n    if ((uVar4 & 0x80) == 0) {\n      puVar8 = (undefined *)(*(code *)**(undefined4 **)(param_1 + 0x14))(param_2,param_3);\n      puVar17 = &DAT_000dd9e0;\n      if (puVar8 == &DAT_000dd9e0) {\n        sqlite3_mutex_enter(DAT_000df7a8);\n        iVar7 = (*(code *)PTR_FUN_000df480)(param_3[3],&local_484);\n        piVar13 = DAT_000df7a4;\n        if (iVar7 == 0) {\n          for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }\n          piVar13 = (int *)sqlite3_malloc64(0x34,0);\n          if (piVar13 != (int *)0x0) {\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }\n          iVar7 = 7;\n        }\n        else {\n          piVar13 = __errno_location();\n          iVar7 = 10;\n          param_3[5] = *piVar13;\n        }\nLAB_0005efaf:\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        sqlite3_mutex_leave(DAT_000df7a8);\n        param_3[5] = 0;\n        goto LAB_0005ee17;\n      }\n      if (puVar8 != &DAT_000dd920) goto LAB_0005e8e8;\n      sVar10 = strlen(param_2);\n      iVar7 = sVar10 + 6;\n      iVar11 = sqlite3_malloc64(iVar7,iVar7 >> 0x1f);\n      if (iVar11 == 0) {\n        param_3[6] = 0;\n        param_3[5] = 0;\n        iVar7 = 7;\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        goto LAB_0005ee17;\n      }\n      sqlite3_snprintf(iVar7,iVar11,"%s.lock",param_2);\n      param_3[5] = 0;\n      param_3[6] = iVar11;\n    }\n    else {\n      puVar8 = &DAT_000dd980;\nLAB_0005e8e8:\n      param_3[5] = 0;\n    }\nLAB_0005e8ef:\n    *param_3 = puVar8;\n    iVar7 = 0;\n    FUN_0003a610();\n  }\nLAB_0005e8fb:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar7;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000a9ea0();\n}\n\n" comment (function_definition "int FUN_0005e640(int param_1,char *param_2,undefined4 *param_3,uint param_4,uint *param_5)\n\n{\n  ushort *puVar1;\n  char cVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  __pid_t _Var5;\n  char *pcVar6;\n  int iVar7;\n  undefined *puVar8;\n  int *piVar9;\n  size_t sVar10;\n  int iVar11;\n  undefined1 *puVar12;\n  int *piVar13;\n  uint uVar14;\n  uint uVar15;\n  int *piVar16;\n  undefined *puVar17;\n  byte *pbVar18;\n  uint uVar19;\n  byte *pbVar20;\n  undefined4 *puVar21;\n  undefined4 uVar22;\n  int in_GS_OFFSET;\n  bool bVar23;\n  bool bVar24;\n  byte bVar25;\n  int iVar26;\n  char *local_4b4;\n  undefined4 local_4ac;\n  uint local_4a8;\n  uint local_4a4;\n  int local_484;\n  int local_480;\n  uint local_474;\n  undefined4 local_46c;\n  undefined4 local_468;\n  int local_42c;\n  int local_428;\n  undefined1 local_423 [513];\n  char local_222 [514];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar25 = 0;\n  uStack_14 = 0x5e649;\n  uVar15 = param_4 & 8;\n  local_4a4 = param_4 & 1;\n  uVar19 = param_4 & 2;\n  bVar24 = false;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar4 = param_4 & 0xfff00;\n  if ((param_4 & 4) != 0) {\n    bVar24 = (uVar4 == 0x4000 || uVar4 == 0x800) || uVar4 == 0x80000;\n  }\n  _Var5 = getpid();\n  if (_Var5 != DAT_000df7ac) {\n    DAT_000df7ac = getpid();\n    sqlite3_randomness(0,0);\n  }\n  *param_3 = 0;\n  param_3[0x14] = 0;\n  puVar21 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);\n  for (uVar14 = (uint)((int)param_3 + (0x54 - (int)((uint)(param_3 + 1) & 0xfffffffc))) >> 2;\n      uVar14 != 0; uVar14 = uVar14 - 1) {\n    *puVar21 = 0;\n    puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n  }\n  if (uVar4 == 0x100) {\n    sqlite3_mutex_enter(DAT_000df7a8);\n    if ((DAT_000df7a4 != (int *)0x0) &&\n       (iVar26 = (*(code *)PTR_FUN_000df474)(param_2,&local_484), piVar13 = DAT_000df7a4,\n       iVar26 == 0)) {\n      for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n        if ((piVar13[1] == local_480 && *piVar13 == local_484) &&\n           (local_428 == piVar13[3] && local_42c == piVar13[2])) {\n          sqlite3_mutex_enter(piVar13[4]);\n          piVar9 = (int *)piVar13[8];\n          if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n          if ((param_4 & 3) != piVar9[1]) goto LAB_0005ea33;\n          piVar16 = piVar13 + 8;\n          goto LAB_0005ee53;\n        }\n      }\n    }\n    sqlite3_mutex_leave(DAT_000df7a8);\n    goto LAB_0005ea54;\n  }\n  iVar26 = -1;\n  local_4b4 = param_2;\n  if (param_2 == (char *)0x0) {\n    local_4b4 = local_222;\n    iVar7 = FUN_0005df50();\n    if (iVar7 != 0) goto LAB_0005e8fb;\n  }\n  goto LAB_0005e781;\nLAB_0005ea3a:\n  sqlite3_mutex_leave(piVar13[4]);\n  sqlite3_mutex_leave(DAT_000df7a8);\nLAB_0005ea54:\n  piVar9 = (int *)sqlite3_malloc64(0xc,0);\n  if (piVar9 == (int *)0x0) {\n    iVar7 = 7;\n    goto LAB_0005e8fb;\n  }\n  iVar26 = -1;\n  goto LAB_0005ee78;\n  while ((param_4 & 3) != piVar9[1]) {\nLAB_0005ea33:\n    piVar16 = piVar9;\n    piVar9 = (int *)piVar16[2];\n    if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n  }\n  piVar16 = piVar16 + 2;\nLAB_0005ee53:\n  *piVar16 = piVar9[2];\n  sqlite3_mutex_leave(piVar13[4]);\n  sqlite3_mutex_leave(DAT_000df7a8);\n  iVar26 = *piVar9;\nLAB_0005ee78:\n  param_3[7] = piVar9;\n  local_4b4 = param_2;\nLAB_0005e781:\n  uVar14 = uVar19;\n  if ((param_4 & 4) != 0) {\n    uVar14 = uVar19 | 0x40;\n  }\n  if ((param_4 & 0x10) != 0) {\n    uVar14 = uVar14 | 0x20080;\n  }\n  if (-1 < iVar26) goto LAB_0005e7af;\n  uVar14 = uVar14 | 0x28000;\n  if ((param_4 & 0x80800) == 0) {\n    if (uVar15 == 0) {\n      if (((param_4 & 0x40) != 0) &&\n         (puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof"),\n         puVar12 != (undefined1 *)0x0)) goto LAB_0005eb2c;\nLAB_0005ebd9:\n      iVar26 = FUN_0003a9a0(uVar15,uVar14);\n      if (iVar26 < 0) {\n        local_4ac = 0;\n        local_4a8 = 0;\n        uVar22 = 0;\n        goto LAB_0005ec06;\n      }\n      goto LAB_0005e7af;\n    }\n    iVar26 = FUN_0003a9a0(uVar15,uVar14);\n    if (-1 < iVar26) goto LAB_0005e7af;\n    uVar22 = 0;\n    local_4ac = 0;\n    local_4a8 = 0x180;\nLAB_0005ec06:\n    piVar13 = __errno_location();\n    iVar26 = *piVar13;\n    if ((bVar24) && (iVar26 == 0xd)) {\n      iVar26 = (*(code *)PTR_access_000df45c)(local_4b4,0);\n      if (iVar26 == 0) {\n        iVar26 = *piVar13;\n        goto LAB_0005ec40;\n      }\n      iVar7 = 0x608;\n      FUN_000383b0();\n      FUN_0003aad0(0x9ae7);\n    }\n    else {\nLAB_0005ec40:\n      if ((uVar19 != 0) && (iVar26 != 0x15)) {\n        param_4 = param_4 & 0xfffffff9 | 1;\n        iVar26 = FUN_0003a9a0();\n        if (-1 < iVar26) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }\n      FUN_000383b0();\n      iVar7 = FUN_0003aad0(0x9ae7);\n      if (iVar7 == 0) goto LAB_0005e8fb;\n    }\nLAB_0005ee17:\n    sqlite3_free(param_3[7]);\n  }\n  else {\n    if (local_4b4 == (char *)0x0) {\n      iVar26 = -1;\n    }\n    else {\n      sVar10 = strlen(local_4b4);\n      iVar26 = (sVar10 & 0x3fffffff) - 1;\n    }\n    cVar2 = local_4b4[iVar26];\n    while (cVar2 != '-') {\n      if ((cVar2 == '.') || (iVar26 == 0)) goto LAB_0005ebd9;\n      iVar26 = iVar26 + -1;\n      cVar2 = local_4b4[iVar26];\n    }\n    puVar12 = local_423;\n    __memcpy_chk(puVar12,local_4b4,iVar26,0x201);\n    local_423[iVar26] = 0;\nLAB_0005eb2c:\n    iVar26 = (*(code *)PTR_FUN_000df474)(puVar12,&local_484);\n    iVar7 = 0x70a;\n    if (iVar26 != 0) goto LAB_0005e8fb;\n    local_4a8 = local_474 & 0x1ff;\n    local_4ac = local_46c;\n    iVar26 = FUN_0003a9a0(uVar15,uVar14);\n    uVar22 = local_468;\n    if (iVar26 < 0) goto LAB_0005ec06;\nLAB_0005eb78:\n    if (((local_4a8 != 0) && ((param_4 & 0x80800) != 0)) &&\n       (iVar7 = (*(code *)PTR_geteuid_000df540)(), iVar7 == 0)) {\n      (*(code *)PTR_fchown_000df534)(iVar26,local_4ac,uVar22);\n    }\nLAB_0005e7af:\n    if (param_5 != (uint *)0x0) {\n      *param_5 = param_4;\n    }\n    piVar13 = (int *)param_3[7];\n    if (piVar13 != (int *)0x0) {\n      *piVar13 = iVar26;\n      piVar13[1] = param_4 & 3;\n    }\n    if (uVar15 != 0) {\n      (*(code *)PTR_unlink_000df504)(local_4b4);\n      uVar15 = 0x20;\n    }\n    uVar22 = DAT_000de40c;\n    uVar19 = uVar15 | 2;\n    if (local_4a4 == 0) {\n      uVar19 = uVar15;\n    }\n    uVar15 = uVar19 | 0x80;\n    if (uVar4 == 0x100) {\n      uVar15 = uVar19;\n    }\n    uVar4 = uVar15 | 8;\n    if (!bVar24) {\n      uVar4 = uVar15;\n    }\n    if ((param_4 & 0x40) == 0) {\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[3] = iVar26;\n      pcVar6 = (char *)0x0;\n      if ((uVar4 & 0x40) != 0) {\n        pcVar6 = param_2;\n      }\n      param_3[8] = param_2;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n    }\n    else {\n      uVar4 = uVar4 | 0x40;\n      param_3[3] = iVar26;\n      param_3[8] = param_2;\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n      pcVar6 = param_2;\n    }\n    iVar7 = sqlite3_uri_boolean(pcVar6,&DAT_000aa9b5,1);\n    bVar24 = iVar7 == 0;\n    if (!bVar24) {\n      puVar1 = (ushort *)((int)param_3 + 0x12);\n      *puVar1 = *puVar1 | 0x10;\n      bVar24 = *puVar1 == 0;\n    }\n    bVar23 = false;\n    iVar7 = 10;\n    pbVar18 = *(byte **)(param_1 + 0x10);\n    pbVar20 = (byte *)"unix-excl";\n    do {\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      bVar23 = *pbVar18 < *pbVar20;\n      bVar24 = *pbVar18 == *pbVar20;\n      pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1;\n      pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1;\n    } while (bVar24);\n    if ((!bVar23 && !bVar24) == bVar23) {\n      *(ushort *)((int)param_3 + 0x12) = *(ushort *)((int)param_3 + 0x12) | 1;\n    }\n    if ((uVar4 & 0x80) == 0) {\n      puVar8 = (undefined *)(*(code *)**(undefined4 **)(param_1 + 0x14))(param_2,param_3);\n      puVar17 = &DAT_000dd9e0;\n      if (puVar8 == &DAT_000dd9e0) {\n        sqlite3_mutex_enter(DAT_000df7a8);\n        iVar7 = (*(code *)PTR_FUN_000df480)(param_3[3],&local_484);\n        piVar13 = DAT_000df7a4;\n        if (iVar7 == 0) {\n          for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }\n          piVar13 = (int *)sqlite3_malloc64(0x34,0);\n          if (piVar13 != (int *)0x0) {\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }\n          iVar7 = 7;\n        }\n        else {\n          piVar13 = __errno_location();\n          iVar7 = 10;\n          param_3[5] = *piVar13;\n        }\nLAB_0005efaf:\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        sqlite3_mutex_leave(DAT_000df7a8);\n        param_3[5] = 0;\n        goto LAB_0005ee17;\n      }\n      if (puVar8 != &DAT_000dd920) goto LAB_0005e8e8;\n      sVar10 = strlen(param_2);\n      iVar7 = sVar10 + 6;\n      iVar11 = sqlite3_malloc64(iVar7,iVar7 >> 0x1f);\n      if (iVar11 == 0) {\n        param_3[6] = 0;\n        param_3[5] = 0;\n        iVar7 = 7;\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        goto LAB_0005ee17;\n      }\n      sqlite3_snprintf(iVar7,iVar11,"%s.lock",param_2);\n      param_3[5] = 0;\n      param_3[6] = iVar11;\n    }\n    else {\n      puVar8 = &DAT_000dd980;\nLAB_0005e8e8:\n      param_3[5] = 0;\n    }\nLAB_0005e8ef:\n    *param_3 = puVar8;\n    iVar7 = 0;\n    FUN_0003a610();\n  }\nLAB_0005e8fb:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar7;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000a9ea0();\n}" primitive_type (function_declarator "FUN_0005e640(int param_1,char *param_2,undefined4 *param_3,uint param_4,uint *param_5)" identifier (parameter_list "(int param_1,char *param_2,undefined4 *param_3,uint param_4,uint *param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "uint *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  ushort *puVar1;\n  char cVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  __pid_t _Var5;\n  char *pcVar6;\n  int iVar7;\n  undefined *puVar8;\n  int *piVar9;\n  size_t sVar10;\n  int iVar11;\n  undefined1 *puVar12;\n  int *piVar13;\n  uint uVar14;\n  uint uVar15;\n  int *piVar16;\n  undefined *puVar17;\n  byte *pbVar18;\n  uint uVar19;\n  byte *pbVar20;\n  undefined4 *puVar21;\n  undefined4 uVar22;\n  int in_GS_OFFSET;\n  bool bVar23;\n  bool bVar24;\n  byte bVar25;\n  int iVar26;\n  char *local_4b4;\n  undefined4 local_4ac;\n  uint local_4a8;\n  uint local_4a4;\n  int local_484;\n  int local_480;\n  uint local_474;\n  undefined4 local_46c;\n  undefined4 local_468;\n  int local_42c;\n  int local_428;\n  undefined1 local_423 [513];\n  char local_222 [514];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar25 = 0;\n  uStack_14 = 0x5e649;\n  uVar15 = param_4 & 8;\n  local_4a4 = param_4 & 1;\n  uVar19 = param_4 & 2;\n  bVar24 = false;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar4 = param_4 & 0xfff00;\n  if ((param_4 & 4) != 0) {\n    bVar24 = (uVar4 == 0x4000 || uVar4 == 0x800) || uVar4 == 0x80000;\n  }\n  _Var5 = getpid();\n  if (_Var5 != DAT_000df7ac) {\n    DAT_000df7ac = getpid();\n    sqlite3_randomness(0,0);\n  }\n  *param_3 = 0;\n  param_3[0x14] = 0;\n  puVar21 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);\n  for (uVar14 = (uint)((int)param_3 + (0x54 - (int)((uint)(param_3 + 1) & 0xfffffffc))) >> 2;\n      uVar14 != 0; uVar14 = uVar14 - 1) {\n    *puVar21 = 0;\n    puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n  }\n  if (uVar4 == 0x100) {\n    sqlite3_mutex_enter(DAT_000df7a8);\n    if ((DAT_000df7a4 != (int *)0x0) &&\n       (iVar26 = (*(code *)PTR_FUN_000df474)(param_2,&local_484), piVar13 = DAT_000df7a4,\n       iVar26 == 0)) {\n      for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n        if ((piVar13[1] == local_480 && *piVar13 == local_484) &&\n           (local_428 == piVar13[3] && local_42c == piVar13[2])) {\n          sqlite3_mutex_enter(piVar13[4]);\n          piVar9 = (int *)piVar13[8];\n          if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n          if ((param_4 & 3) != piVar9[1]) goto LAB_0005ea33;\n          piVar16 = piVar13 + 8;\n          goto LAB_0005ee53;\n        }\n      }\n    }\n    sqlite3_mutex_leave(DAT_000df7a8);\n    goto LAB_0005ea54;\n  }\n  iVar26 = -1;\n  local_4b4 = param_2;\n  if (param_2 == (char *)0x0) {\n    local_4b4 = local_222;\n    iVar7 = FUN_0005df50();\n    if (iVar7 != 0) goto LAB_0005e8fb;\n  }\n  goto LAB_0005e781;\nLAB_0005ea3a:\n  sqlite3_mutex_leave(piVar13[4]);\n  sqlite3_mutex_leave(DAT_000df7a8);\nLAB_0005ea54:\n  piVar9 = (int *)sqlite3_malloc64(0xc,0);\n  if (piVar9 == (int *)0x0) {\n    iVar7 = 7;\n    goto LAB_0005e8fb;\n  }\n  iVar26 = -1;\n  goto LAB_0005ee78;\n  while ((param_4 & 3) != piVar9[1]) {\nLAB_0005ea33:\n    piVar16 = piVar9;\n    piVar9 = (int *)piVar16[2];\n    if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n  }\n  piVar16 = piVar16 + 2;\nLAB_0005ee53:\n  *piVar16 = piVar9[2];\n  sqlite3_mutex_leave(piVar13[4]);\n  sqlite3_mutex_leave(DAT_000df7a8);\n  iVar26 = *piVar9;\nLAB_0005ee78:\n  param_3[7] = piVar9;\n  local_4b4 = param_2;\nLAB_0005e781:\n  uVar14 = uVar19;\n  if ((param_4 & 4) != 0) {\n    uVar14 = uVar19 | 0x40;\n  }\n  if ((param_4 & 0x10) != 0) {\n    uVar14 = uVar14 | 0x20080;\n  }\n  if (-1 < iVar26) goto LAB_0005e7af;\n  uVar14 = uVar14 | 0x28000;\n  if ((param_4 & 0x80800) == 0) {\n    if (uVar15 == 0) {\n      if (((param_4 & 0x40) != 0) &&\n         (puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof"),\n         puVar12 != (undefined1 *)0x0)) goto LAB_0005eb2c;\nLAB_0005ebd9:\n      iVar26 = FUN_0003a9a0(uVar15,uVar14);\n      if (iVar26 < 0) {\n        local_4ac = 0;\n        local_4a8 = 0;\n        uVar22 = 0;\n        goto LAB_0005ec06;\n      }\n      goto LAB_0005e7af;\n    }\n    iVar26 = FUN_0003a9a0(uVar15,uVar14);\n    if (-1 < iVar26) goto LAB_0005e7af;\n    uVar22 = 0;\n    local_4ac = 0;\n    local_4a8 = 0x180;\nLAB_0005ec06:\n    piVar13 = __errno_location();\n    iVar26 = *piVar13;\n    if ((bVar24) && (iVar26 == 0xd)) {\n      iVar26 = (*(code *)PTR_access_000df45c)(local_4b4,0);\n      if (iVar26 == 0) {\n        iVar26 = *piVar13;\n        goto LAB_0005ec40;\n      }\n      iVar7 = 0x608;\n      FUN_000383b0();\n      FUN_0003aad0(0x9ae7);\n    }\n    else {\nLAB_0005ec40:\n      if ((uVar19 != 0) && (iVar26 != 0x15)) {\n        param_4 = param_4 & 0xfffffff9 | 1;\n        iVar26 = FUN_0003a9a0();\n        if (-1 < iVar26) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }\n      FUN_000383b0();\n      iVar7 = FUN_0003aad0(0x9ae7);\n      if (iVar7 == 0) goto LAB_0005e8fb;\n    }\nLAB_0005ee17:\n    sqlite3_free(param_3[7]);\n  }\n  else {\n    if (local_4b4 == (char *)0x0) {\n      iVar26 = -1;\n    }\n    else {\n      sVar10 = strlen(local_4b4);\n      iVar26 = (sVar10 & 0x3fffffff) - 1;\n    }\n    cVar2 = local_4b4[iVar26];\n    while (cVar2 != '-') {\n      if ((cVar2 == '.') || (iVar26 == 0)) goto LAB_0005ebd9;\n      iVar26 = iVar26 + -1;\n      cVar2 = local_4b4[iVar26];\n    }\n    puVar12 = local_423;\n    __memcpy_chk(puVar12,local_4b4,iVar26,0x201);\n    local_423[iVar26] = 0;\nLAB_0005eb2c:\n    iVar26 = (*(code *)PTR_FUN_000df474)(puVar12,&local_484);\n    iVar7 = 0x70a;\n    if (iVar26 != 0) goto LAB_0005e8fb;\n    local_4a8 = local_474 & 0x1ff;\n    local_4ac = local_46c;\n    iVar26 = FUN_0003a9a0(uVar15,uVar14);\n    uVar22 = local_468;\n    if (iVar26 < 0) goto LAB_0005ec06;\nLAB_0005eb78:\n    if (((local_4a8 != 0) && ((param_4 & 0x80800) != 0)) &&\n       (iVar7 = (*(code *)PTR_geteuid_000df540)(), iVar7 == 0)) {\n      (*(code *)PTR_fchown_000df534)(iVar26,local_4ac,uVar22);\n    }\nLAB_0005e7af:\n    if (param_5 != (uint *)0x0) {\n      *param_5 = param_4;\n    }\n    piVar13 = (int *)param_3[7];\n    if (piVar13 != (int *)0x0) {\n      *piVar13 = iVar26;\n      piVar13[1] = param_4 & 3;\n    }\n    if (uVar15 != 0) {\n      (*(code *)PTR_unlink_000df504)(local_4b4);\n      uVar15 = 0x20;\n    }\n    uVar22 = DAT_000de40c;\n    uVar19 = uVar15 | 2;\n    if (local_4a4 == 0) {\n      uVar19 = uVar15;\n    }\n    uVar15 = uVar19 | 0x80;\n    if (uVar4 == 0x100) {\n      uVar15 = uVar19;\n    }\n    uVar4 = uVar15 | 8;\n    if (!bVar24) {\n      uVar4 = uVar15;\n    }\n    if ((param_4 & 0x40) == 0) {\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[3] = iVar26;\n      pcVar6 = (char *)0x0;\n      if ((uVar4 & 0x40) != 0) {\n        pcVar6 = param_2;\n      }\n      param_3[8] = param_2;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n    }\n    else {\n      uVar4 = uVar4 | 0x40;\n      param_3[3] = iVar26;\n      param_3[8] = param_2;\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n      pcVar6 = param_2;\n    }\n    iVar7 = sqlite3_uri_boolean(pcVar6,&DAT_000aa9b5,1);\n    bVar24 = iVar7 == 0;\n    if (!bVar24) {\n      puVar1 = (ushort *)((int)param_3 + 0x12);\n      *puVar1 = *puVar1 | 0x10;\n      bVar24 = *puVar1 == 0;\n    }\n    bVar23 = false;\n    iVar7 = 10;\n    pbVar18 = *(byte **)(param_1 + 0x10);\n    pbVar20 = (byte *)"unix-excl";\n    do {\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      bVar23 = *pbVar18 < *pbVar20;\n      bVar24 = *pbVar18 == *pbVar20;\n      pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1;\n      pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1;\n    } while (bVar24);\n    if ((!bVar23 && !bVar24) == bVar23) {\n      *(ushort *)((int)param_3 + 0x12) = *(ushort *)((int)param_3 + 0x12) | 1;\n    }\n    if ((uVar4 & 0x80) == 0) {\n      puVar8 = (undefined *)(*(code *)**(undefined4 **)(param_1 + 0x14))(param_2,param_3);\n      puVar17 = &DAT_000dd9e0;\n      if (puVar8 == &DAT_000dd9e0) {\n        sqlite3_mutex_enter(DAT_000df7a8);\n        iVar7 = (*(code *)PTR_FUN_000df480)(param_3[3],&local_484);\n        piVar13 = DAT_000df7a4;\n        if (iVar7 == 0) {\n          for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }\n          piVar13 = (int *)sqlite3_malloc64(0x34,0);\n          if (piVar13 != (int *)0x0) {\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }\n          iVar7 = 7;\n        }\n        else {\n          piVar13 = __errno_location();\n          iVar7 = 10;\n          param_3[5] = *piVar13;\n        }\nLAB_0005efaf:\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        sqlite3_mutex_leave(DAT_000df7a8);\n        param_3[5] = 0;\n        goto LAB_0005ee17;\n      }\n      if (puVar8 != &DAT_000dd920) goto LAB_0005e8e8;\n      sVar10 = strlen(param_2);\n      iVar7 = sVar10 + 6;\n      iVar11 = sqlite3_malloc64(iVar7,iVar7 >> 0x1f);\n      if (iVar11 == 0) {\n        param_3[6] = 0;\n        param_3[5] = 0;\n        iVar7 = 7;\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        goto LAB_0005ee17;\n      }\n      sqlite3_snprintf(iVar7,iVar11,"%s.lock",param_2);\n      param_3[5] = 0;\n      param_3[6] = iVar11;\n    }\n    else {\n      puVar8 = &DAT_000dd980;\nLAB_0005e8e8:\n      param_3[5] = 0;\n    }\nLAB_0005e8ef:\n    *param_3 = puVar8;\n    iVar7 = 0;\n    FUN_0003a610();\n  }\nLAB_0005e8fb:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar7;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000a9ea0();\n}" { (declaration "ushort *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "__pid_t _Var5;" type_identifier identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "int *piVar9;" primitive_type (pointer_declarator "*piVar9" * identifier) ;) (declaration "size_t sVar10;" primitive_type identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "undefined1 *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "int *piVar13;" primitive_type (pointer_declarator "*piVar13" * identifier) ;) (declaration "uint uVar14;" type_identifier identifier ;) (declaration "uint uVar15;" type_identifier identifier ;) (declaration "int *piVar16;" primitive_type (pointer_declarator "*piVar16" * identifier) ;) (declaration "undefined *puVar17;" type_identifier (pointer_declarator "*puVar17" * identifier) ;) (declaration "byte *pbVar18;" type_identifier (pointer_declarator "*pbVar18" * identifier) ;) (declaration "uint uVar19;" type_identifier identifier ;) (declaration "byte *pbVar20;" type_identifier (pointer_declarator "*pbVar20" * identifier) ;) (declaration "undefined4 *puVar21;" type_identifier (pointer_declarator "*puVar21" * identifier) ;) (declaration "undefined4 uVar22;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar23;" primitive_type identifier ;) (declaration "bool bVar24;" primitive_type identifier ;) (declaration "byte bVar25;" type_identifier identifier ;) (declaration "int iVar26;" primitive_type identifier ;) (declaration "char *local_4b4;" primitive_type (pointer_declarator "*local_4b4" * identifier) ;) (declaration "undefined4 local_4ac;" type_identifier identifier ;) (declaration "uint local_4a8;" type_identifier identifier ;) (declaration "uint local_4a4;" type_identifier identifier ;) (declaration "int local_484;" primitive_type identifier ;) (declaration "int local_480;" primitive_type identifier ;) (declaration "uint local_474;" type_identifier identifier ;) (declaration "undefined4 local_46c;" type_identifier identifier ;) (declaration "undefined4 local_468;" type_identifier identifier ;) (declaration "int local_42c;" primitive_type identifier ;) (declaration "int local_428;" primitive_type identifier ;) (declaration "undefined1 local_423 [513];" type_identifier (array_declarator "local_423 [513]" identifier [ number_literal ]) ;) (declaration "char local_222 [514];" primitive_type (array_declarator "local_222 [514]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "bVar25 = 0;" (assignment_expression "bVar25 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 0x5e649;" (assignment_expression "uStack_14 = 0x5e649" identifier = number_literal) ;) (expression_statement "uVar15 = param_4 & 8;" (assignment_expression "uVar15 = param_4 & 8" identifier = (binary_expression "param_4 & 8" identifier & number_literal)) ;) (expression_statement "local_4a4 = param_4 & 1;" (assignment_expression "local_4a4 = param_4 & 1" identifier = (binary_expression "param_4 & 1" identifier & number_literal)) ;) (expression_statement "uVar19 = param_4 & 2;" (assignment_expression "uVar19 = param_4 & 2" identifier = (binary_expression "param_4 & 2" identifier & number_literal)) ;) (expression_statement "bVar24 = false;" (assignment_expression "bVar24 = false" identifier = false) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = param_4 & 0xfff00;" (assignment_expression "uVar4 = param_4 & 0xfff00" identifier = (binary_expression "param_4 & 0xfff00" identifier & number_literal)) ;) (if_statement "if ((param_4 & 4) != 0) {\n    bVar24 = (uVar4 == 0x4000 || uVar4 == 0x800) || uVar4 == 0x80000;\n  }" if (parenthesized_expression "((param_4 & 4) != 0)" ( (binary_expression "(param_4 & 4) != 0" (parenthesized_expression "(param_4 & 4)" ( (binary_expression "param_4 & 4" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    bVar24 = (uVar4 == 0x4000 || uVar4 == 0x800) || uVar4 == 0x80000;\n  }" { (expression_statement "bVar24 = (uVar4 == 0x4000 || uVar4 == 0x800) || uVar4 == 0x80000;" (assignment_expression "bVar24 = (uVar4 == 0x4000 || uVar4 == 0x800) || uVar4 == 0x80000" identifier = (binary_expression "(uVar4 == 0x4000 || uVar4 == 0x800) || uVar4 == 0x80000" (parenthesized_expression "(uVar4 == 0x4000 || uVar4 == 0x800)" ( (binary_expression "uVar4 == 0x4000 || uVar4 == 0x800" (binary_expression "uVar4 == 0x4000" identifier == number_literal) || (binary_expression "uVar4 == 0x800" identifier == number_literal)) )) || (binary_expression "uVar4 == 0x80000" identifier == number_literal))) ;) })) (expression_statement "_Var5 = getpid();" (assignment_expression "_Var5 = getpid()" identifier = (call_expression "getpid()" identifier (argument_list "()" ( )))) ;) (if_statement "if (_Var5 != DAT_000df7ac) {\n    DAT_000df7ac = getpid();\n    sqlite3_randomness(0,0);\n  }" if (parenthesized_expression "(_Var5 != DAT_000df7ac)" ( (binary_expression "_Var5 != DAT_000df7ac" identifier != identifier) )) (compound_statement "{\n    DAT_000df7ac = getpid();\n    sqlite3_randomness(0,0);\n  }" { (expression_statement "DAT_000df7ac = getpid();" (assignment_expression "DAT_000df7ac = getpid()" identifier = (call_expression "getpid()" identifier (argument_list "()" ( )))) ;) (expression_statement "sqlite3_randomness(0,0);" (call_expression "sqlite3_randomness(0,0)" identifier (argument_list "(0,0)" ( number_literal , number_literal ))) ;) })) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) (expression_statement "param_3[0x14] = 0;" (assignment_expression "param_3[0x14] = 0" (subscript_expression "param_3[0x14]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar21 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);" (assignment_expression "puVar21 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)(param_3 + 1) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(param_3 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(param_3 + 1) & 0xfffffffc" (call_expression "(uint)(param_3 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 + 1)" ( (binary_expression "param_3 + 1" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar14 = (uint)((int)param_3 + (0x54 - (int)((uint)(param_3 + 1) & 0xfffffffc))) >> 2;\n      uVar14 != 0; uVar14 = uVar14 - 1) {\n    *puVar21 = 0;\n    puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n  }" for ( (assignment_expression "uVar14 = (uint)((int)param_3 + (0x54 - (int)((uint)(param_3 + 1) & 0xfffffffc))) >> 2" identifier = (binary_expression "(uint)((int)param_3 + (0x54 - (int)((uint)(param_3 + 1) & 0xfffffffc))) >> 2" (call_expression "(uint)((int)param_3 + (0x54 - (int)((uint)(param_3 + 1) & 0xfffffffc)))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)param_3 + (0x54 - (int)((uint)(param_3 + 1) & 0xfffffffc)))" ( (binary_expression "(int)param_3 + (0x54 - (int)((uint)(param_3 + 1) & 0xfffffffc))" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x54 - (int)((uint)(param_3 + 1) & 0xfffffffc))" ( (binary_expression "0x54 - (int)((uint)(param_3 + 1) & 0xfffffffc)" number_literal - (cast_expression "(int)((uint)(param_3 + 1) & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(param_3 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(param_3 + 1) & 0xfffffffc" (call_expression "(uint)(param_3 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 + 1)" ( (binary_expression "param_3 + 1" identifier + number_literal) ))) & number_literal) )))) ))) ))) >> number_literal)) ; (binary_expression "uVar14 != 0" identifier != number_literal) ; (assignment_expression "uVar14 = uVar14 - 1" identifier = (binary_expression "uVar14 - 1" identifier - number_literal)) ) (compound_statement "{\n    *puVar21 = 0;\n    puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n  }" { (expression_statement "*puVar21 = 0;" (assignment_expression "*puVar21 = 0" (pointer_expression "*puVar21" * identifier) = number_literal) ;) (expression_statement "puVar21 = puVar21 + (uint)bVar25 * -2 + 1;" (assignment_expression "puVar21 = puVar21 + (uint)bVar25 * -2 + 1" identifier = (binary_expression "puVar21 + (uint)bVar25 * -2 + 1" (binary_expression "puVar21 + (uint)bVar25 * -2" identifier + (binary_expression "(uint)bVar25 * -2" (cast_expression "(uint)bVar25" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (if_statement "if (uVar4 == 0x100) {\n    sqlite3_mutex_enter(DAT_000df7a8);\n    if ((DAT_000df7a4 != (int *)0x0) &&\n       (iVar26 = (*(code *)PTR_FUN_000df474)(param_2,&local_484), piVar13 = DAT_000df7a4,\n       iVar26 == 0)) {\n      for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n        if ((piVar13[1] == local_480 && *piVar13 == local_484) &&\n           (local_428 == piVar13[3] && local_42c == piVar13[2])) {\n          sqlite3_mutex_enter(piVar13[4]);\n          piVar9 = (int *)piVar13[8];\n          if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n          if ((param_4 & 3) != piVar9[1]) goto LAB_0005ea33;\n          piVar16 = piVar13 + 8;\n          goto LAB_0005ee53;\n        }\n      }\n    }\n    sqlite3_mutex_leave(DAT_000df7a8);\n    goto LAB_0005ea54;\n  }" if (parenthesized_expression "(uVar4 == 0x100)" ( (binary_expression "uVar4 == 0x100" identifier == number_literal) )) (compound_statement "{\n    sqlite3_mutex_enter(DAT_000df7a8);\n    if ((DAT_000df7a4 != (int *)0x0) &&\n       (iVar26 = (*(code *)PTR_FUN_000df474)(param_2,&local_484), piVar13 = DAT_000df7a4,\n       iVar26 == 0)) {\n      for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n        if ((piVar13[1] == local_480 && *piVar13 == local_484) &&\n           (local_428 == piVar13[3] && local_42c == piVar13[2])) {\n          sqlite3_mutex_enter(piVar13[4]);\n          piVar9 = (int *)piVar13[8];\n          if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n          if ((param_4 & 3) != piVar9[1]) goto LAB_0005ea33;\n          piVar16 = piVar13 + 8;\n          goto LAB_0005ee53;\n        }\n      }\n    }\n    sqlite3_mutex_leave(DAT_000df7a8);\n    goto LAB_0005ea54;\n  }" { (expression_statement "sqlite3_mutex_enter(DAT_000df7a8);" (call_expression "sqlite3_mutex_enter(DAT_000df7a8)" identifier (argument_list "(DAT_000df7a8)" ( identifier ))) ;) (if_statement "if ((DAT_000df7a4 != (int *)0x0) &&\n       (iVar26 = (*(code *)PTR_FUN_000df474)(param_2,&local_484), piVar13 = DAT_000df7a4,\n       iVar26 == 0)) {\n      for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n        if ((piVar13[1] == local_480 && *piVar13 == local_484) &&\n           (local_428 == piVar13[3] && local_42c == piVar13[2])) {\n          sqlite3_mutex_enter(piVar13[4]);\n          piVar9 = (int *)piVar13[8];\n          if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n          if ((param_4 & 3) != piVar9[1]) goto LAB_0005ea33;\n          piVar16 = piVar13 + 8;\n          goto LAB_0005ee53;\n        }\n      }\n    }" if (parenthesized_expression "((DAT_000df7a4 != (int *)0x0) &&\n       (iVar26 = (*(code *)PTR_FUN_000df474)(param_2,&local_484), piVar13 = DAT_000df7a4,\n       iVar26 == 0))" ( (binary_expression "(DAT_000df7a4 != (int *)0x0) &&\n       (iVar26 = (*(code *)PTR_FUN_000df474)(param_2,&local_484), piVar13 = DAT_000df7a4,\n       iVar26 == 0)" (parenthesized_expression "(DAT_000df7a4 != (int *)0x0)" ( (binary_expression "DAT_000df7a4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(iVar26 = (*(code *)PTR_FUN_000df474)(param_2,&local_484), piVar13 = DAT_000df7a4,\n       iVar26 == 0)" ( (comma_expression "iVar26 = (*(code *)PTR_FUN_000df474)(param_2,&local_484), piVar13 = DAT_000df7a4,\n       iVar26 == 0" (assignment_expression "iVar26 = (*(code *)PTR_FUN_000df474)(param_2,&local_484)" identifier = (call_expression "(*(code *)PTR_FUN_000df474)(param_2,&local_484)" (parenthesized_expression "(*(code *)PTR_FUN_000df474)" ( (pointer_expression "*(code *)PTR_FUN_000df474" * (cast_expression "(code *)PTR_FUN_000df474" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,&local_484)" ( identifier , (pointer_expression "&local_484" & identifier) )))) , (comma_expression "piVar13 = DAT_000df7a4,\n       iVar26 == 0" (assignment_expression "piVar13 = DAT_000df7a4" identifier = identifier) , (binary_expression "iVar26 == 0" identifier == number_literal))) ))) )) (compound_statement "{\n      for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n        if ((piVar13[1] == local_480 && *piVar13 == local_484) &&\n           (local_428 == piVar13[3] && local_42c == piVar13[2])) {\n          sqlite3_mutex_enter(piVar13[4]);\n          piVar9 = (int *)piVar13[8];\n          if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n          if ((param_4 & 3) != piVar9[1]) goto LAB_0005ea33;\n          piVar16 = piVar13 + 8;\n          goto LAB_0005ee53;\n        }\n      }\n    }" { (for_statement "for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n        if ((piVar13[1] == local_480 && *piVar13 == local_484) &&\n           (local_428 == piVar13[3] && local_42c == piVar13[2])) {\n          sqlite3_mutex_enter(piVar13[4]);\n          piVar9 = (int *)piVar13[8];\n          if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n          if ((param_4 & 3) != piVar9[1]) goto LAB_0005ea33;\n          piVar16 = piVar13 + 8;\n          goto LAB_0005ee53;\n        }\n      }" for ( ; (binary_expression "piVar13 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "piVar13 = (int *)piVar13[0xb]" identifier = (cast_expression "(int *)piVar13[0xb]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar13[0xb]" identifier [ number_literal ]))) ) (compound_statement "{\n        if ((piVar13[1] == local_480 && *piVar13 == local_484) &&\n           (local_428 == piVar13[3] && local_42c == piVar13[2])) {\n          sqlite3_mutex_enter(piVar13[4]);\n          piVar9 = (int *)piVar13[8];\n          if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n          if ((param_4 & 3) != piVar9[1]) goto LAB_0005ea33;\n          piVar16 = piVar13 + 8;\n          goto LAB_0005ee53;\n        }\n      }" { (if_statement "if ((piVar13[1] == local_480 && *piVar13 == local_484) &&\n           (local_428 == piVar13[3] && local_42c == piVar13[2])) {\n          sqlite3_mutex_enter(piVar13[4]);\n          piVar9 = (int *)piVar13[8];\n          if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n          if ((param_4 & 3) != piVar9[1]) goto LAB_0005ea33;\n          piVar16 = piVar13 + 8;\n          goto LAB_0005ee53;\n        }" if (parenthesized_expression "((piVar13[1] == local_480 && *piVar13 == local_484) &&\n           (local_428 == piVar13[3] && local_42c == piVar13[2]))" ( (binary_expression "(piVar13[1] == local_480 && *piVar13 == local_484) &&\n           (local_428 == piVar13[3] && local_42c == piVar13[2])" (parenthesized_expression "(piVar13[1] == local_480 && *piVar13 == local_484)" ( (binary_expression "piVar13[1] == local_480 && *piVar13 == local_484" (binary_expression "piVar13[1] == local_480" (subscript_expression "piVar13[1]" identifier [ number_literal ]) == identifier) && (binary_expression "*piVar13 == local_484" (pointer_expression "*piVar13" * identifier) == identifier)) )) && (parenthesized_expression "(local_428 == piVar13[3] && local_42c == piVar13[2])" ( (binary_expression "local_428 == piVar13[3] && local_42c == piVar13[2]" (binary_expression "local_428 == piVar13[3]" identifier == (subscript_expression "piVar13[3]" identifier [ number_literal ])) && (binary_expression "local_42c == piVar13[2]" identifier == (subscript_expression "piVar13[2]" identifier [ number_literal ]))) ))) )) (compound_statement "{\n          sqlite3_mutex_enter(piVar13[4]);\n          piVar9 = (int *)piVar13[8];\n          if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n          if ((param_4 & 3) != piVar9[1]) goto LAB_0005ea33;\n          piVar16 = piVar13 + 8;\n          goto LAB_0005ee53;\n        }" { (expression_statement "sqlite3_mutex_enter(piVar13[4]);" (call_expression "sqlite3_mutex_enter(piVar13[4])" identifier (argument_list "(piVar13[4])" ( (subscript_expression "piVar13[4]" identifier [ number_literal ]) ))) ;) (expression_statement "piVar9 = (int *)piVar13[8];" (assignment_expression "piVar9 = (int *)piVar13[8]" identifier = (cast_expression "(int *)piVar13[8]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar13[8]" identifier [ number_literal ]))) ;) (if_statement "if (piVar9 == (int *)0x0) goto LAB_0005ea3a;" if (parenthesized_expression "(piVar9 == (int *)0x0)" ( (binary_expression "piVar9 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0005ea3a;" goto statement_identifier ;)) (if_statement "if ((param_4 & 3) != piVar9[1]) goto LAB_0005ea33;" if (parenthesized_expression "((param_4 & 3) != piVar9[1])" ( (binary_expression "(param_4 & 3) != piVar9[1]" (parenthesized_expression "(param_4 & 3)" ( (binary_expression "param_4 & 3" identifier & number_literal) )) != (subscript_expression "piVar9[1]" identifier [ number_literal ])) )) (goto_statement "goto LAB_0005ea33;" goto statement_identifier ;)) (expression_statement "piVar16 = piVar13 + 8;" (assignment_expression "piVar16 = piVar13 + 8" identifier = (binary_expression "piVar13 + 8" identifier + number_literal)) ;) (goto_statement "goto LAB_0005ee53;" goto statement_identifier ;) })) })) })) (expression_statement "sqlite3_mutex_leave(DAT_000df7a8);" (call_expression "sqlite3_mutex_leave(DAT_000df7a8)" identifier (argument_list "(DAT_000df7a8)" ( identifier ))) ;) (goto_statement "goto LAB_0005ea54;" goto statement_identifier ;) })) (expression_statement "iVar26 = -1;" (assignment_expression "iVar26 = -1" identifier = number_literal) ;) (expression_statement "local_4b4 = param_2;" (assignment_expression "local_4b4 = param_2" identifier = identifier) ;) (if_statement "if (param_2 == (char *)0x0) {\n    local_4b4 = local_222;\n    iVar7 = FUN_0005df50();\n    if (iVar7 != 0) goto LAB_0005e8fb;\n  }" if (parenthesized_expression "(param_2 == (char *)0x0)" ( (binary_expression "param_2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_4b4 = local_222;\n    iVar7 = FUN_0005df50();\n    if (iVar7 != 0) goto LAB_0005e8fb;\n  }" { (expression_statement "local_4b4 = local_222;" (assignment_expression "local_4b4 = local_222" identifier = identifier) ;) (expression_statement "iVar7 = FUN_0005df50();" (assignment_expression "iVar7 = FUN_0005df50()" identifier = (call_expression "FUN_0005df50()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar7 != 0) goto LAB_0005e8fb;" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0005e8fb;" goto statement_identifier ;)) })) (goto_statement "goto LAB_0005e781;" goto statement_identifier ;) (labeled_statement "LAB_0005ea3a:\n  sqlite3_mutex_leave(piVar13[4]);" statement_identifier : (expression_statement "sqlite3_mutex_leave(piVar13[4]);" (call_expression "sqlite3_mutex_leave(piVar13[4])" identifier (argument_list "(piVar13[4])" ( (subscript_expression "piVar13[4]" identifier [ number_literal ]) ))) ;)) (expression_statement "sqlite3_mutex_leave(DAT_000df7a8);" (call_expression "sqlite3_mutex_leave(DAT_000df7a8)" identifier (argument_list "(DAT_000df7a8)" ( identifier ))) ;) (labeled_statement "LAB_0005ea54:\n  piVar9 = (int *)sqlite3_malloc64(0xc,0);" statement_identifier : (expression_statement "piVar9 = (int *)sqlite3_malloc64(0xc,0);" (assignment_expression "piVar9 = (int *)sqlite3_malloc64(0xc,0)" identifier = (cast_expression "(int *)sqlite3_malloc64(0xc,0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_malloc64(0xc,0)" identifier (argument_list "(0xc,0)" ( number_literal , number_literal ))))) ;)) (if_statement "if (piVar9 == (int *)0x0) {\n    iVar7 = 7;\n    goto LAB_0005e8fb;\n  }" if (parenthesized_expression "(piVar9 == (int *)0x0)" ( (binary_expression "piVar9 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar7 = 7;\n    goto LAB_0005e8fb;\n  }" { (expression_statement "iVar7 = 7;" (assignment_expression "iVar7 = 7" identifier = number_literal) ;) (goto_statement "goto LAB_0005e8fb;" goto statement_identifier ;) })) (expression_statement "iVar26 = -1;" (assignment_expression "iVar26 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_0005ee78;" goto statement_identifier ;) (while_statement "while ((param_4 & 3) != piVar9[1]) {\nLAB_0005ea33:\n    piVar16 = piVar9;\n    piVar9 = (int *)piVar16[2];\n    if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n  }" while (parenthesized_expression "((param_4 & 3) != piVar9[1])" ( (binary_expression "(param_4 & 3) != piVar9[1]" (parenthesized_expression "(param_4 & 3)" ( (binary_expression "param_4 & 3" identifier & number_literal) )) != (subscript_expression "piVar9[1]" identifier [ number_literal ])) )) (compound_statement "{\nLAB_0005ea33:\n    piVar16 = piVar9;\n    piVar9 = (int *)piVar16[2];\n    if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n  }" { (labeled_statement "LAB_0005ea33:\n    piVar16 = piVar9;" statement_identifier : (expression_statement "piVar16 = piVar9;" (assignment_expression "piVar16 = piVar9" identifier = identifier) ;)) (expression_statement "piVar9 = (int *)piVar16[2];" (assignment_expression "piVar9 = (int *)piVar16[2]" identifier = (cast_expression "(int *)piVar16[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar16[2]" identifier [ number_literal ]))) ;) (if_statement "if (piVar9 == (int *)0x0) goto LAB_0005ea3a;" if (parenthesized_expression "(piVar9 == (int *)0x0)" ( (binary_expression "piVar9 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0005ea3a;" goto statement_identifier ;)) })) (expression_statement "piVar16 = piVar16 + 2;" (assignment_expression "piVar16 = piVar16 + 2" identifier = (binary_expression "piVar16 + 2" identifier + number_literal)) ;) (labeled_statement "LAB_0005ee53:\n  *piVar16 = piVar9[2];" statement_identifier : (expression_statement "*piVar16 = piVar9[2];" (assignment_expression "*piVar16 = piVar9[2]" (pointer_expression "*piVar16" * identifier) = (subscript_expression "piVar9[2]" identifier [ number_literal ])) ;)) (expression_statement "sqlite3_mutex_leave(piVar13[4]);" (call_expression "sqlite3_mutex_leave(piVar13[4])" identifier (argument_list "(piVar13[4])" ( (subscript_expression "piVar13[4]" identifier [ number_literal ]) ))) ;) (expression_statement "sqlite3_mutex_leave(DAT_000df7a8);" (call_expression "sqlite3_mutex_leave(DAT_000df7a8)" identifier (argument_list "(DAT_000df7a8)" ( identifier ))) ;) (expression_statement "iVar26 = *piVar9;" (assignment_expression "iVar26 = *piVar9" identifier = (pointer_expression "*piVar9" * identifier)) ;) (labeled_statement "LAB_0005ee78:\n  param_3[7] = piVar9;" statement_identifier : (expression_statement "param_3[7] = piVar9;" (assignment_expression "param_3[7] = piVar9" (subscript_expression "param_3[7]" identifier [ number_literal ]) = identifier) ;)) (expression_statement "local_4b4 = param_2;" (assignment_expression "local_4b4 = param_2" identifier = identifier) ;) (labeled_statement "LAB_0005e781:\n  uVar14 = uVar19;" statement_identifier : (expression_statement "uVar14 = uVar19;" (assignment_expression "uVar14 = uVar19" identifier = identifier) ;)) (if_statement "if ((param_4 & 4) != 0) {\n    uVar14 = uVar19 | 0x40;\n  }" if (parenthesized_expression "((param_4 & 4) != 0)" ( (binary_expression "(param_4 & 4) != 0" (parenthesized_expression "(param_4 & 4)" ( (binary_expression "param_4 & 4" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar14 = uVar19 | 0x40;\n  }" { (expression_statement "uVar14 = uVar19 | 0x40;" (assignment_expression "uVar14 = uVar19 | 0x40" identifier = (binary_expression "uVar19 | 0x40" identifier | number_literal)) ;) })) (if_statement "if ((param_4 & 0x10) != 0) {\n    uVar14 = uVar14 | 0x20080;\n  }" if (parenthesized_expression "((param_4 & 0x10) != 0)" ( (binary_expression "(param_4 & 0x10) != 0" (parenthesized_expression "(param_4 & 0x10)" ( (binary_expression "param_4 & 0x10" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar14 = uVar14 | 0x20080;\n  }" { (expression_statement "uVar14 = uVar14 | 0x20080;" (assignment_expression "uVar14 = uVar14 | 0x20080" identifier = (binary_expression "uVar14 | 0x20080" identifier | number_literal)) ;) })) (if_statement "if (-1 < iVar26) goto LAB_0005e7af;" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (goto_statement "goto LAB_0005e7af;" goto statement_identifier ;)) (expression_statement "uVar14 = uVar14 | 0x28000;" (assignment_expression "uVar14 = uVar14 | 0x28000" identifier = (binary_expression "uVar14 | 0x28000" identifier | number_literal)) ;) (if_statement "if ((param_4 & 0x80800) == 0) {\n    if (uVar15 == 0) {\n      if (((param_4 & 0x40) != 0) &&\n         (puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof"),\n         puVar12 != (undefined1 *)0x0)) goto LAB_0005eb2c;\nLAB_0005ebd9:\n      iVar26 = FUN_0003a9a0(uVar15,uVar14);\n      if (iVar26 < 0) {\n        local_4ac = 0;\n        local_4a8 = 0;\n        uVar22 = 0;\n        goto LAB_0005ec06;\n      }\n      goto LAB_0005e7af;\n    }\n    iVar26 = FUN_0003a9a0(uVar15,uVar14);\n    if (-1 < iVar26) goto LAB_0005e7af;\n    uVar22 = 0;\n    local_4ac = 0;\n    local_4a8 = 0x180;\nLAB_0005ec06:\n    piVar13 = __errno_location();\n    iVar26 = *piVar13;\n    if ((bVar24) && (iVar26 == 0xd)) {\n      iVar26 = (*(code *)PTR_access_000df45c)(local_4b4,0);\n      if (iVar26 == 0) {\n        iVar26 = *piVar13;\n        goto LAB_0005ec40;\n      }\n      iVar7 = 0x608;\n      FUN_000383b0();\n      FUN_0003aad0(0x9ae7);\n    }\n    else {\nLAB_0005ec40:\n      if ((uVar19 != 0) && (iVar26 != 0x15)) {\n        param_4 = param_4 & 0xfffffff9 | 1;\n        iVar26 = FUN_0003a9a0();\n        if (-1 < iVar26) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }\n      FUN_000383b0();\n      iVar7 = FUN_0003aad0(0x9ae7);\n      if (iVar7 == 0) goto LAB_0005e8fb;\n    }\nLAB_0005ee17:\n    sqlite3_free(param_3[7]);\n  }\n  else {\n    if (local_4b4 == (char *)0x0) {\n      iVar26 = -1;\n    }\n    else {\n      sVar10 = strlen(local_4b4);\n      iVar26 = (sVar10 & 0x3fffffff) - 1;\n    }\n    cVar2 = local_4b4[iVar26];\n    while (cVar2 != '-') {\n      if ((cVar2 == '.') || (iVar26 == 0)) goto LAB_0005ebd9;\n      iVar26 = iVar26 + -1;\n      cVar2 = local_4b4[iVar26];\n    }\n    puVar12 = local_423;\n    __memcpy_chk(puVar12,local_4b4,iVar26,0x201);\n    local_423[iVar26] = 0;\nLAB_0005eb2c:\n    iVar26 = (*(code *)PTR_FUN_000df474)(puVar12,&local_484);\n    iVar7 = 0x70a;\n    if (iVar26 != 0) goto LAB_0005e8fb;\n    local_4a8 = local_474 & 0x1ff;\n    local_4ac = local_46c;\n    iVar26 = FUN_0003a9a0(uVar15,uVar14);\n    uVar22 = local_468;\n    if (iVar26 < 0) goto LAB_0005ec06;\nLAB_0005eb78:\n    if (((local_4a8 != 0) && ((param_4 & 0x80800) != 0)) &&\n       (iVar7 = (*(code *)PTR_geteuid_000df540)(), iVar7 == 0)) {\n      (*(code *)PTR_fchown_000df534)(iVar26,local_4ac,uVar22);\n    }\nLAB_0005e7af:\n    if (param_5 != (uint *)0x0) {\n      *param_5 = param_4;\n    }\n    piVar13 = (int *)param_3[7];\n    if (piVar13 != (int *)0x0) {\n      *piVar13 = iVar26;\n      piVar13[1] = param_4 & 3;\n    }\n    if (uVar15 != 0) {\n      (*(code *)PTR_unlink_000df504)(local_4b4);\n      uVar15 = 0x20;\n    }\n    uVar22 = DAT_000de40c;\n    uVar19 = uVar15 | 2;\n    if (local_4a4 == 0) {\n      uVar19 = uVar15;\n    }\n    uVar15 = uVar19 | 0x80;\n    if (uVar4 == 0x100) {\n      uVar15 = uVar19;\n    }\n    uVar4 = uVar15 | 8;\n    if (!bVar24) {\n      uVar4 = uVar15;\n    }\n    if ((param_4 & 0x40) == 0) {\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[3] = iVar26;\n      pcVar6 = (char *)0x0;\n      if ((uVar4 & 0x40) != 0) {\n        pcVar6 = param_2;\n      }\n      param_3[8] = param_2;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n    }\n    else {\n      uVar4 = uVar4 | 0x40;\n      param_3[3] = iVar26;\n      param_3[8] = param_2;\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n      pcVar6 = param_2;\n    }\n    iVar7 = sqlite3_uri_boolean(pcVar6,&DAT_000aa9b5,1);\n    bVar24 = iVar7 == 0;\n    if (!bVar24) {\n      puVar1 = (ushort *)((int)param_3 + 0x12);\n      *puVar1 = *puVar1 | 0x10;\n      bVar24 = *puVar1 == 0;\n    }\n    bVar23 = false;\n    iVar7 = 10;\n    pbVar18 = *(byte **)(param_1 + 0x10);\n    pbVar20 = (byte *)"unix-excl";\n    do {\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      bVar23 = *pbVar18 < *pbVar20;\n      bVar24 = *pbVar18 == *pbVar20;\n      pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1;\n      pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1;\n    } while (bVar24);\n    if ((!bVar23 && !bVar24) == bVar23) {\n      *(ushort *)((int)param_3 + 0x12) = *(ushort *)((int)param_3 + 0x12) | 1;\n    }\n    if ((uVar4 & 0x80) == 0) {\n      puVar8 = (undefined *)(*(code *)**(undefined4 **)(param_1 + 0x14))(param_2,param_3);\n      puVar17 = &DAT_000dd9e0;\n      if (puVar8 == &DAT_000dd9e0) {\n        sqlite3_mutex_enter(DAT_000df7a8);\n        iVar7 = (*(code *)PTR_FUN_000df480)(param_3[3],&local_484);\n        piVar13 = DAT_000df7a4;\n        if (iVar7 == 0) {\n          for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }\n          piVar13 = (int *)sqlite3_malloc64(0x34,0);\n          if (piVar13 != (int *)0x0) {\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }\n          iVar7 = 7;\n        }\n        else {\n          piVar13 = __errno_location();\n          iVar7 = 10;\n          param_3[5] = *piVar13;\n        }\nLAB_0005efaf:\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        sqlite3_mutex_leave(DAT_000df7a8);\n        param_3[5] = 0;\n        goto LAB_0005ee17;\n      }\n      if (puVar8 != &DAT_000dd920) goto LAB_0005e8e8;\n      sVar10 = strlen(param_2);\n      iVar7 = sVar10 + 6;\n      iVar11 = sqlite3_malloc64(iVar7,iVar7 >> 0x1f);\n      if (iVar11 == 0) {\n        param_3[6] = 0;\n        param_3[5] = 0;\n        iVar7 = 7;\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        goto LAB_0005ee17;\n      }\n      sqlite3_snprintf(iVar7,iVar11,"%s.lock",param_2);\n      param_3[5] = 0;\n      param_3[6] = iVar11;\n    }\n    else {\n      puVar8 = &DAT_000dd980;\nLAB_0005e8e8:\n      param_3[5] = 0;\n    }\nLAB_0005e8ef:\n    *param_3 = puVar8;\n    iVar7 = 0;\n    FUN_0003a610();\n  }" if (parenthesized_expression "((param_4 & 0x80800) == 0)" ( (binary_expression "(param_4 & 0x80800) == 0" (parenthesized_expression "(param_4 & 0x80800)" ( (binary_expression "param_4 & 0x80800" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if (uVar15 == 0) {\n      if (((param_4 & 0x40) != 0) &&\n         (puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof"),\n         puVar12 != (undefined1 *)0x0)) goto LAB_0005eb2c;\nLAB_0005ebd9:\n      iVar26 = FUN_0003a9a0(uVar15,uVar14);\n      if (iVar26 < 0) {\n        local_4ac = 0;\n        local_4a8 = 0;\n        uVar22 = 0;\n        goto LAB_0005ec06;\n      }\n      goto LAB_0005e7af;\n    }\n    iVar26 = FUN_0003a9a0(uVar15,uVar14);\n    if (-1 < iVar26) goto LAB_0005e7af;\n    uVar22 = 0;\n    local_4ac = 0;\n    local_4a8 = 0x180;\nLAB_0005ec06:\n    piVar13 = __errno_location();\n    iVar26 = *piVar13;\n    if ((bVar24) && (iVar26 == 0xd)) {\n      iVar26 = (*(code *)PTR_access_000df45c)(local_4b4,0);\n      if (iVar26 == 0) {\n        iVar26 = *piVar13;\n        goto LAB_0005ec40;\n      }\n      iVar7 = 0x608;\n      FUN_000383b0();\n      FUN_0003aad0(0x9ae7);\n    }\n    else {\nLAB_0005ec40:\n      if ((uVar19 != 0) && (iVar26 != 0x15)) {\n        param_4 = param_4 & 0xfffffff9 | 1;\n        iVar26 = FUN_0003a9a0();\n        if (-1 < iVar26) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }\n      FUN_000383b0();\n      iVar7 = FUN_0003aad0(0x9ae7);\n      if (iVar7 == 0) goto LAB_0005e8fb;\n    }\nLAB_0005ee17:\n    sqlite3_free(param_3[7]);\n  }" { (if_statement "if (uVar15 == 0) {\n      if (((param_4 & 0x40) != 0) &&\n         (puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof"),\n         puVar12 != (undefined1 *)0x0)) goto LAB_0005eb2c;\nLAB_0005ebd9:\n      iVar26 = FUN_0003a9a0(uVar15,uVar14);\n      if (iVar26 < 0) {\n        local_4ac = 0;\n        local_4a8 = 0;\n        uVar22 = 0;\n        goto LAB_0005ec06;\n      }\n      goto LAB_0005e7af;\n    }" if (parenthesized_expression "(uVar15 == 0)" ( (binary_expression "uVar15 == 0" identifier == number_literal) )) (compound_statement "{\n      if (((param_4 & 0x40) != 0) &&\n         (puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof"),\n         puVar12 != (undefined1 *)0x0)) goto LAB_0005eb2c;\nLAB_0005ebd9:\n      iVar26 = FUN_0003a9a0(uVar15,uVar14);\n      if (iVar26 < 0) {\n        local_4ac = 0;\n        local_4a8 = 0;\n        uVar22 = 0;\n        goto LAB_0005ec06;\n      }\n      goto LAB_0005e7af;\n    }" { (if_statement "if (((param_4 & 0x40) != 0) &&\n         (puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof"),\n         puVar12 != (undefined1 *)0x0)) goto LAB_0005eb2c;" if (parenthesized_expression "(((param_4 & 0x40) != 0) &&\n         (puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof"),\n         puVar12 != (undefined1 *)0x0))" ( (binary_expression "((param_4 & 0x40) != 0) &&\n         (puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof"),\n         puVar12 != (undefined1 *)0x0)" (parenthesized_expression "((param_4 & 0x40) != 0)" ( (binary_expression "(param_4 & 0x40) != 0" (parenthesized_expression "(param_4 & 0x40)" ( (binary_expression "param_4 & 0x40" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof"),\n         puVar12 != (undefined1 *)0x0)" ( (comma_expression "puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof"),\n         puVar12 != (undefined1 *)0x0" (assignment_expression "puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof")" identifier = (cast_expression "(undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof")" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_uri_parameter(local_4b4,"modeof")" identifier (argument_list "(local_4b4,"modeof")" ( identifier , (string_literal ""modeof"" " string_content ") ))))) , (binary_expression "puVar12 != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (goto_statement "goto LAB_0005eb2c;" goto statement_identifier ;)) (labeled_statement "LAB_0005ebd9:\n      iVar26 = FUN_0003a9a0(uVar15,uVar14);" statement_identifier : (expression_statement "iVar26 = FUN_0003a9a0(uVar15,uVar14);" (assignment_expression "iVar26 = FUN_0003a9a0(uVar15,uVar14)" identifier = (call_expression "FUN_0003a9a0(uVar15,uVar14)" identifier (argument_list "(uVar15,uVar14)" ( identifier , identifier )))) ;)) (if_statement "if (iVar26 < 0) {\n        local_4ac = 0;\n        local_4a8 = 0;\n        uVar22 = 0;\n        goto LAB_0005ec06;\n      }" if (parenthesized_expression "(iVar26 < 0)" ( (binary_expression "iVar26 < 0" identifier < number_literal) )) (compound_statement "{\n        local_4ac = 0;\n        local_4a8 = 0;\n        uVar22 = 0;\n        goto LAB_0005ec06;\n      }" { (expression_statement "local_4ac = 0;" (assignment_expression "local_4ac = 0" identifier = number_literal) ;) (expression_statement "local_4a8 = 0;" (assignment_expression "local_4a8 = 0" identifier = number_literal) ;) (expression_statement "uVar22 = 0;" (assignment_expression "uVar22 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_0005ec06;" goto statement_identifier ;) })) (goto_statement "goto LAB_0005e7af;" goto statement_identifier ;) })) (expression_statement "iVar26 = FUN_0003a9a0(uVar15,uVar14);" (assignment_expression "iVar26 = FUN_0003a9a0(uVar15,uVar14)" identifier = (call_expression "FUN_0003a9a0(uVar15,uVar14)" identifier (argument_list "(uVar15,uVar14)" ( identifier , identifier )))) ;) (if_statement "if (-1 < iVar26) goto LAB_0005e7af;" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (goto_statement "goto LAB_0005e7af;" goto statement_identifier ;)) (expression_statement "uVar22 = 0;" (assignment_expression "uVar22 = 0" identifier = number_literal) ;) (expression_statement "local_4ac = 0;" (assignment_expression "local_4ac = 0" identifier = number_literal) ;) (expression_statement "local_4a8 = 0x180;" (assignment_expression "local_4a8 = 0x180" identifier = number_literal) ;) (labeled_statement "LAB_0005ec06:\n    piVar13 = __errno_location();" statement_identifier : (expression_statement "piVar13 = __errno_location();" (assignment_expression "piVar13 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;)) (expression_statement "iVar26 = *piVar13;" (assignment_expression "iVar26 = *piVar13" identifier = (pointer_expression "*piVar13" * identifier)) ;) (if_statement "if ((bVar24) && (iVar26 == 0xd)) {\n      iVar26 = (*(code *)PTR_access_000df45c)(local_4b4,0);\n      if (iVar26 == 0) {\n        iVar26 = *piVar13;\n        goto LAB_0005ec40;\n      }\n      iVar7 = 0x608;\n      FUN_000383b0();\n      FUN_0003aad0(0x9ae7);\n    }\n    else {\nLAB_0005ec40:\n      if ((uVar19 != 0) && (iVar26 != 0x15)) {\n        param_4 = param_4 & 0xfffffff9 | 1;\n        iVar26 = FUN_0003a9a0();\n        if (-1 < iVar26) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }\n      FUN_000383b0();\n      iVar7 = FUN_0003aad0(0x9ae7);\n      if (iVar7 == 0) goto LAB_0005e8fb;\n    }" if (parenthesized_expression "((bVar24) && (iVar26 == 0xd))" ( (binary_expression "(bVar24) && (iVar26 == 0xd)" (parenthesized_expression "(bVar24)" ( identifier )) && (parenthesized_expression "(iVar26 == 0xd)" ( (binary_expression "iVar26 == 0xd" identifier == number_literal) ))) )) (compound_statement "{\n      iVar26 = (*(code *)PTR_access_000df45c)(local_4b4,0);\n      if (iVar26 == 0) {\n        iVar26 = *piVar13;\n        goto LAB_0005ec40;\n      }\n      iVar7 = 0x608;\n      FUN_000383b0();\n      FUN_0003aad0(0x9ae7);\n    }" { (expression_statement "iVar26 = (*(code *)PTR_access_000df45c)(local_4b4,0);" (assignment_expression "iVar26 = (*(code *)PTR_access_000df45c)(local_4b4,0)" identifier = (call_expression "(*(code *)PTR_access_000df45c)(local_4b4,0)" (parenthesized_expression "(*(code *)PTR_access_000df45c)" ( (pointer_expression "*(code *)PTR_access_000df45c" * (cast_expression "(code *)PTR_access_000df45c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_4b4,0)" ( identifier , number_literal )))) ;) (if_statement "if (iVar26 == 0) {\n        iVar26 = *piVar13;\n        goto LAB_0005ec40;\n      }" if (parenthesized_expression "(iVar26 == 0)" ( (binary_expression "iVar26 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar26 = *piVar13;\n        goto LAB_0005ec40;\n      }" { (expression_statement "iVar26 = *piVar13;" (assignment_expression "iVar26 = *piVar13" identifier = (pointer_expression "*piVar13" * identifier)) ;) (goto_statement "goto LAB_0005ec40;" goto statement_identifier ;) })) (expression_statement "iVar7 = 0x608;" (assignment_expression "iVar7 = 0x608" identifier = number_literal) ;) (expression_statement "FUN_000383b0();" (call_expression "FUN_000383b0()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0003aad0(0x9ae7);" (call_expression "FUN_0003aad0(0x9ae7)" identifier (argument_list "(0x9ae7)" ( number_literal ))) ;) }) (else_clause "else {\nLAB_0005ec40:\n      if ((uVar19 != 0) && (iVar26 != 0x15)) {\n        param_4 = param_4 & 0xfffffff9 | 1;\n        iVar26 = FUN_0003a9a0();\n        if (-1 < iVar26) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }\n      FUN_000383b0();\n      iVar7 = FUN_0003aad0(0x9ae7);\n      if (iVar7 == 0) goto LAB_0005e8fb;\n    }" else (compound_statement "{\nLAB_0005ec40:\n      if ((uVar19 != 0) && (iVar26 != 0x15)) {\n        param_4 = param_4 & 0xfffffff9 | 1;\n        iVar26 = FUN_0003a9a0();\n        if (-1 < iVar26) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }\n      FUN_000383b0();\n      iVar7 = FUN_0003aad0(0x9ae7);\n      if (iVar7 == 0) goto LAB_0005e8fb;\n    }" { (labeled_statement "LAB_0005ec40:\n      if ((uVar19 != 0) && (iVar26 != 0x15)) {\n        param_4 = param_4 & 0xfffffff9 | 1;\n        iVar26 = FUN_0003a9a0();\n        if (-1 < iVar26) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }" statement_identifier : (if_statement "if ((uVar19 != 0) && (iVar26 != 0x15)) {\n        param_4 = param_4 & 0xfffffff9 | 1;\n        iVar26 = FUN_0003a9a0();\n        if (-1 < iVar26) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }" if (parenthesized_expression "((uVar19 != 0) && (iVar26 != 0x15))" ( (binary_expression "(uVar19 != 0) && (iVar26 != 0x15)" (parenthesized_expression "(uVar19 != 0)" ( (binary_expression "uVar19 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar26 != 0x15)" ( (binary_expression "iVar26 != 0x15" identifier != number_literal) ))) )) (compound_statement "{\n        param_4 = param_4 & 0xfffffff9 | 1;\n        iVar26 = FUN_0003a9a0();\n        if (-1 < iVar26) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }" { (expression_statement "param_4 = param_4 & 0xfffffff9 | 1;" (assignment_expression "param_4 = param_4 & 0xfffffff9 | 1" identifier = (binary_expression "param_4 & 0xfffffff9 | 1" (binary_expression "param_4 & 0xfffffff9" identifier & number_literal) | number_literal)) ;) (expression_statement "iVar26 = FUN_0003a9a0();" (assignment_expression "iVar26 = FUN_0003a9a0()" identifier = (call_expression "FUN_0003a9a0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (-1 < iVar26) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (compound_statement "{\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }" { (expression_statement "local_4a4 = 1;" (assignment_expression "local_4a4 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_0005eb78;" goto statement_identifier ;) })) }))) (expression_statement "FUN_000383b0();" (call_expression "FUN_000383b0()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar7 = FUN_0003aad0(0x9ae7);" (assignment_expression "iVar7 = FUN_0003aad0(0x9ae7)" identifier = (call_expression "FUN_0003aad0(0x9ae7)" identifier (argument_list "(0x9ae7)" ( number_literal )))) ;) (if_statement "if (iVar7 == 0) goto LAB_0005e8fb;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0005e8fb;" goto statement_identifier ;)) }))) (labeled_statement "LAB_0005ee17:\n    sqlite3_free(param_3[7]);" statement_identifier : (expression_statement "sqlite3_free(param_3[7]);" (call_expression "sqlite3_free(param_3[7])" identifier (argument_list "(param_3[7])" ( (subscript_expression "param_3[7]" identifier [ number_literal ]) ))) ;)) }) (else_clause "else {\n    if (local_4b4 == (char *)0x0) {\n      iVar26 = -1;\n    }\n    else {\n      sVar10 = strlen(local_4b4);\n      iVar26 = (sVar10 & 0x3fffffff) - 1;\n    }\n    cVar2 = local_4b4[iVar26];\n    while (cVar2 != '-') {\n      if ((cVar2 == '.') || (iVar26 == 0)) goto LAB_0005ebd9;\n      iVar26 = iVar26 + -1;\n      cVar2 = local_4b4[iVar26];\n    }\n    puVar12 = local_423;\n    __memcpy_chk(puVar12,local_4b4,iVar26,0x201);\n    local_423[iVar26] = 0;\nLAB_0005eb2c:\n    iVar26 = (*(code *)PTR_FUN_000df474)(puVar12,&local_484);\n    iVar7 = 0x70a;\n    if (iVar26 != 0) goto LAB_0005e8fb;\n    local_4a8 = local_474 & 0x1ff;\n    local_4ac = local_46c;\n    iVar26 = FUN_0003a9a0(uVar15,uVar14);\n    uVar22 = local_468;\n    if (iVar26 < 0) goto LAB_0005ec06;\nLAB_0005eb78:\n    if (((local_4a8 != 0) && ((param_4 & 0x80800) != 0)) &&\n       (iVar7 = (*(code *)PTR_geteuid_000df540)(), iVar7 == 0)) {\n      (*(code *)PTR_fchown_000df534)(iVar26,local_4ac,uVar22);\n    }\nLAB_0005e7af:\n    if (param_5 != (uint *)0x0) {\n      *param_5 = param_4;\n    }\n    piVar13 = (int *)param_3[7];\n    if (piVar13 != (int *)0x0) {\n      *piVar13 = iVar26;\n      piVar13[1] = param_4 & 3;\n    }\n    if (uVar15 != 0) {\n      (*(code *)PTR_unlink_000df504)(local_4b4);\n      uVar15 = 0x20;\n    }\n    uVar22 = DAT_000de40c;\n    uVar19 = uVar15 | 2;\n    if (local_4a4 == 0) {\n      uVar19 = uVar15;\n    }\n    uVar15 = uVar19 | 0x80;\n    if (uVar4 == 0x100) {\n      uVar15 = uVar19;\n    }\n    uVar4 = uVar15 | 8;\n    if (!bVar24) {\n      uVar4 = uVar15;\n    }\n    if ((param_4 & 0x40) == 0) {\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[3] = iVar26;\n      pcVar6 = (char *)0x0;\n      if ((uVar4 & 0x40) != 0) {\n        pcVar6 = param_2;\n      }\n      param_3[8] = param_2;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n    }\n    else {\n      uVar4 = uVar4 | 0x40;\n      param_3[3] = iVar26;\n      param_3[8] = param_2;\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n      pcVar6 = param_2;\n    }\n    iVar7 = sqlite3_uri_boolean(pcVar6,&DAT_000aa9b5,1);\n    bVar24 = iVar7 == 0;\n    if (!bVar24) {\n      puVar1 = (ushort *)((int)param_3 + 0x12);\n      *puVar1 = *puVar1 | 0x10;\n      bVar24 = *puVar1 == 0;\n    }\n    bVar23 = false;\n    iVar7 = 10;\n    pbVar18 = *(byte **)(param_1 + 0x10);\n    pbVar20 = (byte *)"unix-excl";\n    do {\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      bVar23 = *pbVar18 < *pbVar20;\n      bVar24 = *pbVar18 == *pbVar20;\n      pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1;\n      pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1;\n    } while (bVar24);\n    if ((!bVar23 && !bVar24) == bVar23) {\n      *(ushort *)((int)param_3 + 0x12) = *(ushort *)((int)param_3 + 0x12) | 1;\n    }\n    if ((uVar4 & 0x80) == 0) {\n      puVar8 = (undefined *)(*(code *)**(undefined4 **)(param_1 + 0x14))(param_2,param_3);\n      puVar17 = &DAT_000dd9e0;\n      if (puVar8 == &DAT_000dd9e0) {\n        sqlite3_mutex_enter(DAT_000df7a8);\n        iVar7 = (*(code *)PTR_FUN_000df480)(param_3[3],&local_484);\n        piVar13 = DAT_000df7a4;\n        if (iVar7 == 0) {\n          for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }\n          piVar13 = (int *)sqlite3_malloc64(0x34,0);\n          if (piVar13 != (int *)0x0) {\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }\n          iVar7 = 7;\n        }\n        else {\n          piVar13 = __errno_location();\n          iVar7 = 10;\n          param_3[5] = *piVar13;\n        }\nLAB_0005efaf:\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        sqlite3_mutex_leave(DAT_000df7a8);\n        param_3[5] = 0;\n        goto LAB_0005ee17;\n      }\n      if (puVar8 != &DAT_000dd920) goto LAB_0005e8e8;\n      sVar10 = strlen(param_2);\n      iVar7 = sVar10 + 6;\n      iVar11 = sqlite3_malloc64(iVar7,iVar7 >> 0x1f);\n      if (iVar11 == 0) {\n        param_3[6] = 0;\n        param_3[5] = 0;\n        iVar7 = 7;\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        goto LAB_0005ee17;\n      }\n      sqlite3_snprintf(iVar7,iVar11,"%s.lock",param_2);\n      param_3[5] = 0;\n      param_3[6] = iVar11;\n    }\n    else {\n      puVar8 = &DAT_000dd980;\nLAB_0005e8e8:\n      param_3[5] = 0;\n    }\nLAB_0005e8ef:\n    *param_3 = puVar8;\n    iVar7 = 0;\n    FUN_0003a610();\n  }" else (compound_statement "{\n    if (local_4b4 == (char *)0x0) {\n      iVar26 = -1;\n    }\n    else {\n      sVar10 = strlen(local_4b4);\n      iVar26 = (sVar10 & 0x3fffffff) - 1;\n    }\n    cVar2 = local_4b4[iVar26];\n    while (cVar2 != '-') {\n      if ((cVar2 == '.') || (iVar26 == 0)) goto LAB_0005ebd9;\n      iVar26 = iVar26 + -1;\n      cVar2 = local_4b4[iVar26];\n    }\n    puVar12 = local_423;\n    __memcpy_chk(puVar12,local_4b4,iVar26,0x201);\n    local_423[iVar26] = 0;\nLAB_0005eb2c:\n    iVar26 = (*(code *)PTR_FUN_000df474)(puVar12,&local_484);\n    iVar7 = 0x70a;\n    if (iVar26 != 0) goto LAB_0005e8fb;\n    local_4a8 = local_474 & 0x1ff;\n    local_4ac = local_46c;\n    iVar26 = FUN_0003a9a0(uVar15,uVar14);\n    uVar22 = local_468;\n    if (iVar26 < 0) goto LAB_0005ec06;\nLAB_0005eb78:\n    if (((local_4a8 != 0) && ((param_4 & 0x80800) != 0)) &&\n       (iVar7 = (*(code *)PTR_geteuid_000df540)(), iVar7 == 0)) {\n      (*(code *)PTR_fchown_000df534)(iVar26,local_4ac,uVar22);\n    }\nLAB_0005e7af:\n    if (param_5 != (uint *)0x0) {\n      *param_5 = param_4;\n    }\n    piVar13 = (int *)param_3[7];\n    if (piVar13 != (int *)0x0) {\n      *piVar13 = iVar26;\n      piVar13[1] = param_4 & 3;\n    }\n    if (uVar15 != 0) {\n      (*(code *)PTR_unlink_000df504)(local_4b4);\n      uVar15 = 0x20;\n    }\n    uVar22 = DAT_000de40c;\n    uVar19 = uVar15 | 2;\n    if (local_4a4 == 0) {\n      uVar19 = uVar15;\n    }\n    uVar15 = uVar19 | 0x80;\n    if (uVar4 == 0x100) {\n      uVar15 = uVar19;\n    }\n    uVar4 = uVar15 | 8;\n    if (!bVar24) {\n      uVar4 = uVar15;\n    }\n    if ((param_4 & 0x40) == 0) {\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[3] = iVar26;\n      pcVar6 = (char *)0x0;\n      if ((uVar4 & 0x40) != 0) {\n        pcVar6 = param_2;\n      }\n      param_3[8] = param_2;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n    }\n    else {\n      uVar4 = uVar4 | 0x40;\n      param_3[3] = iVar26;\n      param_3[8] = param_2;\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n      pcVar6 = param_2;\n    }\n    iVar7 = sqlite3_uri_boolean(pcVar6,&DAT_000aa9b5,1);\n    bVar24 = iVar7 == 0;\n    if (!bVar24) {\n      puVar1 = (ushort *)((int)param_3 + 0x12);\n      *puVar1 = *puVar1 | 0x10;\n      bVar24 = *puVar1 == 0;\n    }\n    bVar23 = false;\n    iVar7 = 10;\n    pbVar18 = *(byte **)(param_1 + 0x10);\n    pbVar20 = (byte *)"unix-excl";\n    do {\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      bVar23 = *pbVar18 < *pbVar20;\n      bVar24 = *pbVar18 == *pbVar20;\n      pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1;\n      pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1;\n    } while (bVar24);\n    if ((!bVar23 && !bVar24) == bVar23) {\n      *(ushort *)((int)param_3 + 0x12) = *(ushort *)((int)param_3 + 0x12) | 1;\n    }\n    if ((uVar4 & 0x80) == 0) {\n      puVar8 = (undefined *)(*(code *)**(undefined4 **)(param_1 + 0x14))(param_2,param_3);\n      puVar17 = &DAT_000dd9e0;\n      if (puVar8 == &DAT_000dd9e0) {\n        sqlite3_mutex_enter(DAT_000df7a8);\n        iVar7 = (*(code *)PTR_FUN_000df480)(param_3[3],&local_484);\n        piVar13 = DAT_000df7a4;\n        if (iVar7 == 0) {\n          for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }\n          piVar13 = (int *)sqlite3_malloc64(0x34,0);\n          if (piVar13 != (int *)0x0) {\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }\n          iVar7 = 7;\n        }\n        else {\n          piVar13 = __errno_location();\n          iVar7 = 10;\n          param_3[5] = *piVar13;\n        }\nLAB_0005efaf:\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        sqlite3_mutex_leave(DAT_000df7a8);\n        param_3[5] = 0;\n        goto LAB_0005ee17;\n      }\n      if (puVar8 != &DAT_000dd920) goto LAB_0005e8e8;\n      sVar10 = strlen(param_2);\n      iVar7 = sVar10 + 6;\n      iVar11 = sqlite3_malloc64(iVar7,iVar7 >> 0x1f);\n      if (iVar11 == 0) {\n        param_3[6] = 0;\n        param_3[5] = 0;\n        iVar7 = 7;\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        goto LAB_0005ee17;\n      }\n      sqlite3_snprintf(iVar7,iVar11,"%s.lock",param_2);\n      param_3[5] = 0;\n      param_3[6] = iVar11;\n    }\n    else {\n      puVar8 = &DAT_000dd980;\nLAB_0005e8e8:\n      param_3[5] = 0;\n    }\nLAB_0005e8ef:\n    *param_3 = puVar8;\n    iVar7 = 0;\n    FUN_0003a610();\n  }" { (if_statement "if (local_4b4 == (char *)0x0) {\n      iVar26 = -1;\n    }\n    else {\n      sVar10 = strlen(local_4b4);\n      iVar26 = (sVar10 & 0x3fffffff) - 1;\n    }" if (parenthesized_expression "(local_4b4 == (char *)0x0)" ( (binary_expression "local_4b4 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar26 = -1;\n    }" { (expression_statement "iVar26 = -1;" (assignment_expression "iVar26 = -1" identifier = number_literal) ;) }) (else_clause "else {\n      sVar10 = strlen(local_4b4);\n      iVar26 = (sVar10 & 0x3fffffff) - 1;\n    }" else (compound_statement "{\n      sVar10 = strlen(local_4b4);\n      iVar26 = (sVar10 & 0x3fffffff) - 1;\n    }" { (expression_statement "sVar10 = strlen(local_4b4);" (assignment_expression "sVar10 = strlen(local_4b4)" identifier = (call_expression "strlen(local_4b4)" identifier (argument_list "(local_4b4)" ( identifier )))) ;) (expression_statement "iVar26 = (sVar10 & 0x3fffffff) - 1;" (assignment_expression "iVar26 = (sVar10 & 0x3fffffff) - 1" identifier = (binary_expression "(sVar10 & 0x3fffffff) - 1" (parenthesized_expression "(sVar10 & 0x3fffffff)" ( (binary_expression "sVar10 & 0x3fffffff" identifier & number_literal) )) - number_literal)) ;) }))) (expression_statement "cVar2 = local_4b4[iVar26];" (assignment_expression "cVar2 = local_4b4[iVar26]" identifier = (subscript_expression "local_4b4[iVar26]" identifier [ identifier ])) ;) (while_statement "while (cVar2 != '-') {\n      if ((cVar2 == '.') || (iVar26 == 0)) goto LAB_0005ebd9;\n      iVar26 = iVar26 + -1;\n      cVar2 = local_4b4[iVar26];\n    }" while (parenthesized_expression "(cVar2 != '-')" ( (binary_expression "cVar2 != '-'" identifier != (char_literal "'-'" ' character ')) )) (compound_statement "{\n      if ((cVar2 == '.') || (iVar26 == 0)) goto LAB_0005ebd9;\n      iVar26 = iVar26 + -1;\n      cVar2 = local_4b4[iVar26];\n    }" { (if_statement "if ((cVar2 == '.') || (iVar26 == 0)) goto LAB_0005ebd9;" if (parenthesized_expression "((cVar2 == '.') || (iVar26 == 0))" ( (binary_expression "(cVar2 == '.') || (iVar26 == 0)" (parenthesized_expression "(cVar2 == '.')" ( (binary_expression "cVar2 == '.'" identifier == (char_literal "'.'" ' character ')) )) || (parenthesized_expression "(iVar26 == 0)" ( (binary_expression "iVar26 == 0" identifier == number_literal) ))) )) (goto_statement "goto LAB_0005ebd9;" goto statement_identifier ;)) (expression_statement "iVar26 = iVar26 + -1;" (assignment_expression "iVar26 = iVar26 + -1" identifier = (binary_expression "iVar26 + -1" identifier + number_literal)) ;) (expression_statement "cVar2 = local_4b4[iVar26];" (assignment_expression "cVar2 = local_4b4[iVar26]" identifier = (subscript_expression "local_4b4[iVar26]" identifier [ identifier ])) ;) })) (expression_statement "puVar12 = local_423;" (assignment_expression "puVar12 = local_423" identifier = identifier) ;) (expression_statement "__memcpy_chk(puVar12,local_4b4,iVar26,0x201);" (call_expression "__memcpy_chk(puVar12,local_4b4,iVar26,0x201)" identifier (argument_list "(puVar12,local_4b4,iVar26,0x201)" ( identifier , identifier , identifier , number_literal ))) ;) (expression_statement "local_423[iVar26] = 0;" (assignment_expression "local_423[iVar26] = 0" (subscript_expression "local_423[iVar26]" identifier [ identifier ]) = number_literal) ;) (labeled_statement "LAB_0005eb2c:\n    iVar26 = (*(code *)PTR_FUN_000df474)(puVar12,&local_484);" statement_identifier : (expression_statement "iVar26 = (*(code *)PTR_FUN_000df474)(puVar12,&local_484);" (assignment_expression "iVar26 = (*(code *)PTR_FUN_000df474)(puVar12,&local_484)" identifier = (call_expression "(*(code *)PTR_FUN_000df474)(puVar12,&local_484)" (parenthesized_expression "(*(code *)PTR_FUN_000df474)" ( (pointer_expression "*(code *)PTR_FUN_000df474" * (cast_expression "(code *)PTR_FUN_000df474" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar12,&local_484)" ( identifier , (pointer_expression "&local_484" & identifier) )))) ;)) (expression_statement "iVar7 = 0x70a;" (assignment_expression "iVar7 = 0x70a" identifier = number_literal) ;) (if_statement "if (iVar26 != 0) goto LAB_0005e8fb;" if (parenthesized_expression "(iVar26 != 0)" ( (binary_expression "iVar26 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0005e8fb;" goto statement_identifier ;)) (expression_statement "local_4a8 = local_474 & 0x1ff;" (assignment_expression "local_4a8 = local_474 & 0x1ff" identifier = (binary_expression "local_474 & 0x1ff" identifier & number_literal)) ;) (expression_statement "local_4ac = local_46c;" (assignment_expression "local_4ac = local_46c" identifier = identifier) ;) (expression_statement "iVar26 = FUN_0003a9a0(uVar15,uVar14);" (assignment_expression "iVar26 = FUN_0003a9a0(uVar15,uVar14)" identifier = (call_expression "FUN_0003a9a0(uVar15,uVar14)" identifier (argument_list "(uVar15,uVar14)" ( identifier , identifier )))) ;) (expression_statement "uVar22 = local_468;" (assignment_expression "uVar22 = local_468" identifier = identifier) ;) (if_statement "if (iVar26 < 0) goto LAB_0005ec06;" if (parenthesized_expression "(iVar26 < 0)" ( (binary_expression "iVar26 < 0" identifier < number_literal) )) (goto_statement "goto LAB_0005ec06;" goto statement_identifier ;)) (labeled_statement "LAB_0005eb78:\n    if (((local_4a8 != 0) && ((param_4 & 0x80800) != 0)) &&\n       (iVar7 = (*(code *)PTR_geteuid_000df540)(), iVar7 == 0)) {\n      (*(code *)PTR_fchown_000df534)(iVar26,local_4ac,uVar22);\n    }" statement_identifier : (if_statement "if (((local_4a8 != 0) && ((param_4 & 0x80800) != 0)) &&\n       (iVar7 = (*(code *)PTR_geteuid_000df540)(), iVar7 == 0)) {\n      (*(code *)PTR_fchown_000df534)(iVar26,local_4ac,uVar22);\n    }" if (parenthesized_expression "(((local_4a8 != 0) && ((param_4 & 0x80800) != 0)) &&\n       (iVar7 = (*(code *)PTR_geteuid_000df540)(), iVar7 == 0))" ( (binary_expression "((local_4a8 != 0) && ((param_4 & 0x80800) != 0)) &&\n       (iVar7 = (*(code *)PTR_geteuid_000df540)(), iVar7 == 0)" (parenthesized_expression "((local_4a8 != 0) && ((param_4 & 0x80800) != 0))" ( (binary_expression "(local_4a8 != 0) && ((param_4 & 0x80800) != 0)" (parenthesized_expression "(local_4a8 != 0)" ( (binary_expression "local_4a8 != 0" identifier != number_literal) )) && (parenthesized_expression "((param_4 & 0x80800) != 0)" ( (binary_expression "(param_4 & 0x80800) != 0" (parenthesized_expression "(param_4 & 0x80800)" ( (binary_expression "param_4 & 0x80800" identifier & number_literal) )) != number_literal) ))) )) && (parenthesized_expression "(iVar7 = (*(code *)PTR_geteuid_000df540)(), iVar7 == 0)" ( (comma_expression "iVar7 = (*(code *)PTR_geteuid_000df540)(), iVar7 == 0" (assignment_expression "iVar7 = (*(code *)PTR_geteuid_000df540)()" identifier = (call_expression "(*(code *)PTR_geteuid_000df540)()" (parenthesized_expression "(*(code *)PTR_geteuid_000df540)" ( (pointer_expression "*(code *)PTR_geteuid_000df540" * (cast_expression "(code *)PTR_geteuid_000df540" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) , (binary_expression "iVar7 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      (*(code *)PTR_fchown_000df534)(iVar26,local_4ac,uVar22);\n    }" { (expression_statement "(*(code *)PTR_fchown_000df534)(iVar26,local_4ac,uVar22);" (call_expression "(*(code *)PTR_fchown_000df534)(iVar26,local_4ac,uVar22)" (parenthesized_expression "(*(code *)PTR_fchown_000df534)" ( (pointer_expression "*(code *)PTR_fchown_000df534" * (cast_expression "(code *)PTR_fchown_000df534" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar26,local_4ac,uVar22)" ( identifier , identifier , identifier ))) ;) }))) (labeled_statement "LAB_0005e7af:\n    if (param_5 != (uint *)0x0) {\n      *param_5 = param_4;\n    }" statement_identifier : (if_statement "if (param_5 != (uint *)0x0) {\n      *param_5 = param_4;\n    }" if (parenthesized_expression "(param_5 != (uint *)0x0)" ( (binary_expression "param_5 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *param_5 = param_4;\n    }" { (expression_statement "*param_5 = param_4;" (assignment_expression "*param_5 = param_4" (pointer_expression "*param_5" * identifier) = identifier) ;) }))) (expression_statement "piVar13 = (int *)param_3[7];" (assignment_expression "piVar13 = (int *)param_3[7]" identifier = (cast_expression "(int *)param_3[7]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_3[7]" identifier [ number_literal ]))) ;) (if_statement "if (piVar13 != (int *)0x0) {\n      *piVar13 = iVar26;\n      piVar13[1] = param_4 & 3;\n    }" if (parenthesized_expression "(piVar13 != (int *)0x0)" ( (binary_expression "piVar13 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *piVar13 = iVar26;\n      piVar13[1] = param_4 & 3;\n    }" { (expression_statement "*piVar13 = iVar26;" (assignment_expression "*piVar13 = iVar26" (pointer_expression "*piVar13" * identifier) = identifier) ;) (expression_statement "piVar13[1] = param_4 & 3;" (assignment_expression "piVar13[1] = param_4 & 3" (subscript_expression "piVar13[1]" identifier [ number_literal ]) = (binary_expression "param_4 & 3" identifier & number_literal)) ;) })) (if_statement "if (uVar15 != 0) {\n      (*(code *)PTR_unlink_000df504)(local_4b4);\n      uVar15 = 0x20;\n    }" if (parenthesized_expression "(uVar15 != 0)" ( (binary_expression "uVar15 != 0" identifier != number_literal) )) (compound_statement "{\n      (*(code *)PTR_unlink_000df504)(local_4b4);\n      uVar15 = 0x20;\n    }" { (expression_statement "(*(code *)PTR_unlink_000df504)(local_4b4);" (call_expression "(*(code *)PTR_unlink_000df504)(local_4b4)" (parenthesized_expression "(*(code *)PTR_unlink_000df504)" ( (pointer_expression "*(code *)PTR_unlink_000df504" * (cast_expression "(code *)PTR_unlink_000df504" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_4b4)" ( identifier ))) ;) (expression_statement "uVar15 = 0x20;" (assignment_expression "uVar15 = 0x20" identifier = number_literal) ;) })) (expression_statement "uVar22 = DAT_000de40c;" (assignment_expression "uVar22 = DAT_000de40c" identifier = identifier) ;) (expression_statement "uVar19 = uVar15 | 2;" (assignment_expression "uVar19 = uVar15 | 2" identifier = (binary_expression "uVar15 | 2" identifier | number_literal)) ;) (if_statement "if (local_4a4 == 0) {\n      uVar19 = uVar15;\n    }" if (parenthesized_expression "(local_4a4 == 0)" ( (binary_expression "local_4a4 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar19 = uVar15;\n    }" { (expression_statement "uVar19 = uVar15;" (assignment_expression "uVar19 = uVar15" identifier = identifier) ;) })) (expression_statement "uVar15 = uVar19 | 0x80;" (assignment_expression "uVar15 = uVar19 | 0x80" identifier = (binary_expression "uVar19 | 0x80" identifier | number_literal)) ;) (if_statement "if (uVar4 == 0x100) {\n      uVar15 = uVar19;\n    }" if (parenthesized_expression "(uVar4 == 0x100)" ( (binary_expression "uVar4 == 0x100" identifier == number_literal) )) (compound_statement "{\n      uVar15 = uVar19;\n    }" { (expression_statement "uVar15 = uVar19;" (assignment_expression "uVar15 = uVar19" identifier = identifier) ;) })) (expression_statement "uVar4 = uVar15 | 8;" (assignment_expression "uVar4 = uVar15 | 8" identifier = (binary_expression "uVar15 | 8" identifier | number_literal)) ;) (if_statement "if (!bVar24) {\n      uVar4 = uVar15;\n    }" if (parenthesized_expression "(!bVar24)" ( (unary_expression "!bVar24" ! identifier) )) (compound_statement "{\n      uVar4 = uVar15;\n    }" { (expression_statement "uVar4 = uVar15;" (assignment_expression "uVar4 = uVar15" identifier = identifier) ;) })) (if_statement "if ((param_4 & 0x40) == 0) {\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[3] = iVar26;\n      pcVar6 = (char *)0x0;\n      if ((uVar4 & 0x40) != 0) {\n        pcVar6 = param_2;\n      }\n      param_3[8] = param_2;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n    }\n    else {\n      uVar4 = uVar4 | 0x40;\n      param_3[3] = iVar26;\n      param_3[8] = param_2;\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n      pcVar6 = param_2;\n    }" if (parenthesized_expression "((param_4 & 0x40) == 0)" ( (binary_expression "(param_4 & 0x40) == 0" (parenthesized_expression "(param_4 & 0x40)" ( (binary_expression "param_4 & 0x40" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[3] = iVar26;\n      pcVar6 = (char *)0x0;\n      if ((uVar4 & 0x40) != 0) {\n        pcVar6 = param_2;\n      }\n      param_3[8] = param_2;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n    }" { (expression_statement "*(short *)((int)param_3 + 0x12) = (short)uVar4;" (assignment_expression "*(short *)((int)param_3 + 0x12) = (short)uVar4" (pointer_expression "*(short *)((int)param_3 + 0x12)" * (cast_expression "(short *)((int)param_3 + 0x12)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_3 + 0x12)" ( (binary_expression "(int)param_3 + 0x12" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (cast_expression "(short)uVar4" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) (expression_statement "param_3[3] = iVar26;" (assignment_expression "param_3[3] = iVar26" (subscript_expression "param_3[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pcVar6 = (char *)0x0;" (assignment_expression "pcVar6 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if ((uVar4 & 0x40) != 0) {\n        pcVar6 = param_2;\n      }" if (parenthesized_expression "((uVar4 & 0x40) != 0)" ( (binary_expression "(uVar4 & 0x40) != 0" (parenthesized_expression "(uVar4 & 0x40)" ( (binary_expression "uVar4 & 0x40" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        pcVar6 = param_2;\n      }" { (expression_statement "pcVar6 = param_2;" (assignment_expression "pcVar6 = param_2" identifier = identifier) ;) })) (expression_statement "param_3[8] = param_2;" (assignment_expression "param_3[8] = param_2" (subscript_expression "param_3[8]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_3[1] = param_1;" (assignment_expression "param_3[1] = param_1" (subscript_expression "param_3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar3 = DAT_000de408;" (assignment_expression "uVar3 = DAT_000de408" identifier = identifier) ;) (expression_statement "param_3[0x11] = uVar22;" (assignment_expression "param_3[0x11] = uVar22" (subscript_expression "param_3[0x11]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_3[0x10] = uVar3;" (assignment_expression "param_3[0x10] = uVar3" (subscript_expression "param_3[0x10]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n      uVar4 = uVar4 | 0x40;\n      param_3[3] = iVar26;\n      param_3[8] = param_2;\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n      pcVar6 = param_2;\n    }" else (compound_statement "{\n      uVar4 = uVar4 | 0x40;\n      param_3[3] = iVar26;\n      param_3[8] = param_2;\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n      pcVar6 = param_2;\n    }" { (expression_statement "uVar4 = uVar4 | 0x40;" (assignment_expression "uVar4 = uVar4 | 0x40" identifier = (binary_expression "uVar4 | 0x40" identifier | number_literal)) ;) (expression_statement "param_3[3] = iVar26;" (assignment_expression "param_3[3] = iVar26" (subscript_expression "param_3[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_3[8] = param_2;" (assignment_expression "param_3[8] = param_2" (subscript_expression "param_3[8]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(short *)((int)param_3 + 0x12) = (short)uVar4;" (assignment_expression "*(short *)((int)param_3 + 0x12) = (short)uVar4" (pointer_expression "*(short *)((int)param_3 + 0x12)" * (cast_expression "(short *)((int)param_3 + 0x12)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_3 + 0x12)" ( (binary_expression "(int)param_3 + 0x12" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (cast_expression "(short)uVar4" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) (expression_statement "param_3[1] = param_1;" (assignment_expression "param_3[1] = param_1" (subscript_expression "param_3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar3 = DAT_000de408;" (assignment_expression "uVar3 = DAT_000de408" identifier = identifier) ;) (expression_statement "param_3[0x11] = uVar22;" (assignment_expression "param_3[0x11] = uVar22" (subscript_expression "param_3[0x11]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_3[0x10] = uVar3;" (assignment_expression "param_3[0x10] = uVar3" (subscript_expression "param_3[0x10]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pcVar6 = param_2;" (assignment_expression "pcVar6 = param_2" identifier = identifier) ;) }))) (expression_statement "iVar7 = sqlite3_uri_boolean(pcVar6,&DAT_000aa9b5,1);" (assignment_expression "iVar7 = sqlite3_uri_boolean(pcVar6,&DAT_000aa9b5,1)" identifier = (call_expression "sqlite3_uri_boolean(pcVar6,&DAT_000aa9b5,1)" identifier (argument_list "(pcVar6,&DAT_000aa9b5,1)" ( identifier , (pointer_expression "&DAT_000aa9b5" & identifier) , number_literal )))) ;) (expression_statement "bVar24 = iVar7 == 0;" (assignment_expression "bVar24 = iVar7 == 0" identifier = (binary_expression "iVar7 == 0" identifier == number_literal)) ;) (if_statement "if (!bVar24) {\n      puVar1 = (ushort *)((int)param_3 + 0x12);\n      *puVar1 = *puVar1 | 0x10;\n      bVar24 = *puVar1 == 0;\n    }" if (parenthesized_expression "(!bVar24)" ( (unary_expression "!bVar24" ! identifier) )) (compound_statement "{\n      puVar1 = (ushort *)((int)param_3 + 0x12);\n      *puVar1 = *puVar1 | 0x10;\n      bVar24 = *puVar1 == 0;\n    }" { (expression_statement "puVar1 = (ushort *)((int)param_3 + 0x12);" (assignment_expression "puVar1 = (ushort *)((int)param_3 + 0x12)" identifier = (cast_expression "(ushort *)((int)param_3 + 0x12)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_3 + 0x12)" ( (binary_expression "(int)param_3 + 0x12" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "*puVar1 = *puVar1 | 0x10;" (assignment_expression "*puVar1 = *puVar1 | 0x10" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 | 0x10" (pointer_expression "*puVar1" * identifier) | number_literal)) ;) (expression_statement "bVar24 = *puVar1 == 0;" (assignment_expression "bVar24 = *puVar1 == 0" identifier = (binary_expression "*puVar1 == 0" (pointer_expression "*puVar1" * identifier) == number_literal)) ;) })) (expression_statement "bVar23 = false;" (assignment_expression "bVar23 = false" identifier = false) ;) (expression_statement "iVar7 = 10;" (assignment_expression "iVar7 = 10" identifier = number_literal) ;) (expression_statement "pbVar18 = *(byte **)(param_1 + 0x10);" (assignment_expression "pbVar18 = *(byte **)(param_1 + 0x10)" identifier = (pointer_expression "*(byte **)(param_1 + 0x10)" * (cast_expression "(byte **)(param_1 + 0x10)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "pbVar20 = (byte *)"unix-excl";" (assignment_expression "pbVar20 = (byte *)"unix-excl"" identifier = (cast_expression "(byte *)"unix-excl"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""unix-excl"" " string_content "))) ;) (do_statement "do {\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      bVar23 = *pbVar18 < *pbVar20;\n      bVar24 = *pbVar18 == *pbVar20;\n      pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1;\n      pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1;\n    } while (bVar24);" do (compound_statement "{\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      bVar23 = *pbVar18 < *pbVar20;\n      bVar24 = *pbVar18 == *pbVar20;\n      pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1;\n      pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1;\n    }" { (if_statement "if (iVar7 == 0) break;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) (expression_statement "bVar23 = *pbVar18 < *pbVar20;" (assignment_expression "bVar23 = *pbVar18 < *pbVar20" identifier = (binary_expression "*pbVar18 < *pbVar20" (pointer_expression "*pbVar18" * identifier) < (pointer_expression "*pbVar20" * identifier))) ;) (expression_statement "bVar24 = *pbVar18 == *pbVar20;" (assignment_expression "bVar24 = *pbVar18 == *pbVar20" identifier = (binary_expression "*pbVar18 == *pbVar20" (pointer_expression "*pbVar18" * identifier) == (pointer_expression "*pbVar20" * identifier))) ;) (expression_statement "pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1;" (assignment_expression "pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1" identifier = (binary_expression "pbVar18 + (uint)bVar25 * -2 + 1" (binary_expression "pbVar18 + (uint)bVar25 * -2" identifier + (binary_expression "(uint)bVar25 * -2" (cast_expression "(uint)bVar25" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1;" (assignment_expression "pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1" identifier = (binary_expression "pbVar20 + (uint)bVar25 * -2 + 1" (binary_expression "pbVar20 + (uint)bVar25 * -2" identifier + (binary_expression "(uint)bVar25 * -2" (cast_expression "(uint)bVar25" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar24)" ( identifier )) ;) (if_statement "if ((!bVar23 && !bVar24) == bVar23) {\n      *(ushort *)((int)param_3 + 0x12) = *(ushort *)((int)param_3 + 0x12) | 1;\n    }" if (parenthesized_expression "((!bVar23 && !bVar24) == bVar23)" ( (binary_expression "(!bVar23 && !bVar24) == bVar23" (parenthesized_expression "(!bVar23 && !bVar24)" ( (binary_expression "!bVar23 && !bVar24" (unary_expression "!bVar23" ! identifier) && (unary_expression "!bVar24" ! identifier)) )) == identifier) )) (compound_statement "{\n      *(ushort *)((int)param_3 + 0x12) = *(ushort *)((int)param_3 + 0x12) | 1;\n    }" { (expression_statement "*(ushort *)((int)param_3 + 0x12) = *(ushort *)((int)param_3 + 0x12) | 1;" (assignment_expression "*(ushort *)((int)param_3 + 0x12) = *(ushort *)((int)param_3 + 0x12) | 1" (pointer_expression "*(ushort *)((int)param_3 + 0x12)" * (cast_expression "(ushort *)((int)param_3 + 0x12)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_3 + 0x12)" ( (binary_expression "(int)param_3 + 0x12" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "*(ushort *)((int)param_3 + 0x12) | 1" (pointer_expression "*(ushort *)((int)param_3 + 0x12)" * (cast_expression "(ushort *)((int)param_3 + 0x12)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_3 + 0x12)" ( (binary_expression "(int)param_3 + 0x12" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) | number_literal)) ;) })) (if_statement "if ((uVar4 & 0x80) == 0) {\n      puVar8 = (undefined *)(*(code *)**(undefined4 **)(param_1 + 0x14))(param_2,param_3);\n      puVar17 = &DAT_000dd9e0;\n      if (puVar8 == &DAT_000dd9e0) {\n        sqlite3_mutex_enter(DAT_000df7a8);\n        iVar7 = (*(code *)PTR_FUN_000df480)(param_3[3],&local_484);\n        piVar13 = DAT_000df7a4;\n        if (iVar7 == 0) {\n          for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }\n          piVar13 = (int *)sqlite3_malloc64(0x34,0);\n          if (piVar13 != (int *)0x0) {\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }\n          iVar7 = 7;\n        }\n        else {\n          piVar13 = __errno_location();\n          iVar7 = 10;\n          param_3[5] = *piVar13;\n        }\nLAB_0005efaf:\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        sqlite3_mutex_leave(DAT_000df7a8);\n        param_3[5] = 0;\n        goto LAB_0005ee17;\n      }\n      if (puVar8 != &DAT_000dd920) goto LAB_0005e8e8;\n      sVar10 = strlen(param_2);\n      iVar7 = sVar10 + 6;\n      iVar11 = sqlite3_malloc64(iVar7,iVar7 >> 0x1f);\n      if (iVar11 == 0) {\n        param_3[6] = 0;\n        param_3[5] = 0;\n        iVar7 = 7;\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        goto LAB_0005ee17;\n      }\n      sqlite3_snprintf(iVar7,iVar11,"%s.lock",param_2);\n      param_3[5] = 0;\n      param_3[6] = iVar11;\n    }\n    else {\n      puVar8 = &DAT_000dd980;\nLAB_0005e8e8:\n      param_3[5] = 0;\n    }" if (parenthesized_expression "((uVar4 & 0x80) == 0)" ( (binary_expression "(uVar4 & 0x80) == 0" (parenthesized_expression "(uVar4 & 0x80)" ( (binary_expression "uVar4 & 0x80" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      puVar8 = (undefined *)(*(code *)**(undefined4 **)(param_1 + 0x14))(param_2,param_3);\n      puVar17 = &DAT_000dd9e0;\n      if (puVar8 == &DAT_000dd9e0) {\n        sqlite3_mutex_enter(DAT_000df7a8);\n        iVar7 = (*(code *)PTR_FUN_000df480)(param_3[3],&local_484);\n        piVar13 = DAT_000df7a4;\n        if (iVar7 == 0) {\n          for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }\n          piVar13 = (int *)sqlite3_malloc64(0x34,0);\n          if (piVar13 != (int *)0x0) {\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }\n          iVar7 = 7;\n        }\n        else {\n          piVar13 = __errno_location();\n          iVar7 = 10;\n          param_3[5] = *piVar13;\n        }\nLAB_0005efaf:\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        sqlite3_mutex_leave(DAT_000df7a8);\n        param_3[5] = 0;\n        goto LAB_0005ee17;\n      }\n      if (puVar8 != &DAT_000dd920) goto LAB_0005e8e8;\n      sVar10 = strlen(param_2);\n      iVar7 = sVar10 + 6;\n      iVar11 = sqlite3_malloc64(iVar7,iVar7 >> 0x1f);\n      if (iVar11 == 0) {\n        param_3[6] = 0;\n        param_3[5] = 0;\n        iVar7 = 7;\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        goto LAB_0005ee17;\n      }\n      sqlite3_snprintf(iVar7,iVar11,"%s.lock",param_2);\n      param_3[5] = 0;\n      param_3[6] = iVar11;\n    }" { (expression_statement "puVar8 = (undefined *)(*(code *)**(undefined4 **)(param_1 + 0x14))(param_2,param_3);" (assignment_expression "puVar8 = (undefined *)(*(code *)**(undefined4 **)(param_1 + 0x14))(param_2,param_3)" identifier = (cast_expression "(undefined *)(*(code *)**(undefined4 **)(param_1 + 0x14))(param_2,param_3)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)**(undefined4 **)(param_1 + 0x14))(param_2,param_3)" (parenthesized_expression "(*(code *)**(undefined4 **)(param_1 + 0x14))" ( (pointer_expression "*(code *)**(undefined4 **)(param_1 + 0x14)" * (cast_expression "(code *)**(undefined4 **)(param_1 + 0x14)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(undefined4 **)(param_1 + 0x14)" * (pointer_expression "*(undefined4 **)(param_1 + 0x14)" * (cast_expression "(undefined4 **)(param_1 + 0x14)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))))) )) (argument_list "(param_2,param_3)" ( identifier , identifier ))))) ;) (expression_statement "puVar17 = &DAT_000dd9e0;" (assignment_expression "puVar17 = &DAT_000dd9e0" identifier = (pointer_expression "&DAT_000dd9e0" & identifier)) ;) (if_statement "if (puVar8 == &DAT_000dd9e0) {\n        sqlite3_mutex_enter(DAT_000df7a8);\n        iVar7 = (*(code *)PTR_FUN_000df480)(param_3[3],&local_484);\n        piVar13 = DAT_000df7a4;\n        if (iVar7 == 0) {\n          for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }\n          piVar13 = (int *)sqlite3_malloc64(0x34,0);\n          if (piVar13 != (int *)0x0) {\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }\n          iVar7 = 7;\n        }\n        else {\n          piVar13 = __errno_location();\n          iVar7 = 10;\n          param_3[5] = *piVar13;\n        }\nLAB_0005efaf:\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        sqlite3_mutex_leave(DAT_000df7a8);\n        param_3[5] = 0;\n        goto LAB_0005ee17;\n      }" if (parenthesized_expression "(puVar8 == &DAT_000dd9e0)" ( (binary_expression "puVar8 == &DAT_000dd9e0" identifier == (pointer_expression "&DAT_000dd9e0" & identifier)) )) (compound_statement "{\n        sqlite3_mutex_enter(DAT_000df7a8);\n        iVar7 = (*(code *)PTR_FUN_000df480)(param_3[3],&local_484);\n        piVar13 = DAT_000df7a4;\n        if (iVar7 == 0) {\n          for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }\n          piVar13 = (int *)sqlite3_malloc64(0x34,0);\n          if (piVar13 != (int *)0x0) {\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }\n          iVar7 = 7;\n        }\n        else {\n          piVar13 = __errno_location();\n          iVar7 = 10;\n          param_3[5] = *piVar13;\n        }\nLAB_0005efaf:\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        sqlite3_mutex_leave(DAT_000df7a8);\n        param_3[5] = 0;\n        goto LAB_0005ee17;\n      }" { (expression_statement "sqlite3_mutex_enter(DAT_000df7a8);" (call_expression "sqlite3_mutex_enter(DAT_000df7a8)" identifier (argument_list "(DAT_000df7a8)" ( identifier ))) ;) (expression_statement "iVar7 = (*(code *)PTR_FUN_000df480)(param_3[3],&local_484);" (assignment_expression "iVar7 = (*(code *)PTR_FUN_000df480)(param_3[3],&local_484)" identifier = (call_expression "(*(code *)PTR_FUN_000df480)(param_3[3],&local_484)" (parenthesized_expression "(*(code *)PTR_FUN_000df480)" ( (pointer_expression "*(code *)PTR_FUN_000df480" * (cast_expression "(code *)PTR_FUN_000df480" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3[3],&local_484)" ( (subscript_expression "param_3[3]" identifier [ number_literal ]) , (pointer_expression "&local_484" & identifier) )))) ;) (expression_statement "piVar13 = DAT_000df7a4;" (assignment_expression "piVar13 = DAT_000df7a4" identifier = identifier) ;) (if_statement "if (iVar7 == 0) {\n          for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }\n          piVar13 = (int *)sqlite3_malloc64(0x34,0);\n          if (piVar13 != (int *)0x0) {\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }\n          iVar7 = 7;\n        }\n        else {\n          piVar13 = __errno_location();\n          iVar7 = 10;\n          param_3[5] = *piVar13;\n        }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n          for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }\n          piVar13 = (int *)sqlite3_malloc64(0x34,0);\n          if (piVar13 != (int *)0x0) {\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }\n          iVar7 = 7;\n        }" { (for_statement "for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }" for ( ; (binary_expression "piVar13 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "piVar13 = (int *)piVar13[0xb]" identifier = (cast_expression "(int *)piVar13[0xb]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar13[0xb]" identifier [ number_literal ]))) ) (compound_statement "{\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }" { (if_statement "if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }" if (parenthesized_expression "(((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3]))))" ( (binary_expression "((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))" (parenthesized_expression "((local_484 == *piVar13) && (local_480 == piVar13[1]))" ( (binary_expression "(local_484 == *piVar13) && (local_480 == piVar13[1])" (parenthesized_expression "(local_484 == *piVar13)" ( (binary_expression "local_484 == *piVar13" identifier == (pointer_expression "*piVar13" * identifier)) )) && (parenthesized_expression "(local_480 == piVar13[1])" ( (binary_expression "local_480 == piVar13[1]" identifier == (subscript_expression "piVar13[1]" identifier [ number_literal ])) ))) )) && (parenthesized_expression "((local_42c == piVar13[2] && (local_428 == piVar13[3])))" ( (parenthesized_expression "(local_42c == piVar13[2] && (local_428 == piVar13[3]))" ( (binary_expression "local_42c == piVar13[2] && (local_428 == piVar13[3])" (binary_expression "local_42c == piVar13[2]" identifier == (subscript_expression "piVar13[2]" identifier [ number_literal ])) && (parenthesized_expression "(local_428 == piVar13[3])" ( (binary_expression "local_428 == piVar13[3]" identifier == (subscript_expression "piVar13[3]" identifier [ number_literal ])) ))) )) ))) )) (compound_statement "{\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }" { (expression_statement "piVar13[9] = piVar13[9] + 1;" (assignment_expression "piVar13[9] = piVar13[9] + 1" (subscript_expression "piVar13[9]" identifier [ number_literal ]) = (binary_expression "piVar13[9] + 1" (subscript_expression "piVar13[9]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "piVar9 = DAT_000df7a4;" (assignment_expression "piVar9 = DAT_000df7a4" identifier = identifier) ;) (goto_statement "goto LAB_0005ed6d;" goto statement_identifier ;) })) })) (expression_statement "piVar13 = (int *)sqlite3_malloc64(0x34,0);" (assignment_expression "piVar13 = (int *)sqlite3_malloc64(0x34,0)" identifier = (cast_expression "(int *)sqlite3_malloc64(0x34,0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_malloc64(0x34,0)" identifier (argument_list "(0x34,0)" ( number_literal , number_literal ))))) ;) (if_statement "if (piVar13 != (int *)0x0) {\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }" if (parenthesized_expression "(piVar13 != (int *)0x0)" ( (binary_expression "piVar13 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }" { (expression_statement "piVar13[4] = 0;" (assignment_expression "piVar13[4] = 0" (subscript_expression "piVar13[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar13[0xc] = 0;" (assignment_expression "piVar13[0xc] = 0" (subscript_expression "piVar13[0xc]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);" (assignment_expression "puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(piVar13 + 5) & 0xfffffffc)" ( (binary_expression "(uint)(piVar13 + 5) & 0xfffffffc" (call_expression "(uint)(piVar13 + 5)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(piVar13 + 5)" ( (binary_expression "piVar13 + 5" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }" for ( (assignment_expression "uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2" identifier = (binary_expression "(uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2" (call_expression "(uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc)))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc)))" ( (binary_expression "(int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))" (cast_expression "(int)piVar13" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))" ( (binary_expression "0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc)" number_literal - (cast_expression "(int)((uint)(piVar13 + 5) & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(piVar13 + 5) & 0xfffffffc)" ( (binary_expression "(uint)(piVar13 + 5) & 0xfffffffc" (call_expression "(uint)(piVar13 + 5)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(piVar13 + 5)" ( (binary_expression "piVar13 + 5" identifier + number_literal) ))) & number_literal) )))) ))) ))) >> number_literal)) ; (binary_expression "uVar4 != 0" identifier != number_literal) ; (assignment_expression "uVar4 = uVar4 - 1" identifier = (binary_expression "uVar4 - 1" identifier - number_literal)) ) (compound_statement "{\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }" { (expression_statement "*puVar21 = 0;" (assignment_expression "*puVar21 = 0" (pointer_expression "*puVar21" * identifier) = number_literal) ;) (expression_statement "puVar21 = puVar21 + (uint)bVar25 * -2 + 1;" (assignment_expression "puVar21 = puVar21 + (uint)bVar25 * -2 + 1" identifier = (binary_expression "puVar21 + (uint)bVar25 * -2 + 1" (binary_expression "puVar21 + (uint)bVar25 * -2" identifier + (binary_expression "(uint)bVar25 * -2" (cast_expression "(uint)bVar25" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "*piVar13 = local_484;" (assignment_expression "*piVar13 = local_484" (pointer_expression "*piVar13" * identifier) = identifier) ;) (expression_statement "piVar13[1] = local_480;" (assignment_expression "piVar13[1] = local_480" (subscript_expression "piVar13[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "bVar24 = DAT_000de364 != '\0';" (assignment_expression "bVar24 = DAT_000de364 != '\0'" identifier = (binary_expression "DAT_000de364 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence '))) ;) (expression_statement "piVar13[2] = local_42c;" (assignment_expression "piVar13[2] = local_42c" (subscript_expression "piVar13[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar13[3] = local_428;" (assignment_expression "piVar13[3] = local_428" (subscript_expression "piVar13[3]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }" if (parenthesized_expression "(bVar24)" ( identifier )) (compound_statement "{\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }" { (expression_statement "iVar7 = sqlite3_mutex_alloc(0);" (assignment_expression "iVar7 = sqlite3_mutex_alloc(0)" identifier = (call_expression "sqlite3_mutex_alloc(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (expression_statement "piVar13[4] = iVar7;" (assignment_expression "piVar13[4] = iVar7" (subscript_expression "piVar13[4]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }" { (expression_statement "iVar7 = 7;" (assignment_expression "iVar7 = 7" identifier = number_literal) ;) (expression_statement "sqlite3_free(piVar13);" (call_expression "sqlite3_free(piVar13)" identifier (argument_list "(piVar13)" ( identifier ))) ;) (goto_statement "goto LAB_0005efaf;" goto statement_identifier ;) })) })) (expression_statement "piVar13[9] = 1;" (assignment_expression "piVar13[9] = 1" (subscript_expression "piVar13[9]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar13[0xc] = 0;" (assignment_expression "piVar13[0xc] = 0" (subscript_expression "piVar13[0xc]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar13[0xb] = (int)DAT_000df7a4;" (assignment_expression "piVar13[0xb] = (int)DAT_000df7a4" (subscript_expression "piVar13[0xb]" identifier [ number_literal ]) = (cast_expression "(int)DAT_000df7a4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar9 = piVar13;" (assignment_expression "piVar9 = piVar13" identifier = identifier) ;) (if_statement "if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }" if (parenthesized_expression "(DAT_000df7a4 != (int *)0x0)" ( (binary_expression "DAT_000df7a4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }" { (expression_statement "DAT_000df7a4[0xc] = (int)piVar13;" (assignment_expression "DAT_000df7a4[0xc] = (int)piVar13" (subscript_expression "DAT_000df7a4[0xc]" identifier [ number_literal ]) = (cast_expression "(int)piVar13" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })) (labeled_statement "LAB_0005ed6d:\n            DAT_000df7a4 = piVar9;" statement_identifier : (expression_statement "DAT_000df7a4 = piVar9;" (assignment_expression "DAT_000df7a4 = piVar9" identifier = identifier) ;)) (expression_statement "param_3[2] = piVar13;" (assignment_expression "param_3[2] = piVar13" (subscript_expression "param_3[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar8 = puVar17;" (assignment_expression "puVar8 = puVar17" identifier = identifier) ;) (expression_statement "sqlite3_mutex_leave(DAT_000df7a8);" (call_expression "sqlite3_mutex_leave(DAT_000df7a8)" identifier (argument_list "(DAT_000df7a8)" ( identifier ))) ;) (expression_statement "param_3[5] = 0;" (assignment_expression "param_3[5] = 0" (subscript_expression "param_3[5]" identifier [ number_literal ]) = number_literal) ;) (goto_statement "goto LAB_0005e8ef;" goto statement_identifier ;) })) (expression_statement "iVar7 = 7;" (assignment_expression "iVar7 = 7" identifier = number_literal) ;) }) (else_clause "else {\n          piVar13 = __errno_location();\n          iVar7 = 10;\n          param_3[5] = *piVar13;\n        }" else (compound_statement "{\n          piVar13 = __errno_location();\n          iVar7 = 10;\n          param_3[5] = *piVar13;\n        }" { (expression_statement "piVar13 = __errno_location();" (assignment_expression "piVar13 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar7 = 10;" (assignment_expression "iVar7 = 10" identifier = number_literal) ;) (expression_statement "param_3[5] = *piVar13;" (assignment_expression "param_3[5] = *piVar13" (subscript_expression "param_3[5]" identifier [ number_literal ]) = (pointer_expression "*piVar13" * identifier)) ;) }))) (labeled_statement "LAB_0005efaf:\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);" statement_identifier : (expression_statement "iVar26 = (*(code *)PTR_close_000df450)(iVar26);" (assignment_expression "iVar26 = (*(code *)PTR_close_000df450)(iVar26)" identifier = (call_expression "(*(code *)PTR_close_000df450)(iVar26)" (parenthesized_expression "(*(code *)PTR_close_000df450)" ( (pointer_expression "*(code *)PTR_close_000df450" * (cast_expression "(code *)PTR_close_000df450" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar26)" ( identifier )))) ;)) (if_statement "if (iVar26 != 0) {\n          FUN_0003aea0();\n        }" if (parenthesized_expression "(iVar26 != 0)" ( (binary_expression "iVar26 != 0" identifier != number_literal) )) (compound_statement "{\n          FUN_0003aea0();\n        }" { (expression_statement "FUN_0003aea0();" (call_expression "FUN_0003aea0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "sqlite3_mutex_leave(DAT_000df7a8);" (call_expression "sqlite3_mutex_leave(DAT_000df7a8)" identifier (argument_list "(DAT_000df7a8)" ( identifier ))) ;) (expression_statement "param_3[5] = 0;" (assignment_expression "param_3[5] = 0" (subscript_expression "param_3[5]" identifier [ number_literal ]) = number_literal) ;) (goto_statement "goto LAB_0005ee17;" goto statement_identifier ;) })) (if_statement "if (puVar8 != &DAT_000dd920) goto LAB_0005e8e8;" if (parenthesized_expression "(puVar8 != &DAT_000dd920)" ( (binary_expression "puVar8 != &DAT_000dd920" identifier != (pointer_expression "&DAT_000dd920" & identifier)) )) (goto_statement "goto LAB_0005e8e8;" goto statement_identifier ;)) (expression_statement "sVar10 = strlen(param_2);" (assignment_expression "sVar10 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "iVar7 = sVar10 + 6;" (assignment_expression "iVar7 = sVar10 + 6" identifier = (binary_expression "sVar10 + 6" identifier + number_literal)) ;) (expression_statement "iVar11 = sqlite3_malloc64(iVar7,iVar7 >> 0x1f);" (assignment_expression "iVar11 = sqlite3_malloc64(iVar7,iVar7 >> 0x1f)" identifier = (call_expression "sqlite3_malloc64(iVar7,iVar7 >> 0x1f)" identifier (argument_list "(iVar7,iVar7 >> 0x1f)" ( identifier , (binary_expression "iVar7 >> 0x1f" identifier >> number_literal) )))) ;) (if_statement "if (iVar11 == 0) {\n        param_3[6] = 0;\n        param_3[5] = 0;\n        iVar7 = 7;\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        goto LAB_0005ee17;\n      }" if (parenthesized_expression "(iVar11 == 0)" ( (binary_expression "iVar11 == 0" identifier == number_literal) )) (compound_statement "{\n        param_3[6] = 0;\n        param_3[5] = 0;\n        iVar7 = 7;\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        goto LAB_0005ee17;\n      }" { (expression_statement "param_3[6] = 0;" (assignment_expression "param_3[6] = 0" (subscript_expression "param_3[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_3[5] = 0;" (assignment_expression "param_3[5] = 0" (subscript_expression "param_3[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar7 = 7;" (assignment_expression "iVar7 = 7" identifier = number_literal) ;) (expression_statement "iVar26 = (*(code *)PTR_close_000df450)(iVar26);" (assignment_expression "iVar26 = (*(code *)PTR_close_000df450)(iVar26)" identifier = (call_expression "(*(code *)PTR_close_000df450)(iVar26)" (parenthesized_expression "(*(code *)PTR_close_000df450)" ( (pointer_expression "*(code *)PTR_close_000df450" * (cast_expression "(code *)PTR_close_000df450" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar26)" ( identifier )))) ;) (if_statement "if (iVar26 != 0) {\n          FUN_0003aea0();\n        }" if (parenthesized_expression "(iVar26 != 0)" ( (binary_expression "iVar26 != 0" identifier != number_literal) )) (compound_statement "{\n          FUN_0003aea0();\n        }" { (expression_statement "FUN_0003aea0();" (call_expression "FUN_0003aea0()" identifier (argument_list "()" ( ))) ;) })) (goto_statement "goto LAB_0005ee17;" goto statement_identifier ;) })) (expression_statement "sqlite3_snprintf(iVar7,iVar11,"%s.lock",param_2);" (call_expression "sqlite3_snprintf(iVar7,iVar11,"%s.lock",param_2)" identifier (argument_list "(iVar7,iVar11,"%s.lock",param_2)" ( identifier , identifier , (string_literal ""%s.lock"" " string_content ") , identifier ))) ;) (expression_statement "param_3[5] = 0;" (assignment_expression "param_3[5] = 0" (subscript_expression "param_3[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_3[6] = iVar11;" (assignment_expression "param_3[6] = iVar11" (subscript_expression "param_3[6]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n      puVar8 = &DAT_000dd980;\nLAB_0005e8e8:\n      param_3[5] = 0;\n    }" else (compound_statement "{\n      puVar8 = &DAT_000dd980;\nLAB_0005e8e8:\n      param_3[5] = 0;\n    }" { (expression_statement "puVar8 = &DAT_000dd980;" (assignment_expression "puVar8 = &DAT_000dd980" identifier = (pointer_expression "&DAT_000dd980" & identifier)) ;) (labeled_statement "LAB_0005e8e8:\n      param_3[5] = 0;" statement_identifier : (expression_statement "param_3[5] = 0;" (assignment_expression "param_3[5] = 0" (subscript_expression "param_3[5]" identifier [ number_literal ]) = number_literal) ;)) }))) (labeled_statement "LAB_0005e8ef:\n    *param_3 = puVar8;" statement_identifier : (expression_statement "*param_3 = puVar8;" (assignment_expression "*param_3 = puVar8" (pointer_expression "*param_3" * identifier) = identifier) ;)) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "FUN_0003a610();" (call_expression "FUN_0003a610()" identifier (argument_list "()" ( ))) ;) }))) (labeled_statement "LAB_0005e8fb:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar7;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar7;\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    return iVar7;\n  }" { (return_statement "return iVar7;" return identifier ;) }))) comment (expression_statement "FUN_000a9ea0();" (call_expression "FUN_000a9ea0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Removing unreachable block (ram,0x0005e857) */\n\nint unixOpen(sqlite3_vfs *pVfs,char *zPath,sqlite3_file *pFile,int flags,int *pOutFlags)\n\n{\n  ushort *puVar1;\n  int iVar2;\n  char cVar3;\n  unixInodeInfo *puVar4;\n  sqlite3_io_methods *psVar5;\n  uint uVar6;\n  __pid_t _Var7;\n  int iVar8;\n  sqlite3_io_methods *psVar9;\n  uint f;\n  size_t sVar10;\n  sqlite3_io_methods *psVar11;\n  int iVar12;\n  char *pcVar13;\n  int *piVar14;\n  sqlite3_mutex *psVar15;\n  uint uVar16;\n  int lineno;\n  int lineno_00;\n  UnixUnusedFd **ppUVar17;\n  byte *pbVar18;\n  uint uVar19;\n  byte *pbVar20;\n  undefined4 *puVar21;\n  __gid_t _Var22;\n  int in_GS_OFFSET;\n  bool bVar23;\n  bool bVar24;\n  byte bVar25;\n  uint local_4cc;\n  sqlite3_io_methods *local_4c8;\n  char *local_4b4;\n  __uid_t local_4ac;\n  mode_t local_4a8;\n  uint local_4a4;\n  unixFileId fileId;\n  stat sStat;\n  char zDb [513];\n  char zTmpname [514];\n  \n  bVar25 = 0;\n  local_4cc = flags & 8;\n  local_4a4 = flags & 1;\n  uVar19 = flags & 2;\n  bVar24 = false;\n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar6 = flags & 0xfff00;\n  if ((flags & 4U) != 0) {\n    bVar24 = (uVar6 == 0x4000 || uVar6 == 0x800) || uVar6 == 0x80000;\n  }\n  _Var7 = getpid();\n  if (_Var7 != randomnessPid) {\n    randomnessPid = getpid();\n    sqlite3_randomness(0,(void *)0x0);\n  }\n  pFile->pMethods = (sqlite3_io_methods *)0x0;\n  pFile[0x14].pMethods = (sqlite3_io_methods *)0x0;\n  puVar21 = (undefined4 *)((uint)(pFile + 1) & 0xfffffffc);\n  for (uVar16 = (uint)((int)pFile + (0x54 - (int)((uint)(pFile + 1) & 0xfffffffc))) >> 2;\n      uVar16 != 0; uVar16 = uVar16 - 1) {\n    *puVar21 = 0;\n    puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n  }\n  if (uVar6 == 0x100) {\n    sqlite3_mutex_enter(unixBigLock);\n    if ((inodeList != (unixInodeInfo *)0x0) &&\n       (iVar8 = (*aSyscall[4].pCurrent)(zPath,&sStat), puVar4 = inodeList, iVar8 == 0)) {\n      for (; puVar4 != (unixInodeInfo *)0x0; puVar4 = puVar4->pNext) {\n        if ((*(_func_int_sqlite3_file_ptr **)((int)&(puVar4->fileId).dev + 4) == sStat.st_dev._4_4_\n             && (int)(puVar4->fileId).dev == (int)sStat.st_dev) &&\n           (sStat.st_ino._4_4_ ==\n            *(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 **)\n             ((int)&(puVar4->fileId).ino + 4) &&\n            (_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino ==\n            *(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 **)&(puVar4->fileId).ino)) {\n          sqlite3_mutex_enter(puVar4->pLockMutex);\n          psVar9 = (sqlite3_io_methods *)puVar4->pUnused;\n          if (psVar9 == (sqlite3_io_methods *)0x0) goto LAB_0005ea3a;\n          if ((_func_int_sqlite3_file_ptr *)(flags & 3U) != psVar9->xClose) goto LAB_0005ea33;\n          ppUVar17 = &puVar4->pUnused;\n          goto LAB_0005ee53;\n        }\n      }\n    }\n    sqlite3_mutex_leave(unixBigLock);\n    goto LAB_0005ea54;\n  }\n  local_4c8 = (sqlite3_io_methods *)&DAT_ffffffff;\n  local_4b4 = zPath;\n  if (zPath == (char *)0x0) {\n    local_4b4 = zTmpname;\n    iVar8 = unixGetTempname(pVfs->mxPathname,local_4b4);\n    if (iVar8 != 0) goto LAB_0005e8fb;\n  }\n  goto LAB_0005e781;\nLAB_0005ea3a:\n  sqlite3_mutex_leave(puVar4->pLockMutex);\n  sqlite3_mutex_leave(unixBigLock);\nLAB_0005ea54:\n  psVar9 = (sqlite3_io_methods *)sqlite3_malloc64(0xc);\n  if (psVar9 == (sqlite3_io_methods *)0x0) {\n    iVar8 = 7;\n    goto LAB_0005e8fb;\n  }\n  local_4c8 = (sqlite3_io_methods *)&DAT_ffffffff;\n  goto LAB_0005ee78;\n  while ((_func_int_sqlite3_file_ptr *)(flags & 3U) != psVar9->xClose) {\nLAB_0005ea33:\n    psVar11 = psVar9;\n    psVar9 = (sqlite3_io_methods *)psVar11->xRead;\n    if (psVar9 == (sqlite3_io_methods *)0x0) goto LAB_0005ea3a;\n  }\n  ppUVar17 = (UnixUnusedFd **)&psVar11->xRead;\nLAB_0005ee53:\n  *ppUVar17 = (UnixUnusedFd *)psVar9->xRead;\n  sqlite3_mutex_leave(puVar4->pLockMutex);\n  sqlite3_mutex_leave(unixBigLock);\n  local_4c8 = (sqlite3_io_methods *)psVar9->iVersion;\nLAB_0005ee78:\n  pFile[7].pMethods = psVar9;\n  local_4b4 = zPath;\nLAB_0005e781:\n  uVar16 = uVar19;\n  if ((flags & 4U) != 0) {\n    uVar16 = uVar19 | 0x40;\n  }\n  if ((flags & 0x10U) != 0) {\n    uVar16 = uVar16 | 0x20080;\n  }\n  if (-1 < (int)local_4c8) goto LAB_0005e7af;\n  f = uVar16 | 0x28000;\n  if ((flags & 0x80800U) == 0) {\n    if (local_4cc == 0) {\n      if (((flags & 0x40U) != 0) &&\n         (pcVar13 = sqlite3_uri_parameter(local_4b4,"modeof"), pcVar13 != (char *)0x0))\n      goto LAB_0005eb2c;\nLAB_0005ebd9:\n      local_4c8 = (sqlite3_io_methods *)robust_open(local_4b4,f,0);\n      if ((int)local_4c8 < 0) {\n        local_4ac = 0;\n        local_4a8 = 0;\n        _Var22 = 0;\n        goto LAB_0005ec06;\n      }\n      goto LAB_0005e7af;\n    }\n    local_4c8 = (sqlite3_io_methods *)robust_open(local_4b4,f,0x180);\n    if (-1 < (int)local_4c8) goto LAB_0005e7af;\n    _Var22 = 0;\n    local_4ac = 0;\n    local_4a8 = 0x180;\nLAB_0005ec06:\n    piVar14 = __errno_location();\n    iVar8 = *piVar14;\n    if ((bVar24) && (iVar8 == 0xd)) {\n      iVar8 = (*aSyscall[2].pCurrent)(local_4b4,0);\n      if (iVar8 == 0) {\n        iVar8 = *piVar14;\n        goto LAB_0005ec40;\n      }\n      iVar8 = 0x608;\n      iVar12 = sqlite3CantopenError(0x9ae7);\n      unixLogErrorAtLine(iVar12,"open",local_4b4,0x9ae7);\n    }\n    else {\nLAB_0005ec40:\n      if ((uVar19 != 0) && (iVar8 != 0x15)) {\n        flags = flags & 0xfffffff9U | 1;\n        local_4c8 = (sqlite3_io_methods *)\n                    robust_open(local_4b4,uVar16 & 0xffffffbd | 0x28000,local_4a8);\n        if (-1 < (int)local_4c8) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }\n      iVar8 = sqlite3CantopenError(0x9ae7);\n      iVar8 = unixLogErrorAtLine(iVar8,"open",local_4b4,0x9ae7);\n      if (iVar8 == 0) goto LAB_0005e8fb;\n    }\nLAB_0005ee17:\n    sqlite3_free(pFile[7].pMethods);\n  }\n  else {\n    if (local_4b4 == (char *)0x0) {\n      iVar8 = -1;\n    }\n    else {\n      sVar10 = strlen(local_4b4);\n      iVar8 = (sVar10 & 0x3fffffff) - 1;\n    }\n    cVar3 = local_4b4[iVar8];\n    while (cVar3 != '-') {\n      if ((cVar3 == '.') || (iVar8 == 0)) goto LAB_0005ebd9;\n      iVar8 = iVar8 + -1;\n      cVar3 = local_4b4[iVar8];\n    }\n    pcVar13 = zDb;\n    __memcpy_chk(pcVar13,local_4b4,iVar8,0x201);\n    zDb[iVar8] = '\0';\nLAB_0005eb2c:\n    iVar12 = (*aSyscall[4].pCurrent)(pcVar13,&sStat);\n    iVar8 = 0x70a;\n    if (iVar12 != 0) goto LAB_0005e8fb;\n    local_4a8 = sStat.st_mode & 0x1ff;\n    local_4ac = sStat.st_uid;\n    local_4c8 = (sqlite3_io_methods *)robust_open(local_4b4,f,local_4a8);\n    _Var22 = sStat.st_gid;\n    if ((int)local_4c8 < 0) goto LAB_0005ec06;\nLAB_0005eb78:\n    if (((local_4a8 != 0) && ((flags & 0x80800U) != 0)) &&\n       (iVar8 = (*aSyscall[0x15].pCurrent)(), iVar8 == 0)) {\n      (*aSyscall[0x14].pCurrent)(local_4c8,local_4ac,_Var22);\n    }\nLAB_0005e7af:\n    if (pOutFlags != (int *)0x0) {\n      *pOutFlags = flags;\n    }\n    psVar9 = pFile[7].pMethods;\n    if (psVar9 != (sqlite3_io_methods *)0x0) {\n      psVar9->iVersion = (int)local_4c8;\n      psVar9->xClose = (_func_int_sqlite3_file_ptr *)(flags & 3);\n    }\n    if (local_4cc != 0) {\n      (*aSyscall[0x10].pCurrent)(local_4b4);\n      local_4cc = 0x20;\n    }\n    psVar9 = sqlite3Config.szMmap._4_4_;\n    uVar19 = local_4cc | 2;\n    if (local_4a4 == 0) {\n      uVar19 = local_4cc;\n    }\n    uVar16 = uVar19 | 0x80;\n    if (uVar6 == 0x100) {\n      uVar16 = uVar19;\n    }\n    local_4cc = uVar16 | 8;\n    if (!bVar24) {\n      local_4cc = uVar16;\n    }\n    if ((flags & 0x40U) == 0) {\n      *(short *)((int)&pFile[4].pMethods + 2) = (short)local_4cc;\n      pFile[3].pMethods = local_4c8;\n      pFile[8].pMethods = (sqlite3_io_methods *)zPath;\n      pFile[1].pMethods = (sqlite3_io_methods *)pVfs;\n      psVar11 = (sqlite3_io_methods *)sqlite3Config.szMmap;\n      pFile[0x11].pMethods = psVar9;\n      pFile[0x10].pMethods = psVar11;\n      pcVar13 = (char *)0x0;\n    }\n    else {\n      local_4cc = local_4cc | 0x40;\n      pFile[3].pMethods = local_4c8;\n      pFile[8].pMethods = (sqlite3_io_methods *)zPath;\n      *(short *)((int)&pFile[4].pMethods + 2) = (short)local_4cc;\n      pFile[1].pMethods = (sqlite3_io_methods *)pVfs;\n      psVar11 = (sqlite3_io_methods *)sqlite3Config.szMmap;\n      pFile[0x11].pMethods = psVar9;\n      pFile[0x10].pMethods = psVar11;\n      pcVar13 = zPath;\n    }\n    iVar8 = sqlite3_uri_boolean(pcVar13,"psow",1);\n    bVar24 = iVar8 == 0;\n    if (!bVar24) {\n      puVar1 = (ushort *)((int)&pFile[4].pMethods + 2);\n      *puVar1 = *puVar1 | 0x10;\n      bVar24 = *puVar1 == 0;\n    }\n    bVar23 = false;\n    iVar8 = 10;\n    pbVar18 = (byte *)pVfs->zName;\n    pbVar20 = (byte *)"unix-excl";\n    do {\n      if (iVar8 == 0) break;\n      iVar8 = iVar8 + -1;\n      bVar23 = *pbVar18 < *pbVar20;\n      bVar24 = *pbVar18 == *pbVar20;\n      pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1;\n      pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1;\n    } while (bVar24);\n    if ((!bVar23 && !bVar24) == bVar23) {\n      puVar1 = (ushort *)((int)&pFile[4].pMethods + 2);\n      *puVar1 = *puVar1 | 1;\n    }\n    if ((local_4cc & 0x80) == 0) {\n                    /* WARNING: Load size is inaccurate */\n      psVar9 = (sqlite3_io_methods *)(**pVfs->pAppData)(zPath,pFile);\n      psVar11 = &posixIoMethods;\n      if (psVar9 == &posixIoMethods) {\n        sqlite3_mutex_enter(unixBigLock);\n        iVar8 = (*aSyscall[5].pCurrent)(pFile[3].pMethods,&sStat);\n        psVar9 = (sqlite3_io_methods *)inodeList;\n        if (iVar8 == 0) {\n          for (; psVar9 != (sqlite3_io_methods *)0x0;\n              psVar9 = (sqlite3_io_methods *)psVar9->xSectorSize) {\n            if ((((int)sStat.st_dev == (int)((unixFileId *)&psVar9->iVersion)->dev) &&\n                (sStat.st_dev._4_4_ == psVar9->xClose)) &&\n               (((_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino ==\n                 psVar9->xRead && (sStat.st_ino._4_4_ == psVar9->xWrite)))) {\n              psVar9->xCheckReservedLock = psVar9->xCheckReservedLock + 1;\n              psVar5 = (sqlite3_io_methods *)inodeList;\n              goto LAB_0005ed6d;\n            }\n          }\n          psVar9 = (sqlite3_io_methods *)sqlite3_malloc64(0x34);\n          if (psVar9 != (sqlite3_io_methods *)0x0) {\n            psVar9->xTruncate = (_func_int_sqlite3_file_ptr_sqlite3_int64 *)0x0;\n            psVar9->xDeviceCharacteristics = (_func_int_sqlite3_file_ptr *)0x0;\n            puVar21 = (undefined4 *)((uint)&psVar9->xSync & 0xfffffffc);\n            uVar6 = (uint)((int)psVar9 + (0x34 - (int)puVar21)) >> 2;\n            for (; uVar6 != 0; uVar6 = uVar6 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *(int *)&((unixFileId *)&psVar9->iVersion)->dev = (int)sStat.st_dev;\n            psVar9->xClose = sStat.st_dev._4_4_;\n            bVar24 = sqlite3Config.bCoreMutex != '\0';\n            psVar9->xRead = (_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino;\n            psVar9->xWrite = sStat.st_ino._4_4_;\n            if (bVar24) {\n              psVar15 = sqlite3_mutex_alloc(0);\n              psVar9->xTruncate = (_func_int_sqlite3_file_ptr_sqlite3_int64 *)psVar15;\n              if (psVar15 == (sqlite3_mutex *)0x0) {\n                iVar8 = 7;\n                sqlite3_free(psVar9);\n                goto LAB_0005efaf;\n              }\n            }\n            psVar9->xCheckReservedLock = (_func_int_sqlite3_file_ptr_int_ptr *)0x1;\n            psVar9->xDeviceCharacteristics = (_func_int_sqlite3_file_ptr *)0x0;\n            psVar9->xSectorSize = (_func_int_sqlite3_file_ptr *)inodeList;\n            psVar5 = psVar9;\n            if (inodeList != (unixInodeInfo *)0x0) {\n              inodeList->pPrev = (unixInodeInfo *)psVar9;\n            }\nLAB_0005ed6d:\n            inodeList = (unixInodeInfo *)psVar5;\n            pFile[2].pMethods = psVar9;\n            sqlite3_mutex_leave(unixBigLock);\n            pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n            goto LAB_0005e8ef;\n          }\n          iVar8 = 7;\n        }\n        else {\n          piVar14 = __errno_location();\n          iVar8 = 10;\n          pFile[5].pMethods = (sqlite3_io_methods *)*piVar14;\n        }\nLAB_0005efaf:\n        iVar12 = (*aSyscall[1].pCurrent)(local_4c8);\n        if (iVar12 != 0) {\n          robust_close((unixFile *)pFile,0x98f4,lineno_00);\n        }\n        sqlite3_mutex_leave(unixBigLock);\n        pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n        goto LAB_0005ee17;\n      }\n      if (psVar9 != &dotlockIoMethods) goto LAB_0005e8e8;\n      sVar10 = strlen(zPath);\n      psVar11 = (sqlite3_io_methods *)sqlite3_malloc64((longlong)(int)(sVar10 + 6));\n      if (psVar11 == (sqlite3_io_methods *)0x0) {\n        pFile[6].pMethods = (sqlite3_io_methods *)0x0;\n        pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n        iVar8 = 7;\n        iVar12 = (*aSyscall[1].pCurrent)(local_4c8);\n        if (iVar12 != 0) {\n          robust_close((unixFile *)pFile,0x9949,lineno);\n        }\n        goto LAB_0005ee17;\n      }\n      sqlite3_snprintf(sVar10 + 6,(char *)psVar11,"%s.lock",zPath);\n      pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n      pFile[6].pMethods = psVar11;\n      psVar11 = psVar9;\n    }\n    else {\n      psVar9 = &nolockIoMethods;\nLAB_0005e8e8:\n      pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n      psVar11 = psVar9;\n    }\nLAB_0005e8ef:\n    pFile->pMethods = psVar11;\n    iVar8 = 0;\n    verifyDbFile((unixFile *)pFile);\n  }\nLAB_0005e8fb:\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar8;\n}\n\n" comment comment (function_definition "int unixOpen(sqlite3_vfs *pVfs,char *zPath,sqlite3_file *pFile,int flags,int *pOutFlags)\n\n{\n  ushort *puVar1;\n  int iVar2;\n  char cVar3;\n  unixInodeInfo *puVar4;\n  sqlite3_io_methods *psVar5;\n  uint uVar6;\n  __pid_t _Var7;\n  int iVar8;\n  sqlite3_io_methods *psVar9;\n  uint f;\n  size_t sVar10;\n  sqlite3_io_methods *psVar11;\n  int iVar12;\n  char *pcVar13;\n  int *piVar14;\n  sqlite3_mutex *psVar15;\n  uint uVar16;\n  int lineno;\n  int lineno_00;\n  UnixUnusedFd **ppUVar17;\n  byte *pbVar18;\n  uint uVar19;\n  byte *pbVar20;\n  undefined4 *puVar21;\n  __gid_t _Var22;\n  int in_GS_OFFSET;\n  bool bVar23;\n  bool bVar24;\n  byte bVar25;\n  uint local_4cc;\n  sqlite3_io_methods *local_4c8;\n  char *local_4b4;\n  __uid_t local_4ac;\n  mode_t local_4a8;\n  uint local_4a4;\n  unixFileId fileId;\n  stat sStat;\n  char zDb [513];\n  char zTmpname [514];\n  \n  bVar25 = 0;\n  local_4cc = flags & 8;\n  local_4a4 = flags & 1;\n  uVar19 = flags & 2;\n  bVar24 = false;\n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar6 = flags & 0xfff00;\n  if ((flags & 4U) != 0) {\n    bVar24 = (uVar6 == 0x4000 || uVar6 == 0x800) || uVar6 == 0x80000;\n  }\n  _Var7 = getpid();\n  if (_Var7 != randomnessPid) {\n    randomnessPid = getpid();\n    sqlite3_randomness(0,(void *)0x0);\n  }\n  pFile->pMethods = (sqlite3_io_methods *)0x0;\n  pFile[0x14].pMethods = (sqlite3_io_methods *)0x0;\n  puVar21 = (undefined4 *)((uint)(pFile + 1) & 0xfffffffc);\n  for (uVar16 = (uint)((int)pFile + (0x54 - (int)((uint)(pFile + 1) & 0xfffffffc))) >> 2;\n      uVar16 != 0; uVar16 = uVar16 - 1) {\n    *puVar21 = 0;\n    puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n  }\n  if (uVar6 == 0x100) {\n    sqlite3_mutex_enter(unixBigLock);\n    if ((inodeList != (unixInodeInfo *)0x0) &&\n       (iVar8 = (*aSyscall[4].pCurrent)(zPath,&sStat), puVar4 = inodeList, iVar8 == 0)) {\n      for (; puVar4 != (unixInodeInfo *)0x0; puVar4 = puVar4->pNext) {\n        if ((*(_func_int_sqlite3_file_ptr **)((int)&(puVar4->fileId).dev + 4) == sStat.st_dev._4_4_\n             && (int)(puVar4->fileId).dev == (int)sStat.st_dev) &&\n           (sStat.st_ino._4_4_ ==\n            *(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 **)\n             ((int)&(puVar4->fileId).ino + 4) &&\n            (_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino ==\n            *(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 **)&(puVar4->fileId).ino)) {\n          sqlite3_mutex_enter(puVar4->pLockMutex);\n          psVar9 = (sqlite3_io_methods *)puVar4->pUnused;\n          if (psVar9 == (sqlite3_io_methods *)0x0) goto LAB_0005ea3a;\n          if ((_func_int_sqlite3_file_ptr *)(flags & 3U) != psVar9->xClose) goto LAB_0005ea33;\n          ppUVar17 = &puVar4->pUnused;\n          goto LAB_0005ee53;\n        }\n      }\n    }\n    sqlite3_mutex_leave(unixBigLock);\n    goto LAB_0005ea54;\n  }\n  local_4c8 = (sqlite3_io_methods *)&DAT_ffffffff;\n  local_4b4 = zPath;\n  if (zPath == (char *)0x0) {\n    local_4b4 = zTmpname;\n    iVar8 = unixGetTempname(pVfs->mxPathname,local_4b4);\n    if (iVar8 != 0) goto LAB_0005e8fb;\n  }\n  goto LAB_0005e781;\nLAB_0005ea3a:\n  sqlite3_mutex_leave(puVar4->pLockMutex);\n  sqlite3_mutex_leave(unixBigLock);\nLAB_0005ea54:\n  psVar9 = (sqlite3_io_methods *)sqlite3_malloc64(0xc);\n  if (psVar9 == (sqlite3_io_methods *)0x0) {\n    iVar8 = 7;\n    goto LAB_0005e8fb;\n  }\n  local_4c8 = (sqlite3_io_methods *)&DAT_ffffffff;\n  goto LAB_0005ee78;\n  while ((_func_int_sqlite3_file_ptr *)(flags & 3U) != psVar9->xClose) {\nLAB_0005ea33:\n    psVar11 = psVar9;\n    psVar9 = (sqlite3_io_methods *)psVar11->xRead;\n    if (psVar9 == (sqlite3_io_methods *)0x0) goto LAB_0005ea3a;\n  }\n  ppUVar17 = (UnixUnusedFd **)&psVar11->xRead;\nLAB_0005ee53:\n  *ppUVar17 = (UnixUnusedFd *)psVar9->xRead;\n  sqlite3_mutex_leave(puVar4->pLockMutex);\n  sqlite3_mutex_leave(unixBigLock);\n  local_4c8 = (sqlite3_io_methods *)psVar9->iVersion;\nLAB_0005ee78:\n  pFile[7].pMethods = psVar9;\n  local_4b4 = zPath;\nLAB_0005e781:\n  uVar16 = uVar19;\n  if ((flags & 4U) != 0) {\n    uVar16 = uVar19 | 0x40;\n  }\n  if ((flags & 0x10U) != 0) {\n    uVar16 = uVar16 | 0x20080;\n  }\n  if (-1 < (int)local_4c8) goto LAB_0005e7af;\n  f = uVar16 | 0x28000;\n  if ((flags & 0x80800U) == 0) {\n    if (local_4cc == 0) {\n      if (((flags & 0x40U) != 0) &&\n         (pcVar13 = sqlite3_uri_parameter(local_4b4,"modeof"), pcVar13 != (char *)0x0))\n      goto LAB_0005eb2c;\nLAB_0005ebd9:\n      local_4c8 = (sqlite3_io_methods *)robust_open(local_4b4,f,0);\n      if ((int)local_4c8 < 0) {\n        local_4ac = 0;\n        local_4a8 = 0;\n        _Var22 = 0;\n        goto LAB_0005ec06;\n      }\n      goto LAB_0005e7af;\n    }\n    local_4c8 = (sqlite3_io_methods *)robust_open(local_4b4,f,0x180);\n    if (-1 < (int)local_4c8) goto LAB_0005e7af;\n    _Var22 = 0;\n    local_4ac = 0;\n    local_4a8 = 0x180;\nLAB_0005ec06:\n    piVar14 = __errno_location();\n    iVar8 = *piVar14;\n    if ((bVar24) && (iVar8 == 0xd)) {\n      iVar8 = (*aSyscall[2].pCurrent)(local_4b4,0);\n      if (iVar8 == 0) {\n        iVar8 = *piVar14;\n        goto LAB_0005ec40;\n      }\n      iVar8 = 0x608;\n      iVar12 = sqlite3CantopenError(0x9ae7);\n      unixLogErrorAtLine(iVar12,"open",local_4b4,0x9ae7);\n    }\n    else {\nLAB_0005ec40:\n      if ((uVar19 != 0) && (iVar8 != 0x15)) {\n        flags = flags & 0xfffffff9U | 1;\n        local_4c8 = (sqlite3_io_methods *)\n                    robust_open(local_4b4,uVar16 & 0xffffffbd | 0x28000,local_4a8);\n        if (-1 < (int)local_4c8) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }\n      iVar8 = sqlite3CantopenError(0x9ae7);\n      iVar8 = unixLogErrorAtLine(iVar8,"open",local_4b4,0x9ae7);\n      if (iVar8 == 0) goto LAB_0005e8fb;\n    }\nLAB_0005ee17:\n    sqlite3_free(pFile[7].pMethods);\n  }\n  else {\n    if (local_4b4 == (char *)0x0) {\n      iVar8 = -1;\n    }\n    else {\n      sVar10 = strlen(local_4b4);\n      iVar8 = (sVar10 & 0x3fffffff) - 1;\n    }\n    cVar3 = local_4b4[iVar8];\n    while (cVar3 != '-') {\n      if ((cVar3 == '.') || (iVar8 == 0)) goto LAB_0005ebd9;\n      iVar8 = iVar8 + -1;\n      cVar3 = local_4b4[iVar8];\n    }\n    pcVar13 = zDb;\n    __memcpy_chk(pcVar13,local_4b4,iVar8,0x201);\n    zDb[iVar8] = '\0';\nLAB_0005eb2c:\n    iVar12 = (*aSyscall[4].pCurrent)(pcVar13,&sStat);\n    iVar8 = 0x70a;\n    if (iVar12 != 0) goto LAB_0005e8fb;\n    local_4a8 = sStat.st_mode & 0x1ff;\n    local_4ac = sStat.st_uid;\n    local_4c8 = (sqlite3_io_methods *)robust_open(local_4b4,f,local_4a8);\n    _Var22 = sStat.st_gid;\n    if ((int)local_4c8 < 0) goto LAB_0005ec06;\nLAB_0005eb78:\n    if (((local_4a8 != 0) && ((flags & 0x80800U) != 0)) &&\n       (iVar8 = (*aSyscall[0x15].pCurrent)(), iVar8 == 0)) {\n      (*aSyscall[0x14].pCurrent)(local_4c8,local_4ac,_Var22);\n    }\nLAB_0005e7af:\n    if (pOutFlags != (int *)0x0) {\n      *pOutFlags = flags;\n    }\n    psVar9 = pFile[7].pMethods;\n    if (psVar9 != (sqlite3_io_methods *)0x0) {\n      psVar9->iVersion = (int)local_4c8;\n      psVar9->xClose = (_func_int_sqlite3_file_ptr *)(flags & 3);\n    }\n    if (local_4cc != 0) {\n      (*aSyscall[0x10].pCurrent)(local_4b4);\n      local_4cc = 0x20;\n    }\n    psVar9 = sqlite3Config.szMmap._4_4_;\n    uVar19 = local_4cc | 2;\n    if (local_4a4 == 0) {\n      uVar19 = local_4cc;\n    }\n    uVar16 = uVar19 | 0x80;\n    if (uVar6 == 0x100) {\n      uVar16 = uVar19;\n    }\n    local_4cc = uVar16 | 8;\n    if (!bVar24) {\n      local_4cc = uVar16;\n    }\n    if ((flags & 0x40U) == 0) {\n      *(short *)((int)&pFile[4].pMethods + 2) = (short)local_4cc;\n      pFile[3].pMethods = local_4c8;\n      pFile[8].pMethods = (sqlite3_io_methods *)zPath;\n      pFile[1].pMethods = (sqlite3_io_methods *)pVfs;\n      psVar11 = (sqlite3_io_methods *)sqlite3Config.szMmap;\n      pFile[0x11].pMethods = psVar9;\n      pFile[0x10].pMethods = psVar11;\n      pcVar13 = (char *)0x0;\n    }\n    else {\n      local_4cc = local_4cc | 0x40;\n      pFile[3].pMethods = local_4c8;\n      pFile[8].pMethods = (sqlite3_io_methods *)zPath;\n      *(short *)((int)&pFile[4].pMethods + 2) = (short)local_4cc;\n      pFile[1].pMethods = (sqlite3_io_methods *)pVfs;\n      psVar11 = (sqlite3_io_methods *)sqlite3Config.szMmap;\n      pFile[0x11].pMethods = psVar9;\n      pFile[0x10].pMethods = psVar11;\n      pcVar13 = zPath;\n    }\n    iVar8 = sqlite3_uri_boolean(pcVar13,"psow",1);\n    bVar24 = iVar8 == 0;\n    if (!bVar24) {\n      puVar1 = (ushort *)((int)&pFile[4].pMethods + 2);\n      *puVar1 = *puVar1 | 0x10;\n      bVar24 = *puVar1 == 0;\n    }\n    bVar23 = false;\n    iVar8 = 10;\n    pbVar18 = (byte *)pVfs->zName;\n    pbVar20 = (byte *)"unix-excl";\n    do {\n      if (iVar8 == 0) break;\n      iVar8 = iVar8 + -1;\n      bVar23 = *pbVar18 < *pbVar20;\n      bVar24 = *pbVar18 == *pbVar20;\n      pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1;\n      pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1;\n    } while (bVar24);\n    if ((!bVar23 && !bVar24) == bVar23) {\n      puVar1 = (ushort *)((int)&pFile[4].pMethods + 2);\n      *puVar1 = *puVar1 | 1;\n    }\n    if ((local_4cc & 0x80) == 0) {\n                    /* WARNING: Load size is inaccurate */\n      psVar9 = (sqlite3_io_methods *)(**pVfs->pAppData)(zPath,pFile);\n      psVar11 = &posixIoMethods;\n      if (psVar9 == &posixIoMethods) {\n        sqlite3_mutex_enter(unixBigLock);\n        iVar8 = (*aSyscall[5].pCurrent)(pFile[3].pMethods,&sStat);\n        psVar9 = (sqlite3_io_methods *)inodeList;\n        if (iVar8 == 0) {\n          for (; psVar9 != (sqlite3_io_methods *)0x0;\n              psVar9 = (sqlite3_io_methods *)psVar9->xSectorSize) {\n            if ((((int)sStat.st_dev == (int)((unixFileId *)&psVar9->iVersion)->dev) &&\n                (sStat.st_dev._4_4_ == psVar9->xClose)) &&\n               (((_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino ==\n                 psVar9->xRead && (sStat.st_ino._4_4_ == psVar9->xWrite)))) {\n              psVar9->xCheckReservedLock = psVar9->xCheckReservedLock + 1;\n              psVar5 = (sqlite3_io_methods *)inodeList;\n              goto LAB_0005ed6d;\n            }\n          }\n          psVar9 = (sqlite3_io_methods *)sqlite3_malloc64(0x34);\n          if (psVar9 != (sqlite3_io_methods *)0x0) {\n            psVar9->xTruncate = (_func_int_sqlite3_file_ptr_sqlite3_int64 *)0x0;\n            psVar9->xDeviceCharacteristics = (_func_int_sqlite3_file_ptr *)0x0;\n            puVar21 = (undefined4 *)((uint)&psVar9->xSync & 0xfffffffc);\n            uVar6 = (uint)((int)psVar9 + (0x34 - (int)puVar21)) >> 2;\n            for (; uVar6 != 0; uVar6 = uVar6 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *(int *)&((unixFileId *)&psVar9->iVersion)->dev = (int)sStat.st_dev;\n            psVar9->xClose = sStat.st_dev._4_4_;\n            bVar24 = sqlite3Config.bCoreMutex != '\0';\n            psVar9->xRead = (_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino;\n            psVar9->xWrite = sStat.st_ino._4_4_;\n            if (bVar24) {\n              psVar15 = sqlite3_mutex_alloc(0);\n              psVar9->xTruncate = (_func_int_sqlite3_file_ptr_sqlite3_int64 *)psVar15;\n              if (psVar15 == (sqlite3_mutex *)0x0) {\n                iVar8 = 7;\n                sqlite3_free(psVar9);\n                goto LAB_0005efaf;\n              }\n            }\n            psVar9->xCheckReservedLock = (_func_int_sqlite3_file_ptr_int_ptr *)0x1;\n            psVar9->xDeviceCharacteristics = (_func_int_sqlite3_file_ptr *)0x0;\n            psVar9->xSectorSize = (_func_int_sqlite3_file_ptr *)inodeList;\n            psVar5 = psVar9;\n            if (inodeList != (unixInodeInfo *)0x0) {\n              inodeList->pPrev = (unixInodeInfo *)psVar9;\n            }\nLAB_0005ed6d:\n            inodeList = (unixInodeInfo *)psVar5;\n            pFile[2].pMethods = psVar9;\n            sqlite3_mutex_leave(unixBigLock);\n            pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n            goto LAB_0005e8ef;\n          }\n          iVar8 = 7;\n        }\n        else {\n          piVar14 = __errno_location();\n          iVar8 = 10;\n          pFile[5].pMethods = (sqlite3_io_methods *)*piVar14;\n        }\nLAB_0005efaf:\n        iVar12 = (*aSyscall[1].pCurrent)(local_4c8);\n        if (iVar12 != 0) {\n          robust_close((unixFile *)pFile,0x98f4,lineno_00);\n        }\n        sqlite3_mutex_leave(unixBigLock);\n        pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n        goto LAB_0005ee17;\n      }\n      if (psVar9 != &dotlockIoMethods) goto LAB_0005e8e8;\n      sVar10 = strlen(zPath);\n      psVar11 = (sqlite3_io_methods *)sqlite3_malloc64((longlong)(int)(sVar10 + 6));\n      if (psVar11 == (sqlite3_io_methods *)0x0) {\n        pFile[6].pMethods = (sqlite3_io_methods *)0x0;\n        pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n        iVar8 = 7;\n        iVar12 = (*aSyscall[1].pCurrent)(local_4c8);\n        if (iVar12 != 0) {\n          robust_close((unixFile *)pFile,0x9949,lineno);\n        }\n        goto LAB_0005ee17;\n      }\n      sqlite3_snprintf(sVar10 + 6,(char *)psVar11,"%s.lock",zPath);\n      pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n      pFile[6].pMethods = psVar11;\n      psVar11 = psVar9;\n    }\n    else {\n      psVar9 = &nolockIoMethods;\nLAB_0005e8e8:\n      pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n      psVar11 = psVar9;\n    }\nLAB_0005e8ef:\n    pFile->pMethods = psVar11;\n    iVar8 = 0;\n    verifyDbFile((unixFile *)pFile);\n  }\nLAB_0005e8fb:\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar8;\n}" primitive_type (function_declarator "unixOpen(sqlite3_vfs *pVfs,char *zPath,sqlite3_file *pFile,int flags,int *pOutFlags)" identifier (parameter_list "(sqlite3_vfs *pVfs,char *zPath,sqlite3_file *pFile,int flags,int *pOutFlags)" ( (parameter_declaration "sqlite3_vfs *pVfs" type_identifier (pointer_declarator "*pVfs" * identifier)) , (parameter_declaration "char *zPath" primitive_type (pointer_declarator "*zPath" * identifier)) , (parameter_declaration "sqlite3_file *pFile" type_identifier (pointer_declarator "*pFile" * identifier)) , (parameter_declaration "int flags" primitive_type identifier) , (parameter_declaration "int *pOutFlags" primitive_type (pointer_declarator "*pOutFlags" * identifier)) ))) (compound_statement "{\n  ushort *puVar1;\n  int iVar2;\n  char cVar3;\n  unixInodeInfo *puVar4;\n  sqlite3_io_methods *psVar5;\n  uint uVar6;\n  __pid_t _Var7;\n  int iVar8;\n  sqlite3_io_methods *psVar9;\n  uint f;\n  size_t sVar10;\n  sqlite3_io_methods *psVar11;\n  int iVar12;\n  char *pcVar13;\n  int *piVar14;\n  sqlite3_mutex *psVar15;\n  uint uVar16;\n  int lineno;\n  int lineno_00;\n  UnixUnusedFd **ppUVar17;\n  byte *pbVar18;\n  uint uVar19;\n  byte *pbVar20;\n  undefined4 *puVar21;\n  __gid_t _Var22;\n  int in_GS_OFFSET;\n  bool bVar23;\n  bool bVar24;\n  byte bVar25;\n  uint local_4cc;\n  sqlite3_io_methods *local_4c8;\n  char *local_4b4;\n  __uid_t local_4ac;\n  mode_t local_4a8;\n  uint local_4a4;\n  unixFileId fileId;\n  stat sStat;\n  char zDb [513];\n  char zTmpname [514];\n  \n  bVar25 = 0;\n  local_4cc = flags & 8;\n  local_4a4 = flags & 1;\n  uVar19 = flags & 2;\n  bVar24 = false;\n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar6 = flags & 0xfff00;\n  if ((flags & 4U) != 0) {\n    bVar24 = (uVar6 == 0x4000 || uVar6 == 0x800) || uVar6 == 0x80000;\n  }\n  _Var7 = getpid();\n  if (_Var7 != randomnessPid) {\n    randomnessPid = getpid();\n    sqlite3_randomness(0,(void *)0x0);\n  }\n  pFile->pMethods = (sqlite3_io_methods *)0x0;\n  pFile[0x14].pMethods = (sqlite3_io_methods *)0x0;\n  puVar21 = (undefined4 *)((uint)(pFile + 1) & 0xfffffffc);\n  for (uVar16 = (uint)((int)pFile + (0x54 - (int)((uint)(pFile + 1) & 0xfffffffc))) >> 2;\n      uVar16 != 0; uVar16 = uVar16 - 1) {\n    *puVar21 = 0;\n    puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n  }\n  if (uVar6 == 0x100) {\n    sqlite3_mutex_enter(unixBigLock);\n    if ((inodeList != (unixInodeInfo *)0x0) &&\n       (iVar8 = (*aSyscall[4].pCurrent)(zPath,&sStat), puVar4 = inodeList, iVar8 == 0)) {\n      for (; puVar4 != (unixInodeInfo *)0x0; puVar4 = puVar4->pNext) {\n        if ((*(_func_int_sqlite3_file_ptr **)((int)&(puVar4->fileId).dev + 4) == sStat.st_dev._4_4_\n             && (int)(puVar4->fileId).dev == (int)sStat.st_dev) &&\n           (sStat.st_ino._4_4_ ==\n            *(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 **)\n             ((int)&(puVar4->fileId).ino + 4) &&\n            (_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino ==\n            *(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 **)&(puVar4->fileId).ino)) {\n          sqlite3_mutex_enter(puVar4->pLockMutex);\n          psVar9 = (sqlite3_io_methods *)puVar4->pUnused;\n          if (psVar9 == (sqlite3_io_methods *)0x0) goto LAB_0005ea3a;\n          if ((_func_int_sqlite3_file_ptr *)(flags & 3U) != psVar9->xClose) goto LAB_0005ea33;\n          ppUVar17 = &puVar4->pUnused;\n          goto LAB_0005ee53;\n        }\n      }\n    }\n    sqlite3_mutex_leave(unixBigLock);\n    goto LAB_0005ea54;\n  }\n  local_4c8 = (sqlite3_io_methods *)&DAT_ffffffff;\n  local_4b4 = zPath;\n  if (zPath == (char *)0x0) {\n    local_4b4 = zTmpname;\n    iVar8 = unixGetTempname(pVfs->mxPathname,local_4b4);\n    if (iVar8 != 0) goto LAB_0005e8fb;\n  }\n  goto LAB_0005e781;\nLAB_0005ea3a:\n  sqlite3_mutex_leave(puVar4->pLockMutex);\n  sqlite3_mutex_leave(unixBigLock);\nLAB_0005ea54:\n  psVar9 = (sqlite3_io_methods *)sqlite3_malloc64(0xc);\n  if (psVar9 == (sqlite3_io_methods *)0x0) {\n    iVar8 = 7;\n    goto LAB_0005e8fb;\n  }\n  local_4c8 = (sqlite3_io_methods *)&DAT_ffffffff;\n  goto LAB_0005ee78;\n  while ((_func_int_sqlite3_file_ptr *)(flags & 3U) != psVar9->xClose) {\nLAB_0005ea33:\n    psVar11 = psVar9;\n    psVar9 = (sqlite3_io_methods *)psVar11->xRead;\n    if (psVar9 == (sqlite3_io_methods *)0x0) goto LAB_0005ea3a;\n  }\n  ppUVar17 = (UnixUnusedFd **)&psVar11->xRead;\nLAB_0005ee53:\n  *ppUVar17 = (UnixUnusedFd *)psVar9->xRead;\n  sqlite3_mutex_leave(puVar4->pLockMutex);\n  sqlite3_mutex_leave(unixBigLock);\n  local_4c8 = (sqlite3_io_methods *)psVar9->iVersion;\nLAB_0005ee78:\n  pFile[7].pMethods = psVar9;\n  local_4b4 = zPath;\nLAB_0005e781:\n  uVar16 = uVar19;\n  if ((flags & 4U) != 0) {\n    uVar16 = uVar19 | 0x40;\n  }\n  if ((flags & 0x10U) != 0) {\n    uVar16 = uVar16 | 0x20080;\n  }\n  if (-1 < (int)local_4c8) goto LAB_0005e7af;\n  f = uVar16 | 0x28000;\n  if ((flags & 0x80800U) == 0) {\n    if (local_4cc == 0) {\n      if (((flags & 0x40U) != 0) &&\n         (pcVar13 = sqlite3_uri_parameter(local_4b4,"modeof"), pcVar13 != (char *)0x0))\n      goto LAB_0005eb2c;\nLAB_0005ebd9:\n      local_4c8 = (sqlite3_io_methods *)robust_open(local_4b4,f,0);\n      if ((int)local_4c8 < 0) {\n        local_4ac = 0;\n        local_4a8 = 0;\n        _Var22 = 0;\n        goto LAB_0005ec06;\n      }\n      goto LAB_0005e7af;\n    }\n    local_4c8 = (sqlite3_io_methods *)robust_open(local_4b4,f,0x180);\n    if (-1 < (int)local_4c8) goto LAB_0005e7af;\n    _Var22 = 0;\n    local_4ac = 0;\n    local_4a8 = 0x180;\nLAB_0005ec06:\n    piVar14 = __errno_location();\n    iVar8 = *piVar14;\n    if ((bVar24) && (iVar8 == 0xd)) {\n      iVar8 = (*aSyscall[2].pCurrent)(local_4b4,0);\n      if (iVar8 == 0) {\n        iVar8 = *piVar14;\n        goto LAB_0005ec40;\n      }\n      iVar8 = 0x608;\n      iVar12 = sqlite3CantopenError(0x9ae7);\n      unixLogErrorAtLine(iVar12,"open",local_4b4,0x9ae7);\n    }\n    else {\nLAB_0005ec40:\n      if ((uVar19 != 0) && (iVar8 != 0x15)) {\n        flags = flags & 0xfffffff9U | 1;\n        local_4c8 = (sqlite3_io_methods *)\n                    robust_open(local_4b4,uVar16 & 0xffffffbd | 0x28000,local_4a8);\n        if (-1 < (int)local_4c8) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }\n      iVar8 = sqlite3CantopenError(0x9ae7);\n      iVar8 = unixLogErrorAtLine(iVar8,"open",local_4b4,0x9ae7);\n      if (iVar8 == 0) goto LAB_0005e8fb;\n    }\nLAB_0005ee17:\n    sqlite3_free(pFile[7].pMethods);\n  }\n  else {\n    if (local_4b4 == (char *)0x0) {\n      iVar8 = -1;\n    }\n    else {\n      sVar10 = strlen(local_4b4);\n      iVar8 = (sVar10 & 0x3fffffff) - 1;\n    }\n    cVar3 = local_4b4[iVar8];\n    while (cVar3 != '-') {\n      if ((cVar3 == '.') || (iVar8 == 0)) goto LAB_0005ebd9;\n      iVar8 = iVar8 + -1;\n      cVar3 = local_4b4[iVar8];\n    }\n    pcVar13 = zDb;\n    __memcpy_chk(pcVar13,local_4b4,iVar8,0x201);\n    zDb[iVar8] = '\0';\nLAB_0005eb2c:\n    iVar12 = (*aSyscall[4].pCurrent)(pcVar13,&sStat);\n    iVar8 = 0x70a;\n    if (iVar12 != 0) goto LAB_0005e8fb;\n    local_4a8 = sStat.st_mode & 0x1ff;\n    local_4ac = sStat.st_uid;\n    local_4c8 = (sqlite3_io_methods *)robust_open(local_4b4,f,local_4a8);\n    _Var22 = sStat.st_gid;\n    if ((int)local_4c8 < 0) goto LAB_0005ec06;\nLAB_0005eb78:\n    if (((local_4a8 != 0) && ((flags & 0x80800U) != 0)) &&\n       (iVar8 = (*aSyscall[0x15].pCurrent)(), iVar8 == 0)) {\n      (*aSyscall[0x14].pCurrent)(local_4c8,local_4ac,_Var22);\n    }\nLAB_0005e7af:\n    if (pOutFlags != (int *)0x0) {\n      *pOutFlags = flags;\n    }\n    psVar9 = pFile[7].pMethods;\n    if (psVar9 != (sqlite3_io_methods *)0x0) {\n      psVar9->iVersion = (int)local_4c8;\n      psVar9->xClose = (_func_int_sqlite3_file_ptr *)(flags & 3);\n    }\n    if (local_4cc != 0) {\n      (*aSyscall[0x10].pCurrent)(local_4b4);\n      local_4cc = 0x20;\n    }\n    psVar9 = sqlite3Config.szMmap._4_4_;\n    uVar19 = local_4cc | 2;\n    if (local_4a4 == 0) {\n      uVar19 = local_4cc;\n    }\n    uVar16 = uVar19 | 0x80;\n    if (uVar6 == 0x100) {\n      uVar16 = uVar19;\n    }\n    local_4cc = uVar16 | 8;\n    if (!bVar24) {\n      local_4cc = uVar16;\n    }\n    if ((flags & 0x40U) == 0) {\n      *(short *)((int)&pFile[4].pMethods + 2) = (short)local_4cc;\n      pFile[3].pMethods = local_4c8;\n      pFile[8].pMethods = (sqlite3_io_methods *)zPath;\n      pFile[1].pMethods = (sqlite3_io_methods *)pVfs;\n      psVar11 = (sqlite3_io_methods *)sqlite3Config.szMmap;\n      pFile[0x11].pMethods = psVar9;\n      pFile[0x10].pMethods = psVar11;\n      pcVar13 = (char *)0x0;\n    }\n    else {\n      local_4cc = local_4cc | 0x40;\n      pFile[3].pMethods = local_4c8;\n      pFile[8].pMethods = (sqlite3_io_methods *)zPath;\n      *(short *)((int)&pFile[4].pMethods + 2) = (short)local_4cc;\n      pFile[1].pMethods = (sqlite3_io_methods *)pVfs;\n      psVar11 = (sqlite3_io_methods *)sqlite3Config.szMmap;\n      pFile[0x11].pMethods = psVar9;\n      pFile[0x10].pMethods = psVar11;\n      pcVar13 = zPath;\n    }\n    iVar8 = sqlite3_uri_boolean(pcVar13,"psow",1);\n    bVar24 = iVar8 == 0;\n    if (!bVar24) {\n      puVar1 = (ushort *)((int)&pFile[4].pMethods + 2);\n      *puVar1 = *puVar1 | 0x10;\n      bVar24 = *puVar1 == 0;\n    }\n    bVar23 = false;\n    iVar8 = 10;\n    pbVar18 = (byte *)pVfs->zName;\n    pbVar20 = (byte *)"unix-excl";\n    do {\n      if (iVar8 == 0) break;\n      iVar8 = iVar8 + -1;\n      bVar23 = *pbVar18 < *pbVar20;\n      bVar24 = *pbVar18 == *pbVar20;\n      pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1;\n      pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1;\n    } while (bVar24);\n    if ((!bVar23 && !bVar24) == bVar23) {\n      puVar1 = (ushort *)((int)&pFile[4].pMethods + 2);\n      *puVar1 = *puVar1 | 1;\n    }\n    if ((local_4cc & 0x80) == 0) {\n                    /* WARNING: Load size is inaccurate */\n      psVar9 = (sqlite3_io_methods *)(**pVfs->pAppData)(zPath,pFile);\n      psVar11 = &posixIoMethods;\n      if (psVar9 == &posixIoMethods) {\n        sqlite3_mutex_enter(unixBigLock);\n        iVar8 = (*aSyscall[5].pCurrent)(pFile[3].pMethods,&sStat);\n        psVar9 = (sqlite3_io_methods *)inodeList;\n        if (iVar8 == 0) {\n          for (; psVar9 != (sqlite3_io_methods *)0x0;\n              psVar9 = (sqlite3_io_methods *)psVar9->xSectorSize) {\n            if ((((int)sStat.st_dev == (int)((unixFileId *)&psVar9->iVersion)->dev) &&\n                (sStat.st_dev._4_4_ == psVar9->xClose)) &&\n               (((_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino ==\n                 psVar9->xRead && (sStat.st_ino._4_4_ == psVar9->xWrite)))) {\n              psVar9->xCheckReservedLock = psVar9->xCheckReservedLock + 1;\n              psVar5 = (sqlite3_io_methods *)inodeList;\n              goto LAB_0005ed6d;\n            }\n          }\n          psVar9 = (sqlite3_io_methods *)sqlite3_malloc64(0x34);\n          if (psVar9 != (sqlite3_io_methods *)0x0) {\n            psVar9->xTruncate = (_func_int_sqlite3_file_ptr_sqlite3_int64 *)0x0;\n            psVar9->xDeviceCharacteristics = (_func_int_sqlite3_file_ptr *)0x0;\n            puVar21 = (undefined4 *)((uint)&psVar9->xSync & 0xfffffffc);\n            uVar6 = (uint)((int)psVar9 + (0x34 - (int)puVar21)) >> 2;\n            for (; uVar6 != 0; uVar6 = uVar6 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *(int *)&((unixFileId *)&psVar9->iVersion)->dev = (int)sStat.st_dev;\n            psVar9->xClose = sStat.st_dev._4_4_;\n            bVar24 = sqlite3Config.bCoreMutex != '\0';\n            psVar9->xRead = (_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino;\n            psVar9->xWrite = sStat.st_ino._4_4_;\n            if (bVar24) {\n              psVar15 = sqlite3_mutex_alloc(0);\n              psVar9->xTruncate = (_func_int_sqlite3_file_ptr_sqlite3_int64 *)psVar15;\n              if (psVar15 == (sqlite3_mutex *)0x0) {\n                iVar8 = 7;\n                sqlite3_free(psVar9);\n                goto LAB_0005efaf;\n              }\n            }\n            psVar9->xCheckReservedLock = (_func_int_sqlite3_file_ptr_int_ptr *)0x1;\n            psVar9->xDeviceCharacteristics = (_func_int_sqlite3_file_ptr *)0x0;\n            psVar9->xSectorSize = (_func_int_sqlite3_file_ptr *)inodeList;\n            psVar5 = psVar9;\n            if (inodeList != (unixInodeInfo *)0x0) {\n              inodeList->pPrev = (unixInodeInfo *)psVar9;\n            }\nLAB_0005ed6d:\n            inodeList = (unixInodeInfo *)psVar5;\n            pFile[2].pMethods = psVar9;\n            sqlite3_mutex_leave(unixBigLock);\n            pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n            goto LAB_0005e8ef;\n          }\n          iVar8 = 7;\n        }\n        else {\n          piVar14 = __errno_location();\n          iVar8 = 10;\n          pFile[5].pMethods = (sqlite3_io_methods *)*piVar14;\n        }\nLAB_0005efaf:\n        iVar12 = (*aSyscall[1].pCurrent)(local_4c8);\n        if (iVar12 != 0) {\n          robust_close((unixFile *)pFile,0x98f4,lineno_00);\n        }\n        sqlite3_mutex_leave(unixBigLock);\n        pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n        goto LAB_0005ee17;\n      }\n      if (psVar9 != &dotlockIoMethods) goto LAB_0005e8e8;\n      sVar10 = strlen(zPath);\n      psVar11 = (sqlite3_io_methods *)sqlite3_malloc64((longlong)(int)(sVar10 + 6));\n      if (psVar11 == (sqlite3_io_methods *)0x0) {\n        pFile[6].pMethods = (sqlite3_io_methods *)0x0;\n        pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n        iVar8 = 7;\n        iVar12 = (*aSyscall[1].pCurrent)(local_4c8);\n        if (iVar12 != 0) {\n          robust_close((unixFile *)pFile,0x9949,lineno);\n        }\n        goto LAB_0005ee17;\n      }\n      sqlite3_snprintf(sVar10 + 6,(char *)psVar11,"%s.lock",zPath);\n      pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n      pFile[6].pMethods = psVar11;\n      psVar11 = psVar9;\n    }\n    else {\n      psVar9 = &nolockIoMethods;\nLAB_0005e8e8:\n      pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n      psVar11 = psVar9;\n    }\nLAB_0005e8ef:\n    pFile->pMethods = psVar11;\n    iVar8 = 0;\n    verifyDbFile((unixFile *)pFile);\n  }\nLAB_0005e8fb:\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar8;\n}" { (declaration "ushort *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "unixInodeInfo *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "sqlite3_io_methods *psVar5;" type_identifier (pointer_declarator "*psVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "__pid_t _Var7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "sqlite3_io_methods *psVar9;" type_identifier (pointer_declarator "*psVar9" * identifier) ;) (declaration "uint f;" type_identifier identifier ;) (declaration "size_t sVar10;" primitive_type identifier ;) (declaration "sqlite3_io_methods *psVar11;" type_identifier (pointer_declarator "*psVar11" * identifier) ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "char *pcVar13;" primitive_type (pointer_declarator "*pcVar13" * identifier) ;) (declaration "int *piVar14;" primitive_type (pointer_declarator "*piVar14" * identifier) ;) (declaration "sqlite3_mutex *psVar15;" type_identifier (pointer_declarator "*psVar15" * identifier) ;) (declaration "uint uVar16;" type_identifier identifier ;) (declaration "int lineno;" primitive_type identifier ;) (declaration "int lineno_00;" primitive_type identifier ;) (declaration "UnixUnusedFd **ppUVar17;" type_identifier (pointer_declarator "**ppUVar17" * (pointer_declarator "*ppUVar17" * identifier)) ;) (declaration "byte *pbVar18;" type_identifier (pointer_declarator "*pbVar18" * identifier) ;) (declaration "uint uVar19;" type_identifier identifier ;) (declaration "byte *pbVar20;" type_identifier (pointer_declarator "*pbVar20" * identifier) ;) (declaration "undefined4 *puVar21;" type_identifier (pointer_declarator "*puVar21" * identifier) ;) (declaration "__gid_t _Var22;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar23;" primitive_type identifier ;) (declaration "bool bVar24;" primitive_type identifier ;) (declaration "byte bVar25;" type_identifier identifier ;) (declaration "uint local_4cc;" type_identifier identifier ;) (declaration "sqlite3_io_methods *local_4c8;" type_identifier (pointer_declarator "*local_4c8" * identifier) ;) (declaration "char *local_4b4;" primitive_type (pointer_declarator "*local_4b4" * identifier) ;) (declaration "__uid_t local_4ac;" type_identifier identifier ;) (declaration "mode_t local_4a8;" type_identifier identifier ;) (declaration "uint local_4a4;" type_identifier identifier ;) (declaration "unixFileId fileId;" type_identifier identifier ;) (declaration "stat sStat;" type_identifier identifier ;) (declaration "char zDb [513];" primitive_type (array_declarator "zDb [513]" identifier [ number_literal ]) ;) (declaration "char zTmpname [514];" primitive_type (array_declarator "zTmpname [514]" identifier [ number_literal ]) ;) (expression_statement "bVar25 = 0;" (assignment_expression "bVar25 = 0" identifier = number_literal) ;) (expression_statement "local_4cc = flags & 8;" (assignment_expression "local_4cc = flags & 8" identifier = (binary_expression "flags & 8" identifier & number_literal)) ;) (expression_statement "local_4a4 = flags & 1;" (assignment_expression "local_4a4 = flags & 1" identifier = (binary_expression "flags & 1" identifier & number_literal)) ;) (expression_statement "uVar19 = flags & 2;" (assignment_expression "uVar19 = flags & 2" identifier = (binary_expression "flags & 2" identifier & number_literal)) ;) (expression_statement "bVar24 = false;" (assignment_expression "bVar24 = false" identifier = false) ;) (expression_statement "iVar2 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar2 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar6 = flags & 0xfff00;" (assignment_expression "uVar6 = flags & 0xfff00" identifier = (binary_expression "flags & 0xfff00" identifier & number_literal)) ;) (if_statement "if ((flags & 4U) != 0) {\n    bVar24 = (uVar6 == 0x4000 || uVar6 == 0x800) || uVar6 == 0x80000;\n  }" if (parenthesized_expression "((flags & 4U) != 0)" ( (binary_expression "(flags & 4U) != 0" (parenthesized_expression "(flags & 4U)" ( (binary_expression "flags & 4U" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    bVar24 = (uVar6 == 0x4000 || uVar6 == 0x800) || uVar6 == 0x80000;\n  }" { (expression_statement "bVar24 = (uVar6 == 0x4000 || uVar6 == 0x800) || uVar6 == 0x80000;" (assignment_expression "bVar24 = (uVar6 == 0x4000 || uVar6 == 0x800) || uVar6 == 0x80000" identifier = (binary_expression "(uVar6 == 0x4000 || uVar6 == 0x800) || uVar6 == 0x80000" (parenthesized_expression "(uVar6 == 0x4000 || uVar6 == 0x800)" ( (binary_expression "uVar6 == 0x4000 || uVar6 == 0x800" (binary_expression "uVar6 == 0x4000" identifier == number_literal) || (binary_expression "uVar6 == 0x800" identifier == number_literal)) )) || (binary_expression "uVar6 == 0x80000" identifier == number_literal))) ;) })) (expression_statement "_Var7 = getpid();" (assignment_expression "_Var7 = getpid()" identifier = (call_expression "getpid()" identifier (argument_list "()" ( )))) ;) (if_statement "if (_Var7 != randomnessPid) {\n    randomnessPid = getpid();\n    sqlite3_randomness(0,(void *)0x0);\n  }" if (parenthesized_expression "(_Var7 != randomnessPid)" ( (binary_expression "_Var7 != randomnessPid" identifier != identifier) )) (compound_statement "{\n    randomnessPid = getpid();\n    sqlite3_randomness(0,(void *)0x0);\n  }" { (expression_statement "randomnessPid = getpid();" (assignment_expression "randomnessPid = getpid()" identifier = (call_expression "getpid()" identifier (argument_list "()" ( )))) ;) (expression_statement "sqlite3_randomness(0,(void *)0x0);" (call_expression "sqlite3_randomness(0,(void *)0x0)" identifier (argument_list "(0,(void *)0x0)" ( number_literal , (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) })) (expression_statement "pFile->pMethods = (sqlite3_io_methods *)0x0;" (assignment_expression "pFile->pMethods = (sqlite3_io_methods *)0x0" (field_expression "pFile->pMethods" identifier -> field_identifier) = (cast_expression "(sqlite3_io_methods *)0x0" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pFile[0x14].pMethods = (sqlite3_io_methods *)0x0;" (assignment_expression "pFile[0x14].pMethods = (sqlite3_io_methods *)0x0" (field_expression "pFile[0x14].pMethods" (subscript_expression "pFile[0x14]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_io_methods *)0x0" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "puVar21 = (undefined4 *)((uint)(pFile + 1) & 0xfffffffc);" (assignment_expression "puVar21 = (undefined4 *)((uint)(pFile + 1) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)(pFile + 1) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(pFile + 1) & 0xfffffffc)" ( (binary_expression "(uint)(pFile + 1) & 0xfffffffc" (call_expression "(uint)(pFile + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pFile + 1)" ( (binary_expression "pFile + 1" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar16 = (uint)((int)pFile + (0x54 - (int)((uint)(pFile + 1) & 0xfffffffc))) >> 2;\n      uVar16 != 0; uVar16 = uVar16 - 1) {\n    *puVar21 = 0;\n    puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n  }" for ( (assignment_expression "uVar16 = (uint)((int)pFile + (0x54 - (int)((uint)(pFile + 1) & 0xfffffffc))) >> 2" identifier = (binary_expression "(uint)((int)pFile + (0x54 - (int)((uint)(pFile + 1) & 0xfffffffc))) >> 2" (call_expression "(uint)((int)pFile + (0x54 - (int)((uint)(pFile + 1) & 0xfffffffc)))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pFile + (0x54 - (int)((uint)(pFile + 1) & 0xfffffffc)))" ( (binary_expression "(int)pFile + (0x54 - (int)((uint)(pFile + 1) & 0xfffffffc))" (cast_expression "(int)pFile" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x54 - (int)((uint)(pFile + 1) & 0xfffffffc))" ( (binary_expression "0x54 - (int)((uint)(pFile + 1) & 0xfffffffc)" number_literal - (cast_expression "(int)((uint)(pFile + 1) & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(pFile + 1) & 0xfffffffc)" ( (binary_expression "(uint)(pFile + 1) & 0xfffffffc" (call_expression "(uint)(pFile + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pFile + 1)" ( (binary_expression "pFile + 1" identifier + number_literal) ))) & number_literal) )))) ))) ))) >> number_literal)) ; (binary_expression "uVar16 != 0" identifier != number_literal) ; (assignment_expression "uVar16 = uVar16 - 1" identifier = (binary_expression "uVar16 - 1" identifier - number_literal)) ) (compound_statement "{\n    *puVar21 = 0;\n    puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n  }" { (expression_statement "*puVar21 = 0;" (assignment_expression "*puVar21 = 0" (pointer_expression "*puVar21" * identifier) = number_literal) ;) (expression_statement "puVar21 = puVar21 + (uint)bVar25 * -2 + 1;" (assignment_expression "puVar21 = puVar21 + (uint)bVar25 * -2 + 1" identifier = (binary_expression "puVar21 + (uint)bVar25 * -2 + 1" (binary_expression "puVar21 + (uint)bVar25 * -2" identifier + (binary_expression "(uint)bVar25 * -2" (cast_expression "(uint)bVar25" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (if_statement "if (uVar6 == 0x100) {\n    sqlite3_mutex_enter(unixBigLock);\n    if ((inodeList != (unixInodeInfo *)0x0) &&\n       (iVar8 = (*aSyscall[4].pCurrent)(zPath,&sStat), puVar4 = inodeList, iVar8 == 0)) {\n      for (; puVar4 != (unixInodeInfo *)0x0; puVar4 = puVar4->pNext) {\n        if ((*(_func_int_sqlite3_file_ptr **)((int)&(puVar4->fileId).dev + 4) == sStat.st_dev._4_4_\n             && (int)(puVar4->fileId).dev == (int)sStat.st_dev) &&\n           (sStat.st_ino._4_4_ ==\n            *(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 **)\n             ((int)&(puVar4->fileId).ino + 4) &&\n            (_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino ==\n            *(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 **)&(puVar4->fileId).ino)) {\n          sqlite3_mutex_enter(puVar4->pLockMutex);\n          psVar9 = (sqlite3_io_methods *)puVar4->pUnused;\n          if (psVar9 == (sqlite3_io_methods *)0x0) goto LAB_0005ea3a;\n          if ((_func_int_sqlite3_file_ptr *)(flags & 3U) != psVar9->xClose) goto LAB_0005ea33;\n          ppUVar17 = &puVar4->pUnused;\n          goto LAB_0005ee53;\n        }\n      }\n    }\n    sqlite3_mutex_leave(unixBigLock);\n    goto LAB_0005ea54;\n  }" if (parenthesized_expression "(uVar6 == 0x100)" ( (binary_expression "uVar6 == 0x100" identifier == number_literal) )) (compound_statement "{\n    sqlite3_mutex_enter(unixBigLock);\n    if ((inodeList != (unixInodeInfo *)0x0) &&\n       (iVar8 = (*aSyscall[4].pCurrent)(zPath,&sStat), puVar4 = inodeList, iVar8 == 0)) {\n      for (; puVar4 != (unixInodeInfo *)0x0; puVar4 = puVar4->pNext) {\n        if ((*(_func_int_sqlite3_file_ptr **)((int)&(puVar4->fileId).dev + 4) == sStat.st_dev._4_4_\n             && (int)(puVar4->fileId).dev == (int)sStat.st_dev) &&\n           (sStat.st_ino._4_4_ ==\n            *(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 **)\n             ((int)&(puVar4->fileId).ino + 4) &&\n            (_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino ==\n            *(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 **)&(puVar4->fileId).ino)) {\n          sqlite3_mutex_enter(puVar4->pLockMutex);\n          psVar9 = (sqlite3_io_methods *)puVar4->pUnused;\n          if (psVar9 == (sqlite3_io_methods *)0x0) goto LAB_0005ea3a;\n          if ((_func_int_sqlite3_file_ptr *)(flags & 3U) != psVar9->xClose) goto LAB_0005ea33;\n          ppUVar17 = &puVar4->pUnused;\n          goto LAB_0005ee53;\n        }\n      }\n    }\n    sqlite3_mutex_leave(unixBigLock);\n    goto LAB_0005ea54;\n  }" { (expression_statement "sqlite3_mutex_enter(unixBigLock);" (call_expression "sqlite3_mutex_enter(unixBigLock)" identifier (argument_list "(unixBigLock)" ( identifier ))) ;) (if_statement "if ((inodeList != (unixInodeInfo *)0x0) &&\n       (iVar8 = (*aSyscall[4].pCurrent)(zPath,&sStat), puVar4 = inodeList, iVar8 == 0)) {\n      for (; puVar4 != (unixInodeInfo *)0x0; puVar4 = puVar4->pNext) {\n        if ((*(_func_int_sqlite3_file_ptr **)((int)&(puVar4->fileId).dev + 4) == sStat.st_dev._4_4_\n             && (int)(puVar4->fileId).dev == (int)sStat.st_dev) &&\n           (sStat.st_ino._4_4_ ==\n            *(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 **)\n             ((int)&(puVar4->fileId).ino + 4) &&\n            (_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino ==\n            *(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 **)&(puVar4->fileId).ino)) {\n          sqlite3_mutex_enter(puVar4->pLockMutex);\n          psVar9 = (sqlite3_io_methods *)puVar4->pUnused;\n          if (psVar9 == (sqlite3_io_methods *)0x0) goto LAB_0005ea3a;\n          if ((_func_int_sqlite3_file_ptr *)(flags & 3U) != psVar9->xClose) goto LAB_0005ea33;\n          ppUVar17 = &puVar4->pUnused;\n          goto LAB_0005ee53;\n        }\n      }\n    }" if (parenthesized_expression "((inodeList != (unixInodeInfo *)0x0) &&\n       (iVar8 = (*aSyscall[4].pCurrent)(zPath,&sStat), puVar4 = inodeList, iVar8 == 0))" ( (binary_expression "(inodeList != (unixInodeInfo *)0x0) &&\n       (iVar8 = (*aSyscall[4].pCurrent)(zPath,&sStat), puVar4 = inodeList, iVar8 == 0)" (parenthesized_expression "(inodeList != (unixInodeInfo *)0x0)" ( (binary_expression "inodeList != (unixInodeInfo *)0x0" identifier != (cast_expression "(unixInodeInfo *)0x0" ( (type_descriptor "unixInodeInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(iVar8 = (*aSyscall[4].pCurrent)(zPath,&sStat), puVar4 = inodeList, iVar8 == 0)" ( (comma_expression "iVar8 = (*aSyscall[4].pCurrent)(zPath,&sStat), puVar4 = inodeList, iVar8 == 0" (assignment_expression "iVar8 = (*aSyscall[4].pCurrent)(zPath,&sStat)" identifier = (call_expression "(*aSyscall[4].pCurrent)(zPath,&sStat)" (parenthesized_expression "(*aSyscall[4].pCurrent)" ( (pointer_expression "*aSyscall[4].pCurrent" * (field_expression "aSyscall[4].pCurrent" (subscript_expression "aSyscall[4]" identifier [ number_literal ]) . field_identifier)) )) (argument_list "(zPath,&sStat)" ( identifier , (pointer_expression "&sStat" & identifier) )))) , (comma_expression "puVar4 = inodeList, iVar8 == 0" (assignment_expression "puVar4 = inodeList" identifier = identifier) , (binary_expression "iVar8 == 0" identifier == number_literal))) ))) )) (compound_statement "{\n      for (; puVar4 != (unixInodeInfo *)0x0; puVar4 = puVar4->pNext) {\n        if ((*(_func_int_sqlite3_file_ptr **)((int)&(puVar4->fileId).dev + 4) == sStat.st_dev._4_4_\n             && (int)(puVar4->fileId).dev == (int)sStat.st_dev) &&\n           (sStat.st_ino._4_4_ ==\n            *(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 **)\n             ((int)&(puVar4->fileId).ino + 4) &&\n            (_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino ==\n            *(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 **)&(puVar4->fileId).ino)) {\n          sqlite3_mutex_enter(puVar4->pLockMutex);\n          psVar9 = (sqlite3_io_methods *)puVar4->pUnused;\n          if (psVar9 == (sqlite3_io_methods *)0x0) goto LAB_0005ea3a;\n          if ((_func_int_sqlite3_file_ptr *)(flags & 3U) != psVar9->xClose) goto LAB_0005ea33;\n          ppUVar17 = &puVar4->pUnused;\n          goto LAB_0005ee53;\n        }\n      }\n    }" { (for_statement "for (; puVar4 != (unixInodeInfo *)0x0; puVar4 = puVar4->pNext) {\n        if ((*(_func_int_sqlite3_file_ptr **)((int)&(puVar4->fileId).dev + 4) == sStat.st_dev._4_4_\n             && (int)(puVar4->fileId).dev == (int)sStat.st_dev) &&\n           (sStat.st_ino._4_4_ ==\n            *(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 **)\n             ((int)&(puVar4->fileId).ino + 4) &&\n            (_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino ==\n            *(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 **)&(puVar4->fileId).ino)) {\n          sqlite3_mutex_enter(puVar4->pLockMutex);\n          psVar9 = (sqlite3_io_methods *)puVar4->pUnused;\n          if (psVar9 == (sqlite3_io_methods *)0x0) goto LAB_0005ea3a;\n          if ((_func_int_sqlite3_file_ptr *)(flags & 3U) != psVar9->xClose) goto LAB_0005ea33;\n          ppUVar17 = &puVar4->pUnused;\n          goto LAB_0005ee53;\n        }\n      }" for ( ; (binary_expression "puVar4 != (unixInodeInfo *)0x0" identifier != (cast_expression "(unixInodeInfo *)0x0" ( (type_descriptor "unixInodeInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "puVar4 = puVar4->pNext" identifier = (field_expression "puVar4->pNext" identifier -> field_identifier)) ) (compound_statement "{\n        if ((*(_func_int_sqlite3_file_ptr **)((int)&(puVar4->fileId).dev + 4) == sStat.st_dev._4_4_\n             && (int)(puVar4->fileId).dev == (int)sStat.st_dev) &&\n           (sStat.st_ino._4_4_ ==\n            *(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 **)\n             ((int)&(puVar4->fileId).ino + 4) &&\n            (_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino ==\n            *(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 **)&(puVar4->fileId).ino)) {\n          sqlite3_mutex_enter(puVar4->pLockMutex);\n          psVar9 = (sqlite3_io_methods *)puVar4->pUnused;\n          if (psVar9 == (sqlite3_io_methods *)0x0) goto LAB_0005ea3a;\n          if ((_func_int_sqlite3_file_ptr *)(flags & 3U) != psVar9->xClose) goto LAB_0005ea33;\n          ppUVar17 = &puVar4->pUnused;\n          goto LAB_0005ee53;\n        }\n      }" { (if_statement "if ((*(_func_int_sqlite3_file_ptr **)((int)&(puVar4->fileId).dev + 4) == sStat.st_dev._4_4_\n             && (int)(puVar4->fileId).dev == (int)sStat.st_dev) &&\n           (sStat.st_ino._4_4_ ==\n            *(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 **)\n             ((int)&(puVar4->fileId).ino + 4) &&\n            (_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino ==\n            *(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 **)&(puVar4->fileId).ino)) {\n          sqlite3_mutex_enter(puVar4->pLockMutex);\n          psVar9 = (sqlite3_io_methods *)puVar4->pUnused;\n          if (psVar9 == (sqlite3_io_methods *)0x0) goto LAB_0005ea3a;\n          if ((_func_int_sqlite3_file_ptr *)(flags & 3U) != psVar9->xClose) goto LAB_0005ea33;\n          ppUVar17 = &puVar4->pUnused;\n          goto LAB_0005ee53;\n        }" if (parenthesized_expression "((*(_func_int_sqlite3_file_ptr **)((int)&(puVar4->fileId).dev + 4) == sStat.st_dev._4_4_\n             && (int)(puVar4->fileId).dev == (int)sStat.st_dev) &&\n           (sStat.st_ino._4_4_ ==\n            *(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 **)\n             ((int)&(puVar4->fileId).ino + 4) &&\n            (_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino ==\n            *(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 **)&(puVar4->fileId).ino))" ( (binary_expression "(*(_func_int_sqlite3_file_ptr **)((int)&(puVar4->fileId).dev + 4) == sStat.st_dev._4_4_\n             && (int)(puVar4->fileId).dev == (int)sStat.st_dev) &&\n           (sStat.st_ino._4_4_ ==\n            *(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 **)\n             ((int)&(puVar4->fileId).ino + 4) &&\n            (_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino ==\n            *(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 **)&(puVar4->fileId).ino)" (parenthesized_expression "(*(_func_int_sqlite3_file_ptr **)((int)&(puVar4->fileId).dev + 4) == sStat.st_dev._4_4_\n             && (int)(puVar4->fileId).dev == (int)sStat.st_dev)" ( (binary_expression "*(_func_int_sqlite3_file_ptr **)((int)&(puVar4->fileId).dev + 4) == sStat.st_dev._4_4_\n             && (int)(puVar4->fileId).dev == (int)sStat.st_dev" (binary_expression "*(_func_int_sqlite3_file_ptr **)((int)&(puVar4->fileId).dev + 4) == sStat.st_dev._4_4_" (pointer_expression "*(_func_int_sqlite3_file_ptr **)((int)&(puVar4->fileId).dev + 4)" * (cast_expression "(_func_int_sqlite3_file_ptr **)((int)&(puVar4->fileId).dev + 4)" ( (type_descriptor "_func_int_sqlite3_file_ptr **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)&(puVar4->fileId).dev + 4)" ( (binary_expression "(int)&(puVar4->fileId).dev + 4" (cast_expression "(int)&(puVar4->fileId).dev" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&(puVar4->fileId).dev" & (field_expression "(puVar4->fileId).dev" (parenthesized_expression "(puVar4->fileId)" ( (field_expression "puVar4->fileId" identifier -> field_identifier) )) . field_identifier))) + number_literal) )))) == (field_expression "sStat.st_dev._4_4_" (field_expression "sStat.st_dev" identifier . field_identifier) . field_identifier)) && (binary_expression "(int)(puVar4->fileId).dev == (int)sStat.st_dev" (cast_expression "(int)(puVar4->fileId).dev" ( (type_descriptor "int" primitive_type) ) (field_expression "(puVar4->fileId).dev" (parenthesized_expression "(puVar4->fileId)" ( (field_expression "puVar4->fileId" identifier -> field_identifier) )) . field_identifier)) == (cast_expression "(int)sStat.st_dev" ( (type_descriptor "int" primitive_type) ) (field_expression "sStat.st_dev" identifier . field_identifier)))) )) && (parenthesized_expression "(sStat.st_ino._4_4_ ==\n            *(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 **)\n             ((int)&(puVar4->fileId).ino + 4) &&\n            (_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino ==\n            *(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 **)&(puVar4->fileId).ino)" ( (binary_expression "sStat.st_ino._4_4_ ==\n            *(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 **)\n             ((int)&(puVar4->fileId).ino + 4) &&\n            (_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino ==\n            *(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 **)&(puVar4->fileId).ino" (binary_expression "sStat.st_ino._4_4_ ==\n            *(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 **)\n             ((int)&(puVar4->fileId).ino + 4)" (field_expression "sStat.st_ino._4_4_" (field_expression "sStat.st_ino" identifier . field_identifier) . field_identifier) == (pointer_expression "*(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 **)\n             ((int)&(puVar4->fileId).ino + 4)" * (cast_expression "(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 **)\n             ((int)&(puVar4->fileId).ino + 4)" ( (type_descriptor "_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)&(puVar4->fileId).ino + 4)" ( (binary_expression "(int)&(puVar4->fileId).ino + 4" (cast_expression "(int)&(puVar4->fileId).ino" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&(puVar4->fileId).ino" & (field_expression "(puVar4->fileId).ino" (parenthesized_expression "(puVar4->fileId)" ( (field_expression "puVar4->fileId" identifier -> field_identifier) )) . field_identifier))) + number_literal) ))))) && (binary_expression "(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino ==\n            *(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 **)&(puVar4->fileId).ino" (cast_expression "(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino" ( (type_descriptor "_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "sStat.st_ino" identifier . field_identifier)) == (pointer_expression "*(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 **)&(puVar4->fileId).ino" * (cast_expression "(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 **)&(puVar4->fileId).ino" ( (type_descriptor "_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&(puVar4->fileId).ino" & (field_expression "(puVar4->fileId).ino" (parenthesized_expression "(puVar4->fileId)" ( (field_expression "puVar4->fileId" identifier -> field_identifier) )) . field_identifier)))))) ))) )) (compound_statement "{\n          sqlite3_mutex_enter(puVar4->pLockMutex);\n          psVar9 = (sqlite3_io_methods *)puVar4->pUnused;\n          if (psVar9 == (sqlite3_io_methods *)0x0) goto LAB_0005ea3a;\n          if ((_func_int_sqlite3_file_ptr *)(flags & 3U) != psVar9->xClose) goto LAB_0005ea33;\n          ppUVar17 = &puVar4->pUnused;\n          goto LAB_0005ee53;\n        }" { (expression_statement "sqlite3_mutex_enter(puVar4->pLockMutex);" (call_expression "sqlite3_mutex_enter(puVar4->pLockMutex)" identifier (argument_list "(puVar4->pLockMutex)" ( (field_expression "puVar4->pLockMutex" identifier -> field_identifier) ))) ;) (expression_statement "psVar9 = (sqlite3_io_methods *)puVar4->pUnused;" (assignment_expression "psVar9 = (sqlite3_io_methods *)puVar4->pUnused" identifier = (cast_expression "(sqlite3_io_methods *)puVar4->pUnused" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "puVar4->pUnused" identifier -> field_identifier))) ;) (if_statement "if (psVar9 == (sqlite3_io_methods *)0x0) goto LAB_0005ea3a;" if (parenthesized_expression "(psVar9 == (sqlite3_io_methods *)0x0)" ( (binary_expression "psVar9 == (sqlite3_io_methods *)0x0" identifier == (cast_expression "(sqlite3_io_methods *)0x0" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0005ea3a;" goto statement_identifier ;)) (if_statement "if ((_func_int_sqlite3_file_ptr *)(flags & 3U) != psVar9->xClose) goto LAB_0005ea33;" if (parenthesized_expression "((_func_int_sqlite3_file_ptr *)(flags & 3U) != psVar9->xClose)" ( (binary_expression "(_func_int_sqlite3_file_ptr *)(flags & 3U) != psVar9->xClose" (cast_expression "(_func_int_sqlite3_file_ptr *)(flags & 3U)" ( (type_descriptor "_func_int_sqlite3_file_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(flags & 3U)" ( (binary_expression "flags & 3U" identifier & number_literal) ))) != (field_expression "psVar9->xClose" identifier -> field_identifier)) )) (goto_statement "goto LAB_0005ea33;" goto statement_identifier ;)) (expression_statement "ppUVar17 = &puVar4->pUnused;" (assignment_expression "ppUVar17 = &puVar4->pUnused" identifier = (pointer_expression "&puVar4->pUnused" & (field_expression "puVar4->pUnused" identifier -> field_identifier))) ;) (goto_statement "goto LAB_0005ee53;" goto statement_identifier ;) })) })) })) (expression_statement "sqlite3_mutex_leave(unixBigLock);" (call_expression "sqlite3_mutex_leave(unixBigLock)" identifier (argument_list "(unixBigLock)" ( identifier ))) ;) (goto_statement "goto LAB_0005ea54;" goto statement_identifier ;) })) (expression_statement "local_4c8 = (sqlite3_io_methods *)&DAT_ffffffff;" (assignment_expression "local_4c8 = (sqlite3_io_methods *)&DAT_ffffffff" identifier = (cast_expression "(sqlite3_io_methods *)&DAT_ffffffff" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_ffffffff" & identifier))) ;) (expression_statement "local_4b4 = zPath;" (assignment_expression "local_4b4 = zPath" identifier = identifier) ;) (if_statement "if (zPath == (char *)0x0) {\n    local_4b4 = zTmpname;\n    iVar8 = unixGetTempname(pVfs->mxPathname,local_4b4);\n    if (iVar8 != 0) goto LAB_0005e8fb;\n  }" if (parenthesized_expression "(zPath == (char *)0x0)" ( (binary_expression "zPath == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_4b4 = zTmpname;\n    iVar8 = unixGetTempname(pVfs->mxPathname,local_4b4);\n    if (iVar8 != 0) goto LAB_0005e8fb;\n  }" { (expression_statement "local_4b4 = zTmpname;" (assignment_expression "local_4b4 = zTmpname" identifier = identifier) ;) (expression_statement "iVar8 = unixGetTempname(pVfs->mxPathname,local_4b4);" (assignment_expression "iVar8 = unixGetTempname(pVfs->mxPathname,local_4b4)" identifier = (call_expression "unixGetTempname(pVfs->mxPathname,local_4b4)" identifier (argument_list "(pVfs->mxPathname,local_4b4)" ( (field_expression "pVfs->mxPathname" identifier -> field_identifier) , identifier )))) ;) (if_statement "if (iVar8 != 0) goto LAB_0005e8fb;" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0005e8fb;" goto statement_identifier ;)) })) (goto_statement "goto LAB_0005e781;" goto statement_identifier ;) (labeled_statement "LAB_0005ea3a:\n  sqlite3_mutex_leave(puVar4->pLockMutex);" statement_identifier : (expression_statement "sqlite3_mutex_leave(puVar4->pLockMutex);" (call_expression "sqlite3_mutex_leave(puVar4->pLockMutex)" identifier (argument_list "(puVar4->pLockMutex)" ( (field_expression "puVar4->pLockMutex" identifier -> field_identifier) ))) ;)) (expression_statement "sqlite3_mutex_leave(unixBigLock);" (call_expression "sqlite3_mutex_leave(unixBigLock)" identifier (argument_list "(unixBigLock)" ( identifier ))) ;) (labeled_statement "LAB_0005ea54:\n  psVar9 = (sqlite3_io_methods *)sqlite3_malloc64(0xc);" statement_identifier : (expression_statement "psVar9 = (sqlite3_io_methods *)sqlite3_malloc64(0xc);" (assignment_expression "psVar9 = (sqlite3_io_methods *)sqlite3_malloc64(0xc)" identifier = (cast_expression "(sqlite3_io_methods *)sqlite3_malloc64(0xc)" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_malloc64(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;)) (if_statement "if (psVar9 == (sqlite3_io_methods *)0x0) {\n    iVar8 = 7;\n    goto LAB_0005e8fb;\n  }" if (parenthesized_expression "(psVar9 == (sqlite3_io_methods *)0x0)" ( (binary_expression "psVar9 == (sqlite3_io_methods *)0x0" identifier == (cast_expression "(sqlite3_io_methods *)0x0" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar8 = 7;\n    goto LAB_0005e8fb;\n  }" { (expression_statement "iVar8 = 7;" (assignment_expression "iVar8 = 7" identifier = number_literal) ;) (goto_statement "goto LAB_0005e8fb;" goto statement_identifier ;) })) (expression_statement "local_4c8 = (sqlite3_io_methods *)&DAT_ffffffff;" (assignment_expression "local_4c8 = (sqlite3_io_methods *)&DAT_ffffffff" identifier = (cast_expression "(sqlite3_io_methods *)&DAT_ffffffff" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_ffffffff" & identifier))) ;) (goto_statement "goto LAB_0005ee78;" goto statement_identifier ;) (while_statement "while ((_func_int_sqlite3_file_ptr *)(flags & 3U) != psVar9->xClose) {\nLAB_0005ea33:\n    psVar11 = psVar9;\n    psVar9 = (sqlite3_io_methods *)psVar11->xRead;\n    if (psVar9 == (sqlite3_io_methods *)0x0) goto LAB_0005ea3a;\n  }" while (parenthesized_expression "((_func_int_sqlite3_file_ptr *)(flags & 3U) != psVar9->xClose)" ( (binary_expression "(_func_int_sqlite3_file_ptr *)(flags & 3U) != psVar9->xClose" (cast_expression "(_func_int_sqlite3_file_ptr *)(flags & 3U)" ( (type_descriptor "_func_int_sqlite3_file_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(flags & 3U)" ( (binary_expression "flags & 3U" identifier & number_literal) ))) != (field_expression "psVar9->xClose" identifier -> field_identifier)) )) (compound_statement "{\nLAB_0005ea33:\n    psVar11 = psVar9;\n    psVar9 = (sqlite3_io_methods *)psVar11->xRead;\n    if (psVar9 == (sqlite3_io_methods *)0x0) goto LAB_0005ea3a;\n  }" { (labeled_statement "LAB_0005ea33:\n    psVar11 = psVar9;" statement_identifier : (expression_statement "psVar11 = psVar9;" (assignment_expression "psVar11 = psVar9" identifier = identifier) ;)) (expression_statement "psVar9 = (sqlite3_io_methods *)psVar11->xRead;" (assignment_expression "psVar9 = (sqlite3_io_methods *)psVar11->xRead" identifier = (cast_expression "(sqlite3_io_methods *)psVar11->xRead" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "psVar11->xRead" identifier -> field_identifier))) ;) (if_statement "if (psVar9 == (sqlite3_io_methods *)0x0) goto LAB_0005ea3a;" if (parenthesized_expression "(psVar9 == (sqlite3_io_methods *)0x0)" ( (binary_expression "psVar9 == (sqlite3_io_methods *)0x0" identifier == (cast_expression "(sqlite3_io_methods *)0x0" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0005ea3a;" goto statement_identifier ;)) })) (expression_statement "ppUVar17 = (UnixUnusedFd **)&psVar11->xRead;" (assignment_expression "ppUVar17 = (UnixUnusedFd **)&psVar11->xRead" identifier = (cast_expression "(UnixUnusedFd **)&psVar11->xRead" ( (type_descriptor "UnixUnusedFd **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&psVar11->xRead" & (field_expression "psVar11->xRead" identifier -> field_identifier)))) ;) (labeled_statement "LAB_0005ee53:\n  *ppUVar17 = (UnixUnusedFd *)psVar9->xRead;" statement_identifier : (expression_statement "*ppUVar17 = (UnixUnusedFd *)psVar9->xRead;" (assignment_expression "*ppUVar17 = (UnixUnusedFd *)psVar9->xRead" (pointer_expression "*ppUVar17" * identifier) = (cast_expression "(UnixUnusedFd *)psVar9->xRead" ( (type_descriptor "UnixUnusedFd *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "psVar9->xRead" identifier -> field_identifier))) ;)) (expression_statement "sqlite3_mutex_leave(puVar4->pLockMutex);" (call_expression "sqlite3_mutex_leave(puVar4->pLockMutex)" identifier (argument_list "(puVar4->pLockMutex)" ( (field_expression "puVar4->pLockMutex" identifier -> field_identifier) ))) ;) (expression_statement "sqlite3_mutex_leave(unixBigLock);" (call_expression "sqlite3_mutex_leave(unixBigLock)" identifier (argument_list "(unixBigLock)" ( identifier ))) ;) (expression_statement "local_4c8 = (sqlite3_io_methods *)psVar9->iVersion;" (assignment_expression "local_4c8 = (sqlite3_io_methods *)psVar9->iVersion" identifier = (cast_expression "(sqlite3_io_methods *)psVar9->iVersion" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "psVar9->iVersion" identifier -> field_identifier))) ;) (labeled_statement "LAB_0005ee78:\n  pFile[7].pMethods = psVar9;" statement_identifier : (expression_statement "pFile[7].pMethods = psVar9;" (assignment_expression "pFile[7].pMethods = psVar9" (field_expression "pFile[7].pMethods" (subscript_expression "pFile[7]" identifier [ number_literal ]) . field_identifier) = identifier) ;)) (expression_statement "local_4b4 = zPath;" (assignment_expression "local_4b4 = zPath" identifier = identifier) ;) (labeled_statement "LAB_0005e781:\n  uVar16 = uVar19;" statement_identifier : (expression_statement "uVar16 = uVar19;" (assignment_expression "uVar16 = uVar19" identifier = identifier) ;)) (if_statement "if ((flags & 4U) != 0) {\n    uVar16 = uVar19 | 0x40;\n  }" if (parenthesized_expression "((flags & 4U) != 0)" ( (binary_expression "(flags & 4U) != 0" (parenthesized_expression "(flags & 4U)" ( (binary_expression "flags & 4U" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar16 = uVar19 | 0x40;\n  }" { (expression_statement "uVar16 = uVar19 | 0x40;" (assignment_expression "uVar16 = uVar19 | 0x40" identifier = (binary_expression "uVar19 | 0x40" identifier | number_literal)) ;) })) (if_statement "if ((flags & 0x10U) != 0) {\n    uVar16 = uVar16 | 0x20080;\n  }" if (parenthesized_expression "((flags & 0x10U) != 0)" ( (binary_expression "(flags & 0x10U) != 0" (parenthesized_expression "(flags & 0x10U)" ( (binary_expression "flags & 0x10U" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar16 = uVar16 | 0x20080;\n  }" { (expression_statement "uVar16 = uVar16 | 0x20080;" (assignment_expression "uVar16 = uVar16 | 0x20080" identifier = (binary_expression "uVar16 | 0x20080" identifier | number_literal)) ;) })) (if_statement "if (-1 < (int)local_4c8) goto LAB_0005e7af;" if (parenthesized_expression "(-1 < (int)local_4c8)" ( (binary_expression "-1 < (int)local_4c8" number_literal < (cast_expression "(int)local_4c8" ( (type_descriptor "int" primitive_type) ) identifier)) )) (goto_statement "goto LAB_0005e7af;" goto statement_identifier ;)) (expression_statement "f = uVar16 | 0x28000;" (assignment_expression "f = uVar16 | 0x28000" identifier = (binary_expression "uVar16 | 0x28000" identifier | number_literal)) ;) (if_statement "if ((flags & 0x80800U) == 0) {\n    if (local_4cc == 0) {\n      if (((flags & 0x40U) != 0) &&\n         (pcVar13 = sqlite3_uri_parameter(local_4b4,"modeof"), pcVar13 != (char *)0x0))\n      goto LAB_0005eb2c;\nLAB_0005ebd9:\n      local_4c8 = (sqlite3_io_methods *)robust_open(local_4b4,f,0);\n      if ((int)local_4c8 < 0) {\n        local_4ac = 0;\n        local_4a8 = 0;\n        _Var22 = 0;\n        goto LAB_0005ec06;\n      }\n      goto LAB_0005e7af;\n    }\n    local_4c8 = (sqlite3_io_methods *)robust_open(local_4b4,f,0x180);\n    if (-1 < (int)local_4c8) goto LAB_0005e7af;\n    _Var22 = 0;\n    local_4ac = 0;\n    local_4a8 = 0x180;\nLAB_0005ec06:\n    piVar14 = __errno_location();\n    iVar8 = *piVar14;\n    if ((bVar24) && (iVar8 == 0xd)) {\n      iVar8 = (*aSyscall[2].pCurrent)(local_4b4,0);\n      if (iVar8 == 0) {\n        iVar8 = *piVar14;\n        goto LAB_0005ec40;\n      }\n      iVar8 = 0x608;\n      iVar12 = sqlite3CantopenError(0x9ae7);\n      unixLogErrorAtLine(iVar12,"open",local_4b4,0x9ae7);\n    }\n    else {\nLAB_0005ec40:\n      if ((uVar19 != 0) && (iVar8 != 0x15)) {\n        flags = flags & 0xfffffff9U | 1;\n        local_4c8 = (sqlite3_io_methods *)\n                    robust_open(local_4b4,uVar16 & 0xffffffbd | 0x28000,local_4a8);\n        if (-1 < (int)local_4c8) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }\n      iVar8 = sqlite3CantopenError(0x9ae7);\n      iVar8 = unixLogErrorAtLine(iVar8,"open",local_4b4,0x9ae7);\n      if (iVar8 == 0) goto LAB_0005e8fb;\n    }\nLAB_0005ee17:\n    sqlite3_free(pFile[7].pMethods);\n  }\n  else {\n    if (local_4b4 == (char *)0x0) {\n      iVar8 = -1;\n    }\n    else {\n      sVar10 = strlen(local_4b4);\n      iVar8 = (sVar10 & 0x3fffffff) - 1;\n    }\n    cVar3 = local_4b4[iVar8];\n    while (cVar3 != '-') {\n      if ((cVar3 == '.') || (iVar8 == 0)) goto LAB_0005ebd9;\n      iVar8 = iVar8 + -1;\n      cVar3 = local_4b4[iVar8];\n    }\n    pcVar13 = zDb;\n    __memcpy_chk(pcVar13,local_4b4,iVar8,0x201);\n    zDb[iVar8] = '\0';\nLAB_0005eb2c:\n    iVar12 = (*aSyscall[4].pCurrent)(pcVar13,&sStat);\n    iVar8 = 0x70a;\n    if (iVar12 != 0) goto LAB_0005e8fb;\n    local_4a8 = sStat.st_mode & 0x1ff;\n    local_4ac = sStat.st_uid;\n    local_4c8 = (sqlite3_io_methods *)robust_open(local_4b4,f,local_4a8);\n    _Var22 = sStat.st_gid;\n    if ((int)local_4c8 < 0) goto LAB_0005ec06;\nLAB_0005eb78:\n    if (((local_4a8 != 0) && ((flags & 0x80800U) != 0)) &&\n       (iVar8 = (*aSyscall[0x15].pCurrent)(), iVar8 == 0)) {\n      (*aSyscall[0x14].pCurrent)(local_4c8,local_4ac,_Var22);\n    }\nLAB_0005e7af:\n    if (pOutFlags != (int *)0x0) {\n      *pOutFlags = flags;\n    }\n    psVar9 = pFile[7].pMethods;\n    if (psVar9 != (sqlite3_io_methods *)0x0) {\n      psVar9->iVersion = (int)local_4c8;\n      psVar9->xClose = (_func_int_sqlite3_file_ptr *)(flags & 3);\n    }\n    if (local_4cc != 0) {\n      (*aSyscall[0x10].pCurrent)(local_4b4);\n      local_4cc = 0x20;\n    }\n    psVar9 = sqlite3Config.szMmap._4_4_;\n    uVar19 = local_4cc | 2;\n    if (local_4a4 == 0) {\n      uVar19 = local_4cc;\n    }\n    uVar16 = uVar19 | 0x80;\n    if (uVar6 == 0x100) {\n      uVar16 = uVar19;\n    }\n    local_4cc = uVar16 | 8;\n    if (!bVar24) {\n      local_4cc = uVar16;\n    }\n    if ((flags & 0x40U) == 0) {\n      *(short *)((int)&pFile[4].pMethods + 2) = (short)local_4cc;\n      pFile[3].pMethods = local_4c8;\n      pFile[8].pMethods = (sqlite3_io_methods *)zPath;\n      pFile[1].pMethods = (sqlite3_io_methods *)pVfs;\n      psVar11 = (sqlite3_io_methods *)sqlite3Config.szMmap;\n      pFile[0x11].pMethods = psVar9;\n      pFile[0x10].pMethods = psVar11;\n      pcVar13 = (char *)0x0;\n    }\n    else {\n      local_4cc = local_4cc | 0x40;\n      pFile[3].pMethods = local_4c8;\n      pFile[8].pMethods = (sqlite3_io_methods *)zPath;\n      *(short *)((int)&pFile[4].pMethods + 2) = (short)local_4cc;\n      pFile[1].pMethods = (sqlite3_io_methods *)pVfs;\n      psVar11 = (sqlite3_io_methods *)sqlite3Config.szMmap;\n      pFile[0x11].pMethods = psVar9;\n      pFile[0x10].pMethods = psVar11;\n      pcVar13 = zPath;\n    }\n    iVar8 = sqlite3_uri_boolean(pcVar13,"psow",1);\n    bVar24 = iVar8 == 0;\n    if (!bVar24) {\n      puVar1 = (ushort *)((int)&pFile[4].pMethods + 2);\n      *puVar1 = *puVar1 | 0x10;\n      bVar24 = *puVar1 == 0;\n    }\n    bVar23 = false;\n    iVar8 = 10;\n    pbVar18 = (byte *)pVfs->zName;\n    pbVar20 = (byte *)"unix-excl";\n    do {\n      if (iVar8 == 0) break;\n      iVar8 = iVar8 + -1;\n      bVar23 = *pbVar18 < *pbVar20;\n      bVar24 = *pbVar18 == *pbVar20;\n      pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1;\n      pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1;\n    } while (bVar24);\n    if ((!bVar23 && !bVar24) == bVar23) {\n      puVar1 = (ushort *)((int)&pFile[4].pMethods + 2);\n      *puVar1 = *puVar1 | 1;\n    }\n    if ((local_4cc & 0x80) == 0) {\n                    /* WARNING: Load size is inaccurate */\n      psVar9 = (sqlite3_io_methods *)(**pVfs->pAppData)(zPath,pFile);\n      psVar11 = &posixIoMethods;\n      if (psVar9 == &posixIoMethods) {\n        sqlite3_mutex_enter(unixBigLock);\n        iVar8 = (*aSyscall[5].pCurrent)(pFile[3].pMethods,&sStat);\n        psVar9 = (sqlite3_io_methods *)inodeList;\n        if (iVar8 == 0) {\n          for (; psVar9 != (sqlite3_io_methods *)0x0;\n              psVar9 = (sqlite3_io_methods *)psVar9->xSectorSize) {\n            if ((((int)sStat.st_dev == (int)((unixFileId *)&psVar9->iVersion)->dev) &&\n                (sStat.st_dev._4_4_ == psVar9->xClose)) &&\n               (((_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino ==\n                 psVar9->xRead && (sStat.st_ino._4_4_ == psVar9->xWrite)))) {\n              psVar9->xCheckReservedLock = psVar9->xCheckReservedLock + 1;\n              psVar5 = (sqlite3_io_methods *)inodeList;\n              goto LAB_0005ed6d;\n            }\n          }\n          psVar9 = (sqlite3_io_methods *)sqlite3_malloc64(0x34);\n          if (psVar9 != (sqlite3_io_methods *)0x0) {\n            psVar9->xTruncate = (_func_int_sqlite3_file_ptr_sqlite3_int64 *)0x0;\n            psVar9->xDeviceCharacteristics = (_func_int_sqlite3_file_ptr *)0x0;\n            puVar21 = (undefined4 *)((uint)&psVar9->xSync & 0xfffffffc);\n            uVar6 = (uint)((int)psVar9 + (0x34 - (int)puVar21)) >> 2;\n            for (; uVar6 != 0; uVar6 = uVar6 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *(int *)&((unixFileId *)&psVar9->iVersion)->dev = (int)sStat.st_dev;\n            psVar9->xClose = sStat.st_dev._4_4_;\n            bVar24 = sqlite3Config.bCoreMutex != '\0';\n            psVar9->xRead = (_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino;\n            psVar9->xWrite = sStat.st_ino._4_4_;\n            if (bVar24) {\n              psVar15 = sqlite3_mutex_alloc(0);\n              psVar9->xTruncate = (_func_int_sqlite3_file_ptr_sqlite3_int64 *)psVar15;\n              if (psVar15 == (sqlite3_mutex *)0x0) {\n                iVar8 = 7;\n                sqlite3_free(psVar9);\n                goto LAB_0005efaf;\n              }\n            }\n            psVar9->xCheckReservedLock = (_func_int_sqlite3_file_ptr_int_ptr *)0x1;\n            psVar9->xDeviceCharacteristics = (_func_int_sqlite3_file_ptr *)0x0;\n            psVar9->xSectorSize = (_func_int_sqlite3_file_ptr *)inodeList;\n            psVar5 = psVar9;\n            if (inodeList != (unixInodeInfo *)0x0) {\n              inodeList->pPrev = (unixInodeInfo *)psVar9;\n            }\nLAB_0005ed6d:\n            inodeList = (unixInodeInfo *)psVar5;\n            pFile[2].pMethods = psVar9;\n            sqlite3_mutex_leave(unixBigLock);\n            pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n            goto LAB_0005e8ef;\n          }\n          iVar8 = 7;\n        }\n        else {\n          piVar14 = __errno_location();\n          iVar8 = 10;\n          pFile[5].pMethods = (sqlite3_io_methods *)*piVar14;\n        }\nLAB_0005efaf:\n        iVar12 = (*aSyscall[1].pCurrent)(local_4c8);\n        if (iVar12 != 0) {\n          robust_close((unixFile *)pFile,0x98f4,lineno_00);\n        }\n        sqlite3_mutex_leave(unixBigLock);\n        pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n        goto LAB_0005ee17;\n      }\n      if (psVar9 != &dotlockIoMethods) goto LAB_0005e8e8;\n      sVar10 = strlen(zPath);\n      psVar11 = (sqlite3_io_methods *)sqlite3_malloc64((longlong)(int)(sVar10 + 6));\n      if (psVar11 == (sqlite3_io_methods *)0x0) {\n        pFile[6].pMethods = (sqlite3_io_methods *)0x0;\n        pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n        iVar8 = 7;\n        iVar12 = (*aSyscall[1].pCurrent)(local_4c8);\n        if (iVar12 != 0) {\n          robust_close((unixFile *)pFile,0x9949,lineno);\n        }\n        goto LAB_0005ee17;\n      }\n      sqlite3_snprintf(sVar10 + 6,(char *)psVar11,"%s.lock",zPath);\n      pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n      pFile[6].pMethods = psVar11;\n      psVar11 = psVar9;\n    }\n    else {\n      psVar9 = &nolockIoMethods;\nLAB_0005e8e8:\n      pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n      psVar11 = psVar9;\n    }\nLAB_0005e8ef:\n    pFile->pMethods = psVar11;\n    iVar8 = 0;\n    verifyDbFile((unixFile *)pFile);\n  }" if (parenthesized_expression "((flags & 0x80800U) == 0)" ( (binary_expression "(flags & 0x80800U) == 0" (parenthesized_expression "(flags & 0x80800U)" ( (binary_expression "flags & 0x80800U" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if (local_4cc == 0) {\n      if (((flags & 0x40U) != 0) &&\n         (pcVar13 = sqlite3_uri_parameter(local_4b4,"modeof"), pcVar13 != (char *)0x0))\n      goto LAB_0005eb2c;\nLAB_0005ebd9:\n      local_4c8 = (sqlite3_io_methods *)robust_open(local_4b4,f,0);\n      if ((int)local_4c8 < 0) {\n        local_4ac = 0;\n        local_4a8 = 0;\n        _Var22 = 0;\n        goto LAB_0005ec06;\n      }\n      goto LAB_0005e7af;\n    }\n    local_4c8 = (sqlite3_io_methods *)robust_open(local_4b4,f,0x180);\n    if (-1 < (int)local_4c8) goto LAB_0005e7af;\n    _Var22 = 0;\n    local_4ac = 0;\n    local_4a8 = 0x180;\nLAB_0005ec06:\n    piVar14 = __errno_location();\n    iVar8 = *piVar14;\n    if ((bVar24) && (iVar8 == 0xd)) {\n      iVar8 = (*aSyscall[2].pCurrent)(local_4b4,0);\n      if (iVar8 == 0) {\n        iVar8 = *piVar14;\n        goto LAB_0005ec40;\n      }\n      iVar8 = 0x608;\n      iVar12 = sqlite3CantopenError(0x9ae7);\n      unixLogErrorAtLine(iVar12,"open",local_4b4,0x9ae7);\n    }\n    else {\nLAB_0005ec40:\n      if ((uVar19 != 0) && (iVar8 != 0x15)) {\n        flags = flags & 0xfffffff9U | 1;\n        local_4c8 = (sqlite3_io_methods *)\n                    robust_open(local_4b4,uVar16 & 0xffffffbd | 0x28000,local_4a8);\n        if (-1 < (int)local_4c8) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }\n      iVar8 = sqlite3CantopenError(0x9ae7);\n      iVar8 = unixLogErrorAtLine(iVar8,"open",local_4b4,0x9ae7);\n      if (iVar8 == 0) goto LAB_0005e8fb;\n    }\nLAB_0005ee17:\n    sqlite3_free(pFile[7].pMethods);\n  }" { (if_statement "if (local_4cc == 0) {\n      if (((flags & 0x40U) != 0) &&\n         (pcVar13 = sqlite3_uri_parameter(local_4b4,"modeof"), pcVar13 != (char *)0x0))\n      goto LAB_0005eb2c;\nLAB_0005ebd9:\n      local_4c8 = (sqlite3_io_methods *)robust_open(local_4b4,f,0);\n      if ((int)local_4c8 < 0) {\n        local_4ac = 0;\n        local_4a8 = 0;\n        _Var22 = 0;\n        goto LAB_0005ec06;\n      }\n      goto LAB_0005e7af;\n    }" if (parenthesized_expression "(local_4cc == 0)" ( (binary_expression "local_4cc == 0" identifier == number_literal) )) (compound_statement "{\n      if (((flags & 0x40U) != 0) &&\n         (pcVar13 = sqlite3_uri_parameter(local_4b4,"modeof"), pcVar13 != (char *)0x0))\n      goto LAB_0005eb2c;\nLAB_0005ebd9:\n      local_4c8 = (sqlite3_io_methods *)robust_open(local_4b4,f,0);\n      if ((int)local_4c8 < 0) {\n        local_4ac = 0;\n        local_4a8 = 0;\n        _Var22 = 0;\n        goto LAB_0005ec06;\n      }\n      goto LAB_0005e7af;\n    }" { (if_statement "if (((flags & 0x40U) != 0) &&\n         (pcVar13 = sqlite3_uri_parameter(local_4b4,"modeof"), pcVar13 != (char *)0x0))\n      goto LAB_0005eb2c;" if (parenthesized_expression "(((flags & 0x40U) != 0) &&\n         (pcVar13 = sqlite3_uri_parameter(local_4b4,"modeof"), pcVar13 != (char *)0x0))" ( (binary_expression "((flags & 0x40U) != 0) &&\n         (pcVar13 = sqlite3_uri_parameter(local_4b4,"modeof"), pcVar13 != (char *)0x0)" (parenthesized_expression "((flags & 0x40U) != 0)" ( (binary_expression "(flags & 0x40U) != 0" (parenthesized_expression "(flags & 0x40U)" ( (binary_expression "flags & 0x40U" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(pcVar13 = sqlite3_uri_parameter(local_4b4,"modeof"), pcVar13 != (char *)0x0)" ( (comma_expression "pcVar13 = sqlite3_uri_parameter(local_4b4,"modeof"), pcVar13 != (char *)0x0" (assignment_expression "pcVar13 = sqlite3_uri_parameter(local_4b4,"modeof")" identifier = (call_expression "sqlite3_uri_parameter(local_4b4,"modeof")" identifier (argument_list "(local_4b4,"modeof")" ( identifier , (string_literal ""modeof"" " string_content ") )))) , (binary_expression "pcVar13 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (goto_statement "goto LAB_0005eb2c;" goto statement_identifier ;)) (labeled_statement "LAB_0005ebd9:\n      local_4c8 = (sqlite3_io_methods *)robust_open(local_4b4,f,0);" statement_identifier : (expression_statement "local_4c8 = (sqlite3_io_methods *)robust_open(local_4b4,f,0);" (assignment_expression "local_4c8 = (sqlite3_io_methods *)robust_open(local_4b4,f,0)" identifier = (cast_expression "(sqlite3_io_methods *)robust_open(local_4b4,f,0)" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "robust_open(local_4b4,f,0)" identifier (argument_list "(local_4b4,f,0)" ( identifier , identifier , number_literal ))))) ;)) (if_statement "if ((int)local_4c8 < 0) {\n        local_4ac = 0;\n        local_4a8 = 0;\n        _Var22 = 0;\n        goto LAB_0005ec06;\n      }" if (parenthesized_expression "((int)local_4c8 < 0)" ( (binary_expression "(int)local_4c8 < 0" (cast_expression "(int)local_4c8" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n        local_4ac = 0;\n        local_4a8 = 0;\n        _Var22 = 0;\n        goto LAB_0005ec06;\n      }" { (expression_statement "local_4ac = 0;" (assignment_expression "local_4ac = 0" identifier = number_literal) ;) (expression_statement "local_4a8 = 0;" (assignment_expression "local_4a8 = 0" identifier = number_literal) ;) (expression_statement "_Var22 = 0;" (assignment_expression "_Var22 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_0005ec06;" goto statement_identifier ;) })) (goto_statement "goto LAB_0005e7af;" goto statement_identifier ;) })) (expression_statement "local_4c8 = (sqlite3_io_methods *)robust_open(local_4b4,f,0x180);" (assignment_expression "local_4c8 = (sqlite3_io_methods *)robust_open(local_4b4,f,0x180)" identifier = (cast_expression "(sqlite3_io_methods *)robust_open(local_4b4,f,0x180)" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "robust_open(local_4b4,f,0x180)" identifier (argument_list "(local_4b4,f,0x180)" ( identifier , identifier , number_literal ))))) ;) (if_statement "if (-1 < (int)local_4c8) goto LAB_0005e7af;" if (parenthesized_expression "(-1 < (int)local_4c8)" ( (binary_expression "-1 < (int)local_4c8" number_literal < (cast_expression "(int)local_4c8" ( (type_descriptor "int" primitive_type) ) identifier)) )) (goto_statement "goto LAB_0005e7af;" goto statement_identifier ;)) (expression_statement "_Var22 = 0;" (assignment_expression "_Var22 = 0" identifier = number_literal) ;) (expression_statement "local_4ac = 0;" (assignment_expression "local_4ac = 0" identifier = number_literal) ;) (expression_statement "local_4a8 = 0x180;" (assignment_expression "local_4a8 = 0x180" identifier = number_literal) ;) (labeled_statement "LAB_0005ec06:\n    piVar14 = __errno_location();" statement_identifier : (expression_statement "piVar14 = __errno_location();" (assignment_expression "piVar14 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;)) (expression_statement "iVar8 = *piVar14;" (assignment_expression "iVar8 = *piVar14" identifier = (pointer_expression "*piVar14" * identifier)) ;) (if_statement "if ((bVar24) && (iVar8 == 0xd)) {\n      iVar8 = (*aSyscall[2].pCurrent)(local_4b4,0);\n      if (iVar8 == 0) {\n        iVar8 = *piVar14;\n        goto LAB_0005ec40;\n      }\n      iVar8 = 0x608;\n      iVar12 = sqlite3CantopenError(0x9ae7);\n      unixLogErrorAtLine(iVar12,"open",local_4b4,0x9ae7);\n    }\n    else {\nLAB_0005ec40:\n      if ((uVar19 != 0) && (iVar8 != 0x15)) {\n        flags = flags & 0xfffffff9U | 1;\n        local_4c8 = (sqlite3_io_methods *)\n                    robust_open(local_4b4,uVar16 & 0xffffffbd | 0x28000,local_4a8);\n        if (-1 < (int)local_4c8) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }\n      iVar8 = sqlite3CantopenError(0x9ae7);\n      iVar8 = unixLogErrorAtLine(iVar8,"open",local_4b4,0x9ae7);\n      if (iVar8 == 0) goto LAB_0005e8fb;\n    }" if (parenthesized_expression "((bVar24) && (iVar8 == 0xd))" ( (binary_expression "(bVar24) && (iVar8 == 0xd)" (parenthesized_expression "(bVar24)" ( identifier )) && (parenthesized_expression "(iVar8 == 0xd)" ( (binary_expression "iVar8 == 0xd" identifier == number_literal) ))) )) (compound_statement "{\n      iVar8 = (*aSyscall[2].pCurrent)(local_4b4,0);\n      if (iVar8 == 0) {\n        iVar8 = *piVar14;\n        goto LAB_0005ec40;\n      }\n      iVar8 = 0x608;\n      iVar12 = sqlite3CantopenError(0x9ae7);\n      unixLogErrorAtLine(iVar12,"open",local_4b4,0x9ae7);\n    }" { (expression_statement "iVar8 = (*aSyscall[2].pCurrent)(local_4b4,0);" (assignment_expression "iVar8 = (*aSyscall[2].pCurrent)(local_4b4,0)" identifier = (call_expression "(*aSyscall[2].pCurrent)(local_4b4,0)" (parenthesized_expression "(*aSyscall[2].pCurrent)" ( (pointer_expression "*aSyscall[2].pCurrent" * (field_expression "aSyscall[2].pCurrent" (subscript_expression "aSyscall[2]" identifier [ number_literal ]) . field_identifier)) )) (argument_list "(local_4b4,0)" ( identifier , number_literal )))) ;) (if_statement "if (iVar8 == 0) {\n        iVar8 = *piVar14;\n        goto LAB_0005ec40;\n      }" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar8 = *piVar14;\n        goto LAB_0005ec40;\n      }" { (expression_statement "iVar8 = *piVar14;" (assignment_expression "iVar8 = *piVar14" identifier = (pointer_expression "*piVar14" * identifier)) ;) (goto_statement "goto LAB_0005ec40;" goto statement_identifier ;) })) (expression_statement "iVar8 = 0x608;" (assignment_expression "iVar8 = 0x608" identifier = number_literal) ;) (expression_statement "iVar12 = sqlite3CantopenError(0x9ae7);" (assignment_expression "iVar12 = sqlite3CantopenError(0x9ae7)" identifier = (call_expression "sqlite3CantopenError(0x9ae7)" identifier (argument_list "(0x9ae7)" ( number_literal )))) ;) (expression_statement "unixLogErrorAtLine(iVar12,"open",local_4b4,0x9ae7);" (call_expression "unixLogErrorAtLine(iVar12,"open",local_4b4,0x9ae7)" identifier (argument_list "(iVar12,"open",local_4b4,0x9ae7)" ( identifier , (string_literal ""open"" " string_content ") , identifier , number_literal ))) ;) }) (else_clause "else {\nLAB_0005ec40:\n      if ((uVar19 != 0) && (iVar8 != 0x15)) {\n        flags = flags & 0xfffffff9U | 1;\n        local_4c8 = (sqlite3_io_methods *)\n                    robust_open(local_4b4,uVar16 & 0xffffffbd | 0x28000,local_4a8);\n        if (-1 < (int)local_4c8) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }\n      iVar8 = sqlite3CantopenError(0x9ae7);\n      iVar8 = unixLogErrorAtLine(iVar8,"open",local_4b4,0x9ae7);\n      if (iVar8 == 0) goto LAB_0005e8fb;\n    }" else (compound_statement "{\nLAB_0005ec40:\n      if ((uVar19 != 0) && (iVar8 != 0x15)) {\n        flags = flags & 0xfffffff9U | 1;\n        local_4c8 = (sqlite3_io_methods *)\n                    robust_open(local_4b4,uVar16 & 0xffffffbd | 0x28000,local_4a8);\n        if (-1 < (int)local_4c8) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }\n      iVar8 = sqlite3CantopenError(0x9ae7);\n      iVar8 = unixLogErrorAtLine(iVar8,"open",local_4b4,0x9ae7);\n      if (iVar8 == 0) goto LAB_0005e8fb;\n    }" { (labeled_statement "LAB_0005ec40:\n      if ((uVar19 != 0) && (iVar8 != 0x15)) {\n        flags = flags & 0xfffffff9U | 1;\n        local_4c8 = (sqlite3_io_methods *)\n                    robust_open(local_4b4,uVar16 & 0xffffffbd | 0x28000,local_4a8);\n        if (-1 < (int)local_4c8) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }" statement_identifier : (if_statement "if ((uVar19 != 0) && (iVar8 != 0x15)) {\n        flags = flags & 0xfffffff9U | 1;\n        local_4c8 = (sqlite3_io_methods *)\n                    robust_open(local_4b4,uVar16 & 0xffffffbd | 0x28000,local_4a8);\n        if (-1 < (int)local_4c8) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }" if (parenthesized_expression "((uVar19 != 0) && (iVar8 != 0x15))" ( (binary_expression "(uVar19 != 0) && (iVar8 != 0x15)" (parenthesized_expression "(uVar19 != 0)" ( (binary_expression "uVar19 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar8 != 0x15)" ( (binary_expression "iVar8 != 0x15" identifier != number_literal) ))) )) (compound_statement "{\n        flags = flags & 0xfffffff9U | 1;\n        local_4c8 = (sqlite3_io_methods *)\n                    robust_open(local_4b4,uVar16 & 0xffffffbd | 0x28000,local_4a8);\n        if (-1 < (int)local_4c8) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }" { (expression_statement "flags = flags & 0xfffffff9U | 1;" (assignment_expression "flags = flags & 0xfffffff9U | 1" identifier = (binary_expression "flags & 0xfffffff9U | 1" (binary_expression "flags & 0xfffffff9U" identifier & number_literal) | number_literal)) ;) (expression_statement "local_4c8 = (sqlite3_io_methods *)\n                    robust_open(local_4b4,uVar16 & 0xffffffbd | 0x28000,local_4a8);" (assignment_expression "local_4c8 = (sqlite3_io_methods *)\n                    robust_open(local_4b4,uVar16 & 0xffffffbd | 0x28000,local_4a8)" identifier = (cast_expression "(sqlite3_io_methods *)\n                    robust_open(local_4b4,uVar16 & 0xffffffbd | 0x28000,local_4a8)" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "robust_open(local_4b4,uVar16 & 0xffffffbd | 0x28000,local_4a8)" identifier (argument_list "(local_4b4,uVar16 & 0xffffffbd | 0x28000,local_4a8)" ( identifier , (binary_expression "uVar16 & 0xffffffbd | 0x28000" (binary_expression "uVar16 & 0xffffffbd" identifier & number_literal) | number_literal) , identifier ))))) ;) (if_statement "if (-1 < (int)local_4c8) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }" if (parenthesized_expression "(-1 < (int)local_4c8)" ( (binary_expression "-1 < (int)local_4c8" number_literal < (cast_expression "(int)local_4c8" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }" { (expression_statement "local_4a4 = 1;" (assignment_expression "local_4a4 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_0005eb78;" goto statement_identifier ;) })) }))) (expression_statement "iVar8 = sqlite3CantopenError(0x9ae7);" (assignment_expression "iVar8 = sqlite3CantopenError(0x9ae7)" identifier = (call_expression "sqlite3CantopenError(0x9ae7)" identifier (argument_list "(0x9ae7)" ( number_literal )))) ;) (expression_statement "iVar8 = unixLogErrorAtLine(iVar8,"open",local_4b4,0x9ae7);" (assignment_expression "iVar8 = unixLogErrorAtLine(iVar8,"open",local_4b4,0x9ae7)" identifier = (call_expression "unixLogErrorAtLine(iVar8,"open",local_4b4,0x9ae7)" identifier (argument_list "(iVar8,"open",local_4b4,0x9ae7)" ( identifier , (string_literal ""open"" " string_content ") , identifier , number_literal )))) ;) (if_statement "if (iVar8 == 0) goto LAB_0005e8fb;" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0005e8fb;" goto statement_identifier ;)) }))) (labeled_statement "LAB_0005ee17:\n    sqlite3_free(pFile[7].pMethods);" statement_identifier : (expression_statement "sqlite3_free(pFile[7].pMethods);" (call_expression "sqlite3_free(pFile[7].pMethods)" identifier (argument_list "(pFile[7].pMethods)" ( (field_expression "pFile[7].pMethods" (subscript_expression "pFile[7]" identifier [ number_literal ]) . field_identifier) ))) ;)) }) (else_clause "else {\n    if (local_4b4 == (char *)0x0) {\n      iVar8 = -1;\n    }\n    else {\n      sVar10 = strlen(local_4b4);\n      iVar8 = (sVar10 & 0x3fffffff) - 1;\n    }\n    cVar3 = local_4b4[iVar8];\n    while (cVar3 != '-') {\n      if ((cVar3 == '.') || (iVar8 == 0)) goto LAB_0005ebd9;\n      iVar8 = iVar8 + -1;\n      cVar3 = local_4b4[iVar8];\n    }\n    pcVar13 = zDb;\n    __memcpy_chk(pcVar13,local_4b4,iVar8,0x201);\n    zDb[iVar8] = '\0';\nLAB_0005eb2c:\n    iVar12 = (*aSyscall[4].pCurrent)(pcVar13,&sStat);\n    iVar8 = 0x70a;\n    if (iVar12 != 0) goto LAB_0005e8fb;\n    local_4a8 = sStat.st_mode & 0x1ff;\n    local_4ac = sStat.st_uid;\n    local_4c8 = (sqlite3_io_methods *)robust_open(local_4b4,f,local_4a8);\n    _Var22 = sStat.st_gid;\n    if ((int)local_4c8 < 0) goto LAB_0005ec06;\nLAB_0005eb78:\n    if (((local_4a8 != 0) && ((flags & 0x80800U) != 0)) &&\n       (iVar8 = (*aSyscall[0x15].pCurrent)(), iVar8 == 0)) {\n      (*aSyscall[0x14].pCurrent)(local_4c8,local_4ac,_Var22);\n    }\nLAB_0005e7af:\n    if (pOutFlags != (int *)0x0) {\n      *pOutFlags = flags;\n    }\n    psVar9 = pFile[7].pMethods;\n    if (psVar9 != (sqlite3_io_methods *)0x0) {\n      psVar9->iVersion = (int)local_4c8;\n      psVar9->xClose = (_func_int_sqlite3_file_ptr *)(flags & 3);\n    }\n    if (local_4cc != 0) {\n      (*aSyscall[0x10].pCurrent)(local_4b4);\n      local_4cc = 0x20;\n    }\n    psVar9 = sqlite3Config.szMmap._4_4_;\n    uVar19 = local_4cc | 2;\n    if (local_4a4 == 0) {\n      uVar19 = local_4cc;\n    }\n    uVar16 = uVar19 | 0x80;\n    if (uVar6 == 0x100) {\n      uVar16 = uVar19;\n    }\n    local_4cc = uVar16 | 8;\n    if (!bVar24) {\n      local_4cc = uVar16;\n    }\n    if ((flags & 0x40U) == 0) {\n      *(short *)((int)&pFile[4].pMethods + 2) = (short)local_4cc;\n      pFile[3].pMethods = local_4c8;\n      pFile[8].pMethods = (sqlite3_io_methods *)zPath;\n      pFile[1].pMethods = (sqlite3_io_methods *)pVfs;\n      psVar11 = (sqlite3_io_methods *)sqlite3Config.szMmap;\n      pFile[0x11].pMethods = psVar9;\n      pFile[0x10].pMethods = psVar11;\n      pcVar13 = (char *)0x0;\n    }\n    else {\n      local_4cc = local_4cc | 0x40;\n      pFile[3].pMethods = local_4c8;\n      pFile[8].pMethods = (sqlite3_io_methods *)zPath;\n      *(short *)((int)&pFile[4].pMethods + 2) = (short)local_4cc;\n      pFile[1].pMethods = (sqlite3_io_methods *)pVfs;\n      psVar11 = (sqlite3_io_methods *)sqlite3Config.szMmap;\n      pFile[0x11].pMethods = psVar9;\n      pFile[0x10].pMethods = psVar11;\n      pcVar13 = zPath;\n    }\n    iVar8 = sqlite3_uri_boolean(pcVar13,"psow",1);\n    bVar24 = iVar8 == 0;\n    if (!bVar24) {\n      puVar1 = (ushort *)((int)&pFile[4].pMethods + 2);\n      *puVar1 = *puVar1 | 0x10;\n      bVar24 = *puVar1 == 0;\n    }\n    bVar23 = false;\n    iVar8 = 10;\n    pbVar18 = (byte *)pVfs->zName;\n    pbVar20 = (byte *)"unix-excl";\n    do {\n      if (iVar8 == 0) break;\n      iVar8 = iVar8 + -1;\n      bVar23 = *pbVar18 < *pbVar20;\n      bVar24 = *pbVar18 == *pbVar20;\n      pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1;\n      pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1;\n    } while (bVar24);\n    if ((!bVar23 && !bVar24) == bVar23) {\n      puVar1 = (ushort *)((int)&pFile[4].pMethods + 2);\n      *puVar1 = *puVar1 | 1;\n    }\n    if ((local_4cc & 0x80) == 0) {\n                    /* WARNING: Load size is inaccurate */\n      psVar9 = (sqlite3_io_methods *)(**pVfs->pAppData)(zPath,pFile);\n      psVar11 = &posixIoMethods;\n      if (psVar9 == &posixIoMethods) {\n        sqlite3_mutex_enter(unixBigLock);\n        iVar8 = (*aSyscall[5].pCurrent)(pFile[3].pMethods,&sStat);\n        psVar9 = (sqlite3_io_methods *)inodeList;\n        if (iVar8 == 0) {\n          for (; psVar9 != (sqlite3_io_methods *)0x0;\n              psVar9 = (sqlite3_io_methods *)psVar9->xSectorSize) {\n            if ((((int)sStat.st_dev == (int)((unixFileId *)&psVar9->iVersion)->dev) &&\n                (sStat.st_dev._4_4_ == psVar9->xClose)) &&\n               (((_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino ==\n                 psVar9->xRead && (sStat.st_ino._4_4_ == psVar9->xWrite)))) {\n              psVar9->xCheckReservedLock = psVar9->xCheckReservedLock + 1;\n              psVar5 = (sqlite3_io_methods *)inodeList;\n              goto LAB_0005ed6d;\n            }\n          }\n          psVar9 = (sqlite3_io_methods *)sqlite3_malloc64(0x34);\n          if (psVar9 != (sqlite3_io_methods *)0x0) {\n            psVar9->xTruncate = (_func_int_sqlite3_file_ptr_sqlite3_int64 *)0x0;\n            psVar9->xDeviceCharacteristics = (_func_int_sqlite3_file_ptr *)0x0;\n            puVar21 = (undefined4 *)((uint)&psVar9->xSync & 0xfffffffc);\n            uVar6 = (uint)((int)psVar9 + (0x34 - (int)puVar21)) >> 2;\n            for (; uVar6 != 0; uVar6 = uVar6 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *(int *)&((unixFileId *)&psVar9->iVersion)->dev = (int)sStat.st_dev;\n            psVar9->xClose = sStat.st_dev._4_4_;\n            bVar24 = sqlite3Config.bCoreMutex != '\0';\n            psVar9->xRead = (_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino;\n            psVar9->xWrite = sStat.st_ino._4_4_;\n            if (bVar24) {\n              psVar15 = sqlite3_mutex_alloc(0);\n              psVar9->xTruncate = (_func_int_sqlite3_file_ptr_sqlite3_int64 *)psVar15;\n              if (psVar15 == (sqlite3_mutex *)0x0) {\n                iVar8 = 7;\n                sqlite3_free(psVar9);\n                goto LAB_0005efaf;\n              }\n            }\n            psVar9->xCheckReservedLock = (_func_int_sqlite3_file_ptr_int_ptr *)0x1;\n            psVar9->xDeviceCharacteristics = (_func_int_sqlite3_file_ptr *)0x0;\n            psVar9->xSectorSize = (_func_int_sqlite3_file_ptr *)inodeList;\n            psVar5 = psVar9;\n            if (inodeList != (unixInodeInfo *)0x0) {\n              inodeList->pPrev = (unixInodeInfo *)psVar9;\n            }\nLAB_0005ed6d:\n            inodeList = (unixInodeInfo *)psVar5;\n            pFile[2].pMethods = psVar9;\n            sqlite3_mutex_leave(unixBigLock);\n            pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n            goto LAB_0005e8ef;\n          }\n          iVar8 = 7;\n        }\n        else {\n          piVar14 = __errno_location();\n          iVar8 = 10;\n          pFile[5].pMethods = (sqlite3_io_methods *)*piVar14;\n        }\nLAB_0005efaf:\n        iVar12 = (*aSyscall[1].pCurrent)(local_4c8);\n        if (iVar12 != 0) {\n          robust_close((unixFile *)pFile,0x98f4,lineno_00);\n        }\n        sqlite3_mutex_leave(unixBigLock);\n        pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n        goto LAB_0005ee17;\n      }\n      if (psVar9 != &dotlockIoMethods) goto LAB_0005e8e8;\n      sVar10 = strlen(zPath);\n      psVar11 = (sqlite3_io_methods *)sqlite3_malloc64((longlong)(int)(sVar10 + 6));\n      if (psVar11 == (sqlite3_io_methods *)0x0) {\n        pFile[6].pMethods = (sqlite3_io_methods *)0x0;\n        pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n        iVar8 = 7;\n        iVar12 = (*aSyscall[1].pCurrent)(local_4c8);\n        if (iVar12 != 0) {\n          robust_close((unixFile *)pFile,0x9949,lineno);\n        }\n        goto LAB_0005ee17;\n      }\n      sqlite3_snprintf(sVar10 + 6,(char *)psVar11,"%s.lock",zPath);\n      pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n      pFile[6].pMethods = psVar11;\n      psVar11 = psVar9;\n    }\n    else {\n      psVar9 = &nolockIoMethods;\nLAB_0005e8e8:\n      pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n      psVar11 = psVar9;\n    }\nLAB_0005e8ef:\n    pFile->pMethods = psVar11;\n    iVar8 = 0;\n    verifyDbFile((unixFile *)pFile);\n  }" else (compound_statement "{\n    if (local_4b4 == (char *)0x0) {\n      iVar8 = -1;\n    }\n    else {\n      sVar10 = strlen(local_4b4);\n      iVar8 = (sVar10 & 0x3fffffff) - 1;\n    }\n    cVar3 = local_4b4[iVar8];\n    while (cVar3 != '-') {\n      if ((cVar3 == '.') || (iVar8 == 0)) goto LAB_0005ebd9;\n      iVar8 = iVar8 + -1;\n      cVar3 = local_4b4[iVar8];\n    }\n    pcVar13 = zDb;\n    __memcpy_chk(pcVar13,local_4b4,iVar8,0x201);\n    zDb[iVar8] = '\0';\nLAB_0005eb2c:\n    iVar12 = (*aSyscall[4].pCurrent)(pcVar13,&sStat);\n    iVar8 = 0x70a;\n    if (iVar12 != 0) goto LAB_0005e8fb;\n    local_4a8 = sStat.st_mode & 0x1ff;\n    local_4ac = sStat.st_uid;\n    local_4c8 = (sqlite3_io_methods *)robust_open(local_4b4,f,local_4a8);\n    _Var22 = sStat.st_gid;\n    if ((int)local_4c8 < 0) goto LAB_0005ec06;\nLAB_0005eb78:\n    if (((local_4a8 != 0) && ((flags & 0x80800U) != 0)) &&\n       (iVar8 = (*aSyscall[0x15].pCurrent)(), iVar8 == 0)) {\n      (*aSyscall[0x14].pCurrent)(local_4c8,local_4ac,_Var22);\n    }\nLAB_0005e7af:\n    if (pOutFlags != (int *)0x0) {\n      *pOutFlags = flags;\n    }\n    psVar9 = pFile[7].pMethods;\n    if (psVar9 != (sqlite3_io_methods *)0x0) {\n      psVar9->iVersion = (int)local_4c8;\n      psVar9->xClose = (_func_int_sqlite3_file_ptr *)(flags & 3);\n    }\n    if (local_4cc != 0) {\n      (*aSyscall[0x10].pCurrent)(local_4b4);\n      local_4cc = 0x20;\n    }\n    psVar9 = sqlite3Config.szMmap._4_4_;\n    uVar19 = local_4cc | 2;\n    if (local_4a4 == 0) {\n      uVar19 = local_4cc;\n    }\n    uVar16 = uVar19 | 0x80;\n    if (uVar6 == 0x100) {\n      uVar16 = uVar19;\n    }\n    local_4cc = uVar16 | 8;\n    if (!bVar24) {\n      local_4cc = uVar16;\n    }\n    if ((flags & 0x40U) == 0) {\n      *(short *)((int)&pFile[4].pMethods + 2) = (short)local_4cc;\n      pFile[3].pMethods = local_4c8;\n      pFile[8].pMethods = (sqlite3_io_methods *)zPath;\n      pFile[1].pMethods = (sqlite3_io_methods *)pVfs;\n      psVar11 = (sqlite3_io_methods *)sqlite3Config.szMmap;\n      pFile[0x11].pMethods = psVar9;\n      pFile[0x10].pMethods = psVar11;\n      pcVar13 = (char *)0x0;\n    }\n    else {\n      local_4cc = local_4cc | 0x40;\n      pFile[3].pMethods = local_4c8;\n      pFile[8].pMethods = (sqlite3_io_methods *)zPath;\n      *(short *)((int)&pFile[4].pMethods + 2) = (short)local_4cc;\n      pFile[1].pMethods = (sqlite3_io_methods *)pVfs;\n      psVar11 = (sqlite3_io_methods *)sqlite3Config.szMmap;\n      pFile[0x11].pMethods = psVar9;\n      pFile[0x10].pMethods = psVar11;\n      pcVar13 = zPath;\n    }\n    iVar8 = sqlite3_uri_boolean(pcVar13,"psow",1);\n    bVar24 = iVar8 == 0;\n    if (!bVar24) {\n      puVar1 = (ushort *)((int)&pFile[4].pMethods + 2);\n      *puVar1 = *puVar1 | 0x10;\n      bVar24 = *puVar1 == 0;\n    }\n    bVar23 = false;\n    iVar8 = 10;\n    pbVar18 = (byte *)pVfs->zName;\n    pbVar20 = (byte *)"unix-excl";\n    do {\n      if (iVar8 == 0) break;\n      iVar8 = iVar8 + -1;\n      bVar23 = *pbVar18 < *pbVar20;\n      bVar24 = *pbVar18 == *pbVar20;\n      pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1;\n      pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1;\n    } while (bVar24);\n    if ((!bVar23 && !bVar24) == bVar23) {\n      puVar1 = (ushort *)((int)&pFile[4].pMethods + 2);\n      *puVar1 = *puVar1 | 1;\n    }\n    if ((local_4cc & 0x80) == 0) {\n                    /* WARNING: Load size is inaccurate */\n      psVar9 = (sqlite3_io_methods *)(**pVfs->pAppData)(zPath,pFile);\n      psVar11 = &posixIoMethods;\n      if (psVar9 == &posixIoMethods) {\n        sqlite3_mutex_enter(unixBigLock);\n        iVar8 = (*aSyscall[5].pCurrent)(pFile[3].pMethods,&sStat);\n        psVar9 = (sqlite3_io_methods *)inodeList;\n        if (iVar8 == 0) {\n          for (; psVar9 != (sqlite3_io_methods *)0x0;\n              psVar9 = (sqlite3_io_methods *)psVar9->xSectorSize) {\n            if ((((int)sStat.st_dev == (int)((unixFileId *)&psVar9->iVersion)->dev) &&\n                (sStat.st_dev._4_4_ == psVar9->xClose)) &&\n               (((_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino ==\n                 psVar9->xRead && (sStat.st_ino._4_4_ == psVar9->xWrite)))) {\n              psVar9->xCheckReservedLock = psVar9->xCheckReservedLock + 1;\n              psVar5 = (sqlite3_io_methods *)inodeList;\n              goto LAB_0005ed6d;\n            }\n          }\n          psVar9 = (sqlite3_io_methods *)sqlite3_malloc64(0x34);\n          if (psVar9 != (sqlite3_io_methods *)0x0) {\n            psVar9->xTruncate = (_func_int_sqlite3_file_ptr_sqlite3_int64 *)0x0;\n            psVar9->xDeviceCharacteristics = (_func_int_sqlite3_file_ptr *)0x0;\n            puVar21 = (undefined4 *)((uint)&psVar9->xSync & 0xfffffffc);\n            uVar6 = (uint)((int)psVar9 + (0x34 - (int)puVar21)) >> 2;\n            for (; uVar6 != 0; uVar6 = uVar6 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *(int *)&((unixFileId *)&psVar9->iVersion)->dev = (int)sStat.st_dev;\n            psVar9->xClose = sStat.st_dev._4_4_;\n            bVar24 = sqlite3Config.bCoreMutex != '\0';\n            psVar9->xRead = (_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino;\n            psVar9->xWrite = sStat.st_ino._4_4_;\n            if (bVar24) {\n              psVar15 = sqlite3_mutex_alloc(0);\n              psVar9->xTruncate = (_func_int_sqlite3_file_ptr_sqlite3_int64 *)psVar15;\n              if (psVar15 == (sqlite3_mutex *)0x0) {\n                iVar8 = 7;\n                sqlite3_free(psVar9);\n                goto LAB_0005efaf;\n              }\n            }\n            psVar9->xCheckReservedLock = (_func_int_sqlite3_file_ptr_int_ptr *)0x1;\n            psVar9->xDeviceCharacteristics = (_func_int_sqlite3_file_ptr *)0x0;\n            psVar9->xSectorSize = (_func_int_sqlite3_file_ptr *)inodeList;\n            psVar5 = psVar9;\n            if (inodeList != (unixInodeInfo *)0x0) {\n              inodeList->pPrev = (unixInodeInfo *)psVar9;\n            }\nLAB_0005ed6d:\n            inodeList = (unixInodeInfo *)psVar5;\n            pFile[2].pMethods = psVar9;\n            sqlite3_mutex_leave(unixBigLock);\n            pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n            goto LAB_0005e8ef;\n          }\n          iVar8 = 7;\n        }\n        else {\n          piVar14 = __errno_location();\n          iVar8 = 10;\n          pFile[5].pMethods = (sqlite3_io_methods *)*piVar14;\n        }\nLAB_0005efaf:\n        iVar12 = (*aSyscall[1].pCurrent)(local_4c8);\n        if (iVar12 != 0) {\n          robust_close((unixFile *)pFile,0x98f4,lineno_00);\n        }\n        sqlite3_mutex_leave(unixBigLock);\n        pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n        goto LAB_0005ee17;\n      }\n      if (psVar9 != &dotlockIoMethods) goto LAB_0005e8e8;\n      sVar10 = strlen(zPath);\n      psVar11 = (sqlite3_io_methods *)sqlite3_malloc64((longlong)(int)(sVar10 + 6));\n      if (psVar11 == (sqlite3_io_methods *)0x0) {\n        pFile[6].pMethods = (sqlite3_io_methods *)0x0;\n        pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n        iVar8 = 7;\n        iVar12 = (*aSyscall[1].pCurrent)(local_4c8);\n        if (iVar12 != 0) {\n          robust_close((unixFile *)pFile,0x9949,lineno);\n        }\n        goto LAB_0005ee17;\n      }\n      sqlite3_snprintf(sVar10 + 6,(char *)psVar11,"%s.lock",zPath);\n      pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n      pFile[6].pMethods = psVar11;\n      psVar11 = psVar9;\n    }\n    else {\n      psVar9 = &nolockIoMethods;\nLAB_0005e8e8:\n      pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n      psVar11 = psVar9;\n    }\nLAB_0005e8ef:\n    pFile->pMethods = psVar11;\n    iVar8 = 0;\n    verifyDbFile((unixFile *)pFile);\n  }" { (if_statement "if (local_4b4 == (char *)0x0) {\n      iVar8 = -1;\n    }\n    else {\n      sVar10 = strlen(local_4b4);\n      iVar8 = (sVar10 & 0x3fffffff) - 1;\n    }" if (parenthesized_expression "(local_4b4 == (char *)0x0)" ( (binary_expression "local_4b4 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar8 = -1;\n    }" { (expression_statement "iVar8 = -1;" (assignment_expression "iVar8 = -1" identifier = number_literal) ;) }) (else_clause "else {\n      sVar10 = strlen(local_4b4);\n      iVar8 = (sVar10 & 0x3fffffff) - 1;\n    }" else (compound_statement "{\n      sVar10 = strlen(local_4b4);\n      iVar8 = (sVar10 & 0x3fffffff) - 1;\n    }" { (expression_statement "sVar10 = strlen(local_4b4);" (assignment_expression "sVar10 = strlen(local_4b4)" identifier = (call_expression "strlen(local_4b4)" identifier (argument_list "(local_4b4)" ( identifier )))) ;) (expression_statement "iVar8 = (sVar10 & 0x3fffffff) - 1;" (assignment_expression "iVar8 = (sVar10 & 0x3fffffff) - 1" identifier = (binary_expression "(sVar10 & 0x3fffffff) - 1" (parenthesized_expression "(sVar10 & 0x3fffffff)" ( (binary_expression "sVar10 & 0x3fffffff" identifier & number_literal) )) - number_literal)) ;) }))) (expression_statement "cVar3 = local_4b4[iVar8];" (assignment_expression "cVar3 = local_4b4[iVar8]" identifier = (subscript_expression "local_4b4[iVar8]" identifier [ identifier ])) ;) (while_statement "while (cVar3 != '-') {\n      if ((cVar3 == '.') || (iVar8 == 0)) goto LAB_0005ebd9;\n      iVar8 = iVar8 + -1;\n      cVar3 = local_4b4[iVar8];\n    }" while (parenthesized_expression "(cVar3 != '-')" ( (binary_expression "cVar3 != '-'" identifier != (char_literal "'-'" ' character ')) )) (compound_statement "{\n      if ((cVar3 == '.') || (iVar8 == 0)) goto LAB_0005ebd9;\n      iVar8 = iVar8 + -1;\n      cVar3 = local_4b4[iVar8];\n    }" { (if_statement "if ((cVar3 == '.') || (iVar8 == 0)) goto LAB_0005ebd9;" if (parenthesized_expression "((cVar3 == '.') || (iVar8 == 0))" ( (binary_expression "(cVar3 == '.') || (iVar8 == 0)" (parenthesized_expression "(cVar3 == '.')" ( (binary_expression "cVar3 == '.'" identifier == (char_literal "'.'" ' character ')) )) || (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) ))) )) (goto_statement "goto LAB_0005ebd9;" goto statement_identifier ;)) (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" identifier = (binary_expression "iVar8 + -1" identifier + number_literal)) ;) (expression_statement "cVar3 = local_4b4[iVar8];" (assignment_expression "cVar3 = local_4b4[iVar8]" identifier = (subscript_expression "local_4b4[iVar8]" identifier [ identifier ])) ;) })) (expression_statement "pcVar13 = zDb;" (assignment_expression "pcVar13 = zDb" identifier = identifier) ;) (expression_statement "__memcpy_chk(pcVar13,local_4b4,iVar8,0x201);" (call_expression "__memcpy_chk(pcVar13,local_4b4,iVar8,0x201)" identifier (argument_list "(pcVar13,local_4b4,iVar8,0x201)" ( identifier , identifier , identifier , number_literal ))) ;) (expression_statement "zDb[iVar8] = '\0';" (assignment_expression "zDb[iVar8] = '\0'" (subscript_expression "zDb[iVar8]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (labeled_statement "LAB_0005eb2c:\n    iVar12 = (*aSyscall[4].pCurrent)(pcVar13,&sStat);" statement_identifier : (expression_statement "iVar12 = (*aSyscall[4].pCurrent)(pcVar13,&sStat);" (assignment_expression "iVar12 = (*aSyscall[4].pCurrent)(pcVar13,&sStat)" identifier = (call_expression "(*aSyscall[4].pCurrent)(pcVar13,&sStat)" (parenthesized_expression "(*aSyscall[4].pCurrent)" ( (pointer_expression "*aSyscall[4].pCurrent" * (field_expression "aSyscall[4].pCurrent" (subscript_expression "aSyscall[4]" identifier [ number_literal ]) . field_identifier)) )) (argument_list "(pcVar13,&sStat)" ( identifier , (pointer_expression "&sStat" & identifier) )))) ;)) (expression_statement "iVar8 = 0x70a;" (assignment_expression "iVar8 = 0x70a" identifier = number_literal) ;) (if_statement "if (iVar12 != 0) goto LAB_0005e8fb;" if (parenthesized_expression "(iVar12 != 0)" ( (binary_expression "iVar12 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0005e8fb;" goto statement_identifier ;)) (expression_statement "local_4a8 = sStat.st_mode & 0x1ff;" (assignment_expression "local_4a8 = sStat.st_mode & 0x1ff" identifier = (binary_expression "sStat.st_mode & 0x1ff" (field_expression "sStat.st_mode" identifier . field_identifier) & number_literal)) ;) (expression_statement "local_4ac = sStat.st_uid;" (assignment_expression "local_4ac = sStat.st_uid" identifier = (field_expression "sStat.st_uid" identifier . field_identifier)) ;) (expression_statement "local_4c8 = (sqlite3_io_methods *)robust_open(local_4b4,f,local_4a8);" (assignment_expression "local_4c8 = (sqlite3_io_methods *)robust_open(local_4b4,f,local_4a8)" identifier = (cast_expression "(sqlite3_io_methods *)robust_open(local_4b4,f,local_4a8)" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "robust_open(local_4b4,f,local_4a8)" identifier (argument_list "(local_4b4,f,local_4a8)" ( identifier , identifier , identifier ))))) ;) (expression_statement "_Var22 = sStat.st_gid;" (assignment_expression "_Var22 = sStat.st_gid" identifier = (field_expression "sStat.st_gid" identifier . field_identifier)) ;) (if_statement "if ((int)local_4c8 < 0) goto LAB_0005ec06;" if (parenthesized_expression "((int)local_4c8 < 0)" ( (binary_expression "(int)local_4c8 < 0" (cast_expression "(int)local_4c8" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (goto_statement "goto LAB_0005ec06;" goto statement_identifier ;)) (labeled_statement "LAB_0005eb78:\n    if (((local_4a8 != 0) && ((flags & 0x80800U) != 0)) &&\n       (iVar8 = (*aSyscall[0x15].pCurrent)(), iVar8 == 0)) {\n      (*aSyscall[0x14].pCurrent)(local_4c8,local_4ac,_Var22);\n    }" statement_identifier : (if_statement "if (((local_4a8 != 0) && ((flags & 0x80800U) != 0)) &&\n       (iVar8 = (*aSyscall[0x15].pCurrent)(), iVar8 == 0)) {\n      (*aSyscall[0x14].pCurrent)(local_4c8,local_4ac,_Var22);\n    }" if (parenthesized_expression "(((local_4a8 != 0) && ((flags & 0x80800U) != 0)) &&\n       (iVar8 = (*aSyscall[0x15].pCurrent)(), iVar8 == 0))" ( (binary_expression "((local_4a8 != 0) && ((flags & 0x80800U) != 0)) &&\n       (iVar8 = (*aSyscall[0x15].pCurrent)(), iVar8 == 0)" (parenthesized_expression "((local_4a8 != 0) && ((flags & 0x80800U) != 0))" ( (binary_expression "(local_4a8 != 0) && ((flags & 0x80800U) != 0)" (parenthesized_expression "(local_4a8 != 0)" ( (binary_expression "local_4a8 != 0" identifier != number_literal) )) && (parenthesized_expression "((flags & 0x80800U) != 0)" ( (binary_expression "(flags & 0x80800U) != 0" (parenthesized_expression "(flags & 0x80800U)" ( (binary_expression "flags & 0x80800U" identifier & number_literal) )) != number_literal) ))) )) && (parenthesized_expression "(iVar8 = (*aSyscall[0x15].pCurrent)(), iVar8 == 0)" ( (comma_expression "iVar8 = (*aSyscall[0x15].pCurrent)(), iVar8 == 0" (assignment_expression "iVar8 = (*aSyscall[0x15].pCurrent)()" identifier = (call_expression "(*aSyscall[0x15].pCurrent)()" (parenthesized_expression "(*aSyscall[0x15].pCurrent)" ( (pointer_expression "*aSyscall[0x15].pCurrent" * (field_expression "aSyscall[0x15].pCurrent" (subscript_expression "aSyscall[0x15]" identifier [ number_literal ]) . field_identifier)) )) (argument_list "()" ( )))) , (binary_expression "iVar8 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      (*aSyscall[0x14].pCurrent)(local_4c8,local_4ac,_Var22);\n    }" { (expression_statement "(*aSyscall[0x14].pCurrent)(local_4c8,local_4ac,_Var22);" (call_expression "(*aSyscall[0x14].pCurrent)(local_4c8,local_4ac,_Var22)" (parenthesized_expression "(*aSyscall[0x14].pCurrent)" ( (pointer_expression "*aSyscall[0x14].pCurrent" * (field_expression "aSyscall[0x14].pCurrent" (subscript_expression "aSyscall[0x14]" identifier [ number_literal ]) . field_identifier)) )) (argument_list "(local_4c8,local_4ac,_Var22)" ( identifier , identifier , identifier ))) ;) }))) (labeled_statement "LAB_0005e7af:\n    if (pOutFlags != (int *)0x0) {\n      *pOutFlags = flags;\n    }" statement_identifier : (if_statement "if (pOutFlags != (int *)0x0) {\n      *pOutFlags = flags;\n    }" if (parenthesized_expression "(pOutFlags != (int *)0x0)" ( (binary_expression "pOutFlags != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *pOutFlags = flags;\n    }" { (expression_statement "*pOutFlags = flags;" (assignment_expression "*pOutFlags = flags" (pointer_expression "*pOutFlags" * identifier) = identifier) ;) }))) (expression_statement "psVar9 = pFile[7].pMethods;" (assignment_expression "psVar9 = pFile[7].pMethods" identifier = (field_expression "pFile[7].pMethods" (subscript_expression "pFile[7]" identifier [ number_literal ]) . field_identifier)) ;) (if_statement "if (psVar9 != (sqlite3_io_methods *)0x0) {\n      psVar9->iVersion = (int)local_4c8;\n      psVar9->xClose = (_func_int_sqlite3_file_ptr *)(flags & 3);\n    }" if (parenthesized_expression "(psVar9 != (sqlite3_io_methods *)0x0)" ( (binary_expression "psVar9 != (sqlite3_io_methods *)0x0" identifier != (cast_expression "(sqlite3_io_methods *)0x0" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      psVar9->iVersion = (int)local_4c8;\n      psVar9->xClose = (_func_int_sqlite3_file_ptr *)(flags & 3);\n    }" { (expression_statement "psVar9->iVersion = (int)local_4c8;" (assignment_expression "psVar9->iVersion = (int)local_4c8" (field_expression "psVar9->iVersion" identifier -> field_identifier) = (cast_expression "(int)local_4c8" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "psVar9->xClose = (_func_int_sqlite3_file_ptr *)(flags & 3);" (assignment_expression "psVar9->xClose = (_func_int_sqlite3_file_ptr *)(flags & 3)" (field_expression "psVar9->xClose" identifier -> field_identifier) = (cast_expression "(_func_int_sqlite3_file_ptr *)(flags & 3)" ( (type_descriptor "_func_int_sqlite3_file_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(flags & 3)" ( (binary_expression "flags & 3" identifier & number_literal) )))) ;) })) (if_statement "if (local_4cc != 0) {\n      (*aSyscall[0x10].pCurrent)(local_4b4);\n      local_4cc = 0x20;\n    }" if (parenthesized_expression "(local_4cc != 0)" ( (binary_expression "local_4cc != 0" identifier != number_literal) )) (compound_statement "{\n      (*aSyscall[0x10].pCurrent)(local_4b4);\n      local_4cc = 0x20;\n    }" { (expression_statement "(*aSyscall[0x10].pCurrent)(local_4b4);" (call_expression "(*aSyscall[0x10].pCurrent)(local_4b4)" (parenthesized_expression "(*aSyscall[0x10].pCurrent)" ( (pointer_expression "*aSyscall[0x10].pCurrent" * (field_expression "aSyscall[0x10].pCurrent" (subscript_expression "aSyscall[0x10]" identifier [ number_literal ]) . field_identifier)) )) (argument_list "(local_4b4)" ( identifier ))) ;) (expression_statement "local_4cc = 0x20;" (assignment_expression "local_4cc = 0x20" identifier = number_literal) ;) })) (expression_statement "psVar9 = sqlite3Config.szMmap._4_4_;" (assignment_expression "psVar9 = sqlite3Config.szMmap._4_4_" identifier = (field_expression "sqlite3Config.szMmap._4_4_" (field_expression "sqlite3Config.szMmap" identifier . field_identifier) . field_identifier)) ;) (expression_statement "uVar19 = local_4cc | 2;" (assignment_expression "uVar19 = local_4cc | 2" identifier = (binary_expression "local_4cc | 2" identifier | number_literal)) ;) (if_statement "if (local_4a4 == 0) {\n      uVar19 = local_4cc;\n    }" if (parenthesized_expression "(local_4a4 == 0)" ( (binary_expression "local_4a4 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar19 = local_4cc;\n    }" { (expression_statement "uVar19 = local_4cc;" (assignment_expression "uVar19 = local_4cc" identifier = identifier) ;) })) (expression_statement "uVar16 = uVar19 | 0x80;" (assignment_expression "uVar16 = uVar19 | 0x80" identifier = (binary_expression "uVar19 | 0x80" identifier | number_literal)) ;) (if_statement "if (uVar6 == 0x100) {\n      uVar16 = uVar19;\n    }" if (parenthesized_expression "(uVar6 == 0x100)" ( (binary_expression "uVar6 == 0x100" identifier == number_literal) )) (compound_statement "{\n      uVar16 = uVar19;\n    }" { (expression_statement "uVar16 = uVar19;" (assignment_expression "uVar16 = uVar19" identifier = identifier) ;) })) (expression_statement "local_4cc = uVar16 | 8;" (assignment_expression "local_4cc = uVar16 | 8" identifier = (binary_expression "uVar16 | 8" identifier | number_literal)) ;) (if_statement "if (!bVar24) {\n      local_4cc = uVar16;\n    }" if (parenthesized_expression "(!bVar24)" ( (unary_expression "!bVar24" ! identifier) )) (compound_statement "{\n      local_4cc = uVar16;\n    }" { (expression_statement "local_4cc = uVar16;" (assignment_expression "local_4cc = uVar16" identifier = identifier) ;) })) (if_statement "if ((flags & 0x40U) == 0) {\n      *(short *)((int)&pFile[4].pMethods + 2) = (short)local_4cc;\n      pFile[3].pMethods = local_4c8;\n      pFile[8].pMethods = (sqlite3_io_methods *)zPath;\n      pFile[1].pMethods = (sqlite3_io_methods *)pVfs;\n      psVar11 = (sqlite3_io_methods *)sqlite3Config.szMmap;\n      pFile[0x11].pMethods = psVar9;\n      pFile[0x10].pMethods = psVar11;\n      pcVar13 = (char *)0x0;\n    }\n    else {\n      local_4cc = local_4cc | 0x40;\n      pFile[3].pMethods = local_4c8;\n      pFile[8].pMethods = (sqlite3_io_methods *)zPath;\n      *(short *)((int)&pFile[4].pMethods + 2) = (short)local_4cc;\n      pFile[1].pMethods = (sqlite3_io_methods *)pVfs;\n      psVar11 = (sqlite3_io_methods *)sqlite3Config.szMmap;\n      pFile[0x11].pMethods = psVar9;\n      pFile[0x10].pMethods = psVar11;\n      pcVar13 = zPath;\n    }" if (parenthesized_expression "((flags & 0x40U) == 0)" ( (binary_expression "(flags & 0x40U) == 0" (parenthesized_expression "(flags & 0x40U)" ( (binary_expression "flags & 0x40U" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      *(short *)((int)&pFile[4].pMethods + 2) = (short)local_4cc;\n      pFile[3].pMethods = local_4c8;\n      pFile[8].pMethods = (sqlite3_io_methods *)zPath;\n      pFile[1].pMethods = (sqlite3_io_methods *)pVfs;\n      psVar11 = (sqlite3_io_methods *)sqlite3Config.szMmap;\n      pFile[0x11].pMethods = psVar9;\n      pFile[0x10].pMethods = psVar11;\n      pcVar13 = (char *)0x0;\n    }" { (expression_statement "*(short *)((int)&pFile[4].pMethods + 2) = (short)local_4cc;" (assignment_expression "*(short *)((int)&pFile[4].pMethods + 2) = (short)local_4cc" (pointer_expression "*(short *)((int)&pFile[4].pMethods + 2)" * (cast_expression "(short *)((int)&pFile[4].pMethods + 2)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pFile[4].pMethods + 2)" ( (binary_expression "(int)&pFile[4].pMethods + 2" (cast_expression "(int)&pFile[4].pMethods" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pFile[4].pMethods" & (field_expression "pFile[4].pMethods" (subscript_expression "pFile[4]" identifier [ number_literal ]) . field_identifier))) + number_literal) )))) = (cast_expression "(short)local_4cc" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) (expression_statement "pFile[3].pMethods = local_4c8;" (assignment_expression "pFile[3].pMethods = local_4c8" (field_expression "pFile[3].pMethods" (subscript_expression "pFile[3]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "pFile[8].pMethods = (sqlite3_io_methods *)zPath;" (assignment_expression "pFile[8].pMethods = (sqlite3_io_methods *)zPath" (field_expression "pFile[8].pMethods" (subscript_expression "pFile[8]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_io_methods *)zPath" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pFile[1].pMethods = (sqlite3_io_methods *)pVfs;" (assignment_expression "pFile[1].pMethods = (sqlite3_io_methods *)pVfs" (field_expression "pFile[1].pMethods" (subscript_expression "pFile[1]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_io_methods *)pVfs" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "psVar11 = (sqlite3_io_methods *)sqlite3Config.szMmap;" (assignment_expression "psVar11 = (sqlite3_io_methods *)sqlite3Config.szMmap" identifier = (cast_expression "(sqlite3_io_methods *)sqlite3Config.szMmap" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "sqlite3Config.szMmap" identifier . field_identifier))) ;) (expression_statement "pFile[0x11].pMethods = psVar9;" (assignment_expression "pFile[0x11].pMethods = psVar9" (field_expression "pFile[0x11].pMethods" (subscript_expression "pFile[0x11]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "pFile[0x10].pMethods = psVar11;" (assignment_expression "pFile[0x10].pMethods = psVar11" (field_expression "pFile[0x10].pMethods" (subscript_expression "pFile[0x10]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "pcVar13 = (char *)0x0;" (assignment_expression "pcVar13 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n      local_4cc = local_4cc | 0x40;\n      pFile[3].pMethods = local_4c8;\n      pFile[8].pMethods = (sqlite3_io_methods *)zPath;\n      *(short *)((int)&pFile[4].pMethods + 2) = (short)local_4cc;\n      pFile[1].pMethods = (sqlite3_io_methods *)pVfs;\n      psVar11 = (sqlite3_io_methods *)sqlite3Config.szMmap;\n      pFile[0x11].pMethods = psVar9;\n      pFile[0x10].pMethods = psVar11;\n      pcVar13 = zPath;\n    }" else (compound_statement "{\n      local_4cc = local_4cc | 0x40;\n      pFile[3].pMethods = local_4c8;\n      pFile[8].pMethods = (sqlite3_io_methods *)zPath;\n      *(short *)((int)&pFile[4].pMethods + 2) = (short)local_4cc;\n      pFile[1].pMethods = (sqlite3_io_methods *)pVfs;\n      psVar11 = (sqlite3_io_methods *)sqlite3Config.szMmap;\n      pFile[0x11].pMethods = psVar9;\n      pFile[0x10].pMethods = psVar11;\n      pcVar13 = zPath;\n    }" { (expression_statement "local_4cc = local_4cc | 0x40;" (assignment_expression "local_4cc = local_4cc | 0x40" identifier = (binary_expression "local_4cc | 0x40" identifier | number_literal)) ;) (expression_statement "pFile[3].pMethods = local_4c8;" (assignment_expression "pFile[3].pMethods = local_4c8" (field_expression "pFile[3].pMethods" (subscript_expression "pFile[3]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "pFile[8].pMethods = (sqlite3_io_methods *)zPath;" (assignment_expression "pFile[8].pMethods = (sqlite3_io_methods *)zPath" (field_expression "pFile[8].pMethods" (subscript_expression "pFile[8]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_io_methods *)zPath" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "*(short *)((int)&pFile[4].pMethods + 2) = (short)local_4cc;" (assignment_expression "*(short *)((int)&pFile[4].pMethods + 2) = (short)local_4cc" (pointer_expression "*(short *)((int)&pFile[4].pMethods + 2)" * (cast_expression "(short *)((int)&pFile[4].pMethods + 2)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pFile[4].pMethods + 2)" ( (binary_expression "(int)&pFile[4].pMethods + 2" (cast_expression "(int)&pFile[4].pMethods" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pFile[4].pMethods" & (field_expression "pFile[4].pMethods" (subscript_expression "pFile[4]" identifier [ number_literal ]) . field_identifier))) + number_literal) )))) = (cast_expression "(short)local_4cc" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) (expression_statement "pFile[1].pMethods = (sqlite3_io_methods *)pVfs;" (assignment_expression "pFile[1].pMethods = (sqlite3_io_methods *)pVfs" (field_expression "pFile[1].pMethods" (subscript_expression "pFile[1]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_io_methods *)pVfs" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "psVar11 = (sqlite3_io_methods *)sqlite3Config.szMmap;" (assignment_expression "psVar11 = (sqlite3_io_methods *)sqlite3Config.szMmap" identifier = (cast_expression "(sqlite3_io_methods *)sqlite3Config.szMmap" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "sqlite3Config.szMmap" identifier . field_identifier))) ;) (expression_statement "pFile[0x11].pMethods = psVar9;" (assignment_expression "pFile[0x11].pMethods = psVar9" (field_expression "pFile[0x11].pMethods" (subscript_expression "pFile[0x11]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "pFile[0x10].pMethods = psVar11;" (assignment_expression "pFile[0x10].pMethods = psVar11" (field_expression "pFile[0x10].pMethods" (subscript_expression "pFile[0x10]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "pcVar13 = zPath;" (assignment_expression "pcVar13 = zPath" identifier = identifier) ;) }))) (expression_statement "iVar8 = sqlite3_uri_boolean(pcVar13,"psow",1);" (assignment_expression "iVar8 = sqlite3_uri_boolean(pcVar13,"psow",1)" identifier = (call_expression "sqlite3_uri_boolean(pcVar13,"psow",1)" identifier (argument_list "(pcVar13,"psow",1)" ( identifier , (string_literal ""psow"" " string_content ") , number_literal )))) ;) (expression_statement "bVar24 = iVar8 == 0;" (assignment_expression "bVar24 = iVar8 == 0" identifier = (binary_expression "iVar8 == 0" identifier == number_literal)) ;) (if_statement "if (!bVar24) {\n      puVar1 = (ushort *)((int)&pFile[4].pMethods + 2);\n      *puVar1 = *puVar1 | 0x10;\n      bVar24 = *puVar1 == 0;\n    }" if (parenthesized_expression "(!bVar24)" ( (unary_expression "!bVar24" ! identifier) )) (compound_statement "{\n      puVar1 = (ushort *)((int)&pFile[4].pMethods + 2);\n      *puVar1 = *puVar1 | 0x10;\n      bVar24 = *puVar1 == 0;\n    }" { (expression_statement "puVar1 = (ushort *)((int)&pFile[4].pMethods + 2);" (assignment_expression "puVar1 = (ushort *)((int)&pFile[4].pMethods + 2)" identifier = (cast_expression "(ushort *)((int)&pFile[4].pMethods + 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pFile[4].pMethods + 2)" ( (binary_expression "(int)&pFile[4].pMethods + 2" (cast_expression "(int)&pFile[4].pMethods" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pFile[4].pMethods" & (field_expression "pFile[4].pMethods" (subscript_expression "pFile[4]" identifier [ number_literal ]) . field_identifier))) + number_literal) )))) ;) (expression_statement "*puVar1 = *puVar1 | 0x10;" (assignment_expression "*puVar1 = *puVar1 | 0x10" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 | 0x10" (pointer_expression "*puVar1" * identifier) | number_literal)) ;) (expression_statement "bVar24 = *puVar1 == 0;" (assignment_expression "bVar24 = *puVar1 == 0" identifier = (binary_expression "*puVar1 == 0" (pointer_expression "*puVar1" * identifier) == number_literal)) ;) })) (expression_statement "bVar23 = false;" (assignment_expression "bVar23 = false" identifier = false) ;) (expression_statement "iVar8 = 10;" (assignment_expression "iVar8 = 10" identifier = number_literal) ;) (expression_statement "pbVar18 = (byte *)pVfs->zName;" (assignment_expression "pbVar18 = (byte *)pVfs->zName" identifier = (cast_expression "(byte *)pVfs->zName" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pVfs->zName" identifier -> field_identifier))) ;) (expression_statement "pbVar20 = (byte *)"unix-excl";" (assignment_expression "pbVar20 = (byte *)"unix-excl"" identifier = (cast_expression "(byte *)"unix-excl"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""unix-excl"" " string_content "))) ;) (do_statement "do {\n      if (iVar8 == 0) break;\n      iVar8 = iVar8 + -1;\n      bVar23 = *pbVar18 < *pbVar20;\n      bVar24 = *pbVar18 == *pbVar20;\n      pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1;\n      pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1;\n    } while (bVar24);" do (compound_statement "{\n      if (iVar8 == 0) break;\n      iVar8 = iVar8 + -1;\n      bVar23 = *pbVar18 < *pbVar20;\n      bVar24 = *pbVar18 == *pbVar20;\n      pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1;\n      pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1;\n    }" { (if_statement "if (iVar8 == 0) break;" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" identifier = (binary_expression "iVar8 + -1" identifier + number_literal)) ;) (expression_statement "bVar23 = *pbVar18 < *pbVar20;" (assignment_expression "bVar23 = *pbVar18 < *pbVar20" identifier = (binary_expression "*pbVar18 < *pbVar20" (pointer_expression "*pbVar18" * identifier) < (pointer_expression "*pbVar20" * identifier))) ;) (expression_statement "bVar24 = *pbVar18 == *pbVar20;" (assignment_expression "bVar24 = *pbVar18 == *pbVar20" identifier = (binary_expression "*pbVar18 == *pbVar20" (pointer_expression "*pbVar18" * identifier) == (pointer_expression "*pbVar20" * identifier))) ;) (expression_statement "pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1;" (assignment_expression "pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1" identifier = (binary_expression "pbVar18 + (uint)bVar25 * -2 + 1" (binary_expression "pbVar18 + (uint)bVar25 * -2" identifier + (binary_expression "(uint)bVar25 * -2" (cast_expression "(uint)bVar25" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1;" (assignment_expression "pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1" identifier = (binary_expression "pbVar20 + (uint)bVar25 * -2 + 1" (binary_expression "pbVar20 + (uint)bVar25 * -2" identifier + (binary_expression "(uint)bVar25 * -2" (cast_expression "(uint)bVar25" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar24)" ( identifier )) ;) (if_statement "if ((!bVar23 && !bVar24) == bVar23) {\n      puVar1 = (ushort *)((int)&pFile[4].pMethods + 2);\n      *puVar1 = *puVar1 | 1;\n    }" if (parenthesized_expression "((!bVar23 && !bVar24) == bVar23)" ( (binary_expression "(!bVar23 && !bVar24) == bVar23" (parenthesized_expression "(!bVar23 && !bVar24)" ( (binary_expression "!bVar23 && !bVar24" (unary_expression "!bVar23" ! identifier) && (unary_expression "!bVar24" ! identifier)) )) == identifier) )) (compound_statement "{\n      puVar1 = (ushort *)((int)&pFile[4].pMethods + 2);\n      *puVar1 = *puVar1 | 1;\n    }" { (expression_statement "puVar1 = (ushort *)((int)&pFile[4].pMethods + 2);" (assignment_expression "puVar1 = (ushort *)((int)&pFile[4].pMethods + 2)" identifier = (cast_expression "(ushort *)((int)&pFile[4].pMethods + 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pFile[4].pMethods + 2)" ( (binary_expression "(int)&pFile[4].pMethods + 2" (cast_expression "(int)&pFile[4].pMethods" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pFile[4].pMethods" & (field_expression "pFile[4].pMethods" (subscript_expression "pFile[4]" identifier [ number_literal ]) . field_identifier))) + number_literal) )))) ;) (expression_statement "*puVar1 = *puVar1 | 1;" (assignment_expression "*puVar1 = *puVar1 | 1" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 | 1" (pointer_expression "*puVar1" * identifier) | number_literal)) ;) })) (if_statement "if ((local_4cc & 0x80) == 0) {\n                    /* WARNING: Load size is inaccurate */\n      psVar9 = (sqlite3_io_methods *)(**pVfs->pAppData)(zPath,pFile);\n      psVar11 = &posixIoMethods;\n      if (psVar9 == &posixIoMethods) {\n        sqlite3_mutex_enter(unixBigLock);\n        iVar8 = (*aSyscall[5].pCurrent)(pFile[3].pMethods,&sStat);\n        psVar9 = (sqlite3_io_methods *)inodeList;\n        if (iVar8 == 0) {\n          for (; psVar9 != (sqlite3_io_methods *)0x0;\n              psVar9 = (sqlite3_io_methods *)psVar9->xSectorSize) {\n            if ((((int)sStat.st_dev == (int)((unixFileId *)&psVar9->iVersion)->dev) &&\n                (sStat.st_dev._4_4_ == psVar9->xClose)) &&\n               (((_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino ==\n                 psVar9->xRead && (sStat.st_ino._4_4_ == psVar9->xWrite)))) {\n              psVar9->xCheckReservedLock = psVar9->xCheckReservedLock + 1;\n              psVar5 = (sqlite3_io_methods *)inodeList;\n              goto LAB_0005ed6d;\n            }\n          }\n          psVar9 = (sqlite3_io_methods *)sqlite3_malloc64(0x34);\n          if (psVar9 != (sqlite3_io_methods *)0x0) {\n            psVar9->xTruncate = (_func_int_sqlite3_file_ptr_sqlite3_int64 *)0x0;\n            psVar9->xDeviceCharacteristics = (_func_int_sqlite3_file_ptr *)0x0;\n            puVar21 = (undefined4 *)((uint)&psVar9->xSync & 0xfffffffc);\n            uVar6 = (uint)((int)psVar9 + (0x34 - (int)puVar21)) >> 2;\n            for (; uVar6 != 0; uVar6 = uVar6 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *(int *)&((unixFileId *)&psVar9->iVersion)->dev = (int)sStat.st_dev;\n            psVar9->xClose = sStat.st_dev._4_4_;\n            bVar24 = sqlite3Config.bCoreMutex != '\0';\n            psVar9->xRead = (_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino;\n            psVar9->xWrite = sStat.st_ino._4_4_;\n            if (bVar24) {\n              psVar15 = sqlite3_mutex_alloc(0);\n              psVar9->xTruncate = (_func_int_sqlite3_file_ptr_sqlite3_int64 *)psVar15;\n              if (psVar15 == (sqlite3_mutex *)0x0) {\n                iVar8 = 7;\n                sqlite3_free(psVar9);\n                goto LAB_0005efaf;\n              }\n            }\n            psVar9->xCheckReservedLock = (_func_int_sqlite3_file_ptr_int_ptr *)0x1;\n            psVar9->xDeviceCharacteristics = (_func_int_sqlite3_file_ptr *)0x0;\n            psVar9->xSectorSize = (_func_int_sqlite3_file_ptr *)inodeList;\n            psVar5 = psVar9;\n            if (inodeList != (unixInodeInfo *)0x0) {\n              inodeList->pPrev = (unixInodeInfo *)psVar9;\n            }\nLAB_0005ed6d:\n            inodeList = (unixInodeInfo *)psVar5;\n            pFile[2].pMethods = psVar9;\n            sqlite3_mutex_leave(unixBigLock);\n            pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n            goto LAB_0005e8ef;\n          }\n          iVar8 = 7;\n        }\n        else {\n          piVar14 = __errno_location();\n          iVar8 = 10;\n          pFile[5].pMethods = (sqlite3_io_methods *)*piVar14;\n        }\nLAB_0005efaf:\n        iVar12 = (*aSyscall[1].pCurrent)(local_4c8);\n        if (iVar12 != 0) {\n          robust_close((unixFile *)pFile,0x98f4,lineno_00);\n        }\n        sqlite3_mutex_leave(unixBigLock);\n        pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n        goto LAB_0005ee17;\n      }\n      if (psVar9 != &dotlockIoMethods) goto LAB_0005e8e8;\n      sVar10 = strlen(zPath);\n      psVar11 = (sqlite3_io_methods *)sqlite3_malloc64((longlong)(int)(sVar10 + 6));\n      if (psVar11 == (sqlite3_io_methods *)0x0) {\n        pFile[6].pMethods = (sqlite3_io_methods *)0x0;\n        pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n        iVar8 = 7;\n        iVar12 = (*aSyscall[1].pCurrent)(local_4c8);\n        if (iVar12 != 0) {\n          robust_close((unixFile *)pFile,0x9949,lineno);\n        }\n        goto LAB_0005ee17;\n      }\n      sqlite3_snprintf(sVar10 + 6,(char *)psVar11,"%s.lock",zPath);\n      pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n      pFile[6].pMethods = psVar11;\n      psVar11 = psVar9;\n    }\n    else {\n      psVar9 = &nolockIoMethods;\nLAB_0005e8e8:\n      pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n      psVar11 = psVar9;\n    }" if (parenthesized_expression "((local_4cc & 0x80) == 0)" ( (binary_expression "(local_4cc & 0x80) == 0" (parenthesized_expression "(local_4cc & 0x80)" ( (binary_expression "local_4cc & 0x80" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n      psVar9 = (sqlite3_io_methods *)(**pVfs->pAppData)(zPath,pFile);\n      psVar11 = &posixIoMethods;\n      if (psVar9 == &posixIoMethods) {\n        sqlite3_mutex_enter(unixBigLock);\n        iVar8 = (*aSyscall[5].pCurrent)(pFile[3].pMethods,&sStat);\n        psVar9 = (sqlite3_io_methods *)inodeList;\n        if (iVar8 == 0) {\n          for (; psVar9 != (sqlite3_io_methods *)0x0;\n              psVar9 = (sqlite3_io_methods *)psVar9->xSectorSize) {\n            if ((((int)sStat.st_dev == (int)((unixFileId *)&psVar9->iVersion)->dev) &&\n                (sStat.st_dev._4_4_ == psVar9->xClose)) &&\n               (((_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino ==\n                 psVar9->xRead && (sStat.st_ino._4_4_ == psVar9->xWrite)))) {\n              psVar9->xCheckReservedLock = psVar9->xCheckReservedLock + 1;\n              psVar5 = (sqlite3_io_methods *)inodeList;\n              goto LAB_0005ed6d;\n            }\n          }\n          psVar9 = (sqlite3_io_methods *)sqlite3_malloc64(0x34);\n          if (psVar9 != (sqlite3_io_methods *)0x0) {\n            psVar9->xTruncate = (_func_int_sqlite3_file_ptr_sqlite3_int64 *)0x0;\n            psVar9->xDeviceCharacteristics = (_func_int_sqlite3_file_ptr *)0x0;\n            puVar21 = (undefined4 *)((uint)&psVar9->xSync & 0xfffffffc);\n            uVar6 = (uint)((int)psVar9 + (0x34 - (int)puVar21)) >> 2;\n            for (; uVar6 != 0; uVar6 = uVar6 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *(int *)&((unixFileId *)&psVar9->iVersion)->dev = (int)sStat.st_dev;\n            psVar9->xClose = sStat.st_dev._4_4_;\n            bVar24 = sqlite3Config.bCoreMutex != '\0';\n            psVar9->xRead = (_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino;\n            psVar9->xWrite = sStat.st_ino._4_4_;\n            if (bVar24) {\n              psVar15 = sqlite3_mutex_alloc(0);\n              psVar9->xTruncate = (_func_int_sqlite3_file_ptr_sqlite3_int64 *)psVar15;\n              if (psVar15 == (sqlite3_mutex *)0x0) {\n                iVar8 = 7;\n                sqlite3_free(psVar9);\n                goto LAB_0005efaf;\n              }\n            }\n            psVar9->xCheckReservedLock = (_func_int_sqlite3_file_ptr_int_ptr *)0x1;\n            psVar9->xDeviceCharacteristics = (_func_int_sqlite3_file_ptr *)0x0;\n            psVar9->xSectorSize = (_func_int_sqlite3_file_ptr *)inodeList;\n            psVar5 = psVar9;\n            if (inodeList != (unixInodeInfo *)0x0) {\n              inodeList->pPrev = (unixInodeInfo *)psVar9;\n            }\nLAB_0005ed6d:\n            inodeList = (unixInodeInfo *)psVar5;\n            pFile[2].pMethods = psVar9;\n            sqlite3_mutex_leave(unixBigLock);\n            pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n            goto LAB_0005e8ef;\n          }\n          iVar8 = 7;\n        }\n        else {\n          piVar14 = __errno_location();\n          iVar8 = 10;\n          pFile[5].pMethods = (sqlite3_io_methods *)*piVar14;\n        }\nLAB_0005efaf:\n        iVar12 = (*aSyscall[1].pCurrent)(local_4c8);\n        if (iVar12 != 0) {\n          robust_close((unixFile *)pFile,0x98f4,lineno_00);\n        }\n        sqlite3_mutex_leave(unixBigLock);\n        pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n        goto LAB_0005ee17;\n      }\n      if (psVar9 != &dotlockIoMethods) goto LAB_0005e8e8;\n      sVar10 = strlen(zPath);\n      psVar11 = (sqlite3_io_methods *)sqlite3_malloc64((longlong)(int)(sVar10 + 6));\n      if (psVar11 == (sqlite3_io_methods *)0x0) {\n        pFile[6].pMethods = (sqlite3_io_methods *)0x0;\n        pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n        iVar8 = 7;\n        iVar12 = (*aSyscall[1].pCurrent)(local_4c8);\n        if (iVar12 != 0) {\n          robust_close((unixFile *)pFile,0x9949,lineno);\n        }\n        goto LAB_0005ee17;\n      }\n      sqlite3_snprintf(sVar10 + 6,(char *)psVar11,"%s.lock",zPath);\n      pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n      pFile[6].pMethods = psVar11;\n      psVar11 = psVar9;\n    }" { comment (expression_statement "psVar9 = (sqlite3_io_methods *)(**pVfs->pAppData)(zPath,pFile);" (assignment_expression "psVar9 = (sqlite3_io_methods *)(**pVfs->pAppData)(zPath,pFile)" identifier = (cast_expression "(sqlite3_io_methods *)(**pVfs->pAppData)(zPath,pFile)" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**pVfs->pAppData)(zPath,pFile)" (parenthesized_expression "(**pVfs->pAppData)" ( (pointer_expression "**pVfs->pAppData" * (pointer_expression "*pVfs->pAppData" * (field_expression "pVfs->pAppData" identifier -> field_identifier))) )) (argument_list "(zPath,pFile)" ( identifier , identifier ))))) ;) (expression_statement "psVar11 = &posixIoMethods;" (assignment_expression "psVar11 = &posixIoMethods" identifier = (pointer_expression "&posixIoMethods" & identifier)) ;) (if_statement "if (psVar9 == &posixIoMethods) {\n        sqlite3_mutex_enter(unixBigLock);\n        iVar8 = (*aSyscall[5].pCurrent)(pFile[3].pMethods,&sStat);\n        psVar9 = (sqlite3_io_methods *)inodeList;\n        if (iVar8 == 0) {\n          for (; psVar9 != (sqlite3_io_methods *)0x0;\n              psVar9 = (sqlite3_io_methods *)psVar9->xSectorSize) {\n            if ((((int)sStat.st_dev == (int)((unixFileId *)&psVar9->iVersion)->dev) &&\n                (sStat.st_dev._4_4_ == psVar9->xClose)) &&\n               (((_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino ==\n                 psVar9->xRead && (sStat.st_ino._4_4_ == psVar9->xWrite)))) {\n              psVar9->xCheckReservedLock = psVar9->xCheckReservedLock + 1;\n              psVar5 = (sqlite3_io_methods *)inodeList;\n              goto LAB_0005ed6d;\n            }\n          }\n          psVar9 = (sqlite3_io_methods *)sqlite3_malloc64(0x34);\n          if (psVar9 != (sqlite3_io_methods *)0x0) {\n            psVar9->xTruncate = (_func_int_sqlite3_file_ptr_sqlite3_int64 *)0x0;\n            psVar9->xDeviceCharacteristics = (_func_int_sqlite3_file_ptr *)0x0;\n            puVar21 = (undefined4 *)((uint)&psVar9->xSync & 0xfffffffc);\n            uVar6 = (uint)((int)psVar9 + (0x34 - (int)puVar21)) >> 2;\n            for (; uVar6 != 0; uVar6 = uVar6 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *(int *)&((unixFileId *)&psVar9->iVersion)->dev = (int)sStat.st_dev;\n            psVar9->xClose = sStat.st_dev._4_4_;\n            bVar24 = sqlite3Config.bCoreMutex != '\0';\n            psVar9->xRead = (_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino;\n            psVar9->xWrite = sStat.st_ino._4_4_;\n            if (bVar24) {\n              psVar15 = sqlite3_mutex_alloc(0);\n              psVar9->xTruncate = (_func_int_sqlite3_file_ptr_sqlite3_int64 *)psVar15;\n              if (psVar15 == (sqlite3_mutex *)0x0) {\n                iVar8 = 7;\n                sqlite3_free(psVar9);\n                goto LAB_0005efaf;\n              }\n            }\n            psVar9->xCheckReservedLock = (_func_int_sqlite3_file_ptr_int_ptr *)0x1;\n            psVar9->xDeviceCharacteristics = (_func_int_sqlite3_file_ptr *)0x0;\n            psVar9->xSectorSize = (_func_int_sqlite3_file_ptr *)inodeList;\n            psVar5 = psVar9;\n            if (inodeList != (unixInodeInfo *)0x0) {\n              inodeList->pPrev = (unixInodeInfo *)psVar9;\n            }\nLAB_0005ed6d:\n            inodeList = (unixInodeInfo *)psVar5;\n            pFile[2].pMethods = psVar9;\n            sqlite3_mutex_leave(unixBigLock);\n            pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n            goto LAB_0005e8ef;\n          }\n          iVar8 = 7;\n        }\n        else {\n          piVar14 = __errno_location();\n          iVar8 = 10;\n          pFile[5].pMethods = (sqlite3_io_methods *)*piVar14;\n        }\nLAB_0005efaf:\n        iVar12 = (*aSyscall[1].pCurrent)(local_4c8);\n        if (iVar12 != 0) {\n          robust_close((unixFile *)pFile,0x98f4,lineno_00);\n        }\n        sqlite3_mutex_leave(unixBigLock);\n        pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n        goto LAB_0005ee17;\n      }" if (parenthesized_expression "(psVar9 == &posixIoMethods)" ( (binary_expression "psVar9 == &posixIoMethods" identifier == (pointer_expression "&posixIoMethods" & identifier)) )) (compound_statement "{\n        sqlite3_mutex_enter(unixBigLock);\n        iVar8 = (*aSyscall[5].pCurrent)(pFile[3].pMethods,&sStat);\n        psVar9 = (sqlite3_io_methods *)inodeList;\n        if (iVar8 == 0) {\n          for (; psVar9 != (sqlite3_io_methods *)0x0;\n              psVar9 = (sqlite3_io_methods *)psVar9->xSectorSize) {\n            if ((((int)sStat.st_dev == (int)((unixFileId *)&psVar9->iVersion)->dev) &&\n                (sStat.st_dev._4_4_ == psVar9->xClose)) &&\n               (((_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino ==\n                 psVar9->xRead && (sStat.st_ino._4_4_ == psVar9->xWrite)))) {\n              psVar9->xCheckReservedLock = psVar9->xCheckReservedLock + 1;\n              psVar5 = (sqlite3_io_methods *)inodeList;\n              goto LAB_0005ed6d;\n            }\n          }\n          psVar9 = (sqlite3_io_methods *)sqlite3_malloc64(0x34);\n          if (psVar9 != (sqlite3_io_methods *)0x0) {\n            psVar9->xTruncate = (_func_int_sqlite3_file_ptr_sqlite3_int64 *)0x0;\n            psVar9->xDeviceCharacteristics = (_func_int_sqlite3_file_ptr *)0x0;\n            puVar21 = (undefined4 *)((uint)&psVar9->xSync & 0xfffffffc);\n            uVar6 = (uint)((int)psVar9 + (0x34 - (int)puVar21)) >> 2;\n            for (; uVar6 != 0; uVar6 = uVar6 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *(int *)&((unixFileId *)&psVar9->iVersion)->dev = (int)sStat.st_dev;\n            psVar9->xClose = sStat.st_dev._4_4_;\n            bVar24 = sqlite3Config.bCoreMutex != '\0';\n            psVar9->xRead = (_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino;\n            psVar9->xWrite = sStat.st_ino._4_4_;\n            if (bVar24) {\n              psVar15 = sqlite3_mutex_alloc(0);\n              psVar9->xTruncate = (_func_int_sqlite3_file_ptr_sqlite3_int64 *)psVar15;\n              if (psVar15 == (sqlite3_mutex *)0x0) {\n                iVar8 = 7;\n                sqlite3_free(psVar9);\n                goto LAB_0005efaf;\n              }\n            }\n            psVar9->xCheckReservedLock = (_func_int_sqlite3_file_ptr_int_ptr *)0x1;\n            psVar9->xDeviceCharacteristics = (_func_int_sqlite3_file_ptr *)0x0;\n            psVar9->xSectorSize = (_func_int_sqlite3_file_ptr *)inodeList;\n            psVar5 = psVar9;\n            if (inodeList != (unixInodeInfo *)0x0) {\n              inodeList->pPrev = (unixInodeInfo *)psVar9;\n            }\nLAB_0005ed6d:\n            inodeList = (unixInodeInfo *)psVar5;\n            pFile[2].pMethods = psVar9;\n            sqlite3_mutex_leave(unixBigLock);\n            pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n            goto LAB_0005e8ef;\n          }\n          iVar8 = 7;\n        }\n        else {\n          piVar14 = __errno_location();\n          iVar8 = 10;\n          pFile[5].pMethods = (sqlite3_io_methods *)*piVar14;\n        }\nLAB_0005efaf:\n        iVar12 = (*aSyscall[1].pCurrent)(local_4c8);\n        if (iVar12 != 0) {\n          robust_close((unixFile *)pFile,0x98f4,lineno_00);\n        }\n        sqlite3_mutex_leave(unixBigLock);\n        pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n        goto LAB_0005ee17;\n      }" { (expression_statement "sqlite3_mutex_enter(unixBigLock);" (call_expression "sqlite3_mutex_enter(unixBigLock)" identifier (argument_list "(unixBigLock)" ( identifier ))) ;) (expression_statement "iVar8 = (*aSyscall[5].pCurrent)(pFile[3].pMethods,&sStat);" (assignment_expression "iVar8 = (*aSyscall[5].pCurrent)(pFile[3].pMethods,&sStat)" identifier = (call_expression "(*aSyscall[5].pCurrent)(pFile[3].pMethods,&sStat)" (parenthesized_expression "(*aSyscall[5].pCurrent)" ( (pointer_expression "*aSyscall[5].pCurrent" * (field_expression "aSyscall[5].pCurrent" (subscript_expression "aSyscall[5]" identifier [ number_literal ]) . field_identifier)) )) (argument_list "(pFile[3].pMethods,&sStat)" ( (field_expression "pFile[3].pMethods" (subscript_expression "pFile[3]" identifier [ number_literal ]) . field_identifier) , (pointer_expression "&sStat" & identifier) )))) ;) (expression_statement "psVar9 = (sqlite3_io_methods *)inodeList;" (assignment_expression "psVar9 = (sqlite3_io_methods *)inodeList" identifier = (cast_expression "(sqlite3_io_methods *)inodeList" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (iVar8 == 0) {\n          for (; psVar9 != (sqlite3_io_methods *)0x0;\n              psVar9 = (sqlite3_io_methods *)psVar9->xSectorSize) {\n            if ((((int)sStat.st_dev == (int)((unixFileId *)&psVar9->iVersion)->dev) &&\n                (sStat.st_dev._4_4_ == psVar9->xClose)) &&\n               (((_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino ==\n                 psVar9->xRead && (sStat.st_ino._4_4_ == psVar9->xWrite)))) {\n              psVar9->xCheckReservedLock = psVar9->xCheckReservedLock + 1;\n              psVar5 = (sqlite3_io_methods *)inodeList;\n              goto LAB_0005ed6d;\n            }\n          }\n          psVar9 = (sqlite3_io_methods *)sqlite3_malloc64(0x34);\n          if (psVar9 != (sqlite3_io_methods *)0x0) {\n            psVar9->xTruncate = (_func_int_sqlite3_file_ptr_sqlite3_int64 *)0x0;\n            psVar9->xDeviceCharacteristics = (_func_int_sqlite3_file_ptr *)0x0;\n            puVar21 = (undefined4 *)((uint)&psVar9->xSync & 0xfffffffc);\n            uVar6 = (uint)((int)psVar9 + (0x34 - (int)puVar21)) >> 2;\n            for (; uVar6 != 0; uVar6 = uVar6 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *(int *)&((unixFileId *)&psVar9->iVersion)->dev = (int)sStat.st_dev;\n            psVar9->xClose = sStat.st_dev._4_4_;\n            bVar24 = sqlite3Config.bCoreMutex != '\0';\n            psVar9->xRead = (_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino;\n            psVar9->xWrite = sStat.st_ino._4_4_;\n            if (bVar24) {\n              psVar15 = sqlite3_mutex_alloc(0);\n              psVar9->xTruncate = (_func_int_sqlite3_file_ptr_sqlite3_int64 *)psVar15;\n              if (psVar15 == (sqlite3_mutex *)0x0) {\n                iVar8 = 7;\n                sqlite3_free(psVar9);\n                goto LAB_0005efaf;\n              }\n            }\n            psVar9->xCheckReservedLock = (_func_int_sqlite3_file_ptr_int_ptr *)0x1;\n            psVar9->xDeviceCharacteristics = (_func_int_sqlite3_file_ptr *)0x0;\n            psVar9->xSectorSize = (_func_int_sqlite3_file_ptr *)inodeList;\n            psVar5 = psVar9;\n            if (inodeList != (unixInodeInfo *)0x0) {\n              inodeList->pPrev = (unixInodeInfo *)psVar9;\n            }\nLAB_0005ed6d:\n            inodeList = (unixInodeInfo *)psVar5;\n            pFile[2].pMethods = psVar9;\n            sqlite3_mutex_leave(unixBigLock);\n            pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n            goto LAB_0005e8ef;\n          }\n          iVar8 = 7;\n        }\n        else {\n          piVar14 = __errno_location();\n          iVar8 = 10;\n          pFile[5].pMethods = (sqlite3_io_methods *)*piVar14;\n        }" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (compound_statement "{\n          for (; psVar9 != (sqlite3_io_methods *)0x0;\n              psVar9 = (sqlite3_io_methods *)psVar9->xSectorSize) {\n            if ((((int)sStat.st_dev == (int)((unixFileId *)&psVar9->iVersion)->dev) &&\n                (sStat.st_dev._4_4_ == psVar9->xClose)) &&\n               (((_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino ==\n                 psVar9->xRead && (sStat.st_ino._4_4_ == psVar9->xWrite)))) {\n              psVar9->xCheckReservedLock = psVar9->xCheckReservedLock + 1;\n              psVar5 = (sqlite3_io_methods *)inodeList;\n              goto LAB_0005ed6d;\n            }\n          }\n          psVar9 = (sqlite3_io_methods *)sqlite3_malloc64(0x34);\n          if (psVar9 != (sqlite3_io_methods *)0x0) {\n            psVar9->xTruncate = (_func_int_sqlite3_file_ptr_sqlite3_int64 *)0x0;\n            psVar9->xDeviceCharacteristics = (_func_int_sqlite3_file_ptr *)0x0;\n            puVar21 = (undefined4 *)((uint)&psVar9->xSync & 0xfffffffc);\n            uVar6 = (uint)((int)psVar9 + (0x34 - (int)puVar21)) >> 2;\n            for (; uVar6 != 0; uVar6 = uVar6 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *(int *)&((unixFileId *)&psVar9->iVersion)->dev = (int)sStat.st_dev;\n            psVar9->xClose = sStat.st_dev._4_4_;\n            bVar24 = sqlite3Config.bCoreMutex != '\0';\n            psVar9->xRead = (_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino;\n            psVar9->xWrite = sStat.st_ino._4_4_;\n            if (bVar24) {\n              psVar15 = sqlite3_mutex_alloc(0);\n              psVar9->xTruncate = (_func_int_sqlite3_file_ptr_sqlite3_int64 *)psVar15;\n              if (psVar15 == (sqlite3_mutex *)0x0) {\n                iVar8 = 7;\n                sqlite3_free(psVar9);\n                goto LAB_0005efaf;\n              }\n            }\n            psVar9->xCheckReservedLock = (_func_int_sqlite3_file_ptr_int_ptr *)0x1;\n            psVar9->xDeviceCharacteristics = (_func_int_sqlite3_file_ptr *)0x0;\n            psVar9->xSectorSize = (_func_int_sqlite3_file_ptr *)inodeList;\n            psVar5 = psVar9;\n            if (inodeList != (unixInodeInfo *)0x0) {\n              inodeList->pPrev = (unixInodeInfo *)psVar9;\n            }\nLAB_0005ed6d:\n            inodeList = (unixInodeInfo *)psVar5;\n            pFile[2].pMethods = psVar9;\n            sqlite3_mutex_leave(unixBigLock);\n            pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n            goto LAB_0005e8ef;\n          }\n          iVar8 = 7;\n        }" { (for_statement "for (; psVar9 != (sqlite3_io_methods *)0x0;\n              psVar9 = (sqlite3_io_methods *)psVar9->xSectorSize) {\n            if ((((int)sStat.st_dev == (int)((unixFileId *)&psVar9->iVersion)->dev) &&\n                (sStat.st_dev._4_4_ == psVar9->xClose)) &&\n               (((_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino ==\n                 psVar9->xRead && (sStat.st_ino._4_4_ == psVar9->xWrite)))) {\n              psVar9->xCheckReservedLock = psVar9->xCheckReservedLock + 1;\n              psVar5 = (sqlite3_io_methods *)inodeList;\n              goto LAB_0005ed6d;\n            }\n          }" for ( ; (binary_expression "psVar9 != (sqlite3_io_methods *)0x0" identifier != (cast_expression "(sqlite3_io_methods *)0x0" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "psVar9 = (sqlite3_io_methods *)psVar9->xSectorSize" identifier = (cast_expression "(sqlite3_io_methods *)psVar9->xSectorSize" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "psVar9->xSectorSize" identifier -> field_identifier))) ) (compound_statement "{\n            if ((((int)sStat.st_dev == (int)((unixFileId *)&psVar9->iVersion)->dev) &&\n                (sStat.st_dev._4_4_ == psVar9->xClose)) &&\n               (((_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino ==\n                 psVar9->xRead && (sStat.st_ino._4_4_ == psVar9->xWrite)))) {\n              psVar9->xCheckReservedLock = psVar9->xCheckReservedLock + 1;\n              psVar5 = (sqlite3_io_methods *)inodeList;\n              goto LAB_0005ed6d;\n            }\n          }" { (if_statement "if ((((int)sStat.st_dev == (int)((unixFileId *)&psVar9->iVersion)->dev) &&\n                (sStat.st_dev._4_4_ == psVar9->xClose)) &&\n               (((_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino ==\n                 psVar9->xRead && (sStat.st_ino._4_4_ == psVar9->xWrite)))) {\n              psVar9->xCheckReservedLock = psVar9->xCheckReservedLock + 1;\n              psVar5 = (sqlite3_io_methods *)inodeList;\n              goto LAB_0005ed6d;\n            }" if (parenthesized_expression "((((int)sStat.st_dev == (int)((unixFileId *)&psVar9->iVersion)->dev) &&\n                (sStat.st_dev._4_4_ == psVar9->xClose)) &&\n               (((_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino ==\n                 psVar9->xRead && (sStat.st_ino._4_4_ == psVar9->xWrite))))" ( (binary_expression "(((int)sStat.st_dev == (int)((unixFileId *)&psVar9->iVersion)->dev) &&\n                (sStat.st_dev._4_4_ == psVar9->xClose)) &&\n               (((_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino ==\n                 psVar9->xRead && (sStat.st_ino._4_4_ == psVar9->xWrite)))" (parenthesized_expression "(((int)sStat.st_dev == (int)((unixFileId *)&psVar9->iVersion)->dev) &&\n                (sStat.st_dev._4_4_ == psVar9->xClose))" ( (binary_expression "((int)sStat.st_dev == (int)((unixFileId *)&psVar9->iVersion)->dev) &&\n                (sStat.st_dev._4_4_ == psVar9->xClose)" (parenthesized_expression "((int)sStat.st_dev == (int)((unixFileId *)&psVar9->iVersion)->dev)" ( (binary_expression "(int)sStat.st_dev == (int)((unixFileId *)&psVar9->iVersion)->dev" (cast_expression "(int)sStat.st_dev" ( (type_descriptor "int" primitive_type) ) (field_expression "sStat.st_dev" identifier . field_identifier)) == (cast_expression "(int)((unixFileId *)&psVar9->iVersion)->dev" ( (type_descriptor "int" primitive_type) ) (field_expression "((unixFileId *)&psVar9->iVersion)->dev" (parenthesized_expression "((unixFileId *)&psVar9->iVersion)" ( (cast_expression "(unixFileId *)&psVar9->iVersion" ( (type_descriptor "unixFileId *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&psVar9->iVersion" & (field_expression "psVar9->iVersion" identifier -> field_identifier))) )) -> field_identifier))) )) && (parenthesized_expression "(sStat.st_dev._4_4_ == psVar9->xClose)" ( (binary_expression "sStat.st_dev._4_4_ == psVar9->xClose" (field_expression "sStat.st_dev._4_4_" (field_expression "sStat.st_dev" identifier . field_identifier) . field_identifier) == (field_expression "psVar9->xClose" identifier -> field_identifier)) ))) )) && (parenthesized_expression "(((_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino ==\n                 psVar9->xRead && (sStat.st_ino._4_4_ == psVar9->xWrite)))" ( (parenthesized_expression "((_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino ==\n                 psVar9->xRead && (sStat.st_ino._4_4_ == psVar9->xWrite))" ( (binary_expression "(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino ==\n                 psVar9->xRead && (sStat.st_ino._4_4_ == psVar9->xWrite)" (binary_expression "(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino ==\n                 psVar9->xRead" (cast_expression "(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino" ( (type_descriptor "_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "sStat.st_ino" identifier . field_identifier)) == (field_expression "psVar9->xRead" identifier -> field_identifier)) && (parenthesized_expression "(sStat.st_ino._4_4_ == psVar9->xWrite)" ( (binary_expression "sStat.st_ino._4_4_ == psVar9->xWrite" (field_expression "sStat.st_ino._4_4_" (field_expression "sStat.st_ino" identifier . field_identifier) . field_identifier) == (field_expression "psVar9->xWrite" identifier -> field_identifier)) ))) )) ))) )) (compound_statement "{\n              psVar9->xCheckReservedLock = psVar9->xCheckReservedLock + 1;\n              psVar5 = (sqlite3_io_methods *)inodeList;\n              goto LAB_0005ed6d;\n            }" { (expression_statement "psVar9->xCheckReservedLock = psVar9->xCheckReservedLock + 1;" (assignment_expression "psVar9->xCheckReservedLock = psVar9->xCheckReservedLock + 1" (field_expression "psVar9->xCheckReservedLock" identifier -> field_identifier) = (binary_expression "psVar9->xCheckReservedLock + 1" (field_expression "psVar9->xCheckReservedLock" identifier -> field_identifier) + number_literal)) ;) (expression_statement "psVar5 = (sqlite3_io_methods *)inodeList;" (assignment_expression "psVar5 = (sqlite3_io_methods *)inodeList" identifier = (cast_expression "(sqlite3_io_methods *)inodeList" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (goto_statement "goto LAB_0005ed6d;" goto statement_identifier ;) })) })) (expression_statement "psVar9 = (sqlite3_io_methods *)sqlite3_malloc64(0x34);" (assignment_expression "psVar9 = (sqlite3_io_methods *)sqlite3_malloc64(0x34)" identifier = (cast_expression "(sqlite3_io_methods *)sqlite3_malloc64(0x34)" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_malloc64(0x34)" identifier (argument_list "(0x34)" ( number_literal ))))) ;) (if_statement "if (psVar9 != (sqlite3_io_methods *)0x0) {\n            psVar9->xTruncate = (_func_int_sqlite3_file_ptr_sqlite3_int64 *)0x0;\n            psVar9->xDeviceCharacteristics = (_func_int_sqlite3_file_ptr *)0x0;\n            puVar21 = (undefined4 *)((uint)&psVar9->xSync & 0xfffffffc);\n            uVar6 = (uint)((int)psVar9 + (0x34 - (int)puVar21)) >> 2;\n            for (; uVar6 != 0; uVar6 = uVar6 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *(int *)&((unixFileId *)&psVar9->iVersion)->dev = (int)sStat.st_dev;\n            psVar9->xClose = sStat.st_dev._4_4_;\n            bVar24 = sqlite3Config.bCoreMutex != '\0';\n            psVar9->xRead = (_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino;\n            psVar9->xWrite = sStat.st_ino._4_4_;\n            if (bVar24) {\n              psVar15 = sqlite3_mutex_alloc(0);\n              psVar9->xTruncate = (_func_int_sqlite3_file_ptr_sqlite3_int64 *)psVar15;\n              if (psVar15 == (sqlite3_mutex *)0x0) {\n                iVar8 = 7;\n                sqlite3_free(psVar9);\n                goto LAB_0005efaf;\n              }\n            }\n            psVar9->xCheckReservedLock = (_func_int_sqlite3_file_ptr_int_ptr *)0x1;\n            psVar9->xDeviceCharacteristics = (_func_int_sqlite3_file_ptr *)0x0;\n            psVar9->xSectorSize = (_func_int_sqlite3_file_ptr *)inodeList;\n            psVar5 = psVar9;\n            if (inodeList != (unixInodeInfo *)0x0) {\n              inodeList->pPrev = (unixInodeInfo *)psVar9;\n            }\nLAB_0005ed6d:\n            inodeList = (unixInodeInfo *)psVar5;\n            pFile[2].pMethods = psVar9;\n            sqlite3_mutex_leave(unixBigLock);\n            pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n            goto LAB_0005e8ef;\n          }" if (parenthesized_expression "(psVar9 != (sqlite3_io_methods *)0x0)" ( (binary_expression "psVar9 != (sqlite3_io_methods *)0x0" identifier != (cast_expression "(sqlite3_io_methods *)0x0" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            psVar9->xTruncate = (_func_int_sqlite3_file_ptr_sqlite3_int64 *)0x0;\n            psVar9->xDeviceCharacteristics = (_func_int_sqlite3_file_ptr *)0x0;\n            puVar21 = (undefined4 *)((uint)&psVar9->xSync & 0xfffffffc);\n            uVar6 = (uint)((int)psVar9 + (0x34 - (int)puVar21)) >> 2;\n            for (; uVar6 != 0; uVar6 = uVar6 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *(int *)&((unixFileId *)&psVar9->iVersion)->dev = (int)sStat.st_dev;\n            psVar9->xClose = sStat.st_dev._4_4_;\n            bVar24 = sqlite3Config.bCoreMutex != '\0';\n            psVar9->xRead = (_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino;\n            psVar9->xWrite = sStat.st_ino._4_4_;\n            if (bVar24) {\n              psVar15 = sqlite3_mutex_alloc(0);\n              psVar9->xTruncate = (_func_int_sqlite3_file_ptr_sqlite3_int64 *)psVar15;\n              if (psVar15 == (sqlite3_mutex *)0x0) {\n                iVar8 = 7;\n                sqlite3_free(psVar9);\n                goto LAB_0005efaf;\n              }\n            }\n            psVar9->xCheckReservedLock = (_func_int_sqlite3_file_ptr_int_ptr *)0x1;\n            psVar9->xDeviceCharacteristics = (_func_int_sqlite3_file_ptr *)0x0;\n            psVar9->xSectorSize = (_func_int_sqlite3_file_ptr *)inodeList;\n            psVar5 = psVar9;\n            if (inodeList != (unixInodeInfo *)0x0) {\n              inodeList->pPrev = (unixInodeInfo *)psVar9;\n            }\nLAB_0005ed6d:\n            inodeList = (unixInodeInfo *)psVar5;\n            pFile[2].pMethods = psVar9;\n            sqlite3_mutex_leave(unixBigLock);\n            pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n            goto LAB_0005e8ef;\n          }" { (expression_statement "psVar9->xTruncate = (_func_int_sqlite3_file_ptr_sqlite3_int64 *)0x0;" (assignment_expression "psVar9->xTruncate = (_func_int_sqlite3_file_ptr_sqlite3_int64 *)0x0" (field_expression "psVar9->xTruncate" identifier -> field_identifier) = (cast_expression "(_func_int_sqlite3_file_ptr_sqlite3_int64 *)0x0" ( (type_descriptor "_func_int_sqlite3_file_ptr_sqlite3_int64 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "psVar9->xDeviceCharacteristics = (_func_int_sqlite3_file_ptr *)0x0;" (assignment_expression "psVar9->xDeviceCharacteristics = (_func_int_sqlite3_file_ptr *)0x0" (field_expression "psVar9->xDeviceCharacteristics" identifier -> field_identifier) = (cast_expression "(_func_int_sqlite3_file_ptr *)0x0" ( (type_descriptor "_func_int_sqlite3_file_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "puVar21 = (undefined4 *)((uint)&psVar9->xSync & 0xfffffffc);" (assignment_expression "puVar21 = (undefined4 *)((uint)&psVar9->xSync & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)&psVar9->xSync & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)&psVar9->xSync & 0xfffffffc)" ( (binary_expression "(uint)&psVar9->xSync & 0xfffffffc" (binary_expression "(uint)&psVar9->xSync" (parenthesized_expression "(uint)" ( identifier )) & (field_expression "psVar9->xSync" identifier -> field_identifier)) & number_literal) )))) ;) (expression_statement "uVar6 = (uint)((int)psVar9 + (0x34 - (int)puVar21)) >> 2;" (assignment_expression "uVar6 = (uint)((int)psVar9 + (0x34 - (int)puVar21)) >> 2" identifier = (binary_expression "(uint)((int)psVar9 + (0x34 - (int)puVar21)) >> 2" (call_expression "(uint)((int)psVar9 + (0x34 - (int)puVar21))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)psVar9 + (0x34 - (int)puVar21))" ( (binary_expression "(int)psVar9 + (0x34 - (int)puVar21)" (cast_expression "(int)psVar9" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x34 - (int)puVar21)" ( (binary_expression "0x34 - (int)puVar21" number_literal - (cast_expression "(int)puVar21" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ))) >> number_literal)) ;) (for_statement "for (; uVar6 != 0; uVar6 = uVar6 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }" for ( ; (binary_expression "uVar6 != 0" identifier != number_literal) ; (assignment_expression "uVar6 = uVar6 - 1" identifier = (binary_expression "uVar6 - 1" identifier - number_literal)) ) (compound_statement "{\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }" { (expression_statement "*puVar21 = 0;" (assignment_expression "*puVar21 = 0" (pointer_expression "*puVar21" * identifier) = number_literal) ;) (expression_statement "puVar21 = puVar21 + (uint)bVar25 * -2 + 1;" (assignment_expression "puVar21 = puVar21 + (uint)bVar25 * -2 + 1" identifier = (binary_expression "puVar21 + (uint)bVar25 * -2 + 1" (binary_expression "puVar21 + (uint)bVar25 * -2" identifier + (binary_expression "(uint)bVar25 * -2" (cast_expression "(uint)bVar25" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "*(int *)&((unixFileId *)&psVar9->iVersion)->dev = (int)sStat.st_dev;" (assignment_expression "*(int *)&((unixFileId *)&psVar9->iVersion)->dev = (int)sStat.st_dev" (pointer_expression "*(int *)&((unixFileId *)&psVar9->iVersion)->dev" * (cast_expression "(int *)&((unixFileId *)&psVar9->iVersion)->dev" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&((unixFileId *)&psVar9->iVersion)->dev" & (field_expression "((unixFileId *)&psVar9->iVersion)->dev" (parenthesized_expression "((unixFileId *)&psVar9->iVersion)" ( (cast_expression "(unixFileId *)&psVar9->iVersion" ( (type_descriptor "unixFileId *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&psVar9->iVersion" & (field_expression "psVar9->iVersion" identifier -> field_identifier))) )) -> field_identifier)))) = (cast_expression "(int)sStat.st_dev" ( (type_descriptor "int" primitive_type) ) (field_expression "sStat.st_dev" identifier . field_identifier))) ;) (expression_statement "psVar9->xClose = sStat.st_dev._4_4_;" (assignment_expression "psVar9->xClose = sStat.st_dev._4_4_" (field_expression "psVar9->xClose" identifier -> field_identifier) = (field_expression "sStat.st_dev._4_4_" (field_expression "sStat.st_dev" identifier . field_identifier) . field_identifier)) ;) (expression_statement "bVar24 = sqlite3Config.bCoreMutex != '\0';" (assignment_expression "bVar24 = sqlite3Config.bCoreMutex != '\0'" identifier = (binary_expression "sqlite3Config.bCoreMutex != '\0'" (field_expression "sqlite3Config.bCoreMutex" identifier . field_identifier) != (char_literal "'\0'" ' escape_sequence '))) ;) (expression_statement "psVar9->xRead = (_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino;" (assignment_expression "psVar9->xRead = (_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino" (field_expression "psVar9->xRead" identifier -> field_identifier) = (cast_expression "(_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *)sStat.st_ino" ( (type_descriptor "_func_int_sqlite3_file_ptr_void_ptr_int_sqlite3_int64 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "sStat.st_ino" identifier . field_identifier))) ;) (expression_statement "psVar9->xWrite = sStat.st_ino._4_4_;" (assignment_expression "psVar9->xWrite = sStat.st_ino._4_4_" (field_expression "psVar9->xWrite" identifier -> field_identifier) = (field_expression "sStat.st_ino._4_4_" (field_expression "sStat.st_ino" identifier . field_identifier) . field_identifier)) ;) (if_statement "if (bVar24) {\n              psVar15 = sqlite3_mutex_alloc(0);\n              psVar9->xTruncate = (_func_int_sqlite3_file_ptr_sqlite3_int64 *)psVar15;\n              if (psVar15 == (sqlite3_mutex *)0x0) {\n                iVar8 = 7;\n                sqlite3_free(psVar9);\n                goto LAB_0005efaf;\n              }\n            }" if (parenthesized_expression "(bVar24)" ( identifier )) (compound_statement "{\n              psVar15 = sqlite3_mutex_alloc(0);\n              psVar9->xTruncate = (_func_int_sqlite3_file_ptr_sqlite3_int64 *)psVar15;\n              if (psVar15 == (sqlite3_mutex *)0x0) {\n                iVar8 = 7;\n                sqlite3_free(psVar9);\n                goto LAB_0005efaf;\n              }\n            }" { (expression_statement "psVar15 = sqlite3_mutex_alloc(0);" (assignment_expression "psVar15 = sqlite3_mutex_alloc(0)" identifier = (call_expression "sqlite3_mutex_alloc(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (expression_statement "psVar9->xTruncate = (_func_int_sqlite3_file_ptr_sqlite3_int64 *)psVar15;" (assignment_expression "psVar9->xTruncate = (_func_int_sqlite3_file_ptr_sqlite3_int64 *)psVar15" (field_expression "psVar9->xTruncate" identifier -> field_identifier) = (cast_expression "(_func_int_sqlite3_file_ptr_sqlite3_int64 *)psVar15" ( (type_descriptor "_func_int_sqlite3_file_ptr_sqlite3_int64 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (psVar15 == (sqlite3_mutex *)0x0) {\n                iVar8 = 7;\n                sqlite3_free(psVar9);\n                goto LAB_0005efaf;\n              }" if (parenthesized_expression "(psVar15 == (sqlite3_mutex *)0x0)" ( (binary_expression "psVar15 == (sqlite3_mutex *)0x0" identifier == (cast_expression "(sqlite3_mutex *)0x0" ( (type_descriptor "sqlite3_mutex *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                iVar8 = 7;\n                sqlite3_free(psVar9);\n                goto LAB_0005efaf;\n              }" { (expression_statement "iVar8 = 7;" (assignment_expression "iVar8 = 7" identifier = number_literal) ;) (expression_statement "sqlite3_free(psVar9);" (call_expression "sqlite3_free(psVar9)" identifier (argument_list "(psVar9)" ( identifier ))) ;) (goto_statement "goto LAB_0005efaf;" goto statement_identifier ;) })) })) (expression_statement "psVar9->xCheckReservedLock = (_func_int_sqlite3_file_ptr_int_ptr *)0x1;" (assignment_expression "psVar9->xCheckReservedLock = (_func_int_sqlite3_file_ptr_int_ptr *)0x1" (field_expression "psVar9->xCheckReservedLock" identifier -> field_identifier) = (cast_expression "(_func_int_sqlite3_file_ptr_int_ptr *)0x1" ( (type_descriptor "_func_int_sqlite3_file_ptr_int_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "psVar9->xDeviceCharacteristics = (_func_int_sqlite3_file_ptr *)0x0;" (assignment_expression "psVar9->xDeviceCharacteristics = (_func_int_sqlite3_file_ptr *)0x0" (field_expression "psVar9->xDeviceCharacteristics" identifier -> field_identifier) = (cast_expression "(_func_int_sqlite3_file_ptr *)0x0" ( (type_descriptor "_func_int_sqlite3_file_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "psVar9->xSectorSize = (_func_int_sqlite3_file_ptr *)inodeList;" (assignment_expression "psVar9->xSectorSize = (_func_int_sqlite3_file_ptr *)inodeList" (field_expression "psVar9->xSectorSize" identifier -> field_identifier) = (cast_expression "(_func_int_sqlite3_file_ptr *)inodeList" ( (type_descriptor "_func_int_sqlite3_file_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "psVar5 = psVar9;" (assignment_expression "psVar5 = psVar9" identifier = identifier) ;) (if_statement "if (inodeList != (unixInodeInfo *)0x0) {\n              inodeList->pPrev = (unixInodeInfo *)psVar9;\n            }" if (parenthesized_expression "(inodeList != (unixInodeInfo *)0x0)" ( (binary_expression "inodeList != (unixInodeInfo *)0x0" identifier != (cast_expression "(unixInodeInfo *)0x0" ( (type_descriptor "unixInodeInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              inodeList->pPrev = (unixInodeInfo *)psVar9;\n            }" { (expression_statement "inodeList->pPrev = (unixInodeInfo *)psVar9;" (assignment_expression "inodeList->pPrev = (unixInodeInfo *)psVar9" (field_expression "inodeList->pPrev" identifier -> field_identifier) = (cast_expression "(unixInodeInfo *)psVar9" ( (type_descriptor "unixInodeInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (labeled_statement "LAB_0005ed6d:\n            inodeList = (unixInodeInfo *)psVar5;" statement_identifier : (expression_statement "inodeList = (unixInodeInfo *)psVar5;" (assignment_expression "inodeList = (unixInodeInfo *)psVar5" identifier = (cast_expression "(unixInodeInfo *)psVar5" ( (type_descriptor "unixInodeInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;)) (expression_statement "pFile[2].pMethods = psVar9;" (assignment_expression "pFile[2].pMethods = psVar9" (field_expression "pFile[2].pMethods" (subscript_expression "pFile[2]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "sqlite3_mutex_leave(unixBigLock);" (call_expression "sqlite3_mutex_leave(unixBigLock)" identifier (argument_list "(unixBigLock)" ( identifier ))) ;) (expression_statement "pFile[5].pMethods = (sqlite3_io_methods *)0x0;" (assignment_expression "pFile[5].pMethods = (sqlite3_io_methods *)0x0" (field_expression "pFile[5].pMethods" (subscript_expression "pFile[5]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_io_methods *)0x0" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (goto_statement "goto LAB_0005e8ef;" goto statement_identifier ;) })) (expression_statement "iVar8 = 7;" (assignment_expression "iVar8 = 7" identifier = number_literal) ;) }) (else_clause "else {\n          piVar14 = __errno_location();\n          iVar8 = 10;\n          pFile[5].pMethods = (sqlite3_io_methods *)*piVar14;\n        }" else (compound_statement "{\n          piVar14 = __errno_location();\n          iVar8 = 10;\n          pFile[5].pMethods = (sqlite3_io_methods *)*piVar14;\n        }" { (expression_statement "piVar14 = __errno_location();" (assignment_expression "piVar14 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar8 = 10;" (assignment_expression "iVar8 = 10" identifier = number_literal) ;) (expression_statement "pFile[5].pMethods = (sqlite3_io_methods *)*piVar14;" (assignment_expression "pFile[5].pMethods = (sqlite3_io_methods *)*piVar14" (field_expression "pFile[5].pMethods" (subscript_expression "pFile[5]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_io_methods *)*piVar14" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar14" * identifier))) ;) }))) (labeled_statement "LAB_0005efaf:\n        iVar12 = (*aSyscall[1].pCurrent)(local_4c8);" statement_identifier : (expression_statement "iVar12 = (*aSyscall[1].pCurrent)(local_4c8);" (assignment_expression "iVar12 = (*aSyscall[1].pCurrent)(local_4c8)" identifier = (call_expression "(*aSyscall[1].pCurrent)(local_4c8)" (parenthesized_expression "(*aSyscall[1].pCurrent)" ( (pointer_expression "*aSyscall[1].pCurrent" * (field_expression "aSyscall[1].pCurrent" (subscript_expression "aSyscall[1]" identifier [ number_literal ]) . field_identifier)) )) (argument_list "(local_4c8)" ( identifier )))) ;)) (if_statement "if (iVar12 != 0) {\n          robust_close((unixFile *)pFile,0x98f4,lineno_00);\n        }" if (parenthesized_expression "(iVar12 != 0)" ( (binary_expression "iVar12 != 0" identifier != number_literal) )) (compound_statement "{\n          robust_close((unixFile *)pFile,0x98f4,lineno_00);\n        }" { (expression_statement "robust_close((unixFile *)pFile,0x98f4,lineno_00);" (call_expression "robust_close((unixFile *)pFile,0x98f4,lineno_00)" identifier (argument_list "((unixFile *)pFile,0x98f4,lineno_00)" ( (cast_expression "(unixFile *)pFile" ( (type_descriptor "unixFile *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal , identifier ))) ;) })) (expression_statement "sqlite3_mutex_leave(unixBigLock);" (call_expression "sqlite3_mutex_leave(unixBigLock)" identifier (argument_list "(unixBigLock)" ( identifier ))) ;) (expression_statement "pFile[5].pMethods = (sqlite3_io_methods *)0x0;" (assignment_expression "pFile[5].pMethods = (sqlite3_io_methods *)0x0" (field_expression "pFile[5].pMethods" (subscript_expression "pFile[5]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_io_methods *)0x0" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (goto_statement "goto LAB_0005ee17;" goto statement_identifier ;) })) (if_statement "if (psVar9 != &dotlockIoMethods) goto LAB_0005e8e8;" if (parenthesized_expression "(psVar9 != &dotlockIoMethods)" ( (binary_expression "psVar9 != &dotlockIoMethods" identifier != (pointer_expression "&dotlockIoMethods" & identifier)) )) (goto_statement "goto LAB_0005e8e8;" goto statement_identifier ;)) (expression_statement "sVar10 = strlen(zPath);" (assignment_expression "sVar10 = strlen(zPath)" identifier = (call_expression "strlen(zPath)" identifier (argument_list "(zPath)" ( identifier )))) ;) (expression_statement "psVar11 = (sqlite3_io_methods *)sqlite3_malloc64((longlong)(int)(sVar10 + 6));" (assignment_expression "psVar11 = (sqlite3_io_methods *)sqlite3_malloc64((longlong)(int)(sVar10 + 6))" identifier = (cast_expression "(sqlite3_io_methods *)sqlite3_malloc64((longlong)(int)(sVar10 + 6))" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_malloc64((longlong)(int)(sVar10 + 6))" identifier (argument_list "((longlong)(int)(sVar10 + 6))" ( (call_expression "(longlong)(int)(sVar10 + 6)" (call_expression "(longlong)(int)" (parenthesized_expression "(longlong)" ( identifier )) (argument_list "(int)" ( identifier ))) (argument_list "(sVar10 + 6)" ( (binary_expression "sVar10 + 6" identifier + number_literal) ))) ))))) ;) (if_statement "if (psVar11 == (sqlite3_io_methods *)0x0) {\n        pFile[6].pMethods = (sqlite3_io_methods *)0x0;\n        pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n        iVar8 = 7;\n        iVar12 = (*aSyscall[1].pCurrent)(local_4c8);\n        if (iVar12 != 0) {\n          robust_close((unixFile *)pFile,0x9949,lineno);\n        }\n        goto LAB_0005ee17;\n      }" if (parenthesized_expression "(psVar11 == (sqlite3_io_methods *)0x0)" ( (binary_expression "psVar11 == (sqlite3_io_methods *)0x0" identifier == (cast_expression "(sqlite3_io_methods *)0x0" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pFile[6].pMethods = (sqlite3_io_methods *)0x0;\n        pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n        iVar8 = 7;\n        iVar12 = (*aSyscall[1].pCurrent)(local_4c8);\n        if (iVar12 != 0) {\n          robust_close((unixFile *)pFile,0x9949,lineno);\n        }\n        goto LAB_0005ee17;\n      }" { (expression_statement "pFile[6].pMethods = (sqlite3_io_methods *)0x0;" (assignment_expression "pFile[6].pMethods = (sqlite3_io_methods *)0x0" (field_expression "pFile[6].pMethods" (subscript_expression "pFile[6]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_io_methods *)0x0" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pFile[5].pMethods = (sqlite3_io_methods *)0x0;" (assignment_expression "pFile[5].pMethods = (sqlite3_io_methods *)0x0" (field_expression "pFile[5].pMethods" (subscript_expression "pFile[5]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_io_methods *)0x0" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar8 = 7;" (assignment_expression "iVar8 = 7" identifier = number_literal) ;) (expression_statement "iVar12 = (*aSyscall[1].pCurrent)(local_4c8);" (assignment_expression "iVar12 = (*aSyscall[1].pCurrent)(local_4c8)" identifier = (call_expression "(*aSyscall[1].pCurrent)(local_4c8)" (parenthesized_expression "(*aSyscall[1].pCurrent)" ( (pointer_expression "*aSyscall[1].pCurrent" * (field_expression "aSyscall[1].pCurrent" (subscript_expression "aSyscall[1]" identifier [ number_literal ]) . field_identifier)) )) (argument_list "(local_4c8)" ( identifier )))) ;) (if_statement "if (iVar12 != 0) {\n          robust_close((unixFile *)pFile,0x9949,lineno);\n        }" if (parenthesized_expression "(iVar12 != 0)" ( (binary_expression "iVar12 != 0" identifier != number_literal) )) (compound_statement "{\n          robust_close((unixFile *)pFile,0x9949,lineno);\n        }" { (expression_statement "robust_close((unixFile *)pFile,0x9949,lineno);" (call_expression "robust_close((unixFile *)pFile,0x9949,lineno)" identifier (argument_list "((unixFile *)pFile,0x9949,lineno)" ( (cast_expression "(unixFile *)pFile" ( (type_descriptor "unixFile *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal , identifier ))) ;) })) (goto_statement "goto LAB_0005ee17;" goto statement_identifier ;) })) (expression_statement "sqlite3_snprintf(sVar10 + 6,(char *)psVar11,"%s.lock",zPath);" (call_expression "sqlite3_snprintf(sVar10 + 6,(char *)psVar11,"%s.lock",zPath)" identifier (argument_list "(sVar10 + 6,(char *)psVar11,"%s.lock",zPath)" ( (binary_expression "sVar10 + 6" identifier + number_literal) , (cast_expression "(char *)psVar11" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal ""%s.lock"" " string_content ") , identifier ))) ;) (expression_statement "pFile[5].pMethods = (sqlite3_io_methods *)0x0;" (assignment_expression "pFile[5].pMethods = (sqlite3_io_methods *)0x0" (field_expression "pFile[5].pMethods" (subscript_expression "pFile[5]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_io_methods *)0x0" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pFile[6].pMethods = psVar11;" (assignment_expression "pFile[6].pMethods = psVar11" (field_expression "pFile[6].pMethods" (subscript_expression "pFile[6]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "psVar11 = psVar9;" (assignment_expression "psVar11 = psVar9" identifier = identifier) ;) }) (else_clause "else {\n      psVar9 = &nolockIoMethods;\nLAB_0005e8e8:\n      pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n      psVar11 = psVar9;\n    }" else (compound_statement "{\n      psVar9 = &nolockIoMethods;\nLAB_0005e8e8:\n      pFile[5].pMethods = (sqlite3_io_methods *)0x0;\n      psVar11 = psVar9;\n    }" { (expression_statement "psVar9 = &nolockIoMethods;" (assignment_expression "psVar9 = &nolockIoMethods" identifier = (pointer_expression "&nolockIoMethods" & identifier)) ;) (labeled_statement "LAB_0005e8e8:\n      pFile[5].pMethods = (sqlite3_io_methods *)0x0;" statement_identifier : (expression_statement "pFile[5].pMethods = (sqlite3_io_methods *)0x0;" (assignment_expression "pFile[5].pMethods = (sqlite3_io_methods *)0x0" (field_expression "pFile[5].pMethods" (subscript_expression "pFile[5]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_io_methods *)0x0" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) (expression_statement "psVar11 = psVar9;" (assignment_expression "psVar11 = psVar9" identifier = identifier) ;) }))) (labeled_statement "LAB_0005e8ef:\n    pFile->pMethods = psVar11;" statement_identifier : (expression_statement "pFile->pMethods = psVar11;" (assignment_expression "pFile->pMethods = psVar11" (field_expression "pFile->pMethods" identifier -> field_identifier) = identifier) ;)) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (expression_statement "verifyDbFile((unixFile *)pFile);" (call_expression "verifyDbFile((unixFile *)pFile)" identifier (argument_list "((unixFile *)pFile)" ( (cast_expression "(unixFile *)pFile" ( (type_descriptor "unixFile *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) }))) (labeled_statement "LAB_0005e8fb:\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" statement_identifier : (if_statement "if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(iVar2 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar2 != *(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 iVar8;" return identifier ;) })))
(translation_unit "int FUN_0005e640(int param_1,char *param_2,undefined4 *param_3,uint param_4,uint *param_5)\n\n{\n  ushort *puVar1;\n  char cVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  __pid_t _Var5;\n  char *pcVar6;\n  int iVar7;\n  undefined *puVar8;\n  int *piVar9;\n  size_t sVar10;\n  int iVar11;\n  undefined1 *puVar12;\n  int *piVar13;\n  uint uVar14;\n  uint uVar15;\n  int *piVar16;\n  undefined *puVar17;\n  byte *pbVar18;\n  uint uVar19;\n  byte *pbVar20;\n  undefined4 *puVar21;\n  undefined4 uVar22;\n  int in_GS_OFFSET;\n  bool bVar23;\n  bool bVar24;\n  byte bVar25;\n  int iVar26;\n  char *local_4b4;\n  undefined4 local_4ac;\n  uint local_4a8;\n  uint local_4a4;\n  int local_484;\n  int local_480;\n  uint local_474;\n  undefined4 local_46c;\n  undefined4 local_468;\n  int local_42c;\n  int local_428;\n  undefined1 local_423 [513];\n  char local_222 [514];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar25 = 0;\n  uStack_14 = 0x5e649;\n  uVar15 = param_4 & 8;\n  local_4a4 = param_4 & 1;\n  uVar19 = param_4 & 2;\n  bVar24 = false;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar4 = param_4 & 0xfff00;\n  if ((param_4 & 4) != 0) {\n    bVar24 = (uVar4 == 0x4000 || uVar4 == 0x800) || uVar4 == 0x80000;\n  }\n  _Var5 = getpid();\n  if (_Var5 != DAT_000df7ac) {\n    DAT_000df7ac = getpid();\n    sqlite3_randomness(0,0);\n  }\n  *param_3 = 0;\n  param_3[0x14] = 0;\n  puVar21 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);\n  for (uVar14 = (uint)((int)param_3 + (0x54 - (int)((uint)(param_3 + 1) & 0xfffffffc))) >> 2;\n      uVar14 != 0; uVar14 = uVar14 - 1) {\n    *puVar21 = 0;\n    puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n  }\n  if (uVar4 == 0x100) {\n    sqlite3_mutex_enter(DAT_000df7a8);\n    if ((DAT_000df7a4 != (int *)0x0) &&\n       (iVar26 = (*(code *)PTR_FUN_000df474)(param_2,&local_484), piVar13 = DAT_000df7a4,\n       iVar26 == 0)) {\n      for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n        if ((piVar13[1] == local_480 && *piVar13 == local_484) &&\n           (local_428 == piVar13[3] && local_42c == piVar13[2])) {\n          sqlite3_mutex_enter(piVar13[4]);\n          piVar9 = (int *)piVar13[8];\n          if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n          if ((param_4 & 3) != piVar9[1]) goto LAB_0005ea33;\n          piVar16 = piVar13 + 8;\n          goto LAB_0005ee53;\n        }\n      }\n    }\n    sqlite3_mutex_leave(DAT_000df7a8);\n    goto LAB_0005ea54;\n  }\n  iVar26 = -1;\n  local_4b4 = param_2;\n  if (param_2 == (char *)0x0) {\n    local_4b4 = local_222;\n    iVar7 = FUN_0005df50();\n    if (iVar7 != 0) goto LAB_0005e8fb;\n  }\n  goto LAB_0005e781;\nLAB_0005ea3a:\n  sqlite3_mutex_leave(piVar13[4]);\n  sqlite3_mutex_leave(DAT_000df7a8);\nLAB_0005ea54:\n  piVar9 = (int *)sqlite3_malloc64(0xc,0);\n  if (piVar9 == (int *)0x0) {\n    iVar7 = 7;\n    goto LAB_0005e8fb;\n  }\n  iVar26 = -1;\n  goto LAB_0005ee78;\n  while ((param_4 & 3) != piVar9[1]) {\nLAB_0005ea33:\n    piVar16 = piVar9;\n    piVar9 = (int *)piVar16[2];\n    if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n  }\n  piVar16 = piVar16 + 2;\nLAB_0005ee53:\n  *piVar16 = piVar9[2];\n  sqlite3_mutex_leave(piVar13[4]);\n  sqlite3_mutex_leave(DAT_000df7a8);\n  iVar26 = *piVar9;\nLAB_0005ee78:\n  param_3[7] = piVar9;\n  local_4b4 = param_2;\nLAB_0005e781:\n  uVar14 = uVar19;\n  if ((param_4 & 4) != 0) {\n    uVar14 = uVar19 | 0x40;\n  }\n  if ((param_4 & 0x10) != 0) {\n    uVar14 = uVar14 | 0x20080;\n  }\n  if (-1 < iVar26) goto LAB_0005e7af;\n  uVar14 = uVar14 | 0x28000;\n  if ((param_4 & 0x80800) == 0) {\n    if (uVar15 == 0) {\n      if (((param_4 & 0x40) != 0) &&\n         (puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof"),\n         puVar12 != (undefined1 *)0x0)) goto LAB_0005eb2c;\nLAB_0005ebd9:\n      iVar26 = FUN_0003a9a0(uVar15,uVar14);\n      if (iVar26 < 0) {\n        local_4ac = 0;\n        local_4a8 = 0;\n        uVar22 = 0;\n        goto LAB_0005ec06;\n      }\n      goto LAB_0005e7af;\n    }\n    iVar26 = FUN_0003a9a0(uVar15,uVar14);\n    if (-1 < iVar26) goto LAB_0005e7af;\n    uVar22 = 0;\n    local_4ac = 0;\n    local_4a8 = 0x180;\nLAB_0005ec06:\n    piVar13 = __errno_location();\n    iVar26 = *piVar13;\n    if ((bVar24) && (iVar26 == 0xd)) {\n      iVar26 = (*(code *)PTR_access_000df45c)(local_4b4,0);\n      if (iVar26 == 0) {\n        iVar26 = *piVar13;\n        goto LAB_0005ec40;\n      }\n      iVar7 = 0x608;\n      FUN_000383b0();\n      FUN_0003aad0(0x9ae7);\n    }\n    else {\nLAB_0005ec40:\n      if ((uVar19 != 0) && (iVar26 != 0x15)) {\n        param_4 = param_4 & 0xfffffff9 | 1;\n        iVar26 = FUN_0003a9a0();\n        if (-1 < iVar26) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }\n      FUN_000383b0();\n      iVar7 = FUN_0003aad0(0x9ae7);\n      if (iVar7 == 0) goto LAB_0005e8fb;\n    }\nLAB_0005ee17:\n    sqlite3_free(param_3[7]);\n  }\n  else {\n    if (local_4b4 == (char *)0x0) {\n      iVar26 = -1;\n    }\n    else {\n      sVar10 = strlen(local_4b4);\n      iVar26 = (sVar10 & 0x3fffffff) - 1;\n    }\n    cVar2 = local_4b4[iVar26];\n    while (cVar2 != '-') {\n      if ((cVar2 == '.') || (iVar26 == 0)) goto LAB_0005ebd9;\n      iVar26 = iVar26 + -1;\n      cVar2 = local_4b4[iVar26];\n    }\n    puVar12 = local_423;\n    __memcpy_chk(puVar12,local_4b4,iVar26,0x201);\n    local_423[iVar26] = 0;\nLAB_0005eb2c:\n    iVar26 = (*(code *)PTR_FUN_000df474)(puVar12,&local_484);\n    iVar7 = 0x70a;\n    if (iVar26 != 0) goto LAB_0005e8fb;\n    local_4a8 = local_474 & 0x1ff;\n    local_4ac = local_46c;\n    iVar26 = FUN_0003a9a0(uVar15,uVar14);\n    uVar22 = local_468;\n    if (iVar26 < 0) goto LAB_0005ec06;\nLAB_0005eb78:\n    if (((local_4a8 != 0) && ((param_4 & 0x80800) != 0)) &&\n       (iVar7 = (*(code *)PTR_geteuid_000df540)(), iVar7 == 0)) {\n      (*(code *)PTR_fchown_000df534)(iVar26,local_4ac,uVar22);\n    }\nLAB_0005e7af:\n    if (param_5 != (uint *)0x0) {\n      *param_5 = param_4;\n    }\n    piVar13 = (int *)param_3[7];\n    if (piVar13 != (int *)0x0) {\n      *piVar13 = iVar26;\n      piVar13[1] = param_4 & 3;\n    }\n    if (uVar15 != 0) {\n      (*(code *)PTR_unlink_000df504)(local_4b4);\n      uVar15 = 0x20;\n    }\n    uVar22 = DAT_000de40c;\n    uVar19 = uVar15 | 2;\n    if (local_4a4 == 0) {\n      uVar19 = uVar15;\n    }\n    uVar15 = uVar19 | 0x80;\n    if (uVar4 == 0x100) {\n      uVar15 = uVar19;\n    }\n    uVar4 = uVar15 | 8;\n    if (!bVar24) {\n      uVar4 = uVar15;\n    }\n    if ((param_4 & 0x40) == 0) {\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[3] = iVar26;\n      pcVar6 = (char *)0x0;\n      if ((uVar4 & 0x40) != 0) {\n        pcVar6 = param_2;\n      }\n      param_3[8] = param_2;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n    }\n    else {\n      uVar4 = uVar4 | 0x40;\n      param_3[3] = iVar26;\n      param_3[8] = param_2;\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n      pcVar6 = param_2;\n    }\n    iVar7 = sqlite3_uri_boolean(pcVar6,&DAT_000aa9b5,1);\n    bVar24 = iVar7 == 0;\n    if (!bVar24) {\n      puVar1 = (ushort *)((int)param_3 + 0x12);\n      *puVar1 = *puVar1 | 0x10;\n      bVar24 = *puVar1 == 0;\n    }\n    bVar23 = false;\n    iVar7 = 10;\n    pbVar18 = *(byte **)(param_1 + 0x10);\n    pbVar20 = (byte *)"unix-excl";\n    do {\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      bVar23 = *pbVar18 < *pbVar20;\n      bVar24 = *pbVar18 == *pbVar20;\n      pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1;\n      pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1;\n    } while (bVar24);\n    if ((!bVar23 && !bVar24) == bVar23) {\n      *(ushort *)((int)param_3 + 0x12) = *(ushort *)((int)param_3 + 0x12) | 1;\n    }\n    if ((uVar4 & 0x80) == 0) {\n      puVar8 = (undefined *)(*(code *)**(undefined4 **)(param_1 + 0x14))(param_2,param_3);\n      puVar17 = &DAT_000dd9e0;\n      if (puVar8 == &DAT_000dd9e0) {\n        sqlite3_mutex_enter(DAT_000df7a8);\n        iVar7 = (*(code *)PTR_FUN_000df480)(param_3[3],&local_484);\n        piVar13 = DAT_000df7a4;\n        if (iVar7 == 0) {\n          for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }\n          piVar13 = (int *)sqlite3_malloc64(0x34,0);\n          if (piVar13 != (int *)0x0) {\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }\n          iVar7 = 7;\n        }\n        else {\n          piVar13 = __errno_location();\n          iVar7 = 10;\n          param_3[5] = *piVar13;\n        }\nLAB_0005efaf:\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        sqlite3_mutex_leave(DAT_000df7a8);\n        param_3[5] = 0;\n        goto LAB_0005ee17;\n      }\n      if (puVar8 != &DAT_000dd920) goto LAB_0005e8e8;\n      sVar10 = strlen(param_2);\n      iVar7 = sVar10 + 6;\n      iVar11 = sqlite3_malloc64(iVar7,iVar7 >> 0x1f);\n      if (iVar11 == 0) {\n        param_3[6] = 0;\n        param_3[5] = 0;\n        iVar7 = 7;\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        goto LAB_0005ee17;\n      }\n      sqlite3_snprintf(iVar7,iVar11,"%s.lock",param_2);\n      param_3[5] = 0;\n      param_3[6] = iVar11;\n    }\n    else {\n      puVar8 = &DAT_000dd980;\nLAB_0005e8e8:\n      param_3[5] = 0;\n    }\nLAB_0005e8ef:\n    *param_3 = puVar8;\n    iVar7 = 0;\n    FUN_0003a610();\n  }\nLAB_0005e8fb:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar7;\n  }\n                    \n  FUN_000a9ea0();\n}\n\n" (function_definition "int FUN_0005e640(int param_1,char *param_2,undefined4 *param_3,uint param_4,uint *param_5)\n\n{\n  ushort *puVar1;\n  char cVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  __pid_t _Var5;\n  char *pcVar6;\n  int iVar7;\n  undefined *puVar8;\n  int *piVar9;\n  size_t sVar10;\n  int iVar11;\n  undefined1 *puVar12;\n  int *piVar13;\n  uint uVar14;\n  uint uVar15;\n  int *piVar16;\n  undefined *puVar17;\n  byte *pbVar18;\n  uint uVar19;\n  byte *pbVar20;\n  undefined4 *puVar21;\n  undefined4 uVar22;\n  int in_GS_OFFSET;\n  bool bVar23;\n  bool bVar24;\n  byte bVar25;\n  int iVar26;\n  char *local_4b4;\n  undefined4 local_4ac;\n  uint local_4a8;\n  uint local_4a4;\n  int local_484;\n  int local_480;\n  uint local_474;\n  undefined4 local_46c;\n  undefined4 local_468;\n  int local_42c;\n  int local_428;\n  undefined1 local_423 [513];\n  char local_222 [514];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar25 = 0;\n  uStack_14 = 0x5e649;\n  uVar15 = param_4 & 8;\n  local_4a4 = param_4 & 1;\n  uVar19 = param_4 & 2;\n  bVar24 = false;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar4 = param_4 & 0xfff00;\n  if ((param_4 & 4) != 0) {\n    bVar24 = (uVar4 == 0x4000 || uVar4 == 0x800) || uVar4 == 0x80000;\n  }\n  _Var5 = getpid();\n  if (_Var5 != DAT_000df7ac) {\n    DAT_000df7ac = getpid();\n    sqlite3_randomness(0,0);\n  }\n  *param_3 = 0;\n  param_3[0x14] = 0;\n  puVar21 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);\n  for (uVar14 = (uint)((int)param_3 + (0x54 - (int)((uint)(param_3 + 1) & 0xfffffffc))) >> 2;\n      uVar14 != 0; uVar14 = uVar14 - 1) {\n    *puVar21 = 0;\n    puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n  }\n  if (uVar4 == 0x100) {\n    sqlite3_mutex_enter(DAT_000df7a8);\n    if ((DAT_000df7a4 != (int *)0x0) &&\n       (iVar26 = (*(code *)PTR_FUN_000df474)(param_2,&local_484), piVar13 = DAT_000df7a4,\n       iVar26 == 0)) {\n      for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n        if ((piVar13[1] == local_480 && *piVar13 == local_484) &&\n           (local_428 == piVar13[3] && local_42c == piVar13[2])) {\n          sqlite3_mutex_enter(piVar13[4]);\n          piVar9 = (int *)piVar13[8];\n          if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n          if ((param_4 & 3) != piVar9[1]) goto LAB_0005ea33;\n          piVar16 = piVar13 + 8;\n          goto LAB_0005ee53;\n        }\n      }\n    }\n    sqlite3_mutex_leave(DAT_000df7a8);\n    goto LAB_0005ea54;\n  }\n  iVar26 = -1;\n  local_4b4 = param_2;\n  if (param_2 == (char *)0x0) {\n    local_4b4 = local_222;\n    iVar7 = FUN_0005df50();\n    if (iVar7 != 0) goto LAB_0005e8fb;\n  }\n  goto LAB_0005e781;\nLAB_0005ea3a:\n  sqlite3_mutex_leave(piVar13[4]);\n  sqlite3_mutex_leave(DAT_000df7a8);\nLAB_0005ea54:\n  piVar9 = (int *)sqlite3_malloc64(0xc,0);\n  if (piVar9 == (int *)0x0) {\n    iVar7 = 7;\n    goto LAB_0005e8fb;\n  }\n  iVar26 = -1;\n  goto LAB_0005ee78;\n  while ((param_4 & 3) != piVar9[1]) {\nLAB_0005ea33:\n    piVar16 = piVar9;\n    piVar9 = (int *)piVar16[2];\n    if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n  }\n  piVar16 = piVar16 + 2;\nLAB_0005ee53:\n  *piVar16 = piVar9[2];\n  sqlite3_mutex_leave(piVar13[4]);\n  sqlite3_mutex_leave(DAT_000df7a8);\n  iVar26 = *piVar9;\nLAB_0005ee78:\n  param_3[7] = piVar9;\n  local_4b4 = param_2;\nLAB_0005e781:\n  uVar14 = uVar19;\n  if ((param_4 & 4) != 0) {\n    uVar14 = uVar19 | 0x40;\n  }\n  if ((param_4 & 0x10) != 0) {\n    uVar14 = uVar14 | 0x20080;\n  }\n  if (-1 < iVar26) goto LAB_0005e7af;\n  uVar14 = uVar14 | 0x28000;\n  if ((param_4 & 0x80800) == 0) {\n    if (uVar15 == 0) {\n      if (((param_4 & 0x40) != 0) &&\n         (puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof"),\n         puVar12 != (undefined1 *)0x0)) goto LAB_0005eb2c;\nLAB_0005ebd9:\n      iVar26 = FUN_0003a9a0(uVar15,uVar14);\n      if (iVar26 < 0) {\n        local_4ac = 0;\n        local_4a8 = 0;\n        uVar22 = 0;\n        goto LAB_0005ec06;\n      }\n      goto LAB_0005e7af;\n    }\n    iVar26 = FUN_0003a9a0(uVar15,uVar14);\n    if (-1 < iVar26) goto LAB_0005e7af;\n    uVar22 = 0;\n    local_4ac = 0;\n    local_4a8 = 0x180;\nLAB_0005ec06:\n    piVar13 = __errno_location();\n    iVar26 = *piVar13;\n    if ((bVar24) && (iVar26 == 0xd)) {\n      iVar26 = (*(code *)PTR_access_000df45c)(local_4b4,0);\n      if (iVar26 == 0) {\n        iVar26 = *piVar13;\n        goto LAB_0005ec40;\n      }\n      iVar7 = 0x608;\n      FUN_000383b0();\n      FUN_0003aad0(0x9ae7);\n    }\n    else {\nLAB_0005ec40:\n      if ((uVar19 != 0) && (iVar26 != 0x15)) {\n        param_4 = param_4 & 0xfffffff9 | 1;\n        iVar26 = FUN_0003a9a0();\n        if (-1 < iVar26) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }\n      FUN_000383b0();\n      iVar7 = FUN_0003aad0(0x9ae7);\n      if (iVar7 == 0) goto LAB_0005e8fb;\n    }\nLAB_0005ee17:\n    sqlite3_free(param_3[7]);\n  }\n  else {\n    if (local_4b4 == (char *)0x0) {\n      iVar26 = -1;\n    }\n    else {\n      sVar10 = strlen(local_4b4);\n      iVar26 = (sVar10 & 0x3fffffff) - 1;\n    }\n    cVar2 = local_4b4[iVar26];\n    while (cVar2 != '-') {\n      if ((cVar2 == '.') || (iVar26 == 0)) goto LAB_0005ebd9;\n      iVar26 = iVar26 + -1;\n      cVar2 = local_4b4[iVar26];\n    }\n    puVar12 = local_423;\n    __memcpy_chk(puVar12,local_4b4,iVar26,0x201);\n    local_423[iVar26] = 0;\nLAB_0005eb2c:\n    iVar26 = (*(code *)PTR_FUN_000df474)(puVar12,&local_484);\n    iVar7 = 0x70a;\n    if (iVar26 != 0) goto LAB_0005e8fb;\n    local_4a8 = local_474 & 0x1ff;\n    local_4ac = local_46c;\n    iVar26 = FUN_0003a9a0(uVar15,uVar14);\n    uVar22 = local_468;\n    if (iVar26 < 0) goto LAB_0005ec06;\nLAB_0005eb78:\n    if (((local_4a8 != 0) && ((param_4 & 0x80800) != 0)) &&\n       (iVar7 = (*(code *)PTR_geteuid_000df540)(), iVar7 == 0)) {\n      (*(code *)PTR_fchown_000df534)(iVar26,local_4ac,uVar22);\n    }\nLAB_0005e7af:\n    if (param_5 != (uint *)0x0) {\n      *param_5 = param_4;\n    }\n    piVar13 = (int *)param_3[7];\n    if (piVar13 != (int *)0x0) {\n      *piVar13 = iVar26;\n      piVar13[1] = param_4 & 3;\n    }\n    if (uVar15 != 0) {\n      (*(code *)PTR_unlink_000df504)(local_4b4);\n      uVar15 = 0x20;\n    }\n    uVar22 = DAT_000de40c;\n    uVar19 = uVar15 | 2;\n    if (local_4a4 == 0) {\n      uVar19 = uVar15;\n    }\n    uVar15 = uVar19 | 0x80;\n    if (uVar4 == 0x100) {\n      uVar15 = uVar19;\n    }\n    uVar4 = uVar15 | 8;\n    if (!bVar24) {\n      uVar4 = uVar15;\n    }\n    if ((param_4 & 0x40) == 0) {\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[3] = iVar26;\n      pcVar6 = (char *)0x0;\n      if ((uVar4 & 0x40) != 0) {\n        pcVar6 = param_2;\n      }\n      param_3[8] = param_2;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n    }\n    else {\n      uVar4 = uVar4 | 0x40;\n      param_3[3] = iVar26;\n      param_3[8] = param_2;\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n      pcVar6 = param_2;\n    }\n    iVar7 = sqlite3_uri_boolean(pcVar6,&DAT_000aa9b5,1);\n    bVar24 = iVar7 == 0;\n    if (!bVar24) {\n      puVar1 = (ushort *)((int)param_3 + 0x12);\n      *puVar1 = *puVar1 | 0x10;\n      bVar24 = *puVar1 == 0;\n    }\n    bVar23 = false;\n    iVar7 = 10;\n    pbVar18 = *(byte **)(param_1 + 0x10);\n    pbVar20 = (byte *)"unix-excl";\n    do {\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      bVar23 = *pbVar18 < *pbVar20;\n      bVar24 = *pbVar18 == *pbVar20;\n      pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1;\n      pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1;\n    } while (bVar24);\n    if ((!bVar23 && !bVar24) == bVar23) {\n      *(ushort *)((int)param_3 + 0x12) = *(ushort *)((int)param_3 + 0x12) | 1;\n    }\n    if ((uVar4 & 0x80) == 0) {\n      puVar8 = (undefined *)(*(code *)**(undefined4 **)(param_1 + 0x14))(param_2,param_3);\n      puVar17 = &DAT_000dd9e0;\n      if (puVar8 == &DAT_000dd9e0) {\n        sqlite3_mutex_enter(DAT_000df7a8);\n        iVar7 = (*(code *)PTR_FUN_000df480)(param_3[3],&local_484);\n        piVar13 = DAT_000df7a4;\n        if (iVar7 == 0) {\n          for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }\n          piVar13 = (int *)sqlite3_malloc64(0x34,0);\n          if (piVar13 != (int *)0x0) {\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }\n          iVar7 = 7;\n        }\n        else {\n          piVar13 = __errno_location();\n          iVar7 = 10;\n          param_3[5] = *piVar13;\n        }\nLAB_0005efaf:\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        sqlite3_mutex_leave(DAT_000df7a8);\n        param_3[5] = 0;\n        goto LAB_0005ee17;\n      }\n      if (puVar8 != &DAT_000dd920) goto LAB_0005e8e8;\n      sVar10 = strlen(param_2);\n      iVar7 = sVar10 + 6;\n      iVar11 = sqlite3_malloc64(iVar7,iVar7 >> 0x1f);\n      if (iVar11 == 0) {\n        param_3[6] = 0;\n        param_3[5] = 0;\n        iVar7 = 7;\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        goto LAB_0005ee17;\n      }\n      sqlite3_snprintf(iVar7,iVar11,"%s.lock",param_2);\n      param_3[5] = 0;\n      param_3[6] = iVar11;\n    }\n    else {\n      puVar8 = &DAT_000dd980;\nLAB_0005e8e8:\n      param_3[5] = 0;\n    }\nLAB_0005e8ef:\n    *param_3 = puVar8;\n    iVar7 = 0;\n    FUN_0003a610();\n  }\nLAB_0005e8fb:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar7;\n  }\n                    \n  FUN_000a9ea0();\n}" primitive_type (function_declarator "FUN_0005e640(int param_1,char *param_2,undefined4 *param_3,uint param_4,uint *param_5)" identifier (parameter_list "(int param_1,char *param_2,undefined4 *param_3,uint param_4,uint *param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "uint *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  ushort *puVar1;\n  char cVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  __pid_t _Var5;\n  char *pcVar6;\n  int iVar7;\n  undefined *puVar8;\n  int *piVar9;\n  size_t sVar10;\n  int iVar11;\n  undefined1 *puVar12;\n  int *piVar13;\n  uint uVar14;\n  uint uVar15;\n  int *piVar16;\n  undefined *puVar17;\n  byte *pbVar18;\n  uint uVar19;\n  byte *pbVar20;\n  undefined4 *puVar21;\n  undefined4 uVar22;\n  int in_GS_OFFSET;\n  bool bVar23;\n  bool bVar24;\n  byte bVar25;\n  int iVar26;\n  char *local_4b4;\n  undefined4 local_4ac;\n  uint local_4a8;\n  uint local_4a4;\n  int local_484;\n  int local_480;\n  uint local_474;\n  undefined4 local_46c;\n  undefined4 local_468;\n  int local_42c;\n  int local_428;\n  undefined1 local_423 [513];\n  char local_222 [514];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar25 = 0;\n  uStack_14 = 0x5e649;\n  uVar15 = param_4 & 8;\n  local_4a4 = param_4 & 1;\n  uVar19 = param_4 & 2;\n  bVar24 = false;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar4 = param_4 & 0xfff00;\n  if ((param_4 & 4) != 0) {\n    bVar24 = (uVar4 == 0x4000 || uVar4 == 0x800) || uVar4 == 0x80000;\n  }\n  _Var5 = getpid();\n  if (_Var5 != DAT_000df7ac) {\n    DAT_000df7ac = getpid();\n    sqlite3_randomness(0,0);\n  }\n  *param_3 = 0;\n  param_3[0x14] = 0;\n  puVar21 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);\n  for (uVar14 = (uint)((int)param_3 + (0x54 - (int)((uint)(param_3 + 1) & 0xfffffffc))) >> 2;\n      uVar14 != 0; uVar14 = uVar14 - 1) {\n    *puVar21 = 0;\n    puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n  }\n  if (uVar4 == 0x100) {\n    sqlite3_mutex_enter(DAT_000df7a8);\n    if ((DAT_000df7a4 != (int *)0x0) &&\n       (iVar26 = (*(code *)PTR_FUN_000df474)(param_2,&local_484), piVar13 = DAT_000df7a4,\n       iVar26 == 0)) {\n      for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n        if ((piVar13[1] == local_480 && *piVar13 == local_484) &&\n           (local_428 == piVar13[3] && local_42c == piVar13[2])) {\n          sqlite3_mutex_enter(piVar13[4]);\n          piVar9 = (int *)piVar13[8];\n          if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n          if ((param_4 & 3) != piVar9[1]) goto LAB_0005ea33;\n          piVar16 = piVar13 + 8;\n          goto LAB_0005ee53;\n        }\n      }\n    }\n    sqlite3_mutex_leave(DAT_000df7a8);\n    goto LAB_0005ea54;\n  }\n  iVar26 = -1;\n  local_4b4 = param_2;\n  if (param_2 == (char *)0x0) {\n    local_4b4 = local_222;\n    iVar7 = FUN_0005df50();\n    if (iVar7 != 0) goto LAB_0005e8fb;\n  }\n  goto LAB_0005e781;\nLAB_0005ea3a:\n  sqlite3_mutex_leave(piVar13[4]);\n  sqlite3_mutex_leave(DAT_000df7a8);\nLAB_0005ea54:\n  piVar9 = (int *)sqlite3_malloc64(0xc,0);\n  if (piVar9 == (int *)0x0) {\n    iVar7 = 7;\n    goto LAB_0005e8fb;\n  }\n  iVar26 = -1;\n  goto LAB_0005ee78;\n  while ((param_4 & 3) != piVar9[1]) {\nLAB_0005ea33:\n    piVar16 = piVar9;\n    piVar9 = (int *)piVar16[2];\n    if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n  }\n  piVar16 = piVar16 + 2;\nLAB_0005ee53:\n  *piVar16 = piVar9[2];\n  sqlite3_mutex_leave(piVar13[4]);\n  sqlite3_mutex_leave(DAT_000df7a8);\n  iVar26 = *piVar9;\nLAB_0005ee78:\n  param_3[7] = piVar9;\n  local_4b4 = param_2;\nLAB_0005e781:\n  uVar14 = uVar19;\n  if ((param_4 & 4) != 0) {\n    uVar14 = uVar19 | 0x40;\n  }\n  if ((param_4 & 0x10) != 0) {\n    uVar14 = uVar14 | 0x20080;\n  }\n  if (-1 < iVar26) goto LAB_0005e7af;\n  uVar14 = uVar14 | 0x28000;\n  if ((param_4 & 0x80800) == 0) {\n    if (uVar15 == 0) {\n      if (((param_4 & 0x40) != 0) &&\n         (puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof"),\n         puVar12 != (undefined1 *)0x0)) goto LAB_0005eb2c;\nLAB_0005ebd9:\n      iVar26 = FUN_0003a9a0(uVar15,uVar14);\n      if (iVar26 < 0) {\n        local_4ac = 0;\n        local_4a8 = 0;\n        uVar22 = 0;\n        goto LAB_0005ec06;\n      }\n      goto LAB_0005e7af;\n    }\n    iVar26 = FUN_0003a9a0(uVar15,uVar14);\n    if (-1 < iVar26) goto LAB_0005e7af;\n    uVar22 = 0;\n    local_4ac = 0;\n    local_4a8 = 0x180;\nLAB_0005ec06:\n    piVar13 = __errno_location();\n    iVar26 = *piVar13;\n    if ((bVar24) && (iVar26 == 0xd)) {\n      iVar26 = (*(code *)PTR_access_000df45c)(local_4b4,0);\n      if (iVar26 == 0) {\n        iVar26 = *piVar13;\n        goto LAB_0005ec40;\n      }\n      iVar7 = 0x608;\n      FUN_000383b0();\n      FUN_0003aad0(0x9ae7);\n    }\n    else {\nLAB_0005ec40:\n      if ((uVar19 != 0) && (iVar26 != 0x15)) {\n        param_4 = param_4 & 0xfffffff9 | 1;\n        iVar26 = FUN_0003a9a0();\n        if (-1 < iVar26) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }\n      FUN_000383b0();\n      iVar7 = FUN_0003aad0(0x9ae7);\n      if (iVar7 == 0) goto LAB_0005e8fb;\n    }\nLAB_0005ee17:\n    sqlite3_free(param_3[7]);\n  }\n  else {\n    if (local_4b4 == (char *)0x0) {\n      iVar26 = -1;\n    }\n    else {\n      sVar10 = strlen(local_4b4);\n      iVar26 = (sVar10 & 0x3fffffff) - 1;\n    }\n    cVar2 = local_4b4[iVar26];\n    while (cVar2 != '-') {\n      if ((cVar2 == '.') || (iVar26 == 0)) goto LAB_0005ebd9;\n      iVar26 = iVar26 + -1;\n      cVar2 = local_4b4[iVar26];\n    }\n    puVar12 = local_423;\n    __memcpy_chk(puVar12,local_4b4,iVar26,0x201);\n    local_423[iVar26] = 0;\nLAB_0005eb2c:\n    iVar26 = (*(code *)PTR_FUN_000df474)(puVar12,&local_484);\n    iVar7 = 0x70a;\n    if (iVar26 != 0) goto LAB_0005e8fb;\n    local_4a8 = local_474 & 0x1ff;\n    local_4ac = local_46c;\n    iVar26 = FUN_0003a9a0(uVar15,uVar14);\n    uVar22 = local_468;\n    if (iVar26 < 0) goto LAB_0005ec06;\nLAB_0005eb78:\n    if (((local_4a8 != 0) && ((param_4 & 0x80800) != 0)) &&\n       (iVar7 = (*(code *)PTR_geteuid_000df540)(), iVar7 == 0)) {\n      (*(code *)PTR_fchown_000df534)(iVar26,local_4ac,uVar22);\n    }\nLAB_0005e7af:\n    if (param_5 != (uint *)0x0) {\n      *param_5 = param_4;\n    }\n    piVar13 = (int *)param_3[7];\n    if (piVar13 != (int *)0x0) {\n      *piVar13 = iVar26;\n      piVar13[1] = param_4 & 3;\n    }\n    if (uVar15 != 0) {\n      (*(code *)PTR_unlink_000df504)(local_4b4);\n      uVar15 = 0x20;\n    }\n    uVar22 = DAT_000de40c;\n    uVar19 = uVar15 | 2;\n    if (local_4a4 == 0) {\n      uVar19 = uVar15;\n    }\n    uVar15 = uVar19 | 0x80;\n    if (uVar4 == 0x100) {\n      uVar15 = uVar19;\n    }\n    uVar4 = uVar15 | 8;\n    if (!bVar24) {\n      uVar4 = uVar15;\n    }\n    if ((param_4 & 0x40) == 0) {\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[3] = iVar26;\n      pcVar6 = (char *)0x0;\n      if ((uVar4 & 0x40) != 0) {\n        pcVar6 = param_2;\n      }\n      param_3[8] = param_2;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n    }\n    else {\n      uVar4 = uVar4 | 0x40;\n      param_3[3] = iVar26;\n      param_3[8] = param_2;\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n      pcVar6 = param_2;\n    }\n    iVar7 = sqlite3_uri_boolean(pcVar6,&DAT_000aa9b5,1);\n    bVar24 = iVar7 == 0;\n    if (!bVar24) {\n      puVar1 = (ushort *)((int)param_3 + 0x12);\n      *puVar1 = *puVar1 | 0x10;\n      bVar24 = *puVar1 == 0;\n    }\n    bVar23 = false;\n    iVar7 = 10;\n    pbVar18 = *(byte **)(param_1 + 0x10);\n    pbVar20 = (byte *)"unix-excl";\n    do {\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      bVar23 = *pbVar18 < *pbVar20;\n      bVar24 = *pbVar18 == *pbVar20;\n      pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1;\n      pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1;\n    } while (bVar24);\n    if ((!bVar23 && !bVar24) == bVar23) {\n      *(ushort *)((int)param_3 + 0x12) = *(ushort *)((int)param_3 + 0x12) | 1;\n    }\n    if ((uVar4 & 0x80) == 0) {\n      puVar8 = (undefined *)(*(code *)**(undefined4 **)(param_1 + 0x14))(param_2,param_3);\n      puVar17 = &DAT_000dd9e0;\n      if (puVar8 == &DAT_000dd9e0) {\n        sqlite3_mutex_enter(DAT_000df7a8);\n        iVar7 = (*(code *)PTR_FUN_000df480)(param_3[3],&local_484);\n        piVar13 = DAT_000df7a4;\n        if (iVar7 == 0) {\n          for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }\n          piVar13 = (int *)sqlite3_malloc64(0x34,0);\n          if (piVar13 != (int *)0x0) {\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }\n          iVar7 = 7;\n        }\n        else {\n          piVar13 = __errno_location();\n          iVar7 = 10;\n          param_3[5] = *piVar13;\n        }\nLAB_0005efaf:\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        sqlite3_mutex_leave(DAT_000df7a8);\n        param_3[5] = 0;\n        goto LAB_0005ee17;\n      }\n      if (puVar8 != &DAT_000dd920) goto LAB_0005e8e8;\n      sVar10 = strlen(param_2);\n      iVar7 = sVar10 + 6;\n      iVar11 = sqlite3_malloc64(iVar7,iVar7 >> 0x1f);\n      if (iVar11 == 0) {\n        param_3[6] = 0;\n        param_3[5] = 0;\n        iVar7 = 7;\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        goto LAB_0005ee17;\n      }\n      sqlite3_snprintf(iVar7,iVar11,"%s.lock",param_2);\n      param_3[5] = 0;\n      param_3[6] = iVar11;\n    }\n    else {\n      puVar8 = &DAT_000dd980;\nLAB_0005e8e8:\n      param_3[5] = 0;\n    }\nLAB_0005e8ef:\n    *param_3 = puVar8;\n    iVar7 = 0;\n    FUN_0003a610();\n  }\nLAB_0005e8fb:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar7;\n  }\n                    \n  FUN_000a9ea0();\n}" { (declaration "ushort *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "__pid_t _Var5;" type_identifier identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "int *piVar9;" primitive_type (pointer_declarator "*piVar9" * identifier) ;) (declaration "size_t sVar10;" primitive_type identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "undefined1 *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "int *piVar13;" primitive_type (pointer_declarator "*piVar13" * identifier) ;) (declaration "uint uVar14;" type_identifier identifier ;) (declaration "uint uVar15;" type_identifier identifier ;) (declaration "int *piVar16;" primitive_type (pointer_declarator "*piVar16" * identifier) ;) (declaration "undefined *puVar17;" type_identifier (pointer_declarator "*puVar17" * identifier) ;) (declaration "byte *pbVar18;" type_identifier (pointer_declarator "*pbVar18" * identifier) ;) (declaration "uint uVar19;" type_identifier identifier ;) (declaration "byte *pbVar20;" type_identifier (pointer_declarator "*pbVar20" * identifier) ;) (declaration "undefined4 *puVar21;" type_identifier (pointer_declarator "*puVar21" * identifier) ;) (declaration "undefined4 uVar22;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar23;" primitive_type identifier ;) (declaration "bool bVar24;" primitive_type identifier ;) (declaration "byte bVar25;" type_identifier identifier ;) (declaration "int iVar26;" primitive_type identifier ;) (declaration "char *local_4b4;" primitive_type (pointer_declarator "*local_4b4" * identifier) ;) (declaration "undefined4 local_4ac;" type_identifier identifier ;) (declaration "uint local_4a8;" type_identifier identifier ;) (declaration "uint local_4a4;" type_identifier identifier ;) (declaration "int local_484;" primitive_type identifier ;) (declaration "int local_480;" primitive_type identifier ;) (declaration "uint local_474;" type_identifier identifier ;) (declaration "undefined4 local_46c;" type_identifier identifier ;) (declaration "undefined4 local_468;" type_identifier identifier ;) (declaration "int local_42c;" primitive_type identifier ;) (declaration "int local_428;" primitive_type identifier ;) (declaration "undefined1 local_423 [513];" type_identifier (array_declarator "local_423 [513]" identifier [ number_literal ]) ;) (declaration "char local_222 [514];" primitive_type (array_declarator "local_222 [514]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "bVar25 = 0;" (assignment_expression "bVar25 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 0x5e649;" (assignment_expression "uStack_14 = 0x5e649" identifier = number_literal) ;) (expression_statement "uVar15 = param_4 & 8;" (assignment_expression "uVar15 = param_4 & 8" identifier = (binary_expression "param_4 & 8" identifier & number_literal)) ;) (expression_statement "local_4a4 = param_4 & 1;" (assignment_expression "local_4a4 = param_4 & 1" identifier = (binary_expression "param_4 & 1" identifier & number_literal)) ;) (expression_statement "uVar19 = param_4 & 2;" (assignment_expression "uVar19 = param_4 & 2" identifier = (binary_expression "param_4 & 2" identifier & number_literal)) ;) (expression_statement "bVar24 = false;" (assignment_expression "bVar24 = false" identifier = false) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = param_4 & 0xfff00;" (assignment_expression "uVar4 = param_4 & 0xfff00" identifier = (binary_expression "param_4 & 0xfff00" identifier & number_literal)) ;) (if_statement "if ((param_4 & 4) != 0) {\n    bVar24 = (uVar4 == 0x4000 || uVar4 == 0x800) || uVar4 == 0x80000;\n  }" if (parenthesized_expression "((param_4 & 4) != 0)" ( (binary_expression "(param_4 & 4) != 0" (parenthesized_expression "(param_4 & 4)" ( (binary_expression "param_4 & 4" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    bVar24 = (uVar4 == 0x4000 || uVar4 == 0x800) || uVar4 == 0x80000;\n  }" { (expression_statement "bVar24 = (uVar4 == 0x4000 || uVar4 == 0x800) || uVar4 == 0x80000;" (assignment_expression "bVar24 = (uVar4 == 0x4000 || uVar4 == 0x800) || uVar4 == 0x80000" identifier = (binary_expression "(uVar4 == 0x4000 || uVar4 == 0x800) || uVar4 == 0x80000" (parenthesized_expression "(uVar4 == 0x4000 || uVar4 == 0x800)" ( (binary_expression "uVar4 == 0x4000 || uVar4 == 0x800" (binary_expression "uVar4 == 0x4000" identifier == number_literal) || (binary_expression "uVar4 == 0x800" identifier == number_literal)) )) || (binary_expression "uVar4 == 0x80000" identifier == number_literal))) ;) })) (expression_statement "_Var5 = getpid();" (assignment_expression "_Var5 = getpid()" identifier = (call_expression "getpid()" identifier (argument_list "()" ( )))) ;) (if_statement "if (_Var5 != DAT_000df7ac) {\n    DAT_000df7ac = getpid();\n    sqlite3_randomness(0,0);\n  }" if (parenthesized_expression "(_Var5 != DAT_000df7ac)" ( (binary_expression "_Var5 != DAT_000df7ac" identifier != identifier) )) (compound_statement "{\n    DAT_000df7ac = getpid();\n    sqlite3_randomness(0,0);\n  }" { (expression_statement "DAT_000df7ac = getpid();" (assignment_expression "DAT_000df7ac = getpid()" identifier = (call_expression "getpid()" identifier (argument_list "()" ( )))) ;) (expression_statement "sqlite3_randomness(0,0);" (call_expression "sqlite3_randomness(0,0)" identifier (argument_list "(0,0)" ( number_literal , number_literal ))) ;) })) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) (expression_statement "param_3[0x14] = 0;" (assignment_expression "param_3[0x14] = 0" (subscript_expression "param_3[0x14]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar21 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);" (assignment_expression "puVar21 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)(param_3 + 1) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(param_3 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(param_3 + 1) & 0xfffffffc" (call_expression "(uint)(param_3 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 + 1)" ( (binary_expression "param_3 + 1" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar14 = (uint)((int)param_3 + (0x54 - (int)((uint)(param_3 + 1) & 0xfffffffc))) >> 2;\n      uVar14 != 0; uVar14 = uVar14 - 1) {\n    *puVar21 = 0;\n    puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n  }" for ( (assignment_expression "uVar14 = (uint)((int)param_3 + (0x54 - (int)((uint)(param_3 + 1) & 0xfffffffc))) >> 2" identifier = (binary_expression "(uint)((int)param_3 + (0x54 - (int)((uint)(param_3 + 1) & 0xfffffffc))) >> 2" (call_expression "(uint)((int)param_3 + (0x54 - (int)((uint)(param_3 + 1) & 0xfffffffc)))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)param_3 + (0x54 - (int)((uint)(param_3 + 1) & 0xfffffffc)))" ( (binary_expression "(int)param_3 + (0x54 - (int)((uint)(param_3 + 1) & 0xfffffffc))" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x54 - (int)((uint)(param_3 + 1) & 0xfffffffc))" ( (binary_expression "0x54 - (int)((uint)(param_3 + 1) & 0xfffffffc)" number_literal - (cast_expression "(int)((uint)(param_3 + 1) & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(param_3 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(param_3 + 1) & 0xfffffffc" (call_expression "(uint)(param_3 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 + 1)" ( (binary_expression "param_3 + 1" identifier + number_literal) ))) & number_literal) )))) ))) ))) >> number_literal)) ; (binary_expression "uVar14 != 0" identifier != number_literal) ; (assignment_expression "uVar14 = uVar14 - 1" identifier = (binary_expression "uVar14 - 1" identifier - number_literal)) ) (compound_statement "{\n    *puVar21 = 0;\n    puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n  }" { (expression_statement "*puVar21 = 0;" (assignment_expression "*puVar21 = 0" (pointer_expression "*puVar21" * identifier) = number_literal) ;) (expression_statement "puVar21 = puVar21 + (uint)bVar25 * -2 + 1;" (assignment_expression "puVar21 = puVar21 + (uint)bVar25 * -2 + 1" identifier = (binary_expression "puVar21 + (uint)bVar25 * -2 + 1" (binary_expression "puVar21 + (uint)bVar25 * -2" identifier + (binary_expression "(uint)bVar25 * -2" (cast_expression "(uint)bVar25" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (if_statement "if (uVar4 == 0x100) {\n    sqlite3_mutex_enter(DAT_000df7a8);\n    if ((DAT_000df7a4 != (int *)0x0) &&\n       (iVar26 = (*(code *)PTR_FUN_000df474)(param_2,&local_484), piVar13 = DAT_000df7a4,\n       iVar26 == 0)) {\n      for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n        if ((piVar13[1] == local_480 && *piVar13 == local_484) &&\n           (local_428 == piVar13[3] && local_42c == piVar13[2])) {\n          sqlite3_mutex_enter(piVar13[4]);\n          piVar9 = (int *)piVar13[8];\n          if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n          if ((param_4 & 3) != piVar9[1]) goto LAB_0005ea33;\n          piVar16 = piVar13 + 8;\n          goto LAB_0005ee53;\n        }\n      }\n    }\n    sqlite3_mutex_leave(DAT_000df7a8);\n    goto LAB_0005ea54;\n  }" if (parenthesized_expression "(uVar4 == 0x100)" ( (binary_expression "uVar4 == 0x100" identifier == number_literal) )) (compound_statement "{\n    sqlite3_mutex_enter(DAT_000df7a8);\n    if ((DAT_000df7a4 != (int *)0x0) &&\n       (iVar26 = (*(code *)PTR_FUN_000df474)(param_2,&local_484), piVar13 = DAT_000df7a4,\n       iVar26 == 0)) {\n      for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n        if ((piVar13[1] == local_480 && *piVar13 == local_484) &&\n           (local_428 == piVar13[3] && local_42c == piVar13[2])) {\n          sqlite3_mutex_enter(piVar13[4]);\n          piVar9 = (int *)piVar13[8];\n          if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n          if ((param_4 & 3) != piVar9[1]) goto LAB_0005ea33;\n          piVar16 = piVar13 + 8;\n          goto LAB_0005ee53;\n        }\n      }\n    }\n    sqlite3_mutex_leave(DAT_000df7a8);\n    goto LAB_0005ea54;\n  }" { (expression_statement "sqlite3_mutex_enter(DAT_000df7a8);" (call_expression "sqlite3_mutex_enter(DAT_000df7a8)" identifier (argument_list "(DAT_000df7a8)" ( identifier ))) ;) (if_statement "if ((DAT_000df7a4 != (int *)0x0) &&\n       (iVar26 = (*(code *)PTR_FUN_000df474)(param_2,&local_484), piVar13 = DAT_000df7a4,\n       iVar26 == 0)) {\n      for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n        if ((piVar13[1] == local_480 && *piVar13 == local_484) &&\n           (local_428 == piVar13[3] && local_42c == piVar13[2])) {\n          sqlite3_mutex_enter(piVar13[4]);\n          piVar9 = (int *)piVar13[8];\n          if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n          if ((param_4 & 3) != piVar9[1]) goto LAB_0005ea33;\n          piVar16 = piVar13 + 8;\n          goto LAB_0005ee53;\n        }\n      }\n    }" if (parenthesized_expression "((DAT_000df7a4 != (int *)0x0) &&\n       (iVar26 = (*(code *)PTR_FUN_000df474)(param_2,&local_484), piVar13 = DAT_000df7a4,\n       iVar26 == 0))" ( (binary_expression "(DAT_000df7a4 != (int *)0x0) &&\n       (iVar26 = (*(code *)PTR_FUN_000df474)(param_2,&local_484), piVar13 = DAT_000df7a4,\n       iVar26 == 0)" (parenthesized_expression "(DAT_000df7a4 != (int *)0x0)" ( (binary_expression "DAT_000df7a4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(iVar26 = (*(code *)PTR_FUN_000df474)(param_2,&local_484), piVar13 = DAT_000df7a4,\n       iVar26 == 0)" ( (comma_expression "iVar26 = (*(code *)PTR_FUN_000df474)(param_2,&local_484), piVar13 = DAT_000df7a4,\n       iVar26 == 0" (assignment_expression "iVar26 = (*(code *)PTR_FUN_000df474)(param_2,&local_484)" identifier = (call_expression "(*(code *)PTR_FUN_000df474)(param_2,&local_484)" (parenthesized_expression "(*(code *)PTR_FUN_000df474)" ( (pointer_expression "*(code *)PTR_FUN_000df474" * (cast_expression "(code *)PTR_FUN_000df474" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,&local_484)" ( identifier , (pointer_expression "&local_484" & identifier) )))) , (comma_expression "piVar13 = DAT_000df7a4,\n       iVar26 == 0" (assignment_expression "piVar13 = DAT_000df7a4" identifier = identifier) , (binary_expression "iVar26 == 0" identifier == number_literal))) ))) )) (compound_statement "{\n      for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n        if ((piVar13[1] == local_480 && *piVar13 == local_484) &&\n           (local_428 == piVar13[3] && local_42c == piVar13[2])) {\n          sqlite3_mutex_enter(piVar13[4]);\n          piVar9 = (int *)piVar13[8];\n          if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n          if ((param_4 & 3) != piVar9[1]) goto LAB_0005ea33;\n          piVar16 = piVar13 + 8;\n          goto LAB_0005ee53;\n        }\n      }\n    }" { (for_statement "for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n        if ((piVar13[1] == local_480 && *piVar13 == local_484) &&\n           (local_428 == piVar13[3] && local_42c == piVar13[2])) {\n          sqlite3_mutex_enter(piVar13[4]);\n          piVar9 = (int *)piVar13[8];\n          if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n          if ((param_4 & 3) != piVar9[1]) goto LAB_0005ea33;\n          piVar16 = piVar13 + 8;\n          goto LAB_0005ee53;\n        }\n      }" for ( ; (binary_expression "piVar13 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "piVar13 = (int *)piVar13[0xb]" identifier = (cast_expression "(int *)piVar13[0xb]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar13[0xb]" identifier [ number_literal ]))) ) (compound_statement "{\n        if ((piVar13[1] == local_480 && *piVar13 == local_484) &&\n           (local_428 == piVar13[3] && local_42c == piVar13[2])) {\n          sqlite3_mutex_enter(piVar13[4]);\n          piVar9 = (int *)piVar13[8];\n          if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n          if ((param_4 & 3) != piVar9[1]) goto LAB_0005ea33;\n          piVar16 = piVar13 + 8;\n          goto LAB_0005ee53;\n        }\n      }" { (if_statement "if ((piVar13[1] == local_480 && *piVar13 == local_484) &&\n           (local_428 == piVar13[3] && local_42c == piVar13[2])) {\n          sqlite3_mutex_enter(piVar13[4]);\n          piVar9 = (int *)piVar13[8];\n          if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n          if ((param_4 & 3) != piVar9[1]) goto LAB_0005ea33;\n          piVar16 = piVar13 + 8;\n          goto LAB_0005ee53;\n        }" if (parenthesized_expression "((piVar13[1] == local_480 && *piVar13 == local_484) &&\n           (local_428 == piVar13[3] && local_42c == piVar13[2]))" ( (binary_expression "(piVar13[1] == local_480 && *piVar13 == local_484) &&\n           (local_428 == piVar13[3] && local_42c == piVar13[2])" (parenthesized_expression "(piVar13[1] == local_480 && *piVar13 == local_484)" ( (binary_expression "piVar13[1] == local_480 && *piVar13 == local_484" (binary_expression "piVar13[1] == local_480" (subscript_expression "piVar13[1]" identifier [ number_literal ]) == identifier) && (binary_expression "*piVar13 == local_484" (pointer_expression "*piVar13" * identifier) == identifier)) )) && (parenthesized_expression "(local_428 == piVar13[3] && local_42c == piVar13[2])" ( (binary_expression "local_428 == piVar13[3] && local_42c == piVar13[2]" (binary_expression "local_428 == piVar13[3]" identifier == (subscript_expression "piVar13[3]" identifier [ number_literal ])) && (binary_expression "local_42c == piVar13[2]" identifier == (subscript_expression "piVar13[2]" identifier [ number_literal ]))) ))) )) (compound_statement "{\n          sqlite3_mutex_enter(piVar13[4]);\n          piVar9 = (int *)piVar13[8];\n          if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n          if ((param_4 & 3) != piVar9[1]) goto LAB_0005ea33;\n          piVar16 = piVar13 + 8;\n          goto LAB_0005ee53;\n        }" { (expression_statement "sqlite3_mutex_enter(piVar13[4]);" (call_expression "sqlite3_mutex_enter(piVar13[4])" identifier (argument_list "(piVar13[4])" ( (subscript_expression "piVar13[4]" identifier [ number_literal ]) ))) ;) (expression_statement "piVar9 = (int *)piVar13[8];" (assignment_expression "piVar9 = (int *)piVar13[8]" identifier = (cast_expression "(int *)piVar13[8]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar13[8]" identifier [ number_literal ]))) ;) (if_statement "if (piVar9 == (int *)0x0) goto LAB_0005ea3a;" if (parenthesized_expression "(piVar9 == (int *)0x0)" ( (binary_expression "piVar9 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0005ea3a;" goto statement_identifier ;)) (if_statement "if ((param_4 & 3) != piVar9[1]) goto LAB_0005ea33;" if (parenthesized_expression "((param_4 & 3) != piVar9[1])" ( (binary_expression "(param_4 & 3) != piVar9[1]" (parenthesized_expression "(param_4 & 3)" ( (binary_expression "param_4 & 3" identifier & number_literal) )) != (subscript_expression "piVar9[1]" identifier [ number_literal ])) )) (goto_statement "goto LAB_0005ea33;" goto statement_identifier ;)) (expression_statement "piVar16 = piVar13 + 8;" (assignment_expression "piVar16 = piVar13 + 8" identifier = (binary_expression "piVar13 + 8" identifier + number_literal)) ;) (goto_statement "goto LAB_0005ee53;" goto statement_identifier ;) })) })) })) (expression_statement "sqlite3_mutex_leave(DAT_000df7a8);" (call_expression "sqlite3_mutex_leave(DAT_000df7a8)" identifier (argument_list "(DAT_000df7a8)" ( identifier ))) ;) (goto_statement "goto LAB_0005ea54;" goto statement_identifier ;) })) (expression_statement "iVar26 = -1;" (assignment_expression "iVar26 = -1" identifier = number_literal) ;) (expression_statement "local_4b4 = param_2;" (assignment_expression "local_4b4 = param_2" identifier = identifier) ;) (if_statement "if (param_2 == (char *)0x0) {\n    local_4b4 = local_222;\n    iVar7 = FUN_0005df50();\n    if (iVar7 != 0) goto LAB_0005e8fb;\n  }" if (parenthesized_expression "(param_2 == (char *)0x0)" ( (binary_expression "param_2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_4b4 = local_222;\n    iVar7 = FUN_0005df50();\n    if (iVar7 != 0) goto LAB_0005e8fb;\n  }" { (expression_statement "local_4b4 = local_222;" (assignment_expression "local_4b4 = local_222" identifier = identifier) ;) (expression_statement "iVar7 = FUN_0005df50();" (assignment_expression "iVar7 = FUN_0005df50()" identifier = (call_expression "FUN_0005df50()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar7 != 0) goto LAB_0005e8fb;" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0005e8fb;" goto statement_identifier ;)) })) (goto_statement "goto LAB_0005e781;" goto statement_identifier ;) (labeled_statement "LAB_0005ea3a:\n  sqlite3_mutex_leave(piVar13[4]);" statement_identifier : (expression_statement "sqlite3_mutex_leave(piVar13[4]);" (call_expression "sqlite3_mutex_leave(piVar13[4])" identifier (argument_list "(piVar13[4])" ( (subscript_expression "piVar13[4]" identifier [ number_literal ]) ))) ;)) (expression_statement "sqlite3_mutex_leave(DAT_000df7a8);" (call_expression "sqlite3_mutex_leave(DAT_000df7a8)" identifier (argument_list "(DAT_000df7a8)" ( identifier ))) ;) (labeled_statement "LAB_0005ea54:\n  piVar9 = (int *)sqlite3_malloc64(0xc,0);" statement_identifier : (expression_statement "piVar9 = (int *)sqlite3_malloc64(0xc,0);" (assignment_expression "piVar9 = (int *)sqlite3_malloc64(0xc,0)" identifier = (cast_expression "(int *)sqlite3_malloc64(0xc,0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_malloc64(0xc,0)" identifier (argument_list "(0xc,0)" ( number_literal , number_literal ))))) ;)) (if_statement "if (piVar9 == (int *)0x0) {\n    iVar7 = 7;\n    goto LAB_0005e8fb;\n  }" if (parenthesized_expression "(piVar9 == (int *)0x0)" ( (binary_expression "piVar9 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar7 = 7;\n    goto LAB_0005e8fb;\n  }" { (expression_statement "iVar7 = 7;" (assignment_expression "iVar7 = 7" identifier = number_literal) ;) (goto_statement "goto LAB_0005e8fb;" goto statement_identifier ;) })) (expression_statement "iVar26 = -1;" (assignment_expression "iVar26 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_0005ee78;" goto statement_identifier ;) (while_statement "while ((param_4 & 3) != piVar9[1]) {\nLAB_0005ea33:\n    piVar16 = piVar9;\n    piVar9 = (int *)piVar16[2];\n    if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n  }" while (parenthesized_expression "((param_4 & 3) != piVar9[1])" ( (binary_expression "(param_4 & 3) != piVar9[1]" (parenthesized_expression "(param_4 & 3)" ( (binary_expression "param_4 & 3" identifier & number_literal) )) != (subscript_expression "piVar9[1]" identifier [ number_literal ])) )) (compound_statement "{\nLAB_0005ea33:\n    piVar16 = piVar9;\n    piVar9 = (int *)piVar16[2];\n    if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n  }" { (labeled_statement "LAB_0005ea33:\n    piVar16 = piVar9;" statement_identifier : (expression_statement "piVar16 = piVar9;" (assignment_expression "piVar16 = piVar9" identifier = identifier) ;)) (expression_statement "piVar9 = (int *)piVar16[2];" (assignment_expression "piVar9 = (int *)piVar16[2]" identifier = (cast_expression "(int *)piVar16[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar16[2]" identifier [ number_literal ]))) ;) (if_statement "if (piVar9 == (int *)0x0) goto LAB_0005ea3a;" if (parenthesized_expression "(piVar9 == (int *)0x0)" ( (binary_expression "piVar9 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0005ea3a;" goto statement_identifier ;)) })) (expression_statement "piVar16 = piVar16 + 2;" (assignment_expression "piVar16 = piVar16 + 2" identifier = (binary_expression "piVar16 + 2" identifier + number_literal)) ;) (labeled_statement "LAB_0005ee53:\n  *piVar16 = piVar9[2];" statement_identifier : (expression_statement "*piVar16 = piVar9[2];" (assignment_expression "*piVar16 = piVar9[2]" (pointer_expression "*piVar16" * identifier) = (subscript_expression "piVar9[2]" identifier [ number_literal ])) ;)) (expression_statement "sqlite3_mutex_leave(piVar13[4]);" (call_expression "sqlite3_mutex_leave(piVar13[4])" identifier (argument_list "(piVar13[4])" ( (subscript_expression "piVar13[4]" identifier [ number_literal ]) ))) ;) (expression_statement "sqlite3_mutex_leave(DAT_000df7a8);" (call_expression "sqlite3_mutex_leave(DAT_000df7a8)" identifier (argument_list "(DAT_000df7a8)" ( identifier ))) ;) (expression_statement "iVar26 = *piVar9;" (assignment_expression "iVar26 = *piVar9" identifier = (pointer_expression "*piVar9" * identifier)) ;) (labeled_statement "LAB_0005ee78:\n  param_3[7] = piVar9;" statement_identifier : (expression_statement "param_3[7] = piVar9;" (assignment_expression "param_3[7] = piVar9" (subscript_expression "param_3[7]" identifier [ number_literal ]) = identifier) ;)) (expression_statement "local_4b4 = param_2;" (assignment_expression "local_4b4 = param_2" identifier = identifier) ;) (labeled_statement "LAB_0005e781:\n  uVar14 = uVar19;" statement_identifier : (expression_statement "uVar14 = uVar19;" (assignment_expression "uVar14 = uVar19" identifier = identifier) ;)) (if_statement "if ((param_4 & 4) != 0) {\n    uVar14 = uVar19 | 0x40;\n  }" if (parenthesized_expression "((param_4 & 4) != 0)" ( (binary_expression "(param_4 & 4) != 0" (parenthesized_expression "(param_4 & 4)" ( (binary_expression "param_4 & 4" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar14 = uVar19 | 0x40;\n  }" { (expression_statement "uVar14 = uVar19 | 0x40;" (assignment_expression "uVar14 = uVar19 | 0x40" identifier = (binary_expression "uVar19 | 0x40" identifier | number_literal)) ;) })) (if_statement "if ((param_4 & 0x10) != 0) {\n    uVar14 = uVar14 | 0x20080;\n  }" if (parenthesized_expression "((param_4 & 0x10) != 0)" ( (binary_expression "(param_4 & 0x10) != 0" (parenthesized_expression "(param_4 & 0x10)" ( (binary_expression "param_4 & 0x10" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar14 = uVar14 | 0x20080;\n  }" { (expression_statement "uVar14 = uVar14 | 0x20080;" (assignment_expression "uVar14 = uVar14 | 0x20080" identifier = (binary_expression "uVar14 | 0x20080" identifier | number_literal)) ;) })) (if_statement "if (-1 < iVar26) goto LAB_0005e7af;" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (goto_statement "goto LAB_0005e7af;" goto statement_identifier ;)) (expression_statement "uVar14 = uVar14 | 0x28000;" (assignment_expression "uVar14 = uVar14 | 0x28000" identifier = (binary_expression "uVar14 | 0x28000" identifier | number_literal)) ;) (if_statement "if ((param_4 & 0x80800) == 0) {\n    if (uVar15 == 0) {\n      if (((param_4 & 0x40) != 0) &&\n         (puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof"),\n         puVar12 != (undefined1 *)0x0)) goto LAB_0005eb2c;\nLAB_0005ebd9:\n      iVar26 = FUN_0003a9a0(uVar15,uVar14);\n      if (iVar26 < 0) {\n        local_4ac = 0;\n        local_4a8 = 0;\n        uVar22 = 0;\n        goto LAB_0005ec06;\n      }\n      goto LAB_0005e7af;\n    }\n    iVar26 = FUN_0003a9a0(uVar15,uVar14);\n    if (-1 < iVar26) goto LAB_0005e7af;\n    uVar22 = 0;\n    local_4ac = 0;\n    local_4a8 = 0x180;\nLAB_0005ec06:\n    piVar13 = __errno_location();\n    iVar26 = *piVar13;\n    if ((bVar24) && (iVar26 == 0xd)) {\n      iVar26 = (*(code *)PTR_access_000df45c)(local_4b4,0);\n      if (iVar26 == 0) {\n        iVar26 = *piVar13;\n        goto LAB_0005ec40;\n      }\n      iVar7 = 0x608;\n      FUN_000383b0();\n      FUN_0003aad0(0x9ae7);\n    }\n    else {\nLAB_0005ec40:\n      if ((uVar19 != 0) && (iVar26 != 0x15)) {\n        param_4 = param_4 & 0xfffffff9 | 1;\n        iVar26 = FUN_0003a9a0();\n        if (-1 < iVar26) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }\n      FUN_000383b0();\n      iVar7 = FUN_0003aad0(0x9ae7);\n      if (iVar7 == 0) goto LAB_0005e8fb;\n    }\nLAB_0005ee17:\n    sqlite3_free(param_3[7]);\n  }\n  else {\n    if (local_4b4 == (char *)0x0) {\n      iVar26 = -1;\n    }\n    else {\n      sVar10 = strlen(local_4b4);\n      iVar26 = (sVar10 & 0x3fffffff) - 1;\n    }\n    cVar2 = local_4b4[iVar26];\n    while (cVar2 != '-') {\n      if ((cVar2 == '.') || (iVar26 == 0)) goto LAB_0005ebd9;\n      iVar26 = iVar26 + -1;\n      cVar2 = local_4b4[iVar26];\n    }\n    puVar12 = local_423;\n    __memcpy_chk(puVar12,local_4b4,iVar26,0x201);\n    local_423[iVar26] = 0;\nLAB_0005eb2c:\n    iVar26 = (*(code *)PTR_FUN_000df474)(puVar12,&local_484);\n    iVar7 = 0x70a;\n    if (iVar26 != 0) goto LAB_0005e8fb;\n    local_4a8 = local_474 & 0x1ff;\n    local_4ac = local_46c;\n    iVar26 = FUN_0003a9a0(uVar15,uVar14);\n    uVar22 = local_468;\n    if (iVar26 < 0) goto LAB_0005ec06;\nLAB_0005eb78:\n    if (((local_4a8 != 0) && ((param_4 & 0x80800) != 0)) &&\n       (iVar7 = (*(code *)PTR_geteuid_000df540)(), iVar7 == 0)) {\n      (*(code *)PTR_fchown_000df534)(iVar26,local_4ac,uVar22);\n    }\nLAB_0005e7af:\n    if (param_5 != (uint *)0x0) {\n      *param_5 = param_4;\n    }\n    piVar13 = (int *)param_3[7];\n    if (piVar13 != (int *)0x0) {\n      *piVar13 = iVar26;\n      piVar13[1] = param_4 & 3;\n    }\n    if (uVar15 != 0) {\n      (*(code *)PTR_unlink_000df504)(local_4b4);\n      uVar15 = 0x20;\n    }\n    uVar22 = DAT_000de40c;\n    uVar19 = uVar15 | 2;\n    if (local_4a4 == 0) {\n      uVar19 = uVar15;\n    }\n    uVar15 = uVar19 | 0x80;\n    if (uVar4 == 0x100) {\n      uVar15 = uVar19;\n    }\n    uVar4 = uVar15 | 8;\n    if (!bVar24) {\n      uVar4 = uVar15;\n    }\n    if ((param_4 & 0x40) == 0) {\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[3] = iVar26;\n      pcVar6 = (char *)0x0;\n      if ((uVar4 & 0x40) != 0) {\n        pcVar6 = param_2;\n      }\n      param_3[8] = param_2;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n    }\n    else {\n      uVar4 = uVar4 | 0x40;\n      param_3[3] = iVar26;\n      param_3[8] = param_2;\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n      pcVar6 = param_2;\n    }\n    iVar7 = sqlite3_uri_boolean(pcVar6,&DAT_000aa9b5,1);\n    bVar24 = iVar7 == 0;\n    if (!bVar24) {\n      puVar1 = (ushort *)((int)param_3 + 0x12);\n      *puVar1 = *puVar1 | 0x10;\n      bVar24 = *puVar1 == 0;\n    }\n    bVar23 = false;\n    iVar7 = 10;\n    pbVar18 = *(byte **)(param_1 + 0x10);\n    pbVar20 = (byte *)"unix-excl";\n    do {\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      bVar23 = *pbVar18 < *pbVar20;\n      bVar24 = *pbVar18 == *pbVar20;\n      pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1;\n      pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1;\n    } while (bVar24);\n    if ((!bVar23 && !bVar24) == bVar23) {\n      *(ushort *)((int)param_3 + 0x12) = *(ushort *)((int)param_3 + 0x12) | 1;\n    }\n    if ((uVar4 & 0x80) == 0) {\n      puVar8 = (undefined *)(*(code *)**(undefined4 **)(param_1 + 0x14))(param_2,param_3);\n      puVar17 = &DAT_000dd9e0;\n      if (puVar8 == &DAT_000dd9e0) {\n        sqlite3_mutex_enter(DAT_000df7a8);\n        iVar7 = (*(code *)PTR_FUN_000df480)(param_3[3],&local_484);\n        piVar13 = DAT_000df7a4;\n        if (iVar7 == 0) {\n          for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }\n          piVar13 = (int *)sqlite3_malloc64(0x34,0);\n          if (piVar13 != (int *)0x0) {\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }\n          iVar7 = 7;\n        }\n        else {\n          piVar13 = __errno_location();\n          iVar7 = 10;\n          param_3[5] = *piVar13;\n        }\nLAB_0005efaf:\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        sqlite3_mutex_leave(DAT_000df7a8);\n        param_3[5] = 0;\n        goto LAB_0005ee17;\n      }\n      if (puVar8 != &DAT_000dd920) goto LAB_0005e8e8;\n      sVar10 = strlen(param_2);\n      iVar7 = sVar10 + 6;\n      iVar11 = sqlite3_malloc64(iVar7,iVar7 >> 0x1f);\n      if (iVar11 == 0) {\n        param_3[6] = 0;\n        param_3[5] = 0;\n        iVar7 = 7;\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        goto LAB_0005ee17;\n      }\n      sqlite3_snprintf(iVar7,iVar11,"%s.lock",param_2);\n      param_3[5] = 0;\n      param_3[6] = iVar11;\n    }\n    else {\n      puVar8 = &DAT_000dd980;\nLAB_0005e8e8:\n      param_3[5] = 0;\n    }\nLAB_0005e8ef:\n    *param_3 = puVar8;\n    iVar7 = 0;\n    FUN_0003a610();\n  }" if (parenthesized_expression "((param_4 & 0x80800) == 0)" ( (binary_expression "(param_4 & 0x80800) == 0" (parenthesized_expression "(param_4 & 0x80800)" ( (binary_expression "param_4 & 0x80800" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if (uVar15 == 0) {\n      if (((param_4 & 0x40) != 0) &&\n         (puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof"),\n         puVar12 != (undefined1 *)0x0)) goto LAB_0005eb2c;\nLAB_0005ebd9:\n      iVar26 = FUN_0003a9a0(uVar15,uVar14);\n      if (iVar26 < 0) {\n        local_4ac = 0;\n        local_4a8 = 0;\n        uVar22 = 0;\n        goto LAB_0005ec06;\n      }\n      goto LAB_0005e7af;\n    }\n    iVar26 = FUN_0003a9a0(uVar15,uVar14);\n    if (-1 < iVar26) goto LAB_0005e7af;\n    uVar22 = 0;\n    local_4ac = 0;\n    local_4a8 = 0x180;\nLAB_0005ec06:\n    piVar13 = __errno_location();\n    iVar26 = *piVar13;\n    if ((bVar24) && (iVar26 == 0xd)) {\n      iVar26 = (*(code *)PTR_access_000df45c)(local_4b4,0);\n      if (iVar26 == 0) {\n        iVar26 = *piVar13;\n        goto LAB_0005ec40;\n      }\n      iVar7 = 0x608;\n      FUN_000383b0();\n      FUN_0003aad0(0x9ae7);\n    }\n    else {\nLAB_0005ec40:\n      if ((uVar19 != 0) && (iVar26 != 0x15)) {\n        param_4 = param_4 & 0xfffffff9 | 1;\n        iVar26 = FUN_0003a9a0();\n        if (-1 < iVar26) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }\n      FUN_000383b0();\n      iVar7 = FUN_0003aad0(0x9ae7);\n      if (iVar7 == 0) goto LAB_0005e8fb;\n    }\nLAB_0005ee17:\n    sqlite3_free(param_3[7]);\n  }" { (if_statement "if (uVar15 == 0) {\n      if (((param_4 & 0x40) != 0) &&\n         (puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof"),\n         puVar12 != (undefined1 *)0x0)) goto LAB_0005eb2c;\nLAB_0005ebd9:\n      iVar26 = FUN_0003a9a0(uVar15,uVar14);\n      if (iVar26 < 0) {\n        local_4ac = 0;\n        local_4a8 = 0;\n        uVar22 = 0;\n        goto LAB_0005ec06;\n      }\n      goto LAB_0005e7af;\n    }" if (parenthesized_expression "(uVar15 == 0)" ( (binary_expression "uVar15 == 0" identifier == number_literal) )) (compound_statement "{\n      if (((param_4 & 0x40) != 0) &&\n         (puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof"),\n         puVar12 != (undefined1 *)0x0)) goto LAB_0005eb2c;\nLAB_0005ebd9:\n      iVar26 = FUN_0003a9a0(uVar15,uVar14);\n      if (iVar26 < 0) {\n        local_4ac = 0;\n        local_4a8 = 0;\n        uVar22 = 0;\n        goto LAB_0005ec06;\n      }\n      goto LAB_0005e7af;\n    }" { (if_statement "if (((param_4 & 0x40) != 0) &&\n         (puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof"),\n         puVar12 != (undefined1 *)0x0)) goto LAB_0005eb2c;" if (parenthesized_expression "(((param_4 & 0x40) != 0) &&\n         (puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof"),\n         puVar12 != (undefined1 *)0x0))" ( (binary_expression "((param_4 & 0x40) != 0) &&\n         (puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof"),\n         puVar12 != (undefined1 *)0x0)" (parenthesized_expression "((param_4 & 0x40) != 0)" ( (binary_expression "(param_4 & 0x40) != 0" (parenthesized_expression "(param_4 & 0x40)" ( (binary_expression "param_4 & 0x40" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof"),\n         puVar12 != (undefined1 *)0x0)" ( (comma_expression "puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof"),\n         puVar12 != (undefined1 *)0x0" (assignment_expression "puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof")" identifier = (cast_expression "(undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof")" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_uri_parameter(local_4b4,"modeof")" identifier (argument_list "(local_4b4,"modeof")" ( identifier , (string_literal ""modeof"" " string_content ") ))))) , (binary_expression "puVar12 != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (goto_statement "goto LAB_0005eb2c;" goto statement_identifier ;)) (labeled_statement "LAB_0005ebd9:\n      iVar26 = FUN_0003a9a0(uVar15,uVar14);" statement_identifier : (expression_statement "iVar26 = FUN_0003a9a0(uVar15,uVar14);" (assignment_expression "iVar26 = FUN_0003a9a0(uVar15,uVar14)" identifier = (call_expression "FUN_0003a9a0(uVar15,uVar14)" identifier (argument_list "(uVar15,uVar14)" ( identifier , identifier )))) ;)) (if_statement "if (iVar26 < 0) {\n        local_4ac = 0;\n        local_4a8 = 0;\n        uVar22 = 0;\n        goto LAB_0005ec06;\n      }" if (parenthesized_expression "(iVar26 < 0)" ( (binary_expression "iVar26 < 0" identifier < number_literal) )) (compound_statement "{\n        local_4ac = 0;\n        local_4a8 = 0;\n        uVar22 = 0;\n        goto LAB_0005ec06;\n      }" { (expression_statement "local_4ac = 0;" (assignment_expression "local_4ac = 0" identifier = number_literal) ;) (expression_statement "local_4a8 = 0;" (assignment_expression "local_4a8 = 0" identifier = number_literal) ;) (expression_statement "uVar22 = 0;" (assignment_expression "uVar22 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_0005ec06;" goto statement_identifier ;) })) (goto_statement "goto LAB_0005e7af;" goto statement_identifier ;) })) (expression_statement "iVar26 = FUN_0003a9a0(uVar15,uVar14);" (assignment_expression "iVar26 = FUN_0003a9a0(uVar15,uVar14)" identifier = (call_expression "FUN_0003a9a0(uVar15,uVar14)" identifier (argument_list "(uVar15,uVar14)" ( identifier , identifier )))) ;) (if_statement "if (-1 < iVar26) goto LAB_0005e7af;" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (goto_statement "goto LAB_0005e7af;" goto statement_identifier ;)) (expression_statement "uVar22 = 0;" (assignment_expression "uVar22 = 0" identifier = number_literal) ;) (expression_statement "local_4ac = 0;" (assignment_expression "local_4ac = 0" identifier = number_literal) ;) (expression_statement "local_4a8 = 0x180;" (assignment_expression "local_4a8 = 0x180" identifier = number_literal) ;) (labeled_statement "LAB_0005ec06:\n    piVar13 = __errno_location();" statement_identifier : (expression_statement "piVar13 = __errno_location();" (assignment_expression "piVar13 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;)) (expression_statement "iVar26 = *piVar13;" (assignment_expression "iVar26 = *piVar13" identifier = (pointer_expression "*piVar13" * identifier)) ;) (if_statement "if ((bVar24) && (iVar26 == 0xd)) {\n      iVar26 = (*(code *)PTR_access_000df45c)(local_4b4,0);\n      if (iVar26 == 0) {\n        iVar26 = *piVar13;\n        goto LAB_0005ec40;\n      }\n      iVar7 = 0x608;\n      FUN_000383b0();\n      FUN_0003aad0(0x9ae7);\n    }\n    else {\nLAB_0005ec40:\n      if ((uVar19 != 0) && (iVar26 != 0x15)) {\n        param_4 = param_4 & 0xfffffff9 | 1;\n        iVar26 = FUN_0003a9a0();\n        if (-1 < iVar26) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }\n      FUN_000383b0();\n      iVar7 = FUN_0003aad0(0x9ae7);\n      if (iVar7 == 0) goto LAB_0005e8fb;\n    }" if (parenthesized_expression "((bVar24) && (iVar26 == 0xd))" ( (binary_expression "(bVar24) && (iVar26 == 0xd)" (parenthesized_expression "(bVar24)" ( identifier )) && (parenthesized_expression "(iVar26 == 0xd)" ( (binary_expression "iVar26 == 0xd" identifier == number_literal) ))) )) (compound_statement "{\n      iVar26 = (*(code *)PTR_access_000df45c)(local_4b4,0);\n      if (iVar26 == 0) {\n        iVar26 = *piVar13;\n        goto LAB_0005ec40;\n      }\n      iVar7 = 0x608;\n      FUN_000383b0();\n      FUN_0003aad0(0x9ae7);\n    }" { (expression_statement "iVar26 = (*(code *)PTR_access_000df45c)(local_4b4,0);" (assignment_expression "iVar26 = (*(code *)PTR_access_000df45c)(local_4b4,0)" identifier = (call_expression "(*(code *)PTR_access_000df45c)(local_4b4,0)" (parenthesized_expression "(*(code *)PTR_access_000df45c)" ( (pointer_expression "*(code *)PTR_access_000df45c" * (cast_expression "(code *)PTR_access_000df45c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_4b4,0)" ( identifier , number_literal )))) ;) (if_statement "if (iVar26 == 0) {\n        iVar26 = *piVar13;\n        goto LAB_0005ec40;\n      }" if (parenthesized_expression "(iVar26 == 0)" ( (binary_expression "iVar26 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar26 = *piVar13;\n        goto LAB_0005ec40;\n      }" { (expression_statement "iVar26 = *piVar13;" (assignment_expression "iVar26 = *piVar13" identifier = (pointer_expression "*piVar13" * identifier)) ;) (goto_statement "goto LAB_0005ec40;" goto statement_identifier ;) })) (expression_statement "iVar7 = 0x608;" (assignment_expression "iVar7 = 0x608" identifier = number_literal) ;) (expression_statement "FUN_000383b0();" (call_expression "FUN_000383b0()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0003aad0(0x9ae7);" (call_expression "FUN_0003aad0(0x9ae7)" identifier (argument_list "(0x9ae7)" ( number_literal ))) ;) }) (else_clause "else {\nLAB_0005ec40:\n      if ((uVar19 != 0) && (iVar26 != 0x15)) {\n        param_4 = param_4 & 0xfffffff9 | 1;\n        iVar26 = FUN_0003a9a0();\n        if (-1 < iVar26) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }\n      FUN_000383b0();\n      iVar7 = FUN_0003aad0(0x9ae7);\n      if (iVar7 == 0) goto LAB_0005e8fb;\n    }" else (compound_statement "{\nLAB_0005ec40:\n      if ((uVar19 != 0) && (iVar26 != 0x15)) {\n        param_4 = param_4 & 0xfffffff9 | 1;\n        iVar26 = FUN_0003a9a0();\n        if (-1 < iVar26) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }\n      FUN_000383b0();\n      iVar7 = FUN_0003aad0(0x9ae7);\n      if (iVar7 == 0) goto LAB_0005e8fb;\n    }" { (labeled_statement "LAB_0005ec40:\n      if ((uVar19 != 0) && (iVar26 != 0x15)) {\n        param_4 = param_4 & 0xfffffff9 | 1;\n        iVar26 = FUN_0003a9a0();\n        if (-1 < iVar26) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }" statement_identifier : (if_statement "if ((uVar19 != 0) && (iVar26 != 0x15)) {\n        param_4 = param_4 & 0xfffffff9 | 1;\n        iVar26 = FUN_0003a9a0();\n        if (-1 < iVar26) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }" if (parenthesized_expression "((uVar19 != 0) && (iVar26 != 0x15))" ( (binary_expression "(uVar19 != 0) && (iVar26 != 0x15)" (parenthesized_expression "(uVar19 != 0)" ( (binary_expression "uVar19 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar26 != 0x15)" ( (binary_expression "iVar26 != 0x15" identifier != number_literal) ))) )) (compound_statement "{\n        param_4 = param_4 & 0xfffffff9 | 1;\n        iVar26 = FUN_0003a9a0();\n        if (-1 < iVar26) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }" { (expression_statement "param_4 = param_4 & 0xfffffff9 | 1;" (assignment_expression "param_4 = param_4 & 0xfffffff9 | 1" identifier = (binary_expression "param_4 & 0xfffffff9 | 1" (binary_expression "param_4 & 0xfffffff9" identifier & number_literal) | number_literal)) ;) (expression_statement "iVar26 = FUN_0003a9a0();" (assignment_expression "iVar26 = FUN_0003a9a0()" identifier = (call_expression "FUN_0003a9a0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (-1 < iVar26) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (compound_statement "{\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }" { (expression_statement "local_4a4 = 1;" (assignment_expression "local_4a4 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_0005eb78;" goto statement_identifier ;) })) }))) (expression_statement "FUN_000383b0();" (call_expression "FUN_000383b0()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar7 = FUN_0003aad0(0x9ae7);" (assignment_expression "iVar7 = FUN_0003aad0(0x9ae7)" identifier = (call_expression "FUN_0003aad0(0x9ae7)" identifier (argument_list "(0x9ae7)" ( number_literal )))) ;) (if_statement "if (iVar7 == 0) goto LAB_0005e8fb;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0005e8fb;" goto statement_identifier ;)) }))) (labeled_statement "LAB_0005ee17:\n    sqlite3_free(param_3[7]);" statement_identifier : (expression_statement "sqlite3_free(param_3[7]);" (call_expression "sqlite3_free(param_3[7])" identifier (argument_list "(param_3[7])" ( (subscript_expression "param_3[7]" identifier [ number_literal ]) ))) ;)) }) (else_clause "else {\n    if (local_4b4 == (char *)0x0) {\n      iVar26 = -1;\n    }\n    else {\n      sVar10 = strlen(local_4b4);\n      iVar26 = (sVar10 & 0x3fffffff) - 1;\n    }\n    cVar2 = local_4b4[iVar26];\n    while (cVar2 != '-') {\n      if ((cVar2 == '.') || (iVar26 == 0)) goto LAB_0005ebd9;\n      iVar26 = iVar26 + -1;\n      cVar2 = local_4b4[iVar26];\n    }\n    puVar12 = local_423;\n    __memcpy_chk(puVar12,local_4b4,iVar26,0x201);\n    local_423[iVar26] = 0;\nLAB_0005eb2c:\n    iVar26 = (*(code *)PTR_FUN_000df474)(puVar12,&local_484);\n    iVar7 = 0x70a;\n    if (iVar26 != 0) goto LAB_0005e8fb;\n    local_4a8 = local_474 & 0x1ff;\n    local_4ac = local_46c;\n    iVar26 = FUN_0003a9a0(uVar15,uVar14);\n    uVar22 = local_468;\n    if (iVar26 < 0) goto LAB_0005ec06;\nLAB_0005eb78:\n    if (((local_4a8 != 0) && ((param_4 & 0x80800) != 0)) &&\n       (iVar7 = (*(code *)PTR_geteuid_000df540)(), iVar7 == 0)) {\n      (*(code *)PTR_fchown_000df534)(iVar26,local_4ac,uVar22);\n    }\nLAB_0005e7af:\n    if (param_5 != (uint *)0x0) {\n      *param_5 = param_4;\n    }\n    piVar13 = (int *)param_3[7];\n    if (piVar13 != (int *)0x0) {\n      *piVar13 = iVar26;\n      piVar13[1] = param_4 & 3;\n    }\n    if (uVar15 != 0) {\n      (*(code *)PTR_unlink_000df504)(local_4b4);\n      uVar15 = 0x20;\n    }\n    uVar22 = DAT_000de40c;\n    uVar19 = uVar15 | 2;\n    if (local_4a4 == 0) {\n      uVar19 = uVar15;\n    }\n    uVar15 = uVar19 | 0x80;\n    if (uVar4 == 0x100) {\n      uVar15 = uVar19;\n    }\n    uVar4 = uVar15 | 8;\n    if (!bVar24) {\n      uVar4 = uVar15;\n    }\n    if ((param_4 & 0x40) == 0) {\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[3] = iVar26;\n      pcVar6 = (char *)0x0;\n      if ((uVar4 & 0x40) != 0) {\n        pcVar6 = param_2;\n      }\n      param_3[8] = param_2;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n    }\n    else {\n      uVar4 = uVar4 | 0x40;\n      param_3[3] = iVar26;\n      param_3[8] = param_2;\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n      pcVar6 = param_2;\n    }\n    iVar7 = sqlite3_uri_boolean(pcVar6,&DAT_000aa9b5,1);\n    bVar24 = iVar7 == 0;\n    if (!bVar24) {\n      puVar1 = (ushort *)((int)param_3 + 0x12);\n      *puVar1 = *puVar1 | 0x10;\n      bVar24 = *puVar1 == 0;\n    }\n    bVar23 = false;\n    iVar7 = 10;\n    pbVar18 = *(byte **)(param_1 + 0x10);\n    pbVar20 = (byte *)"unix-excl";\n    do {\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      bVar23 = *pbVar18 < *pbVar20;\n      bVar24 = *pbVar18 == *pbVar20;\n      pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1;\n      pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1;\n    } while (bVar24);\n    if ((!bVar23 && !bVar24) == bVar23) {\n      *(ushort *)((int)param_3 + 0x12) = *(ushort *)((int)param_3 + 0x12) | 1;\n    }\n    if ((uVar4 & 0x80) == 0) {\n      puVar8 = (undefined *)(*(code *)**(undefined4 **)(param_1 + 0x14))(param_2,param_3);\n      puVar17 = &DAT_000dd9e0;\n      if (puVar8 == &DAT_000dd9e0) {\n        sqlite3_mutex_enter(DAT_000df7a8);\n        iVar7 = (*(code *)PTR_FUN_000df480)(param_3[3],&local_484);\n        piVar13 = DAT_000df7a4;\n        if (iVar7 == 0) {\n          for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }\n          piVar13 = (int *)sqlite3_malloc64(0x34,0);\n          if (piVar13 != (int *)0x0) {\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }\n          iVar7 = 7;\n        }\n        else {\n          piVar13 = __errno_location();\n          iVar7 = 10;\n          param_3[5] = *piVar13;\n        }\nLAB_0005efaf:\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        sqlite3_mutex_leave(DAT_000df7a8);\n        param_3[5] = 0;\n        goto LAB_0005ee17;\n      }\n      if (puVar8 != &DAT_000dd920) goto LAB_0005e8e8;\n      sVar10 = strlen(param_2);\n      iVar7 = sVar10 + 6;\n      iVar11 = sqlite3_malloc64(iVar7,iVar7 >> 0x1f);\n      if (iVar11 == 0) {\n        param_3[6] = 0;\n        param_3[5] = 0;\n        iVar7 = 7;\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        goto LAB_0005ee17;\n      }\n      sqlite3_snprintf(iVar7,iVar11,"%s.lock",param_2);\n      param_3[5] = 0;\n      param_3[6] = iVar11;\n    }\n    else {\n      puVar8 = &DAT_000dd980;\nLAB_0005e8e8:\n      param_3[5] = 0;\n    }\nLAB_0005e8ef:\n    *param_3 = puVar8;\n    iVar7 = 0;\n    FUN_0003a610();\n  }" else (compound_statement "{\n    if (local_4b4 == (char *)0x0) {\n      iVar26 = -1;\n    }\n    else {\n      sVar10 = strlen(local_4b4);\n      iVar26 = (sVar10 & 0x3fffffff) - 1;\n    }\n    cVar2 = local_4b4[iVar26];\n    while (cVar2 != '-') {\n      if ((cVar2 == '.') || (iVar26 == 0)) goto LAB_0005ebd9;\n      iVar26 = iVar26 + -1;\n      cVar2 = local_4b4[iVar26];\n    }\n    puVar12 = local_423;\n    __memcpy_chk(puVar12,local_4b4,iVar26,0x201);\n    local_423[iVar26] = 0;\nLAB_0005eb2c:\n    iVar26 = (*(code *)PTR_FUN_000df474)(puVar12,&local_484);\n    iVar7 = 0x70a;\n    if (iVar26 != 0) goto LAB_0005e8fb;\n    local_4a8 = local_474 & 0x1ff;\n    local_4ac = local_46c;\n    iVar26 = FUN_0003a9a0(uVar15,uVar14);\n    uVar22 = local_468;\n    if (iVar26 < 0) goto LAB_0005ec06;\nLAB_0005eb78:\n    if (((local_4a8 != 0) && ((param_4 & 0x80800) != 0)) &&\n       (iVar7 = (*(code *)PTR_geteuid_000df540)(), iVar7 == 0)) {\n      (*(code *)PTR_fchown_000df534)(iVar26,local_4ac,uVar22);\n    }\nLAB_0005e7af:\n    if (param_5 != (uint *)0x0) {\n      *param_5 = param_4;\n    }\n    piVar13 = (int *)param_3[7];\n    if (piVar13 != (int *)0x0) {\n      *piVar13 = iVar26;\n      piVar13[1] = param_4 & 3;\n    }\n    if (uVar15 != 0) {\n      (*(code *)PTR_unlink_000df504)(local_4b4);\n      uVar15 = 0x20;\n    }\n    uVar22 = DAT_000de40c;\n    uVar19 = uVar15 | 2;\n    if (local_4a4 == 0) {\n      uVar19 = uVar15;\n    }\n    uVar15 = uVar19 | 0x80;\n    if (uVar4 == 0x100) {\n      uVar15 = uVar19;\n    }\n    uVar4 = uVar15 | 8;\n    if (!bVar24) {\n      uVar4 = uVar15;\n    }\n    if ((param_4 & 0x40) == 0) {\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[3] = iVar26;\n      pcVar6 = (char *)0x0;\n      if ((uVar4 & 0x40) != 0) {\n        pcVar6 = param_2;\n      }\n      param_3[8] = param_2;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n    }\n    else {\n      uVar4 = uVar4 | 0x40;\n      param_3[3] = iVar26;\n      param_3[8] = param_2;\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n      pcVar6 = param_2;\n    }\n    iVar7 = sqlite3_uri_boolean(pcVar6,&DAT_000aa9b5,1);\n    bVar24 = iVar7 == 0;\n    if (!bVar24) {\n      puVar1 = (ushort *)((int)param_3 + 0x12);\n      *puVar1 = *puVar1 | 0x10;\n      bVar24 = *puVar1 == 0;\n    }\n    bVar23 = false;\n    iVar7 = 10;\n    pbVar18 = *(byte **)(param_1 + 0x10);\n    pbVar20 = (byte *)"unix-excl";\n    do {\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      bVar23 = *pbVar18 < *pbVar20;\n      bVar24 = *pbVar18 == *pbVar20;\n      pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1;\n      pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1;\n    } while (bVar24);\n    if ((!bVar23 && !bVar24) == bVar23) {\n      *(ushort *)((int)param_3 + 0x12) = *(ushort *)((int)param_3 + 0x12) | 1;\n    }\n    if ((uVar4 & 0x80) == 0) {\n      puVar8 = (undefined *)(*(code *)**(undefined4 **)(param_1 + 0x14))(param_2,param_3);\n      puVar17 = &DAT_000dd9e0;\n      if (puVar8 == &DAT_000dd9e0) {\n        sqlite3_mutex_enter(DAT_000df7a8);\n        iVar7 = (*(code *)PTR_FUN_000df480)(param_3[3],&local_484);\n        piVar13 = DAT_000df7a4;\n        if (iVar7 == 0) {\n          for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }\n          piVar13 = (int *)sqlite3_malloc64(0x34,0);\n          if (piVar13 != (int *)0x0) {\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }\n          iVar7 = 7;\n        }\n        else {\n          piVar13 = __errno_location();\n          iVar7 = 10;\n          param_3[5] = *piVar13;\n        }\nLAB_0005efaf:\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        sqlite3_mutex_leave(DAT_000df7a8);\n        param_3[5] = 0;\n        goto LAB_0005ee17;\n      }\n      if (puVar8 != &DAT_000dd920) goto LAB_0005e8e8;\n      sVar10 = strlen(param_2);\n      iVar7 = sVar10 + 6;\n      iVar11 = sqlite3_malloc64(iVar7,iVar7 >> 0x1f);\n      if (iVar11 == 0) {\n        param_3[6] = 0;\n        param_3[5] = 0;\n        iVar7 = 7;\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        goto LAB_0005ee17;\n      }\n      sqlite3_snprintf(iVar7,iVar11,"%s.lock",param_2);\n      param_3[5] = 0;\n      param_3[6] = iVar11;\n    }\n    else {\n      puVar8 = &DAT_000dd980;\nLAB_0005e8e8:\n      param_3[5] = 0;\n    }\nLAB_0005e8ef:\n    *param_3 = puVar8;\n    iVar7 = 0;\n    FUN_0003a610();\n  }" { (if_statement "if (local_4b4 == (char *)0x0) {\n      iVar26 = -1;\n    }\n    else {\n      sVar10 = strlen(local_4b4);\n      iVar26 = (sVar10 & 0x3fffffff) - 1;\n    }" if (parenthesized_expression "(local_4b4 == (char *)0x0)" ( (binary_expression "local_4b4 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar26 = -1;\n    }" { (expression_statement "iVar26 = -1;" (assignment_expression "iVar26 = -1" identifier = number_literal) ;) }) (else_clause "else {\n      sVar10 = strlen(local_4b4);\n      iVar26 = (sVar10 & 0x3fffffff) - 1;\n    }" else (compound_statement "{\n      sVar10 = strlen(local_4b4);\n      iVar26 = (sVar10 & 0x3fffffff) - 1;\n    }" { (expression_statement "sVar10 = strlen(local_4b4);" (assignment_expression "sVar10 = strlen(local_4b4)" identifier = (call_expression "strlen(local_4b4)" identifier (argument_list "(local_4b4)" ( identifier )))) ;) (expression_statement "iVar26 = (sVar10 & 0x3fffffff) - 1;" (assignment_expression "iVar26 = (sVar10 & 0x3fffffff) - 1" identifier = (binary_expression "(sVar10 & 0x3fffffff) - 1" (parenthesized_expression "(sVar10 & 0x3fffffff)" ( (binary_expression "sVar10 & 0x3fffffff" identifier & number_literal) )) - number_literal)) ;) }))) (expression_statement "cVar2 = local_4b4[iVar26];" (assignment_expression "cVar2 = local_4b4[iVar26]" identifier = (subscript_expression "local_4b4[iVar26]" identifier [ identifier ])) ;) (while_statement "while (cVar2 != '-') {\n      if ((cVar2 == '.') || (iVar26 == 0)) goto LAB_0005ebd9;\n      iVar26 = iVar26 + -1;\n      cVar2 = local_4b4[iVar26];\n    }" while (parenthesized_expression "(cVar2 != '-')" ( (binary_expression "cVar2 != '-'" identifier != (char_literal "'-'" ' character ')) )) (compound_statement "{\n      if ((cVar2 == '.') || (iVar26 == 0)) goto LAB_0005ebd9;\n      iVar26 = iVar26 + -1;\n      cVar2 = local_4b4[iVar26];\n    }" { (if_statement "if ((cVar2 == '.') || (iVar26 == 0)) goto LAB_0005ebd9;" if (parenthesized_expression "((cVar2 == '.') || (iVar26 == 0))" ( (binary_expression "(cVar2 == '.') || (iVar26 == 0)" (parenthesized_expression "(cVar2 == '.')" ( (binary_expression "cVar2 == '.'" identifier == (char_literal "'.'" ' character ')) )) || (parenthesized_expression "(iVar26 == 0)" ( (binary_expression "iVar26 == 0" identifier == number_literal) ))) )) (goto_statement "goto LAB_0005ebd9;" goto statement_identifier ;)) (expression_statement "iVar26 = iVar26 + -1;" (assignment_expression "iVar26 = iVar26 + -1" identifier = (binary_expression "iVar26 + -1" identifier + number_literal)) ;) (expression_statement "cVar2 = local_4b4[iVar26];" (assignment_expression "cVar2 = local_4b4[iVar26]" identifier = (subscript_expression "local_4b4[iVar26]" identifier [ identifier ])) ;) })) (expression_statement "puVar12 = local_423;" (assignment_expression "puVar12 = local_423" identifier = identifier) ;) (expression_statement "__memcpy_chk(puVar12,local_4b4,iVar26,0x201);" (call_expression "__memcpy_chk(puVar12,local_4b4,iVar26,0x201)" identifier (argument_list "(puVar12,local_4b4,iVar26,0x201)" ( identifier , identifier , identifier , number_literal ))) ;) (expression_statement "local_423[iVar26] = 0;" (assignment_expression "local_423[iVar26] = 0" (subscript_expression "local_423[iVar26]" identifier [ identifier ]) = number_literal) ;) (labeled_statement "LAB_0005eb2c:\n    iVar26 = (*(code *)PTR_FUN_000df474)(puVar12,&local_484);" statement_identifier : (expression_statement "iVar26 = (*(code *)PTR_FUN_000df474)(puVar12,&local_484);" (assignment_expression "iVar26 = (*(code *)PTR_FUN_000df474)(puVar12,&local_484)" identifier = (call_expression "(*(code *)PTR_FUN_000df474)(puVar12,&local_484)" (parenthesized_expression "(*(code *)PTR_FUN_000df474)" ( (pointer_expression "*(code *)PTR_FUN_000df474" * (cast_expression "(code *)PTR_FUN_000df474" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar12,&local_484)" ( identifier , (pointer_expression "&local_484" & identifier) )))) ;)) (expression_statement "iVar7 = 0x70a;" (assignment_expression "iVar7 = 0x70a" identifier = number_literal) ;) (if_statement "if (iVar26 != 0) goto LAB_0005e8fb;" if (parenthesized_expression "(iVar26 != 0)" ( (binary_expression "iVar26 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0005e8fb;" goto statement_identifier ;)) (expression_statement "local_4a8 = local_474 & 0x1ff;" (assignment_expression "local_4a8 = local_474 & 0x1ff" identifier = (binary_expression "local_474 & 0x1ff" identifier & number_literal)) ;) (expression_statement "local_4ac = local_46c;" (assignment_expression "local_4ac = local_46c" identifier = identifier) ;) (expression_statement "iVar26 = FUN_0003a9a0(uVar15,uVar14);" (assignment_expression "iVar26 = FUN_0003a9a0(uVar15,uVar14)" identifier = (call_expression "FUN_0003a9a0(uVar15,uVar14)" identifier (argument_list "(uVar15,uVar14)" ( identifier , identifier )))) ;) (expression_statement "uVar22 = local_468;" (assignment_expression "uVar22 = local_468" identifier = identifier) ;) (if_statement "if (iVar26 < 0) goto LAB_0005ec06;" if (parenthesized_expression "(iVar26 < 0)" ( (binary_expression "iVar26 < 0" identifier < number_literal) )) (goto_statement "goto LAB_0005ec06;" goto statement_identifier ;)) (labeled_statement "LAB_0005eb78:\n    if (((local_4a8 != 0) && ((param_4 & 0x80800) != 0)) &&\n       (iVar7 = (*(code *)PTR_geteuid_000df540)(), iVar7 == 0)) {\n      (*(code *)PTR_fchown_000df534)(iVar26,local_4ac,uVar22);\n    }" statement_identifier : (if_statement "if (((local_4a8 != 0) && ((param_4 & 0x80800) != 0)) &&\n       (iVar7 = (*(code *)PTR_geteuid_000df540)(), iVar7 == 0)) {\n      (*(code *)PTR_fchown_000df534)(iVar26,local_4ac,uVar22);\n    }" if (parenthesized_expression "(((local_4a8 != 0) && ((param_4 & 0x80800) != 0)) &&\n       (iVar7 = (*(code *)PTR_geteuid_000df540)(), iVar7 == 0))" ( (binary_expression "((local_4a8 != 0) && ((param_4 & 0x80800) != 0)) &&\n       (iVar7 = (*(code *)PTR_geteuid_000df540)(), iVar7 == 0)" (parenthesized_expression "((local_4a8 != 0) && ((param_4 & 0x80800) != 0))" ( (binary_expression "(local_4a8 != 0) && ((param_4 & 0x80800) != 0)" (parenthesized_expression "(local_4a8 != 0)" ( (binary_expression "local_4a8 != 0" identifier != number_literal) )) && (parenthesized_expression "((param_4 & 0x80800) != 0)" ( (binary_expression "(param_4 & 0x80800) != 0" (parenthesized_expression "(param_4 & 0x80800)" ( (binary_expression "param_4 & 0x80800" identifier & number_literal) )) != number_literal) ))) )) && (parenthesized_expression "(iVar7 = (*(code *)PTR_geteuid_000df540)(), iVar7 == 0)" ( (comma_expression "iVar7 = (*(code *)PTR_geteuid_000df540)(), iVar7 == 0" (assignment_expression "iVar7 = (*(code *)PTR_geteuid_000df540)()" identifier = (call_expression "(*(code *)PTR_geteuid_000df540)()" (parenthesized_expression "(*(code *)PTR_geteuid_000df540)" ( (pointer_expression "*(code *)PTR_geteuid_000df540" * (cast_expression "(code *)PTR_geteuid_000df540" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) , (binary_expression "iVar7 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      (*(code *)PTR_fchown_000df534)(iVar26,local_4ac,uVar22);\n    }" { (expression_statement "(*(code *)PTR_fchown_000df534)(iVar26,local_4ac,uVar22);" (call_expression "(*(code *)PTR_fchown_000df534)(iVar26,local_4ac,uVar22)" (parenthesized_expression "(*(code *)PTR_fchown_000df534)" ( (pointer_expression "*(code *)PTR_fchown_000df534" * (cast_expression "(code *)PTR_fchown_000df534" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar26,local_4ac,uVar22)" ( identifier , identifier , identifier ))) ;) }))) (labeled_statement "LAB_0005e7af:\n    if (param_5 != (uint *)0x0) {\n      *param_5 = param_4;\n    }" statement_identifier : (if_statement "if (param_5 != (uint *)0x0) {\n      *param_5 = param_4;\n    }" if (parenthesized_expression "(param_5 != (uint *)0x0)" ( (binary_expression "param_5 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *param_5 = param_4;\n    }" { (expression_statement "*param_5 = param_4;" (assignment_expression "*param_5 = param_4" (pointer_expression "*param_5" * identifier) = identifier) ;) }))) (expression_statement "piVar13 = (int *)param_3[7];" (assignment_expression "piVar13 = (int *)param_3[7]" identifier = (cast_expression "(int *)param_3[7]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_3[7]" identifier [ number_literal ]))) ;) (if_statement "if (piVar13 != (int *)0x0) {\n      *piVar13 = iVar26;\n      piVar13[1] = param_4 & 3;\n    }" if (parenthesized_expression "(piVar13 != (int *)0x0)" ( (binary_expression "piVar13 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *piVar13 = iVar26;\n      piVar13[1] = param_4 & 3;\n    }" { (expression_statement "*piVar13 = iVar26;" (assignment_expression "*piVar13 = iVar26" (pointer_expression "*piVar13" * identifier) = identifier) ;) (expression_statement "piVar13[1] = param_4 & 3;" (assignment_expression "piVar13[1] = param_4 & 3" (subscript_expression "piVar13[1]" identifier [ number_literal ]) = (binary_expression "param_4 & 3" identifier & number_literal)) ;) })) (if_statement "if (uVar15 != 0) {\n      (*(code *)PTR_unlink_000df504)(local_4b4);\n      uVar15 = 0x20;\n    }" if (parenthesized_expression "(uVar15 != 0)" ( (binary_expression "uVar15 != 0" identifier != number_literal) )) (compound_statement "{\n      (*(code *)PTR_unlink_000df504)(local_4b4);\n      uVar15 = 0x20;\n    }" { (expression_statement "(*(code *)PTR_unlink_000df504)(local_4b4);" (call_expression "(*(code *)PTR_unlink_000df504)(local_4b4)" (parenthesized_expression "(*(code *)PTR_unlink_000df504)" ( (pointer_expression "*(code *)PTR_unlink_000df504" * (cast_expression "(code *)PTR_unlink_000df504" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_4b4)" ( identifier ))) ;) (expression_statement "uVar15 = 0x20;" (assignment_expression "uVar15 = 0x20" identifier = number_literal) ;) })) (expression_statement "uVar22 = DAT_000de40c;" (assignment_expression "uVar22 = DAT_000de40c" identifier = identifier) ;) (expression_statement "uVar19 = uVar15 | 2;" (assignment_expression "uVar19 = uVar15 | 2" identifier = (binary_expression "uVar15 | 2" identifier | number_literal)) ;) (if_statement "if (local_4a4 == 0) {\n      uVar19 = uVar15;\n    }" if (parenthesized_expression "(local_4a4 == 0)" ( (binary_expression "local_4a4 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar19 = uVar15;\n    }" { (expression_statement "uVar19 = uVar15;" (assignment_expression "uVar19 = uVar15" identifier = identifier) ;) })) (expression_statement "uVar15 = uVar19 | 0x80;" (assignment_expression "uVar15 = uVar19 | 0x80" identifier = (binary_expression "uVar19 | 0x80" identifier | number_literal)) ;) (if_statement "if (uVar4 == 0x100) {\n      uVar15 = uVar19;\n    }" if (parenthesized_expression "(uVar4 == 0x100)" ( (binary_expression "uVar4 == 0x100" identifier == number_literal) )) (compound_statement "{\n      uVar15 = uVar19;\n    }" { (expression_statement "uVar15 = uVar19;" (assignment_expression "uVar15 = uVar19" identifier = identifier) ;) })) (expression_statement "uVar4 = uVar15 | 8;" (assignment_expression "uVar4 = uVar15 | 8" identifier = (binary_expression "uVar15 | 8" identifier | number_literal)) ;) (if_statement "if (!bVar24) {\n      uVar4 = uVar15;\n    }" if (parenthesized_expression "(!bVar24)" ( (unary_expression "!bVar24" ! identifier) )) (compound_statement "{\n      uVar4 = uVar15;\n    }" { (expression_statement "uVar4 = uVar15;" (assignment_expression "uVar4 = uVar15" identifier = identifier) ;) })) (if_statement "if ((param_4 & 0x40) == 0) {\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[3] = iVar26;\n      pcVar6 = (char *)0x0;\n      if ((uVar4 & 0x40) != 0) {\n        pcVar6 = param_2;\n      }\n      param_3[8] = param_2;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n    }\n    else {\n      uVar4 = uVar4 | 0x40;\n      param_3[3] = iVar26;\n      param_3[8] = param_2;\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n      pcVar6 = param_2;\n    }" if (parenthesized_expression "((param_4 & 0x40) == 0)" ( (binary_expression "(param_4 & 0x40) == 0" (parenthesized_expression "(param_4 & 0x40)" ( (binary_expression "param_4 & 0x40" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[3] = iVar26;\n      pcVar6 = (char *)0x0;\n      if ((uVar4 & 0x40) != 0) {\n        pcVar6 = param_2;\n      }\n      param_3[8] = param_2;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n    }" { (expression_statement "*(short *)((int)param_3 + 0x12) = (short)uVar4;" (assignment_expression "*(short *)((int)param_3 + 0x12) = (short)uVar4" (pointer_expression "*(short *)((int)param_3 + 0x12)" * (cast_expression "(short *)((int)param_3 + 0x12)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_3 + 0x12)" ( (binary_expression "(int)param_3 + 0x12" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (cast_expression "(short)uVar4" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) (expression_statement "param_3[3] = iVar26;" (assignment_expression "param_3[3] = iVar26" (subscript_expression "param_3[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pcVar6 = (char *)0x0;" (assignment_expression "pcVar6 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if ((uVar4 & 0x40) != 0) {\n        pcVar6 = param_2;\n      }" if (parenthesized_expression "((uVar4 & 0x40) != 0)" ( (binary_expression "(uVar4 & 0x40) != 0" (parenthesized_expression "(uVar4 & 0x40)" ( (binary_expression "uVar4 & 0x40" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        pcVar6 = param_2;\n      }" { (expression_statement "pcVar6 = param_2;" (assignment_expression "pcVar6 = param_2" identifier = identifier) ;) })) (expression_statement "param_3[8] = param_2;" (assignment_expression "param_3[8] = param_2" (subscript_expression "param_3[8]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_3[1] = param_1;" (assignment_expression "param_3[1] = param_1" (subscript_expression "param_3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar3 = DAT_000de408;" (assignment_expression "uVar3 = DAT_000de408" identifier = identifier) ;) (expression_statement "param_3[0x11] = uVar22;" (assignment_expression "param_3[0x11] = uVar22" (subscript_expression "param_3[0x11]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_3[0x10] = uVar3;" (assignment_expression "param_3[0x10] = uVar3" (subscript_expression "param_3[0x10]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n      uVar4 = uVar4 | 0x40;\n      param_3[3] = iVar26;\n      param_3[8] = param_2;\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n      pcVar6 = param_2;\n    }" else (compound_statement "{\n      uVar4 = uVar4 | 0x40;\n      param_3[3] = iVar26;\n      param_3[8] = param_2;\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n      pcVar6 = param_2;\n    }" { (expression_statement "uVar4 = uVar4 | 0x40;" (assignment_expression "uVar4 = uVar4 | 0x40" identifier = (binary_expression "uVar4 | 0x40" identifier | number_literal)) ;) (expression_statement "param_3[3] = iVar26;" (assignment_expression "param_3[3] = iVar26" (subscript_expression "param_3[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_3[8] = param_2;" (assignment_expression "param_3[8] = param_2" (subscript_expression "param_3[8]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(short *)((int)param_3 + 0x12) = (short)uVar4;" (assignment_expression "*(short *)((int)param_3 + 0x12) = (short)uVar4" (pointer_expression "*(short *)((int)param_3 + 0x12)" * (cast_expression "(short *)((int)param_3 + 0x12)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_3 + 0x12)" ( (binary_expression "(int)param_3 + 0x12" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (cast_expression "(short)uVar4" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) (expression_statement "param_3[1] = param_1;" (assignment_expression "param_3[1] = param_1" (subscript_expression "param_3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar3 = DAT_000de408;" (assignment_expression "uVar3 = DAT_000de408" identifier = identifier) ;) (expression_statement "param_3[0x11] = uVar22;" (assignment_expression "param_3[0x11] = uVar22" (subscript_expression "param_3[0x11]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_3[0x10] = uVar3;" (assignment_expression "param_3[0x10] = uVar3" (subscript_expression "param_3[0x10]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pcVar6 = param_2;" (assignment_expression "pcVar6 = param_2" identifier = identifier) ;) }))) (expression_statement "iVar7 = sqlite3_uri_boolean(pcVar6,&DAT_000aa9b5,1);" (assignment_expression "iVar7 = sqlite3_uri_boolean(pcVar6,&DAT_000aa9b5,1)" identifier = (call_expression "sqlite3_uri_boolean(pcVar6,&DAT_000aa9b5,1)" identifier (argument_list "(pcVar6,&DAT_000aa9b5,1)" ( identifier , (pointer_expression "&DAT_000aa9b5" & identifier) , number_literal )))) ;) (expression_statement "bVar24 = iVar7 == 0;" (assignment_expression "bVar24 = iVar7 == 0" identifier = (binary_expression "iVar7 == 0" identifier == number_literal)) ;) (if_statement "if (!bVar24) {\n      puVar1 = (ushort *)((int)param_3 + 0x12);\n      *puVar1 = *puVar1 | 0x10;\n      bVar24 = *puVar1 == 0;\n    }" if (parenthesized_expression "(!bVar24)" ( (unary_expression "!bVar24" ! identifier) )) (compound_statement "{\n      puVar1 = (ushort *)((int)param_3 + 0x12);\n      *puVar1 = *puVar1 | 0x10;\n      bVar24 = *puVar1 == 0;\n    }" { (expression_statement "puVar1 = (ushort *)((int)param_3 + 0x12);" (assignment_expression "puVar1 = (ushort *)((int)param_3 + 0x12)" identifier = (cast_expression "(ushort *)((int)param_3 + 0x12)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_3 + 0x12)" ( (binary_expression "(int)param_3 + 0x12" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "*puVar1 = *puVar1 | 0x10;" (assignment_expression "*puVar1 = *puVar1 | 0x10" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 | 0x10" (pointer_expression "*puVar1" * identifier) | number_literal)) ;) (expression_statement "bVar24 = *puVar1 == 0;" (assignment_expression "bVar24 = *puVar1 == 0" identifier = (binary_expression "*puVar1 == 0" (pointer_expression "*puVar1" * identifier) == number_literal)) ;) })) (expression_statement "bVar23 = false;" (assignment_expression "bVar23 = false" identifier = false) ;) (expression_statement "iVar7 = 10;" (assignment_expression "iVar7 = 10" identifier = number_literal) ;) (expression_statement "pbVar18 = *(byte **)(param_1 + 0x10);" (assignment_expression "pbVar18 = *(byte **)(param_1 + 0x10)" identifier = (pointer_expression "*(byte **)(param_1 + 0x10)" * (cast_expression "(byte **)(param_1 + 0x10)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "pbVar20 = (byte *)"unix-excl";" (assignment_expression "pbVar20 = (byte *)"unix-excl"" identifier = (cast_expression "(byte *)"unix-excl"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""unix-excl"" " string_content "))) ;) (do_statement "do {\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      bVar23 = *pbVar18 < *pbVar20;\n      bVar24 = *pbVar18 == *pbVar20;\n      pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1;\n      pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1;\n    } while (bVar24);" do (compound_statement "{\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      bVar23 = *pbVar18 < *pbVar20;\n      bVar24 = *pbVar18 == *pbVar20;\n      pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1;\n      pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1;\n    }" { (if_statement "if (iVar7 == 0) break;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) (expression_statement "bVar23 = *pbVar18 < *pbVar20;" (assignment_expression "bVar23 = *pbVar18 < *pbVar20" identifier = (binary_expression "*pbVar18 < *pbVar20" (pointer_expression "*pbVar18" * identifier) < (pointer_expression "*pbVar20" * identifier))) ;) (expression_statement "bVar24 = *pbVar18 == *pbVar20;" (assignment_expression "bVar24 = *pbVar18 == *pbVar20" identifier = (binary_expression "*pbVar18 == *pbVar20" (pointer_expression "*pbVar18" * identifier) == (pointer_expression "*pbVar20" * identifier))) ;) (expression_statement "pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1;" (assignment_expression "pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1" identifier = (binary_expression "pbVar18 + (uint)bVar25 * -2 + 1" (binary_expression "pbVar18 + (uint)bVar25 * -2" identifier + (binary_expression "(uint)bVar25 * -2" (cast_expression "(uint)bVar25" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1;" (assignment_expression "pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1" identifier = (binary_expression "pbVar20 + (uint)bVar25 * -2 + 1" (binary_expression "pbVar20 + (uint)bVar25 * -2" identifier + (binary_expression "(uint)bVar25 * -2" (cast_expression "(uint)bVar25" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar24)" ( identifier )) ;) (if_statement "if ((!bVar23 && !bVar24) == bVar23) {\n      *(ushort *)((int)param_3 + 0x12) = *(ushort *)((int)param_3 + 0x12) | 1;\n    }" if (parenthesized_expression "((!bVar23 && !bVar24) == bVar23)" ( (binary_expression "(!bVar23 && !bVar24) == bVar23" (parenthesized_expression "(!bVar23 && !bVar24)" ( (binary_expression "!bVar23 && !bVar24" (unary_expression "!bVar23" ! identifier) && (unary_expression "!bVar24" ! identifier)) )) == identifier) )) (compound_statement "{\n      *(ushort *)((int)param_3 + 0x12) = *(ushort *)((int)param_3 + 0x12) | 1;\n    }" { (expression_statement "*(ushort *)((int)param_3 + 0x12) = *(ushort *)((int)param_3 + 0x12) | 1;" (assignment_expression "*(ushort *)((int)param_3 + 0x12) = *(ushort *)((int)param_3 + 0x12) | 1" (pointer_expression "*(ushort *)((int)param_3 + 0x12)" * (cast_expression "(ushort *)((int)param_3 + 0x12)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_3 + 0x12)" ( (binary_expression "(int)param_3 + 0x12" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "*(ushort *)((int)param_3 + 0x12) | 1" (pointer_expression "*(ushort *)((int)param_3 + 0x12)" * (cast_expression "(ushort *)((int)param_3 + 0x12)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_3 + 0x12)" ( (binary_expression "(int)param_3 + 0x12" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) | number_literal)) ;) })) (if_statement "if ((uVar4 & 0x80) == 0) {\n      puVar8 = (undefined *)(*(code *)**(undefined4 **)(param_1 + 0x14))(param_2,param_3);\n      puVar17 = &DAT_000dd9e0;\n      if (puVar8 == &DAT_000dd9e0) {\n        sqlite3_mutex_enter(DAT_000df7a8);\n        iVar7 = (*(code *)PTR_FUN_000df480)(param_3[3],&local_484);\n        piVar13 = DAT_000df7a4;\n        if (iVar7 == 0) {\n          for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }\n          piVar13 = (int *)sqlite3_malloc64(0x34,0);\n          if (piVar13 != (int *)0x0) {\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }\n          iVar7 = 7;\n        }\n        else {\n          piVar13 = __errno_location();\n          iVar7 = 10;\n          param_3[5] = *piVar13;\n        }\nLAB_0005efaf:\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        sqlite3_mutex_leave(DAT_000df7a8);\n        param_3[5] = 0;\n        goto LAB_0005ee17;\n      }\n      if (puVar8 != &DAT_000dd920) goto LAB_0005e8e8;\n      sVar10 = strlen(param_2);\n      iVar7 = sVar10 + 6;\n      iVar11 = sqlite3_malloc64(iVar7,iVar7 >> 0x1f);\n      if (iVar11 == 0) {\n        param_3[6] = 0;\n        param_3[5] = 0;\n        iVar7 = 7;\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        goto LAB_0005ee17;\n      }\n      sqlite3_snprintf(iVar7,iVar11,"%s.lock",param_2);\n      param_3[5] = 0;\n      param_3[6] = iVar11;\n    }\n    else {\n      puVar8 = &DAT_000dd980;\nLAB_0005e8e8:\n      param_3[5] = 0;\n    }" if (parenthesized_expression "((uVar4 & 0x80) == 0)" ( (binary_expression "(uVar4 & 0x80) == 0" (parenthesized_expression "(uVar4 & 0x80)" ( (binary_expression "uVar4 & 0x80" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      puVar8 = (undefined *)(*(code *)**(undefined4 **)(param_1 + 0x14))(param_2,param_3);\n      puVar17 = &DAT_000dd9e0;\n      if (puVar8 == &DAT_000dd9e0) {\n        sqlite3_mutex_enter(DAT_000df7a8);\n        iVar7 = (*(code *)PTR_FUN_000df480)(param_3[3],&local_484);\n        piVar13 = DAT_000df7a4;\n        if (iVar7 == 0) {\n          for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }\n          piVar13 = (int *)sqlite3_malloc64(0x34,0);\n          if (piVar13 != (int *)0x0) {\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }\n          iVar7 = 7;\n        }\n        else {\n          piVar13 = __errno_location();\n          iVar7 = 10;\n          param_3[5] = *piVar13;\n        }\nLAB_0005efaf:\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        sqlite3_mutex_leave(DAT_000df7a8);\n        param_3[5] = 0;\n        goto LAB_0005ee17;\n      }\n      if (puVar8 != &DAT_000dd920) goto LAB_0005e8e8;\n      sVar10 = strlen(param_2);\n      iVar7 = sVar10 + 6;\n      iVar11 = sqlite3_malloc64(iVar7,iVar7 >> 0x1f);\n      if (iVar11 == 0) {\n        param_3[6] = 0;\n        param_3[5] = 0;\n        iVar7 = 7;\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        goto LAB_0005ee17;\n      }\n      sqlite3_snprintf(iVar7,iVar11,"%s.lock",param_2);\n      param_3[5] = 0;\n      param_3[6] = iVar11;\n    }" { (expression_statement "puVar8 = (undefined *)(*(code *)**(undefined4 **)(param_1 + 0x14))(param_2,param_3);" (assignment_expression "puVar8 = (undefined *)(*(code *)**(undefined4 **)(param_1 + 0x14))(param_2,param_3)" identifier = (cast_expression "(undefined *)(*(code *)**(undefined4 **)(param_1 + 0x14))(param_2,param_3)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)**(undefined4 **)(param_1 + 0x14))(param_2,param_3)" (parenthesized_expression "(*(code *)**(undefined4 **)(param_1 + 0x14))" ( (pointer_expression "*(code *)**(undefined4 **)(param_1 + 0x14)" * (cast_expression "(code *)**(undefined4 **)(param_1 + 0x14)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(undefined4 **)(param_1 + 0x14)" * (pointer_expression "*(undefined4 **)(param_1 + 0x14)" * (cast_expression "(undefined4 **)(param_1 + 0x14)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))))) )) (argument_list "(param_2,param_3)" ( identifier , identifier ))))) ;) (expression_statement "puVar17 = &DAT_000dd9e0;" (assignment_expression "puVar17 = &DAT_000dd9e0" identifier = (pointer_expression "&DAT_000dd9e0" & identifier)) ;) (if_statement "if (puVar8 == &DAT_000dd9e0) {\n        sqlite3_mutex_enter(DAT_000df7a8);\n        iVar7 = (*(code *)PTR_FUN_000df480)(param_3[3],&local_484);\n        piVar13 = DAT_000df7a4;\n        if (iVar7 == 0) {\n          for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }\n          piVar13 = (int *)sqlite3_malloc64(0x34,0);\n          if (piVar13 != (int *)0x0) {\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }\n          iVar7 = 7;\n        }\n        else {\n          piVar13 = __errno_location();\n          iVar7 = 10;\n          param_3[5] = *piVar13;\n        }\nLAB_0005efaf:\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        sqlite3_mutex_leave(DAT_000df7a8);\n        param_3[5] = 0;\n        goto LAB_0005ee17;\n      }" if (parenthesized_expression "(puVar8 == &DAT_000dd9e0)" ( (binary_expression "puVar8 == &DAT_000dd9e0" identifier == (pointer_expression "&DAT_000dd9e0" & identifier)) )) (compound_statement "{\n        sqlite3_mutex_enter(DAT_000df7a8);\n        iVar7 = (*(code *)PTR_FUN_000df480)(param_3[3],&local_484);\n        piVar13 = DAT_000df7a4;\n        if (iVar7 == 0) {\n          for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }\n          piVar13 = (int *)sqlite3_malloc64(0x34,0);\n          if (piVar13 != (int *)0x0) {\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }\n          iVar7 = 7;\n        }\n        else {\n          piVar13 = __errno_location();\n          iVar7 = 10;\n          param_3[5] = *piVar13;\n        }\nLAB_0005efaf:\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        sqlite3_mutex_leave(DAT_000df7a8);\n        param_3[5] = 0;\n        goto LAB_0005ee17;\n      }" { (expression_statement "sqlite3_mutex_enter(DAT_000df7a8);" (call_expression "sqlite3_mutex_enter(DAT_000df7a8)" identifier (argument_list "(DAT_000df7a8)" ( identifier ))) ;) (expression_statement "iVar7 = (*(code *)PTR_FUN_000df480)(param_3[3],&local_484);" (assignment_expression "iVar7 = (*(code *)PTR_FUN_000df480)(param_3[3],&local_484)" identifier = (call_expression "(*(code *)PTR_FUN_000df480)(param_3[3],&local_484)" (parenthesized_expression "(*(code *)PTR_FUN_000df480)" ( (pointer_expression "*(code *)PTR_FUN_000df480" * (cast_expression "(code *)PTR_FUN_000df480" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3[3],&local_484)" ( (subscript_expression "param_3[3]" identifier [ number_literal ]) , (pointer_expression "&local_484" & identifier) )))) ;) (expression_statement "piVar13 = DAT_000df7a4;" (assignment_expression "piVar13 = DAT_000df7a4" identifier = identifier) ;) (if_statement "if (iVar7 == 0) {\n          for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }\n          piVar13 = (int *)sqlite3_malloc64(0x34,0);\n          if (piVar13 != (int *)0x0) {\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }\n          iVar7 = 7;\n        }\n        else {\n          piVar13 = __errno_location();\n          iVar7 = 10;\n          param_3[5] = *piVar13;\n        }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n          for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }\n          piVar13 = (int *)sqlite3_malloc64(0x34,0);\n          if (piVar13 != (int *)0x0) {\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }\n          iVar7 = 7;\n        }" { (for_statement "for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }" for ( ; (binary_expression "piVar13 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "piVar13 = (int *)piVar13[0xb]" identifier = (cast_expression "(int *)piVar13[0xb]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar13[0xb]" identifier [ number_literal ]))) ) (compound_statement "{\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }" { (if_statement "if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }" if (parenthesized_expression "(((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3]))))" ( (binary_expression "((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))" (parenthesized_expression "((local_484 == *piVar13) && (local_480 == piVar13[1]))" ( (binary_expression "(local_484 == *piVar13) && (local_480 == piVar13[1])" (parenthesized_expression "(local_484 == *piVar13)" ( (binary_expression "local_484 == *piVar13" identifier == (pointer_expression "*piVar13" * identifier)) )) && (parenthesized_expression "(local_480 == piVar13[1])" ( (binary_expression "local_480 == piVar13[1]" identifier == (subscript_expression "piVar13[1]" identifier [ number_literal ])) ))) )) && (parenthesized_expression "((local_42c == piVar13[2] && (local_428 == piVar13[3])))" ( (parenthesized_expression "(local_42c == piVar13[2] && (local_428 == piVar13[3]))" ( (binary_expression "local_42c == piVar13[2] && (local_428 == piVar13[3])" (binary_expression "local_42c == piVar13[2]" identifier == (subscript_expression "piVar13[2]" identifier [ number_literal ])) && (parenthesized_expression "(local_428 == piVar13[3])" ( (binary_expression "local_428 == piVar13[3]" identifier == (subscript_expression "piVar13[3]" identifier [ number_literal ])) ))) )) ))) )) (compound_statement "{\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }" { (expression_statement "piVar13[9] = piVar13[9] + 1;" (assignment_expression "piVar13[9] = piVar13[9] + 1" (subscript_expression "piVar13[9]" identifier [ number_literal ]) = (binary_expression "piVar13[9] + 1" (subscript_expression "piVar13[9]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "piVar9 = DAT_000df7a4;" (assignment_expression "piVar9 = DAT_000df7a4" identifier = identifier) ;) (goto_statement "goto LAB_0005ed6d;" goto statement_identifier ;) })) })) (expression_statement "piVar13 = (int *)sqlite3_malloc64(0x34,0);" (assignment_expression "piVar13 = (int *)sqlite3_malloc64(0x34,0)" identifier = (cast_expression "(int *)sqlite3_malloc64(0x34,0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_malloc64(0x34,0)" identifier (argument_list "(0x34,0)" ( number_literal , number_literal ))))) ;) (if_statement "if (piVar13 != (int *)0x0) {\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }" if (parenthesized_expression "(piVar13 != (int *)0x0)" ( (binary_expression "piVar13 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }" { (expression_statement "piVar13[4] = 0;" (assignment_expression "piVar13[4] = 0" (subscript_expression "piVar13[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar13[0xc] = 0;" (assignment_expression "piVar13[0xc] = 0" (subscript_expression "piVar13[0xc]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);" (assignment_expression "puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(piVar13 + 5) & 0xfffffffc)" ( (binary_expression "(uint)(piVar13 + 5) & 0xfffffffc" (call_expression "(uint)(piVar13 + 5)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(piVar13 + 5)" ( (binary_expression "piVar13 + 5" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }" for ( (assignment_expression "uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2" identifier = (binary_expression "(uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2" (call_expression "(uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc)))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc)))" ( (binary_expression "(int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))" (cast_expression "(int)piVar13" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))" ( (binary_expression "0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc)" number_literal - (cast_expression "(int)((uint)(piVar13 + 5) & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(piVar13 + 5) & 0xfffffffc)" ( (binary_expression "(uint)(piVar13 + 5) & 0xfffffffc" (call_expression "(uint)(piVar13 + 5)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(piVar13 + 5)" ( (binary_expression "piVar13 + 5" identifier + number_literal) ))) & number_literal) )))) ))) ))) >> number_literal)) ; (binary_expression "uVar4 != 0" identifier != number_literal) ; (assignment_expression "uVar4 = uVar4 - 1" identifier = (binary_expression "uVar4 - 1" identifier - number_literal)) ) (compound_statement "{\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }" { (expression_statement "*puVar21 = 0;" (assignment_expression "*puVar21 = 0" (pointer_expression "*puVar21" * identifier) = number_literal) ;) (expression_statement "puVar21 = puVar21 + (uint)bVar25 * -2 + 1;" (assignment_expression "puVar21 = puVar21 + (uint)bVar25 * -2 + 1" identifier = (binary_expression "puVar21 + (uint)bVar25 * -2 + 1" (binary_expression "puVar21 + (uint)bVar25 * -2" identifier + (binary_expression "(uint)bVar25 * -2" (cast_expression "(uint)bVar25" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "*piVar13 = local_484;" (assignment_expression "*piVar13 = local_484" (pointer_expression "*piVar13" * identifier) = identifier) ;) (expression_statement "piVar13[1] = local_480;" (assignment_expression "piVar13[1] = local_480" (subscript_expression "piVar13[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "bVar24 = DAT_000de364 != '\0';" (assignment_expression "bVar24 = DAT_000de364 != '\0'" identifier = (binary_expression "DAT_000de364 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence '))) ;) (expression_statement "piVar13[2] = local_42c;" (assignment_expression "piVar13[2] = local_42c" (subscript_expression "piVar13[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar13[3] = local_428;" (assignment_expression "piVar13[3] = local_428" (subscript_expression "piVar13[3]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }" if (parenthesized_expression "(bVar24)" ( identifier )) (compound_statement "{\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }" { (expression_statement "iVar7 = sqlite3_mutex_alloc(0);" (assignment_expression "iVar7 = sqlite3_mutex_alloc(0)" identifier = (call_expression "sqlite3_mutex_alloc(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (expression_statement "piVar13[4] = iVar7;" (assignment_expression "piVar13[4] = iVar7" (subscript_expression "piVar13[4]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }" { (expression_statement "iVar7 = 7;" (assignment_expression "iVar7 = 7" identifier = number_literal) ;) (expression_statement "sqlite3_free(piVar13);" (call_expression "sqlite3_free(piVar13)" identifier (argument_list "(piVar13)" ( identifier ))) ;) (goto_statement "goto LAB_0005efaf;" goto statement_identifier ;) })) })) (expression_statement "piVar13[9] = 1;" (assignment_expression "piVar13[9] = 1" (subscript_expression "piVar13[9]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar13[0xc] = 0;" (assignment_expression "piVar13[0xc] = 0" (subscript_expression "piVar13[0xc]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar13[0xb] = (int)DAT_000df7a4;" (assignment_expression "piVar13[0xb] = (int)DAT_000df7a4" (subscript_expression "piVar13[0xb]" identifier [ number_literal ]) = (cast_expression "(int)DAT_000df7a4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar9 = piVar13;" (assignment_expression "piVar9 = piVar13" identifier = identifier) ;) (if_statement "if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }" if (parenthesized_expression "(DAT_000df7a4 != (int *)0x0)" ( (binary_expression "DAT_000df7a4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }" { (expression_statement "DAT_000df7a4[0xc] = (int)piVar13;" (assignment_expression "DAT_000df7a4[0xc] = (int)piVar13" (subscript_expression "DAT_000df7a4[0xc]" identifier [ number_literal ]) = (cast_expression "(int)piVar13" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })) (labeled_statement "LAB_0005ed6d:\n            DAT_000df7a4 = piVar9;" statement_identifier : (expression_statement "DAT_000df7a4 = piVar9;" (assignment_expression "DAT_000df7a4 = piVar9" identifier = identifier) ;)) (expression_statement "param_3[2] = piVar13;" (assignment_expression "param_3[2] = piVar13" (subscript_expression "param_3[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar8 = puVar17;" (assignment_expression "puVar8 = puVar17" identifier = identifier) ;) (expression_statement "sqlite3_mutex_leave(DAT_000df7a8);" (call_expression "sqlite3_mutex_leave(DAT_000df7a8)" identifier (argument_list "(DAT_000df7a8)" ( identifier ))) ;) (expression_statement "param_3[5] = 0;" (assignment_expression "param_3[5] = 0" (subscript_expression "param_3[5]" identifier [ number_literal ]) = number_literal) ;) (goto_statement "goto LAB_0005e8ef;" goto statement_identifier ;) })) (expression_statement "iVar7 = 7;" (assignment_expression "iVar7 = 7" identifier = number_literal) ;) }) (else_clause "else {\n          piVar13 = __errno_location();\n          iVar7 = 10;\n          param_3[5] = *piVar13;\n        }" else (compound_statement "{\n          piVar13 = __errno_location();\n          iVar7 = 10;\n          param_3[5] = *piVar13;\n        }" { (expression_statement "piVar13 = __errno_location();" (assignment_expression "piVar13 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar7 = 10;" (assignment_expression "iVar7 = 10" identifier = number_literal) ;) (expression_statement "param_3[5] = *piVar13;" (assignment_expression "param_3[5] = *piVar13" (subscript_expression "param_3[5]" identifier [ number_literal ]) = (pointer_expression "*piVar13" * identifier)) ;) }))) (labeled_statement "LAB_0005efaf:\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);" statement_identifier : (expression_statement "iVar26 = (*(code *)PTR_close_000df450)(iVar26);" (assignment_expression "iVar26 = (*(code *)PTR_close_000df450)(iVar26)" identifier = (call_expression "(*(code *)PTR_close_000df450)(iVar26)" (parenthesized_expression "(*(code *)PTR_close_000df450)" ( (pointer_expression "*(code *)PTR_close_000df450" * (cast_expression "(code *)PTR_close_000df450" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar26)" ( identifier )))) ;)) (if_statement "if (iVar26 != 0) {\n          FUN_0003aea0();\n        }" if (parenthesized_expression "(iVar26 != 0)" ( (binary_expression "iVar26 != 0" identifier != number_literal) )) (compound_statement "{\n          FUN_0003aea0();\n        }" { (expression_statement "FUN_0003aea0();" (call_expression "FUN_0003aea0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "sqlite3_mutex_leave(DAT_000df7a8);" (call_expression "sqlite3_mutex_leave(DAT_000df7a8)" identifier (argument_list "(DAT_000df7a8)" ( identifier ))) ;) (expression_statement "param_3[5] = 0;" (assignment_expression "param_3[5] = 0" (subscript_expression "param_3[5]" identifier [ number_literal ]) = number_literal) ;) (goto_statement "goto LAB_0005ee17;" goto statement_identifier ;) })) (if_statement "if (puVar8 != &DAT_000dd920) goto LAB_0005e8e8;" if (parenthesized_expression "(puVar8 != &DAT_000dd920)" ( (binary_expression "puVar8 != &DAT_000dd920" identifier != (pointer_expression "&DAT_000dd920" & identifier)) )) (goto_statement "goto LAB_0005e8e8;" goto statement_identifier ;)) (expression_statement "sVar10 = strlen(param_2);" (assignment_expression "sVar10 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "iVar7 = sVar10 + 6;" (assignment_expression "iVar7 = sVar10 + 6" identifier = (binary_expression "sVar10 + 6" identifier + number_literal)) ;) (expression_statement "iVar11 = sqlite3_malloc64(iVar7,iVar7 >> 0x1f);" (assignment_expression "iVar11 = sqlite3_malloc64(iVar7,iVar7 >> 0x1f)" identifier = (call_expression "sqlite3_malloc64(iVar7,iVar7 >> 0x1f)" identifier (argument_list "(iVar7,iVar7 >> 0x1f)" ( identifier , (binary_expression "iVar7 >> 0x1f" identifier >> number_literal) )))) ;) (if_statement "if (iVar11 == 0) {\n        param_3[6] = 0;\n        param_3[5] = 0;\n        iVar7 = 7;\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        goto LAB_0005ee17;\n      }" if (parenthesized_expression "(iVar11 == 0)" ( (binary_expression "iVar11 == 0" identifier == number_literal) )) (compound_statement "{\n        param_3[6] = 0;\n        param_3[5] = 0;\n        iVar7 = 7;\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        goto LAB_0005ee17;\n      }" { (expression_statement "param_3[6] = 0;" (assignment_expression "param_3[6] = 0" (subscript_expression "param_3[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_3[5] = 0;" (assignment_expression "param_3[5] = 0" (subscript_expression "param_3[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar7 = 7;" (assignment_expression "iVar7 = 7" identifier = number_literal) ;) (expression_statement "iVar26 = (*(code *)PTR_close_000df450)(iVar26);" (assignment_expression "iVar26 = (*(code *)PTR_close_000df450)(iVar26)" identifier = (call_expression "(*(code *)PTR_close_000df450)(iVar26)" (parenthesized_expression "(*(code *)PTR_close_000df450)" ( (pointer_expression "*(code *)PTR_close_000df450" * (cast_expression "(code *)PTR_close_000df450" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar26)" ( identifier )))) ;) (if_statement "if (iVar26 != 0) {\n          FUN_0003aea0();\n        }" if (parenthesized_expression "(iVar26 != 0)" ( (binary_expression "iVar26 != 0" identifier != number_literal) )) (compound_statement "{\n          FUN_0003aea0();\n        }" { (expression_statement "FUN_0003aea0();" (call_expression "FUN_0003aea0()" identifier (argument_list "()" ( ))) ;) })) (goto_statement "goto LAB_0005ee17;" goto statement_identifier ;) })) (expression_statement "sqlite3_snprintf(iVar7,iVar11,"%s.lock",param_2);" (call_expression "sqlite3_snprintf(iVar7,iVar11,"%s.lock",param_2)" identifier (argument_list "(iVar7,iVar11,"%s.lock",param_2)" ( identifier , identifier , (string_literal ""%s.lock"" " string_content ") , identifier ))) ;) (expression_statement "param_3[5] = 0;" (assignment_expression "param_3[5] = 0" (subscript_expression "param_3[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_3[6] = iVar11;" (assignment_expression "param_3[6] = iVar11" (subscript_expression "param_3[6]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n      puVar8 = &DAT_000dd980;\nLAB_0005e8e8:\n      param_3[5] = 0;\n    }" else (compound_statement "{\n      puVar8 = &DAT_000dd980;\nLAB_0005e8e8:\n      param_3[5] = 0;\n    }" { (expression_statement "puVar8 = &DAT_000dd980;" (assignment_expression "puVar8 = &DAT_000dd980" identifier = (pointer_expression "&DAT_000dd980" & identifier)) ;) (labeled_statement "LAB_0005e8e8:\n      param_3[5] = 0;" statement_identifier : (expression_statement "param_3[5] = 0;" (assignment_expression "param_3[5] = 0" (subscript_expression "param_3[5]" identifier [ number_literal ]) = number_literal) ;)) }))) (labeled_statement "LAB_0005e8ef:\n    *param_3 = puVar8;" statement_identifier : (expression_statement "*param_3 = puVar8;" (assignment_expression "*param_3 = puVar8" (pointer_expression "*param_3" * identifier) = identifier) ;)) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "FUN_0003a610();" (call_expression "FUN_0003a610()" identifier (argument_list "()" ( ))) ;) }))) (labeled_statement "LAB_0005e8fb:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar7;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar7;\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    return iVar7;\n  }" { (return_statement "return iVar7;" return identifier ;) }))) (expression_statement "FUN_000a9ea0();" (call_expression "FUN_000a9ea0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) || (binary_expression IDENT == LIT)) )) || (binary_expression IDENT == LIT))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , LIT ))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )))) ;) (for_statement for ( (assignment_expression IDENT = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression LIT - (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )))) ))) ))) >> 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)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (pointer_expression & IDENT) )))) , (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT == LIT))) ))) )) (compound_statement { (for_statement for ( ; (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ; (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) == IDENT) && (binary_expression (pointer_expression * IDENT) == IDENT)) )) && (parenthesized_expression ( (binary_expression (binary_expression IDENT == (subscript_expression IDENT [ LIT ])) && (binary_expression IDENT == (subscript_expression IDENT [ LIT ]))) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != (subscript_expression IDENT [ LIT ])) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (goto_statement goto statement_identifier ;) })) })) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) })) (goto_statement goto statement_identifier ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , LIT ))))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) (while_statement while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != (subscript_expression IDENT [ LIT ])) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = (subscript_expression IDENT [ LIT ])) ;)) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") ))))) , (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( IDENT )) && (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT & LIT) | LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) }))) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;)) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) - LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ IDENT ])) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ IDENT ])) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , LIT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (pointer_expression & IDENT) )))) ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT ))) ;) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT & LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (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 = IDENT) ;) })) (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 = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) (if_statement if (parenthesized_expression ( (unary_expression ! IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (cast_expression ( (type_descriptor (sized_type_specifier short)) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (cast_expression ( (type_descriptor (sized_type_specifier short)) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == LIT)) ;) (if_statement if (parenthesized_expression ( (unary_expression ! IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) | LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == LIT)) ;) })) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (string_literal " string_content "))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT))) ;) (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 = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! IDENT) && (unary_expression ! IDENT)) )) == IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) | LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))))) )) (argument_list ( IDENT , IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression & IDENT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (subscript_expression IDENT [ LIT ]) , (pointer_expression & IDENT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (for_statement for ( ; (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ; (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * IDENT)) )) && (parenthesized_expression ( (binary_expression IDENT == (subscript_expression IDENT [ LIT ])) ))) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT == (subscript_expression IDENT [ LIT ])) && (parenthesized_expression ( (binary_expression IDENT == (subscript_expression IDENT [ LIT ])) ))) )) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (goto_statement goto statement_identifier ;) })) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )))) ;) (for_statement for ( (assignment_expression IDENT = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression LIT - (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )))) ))) ))) >> 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 (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT != (char_literal ' escape_sequence '))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * IDENT)) ;) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression & IDENT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT >> LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (string_literal " string_content ") , IDENT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;)) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (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 { (return_statement return IDENT ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "int FUN_0005e640(int param_1,char *param_2,undefined4 *param_3,uint param_4,uint *param_5)\n\n{\n  ushort *puVar1;\n  char cVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  __pid_t _Var5;\n  char *pcVar6;\n  int iVar7;\n  undefined *puVar8;\n  int *piVar9;\n  size_t sVar10;\n  int iVar11;\n  undefined1 *puVar12;\n  int *piVar13;\n  uint uVar14;\n  uint uVar15;\n  int *piVar16;\n  undefined *puVar17;\n  byte *pbVar18;\n  uint uVar19;\n  byte *pbVar20;\n  undefined4 *puVar21;\n  undefined4 uVar22;\n  int in_GS_OFFSET;\n  bool bVar23;\n  bool bVar24;\n  byte bVar25;\n  int iVar26;\n  char *local_4b4;\n  undefined4 local_4ac;\n  uint local_4a8;\n  uint local_4a4;\n  int local_484;\n  int local_480;\n  uint local_474;\n  undefined4 local_46c;\n  undefined4 local_468;\n  int local_42c;\n  int local_428;\n  undefined1 local_423 [513];\n  char local_222 [514];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar25 = 0;\n  uStack_14 = 0x5e649;\n  uVar15 = param_4 & 8;\n  local_4a4 = param_4 & 1;\n  uVar19 = param_4 & 2;\n  bVar24 = false;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar4 = param_4 & 0xfff00;\n  if ((param_4 & 4) != 0) {\n    bVar24 = (uVar4 == 0x4000 || uVar4 == 0x800) || uVar4 == 0x80000;\n  }\n  _Var5 = getpid();\n  if (_Var5 != DAT_000df7ac) {\n    DAT_000df7ac = getpid();\n    sqlite3_randomness(0,0);\n  }\n  *param_3 = 0;\n  param_3[0x14] = 0;\n  puVar21 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);\n  for (uVar14 = (uint)((int)param_3 + (0x54 - (int)((uint)(param_3 + 1) & 0xfffffffc))) >> 2;\n      uVar14 != 0; uVar14 = uVar14 - 1) {\n    *puVar21 = 0;\n    puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n  }\n  if (uVar4 == 0x100) {\n    sqlite3_mutex_enter(DAT_000df7a8);\n    if ((DAT_000df7a4 != (int *)0x0) &&\n       (iVar26 = (*(code *)PTR_FUN_000df474)(param_2,&local_484), piVar13 = DAT_000df7a4,\n       iVar26 == 0)) {\n      for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n        if ((piVar13[1] == local_480 && *piVar13 == local_484) &&\n           (local_428 == piVar13[3] && local_42c == piVar13[2])) {\n          sqlite3_mutex_enter(piVar13[4]);\n          piVar9 = (int *)piVar13[8];\n          if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n          if ((param_4 & 3) != piVar9[1]) goto LAB_0005ea33;\n          piVar16 = piVar13 + 8;\n          goto LAB_0005ee53;\n        }\n      }\n    }\n    sqlite3_mutex_leave(DAT_000df7a8);\n    goto LAB_0005ea54;\n  }\n  iVar26 = -1;\n  local_4b4 = param_2;\n  if (param_2 == (char *)0x0) {\n    local_4b4 = local_222;\n    iVar7 = FUN_0005df50();\n    if (iVar7 != 0) goto LAB_0005e8fb;\n  }\n  goto LAB_0005e781;\nLAB_0005ea3a:\n  sqlite3_mutex_leave(piVar13[4]);\n  sqlite3_mutex_leave(DAT_000df7a8);\nLAB_0005ea54:\n  piVar9 = (int *)sqlite3_malloc64(0xc,0);\n  if (piVar9 == (int *)0x0) {\n    iVar7 = 7;\n    goto LAB_0005e8fb;\n  }\n  iVar26 = -1;\n  goto LAB_0005ee78;\n  while ((param_4 & 3) != piVar9[1]) {\nLAB_0005ea33:\n    piVar16 = piVar9;\n    piVar9 = (int *)piVar16[2];\n    if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n  }\n  piVar16 = piVar16 + 2;\nLAB_0005ee53:\n  *piVar16 = piVar9[2];\n  sqlite3_mutex_leave(piVar13[4]);\n  sqlite3_mutex_leave(DAT_000df7a8);\n  iVar26 = *piVar9;\nLAB_0005ee78:\n  param_3[7] = piVar9;\n  local_4b4 = param_2;\nLAB_0005e781:\n  uVar14 = uVar19;\n  if ((param_4 & 4) != 0) {\n    uVar14 = uVar19 | 0x40;\n  }\n  if ((param_4 & 0x10) != 0) {\n    uVar14 = uVar14 | 0x20080;\n  }\n  if (-1 < iVar26) goto LAB_0005e7af;\n  uVar14 = uVar14 | 0x28000;\n  if ((param_4 & 0x80800) == 0) {\n    if (uVar15 == 0) {\n      if (((param_4 & 0x40) != 0) &&\n         (puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof"),\n         puVar12 != (undefined1 *)0x0)) goto LAB_0005eb2c;\nLAB_0005ebd9:\n      iVar26 = FUN_0003a9a0(uVar15,uVar14);\n      if (iVar26 < 0) {\n        local_4ac = 0;\n        local_4a8 = 0;\n        uVar22 = 0;\n        goto LAB_0005ec06;\n      }\n      goto LAB_0005e7af;\n    }\n    iVar26 = FUN_0003a9a0(uVar15,uVar14);\n    if (-1 < iVar26) goto LAB_0005e7af;\n    uVar22 = 0;\n    local_4ac = 0;\n    local_4a8 = 0x180;\nLAB_0005ec06:\n    piVar13 = __errno_location();\n    iVar26 = *piVar13;\n    if ((bVar24) && (iVar26 == 0xd)) {\n      iVar26 = (*(code *)PTR_access_000df45c)(local_4b4,0);\n      if (iVar26 == 0) {\n        iVar26 = *piVar13;\n        goto LAB_0005ec40;\n      }\n      iVar7 = 0x608;\n      FUN_000383b0();\n      FUN_0003aad0(0x9ae7);\n    }\n    else {\nLAB_0005ec40:\n      if ((uVar19 != 0) && (iVar26 != 0x15)) {\n        param_4 = param_4 & 0xfffffff9 | 1;\n        iVar26 = FUN_0003a9a0();\n        if (-1 < iVar26) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }\n      FUN_000383b0();\n      iVar7 = FUN_0003aad0(0x9ae7);\n      if (iVar7 == 0) goto LAB_0005e8fb;\n    }\nLAB_0005ee17:\n    sqlite3_free(param_3[7]);\n  }\n  else {\n    if (local_4b4 == (char *)0x0) {\n      iVar26 = -1;\n    }\n    else {\n      sVar10 = strlen(local_4b4);\n      iVar26 = (sVar10 & 0x3fffffff) - 1;\n    }\n    cVar2 = local_4b4[iVar26];\n    while (cVar2 != '-') {\n      if ((cVar2 == '.') || (iVar26 == 0)) goto LAB_0005ebd9;\n      iVar26 = iVar26 + -1;\n      cVar2 = local_4b4[iVar26];\n    }\n    puVar12 = local_423;\n    __memcpy_chk(puVar12,local_4b4,iVar26,0x201);\n    local_423[iVar26] = 0;\nLAB_0005eb2c:\n    iVar26 = (*(code *)PTR_FUN_000df474)(puVar12,&local_484);\n    iVar7 = 0x70a;\n    if (iVar26 != 0) goto LAB_0005e8fb;\n    local_4a8 = local_474 & 0x1ff;\n    local_4ac = local_46c;\n    iVar26 = FUN_0003a9a0(uVar15,uVar14);\n    uVar22 = local_468;\n    if (iVar26 < 0) goto LAB_0005ec06;\nLAB_0005eb78:\n    if (((local_4a8 != 0) && ((param_4 & 0x80800) != 0)) &&\n       (iVar7 = (*(code *)PTR_geteuid_000df540)(), iVar7 == 0)) {\n      (*(code *)PTR_fchown_000df534)(iVar26,local_4ac,uVar22);\n    }\nLAB_0005e7af:\n    if (param_5 != (uint *)0x0) {\n      *param_5 = param_4;\n    }\n    piVar13 = (int *)param_3[7];\n    if (piVar13 != (int *)0x0) {\n      *piVar13 = iVar26;\n      piVar13[1] = param_4 & 3;\n    }\n    if (uVar15 != 0) {\n      (*(code *)PTR_unlink_000df504)(local_4b4);\n      uVar15 = 0x20;\n    }\n    uVar22 = DAT_000de40c;\n    uVar19 = uVar15 | 2;\n    if (local_4a4 == 0) {\n      uVar19 = uVar15;\n    }\n    uVar15 = uVar19 | 0x80;\n    if (uVar4 == 0x100) {\n      uVar15 = uVar19;\n    }\n    uVar4 = uVar15 | 8;\n    if (!bVar24) {\n      uVar4 = uVar15;\n    }\n    if ((param_4 & 0x40) == 0) {\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[3] = iVar26;\n      pcVar6 = (char *)0x0;\n      if ((uVar4 & 0x40) != 0) {\n        pcVar6 = param_2;\n      }\n      param_3[8] = param_2;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n    }\n    else {\n      uVar4 = uVar4 | 0x40;\n      param_3[3] = iVar26;\n      param_3[8] = param_2;\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n      pcVar6 = param_2;\n    }\n    iVar7 = sqlite3_uri_boolean(pcVar6,&DAT_000aa9b5,1);\n    bVar24 = iVar7 == 0;\n    if (!bVar24) {\n      puVar1 = (ushort *)((int)param_3 + 0x12);\n      *puVar1 = *puVar1 | 0x10;\n      bVar24 = *puVar1 == 0;\n    }\n    bVar23 = false;\n    iVar7 = 10;\n    pbVar18 = *(byte **)(param_1 + 0x10);\n    pbVar20 = (byte *)"unix-excl";\n    do {\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      bVar23 = *pbVar18 < *pbVar20;\n      bVar24 = *pbVar18 == *pbVar20;\n      pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1;\n      pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1;\n    } while (bVar24);\n    if ((!bVar23 && !bVar24) == bVar23) {\n      *(ushort *)((int)param_3 + 0x12) = *(ushort *)((int)param_3 + 0x12) | 1;\n    }\n    if ((uVar4 & 0x80) == 0) {\n      puVar8 = (undefined *)(*(code *)**(undefined4 **)(param_1 + 0x14))(param_2,param_3);\n      puVar17 = &DAT_000dd9e0;\n      if (puVar8 == &DAT_000dd9e0) {\n        sqlite3_mutex_enter(DAT_000df7a8);\n        iVar7 = (*(code *)PTR_FUN_000df480)(param_3[3],&local_484);\n        piVar13 = DAT_000df7a4;\n        if (iVar7 == 0) {\n          for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }\n          piVar13 = (int *)sqlite3_malloc64(0x34,0);\n          if (piVar13 != (int *)0x0) {\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }\n          iVar7 = 7;\n        }\n        else {\n          piVar13 = __errno_location();\n          iVar7 = 10;\n          param_3[5] = *piVar13;\n        }\nLAB_0005efaf:\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        sqlite3_mutex_leave(DAT_000df7a8);\n        param_3[5] = 0;\n        goto LAB_0005ee17;\n      }\n      if (puVar8 != &DAT_000dd920) goto LAB_0005e8e8;\n      sVar10 = strlen(param_2);\n      iVar7 = sVar10 + 6;\n      iVar11 = sqlite3_malloc64(iVar7,iVar7 >> 0x1f);\n      if (iVar11 == 0) {\n        param_3[6] = 0;\n        param_3[5] = 0;\n        iVar7 = 7;\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        goto LAB_0005ee17;\n      }\n      sqlite3_snprintf(iVar7,iVar11,"%s.lock",param_2);\n      param_3[5] = 0;\n      param_3[6] = iVar11;\n    }\n    else {\n      puVar8 = &DAT_000dd980;\nLAB_0005e8e8:\n      param_3[5] = 0;\n    }\nLAB_0005e8ef:\n    *param_3 = puVar8;\n    iVar7 = 0;\n    FUN_0003a610();\n  }\nLAB_0005e8fb:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar7;\n  }\n                    \n  FUN_000a9ea0();\n}" (primitive_type "int") (function_declarator "FUN_0005e640(int param_1,char *param_2,undefined4 *param_3,uint param_4,uint *param_5)" (identifier "FUN_0005e640") (parameter_list "(int param_1,char *param_2,undefined4 *param_3,uint param_4,uint *param_5)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "uint param_4" (type_identifier "uint") (identifier "param_4")) (, ",") (parameter_declaration "uint *param_5" (type_identifier "uint") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")"))) (compound_statement "{\n  ushort *puVar1;\n  char cVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  __pid_t _Var5;\n  char *pcVar6;\n  int iVar7;\n  undefined *puVar8;\n  int *piVar9;\n  size_t sVar10;\n  int iVar11;\n  undefined1 *puVar12;\n  int *piVar13;\n  uint uVar14;\n  uint uVar15;\n  int *piVar16;\n  undefined *puVar17;\n  byte *pbVar18;\n  uint uVar19;\n  byte *pbVar20;\n  undefined4 *puVar21;\n  undefined4 uVar22;\n  int in_GS_OFFSET;\n  bool bVar23;\n  bool bVar24;\n  byte bVar25;\n  int iVar26;\n  char *local_4b4;\n  undefined4 local_4ac;\n  uint local_4a8;\n  uint local_4a4;\n  int local_484;\n  int local_480;\n  uint local_474;\n  undefined4 local_46c;\n  undefined4 local_468;\n  int local_42c;\n  int local_428;\n  undefined1 local_423 [513];\n  char local_222 [514];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar25 = 0;\n  uStack_14 = 0x5e649;\n  uVar15 = param_4 & 8;\n  local_4a4 = param_4 & 1;\n  uVar19 = param_4 & 2;\n  bVar24 = false;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar4 = param_4 & 0xfff00;\n  if ((param_4 & 4) != 0) {\n    bVar24 = (uVar4 == 0x4000 || uVar4 == 0x800) || uVar4 == 0x80000;\n  }\n  _Var5 = getpid();\n  if (_Var5 != DAT_000df7ac) {\n    DAT_000df7ac = getpid();\n    sqlite3_randomness(0,0);\n  }\n  *param_3 = 0;\n  param_3[0x14] = 0;\n  puVar21 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);\n  for (uVar14 = (uint)((int)param_3 + (0x54 - (int)((uint)(param_3 + 1) & 0xfffffffc))) >> 2;\n      uVar14 != 0; uVar14 = uVar14 - 1) {\n    *puVar21 = 0;\n    puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n  }\n  if (uVar4 == 0x100) {\n    sqlite3_mutex_enter(DAT_000df7a8);\n    if ((DAT_000df7a4 != (int *)0x0) &&\n       (iVar26 = (*(code *)PTR_FUN_000df474)(param_2,&local_484), piVar13 = DAT_000df7a4,\n       iVar26 == 0)) {\n      for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n        if ((piVar13[1] == local_480 && *piVar13 == local_484) &&\n           (local_428 == piVar13[3] && local_42c == piVar13[2])) {\n          sqlite3_mutex_enter(piVar13[4]);\n          piVar9 = (int *)piVar13[8];\n          if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n          if ((param_4 & 3) != piVar9[1]) goto LAB_0005ea33;\n          piVar16 = piVar13 + 8;\n          goto LAB_0005ee53;\n        }\n      }\n    }\n    sqlite3_mutex_leave(DAT_000df7a8);\n    goto LAB_0005ea54;\n  }\n  iVar26 = -1;\n  local_4b4 = param_2;\n  if (param_2 == (char *)0x0) {\n    local_4b4 = local_222;\n    iVar7 = FUN_0005df50();\n    if (iVar7 != 0) goto LAB_0005e8fb;\n  }\n  goto LAB_0005e781;\nLAB_0005ea3a:\n  sqlite3_mutex_leave(piVar13[4]);\n  sqlite3_mutex_leave(DAT_000df7a8);\nLAB_0005ea54:\n  piVar9 = (int *)sqlite3_malloc64(0xc,0);\n  if (piVar9 == (int *)0x0) {\n    iVar7 = 7;\n    goto LAB_0005e8fb;\n  }\n  iVar26 = -1;\n  goto LAB_0005ee78;\n  while ((param_4 & 3) != piVar9[1]) {\nLAB_0005ea33:\n    piVar16 = piVar9;\n    piVar9 = (int *)piVar16[2];\n    if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n  }\n  piVar16 = piVar16 + 2;\nLAB_0005ee53:\n  *piVar16 = piVar9[2];\n  sqlite3_mutex_leave(piVar13[4]);\n  sqlite3_mutex_leave(DAT_000df7a8);\n  iVar26 = *piVar9;\nLAB_0005ee78:\n  param_3[7] = piVar9;\n  local_4b4 = param_2;\nLAB_0005e781:\n  uVar14 = uVar19;\n  if ((param_4 & 4) != 0) {\n    uVar14 = uVar19 | 0x40;\n  }\n  if ((param_4 & 0x10) != 0) {\n    uVar14 = uVar14 | 0x20080;\n  }\n  if (-1 < iVar26) goto LAB_0005e7af;\n  uVar14 = uVar14 | 0x28000;\n  if ((param_4 & 0x80800) == 0) {\n    if (uVar15 == 0) {\n      if (((param_4 & 0x40) != 0) &&\n         (puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof"),\n         puVar12 != (undefined1 *)0x0)) goto LAB_0005eb2c;\nLAB_0005ebd9:\n      iVar26 = FUN_0003a9a0(uVar15,uVar14);\n      if (iVar26 < 0) {\n        local_4ac = 0;\n        local_4a8 = 0;\n        uVar22 = 0;\n        goto LAB_0005ec06;\n      }\n      goto LAB_0005e7af;\n    }\n    iVar26 = FUN_0003a9a0(uVar15,uVar14);\n    if (-1 < iVar26) goto LAB_0005e7af;\n    uVar22 = 0;\n    local_4ac = 0;\n    local_4a8 = 0x180;\nLAB_0005ec06:\n    piVar13 = __errno_location();\n    iVar26 = *piVar13;\n    if ((bVar24) && (iVar26 == 0xd)) {\n      iVar26 = (*(code *)PTR_access_000df45c)(local_4b4,0);\n      if (iVar26 == 0) {\n        iVar26 = *piVar13;\n        goto LAB_0005ec40;\n      }\n      iVar7 = 0x608;\n      FUN_000383b0();\n      FUN_0003aad0(0x9ae7);\n    }\n    else {\nLAB_0005ec40:\n      if ((uVar19 != 0) && (iVar26 != 0x15)) {\n        param_4 = param_4 & 0xfffffff9 | 1;\n        iVar26 = FUN_0003a9a0();\n        if (-1 < iVar26) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }\n      FUN_000383b0();\n      iVar7 = FUN_0003aad0(0x9ae7);\n      if (iVar7 == 0) goto LAB_0005e8fb;\n    }\nLAB_0005ee17:\n    sqlite3_free(param_3[7]);\n  }\n  else {\n    if (local_4b4 == (char *)0x0) {\n      iVar26 = -1;\n    }\n    else {\n      sVar10 = strlen(local_4b4);\n      iVar26 = (sVar10 & 0x3fffffff) - 1;\n    }\n    cVar2 = local_4b4[iVar26];\n    while (cVar2 != '-') {\n      if ((cVar2 == '.') || (iVar26 == 0)) goto LAB_0005ebd9;\n      iVar26 = iVar26 + -1;\n      cVar2 = local_4b4[iVar26];\n    }\n    puVar12 = local_423;\n    __memcpy_chk(puVar12,local_4b4,iVar26,0x201);\n    local_423[iVar26] = 0;\nLAB_0005eb2c:\n    iVar26 = (*(code *)PTR_FUN_000df474)(puVar12,&local_484);\n    iVar7 = 0x70a;\n    if (iVar26 != 0) goto LAB_0005e8fb;\n    local_4a8 = local_474 & 0x1ff;\n    local_4ac = local_46c;\n    iVar26 = FUN_0003a9a0(uVar15,uVar14);\n    uVar22 = local_468;\n    if (iVar26 < 0) goto LAB_0005ec06;\nLAB_0005eb78:\n    if (((local_4a8 != 0) && ((param_4 & 0x80800) != 0)) &&\n       (iVar7 = (*(code *)PTR_geteuid_000df540)(), iVar7 == 0)) {\n      (*(code *)PTR_fchown_000df534)(iVar26,local_4ac,uVar22);\n    }\nLAB_0005e7af:\n    if (param_5 != (uint *)0x0) {\n      *param_5 = param_4;\n    }\n    piVar13 = (int *)param_3[7];\n    if (piVar13 != (int *)0x0) {\n      *piVar13 = iVar26;\n      piVar13[1] = param_4 & 3;\n    }\n    if (uVar15 != 0) {\n      (*(code *)PTR_unlink_000df504)(local_4b4);\n      uVar15 = 0x20;\n    }\n    uVar22 = DAT_000de40c;\n    uVar19 = uVar15 | 2;\n    if (local_4a4 == 0) {\n      uVar19 = uVar15;\n    }\n    uVar15 = uVar19 | 0x80;\n    if (uVar4 == 0x100) {\n      uVar15 = uVar19;\n    }\n    uVar4 = uVar15 | 8;\n    if (!bVar24) {\n      uVar4 = uVar15;\n    }\n    if ((param_4 & 0x40) == 0) {\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[3] = iVar26;\n      pcVar6 = (char *)0x0;\n      if ((uVar4 & 0x40) != 0) {\n        pcVar6 = param_2;\n      }\n      param_3[8] = param_2;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n    }\n    else {\n      uVar4 = uVar4 | 0x40;\n      param_3[3] = iVar26;\n      param_3[8] = param_2;\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n      pcVar6 = param_2;\n    }\n    iVar7 = sqlite3_uri_boolean(pcVar6,&DAT_000aa9b5,1);\n    bVar24 = iVar7 == 0;\n    if (!bVar24) {\n      puVar1 = (ushort *)((int)param_3 + 0x12);\n      *puVar1 = *puVar1 | 0x10;\n      bVar24 = *puVar1 == 0;\n    }\n    bVar23 = false;\n    iVar7 = 10;\n    pbVar18 = *(byte **)(param_1 + 0x10);\n    pbVar20 = (byte *)"unix-excl";\n    do {\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      bVar23 = *pbVar18 < *pbVar20;\n      bVar24 = *pbVar18 == *pbVar20;\n      pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1;\n      pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1;\n    } while (bVar24);\n    if ((!bVar23 && !bVar24) == bVar23) {\n      *(ushort *)((int)param_3 + 0x12) = *(ushort *)((int)param_3 + 0x12) | 1;\n    }\n    if ((uVar4 & 0x80) == 0) {\n      puVar8 = (undefined *)(*(code *)**(undefined4 **)(param_1 + 0x14))(param_2,param_3);\n      puVar17 = &DAT_000dd9e0;\n      if (puVar8 == &DAT_000dd9e0) {\n        sqlite3_mutex_enter(DAT_000df7a8);\n        iVar7 = (*(code *)PTR_FUN_000df480)(param_3[3],&local_484);\n        piVar13 = DAT_000df7a4;\n        if (iVar7 == 0) {\n          for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }\n          piVar13 = (int *)sqlite3_malloc64(0x34,0);\n          if (piVar13 != (int *)0x0) {\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }\n          iVar7 = 7;\n        }\n        else {\n          piVar13 = __errno_location();\n          iVar7 = 10;\n          param_3[5] = *piVar13;\n        }\nLAB_0005efaf:\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        sqlite3_mutex_leave(DAT_000df7a8);\n        param_3[5] = 0;\n        goto LAB_0005ee17;\n      }\n      if (puVar8 != &DAT_000dd920) goto LAB_0005e8e8;\n      sVar10 = strlen(param_2);\n      iVar7 = sVar10 + 6;\n      iVar11 = sqlite3_malloc64(iVar7,iVar7 >> 0x1f);\n      if (iVar11 == 0) {\n        param_3[6] = 0;\n        param_3[5] = 0;\n        iVar7 = 7;\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        goto LAB_0005ee17;\n      }\n      sqlite3_snprintf(iVar7,iVar11,"%s.lock",param_2);\n      param_3[5] = 0;\n      param_3[6] = iVar11;\n    }\n    else {\n      puVar8 = &DAT_000dd980;\nLAB_0005e8e8:\n      param_3[5] = 0;\n    }\nLAB_0005e8ef:\n    *param_3 = puVar8;\n    iVar7 = 0;\n    FUN_0003a610();\n  }\nLAB_0005e8fb:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar7;\n  }\n                    \n  FUN_000a9ea0();\n}" ({ "{") (declaration "ushort *puVar1;" (type_identifier "ushort") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "__pid_t _Var5;" (type_identifier "__pid_t") (identifier "_Var5") (; ";")) (declaration "char *pcVar6;" (primitive_type "char") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "undefined *puVar8;" (type_identifier "undefined") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "int *piVar9;" (primitive_type "int") (pointer_declarator "*piVar9" (* "*") (identifier "piVar9")) (; ";")) (declaration "size_t sVar10;" (primitive_type "size_t") (identifier "sVar10") (; ";")) (declaration "int iVar11;" (primitive_type "int") (identifier "iVar11") (; ";")) (declaration "undefined1 *puVar12;" (type_identifier "undefined1") (pointer_declarator "*puVar12" (* "*") (identifier "puVar12")) (; ";")) (declaration "int *piVar13;" (primitive_type "int") (pointer_declarator "*piVar13" (* "*") (identifier "piVar13")) (; ";")) (declaration "uint uVar14;" (type_identifier "uint") (identifier "uVar14") (; ";")) (declaration "uint uVar15;" (type_identifier "uint") (identifier "uVar15") (; ";")) (declaration "int *piVar16;" (primitive_type "int") (pointer_declarator "*piVar16" (* "*") (identifier "piVar16")) (; ";")) (declaration "undefined *puVar17;" (type_identifier "undefined") (pointer_declarator "*puVar17" (* "*") (identifier "puVar17")) (; ";")) (declaration "byte *pbVar18;" (type_identifier "byte") (pointer_declarator "*pbVar18" (* "*") (identifier "pbVar18")) (; ";")) (declaration "uint uVar19;" (type_identifier "uint") (identifier "uVar19") (; ";")) (declaration "byte *pbVar20;" (type_identifier "byte") (pointer_declarator "*pbVar20" (* "*") (identifier "pbVar20")) (; ";")) (declaration "undefined4 *puVar21;" (type_identifier "undefined4") (pointer_declarator "*puVar21" (* "*") (identifier "puVar21")) (; ";")) (declaration "undefined4 uVar22;" (type_identifier "undefined4") (identifier "uVar22") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "bool bVar23;" (primitive_type "bool") (identifier "bVar23") (; ";")) (declaration "bool bVar24;" (primitive_type "bool") (identifier "bVar24") (; ";")) (declaration "byte bVar25;" (type_identifier "byte") (identifier "bVar25") (; ";")) (declaration "int iVar26;" (primitive_type "int") (identifier "iVar26") (; ";")) (declaration "char *local_4b4;" (primitive_type "char") (pointer_declarator "*local_4b4" (* "*") (identifier "local_4b4")) (; ";")) (declaration "undefined4 local_4ac;" (type_identifier "undefined4") (identifier "local_4ac") (; ";")) (declaration "uint local_4a8;" (type_identifier "uint") (identifier "local_4a8") (; ";")) (declaration "uint local_4a4;" (type_identifier "uint") (identifier "local_4a4") (; ";")) (declaration "int local_484;" (primitive_type "int") (identifier "local_484") (; ";")) (declaration "int local_480;" (primitive_type "int") (identifier "local_480") (; ";")) (declaration "uint local_474;" (type_identifier "uint") (identifier "local_474") (; ";")) (declaration "undefined4 local_46c;" (type_identifier "undefined4") (identifier "local_46c") (; ";")) (declaration "undefined4 local_468;" (type_identifier "undefined4") (identifier "local_468") (; ";")) (declaration "int local_42c;" (primitive_type "int") (identifier "local_42c") (; ";")) (declaration "int local_428;" (primitive_type "int") (identifier "local_428") (; ";")) (declaration "undefined1 local_423 [513];" (type_identifier "undefined1") (array_declarator "local_423 [513]" (identifier "local_423") ([ "[") (number_literal "513") (] "]")) (; ";")) (declaration "char local_222 [514];" (primitive_type "char") (array_declarator "local_222 [514]" (identifier "local_222") ([ "[") (number_literal "514") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "bVar25 = 0;" (assignment_expression "bVar25 = 0" (identifier "bVar25") (= "=") (number_literal "0")) (; ";")) (expression_statement "uStack_14 = 0x5e649;" (assignment_expression "uStack_14 = 0x5e649" (identifier "uStack_14") (= "=") (number_literal "0x5e649")) (; ";")) (expression_statement "uVar15 = param_4 & 8;" (assignment_expression "uVar15 = param_4 & 8" (identifier "uVar15") (= "=") (binary_expression "param_4 & 8" (identifier "param_4") (& "&") (number_literal "8"))) (; ";")) (expression_statement "local_4a4 = param_4 & 1;" (assignment_expression "local_4a4 = param_4 & 1" (identifier "local_4a4") (= "=") (binary_expression "param_4 & 1" (identifier "param_4") (& "&") (number_literal "1"))) (; ";")) (expression_statement "uVar19 = param_4 & 2;" (assignment_expression "uVar19 = param_4 & 2" (identifier "uVar19") (= "=") (binary_expression "param_4 & 2" (identifier "param_4") (& "&") (number_literal "2"))) (; ";")) (expression_statement "bVar24 = false;" (assignment_expression "bVar24 = false" (identifier "bVar24") (= "=") (false "false")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "uVar4 = param_4 & 0xfff00;" (assignment_expression "uVar4 = param_4 & 0xfff00" (identifier "uVar4") (= "=") (binary_expression "param_4 & 0xfff00" (identifier "param_4") (& "&") (number_literal "0xfff00"))) (; ";")) (if_statement "if ((param_4 & 4) != 0) {\n    bVar24 = (uVar4 == 0x4000 || uVar4 == 0x800) || uVar4 == 0x80000;\n  }" (if "if") (parenthesized_expression "((param_4 & 4) != 0)" (( "(") (binary_expression "(param_4 & 4) != 0" (parenthesized_expression "(param_4 & 4)" (( "(") (binary_expression "param_4 & 4" (identifier "param_4") (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    bVar24 = (uVar4 == 0x4000 || uVar4 == 0x800) || uVar4 == 0x80000;\n  }" ({ "{") (expression_statement "bVar24 = (uVar4 == 0x4000 || uVar4 == 0x800) || uVar4 == 0x80000;" (assignment_expression "bVar24 = (uVar4 == 0x4000 || uVar4 == 0x800) || uVar4 == 0x80000" (identifier "bVar24") (= "=") (binary_expression "(uVar4 == 0x4000 || uVar4 == 0x800) || uVar4 == 0x80000" (parenthesized_expression "(uVar4 == 0x4000 || uVar4 == 0x800)" (( "(") (binary_expression "uVar4 == 0x4000 || uVar4 == 0x800" (binary_expression "uVar4 == 0x4000" (identifier "uVar4") (== "==") (number_literal "0x4000")) (|| "||") (binary_expression "uVar4 == 0x800" (identifier "uVar4") (== "==") (number_literal "0x800"))) () ")")) (|| "||") (binary_expression "uVar4 == 0x80000" (identifier "uVar4") (== "==") (number_literal "0x80000")))) (; ";")) (} "}"))) (expression_statement "_Var5 = getpid();" (assignment_expression "_Var5 = getpid()" (identifier "_Var5") (= "=") (call_expression "getpid()" (identifier "getpid") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (_Var5 != DAT_000df7ac) {\n    DAT_000df7ac = getpid();\n    sqlite3_randomness(0,0);\n  }" (if "if") (parenthesized_expression "(_Var5 != DAT_000df7ac)" (( "(") (binary_expression "_Var5 != DAT_000df7ac" (identifier "_Var5") (!= "!=") (identifier "DAT_000df7ac")) () ")")) (compound_statement "{\n    DAT_000df7ac = getpid();\n    sqlite3_randomness(0,0);\n  }" ({ "{") (expression_statement "DAT_000df7ac = getpid();" (assignment_expression "DAT_000df7ac = getpid()" (identifier "DAT_000df7ac") (= "=") (call_expression "getpid()" (identifier "getpid") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "sqlite3_randomness(0,0);" (call_expression "sqlite3_randomness(0,0)" (identifier "sqlite3_randomness") (argument_list "(0,0)" (( "(") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (} "}"))) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_3[0x14] = 0;" (assignment_expression "param_3[0x14] = 0" (subscript_expression "param_3[0x14]" (identifier "param_3") ([ "[") (number_literal "0x14") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar21 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);" (assignment_expression "puVar21 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc)" (identifier "puVar21") (= "=") (cast_expression "(undefined4 *)((uint)(param_3 + 1) & 0xfffffffc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((uint)(param_3 + 1) & 0xfffffffc)" (( "(") (binary_expression "(uint)(param_3 + 1) & 0xfffffffc" (call_expression "(uint)(param_3 + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_3 + 1)" (( "(") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")")))) (; ";")) (for_statement "for (uVar14 = (uint)((int)param_3 + (0x54 - (int)((uint)(param_3 + 1) & 0xfffffffc))) >> 2;\n      uVar14 != 0; uVar14 = uVar14 - 1) {\n    *puVar21 = 0;\n    puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n  }" (for "for") (( "(") (assignment_expression "uVar14 = (uint)((int)param_3 + (0x54 - (int)((uint)(param_3 + 1) & 0xfffffffc))) >> 2" (identifier "uVar14") (= "=") (binary_expression "(uint)((int)param_3 + (0x54 - (int)((uint)(param_3 + 1) & 0xfffffffc))) >> 2" (call_expression "(uint)((int)param_3 + (0x54 - (int)((uint)(param_3 + 1) & 0xfffffffc)))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((int)param_3 + (0x54 - (int)((uint)(param_3 + 1) & 0xfffffffc)))" (( "(") (binary_expression "(int)param_3 + (0x54 - (int)((uint)(param_3 + 1) & 0xfffffffc))" (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3")) (+ "+") (parenthesized_expression "(0x54 - (int)((uint)(param_3 + 1) & 0xfffffffc))" (( "(") (binary_expression "0x54 - (int)((uint)(param_3 + 1) & 0xfffffffc)" (number_literal "0x54") (- "-") (cast_expression "(int)((uint)(param_3 + 1) & 0xfffffffc)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((uint)(param_3 + 1) & 0xfffffffc)" (( "(") (binary_expression "(uint)(param_3 + 1) & 0xfffffffc" (call_expression "(uint)(param_3 + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_3 + 1)" (( "(") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")")))) () ")"))) () ")"))) (>> ">>") (number_literal "2"))) (; ";") (binary_expression "uVar14 != 0" (identifier "uVar14") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "uVar14 = uVar14 - 1" (identifier "uVar14") (= "=") (binary_expression "uVar14 - 1" (identifier "uVar14") (- "-") (number_literal "1"))) () ")") (compound_statement "{\n    *puVar21 = 0;\n    puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n  }" ({ "{") (expression_statement "*puVar21 = 0;" (assignment_expression "*puVar21 = 0" (pointer_expression "*puVar21" (* "*") (identifier "puVar21")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar21 = puVar21 + (uint)bVar25 * -2 + 1;" (assignment_expression "puVar21 = puVar21 + (uint)bVar25 * -2 + 1" (identifier "puVar21") (= "=") (binary_expression "puVar21 + (uint)bVar25 * -2 + 1" (binary_expression "puVar21 + (uint)bVar25 * -2" (identifier "puVar21") (+ "+") (binary_expression "(uint)bVar25 * -2" (cast_expression "(uint)bVar25" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar25")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (if_statement "if (uVar4 == 0x100) {\n    sqlite3_mutex_enter(DAT_000df7a8);\n    if ((DAT_000df7a4 != (int *)0x0) &&\n       (iVar26 = (*(code *)PTR_FUN_000df474)(param_2,&local_484), piVar13 = DAT_000df7a4,\n       iVar26 == 0)) {\n      for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n        if ((piVar13[1] == local_480 && *piVar13 == local_484) &&\n           (local_428 == piVar13[3] && local_42c == piVar13[2])) {\n          sqlite3_mutex_enter(piVar13[4]);\n          piVar9 = (int *)piVar13[8];\n          if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n          if ((param_4 & 3) != piVar9[1]) goto LAB_0005ea33;\n          piVar16 = piVar13 + 8;\n          goto LAB_0005ee53;\n        }\n      }\n    }\n    sqlite3_mutex_leave(DAT_000df7a8);\n    goto LAB_0005ea54;\n  }" (if "if") (parenthesized_expression "(uVar4 == 0x100)" (( "(") (binary_expression "uVar4 == 0x100" (identifier "uVar4") (== "==") (number_literal "0x100")) () ")")) (compound_statement "{\n    sqlite3_mutex_enter(DAT_000df7a8);\n    if ((DAT_000df7a4 != (int *)0x0) &&\n       (iVar26 = (*(code *)PTR_FUN_000df474)(param_2,&local_484), piVar13 = DAT_000df7a4,\n       iVar26 == 0)) {\n      for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n        if ((piVar13[1] == local_480 && *piVar13 == local_484) &&\n           (local_428 == piVar13[3] && local_42c == piVar13[2])) {\n          sqlite3_mutex_enter(piVar13[4]);\n          piVar9 = (int *)piVar13[8];\n          if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n          if ((param_4 & 3) != piVar9[1]) goto LAB_0005ea33;\n          piVar16 = piVar13 + 8;\n          goto LAB_0005ee53;\n        }\n      }\n    }\n    sqlite3_mutex_leave(DAT_000df7a8);\n    goto LAB_0005ea54;\n  }" ({ "{") (expression_statement "sqlite3_mutex_enter(DAT_000df7a8);" (call_expression "sqlite3_mutex_enter(DAT_000df7a8)" (identifier "sqlite3_mutex_enter") (argument_list "(DAT_000df7a8)" (( "(") (identifier "DAT_000df7a8") () ")"))) (; ";")) (if_statement "if ((DAT_000df7a4 != (int *)0x0) &&\n       (iVar26 = (*(code *)PTR_FUN_000df474)(param_2,&local_484), piVar13 = DAT_000df7a4,\n       iVar26 == 0)) {\n      for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n        if ((piVar13[1] == local_480 && *piVar13 == local_484) &&\n           (local_428 == piVar13[3] && local_42c == piVar13[2])) {\n          sqlite3_mutex_enter(piVar13[4]);\n          piVar9 = (int *)piVar13[8];\n          if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n          if ((param_4 & 3) != piVar9[1]) goto LAB_0005ea33;\n          piVar16 = piVar13 + 8;\n          goto LAB_0005ee53;\n        }\n      }\n    }" (if "if") (parenthesized_expression "((DAT_000df7a4 != (int *)0x0) &&\n       (iVar26 = (*(code *)PTR_FUN_000df474)(param_2,&local_484), piVar13 = DAT_000df7a4,\n       iVar26 == 0))" (( "(") (binary_expression "(DAT_000df7a4 != (int *)0x0) &&\n       (iVar26 = (*(code *)PTR_FUN_000df474)(param_2,&local_484), piVar13 = DAT_000df7a4,\n       iVar26 == 0)" (parenthesized_expression "(DAT_000df7a4 != (int *)0x0)" (( "(") (binary_expression "DAT_000df7a4 != (int *)0x0" (identifier "DAT_000df7a4") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(iVar26 = (*(code *)PTR_FUN_000df474)(param_2,&local_484), piVar13 = DAT_000df7a4,\n       iVar26 == 0)" (( "(") (comma_expression "iVar26 = (*(code *)PTR_FUN_000df474)(param_2,&local_484), piVar13 = DAT_000df7a4,\n       iVar26 == 0" (assignment_expression "iVar26 = (*(code *)PTR_FUN_000df474)(param_2,&local_484)" (identifier "iVar26") (= "=") (call_expression "(*(code *)PTR_FUN_000df474)(param_2,&local_484)" (parenthesized_expression "(*(code *)PTR_FUN_000df474)" (( "(") (pointer_expression "*(code *)PTR_FUN_000df474" (* "*") (cast_expression "(code *)PTR_FUN_000df474" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_000df474"))) () ")")) (argument_list "(param_2,&local_484)" (( "(") (identifier "param_2") (, ",") (pointer_expression "&local_484" (& "&") (identifier "local_484")) () ")")))) (, ",") (comma_expression "piVar13 = DAT_000df7a4,\n       iVar26 == 0" (assignment_expression "piVar13 = DAT_000df7a4" (identifier "piVar13") (= "=") (identifier "DAT_000df7a4")) (, ",") (binary_expression "iVar26 == 0" (identifier "iVar26") (== "==") (number_literal "0")))) () ")"))) () ")")) (compound_statement "{\n      for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n        if ((piVar13[1] == local_480 && *piVar13 == local_484) &&\n           (local_428 == piVar13[3] && local_42c == piVar13[2])) {\n          sqlite3_mutex_enter(piVar13[4]);\n          piVar9 = (int *)piVar13[8];\n          if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n          if ((param_4 & 3) != piVar9[1]) goto LAB_0005ea33;\n          piVar16 = piVar13 + 8;\n          goto LAB_0005ee53;\n        }\n      }\n    }" ({ "{") (for_statement "for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n        if ((piVar13[1] == local_480 && *piVar13 == local_484) &&\n           (local_428 == piVar13[3] && local_42c == piVar13[2])) {\n          sqlite3_mutex_enter(piVar13[4]);\n          piVar9 = (int *)piVar13[8];\n          if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n          if ((param_4 & 3) != piVar9[1]) goto LAB_0005ea33;\n          piVar16 = piVar13 + 8;\n          goto LAB_0005ee53;\n        }\n      }" (for "for") (( "(") (; ";") (binary_expression "piVar13 != (int *)0x0" (identifier "piVar13") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";") (assignment_expression "piVar13 = (int *)piVar13[0xb]" (identifier "piVar13") (= "=") (cast_expression "(int *)piVar13[0xb]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar13[0xb]" (identifier "piVar13") ([ "[") (number_literal "0xb") (] "]")))) () ")") (compound_statement "{\n        if ((piVar13[1] == local_480 && *piVar13 == local_484) &&\n           (local_428 == piVar13[3] && local_42c == piVar13[2])) {\n          sqlite3_mutex_enter(piVar13[4]);\n          piVar9 = (int *)piVar13[8];\n          if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n          if ((param_4 & 3) != piVar9[1]) goto LAB_0005ea33;\n          piVar16 = piVar13 + 8;\n          goto LAB_0005ee53;\n        }\n      }" ({ "{") (if_statement "if ((piVar13[1] == local_480 && *piVar13 == local_484) &&\n           (local_428 == piVar13[3] && local_42c == piVar13[2])) {\n          sqlite3_mutex_enter(piVar13[4]);\n          piVar9 = (int *)piVar13[8];\n          if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n          if ((param_4 & 3) != piVar9[1]) goto LAB_0005ea33;\n          piVar16 = piVar13 + 8;\n          goto LAB_0005ee53;\n        }" (if "if") (parenthesized_expression "((piVar13[1] == local_480 && *piVar13 == local_484) &&\n           (local_428 == piVar13[3] && local_42c == piVar13[2]))" (( "(") (binary_expression "(piVar13[1] == local_480 && *piVar13 == local_484) &&\n           (local_428 == piVar13[3] && local_42c == piVar13[2])" (parenthesized_expression "(piVar13[1] == local_480 && *piVar13 == local_484)" (( "(") (binary_expression "piVar13[1] == local_480 && *piVar13 == local_484" (binary_expression "piVar13[1] == local_480" (subscript_expression "piVar13[1]" (identifier "piVar13") ([ "[") (number_literal "1") (] "]")) (== "==") (identifier "local_480")) (&& "&&") (binary_expression "*piVar13 == local_484" (pointer_expression "*piVar13" (* "*") (identifier "piVar13")) (== "==") (identifier "local_484"))) () ")")) (&& "&&") (parenthesized_expression "(local_428 == piVar13[3] && local_42c == piVar13[2])" (( "(") (binary_expression "local_428 == piVar13[3] && local_42c == piVar13[2]" (binary_expression "local_428 == piVar13[3]" (identifier "local_428") (== "==") (subscript_expression "piVar13[3]" (identifier "piVar13") ([ "[") (number_literal "3") (] "]"))) (&& "&&") (binary_expression "local_42c == piVar13[2]" (identifier "local_42c") (== "==") (subscript_expression "piVar13[2]" (identifier "piVar13") ([ "[") (number_literal "2") (] "]")))) () ")"))) () ")")) (compound_statement "{\n          sqlite3_mutex_enter(piVar13[4]);\n          piVar9 = (int *)piVar13[8];\n          if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n          if ((param_4 & 3) != piVar9[1]) goto LAB_0005ea33;\n          piVar16 = piVar13 + 8;\n          goto LAB_0005ee53;\n        }" ({ "{") (expression_statement "sqlite3_mutex_enter(piVar13[4]);" (call_expression "sqlite3_mutex_enter(piVar13[4])" (identifier "sqlite3_mutex_enter") (argument_list "(piVar13[4])" (( "(") (subscript_expression "piVar13[4]" (identifier "piVar13") ([ "[") (number_literal "4") (] "]")) () ")"))) (; ";")) (expression_statement "piVar9 = (int *)piVar13[8];" (assignment_expression "piVar9 = (int *)piVar13[8]" (identifier "piVar9") (= "=") (cast_expression "(int *)piVar13[8]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar13[8]" (identifier "piVar13") ([ "[") (number_literal "8") (] "]")))) (; ";")) (if_statement "if (piVar9 == (int *)0x0) goto LAB_0005ea3a;" (if "if") (parenthesized_expression "(piVar9 == (int *)0x0)" (( "(") (binary_expression "piVar9 == (int *)0x0" (identifier "piVar9") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_0005ea3a;" (goto "goto") (statement_identifier "LAB_0005ea3a") (; ";"))) (if_statement "if ((param_4 & 3) != piVar9[1]) goto LAB_0005ea33;" (if "if") (parenthesized_expression "((param_4 & 3) != piVar9[1])" (( "(") (binary_expression "(param_4 & 3) != piVar9[1]" (parenthesized_expression "(param_4 & 3)" (( "(") (binary_expression "param_4 & 3" (identifier "param_4") (& "&") (number_literal "3")) () ")")) (!= "!=") (subscript_expression "piVar9[1]" (identifier "piVar9") ([ "[") (number_literal "1") (] "]"))) () ")")) (goto_statement "goto LAB_0005ea33;" (goto "goto") (statement_identifier "LAB_0005ea33") (; ";"))) (expression_statement "piVar16 = piVar13 + 8;" (assignment_expression "piVar16 = piVar13 + 8" (identifier "piVar16") (= "=") (binary_expression "piVar13 + 8" (identifier "piVar13") (+ "+") (number_literal "8"))) (; ";")) (goto_statement "goto LAB_0005ee53;" (goto "goto") (statement_identifier "LAB_0005ee53") (; ";")) (} "}"))) (} "}"))) (} "}"))) (expression_statement "sqlite3_mutex_leave(DAT_000df7a8);" (call_expression "sqlite3_mutex_leave(DAT_000df7a8)" (identifier "sqlite3_mutex_leave") (argument_list "(DAT_000df7a8)" (( "(") (identifier "DAT_000df7a8") () ")"))) (; ";")) (goto_statement "goto LAB_0005ea54;" (goto "goto") (statement_identifier "LAB_0005ea54") (; ";")) (} "}"))) (expression_statement "iVar26 = -1;" (assignment_expression "iVar26 = -1" (identifier "iVar26") (= "=") (number_literal "-1")) (; ";")) (expression_statement "local_4b4 = param_2;" (assignment_expression "local_4b4 = param_2" (identifier "local_4b4") (= "=") (identifier "param_2")) (; ";")) (if_statement "if (param_2 == (char *)0x0) {\n    local_4b4 = local_222;\n    iVar7 = FUN_0005df50();\n    if (iVar7 != 0) goto LAB_0005e8fb;\n  }" (if "if") (parenthesized_expression "(param_2 == (char *)0x0)" (( "(") (binary_expression "param_2 == (char *)0x0" (identifier "param_2") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    local_4b4 = local_222;\n    iVar7 = FUN_0005df50();\n    if (iVar7 != 0) goto LAB_0005e8fb;\n  }" ({ "{") (expression_statement "local_4b4 = local_222;" (assignment_expression "local_4b4 = local_222" (identifier "local_4b4") (= "=") (identifier "local_222")) (; ";")) (expression_statement "iVar7 = FUN_0005df50();" (assignment_expression "iVar7 = FUN_0005df50()" (identifier "iVar7") (= "=") (call_expression "FUN_0005df50()" (identifier "FUN_0005df50") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar7 != 0) goto LAB_0005e8fb;" (if "if") (parenthesized_expression "(iVar7 != 0)" (( "(") (binary_expression "iVar7 != 0" (identifier "iVar7") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0005e8fb;" (goto "goto") (statement_identifier "LAB_0005e8fb") (; ";"))) (} "}"))) (goto_statement "goto LAB_0005e781;" (goto "goto") (statement_identifier "LAB_0005e781") (; ";")) (labeled_statement "LAB_0005ea3a:\n  sqlite3_mutex_leave(piVar13[4]);" (statement_identifier "LAB_0005ea3a") (: ":") (expression_statement "sqlite3_mutex_leave(piVar13[4]);" (call_expression "sqlite3_mutex_leave(piVar13[4])" (identifier "sqlite3_mutex_leave") (argument_list "(piVar13[4])" (( "(") (subscript_expression "piVar13[4]" (identifier "piVar13") ([ "[") (number_literal "4") (] "]")) () ")"))) (; ";"))) (expression_statement "sqlite3_mutex_leave(DAT_000df7a8);" (call_expression "sqlite3_mutex_leave(DAT_000df7a8)" (identifier "sqlite3_mutex_leave") (argument_list "(DAT_000df7a8)" (( "(") (identifier "DAT_000df7a8") () ")"))) (; ";")) (labeled_statement "LAB_0005ea54:\n  piVar9 = (int *)sqlite3_malloc64(0xc,0);" (statement_identifier "LAB_0005ea54") (: ":") (expression_statement "piVar9 = (int *)sqlite3_malloc64(0xc,0);" (assignment_expression "piVar9 = (int *)sqlite3_malloc64(0xc,0)" (identifier "piVar9") (= "=") (cast_expression "(int *)sqlite3_malloc64(0xc,0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "sqlite3_malloc64(0xc,0)" (identifier "sqlite3_malloc64") (argument_list "(0xc,0)" (( "(") (number_literal "0xc") (, ",") (number_literal "0") () ")"))))) (; ";"))) (if_statement "if (piVar9 == (int *)0x0) {\n    iVar7 = 7;\n    goto LAB_0005e8fb;\n  }" (if "if") (parenthesized_expression "(piVar9 == (int *)0x0)" (( "(") (binary_expression "piVar9 == (int *)0x0" (identifier "piVar9") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar7 = 7;\n    goto LAB_0005e8fb;\n  }" ({ "{") (expression_statement "iVar7 = 7;" (assignment_expression "iVar7 = 7" (identifier "iVar7") (= "=") (number_literal "7")) (; ";")) (goto_statement "goto LAB_0005e8fb;" (goto "goto") (statement_identifier "LAB_0005e8fb") (; ";")) (} "}"))) (expression_statement "iVar26 = -1;" (assignment_expression "iVar26 = -1" (identifier "iVar26") (= "=") (number_literal "-1")) (; ";")) (goto_statement "goto LAB_0005ee78;" (goto "goto") (statement_identifier "LAB_0005ee78") (; ";")) (while_statement "while ((param_4 & 3) != piVar9[1]) {\nLAB_0005ea33:\n    piVar16 = piVar9;\n    piVar9 = (int *)piVar16[2];\n    if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n  }" (while "while") (parenthesized_expression "((param_4 & 3) != piVar9[1])" (( "(") (binary_expression "(param_4 & 3) != piVar9[1]" (parenthesized_expression "(param_4 & 3)" (( "(") (binary_expression "param_4 & 3" (identifier "param_4") (& "&") (number_literal "3")) () ")")) (!= "!=") (subscript_expression "piVar9[1]" (identifier "piVar9") ([ "[") (number_literal "1") (] "]"))) () ")")) (compound_statement "{\nLAB_0005ea33:\n    piVar16 = piVar9;\n    piVar9 = (int *)piVar16[2];\n    if (piVar9 == (int *)0x0) goto LAB_0005ea3a;\n  }" ({ "{") (labeled_statement "LAB_0005ea33:\n    piVar16 = piVar9;" (statement_identifier "LAB_0005ea33") (: ":") (expression_statement "piVar16 = piVar9;" (assignment_expression "piVar16 = piVar9" (identifier "piVar16") (= "=") (identifier "piVar9")) (; ";"))) (expression_statement "piVar9 = (int *)piVar16[2];" (assignment_expression "piVar9 = (int *)piVar16[2]" (identifier "piVar9") (= "=") (cast_expression "(int *)piVar16[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar16[2]" (identifier "piVar16") ([ "[") (number_literal "2") (] "]")))) (; ";")) (if_statement "if (piVar9 == (int *)0x0) goto LAB_0005ea3a;" (if "if") (parenthesized_expression "(piVar9 == (int *)0x0)" (( "(") (binary_expression "piVar9 == (int *)0x0" (identifier "piVar9") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_0005ea3a;" (goto "goto") (statement_identifier "LAB_0005ea3a") (; ";"))) (} "}"))) (expression_statement "piVar16 = piVar16 + 2;" (assignment_expression "piVar16 = piVar16 + 2" (identifier "piVar16") (= "=") (binary_expression "piVar16 + 2" (identifier "piVar16") (+ "+") (number_literal "2"))) (; ";")) (labeled_statement "LAB_0005ee53:\n  *piVar16 = piVar9[2];" (statement_identifier "LAB_0005ee53") (: ":") (expression_statement "*piVar16 = piVar9[2];" (assignment_expression "*piVar16 = piVar9[2]" (pointer_expression "*piVar16" (* "*") (identifier "piVar16")) (= "=") (subscript_expression "piVar9[2]" (identifier "piVar9") ([ "[") (number_literal "2") (] "]"))) (; ";"))) (expression_statement "sqlite3_mutex_leave(piVar13[4]);" (call_expression "sqlite3_mutex_leave(piVar13[4])" (identifier "sqlite3_mutex_leave") (argument_list "(piVar13[4])" (( "(") (subscript_expression "piVar13[4]" (identifier "piVar13") ([ "[") (number_literal "4") (] "]")) () ")"))) (; ";")) (expression_statement "sqlite3_mutex_leave(DAT_000df7a8);" (call_expression "sqlite3_mutex_leave(DAT_000df7a8)" (identifier "sqlite3_mutex_leave") (argument_list "(DAT_000df7a8)" (( "(") (identifier "DAT_000df7a8") () ")"))) (; ";")) (expression_statement "iVar26 = *piVar9;" (assignment_expression "iVar26 = *piVar9" (identifier "iVar26") (= "=") (pointer_expression "*piVar9" (* "*") (identifier "piVar9"))) (; ";")) (labeled_statement "LAB_0005ee78:\n  param_3[7] = piVar9;" (statement_identifier "LAB_0005ee78") (: ":") (expression_statement "param_3[7] = piVar9;" (assignment_expression "param_3[7] = piVar9" (subscript_expression "param_3[7]" (identifier "param_3") ([ "[") (number_literal "7") (] "]")) (= "=") (identifier "piVar9")) (; ";"))) (expression_statement "local_4b4 = param_2;" (assignment_expression "local_4b4 = param_2" (identifier "local_4b4") (= "=") (identifier "param_2")) (; ";")) (labeled_statement "LAB_0005e781:\n  uVar14 = uVar19;" (statement_identifier "LAB_0005e781") (: ":") (expression_statement "uVar14 = uVar19;" (assignment_expression "uVar14 = uVar19" (identifier "uVar14") (= "=") (identifier "uVar19")) (; ";"))) (if_statement "if ((param_4 & 4) != 0) {\n    uVar14 = uVar19 | 0x40;\n  }" (if "if") (parenthesized_expression "((param_4 & 4) != 0)" (( "(") (binary_expression "(param_4 & 4) != 0" (parenthesized_expression "(param_4 & 4)" (( "(") (binary_expression "param_4 & 4" (identifier "param_4") (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar14 = uVar19 | 0x40;\n  }" ({ "{") (expression_statement "uVar14 = uVar19 | 0x40;" (assignment_expression "uVar14 = uVar19 | 0x40" (identifier "uVar14") (= "=") (binary_expression "uVar19 | 0x40" (identifier "uVar19") (| "|") (number_literal "0x40"))) (; ";")) (} "}"))) (if_statement "if ((param_4 & 0x10) != 0) {\n    uVar14 = uVar14 | 0x20080;\n  }" (if "if") (parenthesized_expression "((param_4 & 0x10) != 0)" (( "(") (binary_expression "(param_4 & 0x10) != 0" (parenthesized_expression "(param_4 & 0x10)" (( "(") (binary_expression "param_4 & 0x10" (identifier "param_4") (& "&") (number_literal "0x10")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar14 = uVar14 | 0x20080;\n  }" ({ "{") (expression_statement "uVar14 = uVar14 | 0x20080;" (assignment_expression "uVar14 = uVar14 | 0x20080" (identifier "uVar14") (= "=") (binary_expression "uVar14 | 0x20080" (identifier "uVar14") (| "|") (number_literal "0x20080"))) (; ";")) (} "}"))) (if_statement "if (-1 < iVar26) goto LAB_0005e7af;" (if "if") (parenthesized_expression "(-1 < iVar26)" (( "(") (binary_expression "-1 < iVar26" (number_literal "-1") (< "<") (identifier "iVar26")) () ")")) (goto_statement "goto LAB_0005e7af;" (goto "goto") (statement_identifier "LAB_0005e7af") (; ";"))) (expression_statement "uVar14 = uVar14 | 0x28000;" (assignment_expression "uVar14 = uVar14 | 0x28000" (identifier "uVar14") (= "=") (binary_expression "uVar14 | 0x28000" (identifier "uVar14") (| "|") (number_literal "0x28000"))) (; ";")) (if_statement "if ((param_4 & 0x80800) == 0) {\n    if (uVar15 == 0) {\n      if (((param_4 & 0x40) != 0) &&\n         (puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof"),\n         puVar12 != (undefined1 *)0x0)) goto LAB_0005eb2c;\nLAB_0005ebd9:\n      iVar26 = FUN_0003a9a0(uVar15,uVar14);\n      if (iVar26 < 0) {\n        local_4ac = 0;\n        local_4a8 = 0;\n        uVar22 = 0;\n        goto LAB_0005ec06;\n      }\n      goto LAB_0005e7af;\n    }\n    iVar26 = FUN_0003a9a0(uVar15,uVar14);\n    if (-1 < iVar26) goto LAB_0005e7af;\n    uVar22 = 0;\n    local_4ac = 0;\n    local_4a8 = 0x180;\nLAB_0005ec06:\n    piVar13 = __errno_location();\n    iVar26 = *piVar13;\n    if ((bVar24) && (iVar26 == 0xd)) {\n      iVar26 = (*(code *)PTR_access_000df45c)(local_4b4,0);\n      if (iVar26 == 0) {\n        iVar26 = *piVar13;\n        goto LAB_0005ec40;\n      }\n      iVar7 = 0x608;\n      FUN_000383b0();\n      FUN_0003aad0(0x9ae7);\n    }\n    else {\nLAB_0005ec40:\n      if ((uVar19 != 0) && (iVar26 != 0x15)) {\n        param_4 = param_4 & 0xfffffff9 | 1;\n        iVar26 = FUN_0003a9a0();\n        if (-1 < iVar26) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }\n      FUN_000383b0();\n      iVar7 = FUN_0003aad0(0x9ae7);\n      if (iVar7 == 0) goto LAB_0005e8fb;\n    }\nLAB_0005ee17:\n    sqlite3_free(param_3[7]);\n  }\n  else {\n    if (local_4b4 == (char *)0x0) {\n      iVar26 = -1;\n    }\n    else {\n      sVar10 = strlen(local_4b4);\n      iVar26 = (sVar10 & 0x3fffffff) - 1;\n    }\n    cVar2 = local_4b4[iVar26];\n    while (cVar2 != '-') {\n      if ((cVar2 == '.') || (iVar26 == 0)) goto LAB_0005ebd9;\n      iVar26 = iVar26 + -1;\n      cVar2 = local_4b4[iVar26];\n    }\n    puVar12 = local_423;\n    __memcpy_chk(puVar12,local_4b4,iVar26,0x201);\n    local_423[iVar26] = 0;\nLAB_0005eb2c:\n    iVar26 = (*(code *)PTR_FUN_000df474)(puVar12,&local_484);\n    iVar7 = 0x70a;\n    if (iVar26 != 0) goto LAB_0005e8fb;\n    local_4a8 = local_474 & 0x1ff;\n    local_4ac = local_46c;\n    iVar26 = FUN_0003a9a0(uVar15,uVar14);\n    uVar22 = local_468;\n    if (iVar26 < 0) goto LAB_0005ec06;\nLAB_0005eb78:\n    if (((local_4a8 != 0) && ((param_4 & 0x80800) != 0)) &&\n       (iVar7 = (*(code *)PTR_geteuid_000df540)(), iVar7 == 0)) {\n      (*(code *)PTR_fchown_000df534)(iVar26,local_4ac,uVar22);\n    }\nLAB_0005e7af:\n    if (param_5 != (uint *)0x0) {\n      *param_5 = param_4;\n    }\n    piVar13 = (int *)param_3[7];\n    if (piVar13 != (int *)0x0) {\n      *piVar13 = iVar26;\n      piVar13[1] = param_4 & 3;\n    }\n    if (uVar15 != 0) {\n      (*(code *)PTR_unlink_000df504)(local_4b4);\n      uVar15 = 0x20;\n    }\n    uVar22 = DAT_000de40c;\n    uVar19 = uVar15 | 2;\n    if (local_4a4 == 0) {\n      uVar19 = uVar15;\n    }\n    uVar15 = uVar19 | 0x80;\n    if (uVar4 == 0x100) {\n      uVar15 = uVar19;\n    }\n    uVar4 = uVar15 | 8;\n    if (!bVar24) {\n      uVar4 = uVar15;\n    }\n    if ((param_4 & 0x40) == 0) {\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[3] = iVar26;\n      pcVar6 = (char *)0x0;\n      if ((uVar4 & 0x40) != 0) {\n        pcVar6 = param_2;\n      }\n      param_3[8] = param_2;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n    }\n    else {\n      uVar4 = uVar4 | 0x40;\n      param_3[3] = iVar26;\n      param_3[8] = param_2;\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n      pcVar6 = param_2;\n    }\n    iVar7 = sqlite3_uri_boolean(pcVar6,&DAT_000aa9b5,1);\n    bVar24 = iVar7 == 0;\n    if (!bVar24) {\n      puVar1 = (ushort *)((int)param_3 + 0x12);\n      *puVar1 = *puVar1 | 0x10;\n      bVar24 = *puVar1 == 0;\n    }\n    bVar23 = false;\n    iVar7 = 10;\n    pbVar18 = *(byte **)(param_1 + 0x10);\n    pbVar20 = (byte *)"unix-excl";\n    do {\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      bVar23 = *pbVar18 < *pbVar20;\n      bVar24 = *pbVar18 == *pbVar20;\n      pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1;\n      pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1;\n    } while (bVar24);\n    if ((!bVar23 && !bVar24) == bVar23) {\n      *(ushort *)((int)param_3 + 0x12) = *(ushort *)((int)param_3 + 0x12) | 1;\n    }\n    if ((uVar4 & 0x80) == 0) {\n      puVar8 = (undefined *)(*(code *)**(undefined4 **)(param_1 + 0x14))(param_2,param_3);\n      puVar17 = &DAT_000dd9e0;\n      if (puVar8 == &DAT_000dd9e0) {\n        sqlite3_mutex_enter(DAT_000df7a8);\n        iVar7 = (*(code *)PTR_FUN_000df480)(param_3[3],&local_484);\n        piVar13 = DAT_000df7a4;\n        if (iVar7 == 0) {\n          for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }\n          piVar13 = (int *)sqlite3_malloc64(0x34,0);\n          if (piVar13 != (int *)0x0) {\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }\n          iVar7 = 7;\n        }\n        else {\n          piVar13 = __errno_location();\n          iVar7 = 10;\n          param_3[5] = *piVar13;\n        }\nLAB_0005efaf:\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        sqlite3_mutex_leave(DAT_000df7a8);\n        param_3[5] = 0;\n        goto LAB_0005ee17;\n      }\n      if (puVar8 != &DAT_000dd920) goto LAB_0005e8e8;\n      sVar10 = strlen(param_2);\n      iVar7 = sVar10 + 6;\n      iVar11 = sqlite3_malloc64(iVar7,iVar7 >> 0x1f);\n      if (iVar11 == 0) {\n        param_3[6] = 0;\n        param_3[5] = 0;\n        iVar7 = 7;\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        goto LAB_0005ee17;\n      }\n      sqlite3_snprintf(iVar7,iVar11,"%s.lock",param_2);\n      param_3[5] = 0;\n      param_3[6] = iVar11;\n    }\n    else {\n      puVar8 = &DAT_000dd980;\nLAB_0005e8e8:\n      param_3[5] = 0;\n    }\nLAB_0005e8ef:\n    *param_3 = puVar8;\n    iVar7 = 0;\n    FUN_0003a610();\n  }" (if "if") (parenthesized_expression "((param_4 & 0x80800) == 0)" (( "(") (binary_expression "(param_4 & 0x80800) == 0" (parenthesized_expression "(param_4 & 0x80800)" (( "(") (binary_expression "param_4 & 0x80800" (identifier "param_4") (& "&") (number_literal "0x80800")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (uVar15 == 0) {\n      if (((param_4 & 0x40) != 0) &&\n         (puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof"),\n         puVar12 != (undefined1 *)0x0)) goto LAB_0005eb2c;\nLAB_0005ebd9:\n      iVar26 = FUN_0003a9a0(uVar15,uVar14);\n      if (iVar26 < 0) {\n        local_4ac = 0;\n        local_4a8 = 0;\n        uVar22 = 0;\n        goto LAB_0005ec06;\n      }\n      goto LAB_0005e7af;\n    }\n    iVar26 = FUN_0003a9a0(uVar15,uVar14);\n    if (-1 < iVar26) goto LAB_0005e7af;\n    uVar22 = 0;\n    local_4ac = 0;\n    local_4a8 = 0x180;\nLAB_0005ec06:\n    piVar13 = __errno_location();\n    iVar26 = *piVar13;\n    if ((bVar24) && (iVar26 == 0xd)) {\n      iVar26 = (*(code *)PTR_access_000df45c)(local_4b4,0);\n      if (iVar26 == 0) {\n        iVar26 = *piVar13;\n        goto LAB_0005ec40;\n      }\n      iVar7 = 0x608;\n      FUN_000383b0();\n      FUN_0003aad0(0x9ae7);\n    }\n    else {\nLAB_0005ec40:\n      if ((uVar19 != 0) && (iVar26 != 0x15)) {\n        param_4 = param_4 & 0xfffffff9 | 1;\n        iVar26 = FUN_0003a9a0();\n        if (-1 < iVar26) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }\n      FUN_000383b0();\n      iVar7 = FUN_0003aad0(0x9ae7);\n      if (iVar7 == 0) goto LAB_0005e8fb;\n    }\nLAB_0005ee17:\n    sqlite3_free(param_3[7]);\n  }" ({ "{") (if_statement "if (uVar15 == 0) {\n      if (((param_4 & 0x40) != 0) &&\n         (puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof"),\n         puVar12 != (undefined1 *)0x0)) goto LAB_0005eb2c;\nLAB_0005ebd9:\n      iVar26 = FUN_0003a9a0(uVar15,uVar14);\n      if (iVar26 < 0) {\n        local_4ac = 0;\n        local_4a8 = 0;\n        uVar22 = 0;\n        goto LAB_0005ec06;\n      }\n      goto LAB_0005e7af;\n    }" (if "if") (parenthesized_expression "(uVar15 == 0)" (( "(") (binary_expression "uVar15 == 0" (identifier "uVar15") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if (((param_4 & 0x40) != 0) &&\n         (puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof"),\n         puVar12 != (undefined1 *)0x0)) goto LAB_0005eb2c;\nLAB_0005ebd9:\n      iVar26 = FUN_0003a9a0(uVar15,uVar14);\n      if (iVar26 < 0) {\n        local_4ac = 0;\n        local_4a8 = 0;\n        uVar22 = 0;\n        goto LAB_0005ec06;\n      }\n      goto LAB_0005e7af;\n    }" ({ "{") (if_statement "if (((param_4 & 0x40) != 0) &&\n         (puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof"),\n         puVar12 != (undefined1 *)0x0)) goto LAB_0005eb2c;" (if "if") (parenthesized_expression "(((param_4 & 0x40) != 0) &&\n         (puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof"),\n         puVar12 != (undefined1 *)0x0))" (( "(") (binary_expression "((param_4 & 0x40) != 0) &&\n         (puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof"),\n         puVar12 != (undefined1 *)0x0)" (parenthesized_expression "((param_4 & 0x40) != 0)" (( "(") (binary_expression "(param_4 & 0x40) != 0" (parenthesized_expression "(param_4 & 0x40)" (( "(") (binary_expression "param_4 & 0x40" (identifier "param_4") (& "&") (number_literal "0x40")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof"),\n         puVar12 != (undefined1 *)0x0)" (( "(") (comma_expression "puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof"),\n         puVar12 != (undefined1 *)0x0" (assignment_expression "puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof")" (identifier "puVar12") (= "=") (cast_expression "(undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof")" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "sqlite3_uri_parameter(local_4b4,"modeof")" (identifier "sqlite3_uri_parameter") (argument_list "(local_4b4,"modeof")" (( "(") (identifier "local_4b4") (, ",") (string_literal ""modeof"" (" """) (string_content "modeof") (" """)) () ")"))))) (, ",") (binary_expression "puVar12 != (undefined1 *)0x0" (identifier "puVar12") (!= "!=") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (goto_statement "goto LAB_0005eb2c;" (goto "goto") (statement_identifier "LAB_0005eb2c") (; ";"))) (labeled_statement "LAB_0005ebd9:\n      iVar26 = FUN_0003a9a0(uVar15,uVar14);" (statement_identifier "LAB_0005ebd9") (: ":") (expression_statement "iVar26 = FUN_0003a9a0(uVar15,uVar14);" (assignment_expression "iVar26 = FUN_0003a9a0(uVar15,uVar14)" (identifier "iVar26") (= "=") (call_expression "FUN_0003a9a0(uVar15,uVar14)" (identifier "FUN_0003a9a0") (argument_list "(uVar15,uVar14)" (( "(") (identifier "uVar15") (, ",") (identifier "uVar14") () ")")))) (; ";"))) (if_statement "if (iVar26 < 0) {\n        local_4ac = 0;\n        local_4a8 = 0;\n        uVar22 = 0;\n        goto LAB_0005ec06;\n      }" (if "if") (parenthesized_expression "(iVar26 < 0)" (( "(") (binary_expression "iVar26 < 0" (identifier "iVar26") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n        local_4ac = 0;\n        local_4a8 = 0;\n        uVar22 = 0;\n        goto LAB_0005ec06;\n      }" ({ "{") (expression_statement "local_4ac = 0;" (assignment_expression "local_4ac = 0" (identifier "local_4ac") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_4a8 = 0;" (assignment_expression "local_4a8 = 0" (identifier "local_4a8") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar22 = 0;" (assignment_expression "uVar22 = 0" (identifier "uVar22") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_0005ec06;" (goto "goto") (statement_identifier "LAB_0005ec06") (; ";")) (} "}"))) (goto_statement "goto LAB_0005e7af;" (goto "goto") (statement_identifier "LAB_0005e7af") (; ";")) (} "}"))) (expression_statement "iVar26 = FUN_0003a9a0(uVar15,uVar14);" (assignment_expression "iVar26 = FUN_0003a9a0(uVar15,uVar14)" (identifier "iVar26") (= "=") (call_expression "FUN_0003a9a0(uVar15,uVar14)" (identifier "FUN_0003a9a0") (argument_list "(uVar15,uVar14)" (( "(") (identifier "uVar15") (, ",") (identifier "uVar14") () ")")))) (; ";")) (if_statement "if (-1 < iVar26) goto LAB_0005e7af;" (if "if") (parenthesized_expression "(-1 < iVar26)" (( "(") (binary_expression "-1 < iVar26" (number_literal "-1") (< "<") (identifier "iVar26")) () ")")) (goto_statement "goto LAB_0005e7af;" (goto "goto") (statement_identifier "LAB_0005e7af") (; ";"))) (expression_statement "uVar22 = 0;" (assignment_expression "uVar22 = 0" (identifier "uVar22") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_4ac = 0;" (assignment_expression "local_4ac = 0" (identifier "local_4ac") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_4a8 = 0x180;" (assignment_expression "local_4a8 = 0x180" (identifier "local_4a8") (= "=") (number_literal "0x180")) (; ";")) (labeled_statement "LAB_0005ec06:\n    piVar13 = __errno_location();" (statement_identifier "LAB_0005ec06") (: ":") (expression_statement "piVar13 = __errno_location();" (assignment_expression "piVar13 = __errno_location()" (identifier "piVar13") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";"))) (expression_statement "iVar26 = *piVar13;" (assignment_expression "iVar26 = *piVar13" (identifier "iVar26") (= "=") (pointer_expression "*piVar13" (* "*") (identifier "piVar13"))) (; ";")) (if_statement "if ((bVar24) && (iVar26 == 0xd)) {\n      iVar26 = (*(code *)PTR_access_000df45c)(local_4b4,0);\n      if (iVar26 == 0) {\n        iVar26 = *piVar13;\n        goto LAB_0005ec40;\n      }\n      iVar7 = 0x608;\n      FUN_000383b0();\n      FUN_0003aad0(0x9ae7);\n    }\n    else {\nLAB_0005ec40:\n      if ((uVar19 != 0) && (iVar26 != 0x15)) {\n        param_4 = param_4 & 0xfffffff9 | 1;\n        iVar26 = FUN_0003a9a0();\n        if (-1 < iVar26) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }\n      FUN_000383b0();\n      iVar7 = FUN_0003aad0(0x9ae7);\n      if (iVar7 == 0) goto LAB_0005e8fb;\n    }" (if "if") (parenthesized_expression "((bVar24) && (iVar26 == 0xd))" (( "(") (binary_expression "(bVar24) && (iVar26 == 0xd)" (parenthesized_expression "(bVar24)" (( "(") (identifier "bVar24") () ")")) (&& "&&") (parenthesized_expression "(iVar26 == 0xd)" (( "(") (binary_expression "iVar26 == 0xd" (identifier "iVar26") (== "==") (number_literal "0xd")) () ")"))) () ")")) (compound_statement "{\n      iVar26 = (*(code *)PTR_access_000df45c)(local_4b4,0);\n      if (iVar26 == 0) {\n        iVar26 = *piVar13;\n        goto LAB_0005ec40;\n      }\n      iVar7 = 0x608;\n      FUN_000383b0();\n      FUN_0003aad0(0x9ae7);\n    }" ({ "{") (expression_statement "iVar26 = (*(code *)PTR_access_000df45c)(local_4b4,0);" (assignment_expression "iVar26 = (*(code *)PTR_access_000df45c)(local_4b4,0)" (identifier "iVar26") (= "=") (call_expression "(*(code *)PTR_access_000df45c)(local_4b4,0)" (parenthesized_expression "(*(code *)PTR_access_000df45c)" (( "(") (pointer_expression "*(code *)PTR_access_000df45c" (* "*") (cast_expression "(code *)PTR_access_000df45c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_access_000df45c"))) () ")")) (argument_list "(local_4b4,0)" (( "(") (identifier "local_4b4") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar26 == 0) {\n        iVar26 = *piVar13;\n        goto LAB_0005ec40;\n      }" (if "if") (parenthesized_expression "(iVar26 == 0)" (( "(") (binary_expression "iVar26 == 0" (identifier "iVar26") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        iVar26 = *piVar13;\n        goto LAB_0005ec40;\n      }" ({ "{") (expression_statement "iVar26 = *piVar13;" (assignment_expression "iVar26 = *piVar13" (identifier "iVar26") (= "=") (pointer_expression "*piVar13" (* "*") (identifier "piVar13"))) (; ";")) (goto_statement "goto LAB_0005ec40;" (goto "goto") (statement_identifier "LAB_0005ec40") (; ";")) (} "}"))) (expression_statement "iVar7 = 0x608;" (assignment_expression "iVar7 = 0x608" (identifier "iVar7") (= "=") (number_literal "0x608")) (; ";")) (expression_statement "FUN_000383b0();" (call_expression "FUN_000383b0()" (identifier "FUN_000383b0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_0003aad0(0x9ae7);" (call_expression "FUN_0003aad0(0x9ae7)" (identifier "FUN_0003aad0") (argument_list "(0x9ae7)" (( "(") (number_literal "0x9ae7") () ")"))) (; ";")) (} "}")) (else_clause "else {\nLAB_0005ec40:\n      if ((uVar19 != 0) && (iVar26 != 0x15)) {\n        param_4 = param_4 & 0xfffffff9 | 1;\n        iVar26 = FUN_0003a9a0();\n        if (-1 < iVar26) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }\n      FUN_000383b0();\n      iVar7 = FUN_0003aad0(0x9ae7);\n      if (iVar7 == 0) goto LAB_0005e8fb;\n    }" (else "else") (compound_statement "{\nLAB_0005ec40:\n      if ((uVar19 != 0) && (iVar26 != 0x15)) {\n        param_4 = param_4 & 0xfffffff9 | 1;\n        iVar26 = FUN_0003a9a0();\n        if (-1 < iVar26) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }\n      FUN_000383b0();\n      iVar7 = FUN_0003aad0(0x9ae7);\n      if (iVar7 == 0) goto LAB_0005e8fb;\n    }" ({ "{") (labeled_statement "LAB_0005ec40:\n      if ((uVar19 != 0) && (iVar26 != 0x15)) {\n        param_4 = param_4 & 0xfffffff9 | 1;\n        iVar26 = FUN_0003a9a0();\n        if (-1 < iVar26) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }" (statement_identifier "LAB_0005ec40") (: ":") (if_statement "if ((uVar19 != 0) && (iVar26 != 0x15)) {\n        param_4 = param_4 & 0xfffffff9 | 1;\n        iVar26 = FUN_0003a9a0();\n        if (-1 < iVar26) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }" (if "if") (parenthesized_expression "((uVar19 != 0) && (iVar26 != 0x15))" (( "(") (binary_expression "(uVar19 != 0) && (iVar26 != 0x15)" (parenthesized_expression "(uVar19 != 0)" (( "(") (binary_expression "uVar19 != 0" (identifier "uVar19") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar26 != 0x15)" (( "(") (binary_expression "iVar26 != 0x15" (identifier "iVar26") (!= "!=") (number_literal "0x15")) () ")"))) () ")")) (compound_statement "{\n        param_4 = param_4 & 0xfffffff9 | 1;\n        iVar26 = FUN_0003a9a0();\n        if (-1 < iVar26) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }\n      }" ({ "{") (expression_statement "param_4 = param_4 & 0xfffffff9 | 1;" (assignment_expression "param_4 = param_4 & 0xfffffff9 | 1" (identifier "param_4") (= "=") (binary_expression "param_4 & 0xfffffff9 | 1" (binary_expression "param_4 & 0xfffffff9" (identifier "param_4") (& "&") (number_literal "0xfffffff9")) (| "|") (number_literal "1"))) (; ";")) (expression_statement "iVar26 = FUN_0003a9a0();" (assignment_expression "iVar26 = FUN_0003a9a0()" (identifier "iVar26") (= "=") (call_expression "FUN_0003a9a0()" (identifier "FUN_0003a9a0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (-1 < iVar26) {\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }" (if "if") (parenthesized_expression "(-1 < iVar26)" (( "(") (binary_expression "-1 < iVar26" (number_literal "-1") (< "<") (identifier "iVar26")) () ")")) (compound_statement "{\n          local_4a4 = 1;\n          goto LAB_0005eb78;\n        }" ({ "{") (expression_statement "local_4a4 = 1;" (assignment_expression "local_4a4 = 1" (identifier "local_4a4") (= "=") (number_literal "1")) (; ";")) (goto_statement "goto LAB_0005eb78;" (goto "goto") (statement_identifier "LAB_0005eb78") (; ";")) (} "}"))) (} "}")))) (expression_statement "FUN_000383b0();" (call_expression "FUN_000383b0()" (identifier "FUN_000383b0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar7 = FUN_0003aad0(0x9ae7);" (assignment_expression "iVar7 = FUN_0003aad0(0x9ae7)" (identifier "iVar7") (= "=") (call_expression "FUN_0003aad0(0x9ae7)" (identifier "FUN_0003aad0") (argument_list "(0x9ae7)" (( "(") (number_literal "0x9ae7") () ")")))) (; ";")) (if_statement "if (iVar7 == 0) goto LAB_0005e8fb;" (if "if") (parenthesized_expression "(iVar7 == 0)" (( "(") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0005e8fb;" (goto "goto") (statement_identifier "LAB_0005e8fb") (; ";"))) (} "}")))) (labeled_statement "LAB_0005ee17:\n    sqlite3_free(param_3[7]);" (statement_identifier "LAB_0005ee17") (: ":") (expression_statement "sqlite3_free(param_3[7]);" (call_expression "sqlite3_free(param_3[7])" (identifier "sqlite3_free") (argument_list "(param_3[7])" (( "(") (subscript_expression "param_3[7]" (identifier "param_3") ([ "[") (number_literal "7") (] "]")) () ")"))) (; ";"))) (} "}")) (else_clause "else {\n    if (local_4b4 == (char *)0x0) {\n      iVar26 = -1;\n    }\n    else {\n      sVar10 = strlen(local_4b4);\n      iVar26 = (sVar10 & 0x3fffffff) - 1;\n    }\n    cVar2 = local_4b4[iVar26];\n    while (cVar2 != '-') {\n      if ((cVar2 == '.') || (iVar26 == 0)) goto LAB_0005ebd9;\n      iVar26 = iVar26 + -1;\n      cVar2 = local_4b4[iVar26];\n    }\n    puVar12 = local_423;\n    __memcpy_chk(puVar12,local_4b4,iVar26,0x201);\n    local_423[iVar26] = 0;\nLAB_0005eb2c:\n    iVar26 = (*(code *)PTR_FUN_000df474)(puVar12,&local_484);\n    iVar7 = 0x70a;\n    if (iVar26 != 0) goto LAB_0005e8fb;\n    local_4a8 = local_474 & 0x1ff;\n    local_4ac = local_46c;\n    iVar26 = FUN_0003a9a0(uVar15,uVar14);\n    uVar22 = local_468;\n    if (iVar26 < 0) goto LAB_0005ec06;\nLAB_0005eb78:\n    if (((local_4a8 != 0) && ((param_4 & 0x80800) != 0)) &&\n       (iVar7 = (*(code *)PTR_geteuid_000df540)(), iVar7 == 0)) {\n      (*(code *)PTR_fchown_000df534)(iVar26,local_4ac,uVar22);\n    }\nLAB_0005e7af:\n    if (param_5 != (uint *)0x0) {\n      *param_5 = param_4;\n    }\n    piVar13 = (int *)param_3[7];\n    if (piVar13 != (int *)0x0) {\n      *piVar13 = iVar26;\n      piVar13[1] = param_4 & 3;\n    }\n    if (uVar15 != 0) {\n      (*(code *)PTR_unlink_000df504)(local_4b4);\n      uVar15 = 0x20;\n    }\n    uVar22 = DAT_000de40c;\n    uVar19 = uVar15 | 2;\n    if (local_4a4 == 0) {\n      uVar19 = uVar15;\n    }\n    uVar15 = uVar19 | 0x80;\n    if (uVar4 == 0x100) {\n      uVar15 = uVar19;\n    }\n    uVar4 = uVar15 | 8;\n    if (!bVar24) {\n      uVar4 = uVar15;\n    }\n    if ((param_4 & 0x40) == 0) {\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[3] = iVar26;\n      pcVar6 = (char *)0x0;\n      if ((uVar4 & 0x40) != 0) {\n        pcVar6 = param_2;\n      }\n      param_3[8] = param_2;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n    }\n    else {\n      uVar4 = uVar4 | 0x40;\n      param_3[3] = iVar26;\n      param_3[8] = param_2;\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n      pcVar6 = param_2;\n    }\n    iVar7 = sqlite3_uri_boolean(pcVar6,&DAT_000aa9b5,1);\n    bVar24 = iVar7 == 0;\n    if (!bVar24) {\n      puVar1 = (ushort *)((int)param_3 + 0x12);\n      *puVar1 = *puVar1 | 0x10;\n      bVar24 = *puVar1 == 0;\n    }\n    bVar23 = false;\n    iVar7 = 10;\n    pbVar18 = *(byte **)(param_1 + 0x10);\n    pbVar20 = (byte *)"unix-excl";\n    do {\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      bVar23 = *pbVar18 < *pbVar20;\n      bVar24 = *pbVar18 == *pbVar20;\n      pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1;\n      pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1;\n    } while (bVar24);\n    if ((!bVar23 && !bVar24) == bVar23) {\n      *(ushort *)((int)param_3 + 0x12) = *(ushort *)((int)param_3 + 0x12) | 1;\n    }\n    if ((uVar4 & 0x80) == 0) {\n      puVar8 = (undefined *)(*(code *)**(undefined4 **)(param_1 + 0x14))(param_2,param_3);\n      puVar17 = &DAT_000dd9e0;\n      if (puVar8 == &DAT_000dd9e0) {\n        sqlite3_mutex_enter(DAT_000df7a8);\n        iVar7 = (*(code *)PTR_FUN_000df480)(param_3[3],&local_484);\n        piVar13 = DAT_000df7a4;\n        if (iVar7 == 0) {\n          for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }\n          piVar13 = (int *)sqlite3_malloc64(0x34,0);\n          if (piVar13 != (int *)0x0) {\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }\n          iVar7 = 7;\n        }\n        else {\n          piVar13 = __errno_location();\n          iVar7 = 10;\n          param_3[5] = *piVar13;\n        }\nLAB_0005efaf:\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        sqlite3_mutex_leave(DAT_000df7a8);\n        param_3[5] = 0;\n        goto LAB_0005ee17;\n      }\n      if (puVar8 != &DAT_000dd920) goto LAB_0005e8e8;\n      sVar10 = strlen(param_2);\n      iVar7 = sVar10 + 6;\n      iVar11 = sqlite3_malloc64(iVar7,iVar7 >> 0x1f);\n      if (iVar11 == 0) {\n        param_3[6] = 0;\n        param_3[5] = 0;\n        iVar7 = 7;\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        goto LAB_0005ee17;\n      }\n      sqlite3_snprintf(iVar7,iVar11,"%s.lock",param_2);\n      param_3[5] = 0;\n      param_3[6] = iVar11;\n    }\n    else {\n      puVar8 = &DAT_000dd980;\nLAB_0005e8e8:\n      param_3[5] = 0;\n    }\nLAB_0005e8ef:\n    *param_3 = puVar8;\n    iVar7 = 0;\n    FUN_0003a610();\n  }" (else "else") (compound_statement "{\n    if (local_4b4 == (char *)0x0) {\n      iVar26 = -1;\n    }\n    else {\n      sVar10 = strlen(local_4b4);\n      iVar26 = (sVar10 & 0x3fffffff) - 1;\n    }\n    cVar2 = local_4b4[iVar26];\n    while (cVar2 != '-') {\n      if ((cVar2 == '.') || (iVar26 == 0)) goto LAB_0005ebd9;\n      iVar26 = iVar26 + -1;\n      cVar2 = local_4b4[iVar26];\n    }\n    puVar12 = local_423;\n    __memcpy_chk(puVar12,local_4b4,iVar26,0x201);\n    local_423[iVar26] = 0;\nLAB_0005eb2c:\n    iVar26 = (*(code *)PTR_FUN_000df474)(puVar12,&local_484);\n    iVar7 = 0x70a;\n    if (iVar26 != 0) goto LAB_0005e8fb;\n    local_4a8 = local_474 & 0x1ff;\n    local_4ac = local_46c;\n    iVar26 = FUN_0003a9a0(uVar15,uVar14);\n    uVar22 = local_468;\n    if (iVar26 < 0) goto LAB_0005ec06;\nLAB_0005eb78:\n    if (((local_4a8 != 0) && ((param_4 & 0x80800) != 0)) &&\n       (iVar7 = (*(code *)PTR_geteuid_000df540)(), iVar7 == 0)) {\n      (*(code *)PTR_fchown_000df534)(iVar26,local_4ac,uVar22);\n    }\nLAB_0005e7af:\n    if (param_5 != (uint *)0x0) {\n      *param_5 = param_4;\n    }\n    piVar13 = (int *)param_3[7];\n    if (piVar13 != (int *)0x0) {\n      *piVar13 = iVar26;\n      piVar13[1] = param_4 & 3;\n    }\n    if (uVar15 != 0) {\n      (*(code *)PTR_unlink_000df504)(local_4b4);\n      uVar15 = 0x20;\n    }\n    uVar22 = DAT_000de40c;\n    uVar19 = uVar15 | 2;\n    if (local_4a4 == 0) {\n      uVar19 = uVar15;\n    }\n    uVar15 = uVar19 | 0x80;\n    if (uVar4 == 0x100) {\n      uVar15 = uVar19;\n    }\n    uVar4 = uVar15 | 8;\n    if (!bVar24) {\n      uVar4 = uVar15;\n    }\n    if ((param_4 & 0x40) == 0) {\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[3] = iVar26;\n      pcVar6 = (char *)0x0;\n      if ((uVar4 & 0x40) != 0) {\n        pcVar6 = param_2;\n      }\n      param_3[8] = param_2;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n    }\n    else {\n      uVar4 = uVar4 | 0x40;\n      param_3[3] = iVar26;\n      param_3[8] = param_2;\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n      pcVar6 = param_2;\n    }\n    iVar7 = sqlite3_uri_boolean(pcVar6,&DAT_000aa9b5,1);\n    bVar24 = iVar7 == 0;\n    if (!bVar24) {\n      puVar1 = (ushort *)((int)param_3 + 0x12);\n      *puVar1 = *puVar1 | 0x10;\n      bVar24 = *puVar1 == 0;\n    }\n    bVar23 = false;\n    iVar7 = 10;\n    pbVar18 = *(byte **)(param_1 + 0x10);\n    pbVar20 = (byte *)"unix-excl";\n    do {\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      bVar23 = *pbVar18 < *pbVar20;\n      bVar24 = *pbVar18 == *pbVar20;\n      pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1;\n      pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1;\n    } while (bVar24);\n    if ((!bVar23 && !bVar24) == bVar23) {\n      *(ushort *)((int)param_3 + 0x12) = *(ushort *)((int)param_3 + 0x12) | 1;\n    }\n    if ((uVar4 & 0x80) == 0) {\n      puVar8 = (undefined *)(*(code *)**(undefined4 **)(param_1 + 0x14))(param_2,param_3);\n      puVar17 = &DAT_000dd9e0;\n      if (puVar8 == &DAT_000dd9e0) {\n        sqlite3_mutex_enter(DAT_000df7a8);\n        iVar7 = (*(code *)PTR_FUN_000df480)(param_3[3],&local_484);\n        piVar13 = DAT_000df7a4;\n        if (iVar7 == 0) {\n          for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }\n          piVar13 = (int *)sqlite3_malloc64(0x34,0);\n          if (piVar13 != (int *)0x0) {\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }\n          iVar7 = 7;\n        }\n        else {\n          piVar13 = __errno_location();\n          iVar7 = 10;\n          param_3[5] = *piVar13;\n        }\nLAB_0005efaf:\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        sqlite3_mutex_leave(DAT_000df7a8);\n        param_3[5] = 0;\n        goto LAB_0005ee17;\n      }\n      if (puVar8 != &DAT_000dd920) goto LAB_0005e8e8;\n      sVar10 = strlen(param_2);\n      iVar7 = sVar10 + 6;\n      iVar11 = sqlite3_malloc64(iVar7,iVar7 >> 0x1f);\n      if (iVar11 == 0) {\n        param_3[6] = 0;\n        param_3[5] = 0;\n        iVar7 = 7;\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        goto LAB_0005ee17;\n      }\n      sqlite3_snprintf(iVar7,iVar11,"%s.lock",param_2);\n      param_3[5] = 0;\n      param_3[6] = iVar11;\n    }\n    else {\n      puVar8 = &DAT_000dd980;\nLAB_0005e8e8:\n      param_3[5] = 0;\n    }\nLAB_0005e8ef:\n    *param_3 = puVar8;\n    iVar7 = 0;\n    FUN_0003a610();\n  }" ({ "{") (if_statement "if (local_4b4 == (char *)0x0) {\n      iVar26 = -1;\n    }\n    else {\n      sVar10 = strlen(local_4b4);\n      iVar26 = (sVar10 & 0x3fffffff) - 1;\n    }" (if "if") (parenthesized_expression "(local_4b4 == (char *)0x0)" (( "(") (binary_expression "local_4b4 == (char *)0x0" (identifier "local_4b4") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      iVar26 = -1;\n    }" ({ "{") (expression_statement "iVar26 = -1;" (assignment_expression "iVar26 = -1" (identifier "iVar26") (= "=") (number_literal "-1")) (; ";")) (} "}")) (else_clause "else {\n      sVar10 = strlen(local_4b4);\n      iVar26 = (sVar10 & 0x3fffffff) - 1;\n    }" (else "else") (compound_statement "{\n      sVar10 = strlen(local_4b4);\n      iVar26 = (sVar10 & 0x3fffffff) - 1;\n    }" ({ "{") (expression_statement "sVar10 = strlen(local_4b4);" (assignment_expression "sVar10 = strlen(local_4b4)" (identifier "sVar10") (= "=") (call_expression "strlen(local_4b4)" (identifier "strlen") (argument_list "(local_4b4)" (( "(") (identifier "local_4b4") () ")")))) (; ";")) (expression_statement "iVar26 = (sVar10 & 0x3fffffff) - 1;" (assignment_expression "iVar26 = (sVar10 & 0x3fffffff) - 1" (identifier "iVar26") (= "=") (binary_expression "(sVar10 & 0x3fffffff) - 1" (parenthesized_expression "(sVar10 & 0x3fffffff)" (( "(") (binary_expression "sVar10 & 0x3fffffff" (identifier "sVar10") (& "&") (number_literal "0x3fffffff")) () ")")) (- "-") (number_literal "1"))) (; ";")) (} "}")))) (expression_statement "cVar2 = local_4b4[iVar26];" (assignment_expression "cVar2 = local_4b4[iVar26]" (identifier "cVar2") (= "=") (subscript_expression "local_4b4[iVar26]" (identifier "local_4b4") ([ "[") (identifier "iVar26") (] "]"))) (; ";")) (while_statement "while (cVar2 != '-') {\n      if ((cVar2 == '.') || (iVar26 == 0)) goto LAB_0005ebd9;\n      iVar26 = iVar26 + -1;\n      cVar2 = local_4b4[iVar26];\n    }" (while "while") (parenthesized_expression "(cVar2 != '-')" (( "(") (binary_expression "cVar2 != '-'" (identifier "cVar2") (!= "!=") (char_literal "'-'" (' "'") (character "-") (' "'"))) () ")")) (compound_statement "{\n      if ((cVar2 == '.') || (iVar26 == 0)) goto LAB_0005ebd9;\n      iVar26 = iVar26 + -1;\n      cVar2 = local_4b4[iVar26];\n    }" ({ "{") (if_statement "if ((cVar2 == '.') || (iVar26 == 0)) goto LAB_0005ebd9;" (if "if") (parenthesized_expression "((cVar2 == '.') || (iVar26 == 0))" (( "(") (binary_expression "(cVar2 == '.') || (iVar26 == 0)" (parenthesized_expression "(cVar2 == '.')" (( "(") (binary_expression "cVar2 == '.'" (identifier "cVar2") (== "==") (char_literal "'.'" (' "'") (character ".") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(iVar26 == 0)" (( "(") (binary_expression "iVar26 == 0" (identifier "iVar26") (== "==") (number_literal "0")) () ")"))) () ")")) (goto_statement "goto LAB_0005ebd9;" (goto "goto") (statement_identifier "LAB_0005ebd9") (; ";"))) (expression_statement "iVar26 = iVar26 + -1;" (assignment_expression "iVar26 = iVar26 + -1" (identifier "iVar26") (= "=") (binary_expression "iVar26 + -1" (identifier "iVar26") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "cVar2 = local_4b4[iVar26];" (assignment_expression "cVar2 = local_4b4[iVar26]" (identifier "cVar2") (= "=") (subscript_expression "local_4b4[iVar26]" (identifier "local_4b4") ([ "[") (identifier "iVar26") (] "]"))) (; ";")) (} "}"))) (expression_statement "puVar12 = local_423;" (assignment_expression "puVar12 = local_423" (identifier "puVar12") (= "=") (identifier "local_423")) (; ";")) (expression_statement "__memcpy_chk(puVar12,local_4b4,iVar26,0x201);" (call_expression "__memcpy_chk(puVar12,local_4b4,iVar26,0x201)" (identifier "__memcpy_chk") (argument_list "(puVar12,local_4b4,iVar26,0x201)" (( "(") (identifier "puVar12") (, ",") (identifier "local_4b4") (, ",") (identifier "iVar26") (, ",") (number_literal "0x201") () ")"))) (; ";")) (expression_statement "local_423[iVar26] = 0;" (assignment_expression "local_423[iVar26] = 0" (subscript_expression "local_423[iVar26]" (identifier "local_423") ([ "[") (identifier "iVar26") (] "]")) (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_0005eb2c:\n    iVar26 = (*(code *)PTR_FUN_000df474)(puVar12,&local_484);" (statement_identifier "LAB_0005eb2c") (: ":") (expression_statement "iVar26 = (*(code *)PTR_FUN_000df474)(puVar12,&local_484);" (assignment_expression "iVar26 = (*(code *)PTR_FUN_000df474)(puVar12,&local_484)" (identifier "iVar26") (= "=") (call_expression "(*(code *)PTR_FUN_000df474)(puVar12,&local_484)" (parenthesized_expression "(*(code *)PTR_FUN_000df474)" (( "(") (pointer_expression "*(code *)PTR_FUN_000df474" (* "*") (cast_expression "(code *)PTR_FUN_000df474" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_000df474"))) () ")")) (argument_list "(puVar12,&local_484)" (( "(") (identifier "puVar12") (, ",") (pointer_expression "&local_484" (& "&") (identifier "local_484")) () ")")))) (; ";"))) (expression_statement "iVar7 = 0x70a;" (assignment_expression "iVar7 = 0x70a" (identifier "iVar7") (= "=") (number_literal "0x70a")) (; ";")) (if_statement "if (iVar26 != 0) goto LAB_0005e8fb;" (if "if") (parenthesized_expression "(iVar26 != 0)" (( "(") (binary_expression "iVar26 != 0" (identifier "iVar26") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0005e8fb;" (goto "goto") (statement_identifier "LAB_0005e8fb") (; ";"))) (expression_statement "local_4a8 = local_474 & 0x1ff;" (assignment_expression "local_4a8 = local_474 & 0x1ff" (identifier "local_4a8") (= "=") (binary_expression "local_474 & 0x1ff" (identifier "local_474") (& "&") (number_literal "0x1ff"))) (; ";")) (expression_statement "local_4ac = local_46c;" (assignment_expression "local_4ac = local_46c" (identifier "local_4ac") (= "=") (identifier "local_46c")) (; ";")) (expression_statement "iVar26 = FUN_0003a9a0(uVar15,uVar14);" (assignment_expression "iVar26 = FUN_0003a9a0(uVar15,uVar14)" (identifier "iVar26") (= "=") (call_expression "FUN_0003a9a0(uVar15,uVar14)" (identifier "FUN_0003a9a0") (argument_list "(uVar15,uVar14)" (( "(") (identifier "uVar15") (, ",") (identifier "uVar14") () ")")))) (; ";")) (expression_statement "uVar22 = local_468;" (assignment_expression "uVar22 = local_468" (identifier "uVar22") (= "=") (identifier "local_468")) (; ";")) (if_statement "if (iVar26 < 0) goto LAB_0005ec06;" (if "if") (parenthesized_expression "(iVar26 < 0)" (( "(") (binary_expression "iVar26 < 0" (identifier "iVar26") (< "<") (number_literal "0")) () ")")) (goto_statement "goto LAB_0005ec06;" (goto "goto") (statement_identifier "LAB_0005ec06") (; ";"))) (labeled_statement "LAB_0005eb78:\n    if (((local_4a8 != 0) && ((param_4 & 0x80800) != 0)) &&\n       (iVar7 = (*(code *)PTR_geteuid_000df540)(), iVar7 == 0)) {\n      (*(code *)PTR_fchown_000df534)(iVar26,local_4ac,uVar22);\n    }" (statement_identifier "LAB_0005eb78") (: ":") (if_statement "if (((local_4a8 != 0) && ((param_4 & 0x80800) != 0)) &&\n       (iVar7 = (*(code *)PTR_geteuid_000df540)(), iVar7 == 0)) {\n      (*(code *)PTR_fchown_000df534)(iVar26,local_4ac,uVar22);\n    }" (if "if") (parenthesized_expression "(((local_4a8 != 0) && ((param_4 & 0x80800) != 0)) &&\n       (iVar7 = (*(code *)PTR_geteuid_000df540)(), iVar7 == 0))" (( "(") (binary_expression "((local_4a8 != 0) && ((param_4 & 0x80800) != 0)) &&\n       (iVar7 = (*(code *)PTR_geteuid_000df540)(), iVar7 == 0)" (parenthesized_expression "((local_4a8 != 0) && ((param_4 & 0x80800) != 0))" (( "(") (binary_expression "(local_4a8 != 0) && ((param_4 & 0x80800) != 0)" (parenthesized_expression "(local_4a8 != 0)" (( "(") (binary_expression "local_4a8 != 0" (identifier "local_4a8") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((param_4 & 0x80800) != 0)" (( "(") (binary_expression "(param_4 & 0x80800) != 0" (parenthesized_expression "(param_4 & 0x80800)" (( "(") (binary_expression "param_4 & 0x80800" (identifier "param_4") (& "&") (number_literal "0x80800")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(iVar7 = (*(code *)PTR_geteuid_000df540)(), iVar7 == 0)" (( "(") (comma_expression "iVar7 = (*(code *)PTR_geteuid_000df540)(), iVar7 == 0" (assignment_expression "iVar7 = (*(code *)PTR_geteuid_000df540)()" (identifier "iVar7") (= "=") (call_expression "(*(code *)PTR_geteuid_000df540)()" (parenthesized_expression "(*(code *)PTR_geteuid_000df540)" (( "(") (pointer_expression "*(code *)PTR_geteuid_000df540" (* "*") (cast_expression "(code *)PTR_geteuid_000df540" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_geteuid_000df540"))) () ")")) (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      (*(code *)PTR_fchown_000df534)(iVar26,local_4ac,uVar22);\n    }" ({ "{") (expression_statement "(*(code *)PTR_fchown_000df534)(iVar26,local_4ac,uVar22);" (call_expression "(*(code *)PTR_fchown_000df534)(iVar26,local_4ac,uVar22)" (parenthesized_expression "(*(code *)PTR_fchown_000df534)" (( "(") (pointer_expression "*(code *)PTR_fchown_000df534" (* "*") (cast_expression "(code *)PTR_fchown_000df534" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fchown_000df534"))) () ")")) (argument_list "(iVar26,local_4ac,uVar22)" (( "(") (identifier "iVar26") (, ",") (identifier "local_4ac") (, ",") (identifier "uVar22") () ")"))) (; ";")) (} "}")))) (labeled_statement "LAB_0005e7af:\n    if (param_5 != (uint *)0x0) {\n      *param_5 = param_4;\n    }" (statement_identifier "LAB_0005e7af") (: ":") (if_statement "if (param_5 != (uint *)0x0) {\n      *param_5 = param_4;\n    }" (if "if") (parenthesized_expression "(param_5 != (uint *)0x0)" (( "(") (binary_expression "param_5 != (uint *)0x0" (identifier "param_5") (!= "!=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      *param_5 = param_4;\n    }" ({ "{") (expression_statement "*param_5 = param_4;" (assignment_expression "*param_5 = param_4" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (identifier "param_4")) (; ";")) (} "}")))) (expression_statement "piVar13 = (int *)param_3[7];" (assignment_expression "piVar13 = (int *)param_3[7]" (identifier "piVar13") (= "=") (cast_expression "(int *)param_3[7]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_3[7]" (identifier "param_3") ([ "[") (number_literal "7") (] "]")))) (; ";")) (if_statement "if (piVar13 != (int *)0x0) {\n      *piVar13 = iVar26;\n      piVar13[1] = param_4 & 3;\n    }" (if "if") (parenthesized_expression "(piVar13 != (int *)0x0)" (( "(") (binary_expression "piVar13 != (int *)0x0" (identifier "piVar13") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      *piVar13 = iVar26;\n      piVar13[1] = param_4 & 3;\n    }" ({ "{") (expression_statement "*piVar13 = iVar26;" (assignment_expression "*piVar13 = iVar26" (pointer_expression "*piVar13" (* "*") (identifier "piVar13")) (= "=") (identifier "iVar26")) (; ";")) (expression_statement "piVar13[1] = param_4 & 3;" (assignment_expression "piVar13[1] = param_4 & 3" (subscript_expression "piVar13[1]" (identifier "piVar13") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "param_4 & 3" (identifier "param_4") (& "&") (number_literal "3"))) (; ";")) (} "}"))) (if_statement "if (uVar15 != 0) {\n      (*(code *)PTR_unlink_000df504)(local_4b4);\n      uVar15 = 0x20;\n    }" (if "if") (parenthesized_expression "(uVar15 != 0)" (( "(") (binary_expression "uVar15 != 0" (identifier "uVar15") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      (*(code *)PTR_unlink_000df504)(local_4b4);\n      uVar15 = 0x20;\n    }" ({ "{") (expression_statement "(*(code *)PTR_unlink_000df504)(local_4b4);" (call_expression "(*(code *)PTR_unlink_000df504)(local_4b4)" (parenthesized_expression "(*(code *)PTR_unlink_000df504)" (( "(") (pointer_expression "*(code *)PTR_unlink_000df504" (* "*") (cast_expression "(code *)PTR_unlink_000df504" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_unlink_000df504"))) () ")")) (argument_list "(local_4b4)" (( "(") (identifier "local_4b4") () ")"))) (; ";")) (expression_statement "uVar15 = 0x20;" (assignment_expression "uVar15 = 0x20" (identifier "uVar15") (= "=") (number_literal "0x20")) (; ";")) (} "}"))) (expression_statement "uVar22 = DAT_000de40c;" (assignment_expression "uVar22 = DAT_000de40c" (identifier "uVar22") (= "=") (identifier "DAT_000de40c")) (; ";")) (expression_statement "uVar19 = uVar15 | 2;" (assignment_expression "uVar19 = uVar15 | 2" (identifier "uVar19") (= "=") (binary_expression "uVar15 | 2" (identifier "uVar15") (| "|") (number_literal "2"))) (; ";")) (if_statement "if (local_4a4 == 0) {\n      uVar19 = uVar15;\n    }" (if "if") (parenthesized_expression "(local_4a4 == 0)" (( "(") (binary_expression "local_4a4 == 0" (identifier "local_4a4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar19 = uVar15;\n    }" ({ "{") (expression_statement "uVar19 = uVar15;" (assignment_expression "uVar19 = uVar15" (identifier "uVar19") (= "=") (identifier "uVar15")) (; ";")) (} "}"))) (expression_statement "uVar15 = uVar19 | 0x80;" (assignment_expression "uVar15 = uVar19 | 0x80" (identifier "uVar15") (= "=") (binary_expression "uVar19 | 0x80" (identifier "uVar19") (| "|") (number_literal "0x80"))) (; ";")) (if_statement "if (uVar4 == 0x100) {\n      uVar15 = uVar19;\n    }" (if "if") (parenthesized_expression "(uVar4 == 0x100)" (( "(") (binary_expression "uVar4 == 0x100" (identifier "uVar4") (== "==") (number_literal "0x100")) () ")")) (compound_statement "{\n      uVar15 = uVar19;\n    }" ({ "{") (expression_statement "uVar15 = uVar19;" (assignment_expression "uVar15 = uVar19" (identifier "uVar15") (= "=") (identifier "uVar19")) (; ";")) (} "}"))) (expression_statement "uVar4 = uVar15 | 8;" (assignment_expression "uVar4 = uVar15 | 8" (identifier "uVar4") (= "=") (binary_expression "uVar15 | 8" (identifier "uVar15") (| "|") (number_literal "8"))) (; ";")) (if_statement "if (!bVar24) {\n      uVar4 = uVar15;\n    }" (if "if") (parenthesized_expression "(!bVar24)" (( "(") (unary_expression "!bVar24" (! "!") (identifier "bVar24")) () ")")) (compound_statement "{\n      uVar4 = uVar15;\n    }" ({ "{") (expression_statement "uVar4 = uVar15;" (assignment_expression "uVar4 = uVar15" (identifier "uVar4") (= "=") (identifier "uVar15")) (; ";")) (} "}"))) (if_statement "if ((param_4 & 0x40) == 0) {\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[3] = iVar26;\n      pcVar6 = (char *)0x0;\n      if ((uVar4 & 0x40) != 0) {\n        pcVar6 = param_2;\n      }\n      param_3[8] = param_2;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n    }\n    else {\n      uVar4 = uVar4 | 0x40;\n      param_3[3] = iVar26;\n      param_3[8] = param_2;\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n      pcVar6 = param_2;\n    }" (if "if") (parenthesized_expression "((param_4 & 0x40) == 0)" (( "(") (binary_expression "(param_4 & 0x40) == 0" (parenthesized_expression "(param_4 & 0x40)" (( "(") (binary_expression "param_4 & 0x40" (identifier "param_4") (& "&") (number_literal "0x40")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[3] = iVar26;\n      pcVar6 = (char *)0x0;\n      if ((uVar4 & 0x40) != 0) {\n        pcVar6 = param_2;\n      }\n      param_3[8] = param_2;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n    }" ({ "{") (expression_statement "*(short *)((int)param_3 + 0x12) = (short)uVar4;" (assignment_expression "*(short *)((int)param_3 + 0x12) = (short)uVar4" (pointer_expression "*(short *)((int)param_3 + 0x12)" (* "*") (cast_expression "(short *)((int)param_3 + 0x12)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_3 + 0x12)" (( "(") (binary_expression "(int)param_3 + 0x12" (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3")) (+ "+") (number_literal "0x12")) () ")")))) (= "=") (cast_expression "(short)uVar4" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (identifier "uVar4"))) (; ";")) (expression_statement "param_3[3] = iVar26;" (assignment_expression "param_3[3] = iVar26" (subscript_expression "param_3[3]" (identifier "param_3") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "iVar26")) (; ";")) (expression_statement "pcVar6 = (char *)0x0;" (assignment_expression "pcVar6 = (char *)0x0" (identifier "pcVar6") (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (if_statement "if ((uVar4 & 0x40) != 0) {\n        pcVar6 = param_2;\n      }" (if "if") (parenthesized_expression "((uVar4 & 0x40) != 0)" (( "(") (binary_expression "(uVar4 & 0x40) != 0" (parenthesized_expression "(uVar4 & 0x40)" (( "(") (binary_expression "uVar4 & 0x40" (identifier "uVar4") (& "&") (number_literal "0x40")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        pcVar6 = param_2;\n      }" ({ "{") (expression_statement "pcVar6 = param_2;" (assignment_expression "pcVar6 = param_2" (identifier "pcVar6") (= "=") (identifier "param_2")) (; ";")) (} "}"))) (expression_statement "param_3[8] = param_2;" (assignment_expression "param_3[8] = param_2" (subscript_expression "param_3[8]" (identifier "param_3") ([ "[") (number_literal "8") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "param_3[1] = param_1;" (assignment_expression "param_3[1] = param_1" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "uVar3 = DAT_000de408;" (assignment_expression "uVar3 = DAT_000de408" (identifier "uVar3") (= "=") (identifier "DAT_000de408")) (; ";")) (expression_statement "param_3[0x11] = uVar22;" (assignment_expression "param_3[0x11] = uVar22" (subscript_expression "param_3[0x11]" (identifier "param_3") ([ "[") (number_literal "0x11") (] "]")) (= "=") (identifier "uVar22")) (; ";")) (expression_statement "param_3[0x10] = uVar3;" (assignment_expression "param_3[0x10] = uVar3" (subscript_expression "param_3[0x10]" (identifier "param_3") ([ "[") (number_literal "0x10") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (} "}")) (else_clause "else {\n      uVar4 = uVar4 | 0x40;\n      param_3[3] = iVar26;\n      param_3[8] = param_2;\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n      pcVar6 = param_2;\n    }" (else "else") (compound_statement "{\n      uVar4 = uVar4 | 0x40;\n      param_3[3] = iVar26;\n      param_3[8] = param_2;\n      *(short *)((int)param_3 + 0x12) = (short)uVar4;\n      param_3[1] = param_1;\n      uVar3 = DAT_000de408;\n      param_3[0x11] = uVar22;\n      param_3[0x10] = uVar3;\n      pcVar6 = param_2;\n    }" ({ "{") (expression_statement "uVar4 = uVar4 | 0x40;" (assignment_expression "uVar4 = uVar4 | 0x40" (identifier "uVar4") (= "=") (binary_expression "uVar4 | 0x40" (identifier "uVar4") (| "|") (number_literal "0x40"))) (; ";")) (expression_statement "param_3[3] = iVar26;" (assignment_expression "param_3[3] = iVar26" (subscript_expression "param_3[3]" (identifier "param_3") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "iVar26")) (; ";")) (expression_statement "param_3[8] = param_2;" (assignment_expression "param_3[8] = param_2" (subscript_expression "param_3[8]" (identifier "param_3") ([ "[") (number_literal "8") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(short *)((int)param_3 + 0x12) = (short)uVar4;" (assignment_expression "*(short *)((int)param_3 + 0x12) = (short)uVar4" (pointer_expression "*(short *)((int)param_3 + 0x12)" (* "*") (cast_expression "(short *)((int)param_3 + 0x12)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_3 + 0x12)" (( "(") (binary_expression "(int)param_3 + 0x12" (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3")) (+ "+") (number_literal "0x12")) () ")")))) (= "=") (cast_expression "(short)uVar4" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (identifier "uVar4"))) (; ";")) (expression_statement "param_3[1] = param_1;" (assignment_expression "param_3[1] = param_1" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "uVar3 = DAT_000de408;" (assignment_expression "uVar3 = DAT_000de408" (identifier "uVar3") (= "=") (identifier "DAT_000de408")) (; ";")) (expression_statement "param_3[0x11] = uVar22;" (assignment_expression "param_3[0x11] = uVar22" (subscript_expression "param_3[0x11]" (identifier "param_3") ([ "[") (number_literal "0x11") (] "]")) (= "=") (identifier "uVar22")) (; ";")) (expression_statement "param_3[0x10] = uVar3;" (assignment_expression "param_3[0x10] = uVar3" (subscript_expression "param_3[0x10]" (identifier "param_3") ([ "[") (number_literal "0x10") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "pcVar6 = param_2;" (assignment_expression "pcVar6 = param_2" (identifier "pcVar6") (= "=") (identifier "param_2")) (; ";")) (} "}")))) (expression_statement "iVar7 = sqlite3_uri_boolean(pcVar6,&DAT_000aa9b5,1);" (assignment_expression "iVar7 = sqlite3_uri_boolean(pcVar6,&DAT_000aa9b5,1)" (identifier "iVar7") (= "=") (call_expression "sqlite3_uri_boolean(pcVar6,&DAT_000aa9b5,1)" (identifier "sqlite3_uri_boolean") (argument_list "(pcVar6,&DAT_000aa9b5,1)" (( "(") (identifier "pcVar6") (, ",") (pointer_expression "&DAT_000aa9b5" (& "&") (identifier "DAT_000aa9b5")) (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "bVar24 = iVar7 == 0;" (assignment_expression "bVar24 = iVar7 == 0" (identifier "bVar24") (= "=") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0"))) (; ";")) (if_statement "if (!bVar24) {\n      puVar1 = (ushort *)((int)param_3 + 0x12);\n      *puVar1 = *puVar1 | 0x10;\n      bVar24 = *puVar1 == 0;\n    }" (if "if") (parenthesized_expression "(!bVar24)" (( "(") (unary_expression "!bVar24" (! "!") (identifier "bVar24")) () ")")) (compound_statement "{\n      puVar1 = (ushort *)((int)param_3 + 0x12);\n      *puVar1 = *puVar1 | 0x10;\n      bVar24 = *puVar1 == 0;\n    }" ({ "{") (expression_statement "puVar1 = (ushort *)((int)param_3 + 0x12);" (assignment_expression "puVar1 = (ushort *)((int)param_3 + 0x12)" (identifier "puVar1") (= "=") (cast_expression "(ushort *)((int)param_3 + 0x12)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_3 + 0x12)" (( "(") (binary_expression "(int)param_3 + 0x12" (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3")) (+ "+") (number_literal "0x12")) () ")")))) (; ";")) (expression_statement "*puVar1 = *puVar1 | 0x10;" (assignment_expression "*puVar1 = *puVar1 | 0x10" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (binary_expression "*puVar1 | 0x10" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (| "|") (number_literal "0x10"))) (; ";")) (expression_statement "bVar24 = *puVar1 == 0;" (assignment_expression "bVar24 = *puVar1 == 0" (identifier "bVar24") (= "=") (binary_expression "*puVar1 == 0" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (== "==") (number_literal "0"))) (; ";")) (} "}"))) (expression_statement "bVar23 = false;" (assignment_expression "bVar23 = false" (identifier "bVar23") (= "=") (false "false")) (; ";")) (expression_statement "iVar7 = 10;" (assignment_expression "iVar7 = 10" (identifier "iVar7") (= "=") (number_literal "10")) (; ";")) (expression_statement "pbVar18 = *(byte **)(param_1 + 0x10);" (assignment_expression "pbVar18 = *(byte **)(param_1 + 0x10)" (identifier "pbVar18") (= "=") (pointer_expression "*(byte **)(param_1 + 0x10)" (* "*") (cast_expression "(byte **)(param_1 + 0x10)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "pbVar20 = (byte *)"unix-excl";" (assignment_expression "pbVar20 = (byte *)"unix-excl"" (identifier "pbVar20") (= "=") (cast_expression "(byte *)"unix-excl"" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (string_literal ""unix-excl"" (" """) (string_content "unix-excl") (" """)))) (; ";")) (do_statement "do {\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      bVar23 = *pbVar18 < *pbVar20;\n      bVar24 = *pbVar18 == *pbVar20;\n      pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1;\n      pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1;\n    } while (bVar24);" (do "do") (compound_statement "{\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      bVar23 = *pbVar18 < *pbVar20;\n      bVar24 = *pbVar18 == *pbVar20;\n      pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1;\n      pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1;\n    }" ({ "{") (if_statement "if (iVar7 == 0) break;" (if "if") (parenthesized_expression "(iVar7 == 0)" (( "(") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + -1" (identifier "iVar7") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar23 = *pbVar18 < *pbVar20;" (assignment_expression "bVar23 = *pbVar18 < *pbVar20" (identifier "bVar23") (= "=") (binary_expression "*pbVar18 < *pbVar20" (pointer_expression "*pbVar18" (* "*") (identifier "pbVar18")) (< "<") (pointer_expression "*pbVar20" (* "*") (identifier "pbVar20")))) (; ";")) (expression_statement "bVar24 = *pbVar18 == *pbVar20;" (assignment_expression "bVar24 = *pbVar18 == *pbVar20" (identifier "bVar24") (= "=") (binary_expression "*pbVar18 == *pbVar20" (pointer_expression "*pbVar18" (* "*") (identifier "pbVar18")) (== "==") (pointer_expression "*pbVar20" (* "*") (identifier "pbVar20")))) (; ";")) (expression_statement "pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1;" (assignment_expression "pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1" (identifier "pbVar18") (= "=") (binary_expression "pbVar18 + (uint)bVar25 * -2 + 1" (binary_expression "pbVar18 + (uint)bVar25 * -2" (identifier "pbVar18") (+ "+") (binary_expression "(uint)bVar25 * -2" (cast_expression "(uint)bVar25" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar25")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1;" (assignment_expression "pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1" (identifier "pbVar20") (= "=") (binary_expression "pbVar20 + (uint)bVar25 * -2 + 1" (binary_expression "pbVar20 + (uint)bVar25 * -2" (identifier "pbVar20") (+ "+") (binary_expression "(uint)bVar25 * -2" (cast_expression "(uint)bVar25" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar25")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar24)" (( "(") (identifier "bVar24") () ")")) (; ";")) (if_statement "if ((!bVar23 && !bVar24) == bVar23) {\n      *(ushort *)((int)param_3 + 0x12) = *(ushort *)((int)param_3 + 0x12) | 1;\n    }" (if "if") (parenthesized_expression "((!bVar23 && !bVar24) == bVar23)" (( "(") (binary_expression "(!bVar23 && !bVar24) == bVar23" (parenthesized_expression "(!bVar23 && !bVar24)" (( "(") (binary_expression "!bVar23 && !bVar24" (unary_expression "!bVar23" (! "!") (identifier "bVar23")) (&& "&&") (unary_expression "!bVar24" (! "!") (identifier "bVar24"))) () ")")) (== "==") (identifier "bVar23")) () ")")) (compound_statement "{\n      *(ushort *)((int)param_3 + 0x12) = *(ushort *)((int)param_3 + 0x12) | 1;\n    }" ({ "{") (expression_statement "*(ushort *)((int)param_3 + 0x12) = *(ushort *)((int)param_3 + 0x12) | 1;" (assignment_expression "*(ushort *)((int)param_3 + 0x12) = *(ushort *)((int)param_3 + 0x12) | 1" (pointer_expression "*(ushort *)((int)param_3 + 0x12)" (* "*") (cast_expression "(ushort *)((int)param_3 + 0x12)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_3 + 0x12)" (( "(") (binary_expression "(int)param_3 + 0x12" (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3")) (+ "+") (number_literal "0x12")) () ")")))) (= "=") (binary_expression "*(ushort *)((int)param_3 + 0x12) | 1" (pointer_expression "*(ushort *)((int)param_3 + 0x12)" (* "*") (cast_expression "(ushort *)((int)param_3 + 0x12)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_3 + 0x12)" (( "(") (binary_expression "(int)param_3 + 0x12" (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3")) (+ "+") (number_literal "0x12")) () ")")))) (| "|") (number_literal "1"))) (; ";")) (} "}"))) (if_statement "if ((uVar4 & 0x80) == 0) {\n      puVar8 = (undefined *)(*(code *)**(undefined4 **)(param_1 + 0x14))(param_2,param_3);\n      puVar17 = &DAT_000dd9e0;\n      if (puVar8 == &DAT_000dd9e0) {\n        sqlite3_mutex_enter(DAT_000df7a8);\n        iVar7 = (*(code *)PTR_FUN_000df480)(param_3[3],&local_484);\n        piVar13 = DAT_000df7a4;\n        if (iVar7 == 0) {\n          for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }\n          piVar13 = (int *)sqlite3_malloc64(0x34,0);\n          if (piVar13 != (int *)0x0) {\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }\n          iVar7 = 7;\n        }\n        else {\n          piVar13 = __errno_location();\n          iVar7 = 10;\n          param_3[5] = *piVar13;\n        }\nLAB_0005efaf:\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        sqlite3_mutex_leave(DAT_000df7a8);\n        param_3[5] = 0;\n        goto LAB_0005ee17;\n      }\n      if (puVar8 != &DAT_000dd920) goto LAB_0005e8e8;\n      sVar10 = strlen(param_2);\n      iVar7 = sVar10 + 6;\n      iVar11 = sqlite3_malloc64(iVar7,iVar7 >> 0x1f);\n      if (iVar11 == 0) {\n        param_3[6] = 0;\n        param_3[5] = 0;\n        iVar7 = 7;\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        goto LAB_0005ee17;\n      }\n      sqlite3_snprintf(iVar7,iVar11,"%s.lock",param_2);\n      param_3[5] = 0;\n      param_3[6] = iVar11;\n    }\n    else {\n      puVar8 = &DAT_000dd980;\nLAB_0005e8e8:\n      param_3[5] = 0;\n    }" (if "if") (parenthesized_expression "((uVar4 & 0x80) == 0)" (( "(") (binary_expression "(uVar4 & 0x80) == 0" (parenthesized_expression "(uVar4 & 0x80)" (( "(") (binary_expression "uVar4 & 0x80" (identifier "uVar4") (& "&") (number_literal "0x80")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      puVar8 = (undefined *)(*(code *)**(undefined4 **)(param_1 + 0x14))(param_2,param_3);\n      puVar17 = &DAT_000dd9e0;\n      if (puVar8 == &DAT_000dd9e0) {\n        sqlite3_mutex_enter(DAT_000df7a8);\n        iVar7 = (*(code *)PTR_FUN_000df480)(param_3[3],&local_484);\n        piVar13 = DAT_000df7a4;\n        if (iVar7 == 0) {\n          for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }\n          piVar13 = (int *)sqlite3_malloc64(0x34,0);\n          if (piVar13 != (int *)0x0) {\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }\n          iVar7 = 7;\n        }\n        else {\n          piVar13 = __errno_location();\n          iVar7 = 10;\n          param_3[5] = *piVar13;\n        }\nLAB_0005efaf:\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        sqlite3_mutex_leave(DAT_000df7a8);\n        param_3[5] = 0;\n        goto LAB_0005ee17;\n      }\n      if (puVar8 != &DAT_000dd920) goto LAB_0005e8e8;\n      sVar10 = strlen(param_2);\n      iVar7 = sVar10 + 6;\n      iVar11 = sqlite3_malloc64(iVar7,iVar7 >> 0x1f);\n      if (iVar11 == 0) {\n        param_3[6] = 0;\n        param_3[5] = 0;\n        iVar7 = 7;\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        goto LAB_0005ee17;\n      }\n      sqlite3_snprintf(iVar7,iVar11,"%s.lock",param_2);\n      param_3[5] = 0;\n      param_3[6] = iVar11;\n    }" ({ "{") (expression_statement "puVar8 = (undefined *)(*(code *)**(undefined4 **)(param_1 + 0x14))(param_2,param_3);" (assignment_expression "puVar8 = (undefined *)(*(code *)**(undefined4 **)(param_1 + 0x14))(param_2,param_3)" (identifier "puVar8") (= "=") (cast_expression "(undefined *)(*(code *)**(undefined4 **)(param_1 + 0x14))(param_2,param_3)" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)**(undefined4 **)(param_1 + 0x14))(param_2,param_3)" (parenthesized_expression "(*(code *)**(undefined4 **)(param_1 + 0x14))" (( "(") (pointer_expression "*(code *)**(undefined4 **)(param_1 + 0x14)" (* "*") (cast_expression "(code *)**(undefined4 **)(param_1 + 0x14)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "**(undefined4 **)(param_1 + 0x14)" (* "*") (pointer_expression "*(undefined4 **)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))))) () ")")) (argument_list "(param_2,param_3)" (( "(") (identifier "param_2") (, ",") (identifier "param_3") () ")"))))) (; ";")) (expression_statement "puVar17 = &DAT_000dd9e0;" (assignment_expression "puVar17 = &DAT_000dd9e0" (identifier "puVar17") (= "=") (pointer_expression "&DAT_000dd9e0" (& "&") (identifier "DAT_000dd9e0"))) (; ";")) (if_statement "if (puVar8 == &DAT_000dd9e0) {\n        sqlite3_mutex_enter(DAT_000df7a8);\n        iVar7 = (*(code *)PTR_FUN_000df480)(param_3[3],&local_484);\n        piVar13 = DAT_000df7a4;\n        if (iVar7 == 0) {\n          for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }\n          piVar13 = (int *)sqlite3_malloc64(0x34,0);\n          if (piVar13 != (int *)0x0) {\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }\n          iVar7 = 7;\n        }\n        else {\n          piVar13 = __errno_location();\n          iVar7 = 10;\n          param_3[5] = *piVar13;\n        }\nLAB_0005efaf:\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        sqlite3_mutex_leave(DAT_000df7a8);\n        param_3[5] = 0;\n        goto LAB_0005ee17;\n      }" (if "if") (parenthesized_expression "(puVar8 == &DAT_000dd9e0)" (( "(") (binary_expression "puVar8 == &DAT_000dd9e0" (identifier "puVar8") (== "==") (pointer_expression "&DAT_000dd9e0" (& "&") (identifier "DAT_000dd9e0"))) () ")")) (compound_statement "{\n        sqlite3_mutex_enter(DAT_000df7a8);\n        iVar7 = (*(code *)PTR_FUN_000df480)(param_3[3],&local_484);\n        piVar13 = DAT_000df7a4;\n        if (iVar7 == 0) {\n          for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }\n          piVar13 = (int *)sqlite3_malloc64(0x34,0);\n          if (piVar13 != (int *)0x0) {\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }\n          iVar7 = 7;\n        }\n        else {\n          piVar13 = __errno_location();\n          iVar7 = 10;\n          param_3[5] = *piVar13;\n        }\nLAB_0005efaf:\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        sqlite3_mutex_leave(DAT_000df7a8);\n        param_3[5] = 0;\n        goto LAB_0005ee17;\n      }" ({ "{") (expression_statement "sqlite3_mutex_enter(DAT_000df7a8);" (call_expression "sqlite3_mutex_enter(DAT_000df7a8)" (identifier "sqlite3_mutex_enter") (argument_list "(DAT_000df7a8)" (( "(") (identifier "DAT_000df7a8") () ")"))) (; ";")) (expression_statement "iVar7 = (*(code *)PTR_FUN_000df480)(param_3[3],&local_484);" (assignment_expression "iVar7 = (*(code *)PTR_FUN_000df480)(param_3[3],&local_484)" (identifier "iVar7") (= "=") (call_expression "(*(code *)PTR_FUN_000df480)(param_3[3],&local_484)" (parenthesized_expression "(*(code *)PTR_FUN_000df480)" (( "(") (pointer_expression "*(code *)PTR_FUN_000df480" (* "*") (cast_expression "(code *)PTR_FUN_000df480" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_000df480"))) () ")")) (argument_list "(param_3[3],&local_484)" (( "(") (subscript_expression "param_3[3]" (identifier "param_3") ([ "[") (number_literal "3") (] "]")) (, ",") (pointer_expression "&local_484" (& "&") (identifier "local_484")) () ")")))) (; ";")) (expression_statement "piVar13 = DAT_000df7a4;" (assignment_expression "piVar13 = DAT_000df7a4" (identifier "piVar13") (= "=") (identifier "DAT_000df7a4")) (; ";")) (if_statement "if (iVar7 == 0) {\n          for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }\n          piVar13 = (int *)sqlite3_malloc64(0x34,0);\n          if (piVar13 != (int *)0x0) {\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }\n          iVar7 = 7;\n        }\n        else {\n          piVar13 = __errno_location();\n          iVar7 = 10;\n          param_3[5] = *piVar13;\n        }" (if "if") (parenthesized_expression "(iVar7 == 0)" (( "(") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }\n          piVar13 = (int *)sqlite3_malloc64(0x34,0);\n          if (piVar13 != (int *)0x0) {\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }\n          iVar7 = 7;\n        }" ({ "{") (for_statement "for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }" (for "for") (( "(") (; ";") (binary_expression "piVar13 != (int *)0x0" (identifier "piVar13") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";") (assignment_expression "piVar13 = (int *)piVar13[0xb]" (identifier "piVar13") (= "=") (cast_expression "(int *)piVar13[0xb]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar13[0xb]" (identifier "piVar13") ([ "[") (number_literal "0xb") (] "]")))) () ")") (compound_statement "{\n            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }\n          }" ({ "{") (if_statement "if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }" (if "if") (parenthesized_expression "(((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3]))))" (( "(") (binary_expression "((local_484 == *piVar13) && (local_480 == piVar13[1])) &&\n               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))" (parenthesized_expression "((local_484 == *piVar13) && (local_480 == piVar13[1]))" (( "(") (binary_expression "(local_484 == *piVar13) && (local_480 == piVar13[1])" (parenthesized_expression "(local_484 == *piVar13)" (( "(") (binary_expression "local_484 == *piVar13" (identifier "local_484") (== "==") (pointer_expression "*piVar13" (* "*") (identifier "piVar13"))) () ")")) (&& "&&") (parenthesized_expression "(local_480 == piVar13[1])" (( "(") (binary_expression "local_480 == piVar13[1]" (identifier "local_480") (== "==") (subscript_expression "piVar13[1]" (identifier "piVar13") ([ "[") (number_literal "1") (] "]"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "((local_42c == piVar13[2] && (local_428 == piVar13[3])))" (( "(") (parenthesized_expression "(local_42c == piVar13[2] && (local_428 == piVar13[3]))" (( "(") (binary_expression "local_42c == piVar13[2] && (local_428 == piVar13[3])" (binary_expression "local_42c == piVar13[2]" (identifier "local_42c") (== "==") (subscript_expression "piVar13[2]" (identifier "piVar13") ([ "[") (number_literal "2") (] "]"))) (&& "&&") (parenthesized_expression "(local_428 == piVar13[3])" (( "(") (binary_expression "local_428 == piVar13[3]" (identifier "local_428") (== "==") (subscript_expression "piVar13[3]" (identifier "piVar13") ([ "[") (number_literal "3") (] "]"))) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n              piVar13[9] = piVar13[9] + 1;\n              piVar9 = DAT_000df7a4;\n              goto LAB_0005ed6d;\n            }" ({ "{") (expression_statement "piVar13[9] = piVar13[9] + 1;" (assignment_expression "piVar13[9] = piVar13[9] + 1" (subscript_expression "piVar13[9]" (identifier "piVar13") ([ "[") (number_literal "9") (] "]")) (= "=") (binary_expression "piVar13[9] + 1" (subscript_expression "piVar13[9]" (identifier "piVar13") ([ "[") (number_literal "9") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar9 = DAT_000df7a4;" (assignment_expression "piVar9 = DAT_000df7a4" (identifier "piVar9") (= "=") (identifier "DAT_000df7a4")) (; ";")) (goto_statement "goto LAB_0005ed6d;" (goto "goto") (statement_identifier "LAB_0005ed6d") (; ";")) (} "}"))) (} "}"))) (expression_statement "piVar13 = (int *)sqlite3_malloc64(0x34,0);" (assignment_expression "piVar13 = (int *)sqlite3_malloc64(0x34,0)" (identifier "piVar13") (= "=") (cast_expression "(int *)sqlite3_malloc64(0x34,0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "sqlite3_malloc64(0x34,0)" (identifier "sqlite3_malloc64") (argument_list "(0x34,0)" (( "(") (number_literal "0x34") (, ",") (number_literal "0") () ")"))))) (; ";")) (if_statement "if (piVar13 != (int *)0x0) {\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }" (if "if") (parenthesized_expression "(piVar13 != (int *)0x0)" (( "(") (binary_expression "piVar13 != (int *)0x0" (identifier "piVar13") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n            piVar13[4] = 0;\n            piVar13[0xc] = 0;\n            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);\n            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }\n            *piVar13 = local_484;\n            piVar13[1] = local_480;\n            bVar24 = DAT_000de364 != '\0';\n            piVar13[2] = local_42c;\n            piVar13[3] = local_428;\n            if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }\n            piVar13[9] = 1;\n            piVar13[0xc] = 0;\n            piVar13[0xb] = (int)DAT_000df7a4;\n            piVar9 = piVar13;\n            if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }\nLAB_0005ed6d:\n            DAT_000df7a4 = piVar9;\n            param_3[2] = piVar13;\n            puVar8 = puVar17;\n            sqlite3_mutex_leave(DAT_000df7a8);\n            param_3[5] = 0;\n            goto LAB_0005e8ef;\n          }" ({ "{") (expression_statement "piVar13[4] = 0;" (assignment_expression "piVar13[4] = 0" (subscript_expression "piVar13[4]" (identifier "piVar13") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar13[0xc] = 0;" (assignment_expression "piVar13[0xc] = 0" (subscript_expression "piVar13[0xc]" (identifier "piVar13") ([ "[") (number_literal "0xc") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);" (assignment_expression "puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc)" (identifier "puVar21") (= "=") (cast_expression "(undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((uint)(piVar13 + 5) & 0xfffffffc)" (( "(") (binary_expression "(uint)(piVar13 + 5) & 0xfffffffc" (call_expression "(uint)(piVar13 + 5)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(piVar13 + 5)" (( "(") (binary_expression "piVar13 + 5" (identifier "piVar13") (+ "+") (number_literal "5")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")")))) (; ";")) (for_statement "for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2; uVar4 != 0; uVar4 = uVar4 - 1) {\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }" (for "for") (( "(") (assignment_expression "uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2" (identifier "uVar4") (= "=") (binary_expression "(uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>\n                         2" (call_expression "(uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc)))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc)))" (( "(") (binary_expression "(int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))" (cast_expression "(int)piVar13" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar13")) (+ "+") (parenthesized_expression "(0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))" (( "(") (binary_expression "0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc)" (number_literal "0x34") (- "-") (cast_expression "(int)((uint)(piVar13 + 5) & 0xfffffffc)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((uint)(piVar13 + 5) & 0xfffffffc)" (( "(") (binary_expression "(uint)(piVar13 + 5) & 0xfffffffc" (call_expression "(uint)(piVar13 + 5)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(piVar13 + 5)" (( "(") (binary_expression "piVar13 + 5" (identifier "piVar13") (+ "+") (number_literal "5")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")")))) () ")"))) () ")"))) (>> ">>") (number_literal "2"))) (; ";") (binary_expression "uVar4 != 0" (identifier "uVar4") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "uVar4 = uVar4 - 1" (identifier "uVar4") (= "=") (binary_expression "uVar4 - 1" (identifier "uVar4") (- "-") (number_literal "1"))) () ")") (compound_statement "{\n              *puVar21 = 0;\n              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;\n            }" ({ "{") (expression_statement "*puVar21 = 0;" (assignment_expression "*puVar21 = 0" (pointer_expression "*puVar21" (* "*") (identifier "puVar21")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar21 = puVar21 + (uint)bVar25 * -2 + 1;" (assignment_expression "puVar21 = puVar21 + (uint)bVar25 * -2 + 1" (identifier "puVar21") (= "=") (binary_expression "puVar21 + (uint)bVar25 * -2 + 1" (binary_expression "puVar21 + (uint)bVar25 * -2" (identifier "puVar21") (+ "+") (binary_expression "(uint)bVar25 * -2" (cast_expression "(uint)bVar25" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar25")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "*piVar13 = local_484;" (assignment_expression "*piVar13 = local_484" (pointer_expression "*piVar13" (* "*") (identifier "piVar13")) (= "=") (identifier "local_484")) (; ";")) (expression_statement "piVar13[1] = local_480;" (assignment_expression "piVar13[1] = local_480" (subscript_expression "piVar13[1]" (identifier "piVar13") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "local_480")) (; ";")) (expression_statement "bVar24 = DAT_000de364 != '\0';" (assignment_expression "bVar24 = DAT_000de364 != '\0'" (identifier "bVar24") (= "=") (binary_expression "DAT_000de364 != '\0'" (identifier "DAT_000de364") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")))) (; ";")) (expression_statement "piVar13[2] = local_42c;" (assignment_expression "piVar13[2] = local_42c" (subscript_expression "piVar13[2]" (identifier "piVar13") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "local_42c")) (; ";")) (expression_statement "piVar13[3] = local_428;" (assignment_expression "piVar13[3] = local_428" (subscript_expression "piVar13[3]" (identifier "piVar13") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "local_428")) (; ";")) (if_statement "if (bVar24) {\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }" (if "if") (parenthesized_expression "(bVar24)" (( "(") (identifier "bVar24") () ")")) (compound_statement "{\n              iVar7 = sqlite3_mutex_alloc(0);\n              piVar13[4] = iVar7;\n              if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }\n            }" ({ "{") (expression_statement "iVar7 = sqlite3_mutex_alloc(0);" (assignment_expression "iVar7 = sqlite3_mutex_alloc(0)" (identifier "iVar7") (= "=") (call_expression "sqlite3_mutex_alloc(0)" (identifier "sqlite3_mutex_alloc") (argument_list "(0)" (( "(") (number_literal "0") () ")")))) (; ";")) (expression_statement "piVar13[4] = iVar7;" (assignment_expression "piVar13[4] = iVar7" (subscript_expression "piVar13[4]" (identifier "piVar13") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "iVar7")) (; ";")) (if_statement "if (iVar7 == 0) {\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }" (if "if") (parenthesized_expression "(iVar7 == 0)" (( "(") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                iVar7 = 7;\n                sqlite3_free(piVar13);\n                goto LAB_0005efaf;\n              }" ({ "{") (expression_statement "iVar7 = 7;" (assignment_expression "iVar7 = 7" (identifier "iVar7") (= "=") (number_literal "7")) (; ";")) (expression_statement "sqlite3_free(piVar13);" (call_expression "sqlite3_free(piVar13)" (identifier "sqlite3_free") (argument_list "(piVar13)" (( "(") (identifier "piVar13") () ")"))) (; ";")) (goto_statement "goto LAB_0005efaf;" (goto "goto") (statement_identifier "LAB_0005efaf") (; ";")) (} "}"))) (} "}"))) (expression_statement "piVar13[9] = 1;" (assignment_expression "piVar13[9] = 1" (subscript_expression "piVar13[9]" (identifier "piVar13") ([ "[") (number_literal "9") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "piVar13[0xc] = 0;" (assignment_expression "piVar13[0xc] = 0" (subscript_expression "piVar13[0xc]" (identifier "piVar13") ([ "[") (number_literal "0xc") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar13[0xb] = (int)DAT_000df7a4;" (assignment_expression "piVar13[0xb] = (int)DAT_000df7a4" (subscript_expression "piVar13[0xb]" (identifier "piVar13") ([ "[") (number_literal "0xb") (] "]")) (= "=") (cast_expression "(int)DAT_000df7a4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "DAT_000df7a4"))) (; ";")) (expression_statement "piVar9 = piVar13;" (assignment_expression "piVar9 = piVar13" (identifier "piVar9") (= "=") (identifier "piVar13")) (; ";")) (if_statement "if (DAT_000df7a4 != (int *)0x0) {\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }" (if "if") (parenthesized_expression "(DAT_000df7a4 != (int *)0x0)" (( "(") (binary_expression "DAT_000df7a4 != (int *)0x0" (identifier "DAT_000df7a4") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n              DAT_000df7a4[0xc] = (int)piVar13;\n            }" ({ "{") (expression_statement "DAT_000df7a4[0xc] = (int)piVar13;" (assignment_expression "DAT_000df7a4[0xc] = (int)piVar13" (subscript_expression "DAT_000df7a4[0xc]" (identifier "DAT_000df7a4") ([ "[") (number_literal "0xc") (] "]")) (= "=") (cast_expression "(int)piVar13" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar13"))) (; ";")) (} "}"))) (labeled_statement "LAB_0005ed6d:\n            DAT_000df7a4 = piVar9;" (statement_identifier "LAB_0005ed6d") (: ":") (expression_statement "DAT_000df7a4 = piVar9;" (assignment_expression "DAT_000df7a4 = piVar9" (identifier "DAT_000df7a4") (= "=") (identifier "piVar9")) (; ";"))) (expression_statement "param_3[2] = piVar13;" (assignment_expression "param_3[2] = piVar13" (subscript_expression "param_3[2]" (identifier "param_3") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "piVar13")) (; ";")) (expression_statement "puVar8 = puVar17;" (assignment_expression "puVar8 = puVar17" (identifier "puVar8") (= "=") (identifier "puVar17")) (; ";")) (expression_statement "sqlite3_mutex_leave(DAT_000df7a8);" (call_expression "sqlite3_mutex_leave(DAT_000df7a8)" (identifier "sqlite3_mutex_leave") (argument_list "(DAT_000df7a8)" (( "(") (identifier "DAT_000df7a8") () ")"))) (; ";")) (expression_statement "param_3[5] = 0;" (assignment_expression "param_3[5] = 0" (subscript_expression "param_3[5]" (identifier "param_3") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_0005e8ef;" (goto "goto") (statement_identifier "LAB_0005e8ef") (; ";")) (} "}"))) (expression_statement "iVar7 = 7;" (assignment_expression "iVar7 = 7" (identifier "iVar7") (= "=") (number_literal "7")) (; ";")) (} "}")) (else_clause "else {\n          piVar13 = __errno_location();\n          iVar7 = 10;\n          param_3[5] = *piVar13;\n        }" (else "else") (compound_statement "{\n          piVar13 = __errno_location();\n          iVar7 = 10;\n          param_3[5] = *piVar13;\n        }" ({ "{") (expression_statement "piVar13 = __errno_location();" (assignment_expression "piVar13 = __errno_location()" (identifier "piVar13") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar7 = 10;" (assignment_expression "iVar7 = 10" (identifier "iVar7") (= "=") (number_literal "10")) (; ";")) (expression_statement "param_3[5] = *piVar13;" (assignment_expression "param_3[5] = *piVar13" (subscript_expression "param_3[5]" (identifier "param_3") ([ "[") (number_literal "5") (] "]")) (= "=") (pointer_expression "*piVar13" (* "*") (identifier "piVar13"))) (; ";")) (} "}")))) (labeled_statement "LAB_0005efaf:\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);" (statement_identifier "LAB_0005efaf") (: ":") (expression_statement "iVar26 = (*(code *)PTR_close_000df450)(iVar26);" (assignment_expression "iVar26 = (*(code *)PTR_close_000df450)(iVar26)" (identifier "iVar26") (= "=") (call_expression "(*(code *)PTR_close_000df450)(iVar26)" (parenthesized_expression "(*(code *)PTR_close_000df450)" (( "(") (pointer_expression "*(code *)PTR_close_000df450" (* "*") (cast_expression "(code *)PTR_close_000df450" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_close_000df450"))) () ")")) (argument_list "(iVar26)" (( "(") (identifier "iVar26") () ")")))) (; ";"))) (if_statement "if (iVar26 != 0) {\n          FUN_0003aea0();\n        }" (if "if") (parenthesized_expression "(iVar26 != 0)" (( "(") (binary_expression "iVar26 != 0" (identifier "iVar26") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          FUN_0003aea0();\n        }" ({ "{") (expression_statement "FUN_0003aea0();" (call_expression "FUN_0003aea0()" (identifier "FUN_0003aea0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "sqlite3_mutex_leave(DAT_000df7a8);" (call_expression "sqlite3_mutex_leave(DAT_000df7a8)" (identifier "sqlite3_mutex_leave") (argument_list "(DAT_000df7a8)" (( "(") (identifier "DAT_000df7a8") () ")"))) (; ";")) (expression_statement "param_3[5] = 0;" (assignment_expression "param_3[5] = 0" (subscript_expression "param_3[5]" (identifier "param_3") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_0005ee17;" (goto "goto") (statement_identifier "LAB_0005ee17") (; ";")) (} "}"))) (if_statement "if (puVar8 != &DAT_000dd920) goto LAB_0005e8e8;" (if "if") (parenthesized_expression "(puVar8 != &DAT_000dd920)" (( "(") (binary_expression "puVar8 != &DAT_000dd920" (identifier "puVar8") (!= "!=") (pointer_expression "&DAT_000dd920" (& "&") (identifier "DAT_000dd920"))) () ")")) (goto_statement "goto LAB_0005e8e8;" (goto "goto") (statement_identifier "LAB_0005e8e8") (; ";"))) (expression_statement "sVar10 = strlen(param_2);" (assignment_expression "sVar10 = strlen(param_2)" (identifier "sVar10") (= "=") (call_expression "strlen(param_2)" (identifier "strlen") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "iVar7 = sVar10 + 6;" (assignment_expression "iVar7 = sVar10 + 6" (identifier "iVar7") (= "=") (binary_expression "sVar10 + 6" (identifier "sVar10") (+ "+") (number_literal "6"))) (; ";")) (expression_statement "iVar11 = sqlite3_malloc64(iVar7,iVar7 >> 0x1f);" (assignment_expression "iVar11 = sqlite3_malloc64(iVar7,iVar7 >> 0x1f)" (identifier "iVar11") (= "=") (call_expression "sqlite3_malloc64(iVar7,iVar7 >> 0x1f)" (identifier "sqlite3_malloc64") (argument_list "(iVar7,iVar7 >> 0x1f)" (( "(") (identifier "iVar7") (, ",") (binary_expression "iVar7 >> 0x1f" (identifier "iVar7") (>> ">>") (number_literal "0x1f")) () ")")))) (; ";")) (if_statement "if (iVar11 == 0) {\n        param_3[6] = 0;\n        param_3[5] = 0;\n        iVar7 = 7;\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        goto LAB_0005ee17;\n      }" (if "if") (parenthesized_expression "(iVar11 == 0)" (( "(") (binary_expression "iVar11 == 0" (identifier "iVar11") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        param_3[6] = 0;\n        param_3[5] = 0;\n        iVar7 = 7;\n        iVar26 = (*(code *)PTR_close_000df450)(iVar26);\n        if (iVar26 != 0) {\n          FUN_0003aea0();\n        }\n        goto LAB_0005ee17;\n      }" ({ "{") (expression_statement "param_3[6] = 0;" (assignment_expression "param_3[6] = 0" (subscript_expression "param_3[6]" (identifier "param_3") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_3[5] = 0;" (assignment_expression "param_3[5] = 0" (subscript_expression "param_3[5]" (identifier "param_3") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar7 = 7;" (assignment_expression "iVar7 = 7" (identifier "iVar7") (= "=") (number_literal "7")) (; ";")) (expression_statement "iVar26 = (*(code *)PTR_close_000df450)(iVar26);" (assignment_expression "iVar26 = (*(code *)PTR_close_000df450)(iVar26)" (identifier "iVar26") (= "=") (call_expression "(*(code *)PTR_close_000df450)(iVar26)" (parenthesized_expression "(*(code *)PTR_close_000df450)" (( "(") (pointer_expression "*(code *)PTR_close_000df450" (* "*") (cast_expression "(code *)PTR_close_000df450" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_close_000df450"))) () ")")) (argument_list "(iVar26)" (( "(") (identifier "iVar26") () ")")))) (; ";")) (if_statement "if (iVar26 != 0) {\n          FUN_0003aea0();\n        }" (if "if") (parenthesized_expression "(iVar26 != 0)" (( "(") (binary_expression "iVar26 != 0" (identifier "iVar26") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          FUN_0003aea0();\n        }" ({ "{") (expression_statement "FUN_0003aea0();" (call_expression "FUN_0003aea0()" (identifier "FUN_0003aea0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (goto_statement "goto LAB_0005ee17;" (goto "goto") (statement_identifier "LAB_0005ee17") (; ";")) (} "}"))) (expression_statement "sqlite3_snprintf(iVar7,iVar11,"%s.lock",param_2);" (call_expression "sqlite3_snprintf(iVar7,iVar11,"%s.lock",param_2)" (identifier "sqlite3_snprintf") (argument_list "(iVar7,iVar11,"%s.lock",param_2)" (( "(") (identifier "iVar7") (, ",") (identifier "iVar11") (, ",") (string_literal ""%s.lock"" (" """) (string_content "%s.lock") (" """)) (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "param_3[5] = 0;" (assignment_expression "param_3[5] = 0" (subscript_expression "param_3[5]" (identifier "param_3") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_3[6] = iVar11;" (assignment_expression "param_3[6] = iVar11" (subscript_expression "param_3[6]" (identifier "param_3") ([ "[") (number_literal "6") (] "]")) (= "=") (identifier "iVar11")) (; ";")) (} "}")) (else_clause "else {\n      puVar8 = &DAT_000dd980;\nLAB_0005e8e8:\n      param_3[5] = 0;\n    }" (else "else") (compound_statement "{\n      puVar8 = &DAT_000dd980;\nLAB_0005e8e8:\n      param_3[5] = 0;\n    }" ({ "{") (expression_statement "puVar8 = &DAT_000dd980;" (assignment_expression "puVar8 = &DAT_000dd980" (identifier "puVar8") (= "=") (pointer_expression "&DAT_000dd980" (& "&") (identifier "DAT_000dd980"))) (; ";")) (labeled_statement "LAB_0005e8e8:\n      param_3[5] = 0;" (statement_identifier "LAB_0005e8e8") (: ":") (expression_statement "param_3[5] = 0;" (assignment_expression "param_3[5] = 0" (subscript_expression "param_3[5]" (identifier "param_3") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";"))) (} "}")))) (labeled_statement "LAB_0005e8ef:\n    *param_3 = puVar8;" (statement_identifier "LAB_0005e8ef") (: ":") (expression_statement "*param_3 = puVar8;" (assignment_expression "*param_3 = puVar8" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "puVar8")) (; ";"))) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_0003a610();" (call_expression "FUN_0003a610()" (identifier "FUN_0003a610") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (labeled_statement "LAB_0005e8fb:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar7;\n  }" (statement_identifier "LAB_0005e8fb") (: ":") (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar7;\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    return iVar7;\n  }" ({ "{") (return_statement "return iVar7;" (return "return") (identifier "iVar7") (; ";")) (} "}")))) (expression_statement "FUN_000a9ea0();" (call_expression "FUN_000a9ea0()" (identifier "FUN_000a9ea0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Removing unreachable block (ram,0x0005e857) */

int function_1(type_1 *pVfs,char *var_17,type_2 *var_8,int var_1,int *var_36)

{
  type_3 *puVar1;
  int var_48;
  char var_32;
  type_4 *var_14;
  type_5 *psVar5;
  type_6 var_3;
  type_7 var_5;
  int var_13;
  type_5 *var_15;
  type_6 f;
  size_t var_31;
  type_5 *var_45;
  int var_34;
  char *var_23;
  int *piVar14;
  type_8 *var_43;
  type_6 var_9;
  int lineno;
  int lineno_00;
  type_9 **ppUVar17;
  type_10 *var_39;
  type_6 var_20;
  type_10 *var_40;
  type_11 *var_10;
  type_12 _Var22;
  int var_2;
  bool var_41;
  bool bVar24;
  type_10 bVar25;
  type_6 var_21;
  type_5 *local_4c8;
  char *var_29;
  type_13 local_4ac;
  type_14 var_35;
  type_6 var_37;
  type_15 fileId;
  type_16 sStat;
  char zDb [513];
  char zTmpname [514];
  
  bVar25 = 0;
  var_21 = var_1 & 8;
  var_37 = var_1 & 1;
  var_20 = var_1 & 2;
  bVar24 = false;
  var_48 = *(int *)(var_2 + 0x14);
  var_3 = var_1 & 0xfff00;
  if ((var_1 & 4U) != 0) {
    bVar24 = (var_3 == 0x4000 || var_3 == 0x800) || var_3 == 0x80000;
  }
  var_5 = var_4();
  if (var_5 != var_6) {
    var_6 = var_4();
    var_7(0,(void *)0x0);
  }
  var_8->pMethods = (type_5 *)0x0;
  var_8[0x14].pMethods = (type_5 *)0x0;
  var_10 = (type_11 *)((type_6)(var_8 + 1) & 0xfffffffc);
  for (var_9 = (type_6)((int)var_8 + (0x54 - (int)((type_6)(var_8 + 1) & 0xfffffffc))) >> 2;
      var_9 != 0; var_9 = var_9 - 1) {
    *var_10 = 0;
    var_10 = var_10 + (type_6)bVar25 * -2 + 1;
  }
  if (var_3 == 0x100) {
    var_11(unixBigLock);
    if ((var_12 != (type_4 *)0x0) &&
       (var_13 = (*aSyscall[4].pCurrent)(var_17,&sStat), var_14 = var_12, var_13 == 0)) {
      for (; var_14 != (type_4 *)0x0; var_14 = var_14->pNext) {
        if ((*(type_17 **)((int)&(var_14->fileId).dev + 4) == sStat.st_dev._4_4_
             && (int)(var_14->fileId).dev == (int)sStat.st_dev) &&
           (sStat.st_ino._4_4_ ==
            *(type_18 **)
             ((int)&(var_14->fileId).ino + 4) &&
            (type_18 *)sStat.st_ino ==
            *(type_18 **)&(var_14->fileId).ino)) {
          var_11(var_14->pLockMutex);
          var_15 = (type_5 *)var_14->pUnused;
          if (var_15 == (type_5 *)0x0) goto LAB_0005ea3a;
          if ((type_17 *)(var_1 & 3U) != var_15->xClose) goto LAB_0005ea33;
          ppUVar17 = &var_14->pUnused;
          goto LAB_0005ee53;
        }
      }
    }
    var_16(unixBigLock);
    goto LAB_0005ea54;
  }
  local_4c8 = (type_5 *)&DAT_ffffffff;
  var_29 = var_17;
  if (var_17 == (char *)0x0) {
    var_29 = zTmpname;
    var_13 = var_18(pVfs->mxPathname,var_29);
    if (var_13 != 0) goto LAB_0005e8fb;
  }
  goto LAB_0005e781;
LAB_0005ea3a:
  var_16(var_14->pLockMutex);
  var_16(unixBigLock);
LAB_0005ea54:
  var_15 = (type_5 *)var_19(0xc);
  if (var_15 == (type_5 *)0x0) {
    var_13 = 7;
    goto LAB_0005e8fb;
  }
  local_4c8 = (type_5 *)&DAT_ffffffff;
  goto LAB_0005ee78;
  while ((type_17 *)(var_1 & 3U) != var_15->xClose) {
LAB_0005ea33:
    var_45 = var_15;
    var_15 = (type_5 *)var_45->xRead;
    if (var_15 == (type_5 *)0x0) goto LAB_0005ea3a;
  }
  ppUVar17 = (type_9 **)&var_45->xRead;
LAB_0005ee53:
  *ppUVar17 = (type_9 *)var_15->xRead;
  var_16(var_14->pLockMutex);
  var_16(unixBigLock);
  local_4c8 = (type_5 *)var_15->iVersion;
LAB_0005ee78:
  var_8[7].pMethods = var_15;
  var_29 = var_17;
LAB_0005e781:
  var_9 = var_20;
  if ((var_1 & 4U) != 0) {
    var_9 = var_20 | 0x40;
  }
  if ((var_1 & 0x10U) != 0) {
    var_9 = var_9 | 0x20080;
  }
  if (-1 < (int)local_4c8) goto LAB_0005e7af;
  f = var_9 | 0x28000;
  if ((var_1 & 0x80800U) == 0) {
    if (var_21 == 0) {
      if (((var_1 & 0x40U) != 0) &&
         (var_23 = var_22(var_29,"modeof"), var_23 != (char *)0x0))
      goto LAB_0005eb2c;
LAB_0005ebd9:
      local_4c8 = (type_5 *)var_24(var_29,f,0);
      if ((int)local_4c8 < 0) {
        local_4ac = 0;
        var_35 = 0;
        _Var22 = 0;
        goto LAB_0005ec06;
      }
      goto LAB_0005e7af;
    }
    local_4c8 = (type_5 *)var_24(var_29,f,0x180);
    if (-1 < (int)local_4c8) goto LAB_0005e7af;
    _Var22 = 0;
    local_4ac = 0;
    var_35 = 0x180;
LAB_0005ec06:
    piVar14 = var_25();
    var_13 = *piVar14;
    if ((bVar24) && (var_13 == 0xd)) {
      var_13 = (*aSyscall[2].pCurrent)(var_29,0);
      if (var_13 == 0) {
        var_13 = *piVar14;
        goto LAB_0005ec40;
      }
      var_13 = 0x608;
      var_34 = var_26(0x9ae7);
      var_27(var_34,"open",var_29,0x9ae7);
    }
    else {
LAB_0005ec40:
      if ((var_20 != 0) && (var_13 != 0x15)) {
        var_1 = var_1 & 0xfffffff9U | 1;
        local_4c8 = (type_5 *)
                    var_24(var_29,var_9 & 0xffffffbd | 0x28000,var_35);
        if (-1 < (int)local_4c8) {
          var_37 = 1;
          goto LAB_0005eb78;
        }
      }
      var_13 = var_26(0x9ae7);
      var_13 = var_27(var_13,"open",var_29,0x9ae7);
      if (var_13 == 0) goto LAB_0005e8fb;
    }
LAB_0005ee17:
    var_28(var_8[7].pMethods);
  }
  else {
    if (var_29 == (char *)0x0) {
      var_13 = -1;
    }
    else {
      var_31 = var_30(var_29);
      var_13 = (var_31 & 0x3fffffff) - 1;
    }
    var_32 = var_29[var_13];
    while (var_32 != '-') {
      if ((var_32 == '.') || (var_13 == 0)) goto LAB_0005ebd9;
      var_13 = var_13 + -1;
      var_32 = var_29[var_13];
    }
    var_23 = zDb;
    var_33(var_23,var_29,var_13,0x201);
    zDb[var_13] = '\0';
LAB_0005eb2c:
    var_34 = (*aSyscall[4].pCurrent)(var_23,&sStat);
    var_13 = 0x70a;
    if (var_34 != 0) goto LAB_0005e8fb;
    var_35 = sStat.st_mode & 0x1ff;
    local_4ac = sStat.st_uid;
    local_4c8 = (type_5 *)var_24(var_29,f,var_35);
    _Var22 = sStat.st_gid;
    if ((int)local_4c8 < 0) goto LAB_0005ec06;
LAB_0005eb78:
    if (((var_35 != 0) && ((var_1 & 0x80800U) != 0)) &&
       (var_13 = (*aSyscall[0x15].pCurrent)(), var_13 == 0)) {
      (*aSyscall[0x14].pCurrent)(local_4c8,local_4ac,_Var22);
    }
LAB_0005e7af:
    if (var_36 != (int *)0x0) {
      *var_36 = var_1;
    }
    var_15 = var_8[7].pMethods;
    if (var_15 != (type_5 *)0x0) {
      var_15->iVersion = (int)local_4c8;
      var_15->xClose = (type_17 *)(var_1 & 3);
    }
    if (var_21 != 0) {
      (*aSyscall[0x10].pCurrent)(var_29);
      var_21 = 0x20;
    }
    var_15 = sqlite3Config.szMmap._4_4_;
    var_20 = var_21 | 2;
    if (var_37 == 0) {
      var_20 = var_21;
    }
    var_9 = var_20 | 0x80;
    if (var_3 == 0x100) {
      var_9 = var_20;
    }
    var_21 = var_9 | 8;
    if (!bVar24) {
      var_21 = var_9;
    }
    if ((var_1 & 0x40U) == 0) {
      *(short *)((int)&var_8[4].pMethods + 2) = (short)var_21;
      var_8[3].pMethods = local_4c8;
      var_8[8].pMethods = (type_5 *)var_17;
      var_8[1].pMethods = (type_5 *)pVfs;
      var_45 = (type_5 *)sqlite3Config.szMmap;
      var_8[0x11].pMethods = var_15;
      var_8[0x10].pMethods = var_45;
      var_23 = (char *)0x0;
    }
    else {
      var_21 = var_21 | 0x40;
      var_8[3].pMethods = local_4c8;
      var_8[8].pMethods = (type_5 *)var_17;
      *(short *)((int)&var_8[4].pMethods + 2) = (short)var_21;
      var_8[1].pMethods = (type_5 *)pVfs;
      var_45 = (type_5 *)sqlite3Config.szMmap;
      var_8[0x11].pMethods = var_15;
      var_8[0x10].pMethods = var_45;
      var_23 = var_17;
    }
    var_13 = var_38(var_23,"psow",1);
    bVar24 = var_13 == 0;
    if (!bVar24) {
      puVar1 = (type_3 *)((int)&var_8[4].pMethods + 2);
      *puVar1 = *puVar1 | 0x10;
      bVar24 = *puVar1 == 0;
    }
    var_41 = false;
    var_13 = 10;
    var_39 = (type_10 *)pVfs->zName;
    var_40 = (type_10 *)"unix-excl";
    do {
      if (var_13 == 0) break;
      var_13 = var_13 + -1;
      var_41 = *var_39 < *var_40;
      bVar24 = *var_39 == *var_40;
      var_39 = var_39 + (type_6)bVar25 * -2 + 1;
      var_40 = var_40 + (type_6)bVar25 * -2 + 1;
    } while (bVar24);
    if ((!var_41 && !bVar24) == var_41) {
      puVar1 = (type_3 *)((int)&var_8[4].pMethods + 2);
      *puVar1 = *puVar1 | 1;
    }
    if ((var_21 & 0x80) == 0) {
                    /* WARNING: Load size is inaccurate */
      var_15 = (type_5 *)(**pVfs->pAppData)(var_17,var_8);
      var_45 = &posixIoMethods;
      if (var_15 == &posixIoMethods) {
        var_11(unixBigLock);
        var_13 = (*aSyscall[5].pCurrent)(var_8[3].pMethods,&sStat);
        var_15 = (type_5 *)var_12;
        if (var_13 == 0) {
          for (; var_15 != (type_5 *)0x0;
              var_15 = (type_5 *)var_15->xSectorSize) {
            if ((((int)sStat.st_dev == (int)((type_15 *)&var_15->iVersion)->dev) &&
                (sStat.st_dev._4_4_ == var_15->xClose)) &&
               (((type_18 *)sStat.st_ino ==
                 var_15->xRead && (sStat.st_ino._4_4_ == var_15->xWrite)))) {
              var_15->xCheckReservedLock = var_15->xCheckReservedLock + 1;
              psVar5 = (type_5 *)var_12;
              goto LAB_0005ed6d;
            }
          }
          var_15 = (type_5 *)var_19(0x34);
          if (var_15 != (type_5 *)0x0) {
            var_15->xTruncate = (type_19 *)0x0;
            var_15->xDeviceCharacteristics = (type_17 *)0x0;
            var_10 = (type_11 *)((type_6)&var_15->xSync & 0xfffffffc);
            var_3 = (type_6)((int)var_15 + (0x34 - (int)var_10)) >> 2;
            for (; var_3 != 0; var_3 = var_3 - 1) {
              *var_10 = 0;
              var_10 = var_10 + (type_6)bVar25 * -2 + 1;
            }
            *(int *)&((type_15 *)&var_15->iVersion)->dev = (int)sStat.st_dev;
            var_15->xClose = sStat.st_dev._4_4_;
            bVar24 = sqlite3Config.bCoreMutex != '\0';
            var_15->xRead = (type_18 *)sStat.st_ino;
            var_15->xWrite = sStat.st_ino._4_4_;
            if (bVar24) {
              var_43 = var_42(0);
              var_15->xTruncate = (type_19 *)var_43;
              if (var_43 == (type_8 *)0x0) {
                var_13 = 7;
                var_28(var_15);
                goto LAB_0005efaf;
              }
            }
            var_15->xCheckReservedLock = (type_20 *)0x1;
            var_15->xDeviceCharacteristics = (type_17 *)0x0;
            var_15->xSectorSize = (type_17 *)var_12;
            psVar5 = var_15;
            if (var_12 != (type_4 *)0x0) {
              var_12->pPrev = (type_4 *)var_15;
            }
LAB_0005ed6d:
            var_12 = (type_4 *)psVar5;
            var_8[2].pMethods = var_15;
            var_16(unixBigLock);
            var_8[5].pMethods = (type_5 *)0x0;
            goto LAB_0005e8ef;
          }
          var_13 = 7;
        }
        else {
          piVar14 = var_25();
          var_13 = 10;
          var_8[5].pMethods = (type_5 *)*piVar14;
        }
LAB_0005efaf:
        var_34 = (*aSyscall[1].pCurrent)(local_4c8);
        if (var_34 != 0) {
          var_44((type_21 *)var_8,0x98f4,lineno_00);
        }
        var_16(unixBigLock);
        var_8[5].pMethods = (type_5 *)0x0;
        goto LAB_0005ee17;
      }
      if (var_15 != &dotlockIoMethods) goto LAB_0005e8e8;
      var_31 = var_30(var_17);
      var_45 = (type_5 *)var_19((longlong)(int)(var_31 + 6));
      if (var_45 == (type_5 *)0x0) {
        var_8[6].pMethods = (type_5 *)0x0;
        var_8[5].pMethods = (type_5 *)0x0;
        var_13 = 7;
        var_34 = (*aSyscall[1].pCurrent)(local_4c8);
        if (var_34 != 0) {
          var_44((type_21 *)var_8,0x9949,lineno);
        }
        goto LAB_0005ee17;
      }
      var_46(var_31 + 6,(char *)var_45,"%s.lock",var_17);
      var_8[5].pMethods = (type_5 *)0x0;
      var_8[6].pMethods = var_45;
      var_45 = var_15;
    }
    else {
      var_15 = &nolockIoMethods;
LAB_0005e8e8:
      var_8[5].pMethods = (type_5 *)0x0;
      var_45 = var_15;
    }
LAB_0005e8ef:
    var_8->pMethods = var_45;
    var_13 = 0;
    var_47((type_21 *)var_8);
  }
LAB_0005e8fb:
  if (var_48 != *(int *)(var_2 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_49();
  }
  return var_13;
}


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

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

int MASKED(int param_1,char *param_2,undefined4 *param_3,uint param_4,uint *param_5)

{
  ushort *puVar1;
  char cVar2;
  undefined4 uVar3;
  uint uVar4;
  __pid_t _Var5;
  char *pcVar6;
  int iVar7;
  undefined *puVar8;
  int *piVar9;
  size_t sVar10;
  int iVar11;
  undefined1 *puVar12;
  int *piVar13;
  uint uVar14;
  uint uVar15;
  int *piVar16;
  undefined *puVar17;
  byte *pbVar18;
  uint uVar19;
  byte *pbVar20;
  undefined4 *puVar21;
  undefined4 uVar22;
  int in_GS_OFFSET;
  bool bVar23;
  bool bVar24;
  byte bVar25;
  int iVar26;
  char *local_4b4;
  undefined4 local_4ac;
  uint local_4a8;
  uint local_4a4;
  int local_484;
  int local_480;
  uint local_474;
  undefined4 local_46c;
  undefined4 local_468;
  int local_42c;
  int local_428;
  undefined1 local_423 [513];
  char local_222 [514];
  int local_20;
  undefined4 uStack_14;
  
  bVar25 = 0;
  uStack_14 = 0x5e649;
  uVar15 = param_4 & 8;
  local_4a4 = param_4 & 1;
  uVar19 = param_4 & 2;
  bVar24 = false;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  uVar4 = param_4 & 0xfff00;
  if ((param_4 & 4) != 0) {
    bVar24 = (uVar4 == 0x4000 || uVar4 == 0x800) || uVar4 == 0x80000;
  }
  _Var5 = getpid();
  if (_Var5 != DAT_000df7ac) {
    DAT_000df7ac = getpid();
    sqlite3_randomness(0,0);
  }
  *param_3 = 0;
  param_3[0x14] = 0;
  puVar21 = (undefined4 *)((uint)(param_3 + 1) & 0xfffffffc);
  for (uVar14 = (uint)((int)param_3 + (0x54 - (int)((uint)(param_3 + 1) & 0xfffffffc))) >> 2;
      uVar14 != 0; uVar14 = uVar14 - 1) {
    *puVar21 = 0;
    puVar21 = puVar21 + (uint)bVar25 * -2 + 1;
  }
  if (uVar4 == 0x100) {
    sqlite3_mutex_enter(DAT_000df7a8);
    if ((DAT_000df7a4 != (int *)0x0) &&
       (iVar26 = (*(code *)PTR_FUN_000df474)(param_2,&local_484), piVar13 = DAT_000df7a4,
       iVar26 == 0)) {
      for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {
        if ((piVar13[1] == local_480 && *piVar13 == local_484) &&
           (local_428 == piVar13[3] && local_42c == piVar13[2])) {
          sqlite3_mutex_enter(piVar13[4]);
          piVar9 = (int *)piVar13[8];
          if (piVar9 == (int *)0x0) goto LAB_0005ea3a;
          if ((param_4 & 3) != piVar9[1]) goto LAB_0005ea33;
          piVar16 = piVar13 + 8;
          goto LAB_0005ee53;
        }
      }
    }
    sqlite3_mutex_leave(DAT_000df7a8);
    goto LAB_0005ea54;
  }
  iVar26 = -1;
  local_4b4 = param_2;
  if (param_2 == (char *)0x0) {
    local_4b4 = local_222;
    iVar7 = FUN_0005df50();
    if (iVar7 != 0) goto LAB_0005e8fb;
  }
  goto LAB_0005e781;
LAB_0005ea3a:
  sqlite3_mutex_leave(piVar13[4]);
  sqlite3_mutex_leave(DAT_000df7a8);
LAB_0005ea54:
  piVar9 = (int *)sqlite3_malloc64(0xc,0);
  if (piVar9 == (int *)0x0) {
    iVar7 = 7;
    goto LAB_0005e8fb;
  }
  iVar26 = -1;
  goto LAB_0005ee78;
  while ((param_4 & 3) != piVar9[1]) {
LAB_0005ea33:
    piVar16 = piVar9;
    piVar9 = (int *)piVar16[2];
    if (piVar9 == (int *)0x0) goto LAB_0005ea3a;
  }
  piVar16 = piVar16 + 2;
LAB_0005ee53:
  *piVar16 = piVar9[2];
  sqlite3_mutex_leave(piVar13[4]);
  sqlite3_mutex_leave(DAT_000df7a8);
  iVar26 = *piVar9;
LAB_0005ee78:
  param_3[7] = piVar9;
  local_4b4 = param_2;
LAB_0005e781:
  uVar14 = uVar19;
  if ((param_4 & 4) != 0) {
    uVar14 = uVar19 | 0x40;
  }
  if ((param_4 & 0x10) != 0) {
    uVar14 = uVar14 | 0x20080;
  }
  if (-1 < iVar26) goto LAB_0005e7af;
  uVar14 = uVar14 | 0x28000;
  if ((param_4 & 0x80800) == 0) {
    if (uVar15 == 0) {
      if (((param_4 & 0x40) != 0) &&
         (puVar12 = (undefined1 *)sqlite3_uri_parameter(local_4b4,"modeof"),
         puVar12 != (undefined1 *)0x0)) goto LAB_0005eb2c;
LAB_0005ebd9:
      iVar26 = FUN_0003a9a0(uVar15,uVar14);
      if (iVar26 < 0) {
        local_4ac = 0;
        local_4a8 = 0;
        uVar22 = 0;
        goto LAB_0005ec06;
      }
      goto LAB_0005e7af;
    }
    iVar26 = FUN_0003a9a0(uVar15,uVar14);
    if (-1 < iVar26) goto LAB_0005e7af;
    uVar22 = 0;
    local_4ac = 0;
    local_4a8 = 0x180;
LAB_0005ec06:
    piVar13 = __errno_location();
    iVar26 = *piVar13;
    if ((bVar24) && (iVar26 == 0xd)) {
      iVar26 = (*(code *)PTR_access_000df45c)(local_4b4,0);
      if (iVar26 == 0) {
        iVar26 = *piVar13;
        goto LAB_0005ec40;
      }
      iVar7 = 0x608;
      FUN_000383b0();
      FUN_0003aad0(0x9ae7);
    }
    else {
LAB_0005ec40:
      if ((uVar19 != 0) && (iVar26 != 0x15)) {
        param_4 = param_4 & 0xfffffff9 | 1;
        iVar26 = FUN_0003a9a0();
        if (-1 < iVar26) {
          local_4a4 = 1;
          goto LAB_0005eb78;
        }
      }
      FUN_000383b0();
      iVar7 = FUN_0003aad0(0x9ae7);
      if (iVar7 == 0) goto LAB_0005e8fb;
    }
LAB_0005ee17:
    sqlite3_free(param_3[7]);
  }
  else {
    if (local_4b4 == (char *)0x0) {
      iVar26 = -1;
    }
    else {
      sVar10 = strlen(local_4b4);
      iVar26 = (sVar10 & 0x3fffffff) - 1;
    }
    cVar2 = local_4b4[iVar26];
    while (cVar2 != '-') {
      if ((cVar2 == '.') || (iVar26 == 0)) goto LAB_0005ebd9;
      iVar26 = iVar26 + -1;
      cVar2 = local_4b4[iVar26];
    }
    puVar12 = local_423;
    __memcpy_chk(puVar12,local_4b4,iVar26,0x201);
    local_423[iVar26] = 0;
LAB_0005eb2c:
    iVar26 = (*(code *)PTR_FUN_000df474)(puVar12,&local_484);
    iVar7 = 0x70a;
    if (iVar26 != 0) goto LAB_0005e8fb;
    local_4a8 = local_474 & 0x1ff;
    local_4ac = local_46c;
    iVar26 = FUN_0003a9a0(uVar15,uVar14);
    uVar22 = local_468;
    if (iVar26 < 0) goto LAB_0005ec06;
LAB_0005eb78:
    if (((local_4a8 != 0) && ((param_4 & 0x80800) != 0)) &&
       (iVar7 = (*(code *)PTR_geteuid_000df540)(), iVar7 == 0)) {
      (*(code *)PTR_fchown_000df534)(iVar26,local_4ac,uVar22);
    }
LAB_0005e7af:
    if (param_5 != (uint *)0x0) {
      *param_5 = param_4;
    }
    piVar13 = (int *)param_3[7];
    if (piVar13 != (int *)0x0) {
      *piVar13 = iVar26;
      piVar13[1] = param_4 & 3;
    }
    if (uVar15 != 0) {
      (*(code *)PTR_unlink_000df504)(local_4b4);
      uVar15 = 0x20;
    }
    uVar22 = DAT_000de40c;
    uVar19 = uVar15 | 2;
    if (local_4a4 == 0) {
      uVar19 = uVar15;
    }
    uVar15 = uVar19 | 0x80;
    if (uVar4 == 0x100) {
      uVar15 = uVar19;
    }
    uVar4 = uVar15 | 8;
    if (!bVar24) {
      uVar4 = uVar15;
    }
    if ((param_4 & 0x40) == 0) {
      *(short *)((int)param_3 + 0x12) = (short)uVar4;
      param_3[3] = iVar26;
      pcVar6 = (char *)0x0;
      if ((uVar4 & 0x40) != 0) {
        pcVar6 = param_2;
      }
      param_3[8] = param_2;
      param_3[1] = param_1;
      uVar3 = DAT_000de408;
      param_3[0x11] = uVar22;
      param_3[0x10] = uVar3;
    }
    else {
      uVar4 = uVar4 | 0x40;
      param_3[3] = iVar26;
      param_3[8] = param_2;
      *(short *)((int)param_3 + 0x12) = (short)uVar4;
      param_3[1] = param_1;
      uVar3 = DAT_000de408;
      param_3[0x11] = uVar22;
      param_3[0x10] = uVar3;
      pcVar6 = param_2;
    }
    iVar7 = sqlite3_uri_boolean(pcVar6,&DAT_000aa9b5,1);
    bVar24 = iVar7 == 0;
    if (!bVar24) {
      puVar1 = (ushort *)((int)param_3 + 0x12);
      *puVar1 = *puVar1 | 0x10;
      bVar24 = *puVar1 == 0;
    }
    bVar23 = false;
    iVar7 = 10;
    pbVar18 = *(byte **)(param_1 + 0x10);
    pbVar20 = (byte *)"unix-excl";
    do {
      if (iVar7 == 0) break;
      iVar7 = iVar7 + -1;
      bVar23 = *pbVar18 < *pbVar20;
      bVar24 = *pbVar18 == *pbVar20;
      pbVar18 = pbVar18 + (uint)bVar25 * -2 + 1;
      pbVar20 = pbVar20 + (uint)bVar25 * -2 + 1;
    } while (bVar24);
    if ((!bVar23 && !bVar24) == bVar23) {
      *(ushort *)((int)param_3 + 0x12) = *(ushort *)((int)param_3 + 0x12) | 1;
    }
    if ((uVar4 & 0x80) == 0) {
      puVar8 = (undefined *)(*(code *)**(undefined4 **)(param_1 + 0x14))(param_2,param_3);
      puVar17 = &DAT_000dd9e0;
      if (puVar8 == &DAT_000dd9e0) {
        sqlite3_mutex_enter(DAT_000df7a8);
        iVar7 = (*(code *)PTR_FUN_000df480)(param_3[3],&local_484);
        piVar13 = DAT_000df7a4;
        if (iVar7 == 0) {
          for (; piVar13 != (int *)0x0; piVar13 = (int *)piVar13[0xb]) {
            if (((local_484 == *piVar13) && (local_480 == piVar13[1])) &&
               ((local_42c == piVar13[2] && (local_428 == piVar13[3])))) {
              piVar13[9] = piVar13[9] + 1;
              piVar9 = DAT_000df7a4;
              goto LAB_0005ed6d;
            }
          }
          piVar13 = (int *)sqlite3_malloc64(0x34,0);
          if (piVar13 != (int *)0x0) {
            piVar13[4] = 0;
            piVar13[0xc] = 0;
            puVar21 = (undefined4 *)((uint)(piVar13 + 5) & 0xfffffffc);
            for (uVar4 = (uint)((int)piVar13 + (0x34 - (int)((uint)(piVar13 + 5) & 0xfffffffc))) >>
                         2; uVar4 != 0; uVar4 = uVar4 - 1) {
              *puVar21 = 0;
              puVar21 = puVar21 + (uint)bVar25 * -2 + 1;
            }
            *piVar13 = local_484;
            piVar13[1] = local_480;
            bVar24 = DAT_000de364 != '\0';
            piVar13[2] = local_42c;
            piVar13[3] = local_428;
            if (bVar24) {
              iVar7 = sqlite3_mutex_alloc(0);
              piVar13[4] = iVar7;
              if (iVar7 == 0) {
                iVar7 = 7;
                sqlite3_free(piVar13);
                goto LAB_0005efaf;
              }
            }
            piVar13[9] = 1;
            piVar13[0xc] = 0;
            piVar13[0xb] = (int)DAT_000df7a4;
            piVar9 = piVar13;
            if (DAT_000df7a4 != (int *)0x0) {
              DAT_000df7a4[0xc] = (int)piVar13;
            }
LAB_0005ed6d:
            DAT_000df7a4 = piVar9;
            param_3[2] = piVar13;
            puVar8 = puVar17;
            sqlite3_mutex_leave(DAT_000df7a8);
            param_3[5] = 0;
            goto LAB_0005e8ef;
          }
          iVar7 = 7;
        }
        else {
          piVar13 = __errno_location();
          iVar7 = 10;
          param_3[5] = *piVar13;
        }
LAB_0005efaf:
        iVar26 = (*(code *)PTR_close_000df450)(iVar26);
        if (iVar26 != 0) {
          FUN_0003aea0();
        }
        sqlite3_mutex_leave(DAT_000df7a8);
        param_3[5] = 0;
        goto LAB_0005ee17;
      }
      if (puVar8 != &DAT_000dd920) goto LAB_0005e8e8;
      sVar10 = strlen(param_2);
      iVar7 = sVar10 + 6;
      iVar11 = sqlite3_malloc64(iVar7,iVar7 >> 0x1f);
      if (iVar11 == 0) {
        param_3[6] = 0;
        param_3[5] = 0;
        iVar7 = 7;
        iVar26 = (*(code *)PTR_close_000df450)(iVar26);
        if (iVar26 != 0) {
          FUN_0003aea0();
        }
        goto LAB_0005ee17;
      }
      sqlite3_snprintf(iVar7,iVar11,"%s.lock",param_2);
      param_3[5] = 0;
      param_3[6] = iVar11;
    }
    else {
      puVar8 = &DAT_000dd980;
LAB_0005e8e8:
      param_3[5] = 0;
    }
LAB_0005e8ef:
    *param_3 = puVar8;
    iVar7 = 0;
    FUN_0003a610();
  }
LAB_0005e8fb:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar7;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000a9ea0();
}

