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

int __regparm3 blobSeekToRow(Incrblob *p,sqlite3_int64 iRow,char **pzErr)

{
  ushort uVar1;
  Vdbe *p_00;
  Mem *pMVar2;
  VdbeCursor *pVVar3;
  BtCursor *pBVar4;
  Btree *pBVar5;
  int iVar6;
  char *pcVar7;
  undefined4 in_ECX;
  uint uVar8;
  
  p_00 = (Vdbe *)p->pStmt;
  iVar6 = p_00->pc;
  pMVar2 = p_00->aMem;
  pMVar2[1].flags = 4;
  pMVar2[1].u.zPType = (char *)pzErr;
  *(undefined4 *)((int)&pMVar2[1].u + 4) = in_ECX;
  if (iVar6 < 5) {
    iVar6 = sqlite3_step((sqlite3_stmt *)p_00);
  }
  else {
    p_00->pc = 4;
    iVar6 = sqlite3VdbeExec(p_00);
  }
  if (iVar6 != 100) {
    if (p->pStmt == (sqlite3_stmt *)0x0) {
      pcVar7 = (char *)0x0;
    }
    else {
      iVar6 = sqlite3_finalize(p->pStmt);
      p->pStmt = (sqlite3_stmt *)0x0;
      if (iVar6 == 0) {
        pcVar7 = sqlite3MPrintf(p->db,"no such rowid: %lld",pzErr,in_ECX);
        *(undefined4 *)iRow = pcVar7;
        return 1;
      }
      pcVar7 = sqlite3_errmsg(p->db);
      pcVar7 = sqlite3MPrintf(p->db,"%s",pcVar7);
    }
LAB_000a79af:
    *(undefined4 *)iRow = pcVar7;
    return iVar6;
  }
  pVVar3 = *p_00->apCsr;
  uVar1 = p->iCol;
  if (uVar1 < pVVar3->nHdrParsed) {
    uVar8 = pVVar3->aType[uVar1];
    if (0xb < uVar8) {
      p->iOffset = pVVar3->aType[(int)pVVar3->nField + (uint)uVar1];
      if (uVar8 < 0x80) {
        uVar8 = (uint)""[uVar8];
      }
      else {
        uVar8 = uVar8 - 0xc >> 1;
      }
      pBVar4 = (pVVar3->uc).pCursor;
      p->nByte = uVar8;
      pcVar7 = (char *)0x0;
      iVar6 = 0;
      pBVar5 = pBVar4->pBtree;
      p->pCsr = pBVar4;
      pBVar4->curFlags = pBVar4->curFlags | 0x10;
      pBVar5->hasIncrblobCur = '\x01';
      goto LAB_000a79af;
    }
    if (uVar8 != 0) {
      pcVar7 = "real";
      if (uVar8 != 7) {
        pcVar7 = "integer";
      }
      goto LAB_000a7a56;
    }
  }
  pcVar7 = "null";
LAB_000a7a56:
  pcVar7 = sqlite3MPrintf(p->db,"cannot open value of type %s",pcVar7);
  sqlite3_finalize(p->pStmt);
  p->pStmt = (sqlite3_stmt *)0x0;
  *(undefined4 *)iRow = pcVar7;
  return 1;
}



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

int __regparm3 FUN_000a7900(uint *param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)

{
  ushort uVar1;
  uint uVar2;
  int iVar3;
  int iVar4;
  undefined4 uVar5;
  char *pcVar6;
  uint uVar7;
  
  uVar7 = param_1[4];
  iVar3 = *(int *)(uVar7 + 0x24);
  iVar4 = *(int *)(uVar7 + 0x54);
  *(undefined2 *)(iVar4 + 0x30) = 4;
  *(undefined4 *)(iVar4 + 0x28) = param_2;
  *(undefined4 *)(iVar4 + 0x2c) = param_3;
  if (iVar3 < 5) {
    iVar4 = sqlite3_step(uVar7);
  }
  else {
    *(undefined4 *)(uVar7 + 0x24) = 4;
    iVar4 = FUN_00083fd0();
  }
  if (iVar4 != 100) {
    if (param_1[4] == 0) {
      uVar5 = 0;
    }
    else {
      iVar4 = sqlite3_finalize(param_1[4]);
      param_1[4] = 0;
      if (iVar4 == 0) {
        uVar5 = FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3);
        *param_4 = uVar5;
        return 1;
      }
      uVar5 = sqlite3_errmsg(param_1[5]);
      uVar5 = FUN_0003e990(param_1[5],&DAT_000aa41d,uVar5);
    }
LAB_000a79af:
    *param_4 = uVar5;
    return iVar4;
  }
  iVar4 = **(int **)(uVar7 + 0x5c);
  uVar1 = (ushort)param_1[2];
  if (uVar1 < *(ushort *)(iVar4 + 0x36)) {
    uVar7 = *(uint *)(iVar4 + 0x50 + (uint)uVar1 * 4);
    if (0xb < uVar7) {
      param_1[1] = *(uint *)(iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4);
      if (uVar7 < 0x80) {
        uVar7 = (uint)(byte)(&DAT_000b4ca0)[uVar7];
      }
      else {
        uVar7 = uVar7 - 0xc >> 1;
      }
      uVar2 = *(uint *)(iVar4 + 0x24);
      *param_1 = uVar7;
      uVar5 = 0;
      iVar4 = 0;
      iVar3 = *(int *)(uVar2 + 8);
      param_1[3] = uVar2;
      *(byte *)(uVar2 + 1) = *(byte *)(uVar2 + 1) | 0x10;
      *(undefined1 *)(iVar3 + 0xb) = 1;
      goto LAB_000a79af;
    }
    if (uVar7 != 0) {
      pcVar6 = "real";
      if (uVar7 != 7) {
        pcVar6 = "integer";
      }
      goto LAB_000a7a56;
    }
  }
  pcVar6 = "null";
LAB_000a7a56:
  uVar5 = FUN_0003e990(param_1[5],"cannot open value of type %s",pcVar6);
  sqlite3_finalize(param_1[4]);
  param_1[4] = 0;
  *param_4 = uVar5;
  return 1;
}


PUSH EBP
PUSH EDI
MOV EBP,0x4
PUSH ESI
PUSH EBX
MOV ESI,EAX
CALL 0x0001d810
ADD EBX,0x366f0
SUB ESP,0x1c
MOV EDI,dword ptr [EAX + 0x10]
MOV dword ptr [ESP + 0x8],EDX
MOV dword ptr [ESP + 0xc],ECX
CMP dword ptr [EDI + 0x24],0x4
MOV EAX,dword ptr [EDI + 0x54]
MOV word ptr [EAX + 0x30],BP
MOV dword ptr [EAX + 0x28],EDX
MOV dword ptr [EAX + 0x2c],ECX
JLE 0x000a79c0
MOV dword ptr [EDI + 0x24],0x4
MOV EAX,EDI
CALL 0x00083fd0
MOV EBP,EAX
MOV EDX,dword ptr [ESP + 0x8]
MOV ECX,dword ptr [ESP + 0xc]
CMP EBP,0x64
JZ 0x000a79df
MOV EAX,dword ptr [ESI + 0x10]
MOV dword ptr [ESP + 0x8],EDX
MOV dword ptr [ESP + 0xc],ECX
TEST EAX,EAX
JZ 0x000a7a98
SUB ESP,0xc
PUSH EAX
CALL 0x00016ac0
ADD ESP,0x10
TEST EAX,EAX
MOV EBP,EAX
MOV dword ptr [ESI + 0x10],0x0
JZ 0x000a7a18
SUB ESP,0xc
PUSH dword ptr [ESI + 0x14]
CALL 0x000166e0
ADD ESP,0xc
PUSH EAX
LEA EAX,[EBX + 0xfffcc41d]
PUSH EAX
PUSH dword ptr [ESI + 0x14]
CALL 0x0003e990
ADD ESP,0x10
MOV EDI,EAX
MOV EAX,dword ptr [ESP + 0x30]
MOV dword ptr [EAX],EDI
ADD ESP,0x1c
MOV EAX,EBP
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH EDI
CALL 0x00016720
MOV EBP,EAX
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x8]
CMP EBP,0x64
MOV ECX,dword ptr [ESP + 0xc]
JNZ 0x000a795c
MOV EAX,dword ptr [EDI + 0x5c]
MOV EDX,dword ptr [EAX]
MOVZX EAX,word ptr [ESI + 0x8]
CMP word ptr [EDX + 0x36],AX
JBE 0x000a7a50
MOV ECX,dword ptr [EDX + EAX*0x4 + 0x50]
CMP ECX,0xb
JA 0x000a7aa0
TEST ECX,ECX
JZ 0x000a7a50
LEA EAX,[EBX + 0xfffcd5a9]
LEA EDX,[EBX + 0xfffcd5a1]
CMP ECX,0x7
CMOVNZ EAX,EDX
JMP 0x000a7a56
MOV EDX,dword ptr [ESP + 0x8]
MOV ECX,dword ptr [ESP + 0xc]
LEA EAX,[EBX + 0xfffcd5cb]
MOV EBP,0x1
PUSH ECX
PUSH EDX
PUSH EAX
PUSH dword ptr [ESI + 0x14]
CALL 0x0003e990
ADD ESP,0x10
MOV EDI,EAX
MOV EAX,dword ptr [ESP + 0x30]
MOV dword ptr [EAX],EDI
ADD ESP,0x1c
MOV EAX,EBP
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[EBX + 0xfffcc1f9]
SUB ESP,0x4
MOV EBP,0x1
PUSH EAX
LEA EAX,[EBX + 0xfffcd5ae]
PUSH EAX
PUSH dword ptr [ESI + 0x14]
CALL 0x0003e990
MOV EDI,EAX
POP EAX
PUSH dword ptr [ESI + 0x10]
CALL 0x00016ac0
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x30]
MOV dword ptr [ESI + 0x10],0x0
MOV dword ptr [EAX],EDI
ADD ESP,0x1c
MOV EAX,EBP
POP EBX
POP ESI
POP EDI
POP EBP
RET
XOR EDI,EDI
JMP 0x000a79af
MOVSX EDI,word ptr [EDX + 0x34]
CMP ECX,0x7f
LEA EAX,[EAX + EDI*0x1 + 0x14]
MOV EAX,dword ptr [EDX + EAX*0x4]
MOV dword ptr [ESI + 0x4],EAX
JA 0x000a7ae0
MOVZX ECX,byte ptr [EBX + ECX*0x1 + 0xfffd6ca0]
MOV EAX,dword ptr [EDX + 0x24]
MOV dword ptr [ESI],ECX
XOR EDI,EDI
XOR EBP,EBP
MOV EDX,dword ptr [EAX + 0x8]
MOV dword ptr [ESI + 0xc],EAX
OR byte ptr [EAX + 0x1],0x10
MOV byte ptr [EDX + 0xb],0x1
JMP 0x000a79af
SUB ECX,0xc
SHR ECX,0x1
JMP 0x000a7abb
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 FUN_000a7900(uint *param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)\n\n{\n  ushort uVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  char *pcVar6;\n  uint uVar7;\n  \n  uVar7 = param_1[4];\n  iVar3 = *(int *)(uVar7 + 0x24);\n  iVar4 = *(int *)(uVar7 + 0x54);\n  *(undefined2 *)(iVar4 + 0x30) = 4;\n  *(undefined4 *)(iVar4 + 0x28) = param_2;\n  *(undefined4 *)(iVar4 + 0x2c) = param_3;\n  if (iVar3 < 5) {\n    iVar4 = sqlite3_step(uVar7);\n  }\n  else {\n    *(undefined4 *)(uVar7 + 0x24) = 4;\n    iVar4 = FUN_00083fd0();\n  }\n  if (iVar4 != 100) {\n    if (param_1[4] == 0) {\n      uVar5 = 0;\n    }\n    else {\n      iVar4 = sqlite3_finalize(param_1[4]);\n      param_1[4] = 0;\n      if (iVar4 == 0) {\n        uVar5 = FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3);\n        *param_4 = uVar5;\n        return 1;\n      }\n      uVar5 = sqlite3_errmsg(param_1[5]);\n      uVar5 = FUN_0003e990(param_1[5],&DAT_000aa41d,uVar5);\n    }\nLAB_000a79af:\n    *param_4 = uVar5;\n    return iVar4;\n  }\n  iVar4 = **(int **)(uVar7 + 0x5c);\n  uVar1 = (ushort)param_1[2];\n  if (uVar1 < *(ushort *)(iVar4 + 0x36)) {\n    uVar7 = *(uint *)(iVar4 + 0x50 + (uint)uVar1 * 4);\n    if (0xb < uVar7) {\n      param_1[1] = *(uint *)(iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4);\n      if (uVar7 < 0x80) {\n        uVar7 = (uint)(byte)(&DAT_000b4ca0)[uVar7];\n      }\n      else {\n        uVar7 = uVar7 - 0xc >> 1;\n      }\n      uVar2 = *(uint *)(iVar4 + 0x24);\n      *param_1 = uVar7;\n      uVar5 = 0;\n      iVar4 = 0;\n      iVar3 = *(int *)(uVar2 + 8);\n      param_1[3] = uVar2;\n      *(byte *)(uVar2 + 1) = *(byte *)(uVar2 + 1) | 0x10;\n      *(undefined1 *)(iVar3 + 0xb) = 1;\n      goto LAB_000a79af;\n    }\n    if (uVar7 != 0) {\n      pcVar6 = "real";\n      if (uVar7 != 7) {\n        pcVar6 = "integer";\n      }\n      goto LAB_000a7a56;\n    }\n  }\n  pcVar6 = "null";\nLAB_000a7a56:\n  uVar5 = FUN_0003e990(param_1[5],"cannot open value of type %s",pcVar6);\n  sqlite3_finalize(param_1[4]);\n  param_1[4] = 0;\n  *param_4 = uVar5;\n  return 1;\n}\n\n" comment (function_definition "int __regparm3 FUN_000a7900(uint *param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)\n\n{\n  ushort uVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  char *pcVar6;\n  uint uVar7;\n  \n  uVar7 = param_1[4];\n  iVar3 = *(int *)(uVar7 + 0x24);\n  iVar4 = *(int *)(uVar7 + 0x54);\n  *(undefined2 *)(iVar4 + 0x30) = 4;\n  *(undefined4 *)(iVar4 + 0x28) = param_2;\n  *(undefined4 *)(iVar4 + 0x2c) = param_3;\n  if (iVar3 < 5) {\n    iVar4 = sqlite3_step(uVar7);\n  }\n  else {\n    *(undefined4 *)(uVar7 + 0x24) = 4;\n    iVar4 = FUN_00083fd0();\n  }\n  if (iVar4 != 100) {\n    if (param_1[4] == 0) {\n      uVar5 = 0;\n    }\n    else {\n      iVar4 = sqlite3_finalize(param_1[4]);\n      param_1[4] = 0;\n      if (iVar4 == 0) {\n        uVar5 = FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3);\n        *param_4 = uVar5;\n        return 1;\n      }\n      uVar5 = sqlite3_errmsg(param_1[5]);\n      uVar5 = FUN_0003e990(param_1[5],&DAT_000aa41d,uVar5);\n    }\nLAB_000a79af:\n    *param_4 = uVar5;\n    return iVar4;\n  }\n  iVar4 = **(int **)(uVar7 + 0x5c);\n  uVar1 = (ushort)param_1[2];\n  if (uVar1 < *(ushort *)(iVar4 + 0x36)) {\n    uVar7 = *(uint *)(iVar4 + 0x50 + (uint)uVar1 * 4);\n    if (0xb < uVar7) {\n      param_1[1] = *(uint *)(iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4);\n      if (uVar7 < 0x80) {\n        uVar7 = (uint)(byte)(&DAT_000b4ca0)[uVar7];\n      }\n      else {\n        uVar7 = uVar7 - 0xc >> 1;\n      }\n      uVar2 = *(uint *)(iVar4 + 0x24);\n      *param_1 = uVar7;\n      uVar5 = 0;\n      iVar4 = 0;\n      iVar3 = *(int *)(uVar2 + 8);\n      param_1[3] = uVar2;\n      *(byte *)(uVar2 + 1) = *(byte *)(uVar2 + 1) | 0x10;\n      *(undefined1 *)(iVar3 + 0xb) = 1;\n      goto LAB_000a79af;\n    }\n    if (uVar7 != 0) {\n      pcVar6 = "real";\n      if (uVar7 != 7) {\n        pcVar6 = "integer";\n      }\n      goto LAB_000a7a56;\n    }\n  }\n  pcVar6 = "null";\nLAB_000a7a56:\n  uVar5 = FUN_0003e990(param_1[5],"cannot open value of type %s",pcVar6);\n  sqlite3_finalize(param_1[4]);\n  param_1[4] = 0;\n  *param_4 = uVar5;\n  return 1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000a7900(uint *param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" identifier (parameter_list "(uint *param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  ushort uVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  char *pcVar6;\n  uint uVar7;\n  \n  uVar7 = param_1[4];\n  iVar3 = *(int *)(uVar7 + 0x24);\n  iVar4 = *(int *)(uVar7 + 0x54);\n  *(undefined2 *)(iVar4 + 0x30) = 4;\n  *(undefined4 *)(iVar4 + 0x28) = param_2;\n  *(undefined4 *)(iVar4 + 0x2c) = param_3;\n  if (iVar3 < 5) {\n    iVar4 = sqlite3_step(uVar7);\n  }\n  else {\n    *(undefined4 *)(uVar7 + 0x24) = 4;\n    iVar4 = FUN_00083fd0();\n  }\n  if (iVar4 != 100) {\n    if (param_1[4] == 0) {\n      uVar5 = 0;\n    }\n    else {\n      iVar4 = sqlite3_finalize(param_1[4]);\n      param_1[4] = 0;\n      if (iVar4 == 0) {\n        uVar5 = FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3);\n        *param_4 = uVar5;\n        return 1;\n      }\n      uVar5 = sqlite3_errmsg(param_1[5]);\n      uVar5 = FUN_0003e990(param_1[5],&DAT_000aa41d,uVar5);\n    }\nLAB_000a79af:\n    *param_4 = uVar5;\n    return iVar4;\n  }\n  iVar4 = **(int **)(uVar7 + 0x5c);\n  uVar1 = (ushort)param_1[2];\n  if (uVar1 < *(ushort *)(iVar4 + 0x36)) {\n    uVar7 = *(uint *)(iVar4 + 0x50 + (uint)uVar1 * 4);\n    if (0xb < uVar7) {\n      param_1[1] = *(uint *)(iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4);\n      if (uVar7 < 0x80) {\n        uVar7 = (uint)(byte)(&DAT_000b4ca0)[uVar7];\n      }\n      else {\n        uVar7 = uVar7 - 0xc >> 1;\n      }\n      uVar2 = *(uint *)(iVar4 + 0x24);\n      *param_1 = uVar7;\n      uVar5 = 0;\n      iVar4 = 0;\n      iVar3 = *(int *)(uVar2 + 8);\n      param_1[3] = uVar2;\n      *(byte *)(uVar2 + 1) = *(byte *)(uVar2 + 1) | 0x10;\n      *(undefined1 *)(iVar3 + 0xb) = 1;\n      goto LAB_000a79af;\n    }\n    if (uVar7 != 0) {\n      pcVar6 = "real";\n      if (uVar7 != 7) {\n        pcVar6 = "integer";\n      }\n      goto LAB_000a7a56;\n    }\n  }\n  pcVar6 = "null";\nLAB_000a7a56:\n  uVar5 = FUN_0003e990(param_1[5],"cannot open value of type %s",pcVar6);\n  sqlite3_finalize(param_1[4]);\n  param_1[4] = 0;\n  *param_4 = uVar5;\n  return 1;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "uint uVar7;" type_identifier identifier ;) (expression_statement "uVar7 = param_1[4];" (assignment_expression "uVar7 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (expression_statement "iVar3 = *(int *)(uVar7 + 0x24);" (assignment_expression "iVar3 = *(int *)(uVar7 + 0x24)" identifier = (pointer_expression "*(int *)(uVar7 + 0x24)" * (cast_expression "(int *)(uVar7 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar7 + 0x24)" ( (binary_expression "uVar7 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(uVar7 + 0x54);" (assignment_expression "iVar4 = *(int *)(uVar7 + 0x54)" identifier = (pointer_expression "*(int *)(uVar7 + 0x54)" * (cast_expression "(int *)(uVar7 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar7 + 0x54)" ( (binary_expression "uVar7 + 0x54" identifier + number_literal) ))))) ;) (expression_statement "*(undefined2 *)(iVar4 + 0x30) = 4;" (assignment_expression "*(undefined2 *)(iVar4 + 0x30) = 4" (pointer_expression "*(undefined2 *)(iVar4 + 0x30)" * (cast_expression "(undefined2 *)(iVar4 + 0x30)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x30)" ( (binary_expression "iVar4 + 0x30" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar4 + 0x28) = param_2;" (assignment_expression "*(undefined4 *)(iVar4 + 0x28) = param_2" (pointer_expression "*(undefined4 *)(iVar4 + 0x28)" * (cast_expression "(undefined4 *)(iVar4 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x28)" ( (binary_expression "iVar4 + 0x28" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar4 + 0x2c) = param_3;" (assignment_expression "*(undefined4 *)(iVar4 + 0x2c) = param_3" (pointer_expression "*(undefined4 *)(iVar4 + 0x2c)" * (cast_expression "(undefined4 *)(iVar4 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x2c)" ( (binary_expression "iVar4 + 0x2c" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar3 < 5) {\n    iVar4 = sqlite3_step(uVar7);\n  }\n  else {\n    *(undefined4 *)(uVar7 + 0x24) = 4;\n    iVar4 = FUN_00083fd0();\n  }" if (parenthesized_expression "(iVar3 < 5)" ( (binary_expression "iVar3 < 5" identifier < number_literal) )) (compound_statement "{\n    iVar4 = sqlite3_step(uVar7);\n  }" { (expression_statement "iVar4 = sqlite3_step(uVar7);" (assignment_expression "iVar4 = sqlite3_step(uVar7)" identifier = (call_expression "sqlite3_step(uVar7)" identifier (argument_list "(uVar7)" ( identifier )))) ;) }) (else_clause "else {\n    *(undefined4 *)(uVar7 + 0x24) = 4;\n    iVar4 = FUN_00083fd0();\n  }" else (compound_statement "{\n    *(undefined4 *)(uVar7 + 0x24) = 4;\n    iVar4 = FUN_00083fd0();\n  }" { (expression_statement "*(undefined4 *)(uVar7 + 0x24) = 4;" (assignment_expression "*(undefined4 *)(uVar7 + 0x24) = 4" (pointer_expression "*(undefined4 *)(uVar7 + 0x24)" * (cast_expression "(undefined4 *)(uVar7 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar7 + 0x24)" ( (binary_expression "uVar7 + 0x24" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar4 = FUN_00083fd0();" (assignment_expression "iVar4 = FUN_00083fd0()" identifier = (call_expression "FUN_00083fd0()" identifier (argument_list "()" ( )))) ;) }))) (if_statement "if (iVar4 != 100) {\n    if (param_1[4] == 0) {\n      uVar5 = 0;\n    }\n    else {\n      iVar4 = sqlite3_finalize(param_1[4]);\n      param_1[4] = 0;\n      if (iVar4 == 0) {\n        uVar5 = FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3);\n        *param_4 = uVar5;\n        return 1;\n      }\n      uVar5 = sqlite3_errmsg(param_1[5]);\n      uVar5 = FUN_0003e990(param_1[5],&DAT_000aa41d,uVar5);\n    }\nLAB_000a79af:\n    *param_4 = uVar5;\n    return iVar4;\n  }" if (parenthesized_expression "(iVar4 != 100)" ( (binary_expression "iVar4 != 100" identifier != number_literal) )) (compound_statement "{\n    if (param_1[4] == 0) {\n      uVar5 = 0;\n    }\n    else {\n      iVar4 = sqlite3_finalize(param_1[4]);\n      param_1[4] = 0;\n      if (iVar4 == 0) {\n        uVar5 = FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3);\n        *param_4 = uVar5;\n        return 1;\n      }\n      uVar5 = sqlite3_errmsg(param_1[5]);\n      uVar5 = FUN_0003e990(param_1[5],&DAT_000aa41d,uVar5);\n    }\nLAB_000a79af:\n    *param_4 = uVar5;\n    return iVar4;\n  }" { (if_statement "if (param_1[4] == 0) {\n      uVar5 = 0;\n    }\n    else {\n      iVar4 = sqlite3_finalize(param_1[4]);\n      param_1[4] = 0;\n      if (iVar4 == 0) {\n        uVar5 = FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3);\n        *param_4 = uVar5;\n        return 1;\n      }\n      uVar5 = sqlite3_errmsg(param_1[5]);\n      uVar5 = FUN_0003e990(param_1[5],&DAT_000aa41d,uVar5);\n    }" if (parenthesized_expression "(param_1[4] == 0)" ( (binary_expression "param_1[4] == 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      uVar5 = 0;\n    }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar4 = sqlite3_finalize(param_1[4]);\n      param_1[4] = 0;\n      if (iVar4 == 0) {\n        uVar5 = FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3);\n        *param_4 = uVar5;\n        return 1;\n      }\n      uVar5 = sqlite3_errmsg(param_1[5]);\n      uVar5 = FUN_0003e990(param_1[5],&DAT_000aa41d,uVar5);\n    }" else (compound_statement "{\n      iVar4 = sqlite3_finalize(param_1[4]);\n      param_1[4] = 0;\n      if (iVar4 == 0) {\n        uVar5 = FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3);\n        *param_4 = uVar5;\n        return 1;\n      }\n      uVar5 = sqlite3_errmsg(param_1[5]);\n      uVar5 = FUN_0003e990(param_1[5],&DAT_000aa41d,uVar5);\n    }" { (expression_statement "iVar4 = sqlite3_finalize(param_1[4]);" (assignment_expression "iVar4 = sqlite3_finalize(param_1[4])" identifier = (call_expression "sqlite3_finalize(param_1[4])" identifier (argument_list "(param_1[4])" ( (subscript_expression "param_1[4]" identifier [ number_literal ]) )))) ;) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (iVar4 == 0) {\n        uVar5 = FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3);\n        *param_4 = uVar5;\n        return 1;\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar5 = FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3);\n        *param_4 = uVar5;\n        return 1;\n      }" { (expression_statement "uVar5 = FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3);" (assignment_expression "uVar5 = FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3)" identifier = (call_expression "FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3)" identifier (argument_list "(param_1[5],"no such rowid: %lld",param_2,param_3)" ( (subscript_expression "param_1[5]" identifier [ number_literal ]) , (string_literal ""no such rowid: %lld"" " string_content ") , identifier , identifier )))) ;) (expression_statement "*param_4 = uVar5;" (assignment_expression "*param_4 = uVar5" (pointer_expression "*param_4" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar5 = sqlite3_errmsg(param_1[5]);" (assignment_expression "uVar5 = sqlite3_errmsg(param_1[5])" identifier = (call_expression "sqlite3_errmsg(param_1[5])" identifier (argument_list "(param_1[5])" ( (subscript_expression "param_1[5]" identifier [ number_literal ]) )))) ;) (expression_statement "uVar5 = FUN_0003e990(param_1[5],&DAT_000aa41d,uVar5);" (assignment_expression "uVar5 = FUN_0003e990(param_1[5],&DAT_000aa41d,uVar5)" identifier = (call_expression "FUN_0003e990(param_1[5],&DAT_000aa41d,uVar5)" identifier (argument_list "(param_1[5],&DAT_000aa41d,uVar5)" ( (subscript_expression "param_1[5]" identifier [ number_literal ]) , (pointer_expression "&DAT_000aa41d" & identifier) , identifier )))) ;) }))) (labeled_statement "LAB_000a79af:\n    *param_4 = uVar5;" statement_identifier : (expression_statement "*param_4 = uVar5;" (assignment_expression "*param_4 = uVar5" (pointer_expression "*param_4" * identifier) = identifier) ;)) (return_statement "return iVar4;" return identifier ;) })) (expression_statement "iVar4 = **(int **)(uVar7 + 0x5c);" (assignment_expression "iVar4 = **(int **)(uVar7 + 0x5c)" identifier = (pointer_expression "**(int **)(uVar7 + 0x5c)" * (pointer_expression "*(int **)(uVar7 + 0x5c)" * (cast_expression "(int **)(uVar7 + 0x5c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(uVar7 + 0x5c)" ( (binary_expression "uVar7 + 0x5c" identifier + number_literal) )))))) ;) (expression_statement "uVar1 = (ushort)param_1[2];" (assignment_expression "uVar1 = (ushort)param_1[2]" identifier = (cast_expression "(ushort)param_1[2]" ( (type_descriptor "ushort" type_identifier) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (if_statement "if (uVar1 < *(ushort *)(iVar4 + 0x36)) {\n    uVar7 = *(uint *)(iVar4 + 0x50 + (uint)uVar1 * 4);\n    if (0xb < uVar7) {\n      param_1[1] = *(uint *)(iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4);\n      if (uVar7 < 0x80) {\n        uVar7 = (uint)(byte)(&DAT_000b4ca0)[uVar7];\n      }\n      else {\n        uVar7 = uVar7 - 0xc >> 1;\n      }\n      uVar2 = *(uint *)(iVar4 + 0x24);\n      *param_1 = uVar7;\n      uVar5 = 0;\n      iVar4 = 0;\n      iVar3 = *(int *)(uVar2 + 8);\n      param_1[3] = uVar2;\n      *(byte *)(uVar2 + 1) = *(byte *)(uVar2 + 1) | 0x10;\n      *(undefined1 *)(iVar3 + 0xb) = 1;\n      goto LAB_000a79af;\n    }\n    if (uVar7 != 0) {\n      pcVar6 = "real";\n      if (uVar7 != 7) {\n        pcVar6 = "integer";\n      }\n      goto LAB_000a7a56;\n    }\n  }" if (parenthesized_expression "(uVar1 < *(ushort *)(iVar4 + 0x36))" ( (binary_expression "uVar1 < *(ushort *)(iVar4 + 0x36)" identifier < (pointer_expression "*(ushort *)(iVar4 + 0x36)" * (cast_expression "(ushort *)(iVar4 + 0x36)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x36)" ( (binary_expression "iVar4 + 0x36" identifier + number_literal) ))))) )) (compound_statement "{\n    uVar7 = *(uint *)(iVar4 + 0x50 + (uint)uVar1 * 4);\n    if (0xb < uVar7) {\n      param_1[1] = *(uint *)(iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4);\n      if (uVar7 < 0x80) {\n        uVar7 = (uint)(byte)(&DAT_000b4ca0)[uVar7];\n      }\n      else {\n        uVar7 = uVar7 - 0xc >> 1;\n      }\n      uVar2 = *(uint *)(iVar4 + 0x24);\n      *param_1 = uVar7;\n      uVar5 = 0;\n      iVar4 = 0;\n      iVar3 = *(int *)(uVar2 + 8);\n      param_1[3] = uVar2;\n      *(byte *)(uVar2 + 1) = *(byte *)(uVar2 + 1) | 0x10;\n      *(undefined1 *)(iVar3 + 0xb) = 1;\n      goto LAB_000a79af;\n    }\n    if (uVar7 != 0) {\n      pcVar6 = "real";\n      if (uVar7 != 7) {\n        pcVar6 = "integer";\n      }\n      goto LAB_000a7a56;\n    }\n  }" { (expression_statement "uVar7 = *(uint *)(iVar4 + 0x50 + (uint)uVar1 * 4);" (assignment_expression "uVar7 = *(uint *)(iVar4 + 0x50 + (uint)uVar1 * 4)" identifier = (pointer_expression "*(uint *)(iVar4 + 0x50 + (uint)uVar1 * 4)" * (cast_expression "(uint *)(iVar4 + 0x50 + (uint)uVar1 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x50 + (uint)uVar1 * 4)" ( (binary_expression "iVar4 + 0x50 + (uint)uVar1 * 4" (binary_expression "iVar4 + 0x50" identifier + number_literal) + (binary_expression "(uint)uVar1 * 4" (cast_expression "(uint)uVar1" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) ))))) ;) (if_statement "if (0xb < uVar7) {\n      param_1[1] = *(uint *)(iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4);\n      if (uVar7 < 0x80) {\n        uVar7 = (uint)(byte)(&DAT_000b4ca0)[uVar7];\n      }\n      else {\n        uVar7 = uVar7 - 0xc >> 1;\n      }\n      uVar2 = *(uint *)(iVar4 + 0x24);\n      *param_1 = uVar7;\n      uVar5 = 0;\n      iVar4 = 0;\n      iVar3 = *(int *)(uVar2 + 8);\n      param_1[3] = uVar2;\n      *(byte *)(uVar2 + 1) = *(byte *)(uVar2 + 1) | 0x10;\n      *(undefined1 *)(iVar3 + 0xb) = 1;\n      goto LAB_000a79af;\n    }" if (parenthesized_expression "(0xb < uVar7)" ( (binary_expression "0xb < uVar7" number_literal < identifier) )) (compound_statement "{\n      param_1[1] = *(uint *)(iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4);\n      if (uVar7 < 0x80) {\n        uVar7 = (uint)(byte)(&DAT_000b4ca0)[uVar7];\n      }\n      else {\n        uVar7 = uVar7 - 0xc >> 1;\n      }\n      uVar2 = *(uint *)(iVar4 + 0x24);\n      *param_1 = uVar7;\n      uVar5 = 0;\n      iVar4 = 0;\n      iVar3 = *(int *)(uVar2 + 8);\n      param_1[3] = uVar2;\n      *(byte *)(uVar2 + 1) = *(byte *)(uVar2 + 1) | 0x10;\n      *(undefined1 *)(iVar3 + 0xb) = 1;\n      goto LAB_000a79af;\n    }" { (expression_statement "param_1[1] = *(uint *)(iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4);" (assignment_expression "param_1[1] = *(uint *)(iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4)" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (pointer_expression "*(uint *)(iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4)" * (cast_expression "(uint *)(iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4)" ( (binary_expression "iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4" identifier + (binary_expression "(uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4" (parenthesized_expression "(uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34))" ( (binary_expression "uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)" (binary_expression "uVar1 + 0x14" identifier + number_literal) + (cast_expression "(int)*(short *)(iVar4 + 0x34)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(short *)(iVar4 + 0x34)" * (cast_expression "(short *)(iVar4 + 0x34)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x34)" ( (binary_expression "iVar4 + 0x34" identifier + number_literal) )))))) )) * number_literal)) ))))) ;) (if_statement "if (uVar7 < 0x80) {\n        uVar7 = (uint)(byte)(&DAT_000b4ca0)[uVar7];\n      }\n      else {\n        uVar7 = uVar7 - 0xc >> 1;\n      }" if (parenthesized_expression "(uVar7 < 0x80)" ( (binary_expression "uVar7 < 0x80" identifier < number_literal) )) (compound_statement "{\n        uVar7 = (uint)(byte)(&DAT_000b4ca0)[uVar7];\n      }" { (expression_statement "uVar7 = (uint)(byte)(&DAT_000b4ca0)[uVar7];" (assignment_expression "uVar7 = (uint)(byte)(&DAT_000b4ca0)[uVar7]" identifier = (subscript_expression "(uint)(byte)(&DAT_000b4ca0)[uVar7]" (call_expression "(uint)(byte)(&DAT_000b4ca0)" (call_expression "(uint)(byte)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(byte)" ( identifier ))) (argument_list "(&DAT_000b4ca0)" ( (pointer_expression "&DAT_000b4ca0" & identifier) ))) [ identifier ])) ;) }) (else_clause "else {\n        uVar7 = uVar7 - 0xc >> 1;\n      }" else (compound_statement "{\n        uVar7 = uVar7 - 0xc >> 1;\n      }" { (expression_statement "uVar7 = uVar7 - 0xc >> 1;" (assignment_expression "uVar7 = uVar7 - 0xc >> 1" identifier = (binary_expression "uVar7 - 0xc >> 1" (binary_expression "uVar7 - 0xc" identifier - number_literal) >> number_literal)) ;) }))) (expression_statement "uVar2 = *(uint *)(iVar4 + 0x24);" (assignment_expression "uVar2 = *(uint *)(iVar4 + 0x24)" identifier = (pointer_expression "*(uint *)(iVar4 + 0x24)" * (cast_expression "(uint *)(iVar4 + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x24)" ( (binary_expression "iVar4 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "*param_1 = uVar7;" (assignment_expression "*param_1 = uVar7" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "iVar3 = *(int *)(uVar2 + 8);" (assignment_expression "iVar3 = *(int *)(uVar2 + 8)" identifier = (pointer_expression "*(int *)(uVar2 + 8)" * (cast_expression "(int *)(uVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 + 8)" ( (binary_expression "uVar2 + 8" identifier + number_literal) ))))) ;) (expression_statement "param_1[3] = uVar2;" (assignment_expression "param_1[3] = uVar2" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(byte *)(uVar2 + 1) = *(byte *)(uVar2 + 1) | 0x10;" (assignment_expression "*(byte *)(uVar2 + 1) = *(byte *)(uVar2 + 1) | 0x10" (pointer_expression "*(byte *)(uVar2 + 1)" * (cast_expression "(byte *)(uVar2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 + 1)" ( (binary_expression "uVar2 + 1" identifier + number_literal) )))) = (binary_expression "*(byte *)(uVar2 + 1) | 0x10" (pointer_expression "*(byte *)(uVar2 + 1)" * (cast_expression "(byte *)(uVar2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 + 1)" ( (binary_expression "uVar2 + 1" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "*(undefined1 *)(iVar3 + 0xb) = 1;" (assignment_expression "*(undefined1 *)(iVar3 + 0xb) = 1" (pointer_expression "*(undefined1 *)(iVar3 + 0xb)" * (cast_expression "(undefined1 *)(iVar3 + 0xb)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xb)" ( (binary_expression "iVar3 + 0xb" identifier + number_literal) )))) = number_literal) ;) (goto_statement "goto LAB_000a79af;" goto statement_identifier ;) })) (if_statement "if (uVar7 != 0) {\n      pcVar6 = "real";\n      if (uVar7 != 7) {\n        pcVar6 = "integer";\n      }\n      goto LAB_000a7a56;\n    }" if (parenthesized_expression "(uVar7 != 0)" ( (binary_expression "uVar7 != 0" identifier != number_literal) )) (compound_statement "{\n      pcVar6 = "real";\n      if (uVar7 != 7) {\n        pcVar6 = "integer";\n      }\n      goto LAB_000a7a56;\n    }" { (expression_statement "pcVar6 = "real";" (assignment_expression "pcVar6 = "real"" identifier = (string_literal ""real"" " string_content ")) ;) (if_statement "if (uVar7 != 7) {\n        pcVar6 = "integer";\n      }" if (parenthesized_expression "(uVar7 != 7)" ( (binary_expression "uVar7 != 7" identifier != number_literal) )) (compound_statement "{\n        pcVar6 = "integer";\n      }" { (expression_statement "pcVar6 = "integer";" (assignment_expression "pcVar6 = "integer"" identifier = (string_literal ""integer"" " string_content ")) ;) })) (goto_statement "goto LAB_000a7a56;" goto statement_identifier ;) })) })) (expression_statement "pcVar6 = "null";" (assignment_expression "pcVar6 = "null"" identifier = (string_literal ""null"" " string_content ")) ;) (labeled_statement "LAB_000a7a56:\n  uVar5 = FUN_0003e990(param_1[5],"cannot open value of type %s",pcVar6);" statement_identifier : (expression_statement "uVar5 = FUN_0003e990(param_1[5],"cannot open value of type %s",pcVar6);" (assignment_expression "uVar5 = FUN_0003e990(param_1[5],"cannot open value of type %s",pcVar6)" identifier = (call_expression "FUN_0003e990(param_1[5],"cannot open value of type %s",pcVar6)" identifier (argument_list "(param_1[5],"cannot open value of type %s",pcVar6)" ( (subscript_expression "param_1[5]" identifier [ number_literal ]) , (string_literal ""cannot open value of type %s"" " string_content ") , identifier )))) ;)) (expression_statement "sqlite3_finalize(param_1[4]);" (call_expression "sqlite3_finalize(param_1[4])" identifier (argument_list "(param_1[4])" ( (subscript_expression "param_1[4]" identifier [ number_literal ]) ))) ;) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_4 = uVar5;" (assignment_expression "*param_4 = uVar5" (pointer_expression "*param_4" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 blobSeekToRow(Incrblob *p,sqlite3_int64 iRow,char **pzErr)\n\n{\n  ushort uVar1;\n  Vdbe *p_00;\n  Mem *pMVar2;\n  VdbeCursor *pVVar3;\n  BtCursor *pBVar4;\n  Btree *pBVar5;\n  int iVar6;\n  char *pcVar7;\n  undefined4 in_ECX;\n  uint uVar8;\n  \n  p_00 = (Vdbe *)p->pStmt;\n  iVar6 = p_00->pc;\n  pMVar2 = p_00->aMem;\n  pMVar2[1].flags = 4;\n  pMVar2[1].u.zPType = (char *)pzErr;\n  *(undefined4 *)((int)&pMVar2[1].u + 4) = in_ECX;\n  if (iVar6 < 5) {\n    iVar6 = sqlite3_step((sqlite3_stmt *)p_00);\n  }\n  else {\n    p_00->pc = 4;\n    iVar6 = sqlite3VdbeExec(p_00);\n  }\n  if (iVar6 != 100) {\n    if (p->pStmt == (sqlite3_stmt *)0x0) {\n      pcVar7 = (char *)0x0;\n    }\n    else {\n      iVar6 = sqlite3_finalize(p->pStmt);\n      p->pStmt = (sqlite3_stmt *)0x0;\n      if (iVar6 == 0) {\n        pcVar7 = sqlite3MPrintf(p->db,"no such rowid: %lld",pzErr,in_ECX);\n        *(undefined4 *)iRow = pcVar7;\n        return 1;\n      }\n      pcVar7 = sqlite3_errmsg(p->db);\n      pcVar7 = sqlite3MPrintf(p->db,"%s",pcVar7);\n    }\nLAB_000a79af:\n    *(undefined4 *)iRow = pcVar7;\n    return iVar6;\n  }\n  pVVar3 = *p_00->apCsr;\n  uVar1 = p->iCol;\n  if (uVar1 < pVVar3->nHdrParsed) {\n    uVar8 = pVVar3->aType[uVar1];\n    if (0xb < uVar8) {\n      p->iOffset = pVVar3->aType[(int)pVVar3->nField + (uint)uVar1];\n      if (uVar8 < 0x80) {\n        uVar8 = (uint)""[uVar8];\n      }\n      else {\n        uVar8 = uVar8 - 0xc >> 1;\n      }\n      pBVar4 = (pVVar3->uc).pCursor;\n      p->nByte = uVar8;\n      pcVar7 = (char *)0x0;\n      iVar6 = 0;\n      pBVar5 = pBVar4->pBtree;\n      p->pCsr = pBVar4;\n      pBVar4->curFlags = pBVar4->curFlags | 0x10;\n      pBVar5->hasIncrblobCur = '\x01';\n      goto LAB_000a79af;\n    }\n    if (uVar8 != 0) {\n      pcVar7 = "real";\n      if (uVar8 != 7) {\n        pcVar7 = "integer";\n      }\n      goto LAB_000a7a56;\n    }\n  }\n  pcVar7 = "null";\nLAB_000a7a56:\n  pcVar7 = sqlite3MPrintf(p->db,"cannot open value of type %s",pcVar7);\n  sqlite3_finalize(p->pStmt);\n  p->pStmt = (sqlite3_stmt *)0x0;\n  *(undefined4 *)iRow = pcVar7;\n  return 1;\n}\n\n" comment (function_definition "int __regparm3 blobSeekToRow(Incrblob *p,sqlite3_int64 iRow,char **pzErr)\n\n{\n  ushort uVar1;\n  Vdbe *p_00;\n  Mem *pMVar2;\n  VdbeCursor *pVVar3;\n  BtCursor *pBVar4;\n  Btree *pBVar5;\n  int iVar6;\n  char *pcVar7;\n  undefined4 in_ECX;\n  uint uVar8;\n  \n  p_00 = (Vdbe *)p->pStmt;\n  iVar6 = p_00->pc;\n  pMVar2 = p_00->aMem;\n  pMVar2[1].flags = 4;\n  pMVar2[1].u.zPType = (char *)pzErr;\n  *(undefined4 *)((int)&pMVar2[1].u + 4) = in_ECX;\n  if (iVar6 < 5) {\n    iVar6 = sqlite3_step((sqlite3_stmt *)p_00);\n  }\n  else {\n    p_00->pc = 4;\n    iVar6 = sqlite3VdbeExec(p_00);\n  }\n  if (iVar6 != 100) {\n    if (p->pStmt == (sqlite3_stmt *)0x0) {\n      pcVar7 = (char *)0x0;\n    }\n    else {\n      iVar6 = sqlite3_finalize(p->pStmt);\n      p->pStmt = (sqlite3_stmt *)0x0;\n      if (iVar6 == 0) {\n        pcVar7 = sqlite3MPrintf(p->db,"no such rowid: %lld",pzErr,in_ECX);\n        *(undefined4 *)iRow = pcVar7;\n        return 1;\n      }\n      pcVar7 = sqlite3_errmsg(p->db);\n      pcVar7 = sqlite3MPrintf(p->db,"%s",pcVar7);\n    }\nLAB_000a79af:\n    *(undefined4 *)iRow = pcVar7;\n    return iVar6;\n  }\n  pVVar3 = *p_00->apCsr;\n  uVar1 = p->iCol;\n  if (uVar1 < pVVar3->nHdrParsed) {\n    uVar8 = pVVar3->aType[uVar1];\n    if (0xb < uVar8) {\n      p->iOffset = pVVar3->aType[(int)pVVar3->nField + (uint)uVar1];\n      if (uVar8 < 0x80) {\n        uVar8 = (uint)""[uVar8];\n      }\n      else {\n        uVar8 = uVar8 - 0xc >> 1;\n      }\n      pBVar4 = (pVVar3->uc).pCursor;\n      p->nByte = uVar8;\n      pcVar7 = (char *)0x0;\n      iVar6 = 0;\n      pBVar5 = pBVar4->pBtree;\n      p->pCsr = pBVar4;\n      pBVar4->curFlags = pBVar4->curFlags | 0x10;\n      pBVar5->hasIncrblobCur = '\x01';\n      goto LAB_000a79af;\n    }\n    if (uVar8 != 0) {\n      pcVar7 = "real";\n      if (uVar8 != 7) {\n        pcVar7 = "integer";\n      }\n      goto LAB_000a7a56;\n    }\n  }\n  pcVar7 = "null";\nLAB_000a7a56:\n  pcVar7 = sqlite3MPrintf(p->db,"cannot open value of type %s",pcVar7);\n  sqlite3_finalize(p->pStmt);\n  p->pStmt = (sqlite3_stmt *)0x0;\n  *(undefined4 *)iRow = pcVar7;\n  return 1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "blobSeekToRow(Incrblob *p,sqlite3_int64 iRow,char **pzErr)" identifier (parameter_list "(Incrblob *p,sqlite3_int64 iRow,char **pzErr)" ( (parameter_declaration "Incrblob *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "sqlite3_int64 iRow" type_identifier identifier) , (parameter_declaration "char **pzErr" primitive_type (pointer_declarator "**pzErr" * (pointer_declarator "*pzErr" * identifier))) ))) (compound_statement "{\n  ushort uVar1;\n  Vdbe *p_00;\n  Mem *pMVar2;\n  VdbeCursor *pVVar3;\n  BtCursor *pBVar4;\n  Btree *pBVar5;\n  int iVar6;\n  char *pcVar7;\n  undefined4 in_ECX;\n  uint uVar8;\n  \n  p_00 = (Vdbe *)p->pStmt;\n  iVar6 = p_00->pc;\n  pMVar2 = p_00->aMem;\n  pMVar2[1].flags = 4;\n  pMVar2[1].u.zPType = (char *)pzErr;\n  *(undefined4 *)((int)&pMVar2[1].u + 4) = in_ECX;\n  if (iVar6 < 5) {\n    iVar6 = sqlite3_step((sqlite3_stmt *)p_00);\n  }\n  else {\n    p_00->pc = 4;\n    iVar6 = sqlite3VdbeExec(p_00);\n  }\n  if (iVar6 != 100) {\n    if (p->pStmt == (sqlite3_stmt *)0x0) {\n      pcVar7 = (char *)0x0;\n    }\n    else {\n      iVar6 = sqlite3_finalize(p->pStmt);\n      p->pStmt = (sqlite3_stmt *)0x0;\n      if (iVar6 == 0) {\n        pcVar7 = sqlite3MPrintf(p->db,"no such rowid: %lld",pzErr,in_ECX);\n        *(undefined4 *)iRow = pcVar7;\n        return 1;\n      }\n      pcVar7 = sqlite3_errmsg(p->db);\n      pcVar7 = sqlite3MPrintf(p->db,"%s",pcVar7);\n    }\nLAB_000a79af:\n    *(undefined4 *)iRow = pcVar7;\n    return iVar6;\n  }\n  pVVar3 = *p_00->apCsr;\n  uVar1 = p->iCol;\n  if (uVar1 < pVVar3->nHdrParsed) {\n    uVar8 = pVVar3->aType[uVar1];\n    if (0xb < uVar8) {\n      p->iOffset = pVVar3->aType[(int)pVVar3->nField + (uint)uVar1];\n      if (uVar8 < 0x80) {\n        uVar8 = (uint)""[uVar8];\n      }\n      else {\n        uVar8 = uVar8 - 0xc >> 1;\n      }\n      pBVar4 = (pVVar3->uc).pCursor;\n      p->nByte = uVar8;\n      pcVar7 = (char *)0x0;\n      iVar6 = 0;\n      pBVar5 = pBVar4->pBtree;\n      p->pCsr = pBVar4;\n      pBVar4->curFlags = pBVar4->curFlags | 0x10;\n      pBVar5->hasIncrblobCur = '\x01';\n      goto LAB_000a79af;\n    }\n    if (uVar8 != 0) {\n      pcVar7 = "real";\n      if (uVar8 != 7) {\n        pcVar7 = "integer";\n      }\n      goto LAB_000a7a56;\n    }\n  }\n  pcVar7 = "null";\nLAB_000a7a56:\n  pcVar7 = sqlite3MPrintf(p->db,"cannot open value of type %s",pcVar7);\n  sqlite3_finalize(p->pStmt);\n  p->pStmt = (sqlite3_stmt *)0x0;\n  *(undefined4 *)iRow = pcVar7;\n  return 1;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "Vdbe *p_00;" type_identifier (pointer_declarator "*p_00" * identifier) ;) (declaration "Mem *pMVar2;" type_identifier (pointer_declarator "*pMVar2" * identifier) ;) (declaration "VdbeCursor *pVVar3;" type_identifier (pointer_declarator "*pVVar3" * identifier) ;) (declaration "BtCursor *pBVar4;" type_identifier (pointer_declarator "*pBVar4" * identifier) ;) (declaration "Btree *pBVar5;" type_identifier (pointer_declarator "*pBVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "undefined4 in_ECX;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (expression_statement "p_00 = (Vdbe *)p->pStmt;" (assignment_expression "p_00 = (Vdbe *)p->pStmt" identifier = (cast_expression "(Vdbe *)p->pStmt" ( (type_descriptor "Vdbe *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "p->pStmt" identifier -> field_identifier))) ;) (expression_statement "iVar6 = p_00->pc;" (assignment_expression "iVar6 = p_00->pc" identifier = (field_expression "p_00->pc" identifier -> field_identifier)) ;) (expression_statement "pMVar2 = p_00->aMem;" (assignment_expression "pMVar2 = p_00->aMem" identifier = (field_expression "p_00->aMem" identifier -> field_identifier)) ;) (expression_statement "pMVar2[1].flags = 4;" (assignment_expression "pMVar2[1].flags = 4" (field_expression "pMVar2[1].flags" (subscript_expression "pMVar2[1]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "pMVar2[1].u.zPType = (char *)pzErr;" (assignment_expression "pMVar2[1].u.zPType = (char *)pzErr" (field_expression "pMVar2[1].u.zPType" (field_expression "pMVar2[1].u" (subscript_expression "pMVar2[1]" identifier [ number_literal ]) . field_identifier) . field_identifier) = (cast_expression "(char *)pzErr" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "*(undefined4 *)((int)&pMVar2[1].u + 4) = in_ECX;" (assignment_expression "*(undefined4 *)((int)&pMVar2[1].u + 4) = in_ECX" (pointer_expression "*(undefined4 *)((int)&pMVar2[1].u + 4)" * (cast_expression "(undefined4 *)((int)&pMVar2[1].u + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pMVar2[1].u + 4)" ( (binary_expression "(int)&pMVar2[1].u + 4" (cast_expression "(int)&pMVar2[1].u" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pMVar2[1].u" & (field_expression "pMVar2[1].u" (subscript_expression "pMVar2[1]" identifier [ number_literal ]) . field_identifier))) + number_literal) )))) = identifier) ;) (if_statement "if (iVar6 < 5) {\n    iVar6 = sqlite3_step((sqlite3_stmt *)p_00);\n  }\n  else {\n    p_00->pc = 4;\n    iVar6 = sqlite3VdbeExec(p_00);\n  }" if (parenthesized_expression "(iVar6 < 5)" ( (binary_expression "iVar6 < 5" identifier < number_literal) )) (compound_statement "{\n    iVar6 = sqlite3_step((sqlite3_stmt *)p_00);\n  }" { (expression_statement "iVar6 = sqlite3_step((sqlite3_stmt *)p_00);" (assignment_expression "iVar6 = sqlite3_step((sqlite3_stmt *)p_00)" identifier = (call_expression "sqlite3_step((sqlite3_stmt *)p_00)" identifier (argument_list "((sqlite3_stmt *)p_00)" ( (cast_expression "(sqlite3_stmt *)p_00" ( (type_descriptor "sqlite3_stmt *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) }) (else_clause "else {\n    p_00->pc = 4;\n    iVar6 = sqlite3VdbeExec(p_00);\n  }" else (compound_statement "{\n    p_00->pc = 4;\n    iVar6 = sqlite3VdbeExec(p_00);\n  }" { (expression_statement "p_00->pc = 4;" (assignment_expression "p_00->pc = 4" (field_expression "p_00->pc" identifier -> field_identifier) = number_literal) ;) (expression_statement "iVar6 = sqlite3VdbeExec(p_00);" (assignment_expression "iVar6 = sqlite3VdbeExec(p_00)" identifier = (call_expression "sqlite3VdbeExec(p_00)" identifier (argument_list "(p_00)" ( identifier )))) ;) }))) (if_statement "if (iVar6 != 100) {\n    if (p->pStmt == (sqlite3_stmt *)0x0) {\n      pcVar7 = (char *)0x0;\n    }\n    else {\n      iVar6 = sqlite3_finalize(p->pStmt);\n      p->pStmt = (sqlite3_stmt *)0x0;\n      if (iVar6 == 0) {\n        pcVar7 = sqlite3MPrintf(p->db,"no such rowid: %lld",pzErr,in_ECX);\n        *(undefined4 *)iRow = pcVar7;\n        return 1;\n      }\n      pcVar7 = sqlite3_errmsg(p->db);\n      pcVar7 = sqlite3MPrintf(p->db,"%s",pcVar7);\n    }\nLAB_000a79af:\n    *(undefined4 *)iRow = pcVar7;\n    return iVar6;\n  }" if (parenthesized_expression "(iVar6 != 100)" ( (binary_expression "iVar6 != 100" identifier != number_literal) )) (compound_statement "{\n    if (p->pStmt == (sqlite3_stmt *)0x0) {\n      pcVar7 = (char *)0x0;\n    }\n    else {\n      iVar6 = sqlite3_finalize(p->pStmt);\n      p->pStmt = (sqlite3_stmt *)0x0;\n      if (iVar6 == 0) {\n        pcVar7 = sqlite3MPrintf(p->db,"no such rowid: %lld",pzErr,in_ECX);\n        *(undefined4 *)iRow = pcVar7;\n        return 1;\n      }\n      pcVar7 = sqlite3_errmsg(p->db);\n      pcVar7 = sqlite3MPrintf(p->db,"%s",pcVar7);\n    }\nLAB_000a79af:\n    *(undefined4 *)iRow = pcVar7;\n    return iVar6;\n  }" { (if_statement "if (p->pStmt == (sqlite3_stmt *)0x0) {\n      pcVar7 = (char *)0x0;\n    }\n    else {\n      iVar6 = sqlite3_finalize(p->pStmt);\n      p->pStmt = (sqlite3_stmt *)0x0;\n      if (iVar6 == 0) {\n        pcVar7 = sqlite3MPrintf(p->db,"no such rowid: %lld",pzErr,in_ECX);\n        *(undefined4 *)iRow = pcVar7;\n        return 1;\n      }\n      pcVar7 = sqlite3_errmsg(p->db);\n      pcVar7 = sqlite3MPrintf(p->db,"%s",pcVar7);\n    }" if (parenthesized_expression "(p->pStmt == (sqlite3_stmt *)0x0)" ( (binary_expression "p->pStmt == (sqlite3_stmt *)0x0" (field_expression "p->pStmt" identifier -> field_identifier) == (cast_expression "(sqlite3_stmt *)0x0" ( (type_descriptor "sqlite3_stmt *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pcVar7 = (char *)0x0;\n    }" { (expression_statement "pcVar7 = (char *)0x0;" (assignment_expression "pcVar7 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n      iVar6 = sqlite3_finalize(p->pStmt);\n      p->pStmt = (sqlite3_stmt *)0x0;\n      if (iVar6 == 0) {\n        pcVar7 = sqlite3MPrintf(p->db,"no such rowid: %lld",pzErr,in_ECX);\n        *(undefined4 *)iRow = pcVar7;\n        return 1;\n      }\n      pcVar7 = sqlite3_errmsg(p->db);\n      pcVar7 = sqlite3MPrintf(p->db,"%s",pcVar7);\n    }" else (compound_statement "{\n      iVar6 = sqlite3_finalize(p->pStmt);\n      p->pStmt = (sqlite3_stmt *)0x0;\n      if (iVar6 == 0) {\n        pcVar7 = sqlite3MPrintf(p->db,"no such rowid: %lld",pzErr,in_ECX);\n        *(undefined4 *)iRow = pcVar7;\n        return 1;\n      }\n      pcVar7 = sqlite3_errmsg(p->db);\n      pcVar7 = sqlite3MPrintf(p->db,"%s",pcVar7);\n    }" { (expression_statement "iVar6 = sqlite3_finalize(p->pStmt);" (assignment_expression "iVar6 = sqlite3_finalize(p->pStmt)" identifier = (call_expression "sqlite3_finalize(p->pStmt)" identifier (argument_list "(p->pStmt)" ( (field_expression "p->pStmt" identifier -> field_identifier) )))) ;) (expression_statement "p->pStmt = (sqlite3_stmt *)0x0;" (assignment_expression "p->pStmt = (sqlite3_stmt *)0x0" (field_expression "p->pStmt" identifier -> field_identifier) = (cast_expression "(sqlite3_stmt *)0x0" ( (type_descriptor "sqlite3_stmt *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (iVar6 == 0) {\n        pcVar7 = sqlite3MPrintf(p->db,"no such rowid: %lld",pzErr,in_ECX);\n        *(undefined4 *)iRow = pcVar7;\n        return 1;\n      }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n        pcVar7 = sqlite3MPrintf(p->db,"no such rowid: %lld",pzErr,in_ECX);\n        *(undefined4 *)iRow = pcVar7;\n        return 1;\n      }" { (expression_statement "pcVar7 = sqlite3MPrintf(p->db,"no such rowid: %lld",pzErr,in_ECX);" (assignment_expression "pcVar7 = sqlite3MPrintf(p->db,"no such rowid: %lld",pzErr,in_ECX)" identifier = (call_expression "sqlite3MPrintf(p->db,"no such rowid: %lld",pzErr,in_ECX)" identifier (argument_list "(p->db,"no such rowid: %lld",pzErr,in_ECX)" ( (field_expression "p->db" identifier -> field_identifier) , (string_literal ""no such rowid: %lld"" " string_content ") , identifier , identifier )))) ;) (expression_statement "*(undefined4 *)iRow = pcVar7;" (assignment_expression "*(undefined4 *)iRow = pcVar7" (pointer_expression "*(undefined4 *)iRow" * (cast_expression "(undefined4 *)iRow" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "pcVar7 = sqlite3_errmsg(p->db);" (assignment_expression "pcVar7 = sqlite3_errmsg(p->db)" identifier = (call_expression "sqlite3_errmsg(p->db)" identifier (argument_list "(p->db)" ( (field_expression "p->db" identifier -> field_identifier) )))) ;) (expression_statement "pcVar7 = sqlite3MPrintf(p->db,"%s",pcVar7);" (assignment_expression "pcVar7 = sqlite3MPrintf(p->db,"%s",pcVar7)" identifier = (call_expression "sqlite3MPrintf(p->db,"%s",pcVar7)" identifier (argument_list "(p->db,"%s",pcVar7)" ( (field_expression "p->db" identifier -> field_identifier) , (string_literal ""%s"" " string_content ") , identifier )))) ;) }))) (labeled_statement "LAB_000a79af:\n    *(undefined4 *)iRow = pcVar7;" statement_identifier : (expression_statement "*(undefined4 *)iRow = pcVar7;" (assignment_expression "*(undefined4 *)iRow = pcVar7" (pointer_expression "*(undefined4 *)iRow" * (cast_expression "(undefined4 *)iRow" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;)) (return_statement "return iVar6;" return identifier ;) })) (expression_statement "pVVar3 = *p_00->apCsr;" (assignment_expression "pVVar3 = *p_00->apCsr" identifier = (pointer_expression "*p_00->apCsr" * (field_expression "p_00->apCsr" identifier -> field_identifier))) ;) (expression_statement "uVar1 = p->iCol;" (assignment_expression "uVar1 = p->iCol" identifier = (field_expression "p->iCol" identifier -> field_identifier)) ;) (if_statement "if (uVar1 < pVVar3->nHdrParsed) {\n    uVar8 = pVVar3->aType[uVar1];\n    if (0xb < uVar8) {\n      p->iOffset = pVVar3->aType[(int)pVVar3->nField + (uint)uVar1];\n      if (uVar8 < 0x80) {\n        uVar8 = (uint)""[uVar8];\n      }\n      else {\n        uVar8 = uVar8 - 0xc >> 1;\n      }\n      pBVar4 = (pVVar3->uc).pCursor;\n      p->nByte = uVar8;\n      pcVar7 = (char *)0x0;\n      iVar6 = 0;\n      pBVar5 = pBVar4->pBtree;\n      p->pCsr = pBVar4;\n      pBVar4->curFlags = pBVar4->curFlags | 0x10;\n      pBVar5->hasIncrblobCur = '\x01';\n      goto LAB_000a79af;\n    }\n    if (uVar8 != 0) {\n      pcVar7 = "real";\n      if (uVar8 != 7) {\n        pcVar7 = "integer";\n      }\n      goto LAB_000a7a56;\n    }\n  }" if (parenthesized_expression "(uVar1 < pVVar3->nHdrParsed)" ( (binary_expression "uVar1 < pVVar3->nHdrParsed" identifier < (field_expression "pVVar3->nHdrParsed" identifier -> field_identifier)) )) (compound_statement "{\n    uVar8 = pVVar3->aType[uVar1];\n    if (0xb < uVar8) {\n      p->iOffset = pVVar3->aType[(int)pVVar3->nField + (uint)uVar1];\n      if (uVar8 < 0x80) {\n        uVar8 = (uint)""[uVar8];\n      }\n      else {\n        uVar8 = uVar8 - 0xc >> 1;\n      }\n      pBVar4 = (pVVar3->uc).pCursor;\n      p->nByte = uVar8;\n      pcVar7 = (char *)0x0;\n      iVar6 = 0;\n      pBVar5 = pBVar4->pBtree;\n      p->pCsr = pBVar4;\n      pBVar4->curFlags = pBVar4->curFlags | 0x10;\n      pBVar5->hasIncrblobCur = '\x01';\n      goto LAB_000a79af;\n    }\n    if (uVar8 != 0) {\n      pcVar7 = "real";\n      if (uVar8 != 7) {\n        pcVar7 = "integer";\n      }\n      goto LAB_000a7a56;\n    }\n  }" { (expression_statement "uVar8 = pVVar3->aType[uVar1];" (assignment_expression "uVar8 = pVVar3->aType[uVar1]" identifier = (subscript_expression "pVVar3->aType[uVar1]" (field_expression "pVVar3->aType" identifier -> field_identifier) [ identifier ])) ;) (if_statement "if (0xb < uVar8) {\n      p->iOffset = pVVar3->aType[(int)pVVar3->nField + (uint)uVar1];\n      if (uVar8 < 0x80) {\n        uVar8 = (uint)""[uVar8];\n      }\n      else {\n        uVar8 = uVar8 - 0xc >> 1;\n      }\n      pBVar4 = (pVVar3->uc).pCursor;\n      p->nByte = uVar8;\n      pcVar7 = (char *)0x0;\n      iVar6 = 0;\n      pBVar5 = pBVar4->pBtree;\n      p->pCsr = pBVar4;\n      pBVar4->curFlags = pBVar4->curFlags | 0x10;\n      pBVar5->hasIncrblobCur = '\x01';\n      goto LAB_000a79af;\n    }" if (parenthesized_expression "(0xb < uVar8)" ( (binary_expression "0xb < uVar8" number_literal < identifier) )) (compound_statement "{\n      p->iOffset = pVVar3->aType[(int)pVVar3->nField + (uint)uVar1];\n      if (uVar8 < 0x80) {\n        uVar8 = (uint)""[uVar8];\n      }\n      else {\n        uVar8 = uVar8 - 0xc >> 1;\n      }\n      pBVar4 = (pVVar3->uc).pCursor;\n      p->nByte = uVar8;\n      pcVar7 = (char *)0x0;\n      iVar6 = 0;\n      pBVar5 = pBVar4->pBtree;\n      p->pCsr = pBVar4;\n      pBVar4->curFlags = pBVar4->curFlags | 0x10;\n      pBVar5->hasIncrblobCur = '\x01';\n      goto LAB_000a79af;\n    }" { (expression_statement "p->iOffset = pVVar3->aType[(int)pVVar3->nField + (uint)uVar1];" (assignment_expression "p->iOffset = pVVar3->aType[(int)pVVar3->nField + (uint)uVar1]" (field_expression "p->iOffset" identifier -> field_identifier) = (subscript_expression "pVVar3->aType[(int)pVVar3->nField + (uint)uVar1]" (field_expression "pVVar3->aType" identifier -> field_identifier) [ (binary_expression "(int)pVVar3->nField + (uint)uVar1" (cast_expression "(int)pVVar3->nField" ( (type_descriptor "int" primitive_type) ) (field_expression "pVVar3->nField" identifier -> field_identifier)) + (cast_expression "(uint)uVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ])) ;) (if_statement "if (uVar8 < 0x80) {\n        uVar8 = (uint)""[uVar8];\n      }\n      else {\n        uVar8 = uVar8 - 0xc >> 1;\n      }" if (parenthesized_expression "(uVar8 < 0x80)" ( (binary_expression "uVar8 < 0x80" identifier < number_literal) )) (compound_statement "{\n        uVar8 = (uint)""[uVar8];\n      }" { (expression_statement "uVar8 = (uint)""[uVar8];" (assignment_expression "uVar8 = (uint)""[uVar8]" identifier = (cast_expression "(uint)""[uVar8]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression """[uVar8]" (string_literal """" " ") [ identifier ]))) ;) }) (else_clause "else {\n        uVar8 = uVar8 - 0xc >> 1;\n      }" else (compound_statement "{\n        uVar8 = uVar8 - 0xc >> 1;\n      }" { (expression_statement "uVar8 = uVar8 - 0xc >> 1;" (assignment_expression "uVar8 = uVar8 - 0xc >> 1" identifier = (binary_expression "uVar8 - 0xc >> 1" (binary_expression "uVar8 - 0xc" identifier - number_literal) >> number_literal)) ;) }))) (expression_statement "pBVar4 = (pVVar3->uc).pCursor;" (assignment_expression "pBVar4 = (pVVar3->uc).pCursor" identifier = (field_expression "(pVVar3->uc).pCursor" (parenthesized_expression "(pVVar3->uc)" ( (field_expression "pVVar3->uc" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "p->nByte = uVar8;" (assignment_expression "p->nByte = uVar8" (field_expression "p->nByte" identifier -> field_identifier) = identifier) ;) (expression_statement "pcVar7 = (char *)0x0;" (assignment_expression "pcVar7 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "pBVar5 = pBVar4->pBtree;" (assignment_expression "pBVar5 = pBVar4->pBtree" identifier = (field_expression "pBVar4->pBtree" identifier -> field_identifier)) ;) (expression_statement "p->pCsr = pBVar4;" (assignment_expression "p->pCsr = pBVar4" (field_expression "p->pCsr" identifier -> field_identifier) = identifier) ;) (expression_statement "pBVar4->curFlags = pBVar4->curFlags | 0x10;" (assignment_expression "pBVar4->curFlags = pBVar4->curFlags | 0x10" (field_expression "pBVar4->curFlags" identifier -> field_identifier) = (binary_expression "pBVar4->curFlags | 0x10" (field_expression "pBVar4->curFlags" identifier -> field_identifier) | number_literal)) ;) (expression_statement "pBVar5->hasIncrblobCur = '\x01';" (assignment_expression "pBVar5->hasIncrblobCur = '\x01'" (field_expression "pBVar5->hasIncrblobCur" identifier -> field_identifier) = (char_literal "'\x01'" ' escape_sequence ')) ;) (goto_statement "goto LAB_000a79af;" goto statement_identifier ;) })) (if_statement "if (uVar8 != 0) {\n      pcVar7 = "real";\n      if (uVar8 != 7) {\n        pcVar7 = "integer";\n      }\n      goto LAB_000a7a56;\n    }" if (parenthesized_expression "(uVar8 != 0)" ( (binary_expression "uVar8 != 0" identifier != number_literal) )) (compound_statement "{\n      pcVar7 = "real";\n      if (uVar8 != 7) {\n        pcVar7 = "integer";\n      }\n      goto LAB_000a7a56;\n    }" { (expression_statement "pcVar7 = "real";" (assignment_expression "pcVar7 = "real"" identifier = (string_literal ""real"" " string_content ")) ;) (if_statement "if (uVar8 != 7) {\n        pcVar7 = "integer";\n      }" if (parenthesized_expression "(uVar8 != 7)" ( (binary_expression "uVar8 != 7" identifier != number_literal) )) (compound_statement "{\n        pcVar7 = "integer";\n      }" { (expression_statement "pcVar7 = "integer";" (assignment_expression "pcVar7 = "integer"" identifier = (string_literal ""integer"" " string_content ")) ;) })) (goto_statement "goto LAB_000a7a56;" goto statement_identifier ;) })) })) (expression_statement "pcVar7 = "null";" (assignment_expression "pcVar7 = "null"" identifier = (string_literal ""null"" " string_content ")) ;) (labeled_statement "LAB_000a7a56:\n  pcVar7 = sqlite3MPrintf(p->db,"cannot open value of type %s",pcVar7);" statement_identifier : (expression_statement "pcVar7 = sqlite3MPrintf(p->db,"cannot open value of type %s",pcVar7);" (assignment_expression "pcVar7 = sqlite3MPrintf(p->db,"cannot open value of type %s",pcVar7)" identifier = (call_expression "sqlite3MPrintf(p->db,"cannot open value of type %s",pcVar7)" identifier (argument_list "(p->db,"cannot open value of type %s",pcVar7)" ( (field_expression "p->db" identifier -> field_identifier) , (string_literal ""cannot open value of type %s"" " string_content ") , identifier )))) ;)) (expression_statement "sqlite3_finalize(p->pStmt);" (call_expression "sqlite3_finalize(p->pStmt)" identifier (argument_list "(p->pStmt)" ( (field_expression "p->pStmt" identifier -> field_identifier) ))) ;) (expression_statement "p->pStmt = (sqlite3_stmt *)0x0;" (assignment_expression "p->pStmt = (sqlite3_stmt *)0x0" (field_expression "p->pStmt" identifier -> field_identifier) = (cast_expression "(sqlite3_stmt *)0x0" ( (type_descriptor "sqlite3_stmt *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "*(undefined4 *)iRow = pcVar7;" (assignment_expression "*(undefined4 *)iRow = pcVar7" (pointer_expression "*(undefined4 *)iRow" * (cast_expression "(undefined4 *)iRow" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "int __regparm3 FUN_000a7900(uint *param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)\n\n{\n  ushort uVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  char *pcVar6;\n  uint uVar7;\n  \n  uVar7 = param_1[4];\n  iVar3 = *(int *)(uVar7 + 0x24);\n  iVar4 = *(int *)(uVar7 + 0x54);\n  *(undefined2 *)(iVar4 + 0x30) = 4;\n  *(undefined4 *)(iVar4 + 0x28) = param_2;\n  *(undefined4 *)(iVar4 + 0x2c) = param_3;\n  if (iVar3 < 5) {\n    iVar4 = sqlite3_step(uVar7);\n  }\n  else {\n    *(undefined4 *)(uVar7 + 0x24) = 4;\n    iVar4 = FUN_00083fd0();\n  }\n  if (iVar4 != 100) {\n    if (param_1[4] == 0) {\n      uVar5 = 0;\n    }\n    else {\n      iVar4 = sqlite3_finalize(param_1[4]);\n      param_1[4] = 0;\n      if (iVar4 == 0) {\n        uVar5 = FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3);\n        *param_4 = uVar5;\n        return 1;\n      }\n      uVar5 = sqlite3_errmsg(param_1[5]);\n      uVar5 = FUN_0003e990(param_1[5],&DAT_000aa41d,uVar5);\n    }\nLAB_000a79af:\n    *param_4 = uVar5;\n    return iVar4;\n  }\n  iVar4 = **(int **)(uVar7 + 0x5c);\n  uVar1 = (ushort)param_1[2];\n  if (uVar1 < *(ushort *)(iVar4 + 0x36)) {\n    uVar7 = *(uint *)(iVar4 + 0x50 + (uint)uVar1 * 4);\n    if (0xb < uVar7) {\n      param_1[1] = *(uint *)(iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4);\n      if (uVar7 < 0x80) {\n        uVar7 = (uint)(byte)(&DAT_000b4ca0)[uVar7];\n      }\n      else {\n        uVar7 = uVar7 - 0xc >> 1;\n      }\n      uVar2 = *(uint *)(iVar4 + 0x24);\n      *param_1 = uVar7;\n      uVar5 = 0;\n      iVar4 = 0;\n      iVar3 = *(int *)(uVar2 + 8);\n      param_1[3] = uVar2;\n      *(byte *)(uVar2 + 1) = *(byte *)(uVar2 + 1) | 0x10;\n      *(undefined1 *)(iVar3 + 0xb) = 1;\n      goto LAB_000a79af;\n    }\n    if (uVar7 != 0) {\n      pcVar6 = "real";\n      if (uVar7 != 7) {\n        pcVar6 = "integer";\n      }\n      goto LAB_000a7a56;\n    }\n  }\n  pcVar6 = "null";\nLAB_000a7a56:\n  uVar5 = FUN_0003e990(param_1[5],"cannot open value of type %s",pcVar6);\n  sqlite3_finalize(param_1[4]);\n  param_1[4] = 0;\n  *param_4 = uVar5;\n  return 1;\n}\n\n" (function_definition "int __regparm3 FUN_000a7900(uint *param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)\n\n{\n  ushort uVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  char *pcVar6;\n  uint uVar7;\n  \n  uVar7 = param_1[4];\n  iVar3 = *(int *)(uVar7 + 0x24);\n  iVar4 = *(int *)(uVar7 + 0x54);\n  *(undefined2 *)(iVar4 + 0x30) = 4;\n  *(undefined4 *)(iVar4 + 0x28) = param_2;\n  *(undefined4 *)(iVar4 + 0x2c) = param_3;\n  if (iVar3 < 5) {\n    iVar4 = sqlite3_step(uVar7);\n  }\n  else {\n    *(undefined4 *)(uVar7 + 0x24) = 4;\n    iVar4 = FUN_00083fd0();\n  }\n  if (iVar4 != 100) {\n    if (param_1[4] == 0) {\n      uVar5 = 0;\n    }\n    else {\n      iVar4 = sqlite3_finalize(param_1[4]);\n      param_1[4] = 0;\n      if (iVar4 == 0) {\n        uVar5 = FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3);\n        *param_4 = uVar5;\n        return 1;\n      }\n      uVar5 = sqlite3_errmsg(param_1[5]);\n      uVar5 = FUN_0003e990(param_1[5],&DAT_000aa41d,uVar5);\n    }\nLAB_000a79af:\n    *param_4 = uVar5;\n    return iVar4;\n  }\n  iVar4 = **(int **)(uVar7 + 0x5c);\n  uVar1 = (ushort)param_1[2];\n  if (uVar1 < *(ushort *)(iVar4 + 0x36)) {\n    uVar7 = *(uint *)(iVar4 + 0x50 + (uint)uVar1 * 4);\n    if (0xb < uVar7) {\n      param_1[1] = *(uint *)(iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4);\n      if (uVar7 < 0x80) {\n        uVar7 = (uint)(byte)(&DAT_000b4ca0)[uVar7];\n      }\n      else {\n        uVar7 = uVar7 - 0xc >> 1;\n      }\n      uVar2 = *(uint *)(iVar4 + 0x24);\n      *param_1 = uVar7;\n      uVar5 = 0;\n      iVar4 = 0;\n      iVar3 = *(int *)(uVar2 + 8);\n      param_1[3] = uVar2;\n      *(byte *)(uVar2 + 1) = *(byte *)(uVar2 + 1) | 0x10;\n      *(undefined1 *)(iVar3 + 0xb) = 1;\n      goto LAB_000a79af;\n    }\n    if (uVar7 != 0) {\n      pcVar6 = "real";\n      if (uVar7 != 7) {\n        pcVar6 = "integer";\n      }\n      goto LAB_000a7a56;\n    }\n  }\n  pcVar6 = "null";\nLAB_000a7a56:\n  uVar5 = FUN_0003e990(param_1[5],"cannot open value of type %s",pcVar6);\n  sqlite3_finalize(param_1[4]);\n  param_1[4] = 0;\n  *param_4 = uVar5;\n  return 1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000a7900(uint *param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" identifier (parameter_list "(uint *param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  ushort uVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  char *pcVar6;\n  uint uVar7;\n  \n  uVar7 = param_1[4];\n  iVar3 = *(int *)(uVar7 + 0x24);\n  iVar4 = *(int *)(uVar7 + 0x54);\n  *(undefined2 *)(iVar4 + 0x30) = 4;\n  *(undefined4 *)(iVar4 + 0x28) = param_2;\n  *(undefined4 *)(iVar4 + 0x2c) = param_3;\n  if (iVar3 < 5) {\n    iVar4 = sqlite3_step(uVar7);\n  }\n  else {\n    *(undefined4 *)(uVar7 + 0x24) = 4;\n    iVar4 = FUN_00083fd0();\n  }\n  if (iVar4 != 100) {\n    if (param_1[4] == 0) {\n      uVar5 = 0;\n    }\n    else {\n      iVar4 = sqlite3_finalize(param_1[4]);\n      param_1[4] = 0;\n      if (iVar4 == 0) {\n        uVar5 = FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3);\n        *param_4 = uVar5;\n        return 1;\n      }\n      uVar5 = sqlite3_errmsg(param_1[5]);\n      uVar5 = FUN_0003e990(param_1[5],&DAT_000aa41d,uVar5);\n    }\nLAB_000a79af:\n    *param_4 = uVar5;\n    return iVar4;\n  }\n  iVar4 = **(int **)(uVar7 + 0x5c);\n  uVar1 = (ushort)param_1[2];\n  if (uVar1 < *(ushort *)(iVar4 + 0x36)) {\n    uVar7 = *(uint *)(iVar4 + 0x50 + (uint)uVar1 * 4);\n    if (0xb < uVar7) {\n      param_1[1] = *(uint *)(iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4);\n      if (uVar7 < 0x80) {\n        uVar7 = (uint)(byte)(&DAT_000b4ca0)[uVar7];\n      }\n      else {\n        uVar7 = uVar7 - 0xc >> 1;\n      }\n      uVar2 = *(uint *)(iVar4 + 0x24);\n      *param_1 = uVar7;\n      uVar5 = 0;\n      iVar4 = 0;\n      iVar3 = *(int *)(uVar2 + 8);\n      param_1[3] = uVar2;\n      *(byte *)(uVar2 + 1) = *(byte *)(uVar2 + 1) | 0x10;\n      *(undefined1 *)(iVar3 + 0xb) = 1;\n      goto LAB_000a79af;\n    }\n    if (uVar7 != 0) {\n      pcVar6 = "real";\n      if (uVar7 != 7) {\n        pcVar6 = "integer";\n      }\n      goto LAB_000a7a56;\n    }\n  }\n  pcVar6 = "null";\nLAB_000a7a56:\n  uVar5 = FUN_0003e990(param_1[5],"cannot open value of type %s",pcVar6);\n  sqlite3_finalize(param_1[4]);\n  param_1[4] = 0;\n  *param_4 = uVar5;\n  return 1;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "uint uVar7;" type_identifier identifier ;) (expression_statement "uVar7 = param_1[4];" (assignment_expression "uVar7 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (expression_statement "iVar3 = *(int *)(uVar7 + 0x24);" (assignment_expression "iVar3 = *(int *)(uVar7 + 0x24)" identifier = (pointer_expression "*(int *)(uVar7 + 0x24)" * (cast_expression "(int *)(uVar7 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar7 + 0x24)" ( (binary_expression "uVar7 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(uVar7 + 0x54);" (assignment_expression "iVar4 = *(int *)(uVar7 + 0x54)" identifier = (pointer_expression "*(int *)(uVar7 + 0x54)" * (cast_expression "(int *)(uVar7 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar7 + 0x54)" ( (binary_expression "uVar7 + 0x54" identifier + number_literal) ))))) ;) (expression_statement "*(undefined2 *)(iVar4 + 0x30) = 4;" (assignment_expression "*(undefined2 *)(iVar4 + 0x30) = 4" (pointer_expression "*(undefined2 *)(iVar4 + 0x30)" * (cast_expression "(undefined2 *)(iVar4 + 0x30)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x30)" ( (binary_expression "iVar4 + 0x30" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar4 + 0x28) = param_2;" (assignment_expression "*(undefined4 *)(iVar4 + 0x28) = param_2" (pointer_expression "*(undefined4 *)(iVar4 + 0x28)" * (cast_expression "(undefined4 *)(iVar4 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x28)" ( (binary_expression "iVar4 + 0x28" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar4 + 0x2c) = param_3;" (assignment_expression "*(undefined4 *)(iVar4 + 0x2c) = param_3" (pointer_expression "*(undefined4 *)(iVar4 + 0x2c)" * (cast_expression "(undefined4 *)(iVar4 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x2c)" ( (binary_expression "iVar4 + 0x2c" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar3 < 5) {\n    iVar4 = sqlite3_step(uVar7);\n  }\n  else {\n    *(undefined4 *)(uVar7 + 0x24) = 4;\n    iVar4 = FUN_00083fd0();\n  }" if (parenthesized_expression "(iVar3 < 5)" ( (binary_expression "iVar3 < 5" identifier < number_literal) )) (compound_statement "{\n    iVar4 = sqlite3_step(uVar7);\n  }" { (expression_statement "iVar4 = sqlite3_step(uVar7);" (assignment_expression "iVar4 = sqlite3_step(uVar7)" identifier = (call_expression "sqlite3_step(uVar7)" identifier (argument_list "(uVar7)" ( identifier )))) ;) }) (else_clause "else {\n    *(undefined4 *)(uVar7 + 0x24) = 4;\n    iVar4 = FUN_00083fd0();\n  }" else (compound_statement "{\n    *(undefined4 *)(uVar7 + 0x24) = 4;\n    iVar4 = FUN_00083fd0();\n  }" { (expression_statement "*(undefined4 *)(uVar7 + 0x24) = 4;" (assignment_expression "*(undefined4 *)(uVar7 + 0x24) = 4" (pointer_expression "*(undefined4 *)(uVar7 + 0x24)" * (cast_expression "(undefined4 *)(uVar7 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar7 + 0x24)" ( (binary_expression "uVar7 + 0x24" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar4 = FUN_00083fd0();" (assignment_expression "iVar4 = FUN_00083fd0()" identifier = (call_expression "FUN_00083fd0()" identifier (argument_list "()" ( )))) ;) }))) (if_statement "if (iVar4 != 100) {\n    if (param_1[4] == 0) {\n      uVar5 = 0;\n    }\n    else {\n      iVar4 = sqlite3_finalize(param_1[4]);\n      param_1[4] = 0;\n      if (iVar4 == 0) {\n        uVar5 = FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3);\n        *param_4 = uVar5;\n        return 1;\n      }\n      uVar5 = sqlite3_errmsg(param_1[5]);\n      uVar5 = FUN_0003e990(param_1[5],&DAT_000aa41d,uVar5);\n    }\nLAB_000a79af:\n    *param_4 = uVar5;\n    return iVar4;\n  }" if (parenthesized_expression "(iVar4 != 100)" ( (binary_expression "iVar4 != 100" identifier != number_literal) )) (compound_statement "{\n    if (param_1[4] == 0) {\n      uVar5 = 0;\n    }\n    else {\n      iVar4 = sqlite3_finalize(param_1[4]);\n      param_1[4] = 0;\n      if (iVar4 == 0) {\n        uVar5 = FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3);\n        *param_4 = uVar5;\n        return 1;\n      }\n      uVar5 = sqlite3_errmsg(param_1[5]);\n      uVar5 = FUN_0003e990(param_1[5],&DAT_000aa41d,uVar5);\n    }\nLAB_000a79af:\n    *param_4 = uVar5;\n    return iVar4;\n  }" { (if_statement "if (param_1[4] == 0) {\n      uVar5 = 0;\n    }\n    else {\n      iVar4 = sqlite3_finalize(param_1[4]);\n      param_1[4] = 0;\n      if (iVar4 == 0) {\n        uVar5 = FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3);\n        *param_4 = uVar5;\n        return 1;\n      }\n      uVar5 = sqlite3_errmsg(param_1[5]);\n      uVar5 = FUN_0003e990(param_1[5],&DAT_000aa41d,uVar5);\n    }" if (parenthesized_expression "(param_1[4] == 0)" ( (binary_expression "param_1[4] == 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      uVar5 = 0;\n    }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar4 = sqlite3_finalize(param_1[4]);\n      param_1[4] = 0;\n      if (iVar4 == 0) {\n        uVar5 = FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3);\n        *param_4 = uVar5;\n        return 1;\n      }\n      uVar5 = sqlite3_errmsg(param_1[5]);\n      uVar5 = FUN_0003e990(param_1[5],&DAT_000aa41d,uVar5);\n    }" else (compound_statement "{\n      iVar4 = sqlite3_finalize(param_1[4]);\n      param_1[4] = 0;\n      if (iVar4 == 0) {\n        uVar5 = FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3);\n        *param_4 = uVar5;\n        return 1;\n      }\n      uVar5 = sqlite3_errmsg(param_1[5]);\n      uVar5 = FUN_0003e990(param_1[5],&DAT_000aa41d,uVar5);\n    }" { (expression_statement "iVar4 = sqlite3_finalize(param_1[4]);" (assignment_expression "iVar4 = sqlite3_finalize(param_1[4])" identifier = (call_expression "sqlite3_finalize(param_1[4])" identifier (argument_list "(param_1[4])" ( (subscript_expression "param_1[4]" identifier [ number_literal ]) )))) ;) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (iVar4 == 0) {\n        uVar5 = FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3);\n        *param_4 = uVar5;\n        return 1;\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar5 = FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3);\n        *param_4 = uVar5;\n        return 1;\n      }" { (expression_statement "uVar5 = FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3);" (assignment_expression "uVar5 = FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3)" identifier = (call_expression "FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3)" identifier (argument_list "(param_1[5],"no such rowid: %lld",param_2,param_3)" ( (subscript_expression "param_1[5]" identifier [ number_literal ]) , (string_literal ""no such rowid: %lld"" " string_content ") , identifier , identifier )))) ;) (expression_statement "*param_4 = uVar5;" (assignment_expression "*param_4 = uVar5" (pointer_expression "*param_4" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar5 = sqlite3_errmsg(param_1[5]);" (assignment_expression "uVar5 = sqlite3_errmsg(param_1[5])" identifier = (call_expression "sqlite3_errmsg(param_1[5])" identifier (argument_list "(param_1[5])" ( (subscript_expression "param_1[5]" identifier [ number_literal ]) )))) ;) (expression_statement "uVar5 = FUN_0003e990(param_1[5],&DAT_000aa41d,uVar5);" (assignment_expression "uVar5 = FUN_0003e990(param_1[5],&DAT_000aa41d,uVar5)" identifier = (call_expression "FUN_0003e990(param_1[5],&DAT_000aa41d,uVar5)" identifier (argument_list "(param_1[5],&DAT_000aa41d,uVar5)" ( (subscript_expression "param_1[5]" identifier [ number_literal ]) , (pointer_expression "&DAT_000aa41d" & identifier) , identifier )))) ;) }))) (labeled_statement "LAB_000a79af:\n    *param_4 = uVar5;" statement_identifier : (expression_statement "*param_4 = uVar5;" (assignment_expression "*param_4 = uVar5" (pointer_expression "*param_4" * identifier) = identifier) ;)) (return_statement "return iVar4;" return identifier ;) })) (expression_statement "iVar4 = **(int **)(uVar7 + 0x5c);" (assignment_expression "iVar4 = **(int **)(uVar7 + 0x5c)" identifier = (pointer_expression "**(int **)(uVar7 + 0x5c)" * (pointer_expression "*(int **)(uVar7 + 0x5c)" * (cast_expression "(int **)(uVar7 + 0x5c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(uVar7 + 0x5c)" ( (binary_expression "uVar7 + 0x5c" identifier + number_literal) )))))) ;) (expression_statement "uVar1 = (ushort)param_1[2];" (assignment_expression "uVar1 = (ushort)param_1[2]" identifier = (cast_expression "(ushort)param_1[2]" ( (type_descriptor "ushort" type_identifier) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (if_statement "if (uVar1 < *(ushort *)(iVar4 + 0x36)) {\n    uVar7 = *(uint *)(iVar4 + 0x50 + (uint)uVar1 * 4);\n    if (0xb < uVar7) {\n      param_1[1] = *(uint *)(iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4);\n      if (uVar7 < 0x80) {\n        uVar7 = (uint)(byte)(&DAT_000b4ca0)[uVar7];\n      }\n      else {\n        uVar7 = uVar7 - 0xc >> 1;\n      }\n      uVar2 = *(uint *)(iVar4 + 0x24);\n      *param_1 = uVar7;\n      uVar5 = 0;\n      iVar4 = 0;\n      iVar3 = *(int *)(uVar2 + 8);\n      param_1[3] = uVar2;\n      *(byte *)(uVar2 + 1) = *(byte *)(uVar2 + 1) | 0x10;\n      *(undefined1 *)(iVar3 + 0xb) = 1;\n      goto LAB_000a79af;\n    }\n    if (uVar7 != 0) {\n      pcVar6 = "real";\n      if (uVar7 != 7) {\n        pcVar6 = "integer";\n      }\n      goto LAB_000a7a56;\n    }\n  }" if (parenthesized_expression "(uVar1 < *(ushort *)(iVar4 + 0x36))" ( (binary_expression "uVar1 < *(ushort *)(iVar4 + 0x36)" identifier < (pointer_expression "*(ushort *)(iVar4 + 0x36)" * (cast_expression "(ushort *)(iVar4 + 0x36)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x36)" ( (binary_expression "iVar4 + 0x36" identifier + number_literal) ))))) )) (compound_statement "{\n    uVar7 = *(uint *)(iVar4 + 0x50 + (uint)uVar1 * 4);\n    if (0xb < uVar7) {\n      param_1[1] = *(uint *)(iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4);\n      if (uVar7 < 0x80) {\n        uVar7 = (uint)(byte)(&DAT_000b4ca0)[uVar7];\n      }\n      else {\n        uVar7 = uVar7 - 0xc >> 1;\n      }\n      uVar2 = *(uint *)(iVar4 + 0x24);\n      *param_1 = uVar7;\n      uVar5 = 0;\n      iVar4 = 0;\n      iVar3 = *(int *)(uVar2 + 8);\n      param_1[3] = uVar2;\n      *(byte *)(uVar2 + 1) = *(byte *)(uVar2 + 1) | 0x10;\n      *(undefined1 *)(iVar3 + 0xb) = 1;\n      goto LAB_000a79af;\n    }\n    if (uVar7 != 0) {\n      pcVar6 = "real";\n      if (uVar7 != 7) {\n        pcVar6 = "integer";\n      }\n      goto LAB_000a7a56;\n    }\n  }" { (expression_statement "uVar7 = *(uint *)(iVar4 + 0x50 + (uint)uVar1 * 4);" (assignment_expression "uVar7 = *(uint *)(iVar4 + 0x50 + (uint)uVar1 * 4)" identifier = (pointer_expression "*(uint *)(iVar4 + 0x50 + (uint)uVar1 * 4)" * (cast_expression "(uint *)(iVar4 + 0x50 + (uint)uVar1 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x50 + (uint)uVar1 * 4)" ( (binary_expression "iVar4 + 0x50 + (uint)uVar1 * 4" (binary_expression "iVar4 + 0x50" identifier + number_literal) + (binary_expression "(uint)uVar1 * 4" (cast_expression "(uint)uVar1" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) ))))) ;) (if_statement "if (0xb < uVar7) {\n      param_1[1] = *(uint *)(iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4);\n      if (uVar7 < 0x80) {\n        uVar7 = (uint)(byte)(&DAT_000b4ca0)[uVar7];\n      }\n      else {\n        uVar7 = uVar7 - 0xc >> 1;\n      }\n      uVar2 = *(uint *)(iVar4 + 0x24);\n      *param_1 = uVar7;\n      uVar5 = 0;\n      iVar4 = 0;\n      iVar3 = *(int *)(uVar2 + 8);\n      param_1[3] = uVar2;\n      *(byte *)(uVar2 + 1) = *(byte *)(uVar2 + 1) | 0x10;\n      *(undefined1 *)(iVar3 + 0xb) = 1;\n      goto LAB_000a79af;\n    }" if (parenthesized_expression "(0xb < uVar7)" ( (binary_expression "0xb < uVar7" number_literal < identifier) )) (compound_statement "{\n      param_1[1] = *(uint *)(iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4);\n      if (uVar7 < 0x80) {\n        uVar7 = (uint)(byte)(&DAT_000b4ca0)[uVar7];\n      }\n      else {\n        uVar7 = uVar7 - 0xc >> 1;\n      }\n      uVar2 = *(uint *)(iVar4 + 0x24);\n      *param_1 = uVar7;\n      uVar5 = 0;\n      iVar4 = 0;\n      iVar3 = *(int *)(uVar2 + 8);\n      param_1[3] = uVar2;\n      *(byte *)(uVar2 + 1) = *(byte *)(uVar2 + 1) | 0x10;\n      *(undefined1 *)(iVar3 + 0xb) = 1;\n      goto LAB_000a79af;\n    }" { (expression_statement "param_1[1] = *(uint *)(iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4);" (assignment_expression "param_1[1] = *(uint *)(iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4)" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (pointer_expression "*(uint *)(iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4)" * (cast_expression "(uint *)(iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4)" ( (binary_expression "iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4" identifier + (binary_expression "(uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4" (parenthesized_expression "(uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34))" ( (binary_expression "uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)" (binary_expression "uVar1 + 0x14" identifier + number_literal) + (cast_expression "(int)*(short *)(iVar4 + 0x34)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(short *)(iVar4 + 0x34)" * (cast_expression "(short *)(iVar4 + 0x34)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x34)" ( (binary_expression "iVar4 + 0x34" identifier + number_literal) )))))) )) * number_literal)) ))))) ;) (if_statement "if (uVar7 < 0x80) {\n        uVar7 = (uint)(byte)(&DAT_000b4ca0)[uVar7];\n      }\n      else {\n        uVar7 = uVar7 - 0xc >> 1;\n      }" if (parenthesized_expression "(uVar7 < 0x80)" ( (binary_expression "uVar7 < 0x80" identifier < number_literal) )) (compound_statement "{\n        uVar7 = (uint)(byte)(&DAT_000b4ca0)[uVar7];\n      }" { (expression_statement "uVar7 = (uint)(byte)(&DAT_000b4ca0)[uVar7];" (assignment_expression "uVar7 = (uint)(byte)(&DAT_000b4ca0)[uVar7]" identifier = (subscript_expression "(uint)(byte)(&DAT_000b4ca0)[uVar7]" (call_expression "(uint)(byte)(&DAT_000b4ca0)" (call_expression "(uint)(byte)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(byte)" ( identifier ))) (argument_list "(&DAT_000b4ca0)" ( (pointer_expression "&DAT_000b4ca0" & identifier) ))) [ identifier ])) ;) }) (else_clause "else {\n        uVar7 = uVar7 - 0xc >> 1;\n      }" else (compound_statement "{\n        uVar7 = uVar7 - 0xc >> 1;\n      }" { (expression_statement "uVar7 = uVar7 - 0xc >> 1;" (assignment_expression "uVar7 = uVar7 - 0xc >> 1" identifier = (binary_expression "uVar7 - 0xc >> 1" (binary_expression "uVar7 - 0xc" identifier - number_literal) >> number_literal)) ;) }))) (expression_statement "uVar2 = *(uint *)(iVar4 + 0x24);" (assignment_expression "uVar2 = *(uint *)(iVar4 + 0x24)" identifier = (pointer_expression "*(uint *)(iVar4 + 0x24)" * (cast_expression "(uint *)(iVar4 + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x24)" ( (binary_expression "iVar4 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "*param_1 = uVar7;" (assignment_expression "*param_1 = uVar7" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "iVar3 = *(int *)(uVar2 + 8);" (assignment_expression "iVar3 = *(int *)(uVar2 + 8)" identifier = (pointer_expression "*(int *)(uVar2 + 8)" * (cast_expression "(int *)(uVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 + 8)" ( (binary_expression "uVar2 + 8" identifier + number_literal) ))))) ;) (expression_statement "param_1[3] = uVar2;" (assignment_expression "param_1[3] = uVar2" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(byte *)(uVar2 + 1) = *(byte *)(uVar2 + 1) | 0x10;" (assignment_expression "*(byte *)(uVar2 + 1) = *(byte *)(uVar2 + 1) | 0x10" (pointer_expression "*(byte *)(uVar2 + 1)" * (cast_expression "(byte *)(uVar2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 + 1)" ( (binary_expression "uVar2 + 1" identifier + number_literal) )))) = (binary_expression "*(byte *)(uVar2 + 1) | 0x10" (pointer_expression "*(byte *)(uVar2 + 1)" * (cast_expression "(byte *)(uVar2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 + 1)" ( (binary_expression "uVar2 + 1" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "*(undefined1 *)(iVar3 + 0xb) = 1;" (assignment_expression "*(undefined1 *)(iVar3 + 0xb) = 1" (pointer_expression "*(undefined1 *)(iVar3 + 0xb)" * (cast_expression "(undefined1 *)(iVar3 + 0xb)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xb)" ( (binary_expression "iVar3 + 0xb" identifier + number_literal) )))) = number_literal) ;) (goto_statement "goto LAB_000a79af;" goto statement_identifier ;) })) (if_statement "if (uVar7 != 0) {\n      pcVar6 = "real";\n      if (uVar7 != 7) {\n        pcVar6 = "integer";\n      }\n      goto LAB_000a7a56;\n    }" if (parenthesized_expression "(uVar7 != 0)" ( (binary_expression "uVar7 != 0" identifier != number_literal) )) (compound_statement "{\n      pcVar6 = "real";\n      if (uVar7 != 7) {\n        pcVar6 = "integer";\n      }\n      goto LAB_000a7a56;\n    }" { (expression_statement "pcVar6 = "real";" (assignment_expression "pcVar6 = "real"" identifier = (string_literal ""real"" " string_content ")) ;) (if_statement "if (uVar7 != 7) {\n        pcVar6 = "integer";\n      }" if (parenthesized_expression "(uVar7 != 7)" ( (binary_expression "uVar7 != 7" identifier != number_literal) )) (compound_statement "{\n        pcVar6 = "integer";\n      }" { (expression_statement "pcVar6 = "integer";" (assignment_expression "pcVar6 = "integer"" identifier = (string_literal ""integer"" " string_content ")) ;) })) (goto_statement "goto LAB_000a7a56;" goto statement_identifier ;) })) })) (expression_statement "pcVar6 = "null";" (assignment_expression "pcVar6 = "null"" identifier = (string_literal ""null"" " string_content ")) ;) (labeled_statement "LAB_000a7a56:\n  uVar5 = FUN_0003e990(param_1[5],"cannot open value of type %s",pcVar6);" statement_identifier : (expression_statement "uVar5 = FUN_0003e990(param_1[5],"cannot open value of type %s",pcVar6);" (assignment_expression "uVar5 = FUN_0003e990(param_1[5],"cannot open value of type %s",pcVar6)" identifier = (call_expression "FUN_0003e990(param_1[5],"cannot open value of type %s",pcVar6)" identifier (argument_list "(param_1[5],"cannot open value of type %s",pcVar6)" ( (subscript_expression "param_1[5]" identifier [ number_literal ]) , (string_literal ""cannot open value of type %s"" " string_content ") , identifier )))) ;)) (expression_statement "sqlite3_finalize(param_1[4]);" (call_expression "sqlite3_finalize(param_1[4])" identifier (argument_list "(param_1[4])" ( (subscript_expression "param_1[4]" identifier [ number_literal ]) ))) ;) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_4 = uVar5;" (assignment_expression "*param_4 = uVar5" (pointer_expression "*param_4" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , (string_literal " string_content ") , IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , (pointer_expression & IDENT) , IDENT )))) ;) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;)) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (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) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) )) * LIT)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression (call_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( IDENT ))) (argument_list ( (pointer_expression & IDENT) ))) [ IDENT ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT - LIT) >> LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (goto_statement goto statement_identifier ;) })) })) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , (string_literal " string_content ") , IDENT )))) ;)) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return LIT ;) })))
(function_definition "int __regparm3 FUN_000a7900(uint *param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)\n\n{\n  ushort uVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  char *pcVar6;\n  uint uVar7;\n  \n  uVar7 = param_1[4];\n  iVar3 = *(int *)(uVar7 + 0x24);\n  iVar4 = *(int *)(uVar7 + 0x54);\n  *(undefined2 *)(iVar4 + 0x30) = 4;\n  *(undefined4 *)(iVar4 + 0x28) = param_2;\n  *(undefined4 *)(iVar4 + 0x2c) = param_3;\n  if (iVar3 < 5) {\n    iVar4 = sqlite3_step(uVar7);\n  }\n  else {\n    *(undefined4 *)(uVar7 + 0x24) = 4;\n    iVar4 = FUN_00083fd0();\n  }\n  if (iVar4 != 100) {\n    if (param_1[4] == 0) {\n      uVar5 = 0;\n    }\n    else {\n      iVar4 = sqlite3_finalize(param_1[4]);\n      param_1[4] = 0;\n      if (iVar4 == 0) {\n        uVar5 = FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3);\n        *param_4 = uVar5;\n        return 1;\n      }\n      uVar5 = sqlite3_errmsg(param_1[5]);\n      uVar5 = FUN_0003e990(param_1[5],&DAT_000aa41d,uVar5);\n    }\nLAB_000a79af:\n    *param_4 = uVar5;\n    return iVar4;\n  }\n  iVar4 = **(int **)(uVar7 + 0x5c);\n  uVar1 = (ushort)param_1[2];\n  if (uVar1 < *(ushort *)(iVar4 + 0x36)) {\n    uVar7 = *(uint *)(iVar4 + 0x50 + (uint)uVar1 * 4);\n    if (0xb < uVar7) {\n      param_1[1] = *(uint *)(iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4);\n      if (uVar7 < 0x80) {\n        uVar7 = (uint)(byte)(&DAT_000b4ca0)[uVar7];\n      }\n      else {\n        uVar7 = uVar7 - 0xc >> 1;\n      }\n      uVar2 = *(uint *)(iVar4 + 0x24);\n      *param_1 = uVar7;\n      uVar5 = 0;\n      iVar4 = 0;\n      iVar3 = *(int *)(uVar2 + 8);\n      param_1[3] = uVar2;\n      *(byte *)(uVar2 + 1) = *(byte *)(uVar2 + 1) | 0x10;\n      *(undefined1 *)(iVar3 + 0xb) = 1;\n      goto LAB_000a79af;\n    }\n    if (uVar7 != 0) {\n      pcVar6 = "real";\n      if (uVar7 != 7) {\n        pcVar6 = "integer";\n      }\n      goto LAB_000a7a56;\n    }\n  }\n  pcVar6 = "null";\nLAB_000a7a56:\n  uVar5 = FUN_0003e990(param_1[5],"cannot open value of type %s",pcVar6);\n  sqlite3_finalize(param_1[4]);\n  param_1[4] = 0;\n  *param_4 = uVar5;\n  return 1;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000a7900(uint *param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" (identifier "FUN_000a7900") (parameter_list "(uint *param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" (( "(") (parameter_declaration "uint *param_1" (type_identifier "uint") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  ushort uVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  char *pcVar6;\n  uint uVar7;\n  \n  uVar7 = param_1[4];\n  iVar3 = *(int *)(uVar7 + 0x24);\n  iVar4 = *(int *)(uVar7 + 0x54);\n  *(undefined2 *)(iVar4 + 0x30) = 4;\n  *(undefined4 *)(iVar4 + 0x28) = param_2;\n  *(undefined4 *)(iVar4 + 0x2c) = param_3;\n  if (iVar3 < 5) {\n    iVar4 = sqlite3_step(uVar7);\n  }\n  else {\n    *(undefined4 *)(uVar7 + 0x24) = 4;\n    iVar4 = FUN_00083fd0();\n  }\n  if (iVar4 != 100) {\n    if (param_1[4] == 0) {\n      uVar5 = 0;\n    }\n    else {\n      iVar4 = sqlite3_finalize(param_1[4]);\n      param_1[4] = 0;\n      if (iVar4 == 0) {\n        uVar5 = FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3);\n        *param_4 = uVar5;\n        return 1;\n      }\n      uVar5 = sqlite3_errmsg(param_1[5]);\n      uVar5 = FUN_0003e990(param_1[5],&DAT_000aa41d,uVar5);\n    }\nLAB_000a79af:\n    *param_4 = uVar5;\n    return iVar4;\n  }\n  iVar4 = **(int **)(uVar7 + 0x5c);\n  uVar1 = (ushort)param_1[2];\n  if (uVar1 < *(ushort *)(iVar4 + 0x36)) {\n    uVar7 = *(uint *)(iVar4 + 0x50 + (uint)uVar1 * 4);\n    if (0xb < uVar7) {\n      param_1[1] = *(uint *)(iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4);\n      if (uVar7 < 0x80) {\n        uVar7 = (uint)(byte)(&DAT_000b4ca0)[uVar7];\n      }\n      else {\n        uVar7 = uVar7 - 0xc >> 1;\n      }\n      uVar2 = *(uint *)(iVar4 + 0x24);\n      *param_1 = uVar7;\n      uVar5 = 0;\n      iVar4 = 0;\n      iVar3 = *(int *)(uVar2 + 8);\n      param_1[3] = uVar2;\n      *(byte *)(uVar2 + 1) = *(byte *)(uVar2 + 1) | 0x10;\n      *(undefined1 *)(iVar3 + 0xb) = 1;\n      goto LAB_000a79af;\n    }\n    if (uVar7 != 0) {\n      pcVar6 = "real";\n      if (uVar7 != 7) {\n        pcVar6 = "integer";\n      }\n      goto LAB_000a7a56;\n    }\n  }\n  pcVar6 = "null";\nLAB_000a7a56:\n  uVar5 = FUN_0003e990(param_1[5],"cannot open value of type %s",pcVar6);\n  sqlite3_finalize(param_1[4]);\n  param_1[4] = 0;\n  *param_4 = uVar5;\n  return 1;\n}" ({ "{") (declaration "ushort uVar1;" (type_identifier "ushort") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "char *pcVar6;" (primitive_type "char") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (expression_statement "uVar7 = param_1[4];" (assignment_expression "uVar7 = param_1[4]" (identifier "uVar7") (= "=") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (; ";")) (expression_statement "iVar3 = *(int *)(uVar7 + 0x24);" (assignment_expression "iVar3 = *(int *)(uVar7 + 0x24)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(uVar7 + 0x24)" (* "*") (cast_expression "(int *)(uVar7 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar7 + 0x24)" (( "(") (binary_expression "uVar7 + 0x24" (identifier "uVar7") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (expression_statement "iVar4 = *(int *)(uVar7 + 0x54);" (assignment_expression "iVar4 = *(int *)(uVar7 + 0x54)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(uVar7 + 0x54)" (* "*") (cast_expression "(int *)(uVar7 + 0x54)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar7 + 0x54)" (( "(") (binary_expression "uVar7 + 0x54" (identifier "uVar7") (+ "+") (number_literal "0x54")) () ")"))))) (; ";")) (expression_statement "*(undefined2 *)(iVar4 + 0x30) = 4;" (assignment_expression "*(undefined2 *)(iVar4 + 0x30) = 4" (pointer_expression "*(undefined2 *)(iVar4 + 0x30)" (* "*") (cast_expression "(undefined2 *)(iVar4 + 0x30)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x30)" (( "(") (binary_expression "iVar4 + 0x30" (identifier "iVar4") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (number_literal "4")) (; ";")) (expression_statement "*(undefined4 *)(iVar4 + 0x28) = param_2;" (assignment_expression "*(undefined4 *)(iVar4 + 0x28) = param_2" (pointer_expression "*(undefined4 *)(iVar4 + 0x28)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x28)" (( "(") (binary_expression "iVar4 + 0x28" (identifier "iVar4") (+ "+") (number_literal "0x28")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(undefined4 *)(iVar4 + 0x2c) = param_3;" (assignment_expression "*(undefined4 *)(iVar4 + 0x2c) = param_3" (pointer_expression "*(undefined4 *)(iVar4 + 0x2c)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0x2c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x2c)" (( "(") (binary_expression "iVar4 + 0x2c" (identifier "iVar4") (+ "+") (number_literal "0x2c")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (if_statement "if (iVar3 < 5) {\n    iVar4 = sqlite3_step(uVar7);\n  }\n  else {\n    *(undefined4 *)(uVar7 + 0x24) = 4;\n    iVar4 = FUN_00083fd0();\n  }" (if "if") (parenthesized_expression "(iVar3 < 5)" (( "(") (binary_expression "iVar3 < 5" (identifier "iVar3") (< "<") (number_literal "5")) () ")")) (compound_statement "{\n    iVar4 = sqlite3_step(uVar7);\n  }" ({ "{") (expression_statement "iVar4 = sqlite3_step(uVar7);" (assignment_expression "iVar4 = sqlite3_step(uVar7)" (identifier "iVar4") (= "=") (call_expression "sqlite3_step(uVar7)" (identifier "sqlite3_step") (argument_list "(uVar7)" (( "(") (identifier "uVar7") () ")")))) (; ";")) (} "}")) (else_clause "else {\n    *(undefined4 *)(uVar7 + 0x24) = 4;\n    iVar4 = FUN_00083fd0();\n  }" (else "else") (compound_statement "{\n    *(undefined4 *)(uVar7 + 0x24) = 4;\n    iVar4 = FUN_00083fd0();\n  }" ({ "{") (expression_statement "*(undefined4 *)(uVar7 + 0x24) = 4;" (assignment_expression "*(undefined4 *)(uVar7 + 0x24) = 4" (pointer_expression "*(undefined4 *)(uVar7 + 0x24)" (* "*") (cast_expression "(undefined4 *)(uVar7 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar7 + 0x24)" (( "(") (binary_expression "uVar7 + 0x24" (identifier "uVar7") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (number_literal "4")) (; ";")) (expression_statement "iVar4 = FUN_00083fd0();" (assignment_expression "iVar4 = FUN_00083fd0()" (identifier "iVar4") (= "=") (call_expression "FUN_00083fd0()" (identifier "FUN_00083fd0") (argument_list "()" (( "(") () ")")))) (; ";")) (} "}")))) (if_statement "if (iVar4 != 100) {\n    if (param_1[4] == 0) {\n      uVar5 = 0;\n    }\n    else {\n      iVar4 = sqlite3_finalize(param_1[4]);\n      param_1[4] = 0;\n      if (iVar4 == 0) {\n        uVar5 = FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3);\n        *param_4 = uVar5;\n        return 1;\n      }\n      uVar5 = sqlite3_errmsg(param_1[5]);\n      uVar5 = FUN_0003e990(param_1[5],&DAT_000aa41d,uVar5);\n    }\nLAB_000a79af:\n    *param_4 = uVar5;\n    return iVar4;\n  }" (if "if") (parenthesized_expression "(iVar4 != 100)" (( "(") (binary_expression "iVar4 != 100" (identifier "iVar4") (!= "!=") (number_literal "100")) () ")")) (compound_statement "{\n    if (param_1[4] == 0) {\n      uVar5 = 0;\n    }\n    else {\n      iVar4 = sqlite3_finalize(param_1[4]);\n      param_1[4] = 0;\n      if (iVar4 == 0) {\n        uVar5 = FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3);\n        *param_4 = uVar5;\n        return 1;\n      }\n      uVar5 = sqlite3_errmsg(param_1[5]);\n      uVar5 = FUN_0003e990(param_1[5],&DAT_000aa41d,uVar5);\n    }\nLAB_000a79af:\n    *param_4 = uVar5;\n    return iVar4;\n  }" ({ "{") (if_statement "if (param_1[4] == 0) {\n      uVar5 = 0;\n    }\n    else {\n      iVar4 = sqlite3_finalize(param_1[4]);\n      param_1[4] = 0;\n      if (iVar4 == 0) {\n        uVar5 = FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3);\n        *param_4 = uVar5;\n        return 1;\n      }\n      uVar5 = sqlite3_errmsg(param_1[5]);\n      uVar5 = FUN_0003e990(param_1[5],&DAT_000aa41d,uVar5);\n    }" (if "if") (parenthesized_expression "(param_1[4] == 0)" (( "(") (binary_expression "param_1[4] == 0" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar5 = 0;\n    }" ({ "{") (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" (identifier "uVar5") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      iVar4 = sqlite3_finalize(param_1[4]);\n      param_1[4] = 0;\n      if (iVar4 == 0) {\n        uVar5 = FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3);\n        *param_4 = uVar5;\n        return 1;\n      }\n      uVar5 = sqlite3_errmsg(param_1[5]);\n      uVar5 = FUN_0003e990(param_1[5],&DAT_000aa41d,uVar5);\n    }" (else "else") (compound_statement "{\n      iVar4 = sqlite3_finalize(param_1[4]);\n      param_1[4] = 0;\n      if (iVar4 == 0) {\n        uVar5 = FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3);\n        *param_4 = uVar5;\n        return 1;\n      }\n      uVar5 = sqlite3_errmsg(param_1[5]);\n      uVar5 = FUN_0003e990(param_1[5],&DAT_000aa41d,uVar5);\n    }" ({ "{") (expression_statement "iVar4 = sqlite3_finalize(param_1[4]);" (assignment_expression "iVar4 = sqlite3_finalize(param_1[4])" (identifier "iVar4") (= "=") (call_expression "sqlite3_finalize(param_1[4])" (identifier "sqlite3_finalize") (argument_list "(param_1[4])" (( "(") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) () ")")))) (; ";")) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar4 == 0) {\n        uVar5 = FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3);\n        *param_4 = uVar5;\n        return 1;\n      }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        uVar5 = FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3);\n        *param_4 = uVar5;\n        return 1;\n      }" ({ "{") (expression_statement "uVar5 = FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3);" (assignment_expression "uVar5 = FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3)" (identifier "uVar5") (= "=") (call_expression "FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3)" (identifier "FUN_0003e990") (argument_list "(param_1[5],"no such rowid: %lld",param_2,param_3)" (( "(") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (, ",") (string_literal ""no such rowid: %lld"" (" """) (string_content "no such rowid: %lld") (" """)) (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";")) (expression_statement "*param_4 = uVar5;" (assignment_expression "*param_4 = uVar5" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "uVar5")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "uVar5 = sqlite3_errmsg(param_1[5]);" (assignment_expression "uVar5 = sqlite3_errmsg(param_1[5])" (identifier "uVar5") (= "=") (call_expression "sqlite3_errmsg(param_1[5])" (identifier "sqlite3_errmsg") (argument_list "(param_1[5])" (( "(") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) () ")")))) (; ";")) (expression_statement "uVar5 = FUN_0003e990(param_1[5],&DAT_000aa41d,uVar5);" (assignment_expression "uVar5 = FUN_0003e990(param_1[5],&DAT_000aa41d,uVar5)" (identifier "uVar5") (= "=") (call_expression "FUN_0003e990(param_1[5],&DAT_000aa41d,uVar5)" (identifier "FUN_0003e990") (argument_list "(param_1[5],&DAT_000aa41d,uVar5)" (( "(") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (, ",") (pointer_expression "&DAT_000aa41d" (& "&") (identifier "DAT_000aa41d")) (, ",") (identifier "uVar5") () ")")))) (; ";")) (} "}")))) (labeled_statement "LAB_000a79af:\n    *param_4 = uVar5;" (statement_identifier "LAB_000a79af") (: ":") (expression_statement "*param_4 = uVar5;" (assignment_expression "*param_4 = uVar5" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "uVar5")) (; ";"))) (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}"))) (expression_statement "iVar4 = **(int **)(uVar7 + 0x5c);" (assignment_expression "iVar4 = **(int **)(uVar7 + 0x5c)" (identifier "iVar4") (= "=") (pointer_expression "**(int **)(uVar7 + 0x5c)" (* "*") (pointer_expression "*(int **)(uVar7 + 0x5c)" (* "*") (cast_expression "(int **)(uVar7 + 0x5c)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(uVar7 + 0x5c)" (( "(") (binary_expression "uVar7 + 0x5c" (identifier "uVar7") (+ "+") (number_literal "0x5c")) () ")")))))) (; ";")) (expression_statement "uVar1 = (ushort)param_1[2];" (assignment_expression "uVar1 = (ushort)param_1[2]" (identifier "uVar1") (= "=") (cast_expression "(ushort)param_1[2]" (( "(") (type_descriptor "ushort" (type_identifier "ushort")) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (if_statement "if (uVar1 < *(ushort *)(iVar4 + 0x36)) {\n    uVar7 = *(uint *)(iVar4 + 0x50 + (uint)uVar1 * 4);\n    if (0xb < uVar7) {\n      param_1[1] = *(uint *)(iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4);\n      if (uVar7 < 0x80) {\n        uVar7 = (uint)(byte)(&DAT_000b4ca0)[uVar7];\n      }\n      else {\n        uVar7 = uVar7 - 0xc >> 1;\n      }\n      uVar2 = *(uint *)(iVar4 + 0x24);\n      *param_1 = uVar7;\n      uVar5 = 0;\n      iVar4 = 0;\n      iVar3 = *(int *)(uVar2 + 8);\n      param_1[3] = uVar2;\n      *(byte *)(uVar2 + 1) = *(byte *)(uVar2 + 1) | 0x10;\n      *(undefined1 *)(iVar3 + 0xb) = 1;\n      goto LAB_000a79af;\n    }\n    if (uVar7 != 0) {\n      pcVar6 = "real";\n      if (uVar7 != 7) {\n        pcVar6 = "integer";\n      }\n      goto LAB_000a7a56;\n    }\n  }" (if "if") (parenthesized_expression "(uVar1 < *(ushort *)(iVar4 + 0x36))" (( "(") (binary_expression "uVar1 < *(ushort *)(iVar4 + 0x36)" (identifier "uVar1") (< "<") (pointer_expression "*(ushort *)(iVar4 + 0x36)" (* "*") (cast_expression "(ushort *)(iVar4 + 0x36)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x36)" (( "(") (binary_expression "iVar4 + 0x36" (identifier "iVar4") (+ "+") (number_literal "0x36")) () ")"))))) () ")")) (compound_statement "{\n    uVar7 = *(uint *)(iVar4 + 0x50 + (uint)uVar1 * 4);\n    if (0xb < uVar7) {\n      param_1[1] = *(uint *)(iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4);\n      if (uVar7 < 0x80) {\n        uVar7 = (uint)(byte)(&DAT_000b4ca0)[uVar7];\n      }\n      else {\n        uVar7 = uVar7 - 0xc >> 1;\n      }\n      uVar2 = *(uint *)(iVar4 + 0x24);\n      *param_1 = uVar7;\n      uVar5 = 0;\n      iVar4 = 0;\n      iVar3 = *(int *)(uVar2 + 8);\n      param_1[3] = uVar2;\n      *(byte *)(uVar2 + 1) = *(byte *)(uVar2 + 1) | 0x10;\n      *(undefined1 *)(iVar3 + 0xb) = 1;\n      goto LAB_000a79af;\n    }\n    if (uVar7 != 0) {\n      pcVar6 = "real";\n      if (uVar7 != 7) {\n        pcVar6 = "integer";\n      }\n      goto LAB_000a7a56;\n    }\n  }" ({ "{") (expression_statement "uVar7 = *(uint *)(iVar4 + 0x50 + (uint)uVar1 * 4);" (assignment_expression "uVar7 = *(uint *)(iVar4 + 0x50 + (uint)uVar1 * 4)" (identifier "uVar7") (= "=") (pointer_expression "*(uint *)(iVar4 + 0x50 + (uint)uVar1 * 4)" (* "*") (cast_expression "(uint *)(iVar4 + 0x50 + (uint)uVar1 * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x50 + (uint)uVar1 * 4)" (( "(") (binary_expression "iVar4 + 0x50 + (uint)uVar1 * 4" (binary_expression "iVar4 + 0x50" (identifier "iVar4") (+ "+") (number_literal "0x50")) (+ "+") (binary_expression "(uint)uVar1 * 4" (cast_expression "(uint)uVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar1")) (* "*") (number_literal "4"))) () ")"))))) (; ";")) (if_statement "if (0xb < uVar7) {\n      param_1[1] = *(uint *)(iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4);\n      if (uVar7 < 0x80) {\n        uVar7 = (uint)(byte)(&DAT_000b4ca0)[uVar7];\n      }\n      else {\n        uVar7 = uVar7 - 0xc >> 1;\n      }\n      uVar2 = *(uint *)(iVar4 + 0x24);\n      *param_1 = uVar7;\n      uVar5 = 0;\n      iVar4 = 0;\n      iVar3 = *(int *)(uVar2 + 8);\n      param_1[3] = uVar2;\n      *(byte *)(uVar2 + 1) = *(byte *)(uVar2 + 1) | 0x10;\n      *(undefined1 *)(iVar3 + 0xb) = 1;\n      goto LAB_000a79af;\n    }" (if "if") (parenthesized_expression "(0xb < uVar7)" (( "(") (binary_expression "0xb < uVar7" (number_literal "0xb") (< "<") (identifier "uVar7")) () ")")) (compound_statement "{\n      param_1[1] = *(uint *)(iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4);\n      if (uVar7 < 0x80) {\n        uVar7 = (uint)(byte)(&DAT_000b4ca0)[uVar7];\n      }\n      else {\n        uVar7 = uVar7 - 0xc >> 1;\n      }\n      uVar2 = *(uint *)(iVar4 + 0x24);\n      *param_1 = uVar7;\n      uVar5 = 0;\n      iVar4 = 0;\n      iVar3 = *(int *)(uVar2 + 8);\n      param_1[3] = uVar2;\n      *(byte *)(uVar2 + 1) = *(byte *)(uVar2 + 1) | 0x10;\n      *(undefined1 *)(iVar3 + 0xb) = 1;\n      goto LAB_000a79af;\n    }" ({ "{") (expression_statement "param_1[1] = *(uint *)(iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4);" (assignment_expression "param_1[1] = *(uint *)(iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4)" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (pointer_expression "*(uint *)(iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4)" (* "*") (cast_expression "(uint *)(iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4)" (( "(") (binary_expression "iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4" (identifier "iVar4") (+ "+") (binary_expression "(uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4" (parenthesized_expression "(uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34))" (( "(") (binary_expression "uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)" (binary_expression "uVar1 + 0x14" (identifier "uVar1") (+ "+") (number_literal "0x14")) (+ "+") (cast_expression "(int)*(short *)(iVar4 + 0x34)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*(short *)(iVar4 + 0x34)" (* "*") (cast_expression "(short *)(iVar4 + 0x34)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x34)" (( "(") (binary_expression "iVar4 + 0x34" (identifier "iVar4") (+ "+") (number_literal "0x34")) () ")")))))) () ")")) (* "*") (number_literal "4"))) () ")"))))) (; ";")) (if_statement "if (uVar7 < 0x80) {\n        uVar7 = (uint)(byte)(&DAT_000b4ca0)[uVar7];\n      }\n      else {\n        uVar7 = uVar7 - 0xc >> 1;\n      }" (if "if") (parenthesized_expression "(uVar7 < 0x80)" (( "(") (binary_expression "uVar7 < 0x80" (identifier "uVar7") (< "<") (number_literal "0x80")) () ")")) (compound_statement "{\n        uVar7 = (uint)(byte)(&DAT_000b4ca0)[uVar7];\n      }" ({ "{") (expression_statement "uVar7 = (uint)(byte)(&DAT_000b4ca0)[uVar7];" (assignment_expression "uVar7 = (uint)(byte)(&DAT_000b4ca0)[uVar7]" (identifier "uVar7") (= "=") (subscript_expression "(uint)(byte)(&DAT_000b4ca0)[uVar7]" (call_expression "(uint)(byte)(&DAT_000b4ca0)" (call_expression "(uint)(byte)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(byte)" (( "(") (identifier "byte") () ")"))) (argument_list "(&DAT_000b4ca0)" (( "(") (pointer_expression "&DAT_000b4ca0" (& "&") (identifier "DAT_000b4ca0")) () ")"))) ([ "[") (identifier "uVar7") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n        uVar7 = uVar7 - 0xc >> 1;\n      }" (else "else") (compound_statement "{\n        uVar7 = uVar7 - 0xc >> 1;\n      }" ({ "{") (expression_statement "uVar7 = uVar7 - 0xc >> 1;" (assignment_expression "uVar7 = uVar7 - 0xc >> 1" (identifier "uVar7") (= "=") (binary_expression "uVar7 - 0xc >> 1" (binary_expression "uVar7 - 0xc" (identifier "uVar7") (- "-") (number_literal "0xc")) (>> ">>") (number_literal "1"))) (; ";")) (} "}")))) (expression_statement "uVar2 = *(uint *)(iVar4 + 0x24);" (assignment_expression "uVar2 = *(uint *)(iVar4 + 0x24)" (identifier "uVar2") (= "=") (pointer_expression "*(uint *)(iVar4 + 0x24)" (* "*") (cast_expression "(uint *)(iVar4 + 0x24)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x24)" (( "(") (binary_expression "iVar4 + 0x24" (identifier "iVar4") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (expression_statement "*param_1 = uVar7;" (assignment_expression "*param_1 = uVar7" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "uVar7")) (; ";")) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" (identifier "uVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar3 = *(int *)(uVar2 + 8);" (assignment_expression "iVar3 = *(int *)(uVar2 + 8)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(uVar2 + 8)" (* "*") (cast_expression "(int *)(uVar2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar2 + 8)" (( "(") (binary_expression "uVar2 + 8" (identifier "uVar2") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "param_1[3] = uVar2;" (assignment_expression "param_1[3] = uVar2" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "*(byte *)(uVar2 + 1) = *(byte *)(uVar2 + 1) | 0x10;" (assignment_expression "*(byte *)(uVar2 + 1) = *(byte *)(uVar2 + 1) | 0x10" (pointer_expression "*(byte *)(uVar2 + 1)" (* "*") (cast_expression "(byte *)(uVar2 + 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar2 + 1)" (( "(") (binary_expression "uVar2 + 1" (identifier "uVar2") (+ "+") (number_literal "1")) () ")")))) (= "=") (binary_expression "*(byte *)(uVar2 + 1) | 0x10" (pointer_expression "*(byte *)(uVar2 + 1)" (* "*") (cast_expression "(byte *)(uVar2 + 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar2 + 1)" (( "(") (binary_expression "uVar2 + 1" (identifier "uVar2") (+ "+") (number_literal "1")) () ")")))) (| "|") (number_literal "0x10"))) (; ";")) (expression_statement "*(undefined1 *)(iVar3 + 0xb) = 1;" (assignment_expression "*(undefined1 *)(iVar3 + 0xb) = 1" (pointer_expression "*(undefined1 *)(iVar3 + 0xb)" (* "*") (cast_expression "(undefined1 *)(iVar3 + 0xb)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0xb)" (( "(") (binary_expression "iVar3 + 0xb" (identifier "iVar3") (+ "+") (number_literal "0xb")) () ")")))) (= "=") (number_literal "1")) (; ";")) (goto_statement "goto LAB_000a79af;" (goto "goto") (statement_identifier "LAB_000a79af") (; ";")) (} "}"))) (if_statement "if (uVar7 != 0) {\n      pcVar6 = "real";\n      if (uVar7 != 7) {\n        pcVar6 = "integer";\n      }\n      goto LAB_000a7a56;\n    }" (if "if") (parenthesized_expression "(uVar7 != 0)" (( "(") (binary_expression "uVar7 != 0" (identifier "uVar7") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      pcVar6 = "real";\n      if (uVar7 != 7) {\n        pcVar6 = "integer";\n      }\n      goto LAB_000a7a56;\n    }" ({ "{") (expression_statement "pcVar6 = "real";" (assignment_expression "pcVar6 = "real"" (identifier "pcVar6") (= "=") (string_literal ""real"" (" """) (string_content "real") (" """))) (; ";")) (if_statement "if (uVar7 != 7) {\n        pcVar6 = "integer";\n      }" (if "if") (parenthesized_expression "(uVar7 != 7)" (( "(") (binary_expression "uVar7 != 7" (identifier "uVar7") (!= "!=") (number_literal "7")) () ")")) (compound_statement "{\n        pcVar6 = "integer";\n      }" ({ "{") (expression_statement "pcVar6 = "integer";" (assignment_expression "pcVar6 = "integer"" (identifier "pcVar6") (= "=") (string_literal ""integer"" (" """) (string_content "integer") (" """))) (; ";")) (} "}"))) (goto_statement "goto LAB_000a7a56;" (goto "goto") (statement_identifier "LAB_000a7a56") (; ";")) (} "}"))) (} "}"))) (expression_statement "pcVar6 = "null";" (assignment_expression "pcVar6 = "null"" (identifier "pcVar6") (= "=") (string_literal ""null"" (" """) (string_content "null") (" """))) (; ";")) (labeled_statement "LAB_000a7a56:\n  uVar5 = FUN_0003e990(param_1[5],"cannot open value of type %s",pcVar6);" (statement_identifier "LAB_000a7a56") (: ":") (expression_statement "uVar5 = FUN_0003e990(param_1[5],"cannot open value of type %s",pcVar6);" (assignment_expression "uVar5 = FUN_0003e990(param_1[5],"cannot open value of type %s",pcVar6)" (identifier "uVar5") (= "=") (call_expression "FUN_0003e990(param_1[5],"cannot open value of type %s",pcVar6)" (identifier "FUN_0003e990") (argument_list "(param_1[5],"cannot open value of type %s",pcVar6)" (( "(") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (, ",") (string_literal ""cannot open value of type %s"" (" """) (string_content "cannot open value of type %s") (" """)) (, ",") (identifier "pcVar6") () ")")))) (; ";"))) (expression_statement "sqlite3_finalize(param_1[4]);" (call_expression "sqlite3_finalize(param_1[4])" (identifier "sqlite3_finalize") (argument_list "(param_1[4])" (( "(") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) () ")"))) (; ";")) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_4 = uVar5;" (assignment_expression "*param_4 = uVar5" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "uVar5")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

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

int __regparm3 function_1(type_1 *p,type_2 iRow,char **pzErr)

{
  type_3 var_7;
  type_4 *p_00;
  type_5 *pMVar2;
  type_6 *pVVar3;
  type_7 *pBVar4;
  type_8 *pBVar5;
  int var_1;
  char *pcVar7;
  type_9 in_ECX;
  type_10 var_8;
  
  p_00 = (type_4 *)p->pStmt;
  var_1 = p_00->pc;
  pMVar2 = p_00->aMem;
  pMVar2[1].flags = 4;
  pMVar2[1].u.zPType = (char *)pzErr;
  *(type_9 *)((int)&pMVar2[1].u + 4) = in_ECX;
  if (var_1 < 5) {
    var_1 = var_2((type_11 *)p_00);
  }
  else {
    p_00->pc = 4;
    var_1 = var_3(p_00);
  }
  if (var_1 != 100) {
    if (p->pStmt == (type_11 *)0x0) {
      pcVar7 = (char *)0x0;
    }
    else {
      var_1 = var_4(p->pStmt);
      p->pStmt = (type_11 *)0x0;
      if (var_1 == 0) {
        pcVar7 = var_5(p->db,"no such rowid: %lld",pzErr,in_ECX);
        *(type_9 *)iRow = pcVar7;
        return 1;
      }
      pcVar7 = var_6(p->db);
      pcVar7 = var_5(p->db,"%s",pcVar7);
    }
LAB_000a79af:
    *(type_9 *)iRow = pcVar7;
    return var_1;
  }
  pVVar3 = *p_00->apCsr;
  var_7 = p->iCol;
  if (var_7 < pVVar3->nHdrParsed) {
    var_8 = pVVar3->aType[var_7];
    if (0xb < var_8) {
      p->iOffset = pVVar3->aType[(int)pVVar3->nField + (type_10)var_7];
      if (var_8 < 0x80) {
        var_8 = (type_10)""[var_8];
      }
      else {
        var_8 = var_8 - 0xc >> 1;
      }
      pBVar4 = (pVVar3->uc).pCursor;
      p->nByte = var_8;
      pcVar7 = (char *)0x0;
      var_1 = 0;
      pBVar5 = pBVar4->pBtree;
      p->pCsr = pBVar4;
      pBVar4->curFlags = pBVar4->curFlags | 0x10;
      pBVar5->hasIncrblobCur = '\x01';
      goto LAB_000a79af;
    }
    if (var_8 != 0) {
      pcVar7 = "real";
      if (var_8 != 7) {
        pcVar7 = "integer";
      }
      goto LAB_000a7a56;
    }
  }
  pcVar7 = "null";
LAB_000a7a56:
  pcVar7 = var_5(p->db,"cannot open value of type %s",pcVar7);
  var_4(p->pStmt);
  p->pStmt = (type_11 *)0x0;
  *(type_9 *)iRow = pcVar7;
  return 1;
}


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

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

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

{
  ushort uVar1;
  uint uVar2;
  int iVar3;
  int iVar4;
  undefined4 uVar5;
  char *pcVar6;
  uint uVar7;
  
  uVar7 = param_1[4];
  iVar3 = *(int *)(uVar7 + 0x24);
  iVar4 = *(int *)(uVar7 + 0x54);
  *(undefined2 *)(iVar4 + 0x30) = 4;
  *(undefined4 *)(iVar4 + 0x28) = param_2;
  *(undefined4 *)(iVar4 + 0x2c) = param_3;
  if (iVar3 < 5) {
    iVar4 = sqlite3_step(uVar7);
  }
  else {
    *(undefined4 *)(uVar7 + 0x24) = 4;
    iVar4 = FUN_00083fd0();
  }
  if (iVar4 != 100) {
    if (param_1[4] == 0) {
      uVar5 = 0;
    }
    else {
      iVar4 = sqlite3_finalize(param_1[4]);
      param_1[4] = 0;
      if (iVar4 == 0) {
        uVar5 = FUN_0003e990(param_1[5],"no such rowid: %lld",param_2,param_3);
        *param_4 = uVar5;
        return 1;
      }
      uVar5 = sqlite3_errmsg(param_1[5]);
      uVar5 = FUN_0003e990(param_1[5],&DAT_000aa41d,uVar5);
    }
LAB_000a79af:
    *param_4 = uVar5;
    return iVar4;
  }
  iVar4 = **(int **)(uVar7 + 0x5c);
  uVar1 = (ushort)param_1[2];
  if (uVar1 < *(ushort *)(iVar4 + 0x36)) {
    uVar7 = *(uint *)(iVar4 + 0x50 + (uint)uVar1 * 4);
    if (0xb < uVar7) {
      param_1[1] = *(uint *)(iVar4 + (uVar1 + 0x14 + (int)*(short *)(iVar4 + 0x34)) * 4);
      if (uVar7 < 0x80) {
        uVar7 = (uint)(byte)(&DAT_000b4ca0)[uVar7];
      }
      else {
        uVar7 = uVar7 - 0xc >> 1;
      }
      uVar2 = *(uint *)(iVar4 + 0x24);
      *param_1 = uVar7;
      uVar5 = 0;
      iVar4 = 0;
      iVar3 = *(int *)(uVar2 + 8);
      param_1[3] = uVar2;
      *(byte *)(uVar2 + 1) = *(byte *)(uVar2 + 1) | 0x10;
      *(undefined1 *)(iVar3 + 0xb) = 1;
      goto LAB_000a79af;
    }
    if (uVar7 != 0) {
      pcVar6 = "real";
      if (uVar7 != 7) {
        pcVar6 = "integer";
      }
      goto LAB_000a7a56;
    }
  }
  pcVar6 = "null";
LAB_000a7a56:
  uVar5 = FUN_0003e990(param_1[5],"cannot open value of type %s",pcVar6);
  sqlite3_finalize(param_1[4]);
  param_1[4] = 0;
  *param_4 = uVar5;
  return 1;
}

