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

int statConnect(sqlite3 *db,void *pAux,int argc,char **argv,sqlite3_vtab **ppVtab,char **pzErr)

{
  int iVar1;
  size_t sVar2;
  int iVar3;
  char *pcVar4;
  sqlite3_vtab *psVar5;
  int in_GS_OFFSET;
  u64 in_stack_ffffffc4;
  int local_34;
  Token nm;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (argc < 4) {
    local_34 = 0;
  }
  else {
    nm.z = argv[3];
    if (nm.z == (char *)0x0) {
      nm.n = 0;
    }
    else {
      sVar2 = strlen(nm.z);
      nm.n = sVar2 & 0x3fffffff;
    }
    local_34 = sqlite3FindDb(db,&nm);
    if (local_34 < 0) {
      iVar3 = 1;
      pcVar4 = sqlite3_mprintf("no such database: %s",argv[3]);
      *pzErr = pcVar4;
      goto LAB_000f2ba5;
    }
  }
  iVar3 = sqlite3_declare_vtab
                    (db,
                     "CREATE TABLE xx(   name       TEXT,             /* Name of table or index */  path       TEXT,             /* Path to page from root */  pageno     INTEGER,          /* Page number */  pagetype   TEXT,             /* \'internal\', \'leaf\' or \'overflow\' */  ncell      INTEGER,          /* Cells on page (0 for overflow) */  payload    INTEGER,          /* Bytes of payload on this page */  unused     INTEGER,          /* Bytes of unused space on this page */  mx_payload INTEGER,          /* Largest payload size of all cells */  pgoffset   INTEGER,          /* Offset of page in file */  pgsize     INTEGER,          /* Size of the page */  schema     TEXT HIDDEN       /* Database schema being analyzed */);"
                    );
  psVar5 = (sqlite3_vtab *)0x0;
  if (iVar3 == 0) {
    iVar3 = sqlite3_initialize();
    psVar5 = (sqlite3_vtab *)0x0;
    if (iVar3 == 0) {
      psVar5 = (sqlite3_vtab *)sqlite3Malloc(in_stack_ffffffc4);
      if (psVar5 != (sqlite3_vtab *)0x0) {
        psVar5->pModule = (sqlite3_module *)0x0;
        psVar5->nRef = 0;
        psVar5->zErrMsg = (char *)0x0;
        psVar5[1].pModule = (sqlite3_module *)db;
        psVar5[1].nRef = local_34;
        iVar3 = 0;
        goto LAB_000f2ba3;
      }
    }
    iVar3 = 7;
  }
LAB_000f2ba3:
  *ppVtab = psVar5;
LAB_000f2ba5:
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar3;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

int FUN_000f2b10(undefined4 param_1,undefined4 param_2,int param_3,int param_4,undefined4 *param_5,
                undefined4 *param_6)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  undefined4 *puVar4;
  int in_GS_OFFSET;
  int local_34;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_3 < 4) {
    local_34 = 0;
  }
  else {
    if (*(char **)(param_4 + 0xc) != (char *)0x0) {
      strlen(*(char **)(param_4 + 0xc));
    }
    local_34 = FUN_00045720();
    if (local_34 < 0) {
      iVar2 = 1;
      uVar3 = FUN_0008ff90("no such database: %s",*(undefined4 *)(param_4 + 0xc));
      *param_6 = uVar3;
      goto LAB_000f2ba5;
    }
  }
  iVar2 = FUN_000e7690(param_1,
                       "CREATE TABLE xx(   name       TEXT,             /* Name of table or index */  path       TEXT,             /* Path to page from root */  pageno     INTEGER,          /* Page number */  pagetype   TEXT,             /* \'internal\', \'leaf\' or \'overflow\' */  ncell      INTEGER,          /* Cells on page (0 for overflow) */  payload    INTEGER,          /* Bytes of payload on this page */  unused     INTEGER,          /* Bytes of unused space on this page */  mx_payload INTEGER,          /* Largest payload size of all cells */  pgoffset   INTEGER,          /* Offset of page in file */  pgsize     INTEGER,          /* Size of the page */  schema     TEXT HIDDEN       /* Database schema being analyzed */);"
                      );
  puVar4 = (undefined4 *)0x0;
  if (iVar2 == 0) {
    iVar2 = FUN_0005b490();
    puVar4 = (undefined4 *)0x0;
    if ((iVar2 == 0) && (puVar4 = (undefined4 *)FUN_000421f0(), puVar4 != (undefined4 *)0x0)) {
      *puVar4 = 0;
      puVar4[1] = 0;
      puVar4[2] = 0;
      puVar4[3] = param_1;
      puVar4[4] = local_34;
      iVar2 = 0;
    }
    else {
      iVar2 = 7;
    }
  }
  *param_5 = puVar4;
LAB_000f2ba5:
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00116110();
  }
  return iVar2;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00017230
ADD EBX,0x8930f
SUB ESP,0x2c
MOV EAX,dword ptr [ESP + 0x54]
MOV ESI,dword ptr [ESP + 0x40]
MOV EBP,dword ptr [ESP + 0x4c]
MOV EDI,dword ptr [ESP + 0x50]
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x1c],EAX
XOR EAX,EAX
CMP dword ptr [ESP + 0x48],0x3
JLE 0x000f2c08
MOV EAX,dword ptr [EBP + 0xc]
MOV dword ptr [ESP + 0x14],EAX
TEST EAX,EAX
JZ 0x000f2c20
SUB ESP,0xc
PUSH EAX
CALL 0x000153b0
ADD ESP,0x10
AND EAX,0x3fffffff
MOV dword ptr [ESP + 0x18],EAX
LEA EDX,[ESP + 0x14]
MOV EAX,ESI
CALL 0x00045720
MOV dword ptr [ESP + 0x8],EAX
TEST EAX,EAX
JS 0x000f2c30
SUB ESP,0x8
LEA EAX,[EBX + 0xfffb4794]
PUSH EAX
PUSH ESI
CALL 0x000e7690
ADD ESP,0x10
XOR EDX,EDX
MOV EBP,EAX
TEST EAX,EAX
JZ 0x000f2bc0
MOV dword ptr [EDI],EDX
MOV ECX,dword ptr [ESP + 0x1c]
XOR ECX,dword ptr GS:[0x14]
MOV EAX,EBP
JNZ 0x000f2c55
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0xc],EDX
CALL 0x0005b490
MOV EDX,dword ptr [ESP + 0xc]
TEST EAX,EAX
MOV EBP,EAX
JNZ 0x000f2c18
XOR EDX,EDX
MOV EAX,0x14
CALL 0x000421f0
MOV EDX,EAX
TEST EAX,EAX
JZ 0x000f2c18
MOV dword ptr [EAX],0x0
MOV dword ptr [EAX + 0x4],0x0
MOV dword ptr [EAX + 0x8],0x0
MOV dword ptr [EAX + 0xc],ESI
MOV EAX,dword ptr [ESP + 0x8]
MOV dword ptr [EDX + 0x10],EAX
JMP 0x000f2ba3
MOV dword ptr [ESP + 0x8],0x0
JMP 0x000f2b88
MOV EBP,0x7
JMP 0x000f2ba3
XOR EAX,EAX
JMP 0x000f2b6d
SUB ESP,0x8
LEA EAX,[EBX + 0xfffa47fe]
PUSH dword ptr [EBP + 0xc]
MOV EBP,0x1
PUSH EAX
CALL 0x0008ff90
MOV ECX,dword ptr [ESP + 0x1c]
ADD ESP,0x10
MOV dword ptr [ECX],EAX
JMP 0x000f2ba5
CALL 0x00116110
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_000f2b10(undefined4 param_1,undefined4 param_2,int param_3,int param_4,undefined4 *param_5,\n                undefined4 *param_6)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int in_GS_OFFSET;\n  int local_34;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_3 < 4) {\n    local_34 = 0;\n  }\n  else {\n    if (*(char **)(param_4 + 0xc) != (char *)0x0) {\n      strlen(*(char **)(param_4 + 0xc));\n    }\n    local_34 = FUN_00045720();\n    if (local_34 < 0) {\n      iVar2 = 1;\n      uVar3 = FUN_0008ff90("no such database: %s",*(undefined4 *)(param_4 + 0xc));\n      *param_6 = uVar3;\n      goto LAB_000f2ba5;\n    }\n  }\n  iVar2 = FUN_000e7690(param_1,\n                       "CREATE TABLE xx(   name       TEXT,             /* Name of table or index */  path       TEXT,             /* Path to page from root */  pageno     INTEGER,          /* Page number */  pagetype   TEXT,             /* \'internal\', \'leaf\' or \'overflow\' */  ncell      INTEGER,          /* Cells on page (0 for overflow) */  payload    INTEGER,          /* Bytes of payload on this page */  unused     INTEGER,          /* Bytes of unused space on this page */  mx_payload INTEGER,          /* Largest payload size of all cells */  pgoffset   INTEGER,          /* Offset of page in file */  pgsize     INTEGER,          /* Size of the page */  schema     TEXT HIDDEN       /* Database schema being analyzed */);"\n                      );\n  puVar4 = (undefined4 *)0x0;\n  if (iVar2 == 0) {\n    iVar2 = FUN_0005b490();\n    puVar4 = (undefined4 *)0x0;\n    if ((iVar2 == 0) && (puVar4 = (undefined4 *)FUN_000421f0(), puVar4 != (undefined4 *)0x0)) {\n      *puVar4 = 0;\n      puVar4[1] = 0;\n      puVar4[2] = 0;\n      puVar4[3] = param_1;\n      puVar4[4] = local_34;\n      iVar2 = 0;\n    }\n    else {\n      iVar2 = 7;\n    }\n  }\n  *param_5 = puVar4;\nLAB_000f2ba5:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }\n  return iVar2;\n}\n\n" comment (function_definition "int FUN_000f2b10(undefined4 param_1,undefined4 param_2,int param_3,int param_4,undefined4 *param_5,\n                undefined4 *param_6)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int in_GS_OFFSET;\n  int local_34;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_3 < 4) {\n    local_34 = 0;\n  }\n  else {\n    if (*(char **)(param_4 + 0xc) != (char *)0x0) {\n      strlen(*(char **)(param_4 + 0xc));\n    }\n    local_34 = FUN_00045720();\n    if (local_34 < 0) {\n      iVar2 = 1;\n      uVar3 = FUN_0008ff90("no such database: %s",*(undefined4 *)(param_4 + 0xc));\n      *param_6 = uVar3;\n      goto LAB_000f2ba5;\n    }\n  }\n  iVar2 = FUN_000e7690(param_1,\n                       "CREATE TABLE xx(   name       TEXT,             /* Name of table or index */  path       TEXT,             /* Path to page from root */  pageno     INTEGER,          /* Page number */  pagetype   TEXT,             /* \'internal\', \'leaf\' or \'overflow\' */  ncell      INTEGER,          /* Cells on page (0 for overflow) */  payload    INTEGER,          /* Bytes of payload on this page */  unused     INTEGER,          /* Bytes of unused space on this page */  mx_payload INTEGER,          /* Largest payload size of all cells */  pgoffset   INTEGER,          /* Offset of page in file */  pgsize     INTEGER,          /* Size of the page */  schema     TEXT HIDDEN       /* Database schema being analyzed */);"\n                      );\n  puVar4 = (undefined4 *)0x0;\n  if (iVar2 == 0) {\n    iVar2 = FUN_0005b490();\n    puVar4 = (undefined4 *)0x0;\n    if ((iVar2 == 0) && (puVar4 = (undefined4 *)FUN_000421f0(), puVar4 != (undefined4 *)0x0)) {\n      *puVar4 = 0;\n      puVar4[1] = 0;\n      puVar4[2] = 0;\n      puVar4[3] = param_1;\n      puVar4[4] = local_34;\n      iVar2 = 0;\n    }\n    else {\n      iVar2 = 7;\n    }\n  }\n  *param_5 = puVar4;\nLAB_000f2ba5:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }\n  return iVar2;\n}" primitive_type (function_declarator "FUN_000f2b10(undefined4 param_1,undefined4 param_2,int param_3,int param_4,undefined4 *param_5,\n                undefined4 *param_6)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3,int param_4,undefined4 *param_5,\n                undefined4 *param_6)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "undefined4 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "undefined4 *param_6" type_identifier (pointer_declarator "*param_6" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int in_GS_OFFSET;\n  int local_34;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_3 < 4) {\n    local_34 = 0;\n  }\n  else {\n    if (*(char **)(param_4 + 0xc) != (char *)0x0) {\n      strlen(*(char **)(param_4 + 0xc));\n    }\n    local_34 = FUN_00045720();\n    if (local_34 < 0) {\n      iVar2 = 1;\n      uVar3 = FUN_0008ff90("no such database: %s",*(undefined4 *)(param_4 + 0xc));\n      *param_6 = uVar3;\n      goto LAB_000f2ba5;\n    }\n  }\n  iVar2 = FUN_000e7690(param_1,\n                       "CREATE TABLE xx(   name       TEXT,             /* Name of table or index */  path       TEXT,             /* Path to page from root */  pageno     INTEGER,          /* Page number */  pagetype   TEXT,             /* \'internal\', \'leaf\' or \'overflow\' */  ncell      INTEGER,          /* Cells on page (0 for overflow) */  payload    INTEGER,          /* Bytes of payload on this page */  unused     INTEGER,          /* Bytes of unused space on this page */  mx_payload INTEGER,          /* Largest payload size of all cells */  pgoffset   INTEGER,          /* Offset of page in file */  pgsize     INTEGER,          /* Size of the page */  schema     TEXT HIDDEN       /* Database schema being analyzed */);"\n                      );\n  puVar4 = (undefined4 *)0x0;\n  if (iVar2 == 0) {\n    iVar2 = FUN_0005b490();\n    puVar4 = (undefined4 *)0x0;\n    if ((iVar2 == 0) && (puVar4 = (undefined4 *)FUN_000421f0(), puVar4 != (undefined4 *)0x0)) {\n      *puVar4 = 0;\n      puVar4[1] = 0;\n      puVar4[2] = 0;\n      puVar4[3] = param_1;\n      puVar4[4] = local_34;\n      iVar2 = 0;\n    }\n    else {\n      iVar2 = 7;\n    }\n  }\n  *param_5 = puVar4;\nLAB_000f2ba5:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_34;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_3 < 4) {\n    local_34 = 0;\n  }\n  else {\n    if (*(char **)(param_4 + 0xc) != (char *)0x0) {\n      strlen(*(char **)(param_4 + 0xc));\n    }\n    local_34 = FUN_00045720();\n    if (local_34 < 0) {\n      iVar2 = 1;\n      uVar3 = FUN_0008ff90("no such database: %s",*(undefined4 *)(param_4 + 0xc));\n      *param_6 = uVar3;\n      goto LAB_000f2ba5;\n    }\n  }" if (parenthesized_expression "(param_3 < 4)" ( (binary_expression "param_3 < 4" identifier < number_literal) )) (compound_statement "{\n    local_34 = 0;\n  }" { (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    if (*(char **)(param_4 + 0xc) != (char *)0x0) {\n      strlen(*(char **)(param_4 + 0xc));\n    }\n    local_34 = FUN_00045720();\n    if (local_34 < 0) {\n      iVar2 = 1;\n      uVar3 = FUN_0008ff90("no such database: %s",*(undefined4 *)(param_4 + 0xc));\n      *param_6 = uVar3;\n      goto LAB_000f2ba5;\n    }\n  }" else (compound_statement "{\n    if (*(char **)(param_4 + 0xc) != (char *)0x0) {\n      strlen(*(char **)(param_4 + 0xc));\n    }\n    local_34 = FUN_00045720();\n    if (local_34 < 0) {\n      iVar2 = 1;\n      uVar3 = FUN_0008ff90("no such database: %s",*(undefined4 *)(param_4 + 0xc));\n      *param_6 = uVar3;\n      goto LAB_000f2ba5;\n    }\n  }" { (if_statement "if (*(char **)(param_4 + 0xc) != (char *)0x0) {\n      strlen(*(char **)(param_4 + 0xc));\n    }" if (parenthesized_expression "(*(char **)(param_4 + 0xc) != (char *)0x0)" ( (binary_expression "*(char **)(param_4 + 0xc) != (char *)0x0" (pointer_expression "*(char **)(param_4 + 0xc)" * (cast_expression "(char **)(param_4 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_4 + 0xc)" ( (binary_expression "param_4 + 0xc" identifier + number_literal) )))) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      strlen(*(char **)(param_4 + 0xc));\n    }" { (expression_statement "strlen(*(char **)(param_4 + 0xc));" (call_expression "strlen(*(char **)(param_4 + 0xc))" identifier (argument_list "(*(char **)(param_4 + 0xc))" ( (pointer_expression "*(char **)(param_4 + 0xc)" * (cast_expression "(char **)(param_4 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_4 + 0xc)" ( (binary_expression "param_4 + 0xc" identifier + number_literal) )))) ))) ;) })) (expression_statement "local_34 = FUN_00045720();" (assignment_expression "local_34 = FUN_00045720()" identifier = (call_expression "FUN_00045720()" identifier (argument_list "()" ( )))) ;) (if_statement "if (local_34 < 0) {\n      iVar2 = 1;\n      uVar3 = FUN_0008ff90("no such database: %s",*(undefined4 *)(param_4 + 0xc));\n      *param_6 = uVar3;\n      goto LAB_000f2ba5;\n    }" if (parenthesized_expression "(local_34 < 0)" ( (binary_expression "local_34 < 0" identifier < number_literal) )) (compound_statement "{\n      iVar2 = 1;\n      uVar3 = FUN_0008ff90("no such database: %s",*(undefined4 *)(param_4 + 0xc));\n      *param_6 = uVar3;\n      goto LAB_000f2ba5;\n    }" { (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" identifier = number_literal) ;) (expression_statement "uVar3 = FUN_0008ff90("no such database: %s",*(undefined4 *)(param_4 + 0xc));" (assignment_expression "uVar3 = FUN_0008ff90("no such database: %s",*(undefined4 *)(param_4 + 0xc))" identifier = (call_expression "FUN_0008ff90("no such database: %s",*(undefined4 *)(param_4 + 0xc))" identifier (argument_list "("no such database: %s",*(undefined4 *)(param_4 + 0xc))" ( (string_literal ""no such database: %s"" " string_content ") , (pointer_expression "*(undefined4 *)(param_4 + 0xc)" * (cast_expression "(undefined4 *)(param_4 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0xc)" ( (binary_expression "param_4 + 0xc" identifier + number_literal) )))) )))) ;) (expression_statement "*param_6 = uVar3;" (assignment_expression "*param_6 = uVar3" (pointer_expression "*param_6" * identifier) = identifier) ;) (goto_statement "goto LAB_000f2ba5;" goto statement_identifier ;) })) }))) (expression_statement "iVar2 = FUN_000e7690(param_1,\n                       "CREATE TABLE xx(   name       TEXT,             /* Name of table or index */  path       TEXT,             /* Path to page from root */  pageno     INTEGER,          /* Page number */  pagetype   TEXT,             /* \'internal\', \'leaf\' or \'overflow\' */  ncell      INTEGER,          /* Cells on page (0 for overflow) */  payload    INTEGER,          /* Bytes of payload on this page */  unused     INTEGER,          /* Bytes of unused space on this page */  mx_payload INTEGER,          /* Largest payload size of all cells */  pgoffset   INTEGER,          /* Offset of page in file */  pgsize     INTEGER,          /* Size of the page */  schema     TEXT HIDDEN       /* Database schema being analyzed */);"\n                      );" (assignment_expression "iVar2 = FUN_000e7690(param_1,\n                       "CREATE TABLE xx(   name       TEXT,             /* Name of table or index */  path       TEXT,             /* Path to page from root */  pageno     INTEGER,          /* Page number */  pagetype   TEXT,             /* \'internal\', \'leaf\' or \'overflow\' */  ncell      INTEGER,          /* Cells on page (0 for overflow) */  payload    INTEGER,          /* Bytes of payload on this page */  unused     INTEGER,          /* Bytes of unused space on this page */  mx_payload INTEGER,          /* Largest payload size of all cells */  pgoffset   INTEGER,          /* Offset of page in file */  pgsize     INTEGER,          /* Size of the page */  schema     TEXT HIDDEN       /* Database schema being analyzed */);"\n                      )" identifier = (call_expression "FUN_000e7690(param_1,\n                       "CREATE TABLE xx(   name       TEXT,             /* Name of table or index */  path       TEXT,             /* Path to page from root */  pageno     INTEGER,          /* Page number */  pagetype   TEXT,             /* \'internal\', \'leaf\' or \'overflow\' */  ncell      INTEGER,          /* Cells on page (0 for overflow) */  payload    INTEGER,          /* Bytes of payload on this page */  unused     INTEGER,          /* Bytes of unused space on this page */  mx_payload INTEGER,          /* Largest payload size of all cells */  pgoffset   INTEGER,          /* Offset of page in file */  pgsize     INTEGER,          /* Size of the page */  schema     TEXT HIDDEN       /* Database schema being analyzed */);"\n                      )" identifier (argument_list "(param_1,\n                       "CREATE TABLE xx(   name       TEXT,             /* Name of table or index */  path       TEXT,             /* Path to page from root */  pageno     INTEGER,          /* Page number */  pagetype   TEXT,             /* \'internal\', \'leaf\' or \'overflow\' */  ncell      INTEGER,          /* Cells on page (0 for overflow) */  payload    INTEGER,          /* Bytes of payload on this page */  unused     INTEGER,          /* Bytes of unused space on this page */  mx_payload INTEGER,          /* Largest payload size of all cells */  pgoffset   INTEGER,          /* Offset of page in file */  pgsize     INTEGER,          /* Size of the page */  schema     TEXT HIDDEN       /* Database schema being analyzed */);"\n                      )" ( identifier , (string_literal ""CREATE TABLE xx(   name       TEXT,             /* Name of table or index */  path       TEXT,             /* Path to page from root */  pageno     INTEGER,          /* Page number */  pagetype   TEXT,             /* \'internal\', \'leaf\' or \'overflow\' */  ncell      INTEGER,          /* Cells on page (0 for overflow) */  payload    INTEGER,          /* Bytes of payload on this page */  unused     INTEGER,          /* Bytes of unused space on this page */  mx_payload INTEGER,          /* Largest payload size of all cells */  pgoffset   INTEGER,          /* Offset of page in file */  pgsize     INTEGER,          /* Size of the page */  schema     TEXT HIDDEN       /* Database schema being analyzed */);"" " string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content ") )))) ;) (expression_statement "puVar4 = (undefined4 *)0x0;" (assignment_expression "puVar4 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (iVar2 == 0) {\n    iVar2 = FUN_0005b490();\n    puVar4 = (undefined4 *)0x0;\n    if ((iVar2 == 0) && (puVar4 = (undefined4 *)FUN_000421f0(), puVar4 != (undefined4 *)0x0)) {\n      *puVar4 = 0;\n      puVar4[1] = 0;\n      puVar4[2] = 0;\n      puVar4[3] = param_1;\n      puVar4[4] = local_34;\n      iVar2 = 0;\n    }\n    else {\n      iVar2 = 7;\n    }\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = FUN_0005b490();\n    puVar4 = (undefined4 *)0x0;\n    if ((iVar2 == 0) && (puVar4 = (undefined4 *)FUN_000421f0(), puVar4 != (undefined4 *)0x0)) {\n      *puVar4 = 0;\n      puVar4[1] = 0;\n      puVar4[2] = 0;\n      puVar4[3] = param_1;\n      puVar4[4] = local_34;\n      iVar2 = 0;\n    }\n    else {\n      iVar2 = 7;\n    }\n  }" { (expression_statement "iVar2 = FUN_0005b490();" (assignment_expression "iVar2 = FUN_0005b490()" identifier = (call_expression "FUN_0005b490()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar4 = (undefined4 *)0x0;" (assignment_expression "puVar4 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if ((iVar2 == 0) && (puVar4 = (undefined4 *)FUN_000421f0(), puVar4 != (undefined4 *)0x0)) {\n      *puVar4 = 0;\n      puVar4[1] = 0;\n      puVar4[2] = 0;\n      puVar4[3] = param_1;\n      puVar4[4] = local_34;\n      iVar2 = 0;\n    }\n    else {\n      iVar2 = 7;\n    }" if (parenthesized_expression "((iVar2 == 0) && (puVar4 = (undefined4 *)FUN_000421f0(), puVar4 != (undefined4 *)0x0))" ( (binary_expression "(iVar2 == 0) && (puVar4 = (undefined4 *)FUN_000421f0(), puVar4 != (undefined4 *)0x0)" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) && (parenthesized_expression "(puVar4 = (undefined4 *)FUN_000421f0(), puVar4 != (undefined4 *)0x0)" ( (comma_expression "puVar4 = (undefined4 *)FUN_000421f0(), puVar4 != (undefined4 *)0x0" (assignment_expression "puVar4 = (undefined4 *)FUN_000421f0()" identifier = (cast_expression "(undefined4 *)FUN_000421f0()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000421f0()" identifier (argument_list "()" ( ))))) , (binary_expression "puVar4 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n      *puVar4 = 0;\n      puVar4[1] = 0;\n      puVar4[2] = 0;\n      puVar4[3] = param_1;\n      puVar4[4] = local_34;\n      iVar2 = 0;\n    }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "puVar4[1] = 0;" (assignment_expression "puVar4[1] = 0" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar4[2] = 0;" (assignment_expression "puVar4[2] = 0" (subscript_expression "puVar4[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar4[3] = param_1;" (assignment_expression "puVar4[3] = param_1" (subscript_expression "puVar4[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4[4] = local_34;" (assignment_expression "puVar4[4] = local_34" (subscript_expression "puVar4[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar2 = 7;\n    }" else (compound_statement "{\n      iVar2 = 7;\n    }" { (expression_statement "iVar2 = 7;" (assignment_expression "iVar2 = 7" identifier = number_literal) ;) }))) })) (expression_statement "*param_5 = puVar4;" (assignment_expression "*param_5 = puVar4" (pointer_expression "*param_5" * identifier) = identifier) ;) (labeled_statement "LAB_000f2ba5:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }" statement_identifier : (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }" if (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }" { comment (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint statConnect(sqlite3 *db,void *pAux,int argc,char **argv,sqlite3_vtab **ppVtab,char **pzErr)\n\n{\n  int iVar1;\n  size_t sVar2;\n  int iVar3;\n  char *pcVar4;\n  sqlite3_vtab *psVar5;\n  int in_GS_OFFSET;\n  u64 in_stack_ffffffc4;\n  int local_34;\n  Token nm;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (argc < 4) {\n    local_34 = 0;\n  }\n  else {\n    nm.z = argv[3];\n    if (nm.z == (char *)0x0) {\n      nm.n = 0;\n    }\n    else {\n      sVar2 = strlen(nm.z);\n      nm.n = sVar2 & 0x3fffffff;\n    }\n    local_34 = sqlite3FindDb(db,&nm);\n    if (local_34 < 0) {\n      iVar3 = 1;\n      pcVar4 = sqlite3_mprintf("no such database: %s",argv[3]);\n      *pzErr = pcVar4;\n      goto LAB_000f2ba5;\n    }\n  }\n  iVar3 = sqlite3_declare_vtab\n                    (db,\n                     "CREATE TABLE xx(   name       TEXT,             /* Name of table or index */  path       TEXT,             /* Path to page from root */  pageno     INTEGER,          /* Page number */  pagetype   TEXT,             /* \'internal\', \'leaf\' or \'overflow\' */  ncell      INTEGER,          /* Cells on page (0 for overflow) */  payload    INTEGER,          /* Bytes of payload on this page */  unused     INTEGER,          /* Bytes of unused space on this page */  mx_payload INTEGER,          /* Largest payload size of all cells */  pgoffset   INTEGER,          /* Offset of page in file */  pgsize     INTEGER,          /* Size of the page */  schema     TEXT HIDDEN       /* Database schema being analyzed */);"\n                    );\n  psVar5 = (sqlite3_vtab *)0x0;\n  if (iVar3 == 0) {\n    iVar3 = sqlite3_initialize();\n    psVar5 = (sqlite3_vtab *)0x0;\n    if (iVar3 == 0) {\n      psVar5 = (sqlite3_vtab *)sqlite3Malloc(in_stack_ffffffc4);\n      if (psVar5 != (sqlite3_vtab *)0x0) {\n        psVar5->pModule = (sqlite3_module *)0x0;\n        psVar5->nRef = 0;\n        psVar5->zErrMsg = (char *)0x0;\n        psVar5[1].pModule = (sqlite3_module *)db;\n        psVar5[1].nRef = local_34;\n        iVar3 = 0;\n        goto LAB_000f2ba3;\n      }\n    }\n    iVar3 = 7;\n  }\nLAB_000f2ba3:\n  *ppVtab = psVar5;\nLAB_000f2ba5:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "int statConnect(sqlite3 *db,void *pAux,int argc,char **argv,sqlite3_vtab **ppVtab,char **pzErr)\n\n{\n  int iVar1;\n  size_t sVar2;\n  int iVar3;\n  char *pcVar4;\n  sqlite3_vtab *psVar5;\n  int in_GS_OFFSET;\n  u64 in_stack_ffffffc4;\n  int local_34;\n  Token nm;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (argc < 4) {\n    local_34 = 0;\n  }\n  else {\n    nm.z = argv[3];\n    if (nm.z == (char *)0x0) {\n      nm.n = 0;\n    }\n    else {\n      sVar2 = strlen(nm.z);\n      nm.n = sVar2 & 0x3fffffff;\n    }\n    local_34 = sqlite3FindDb(db,&nm);\n    if (local_34 < 0) {\n      iVar3 = 1;\n      pcVar4 = sqlite3_mprintf("no such database: %s",argv[3]);\n      *pzErr = pcVar4;\n      goto LAB_000f2ba5;\n    }\n  }\n  iVar3 = sqlite3_declare_vtab\n                    (db,\n                     "CREATE TABLE xx(   name       TEXT,             /* Name of table or index */  path       TEXT,             /* Path to page from root */  pageno     INTEGER,          /* Page number */  pagetype   TEXT,             /* \'internal\', \'leaf\' or \'overflow\' */  ncell      INTEGER,          /* Cells on page (0 for overflow) */  payload    INTEGER,          /* Bytes of payload on this page */  unused     INTEGER,          /* Bytes of unused space on this page */  mx_payload INTEGER,          /* Largest payload size of all cells */  pgoffset   INTEGER,          /* Offset of page in file */  pgsize     INTEGER,          /* Size of the page */  schema     TEXT HIDDEN       /* Database schema being analyzed */);"\n                    );\n  psVar5 = (sqlite3_vtab *)0x0;\n  if (iVar3 == 0) {\n    iVar3 = sqlite3_initialize();\n    psVar5 = (sqlite3_vtab *)0x0;\n    if (iVar3 == 0) {\n      psVar5 = (sqlite3_vtab *)sqlite3Malloc(in_stack_ffffffc4);\n      if (psVar5 != (sqlite3_vtab *)0x0) {\n        psVar5->pModule = (sqlite3_module *)0x0;\n        psVar5->nRef = 0;\n        psVar5->zErrMsg = (char *)0x0;\n        psVar5[1].pModule = (sqlite3_module *)db;\n        psVar5[1].nRef = local_34;\n        iVar3 = 0;\n        goto LAB_000f2ba3;\n      }\n    }\n    iVar3 = 7;\n  }\nLAB_000f2ba3:\n  *ppVtab = psVar5;\nLAB_000f2ba5:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "statConnect(sqlite3 *db,void *pAux,int argc,char **argv,sqlite3_vtab **ppVtab,char **pzErr)" identifier (parameter_list "(sqlite3 *db,void *pAux,int argc,char **argv,sqlite3_vtab **ppVtab,char **pzErr)" ( (parameter_declaration "sqlite3 *db" type_identifier (pointer_declarator "*db" * identifier)) , (parameter_declaration "void *pAux" primitive_type (pointer_declarator "*pAux" * identifier)) , (parameter_declaration "int argc" primitive_type identifier) , (parameter_declaration "char **argv" primitive_type (pointer_declarator "**argv" * (pointer_declarator "*argv" * identifier))) , (parameter_declaration "sqlite3_vtab **ppVtab" type_identifier (pointer_declarator "**ppVtab" * (pointer_declarator "*ppVtab" * identifier))) , (parameter_declaration "char **pzErr" primitive_type (pointer_declarator "**pzErr" * (pointer_declarator "*pzErr" * identifier))) ))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  int iVar3;\n  char *pcVar4;\n  sqlite3_vtab *psVar5;\n  int in_GS_OFFSET;\n  u64 in_stack_ffffffc4;\n  int local_34;\n  Token nm;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (argc < 4) {\n    local_34 = 0;\n  }\n  else {\n    nm.z = argv[3];\n    if (nm.z == (char *)0x0) {\n      nm.n = 0;\n    }\n    else {\n      sVar2 = strlen(nm.z);\n      nm.n = sVar2 & 0x3fffffff;\n    }\n    local_34 = sqlite3FindDb(db,&nm);\n    if (local_34 < 0) {\n      iVar3 = 1;\n      pcVar4 = sqlite3_mprintf("no such database: %s",argv[3]);\n      *pzErr = pcVar4;\n      goto LAB_000f2ba5;\n    }\n  }\n  iVar3 = sqlite3_declare_vtab\n                    (db,\n                     "CREATE TABLE xx(   name       TEXT,             /* Name of table or index */  path       TEXT,             /* Path to page from root */  pageno     INTEGER,          /* Page number */  pagetype   TEXT,             /* \'internal\', \'leaf\' or \'overflow\' */  ncell      INTEGER,          /* Cells on page (0 for overflow) */  payload    INTEGER,          /* Bytes of payload on this page */  unused     INTEGER,          /* Bytes of unused space on this page */  mx_payload INTEGER,          /* Largest payload size of all cells */  pgoffset   INTEGER,          /* Offset of page in file */  pgsize     INTEGER,          /* Size of the page */  schema     TEXT HIDDEN       /* Database schema being analyzed */);"\n                    );\n  psVar5 = (sqlite3_vtab *)0x0;\n  if (iVar3 == 0) {\n    iVar3 = sqlite3_initialize();\n    psVar5 = (sqlite3_vtab *)0x0;\n    if (iVar3 == 0) {\n      psVar5 = (sqlite3_vtab *)sqlite3Malloc(in_stack_ffffffc4);\n      if (psVar5 != (sqlite3_vtab *)0x0) {\n        psVar5->pModule = (sqlite3_module *)0x0;\n        psVar5->nRef = 0;\n        psVar5->zErrMsg = (char *)0x0;\n        psVar5[1].pModule = (sqlite3_module *)db;\n        psVar5[1].nRef = local_34;\n        iVar3 = 0;\n        goto LAB_000f2ba3;\n      }\n    }\n    iVar3 = 7;\n  }\nLAB_000f2ba3:\n  *ppVtab = psVar5;\nLAB_000f2ba5:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "sqlite3_vtab *psVar5;" type_identifier (pointer_declarator "*psVar5" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "u64 in_stack_ffffffc4;" type_identifier identifier ;) (declaration "int local_34;" primitive_type identifier ;) (declaration "Token nm;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (argc < 4) {\n    local_34 = 0;\n  }\n  else {\n    nm.z = argv[3];\n    if (nm.z == (char *)0x0) {\n      nm.n = 0;\n    }\n    else {\n      sVar2 = strlen(nm.z);\n      nm.n = sVar2 & 0x3fffffff;\n    }\n    local_34 = sqlite3FindDb(db,&nm);\n    if (local_34 < 0) {\n      iVar3 = 1;\n      pcVar4 = sqlite3_mprintf("no such database: %s",argv[3]);\n      *pzErr = pcVar4;\n      goto LAB_000f2ba5;\n    }\n  }" if (parenthesized_expression "(argc < 4)" ( (binary_expression "argc < 4" identifier < number_literal) )) (compound_statement "{\n    local_34 = 0;\n  }" { (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    nm.z = argv[3];\n    if (nm.z == (char *)0x0) {\n      nm.n = 0;\n    }\n    else {\n      sVar2 = strlen(nm.z);\n      nm.n = sVar2 & 0x3fffffff;\n    }\n    local_34 = sqlite3FindDb(db,&nm);\n    if (local_34 < 0) {\n      iVar3 = 1;\n      pcVar4 = sqlite3_mprintf("no such database: %s",argv[3]);\n      *pzErr = pcVar4;\n      goto LAB_000f2ba5;\n    }\n  }" else (compound_statement "{\n    nm.z = argv[3];\n    if (nm.z == (char *)0x0) {\n      nm.n = 0;\n    }\n    else {\n      sVar2 = strlen(nm.z);\n      nm.n = sVar2 & 0x3fffffff;\n    }\n    local_34 = sqlite3FindDb(db,&nm);\n    if (local_34 < 0) {\n      iVar3 = 1;\n      pcVar4 = sqlite3_mprintf("no such database: %s",argv[3]);\n      *pzErr = pcVar4;\n      goto LAB_000f2ba5;\n    }\n  }" { (expression_statement "nm.z = argv[3];" (assignment_expression "nm.z = argv[3]" (field_expression "nm.z" identifier . field_identifier) = (subscript_expression "argv[3]" identifier [ number_literal ])) ;) (if_statement "if (nm.z == (char *)0x0) {\n      nm.n = 0;\n    }\n    else {\n      sVar2 = strlen(nm.z);\n      nm.n = sVar2 & 0x3fffffff;\n    }" if (parenthesized_expression "(nm.z == (char *)0x0)" ( (binary_expression "nm.z == (char *)0x0" (field_expression "nm.z" identifier . field_identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      nm.n = 0;\n    }" { (expression_statement "nm.n = 0;" (assignment_expression "nm.n = 0" (field_expression "nm.n" identifier . field_identifier) = number_literal) ;) }) (else_clause "else {\n      sVar2 = strlen(nm.z);\n      nm.n = sVar2 & 0x3fffffff;\n    }" else (compound_statement "{\n      sVar2 = strlen(nm.z);\n      nm.n = sVar2 & 0x3fffffff;\n    }" { (expression_statement "sVar2 = strlen(nm.z);" (assignment_expression "sVar2 = strlen(nm.z)" identifier = (call_expression "strlen(nm.z)" identifier (argument_list "(nm.z)" ( (field_expression "nm.z" identifier . field_identifier) )))) ;) (expression_statement "nm.n = sVar2 & 0x3fffffff;" (assignment_expression "nm.n = sVar2 & 0x3fffffff" (field_expression "nm.n" identifier . field_identifier) = (binary_expression "sVar2 & 0x3fffffff" identifier & number_literal)) ;) }))) (expression_statement "local_34 = sqlite3FindDb(db,&nm);" (assignment_expression "local_34 = sqlite3FindDb(db,&nm)" identifier = (call_expression "sqlite3FindDb(db,&nm)" identifier (argument_list "(db,&nm)" ( identifier , (pointer_expression "&nm" & identifier) )))) ;) (if_statement "if (local_34 < 0) {\n      iVar3 = 1;\n      pcVar4 = sqlite3_mprintf("no such database: %s",argv[3]);\n      *pzErr = pcVar4;\n      goto LAB_000f2ba5;\n    }" if (parenthesized_expression "(local_34 < 0)" ( (binary_expression "local_34 < 0" identifier < number_literal) )) (compound_statement "{\n      iVar3 = 1;\n      pcVar4 = sqlite3_mprintf("no such database: %s",argv[3]);\n      *pzErr = pcVar4;\n      goto LAB_000f2ba5;\n    }" { (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;) (expression_statement "pcVar4 = sqlite3_mprintf("no such database: %s",argv[3]);" (assignment_expression "pcVar4 = sqlite3_mprintf("no such database: %s",argv[3])" identifier = (call_expression "sqlite3_mprintf("no such database: %s",argv[3])" identifier (argument_list "("no such database: %s",argv[3])" ( (string_literal ""no such database: %s"" " string_content ") , (subscript_expression "argv[3]" identifier [ number_literal ]) )))) ;) (expression_statement "*pzErr = pcVar4;" (assignment_expression "*pzErr = pcVar4" (pointer_expression "*pzErr" * identifier) = identifier) ;) (goto_statement "goto LAB_000f2ba5;" goto statement_identifier ;) })) }))) (expression_statement "iVar3 = sqlite3_declare_vtab\n                    (db,\n                     "CREATE TABLE xx(   name       TEXT,             /* Name of table or index */  path       TEXT,             /* Path to page from root */  pageno     INTEGER,          /* Page number */  pagetype   TEXT,             /* \'internal\', \'leaf\' or \'overflow\' */  ncell      INTEGER,          /* Cells on page (0 for overflow) */  payload    INTEGER,          /* Bytes of payload on this page */  unused     INTEGER,          /* Bytes of unused space on this page */  mx_payload INTEGER,          /* Largest payload size of all cells */  pgoffset   INTEGER,          /* Offset of page in file */  pgsize     INTEGER,          /* Size of the page */  schema     TEXT HIDDEN       /* Database schema being analyzed */);"\n                    );" (assignment_expression "iVar3 = sqlite3_declare_vtab\n                    (db,\n                     "CREATE TABLE xx(   name       TEXT,             /* Name of table or index */  path       TEXT,             /* Path to page from root */  pageno     INTEGER,          /* Page number */  pagetype   TEXT,             /* \'internal\', \'leaf\' or \'overflow\' */  ncell      INTEGER,          /* Cells on page (0 for overflow) */  payload    INTEGER,          /* Bytes of payload on this page */  unused     INTEGER,          /* Bytes of unused space on this page */  mx_payload INTEGER,          /* Largest payload size of all cells */  pgoffset   INTEGER,          /* Offset of page in file */  pgsize     INTEGER,          /* Size of the page */  schema     TEXT HIDDEN       /* Database schema being analyzed */);"\n                    )" identifier = (call_expression "sqlite3_declare_vtab\n                    (db,\n                     "CREATE TABLE xx(   name       TEXT,             /* Name of table or index */  path       TEXT,             /* Path to page from root */  pageno     INTEGER,          /* Page number */  pagetype   TEXT,             /* \'internal\', \'leaf\' or \'overflow\' */  ncell      INTEGER,          /* Cells on page (0 for overflow) */  payload    INTEGER,          /* Bytes of payload on this page */  unused     INTEGER,          /* Bytes of unused space on this page */  mx_payload INTEGER,          /* Largest payload size of all cells */  pgoffset   INTEGER,          /* Offset of page in file */  pgsize     INTEGER,          /* Size of the page */  schema     TEXT HIDDEN       /* Database schema being analyzed */);"\n                    )" identifier (argument_list "(db,\n                     "CREATE TABLE xx(   name       TEXT,             /* Name of table or index */  path       TEXT,             /* Path to page from root */  pageno     INTEGER,          /* Page number */  pagetype   TEXT,             /* \'internal\', \'leaf\' or \'overflow\' */  ncell      INTEGER,          /* Cells on page (0 for overflow) */  payload    INTEGER,          /* Bytes of payload on this page */  unused     INTEGER,          /* Bytes of unused space on this page */  mx_payload INTEGER,          /* Largest payload size of all cells */  pgoffset   INTEGER,          /* Offset of page in file */  pgsize     INTEGER,          /* Size of the page */  schema     TEXT HIDDEN       /* Database schema being analyzed */);"\n                    )" ( identifier , (string_literal ""CREATE TABLE xx(   name       TEXT,             /* Name of table or index */  path       TEXT,             /* Path to page from root */  pageno     INTEGER,          /* Page number */  pagetype   TEXT,             /* \'internal\', \'leaf\' or \'overflow\' */  ncell      INTEGER,          /* Cells on page (0 for overflow) */  payload    INTEGER,          /* Bytes of payload on this page */  unused     INTEGER,          /* Bytes of unused space on this page */  mx_payload INTEGER,          /* Largest payload size of all cells */  pgoffset   INTEGER,          /* Offset of page in file */  pgsize     INTEGER,          /* Size of the page */  schema     TEXT HIDDEN       /* Database schema being analyzed */);"" " string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content ") )))) ;) (expression_statement "psVar5 = (sqlite3_vtab *)0x0;" (assignment_expression "psVar5 = (sqlite3_vtab *)0x0" identifier = (cast_expression "(sqlite3_vtab *)0x0" ( (type_descriptor "sqlite3_vtab *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (iVar3 == 0) {\n    iVar3 = sqlite3_initialize();\n    psVar5 = (sqlite3_vtab *)0x0;\n    if (iVar3 == 0) {\n      psVar5 = (sqlite3_vtab *)sqlite3Malloc(in_stack_ffffffc4);\n      if (psVar5 != (sqlite3_vtab *)0x0) {\n        psVar5->pModule = (sqlite3_module *)0x0;\n        psVar5->nRef = 0;\n        psVar5->zErrMsg = (char *)0x0;\n        psVar5[1].pModule = (sqlite3_module *)db;\n        psVar5[1].nRef = local_34;\n        iVar3 = 0;\n        goto LAB_000f2ba3;\n      }\n    }\n    iVar3 = 7;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar3 = sqlite3_initialize();\n    psVar5 = (sqlite3_vtab *)0x0;\n    if (iVar3 == 0) {\n      psVar5 = (sqlite3_vtab *)sqlite3Malloc(in_stack_ffffffc4);\n      if (psVar5 != (sqlite3_vtab *)0x0) {\n        psVar5->pModule = (sqlite3_module *)0x0;\n        psVar5->nRef = 0;\n        psVar5->zErrMsg = (char *)0x0;\n        psVar5[1].pModule = (sqlite3_module *)db;\n        psVar5[1].nRef = local_34;\n        iVar3 = 0;\n        goto LAB_000f2ba3;\n      }\n    }\n    iVar3 = 7;\n  }" { (expression_statement "iVar3 = sqlite3_initialize();" (assignment_expression "iVar3 = sqlite3_initialize()" identifier = (call_expression "sqlite3_initialize()" identifier (argument_list "()" ( )))) ;) (expression_statement "psVar5 = (sqlite3_vtab *)0x0;" (assignment_expression "psVar5 = (sqlite3_vtab *)0x0" identifier = (cast_expression "(sqlite3_vtab *)0x0" ( (type_descriptor "sqlite3_vtab *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (iVar3 == 0) {\n      psVar5 = (sqlite3_vtab *)sqlite3Malloc(in_stack_ffffffc4);\n      if (psVar5 != (sqlite3_vtab *)0x0) {\n        psVar5->pModule = (sqlite3_module *)0x0;\n        psVar5->nRef = 0;\n        psVar5->zErrMsg = (char *)0x0;\n        psVar5[1].pModule = (sqlite3_module *)db;\n        psVar5[1].nRef = local_34;\n        iVar3 = 0;\n        goto LAB_000f2ba3;\n      }\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      psVar5 = (sqlite3_vtab *)sqlite3Malloc(in_stack_ffffffc4);\n      if (psVar5 != (sqlite3_vtab *)0x0) {\n        psVar5->pModule = (sqlite3_module *)0x0;\n        psVar5->nRef = 0;\n        psVar5->zErrMsg = (char *)0x0;\n        psVar5[1].pModule = (sqlite3_module *)db;\n        psVar5[1].nRef = local_34;\n        iVar3 = 0;\n        goto LAB_000f2ba3;\n      }\n    }" { (expression_statement "psVar5 = (sqlite3_vtab *)sqlite3Malloc(in_stack_ffffffc4);" (assignment_expression "psVar5 = (sqlite3_vtab *)sqlite3Malloc(in_stack_ffffffc4)" identifier = (cast_expression "(sqlite3_vtab *)sqlite3Malloc(in_stack_ffffffc4)" ( (type_descriptor "sqlite3_vtab *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3Malloc(in_stack_ffffffc4)" identifier (argument_list "(in_stack_ffffffc4)" ( identifier ))))) ;) (if_statement "if (psVar5 != (sqlite3_vtab *)0x0) {\n        psVar5->pModule = (sqlite3_module *)0x0;\n        psVar5->nRef = 0;\n        psVar5->zErrMsg = (char *)0x0;\n        psVar5[1].pModule = (sqlite3_module *)db;\n        psVar5[1].nRef = local_34;\n        iVar3 = 0;\n        goto LAB_000f2ba3;\n      }" if (parenthesized_expression "(psVar5 != (sqlite3_vtab *)0x0)" ( (binary_expression "psVar5 != (sqlite3_vtab *)0x0" identifier != (cast_expression "(sqlite3_vtab *)0x0" ( (type_descriptor "sqlite3_vtab *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        psVar5->pModule = (sqlite3_module *)0x0;\n        psVar5->nRef = 0;\n        psVar5->zErrMsg = (char *)0x0;\n        psVar5[1].pModule = (sqlite3_module *)db;\n        psVar5[1].nRef = local_34;\n        iVar3 = 0;\n        goto LAB_000f2ba3;\n      }" { (expression_statement "psVar5->pModule = (sqlite3_module *)0x0;" (assignment_expression "psVar5->pModule = (sqlite3_module *)0x0" (field_expression "psVar5->pModule" identifier -> field_identifier) = (cast_expression "(sqlite3_module *)0x0" ( (type_descriptor "sqlite3_module *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "psVar5->nRef = 0;" (assignment_expression "psVar5->nRef = 0" (field_expression "psVar5->nRef" identifier -> field_identifier) = number_literal) ;) (expression_statement "psVar5->zErrMsg = (char *)0x0;" (assignment_expression "psVar5->zErrMsg = (char *)0x0" (field_expression "psVar5->zErrMsg" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "psVar5[1].pModule = (sqlite3_module *)db;" (assignment_expression "psVar5[1].pModule = (sqlite3_module *)db" (field_expression "psVar5[1].pModule" (subscript_expression "psVar5[1]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_module *)db" ( (type_descriptor "sqlite3_module *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "psVar5[1].nRef = local_34;" (assignment_expression "psVar5[1].nRef = local_34" (field_expression "psVar5[1].nRef" (subscript_expression "psVar5[1]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_000f2ba3;" goto statement_identifier ;) })) })) (expression_statement "iVar3 = 7;" (assignment_expression "iVar3 = 7" identifier = number_literal) ;) })) (labeled_statement "LAB_000f2ba3:\n  *ppVtab = psVar5;" statement_identifier : (expression_statement "*ppVtab = psVar5;" (assignment_expression "*ppVtab = psVar5" (pointer_expression "*ppVtab" * identifier) = identifier) ;)) (labeled_statement "LAB_000f2ba5:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\n  }" statement_identifier : (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar3;\n  }" { (return_statement "return iVar3;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int FUN_000f2b10(undefined4 param_1,undefined4 param_2,int param_3,int param_4,undefined4 *param_5,\n                undefined4 *param_6)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int in_GS_OFFSET;\n  int local_34;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_3 < 4) {\n    local_34 = 0;\n  }\n  else {\n    if (*(char **)(param_4 + 0xc) != (char *)0x0) {\n      strlen(*(char **)(param_4 + 0xc));\n    }\n    local_34 = FUN_00045720();\n    if (local_34 < 0) {\n      iVar2 = 1;\n      uVar3 = FUN_0008ff90("no such database: %s",*(undefined4 *)(param_4 + 0xc));\n      *param_6 = uVar3;\n      goto LAB_000f2ba5;\n    }\n  }\n  iVar2 = FUN_000e7690(param_1,\n                       "CREATE TABLE xx(   name       TEXT,               path       TEXT,               pageno     INTEGER,            pagetype   TEXT,               ncell      INTEGER,            payload    INTEGER,            unused     INTEGER,            mx_payload INTEGER,            pgoffset   INTEGER,            pgsize     INTEGER,            schema     TEXT HIDDEN       );"\n                      );\n  puVar4 = (undefined4 *)0x0;\n  if (iVar2 == 0) {\n    iVar2 = FUN_0005b490();\n    puVar4 = (undefined4 *)0x0;\n    if ((iVar2 == 0) && (puVar4 = (undefined4 *)FUN_000421f0(), puVar4 != (undefined4 *)0x0)) {\n      *puVar4 = 0;\n      puVar4[1] = 0;\n      puVar4[2] = 0;\n      puVar4[3] = param_1;\n      puVar4[4] = local_34;\n      iVar2 = 0;\n    }\n    else {\n      iVar2 = 7;\n    }\n  }\n  *param_5 = puVar4;\nLAB_000f2ba5:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return iVar2;\n}\n\n" (function_definition "int FUN_000f2b10(undefined4 param_1,undefined4 param_2,int param_3,int param_4,undefined4 *param_5,\n                undefined4 *param_6)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int in_GS_OFFSET;\n  int local_34;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_3 < 4) {\n    local_34 = 0;\n  }\n  else {\n    if (*(char **)(param_4 + 0xc) != (char *)0x0) {\n      strlen(*(char **)(param_4 + 0xc));\n    }\n    local_34 = FUN_00045720();\n    if (local_34 < 0) {\n      iVar2 = 1;\n      uVar3 = FUN_0008ff90("no such database: %s",*(undefined4 *)(param_4 + 0xc));\n      *param_6 = uVar3;\n      goto LAB_000f2ba5;\n    }\n  }\n  iVar2 = FUN_000e7690(param_1,\n                       "CREATE TABLE xx(   name       TEXT,               path       TEXT,               pageno     INTEGER,            pagetype   TEXT,               ncell      INTEGER,            payload    INTEGER,            unused     INTEGER,            mx_payload INTEGER,            pgoffset   INTEGER,            pgsize     INTEGER,            schema     TEXT HIDDEN       );"\n                      );\n  puVar4 = (undefined4 *)0x0;\n  if (iVar2 == 0) {\n    iVar2 = FUN_0005b490();\n    puVar4 = (undefined4 *)0x0;\n    if ((iVar2 == 0) && (puVar4 = (undefined4 *)FUN_000421f0(), puVar4 != (undefined4 *)0x0)) {\n      *puVar4 = 0;\n      puVar4[1] = 0;\n      puVar4[2] = 0;\n      puVar4[3] = param_1;\n      puVar4[4] = local_34;\n      iVar2 = 0;\n    }\n    else {\n      iVar2 = 7;\n    }\n  }\n  *param_5 = puVar4;\nLAB_000f2ba5:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return iVar2;\n}" primitive_type (function_declarator "FUN_000f2b10(undefined4 param_1,undefined4 param_2,int param_3,int param_4,undefined4 *param_5,\n                undefined4 *param_6)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3,int param_4,undefined4 *param_5,\n                undefined4 *param_6)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "undefined4 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "undefined4 *param_6" type_identifier (pointer_declarator "*param_6" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int in_GS_OFFSET;\n  int local_34;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_3 < 4) {\n    local_34 = 0;\n  }\n  else {\n    if (*(char **)(param_4 + 0xc) != (char *)0x0) {\n      strlen(*(char **)(param_4 + 0xc));\n    }\n    local_34 = FUN_00045720();\n    if (local_34 < 0) {\n      iVar2 = 1;\n      uVar3 = FUN_0008ff90("no such database: %s",*(undefined4 *)(param_4 + 0xc));\n      *param_6 = uVar3;\n      goto LAB_000f2ba5;\n    }\n  }\n  iVar2 = FUN_000e7690(param_1,\n                       "CREATE TABLE xx(   name       TEXT,               path       TEXT,               pageno     INTEGER,            pagetype   TEXT,               ncell      INTEGER,            payload    INTEGER,            unused     INTEGER,            mx_payload INTEGER,            pgoffset   INTEGER,            pgsize     INTEGER,            schema     TEXT HIDDEN       );"\n                      );\n  puVar4 = (undefined4 *)0x0;\n  if (iVar2 == 0) {\n    iVar2 = FUN_0005b490();\n    puVar4 = (undefined4 *)0x0;\n    if ((iVar2 == 0) && (puVar4 = (undefined4 *)FUN_000421f0(), puVar4 != (undefined4 *)0x0)) {\n      *puVar4 = 0;\n      puVar4[1] = 0;\n      puVar4[2] = 0;\n      puVar4[3] = param_1;\n      puVar4[4] = local_34;\n      iVar2 = 0;\n    }\n    else {\n      iVar2 = 7;\n    }\n  }\n  *param_5 = puVar4;\nLAB_000f2ba5:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_34;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_3 < 4) {\n    local_34 = 0;\n  }\n  else {\n    if (*(char **)(param_4 + 0xc) != (char *)0x0) {\n      strlen(*(char **)(param_4 + 0xc));\n    }\n    local_34 = FUN_00045720();\n    if (local_34 < 0) {\n      iVar2 = 1;\n      uVar3 = FUN_0008ff90("no such database: %s",*(undefined4 *)(param_4 + 0xc));\n      *param_6 = uVar3;\n      goto LAB_000f2ba5;\n    }\n  }" if (parenthesized_expression "(param_3 < 4)" ( (binary_expression "param_3 < 4" identifier < number_literal) )) (compound_statement "{\n    local_34 = 0;\n  }" { (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    if (*(char **)(param_4 + 0xc) != (char *)0x0) {\n      strlen(*(char **)(param_4 + 0xc));\n    }\n    local_34 = FUN_00045720();\n    if (local_34 < 0) {\n      iVar2 = 1;\n      uVar3 = FUN_0008ff90("no such database: %s",*(undefined4 *)(param_4 + 0xc));\n      *param_6 = uVar3;\n      goto LAB_000f2ba5;\n    }\n  }" else (compound_statement "{\n    if (*(char **)(param_4 + 0xc) != (char *)0x0) {\n      strlen(*(char **)(param_4 + 0xc));\n    }\n    local_34 = FUN_00045720();\n    if (local_34 < 0) {\n      iVar2 = 1;\n      uVar3 = FUN_0008ff90("no such database: %s",*(undefined4 *)(param_4 + 0xc));\n      *param_6 = uVar3;\n      goto LAB_000f2ba5;\n    }\n  }" { (if_statement "if (*(char **)(param_4 + 0xc) != (char *)0x0) {\n      strlen(*(char **)(param_4 + 0xc));\n    }" if (parenthesized_expression "(*(char **)(param_4 + 0xc) != (char *)0x0)" ( (binary_expression "*(char **)(param_4 + 0xc) != (char *)0x0" (pointer_expression "*(char **)(param_4 + 0xc)" * (cast_expression "(char **)(param_4 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_4 + 0xc)" ( (binary_expression "param_4 + 0xc" identifier + number_literal) )))) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      strlen(*(char **)(param_4 + 0xc));\n    }" { (expression_statement "strlen(*(char **)(param_4 + 0xc));" (call_expression "strlen(*(char **)(param_4 + 0xc))" identifier (argument_list "(*(char **)(param_4 + 0xc))" ( (pointer_expression "*(char **)(param_4 + 0xc)" * (cast_expression "(char **)(param_4 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_4 + 0xc)" ( (binary_expression "param_4 + 0xc" identifier + number_literal) )))) ))) ;) })) (expression_statement "local_34 = FUN_00045720();" (assignment_expression "local_34 = FUN_00045720()" identifier = (call_expression "FUN_00045720()" identifier (argument_list "()" ( )))) ;) (if_statement "if (local_34 < 0) {\n      iVar2 = 1;\n      uVar3 = FUN_0008ff90("no such database: %s",*(undefined4 *)(param_4 + 0xc));\n      *param_6 = uVar3;\n      goto LAB_000f2ba5;\n    }" if (parenthesized_expression "(local_34 < 0)" ( (binary_expression "local_34 < 0" identifier < number_literal) )) (compound_statement "{\n      iVar2 = 1;\n      uVar3 = FUN_0008ff90("no such database: %s",*(undefined4 *)(param_4 + 0xc));\n      *param_6 = uVar3;\n      goto LAB_000f2ba5;\n    }" { (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" identifier = number_literal) ;) (expression_statement "uVar3 = FUN_0008ff90("no such database: %s",*(undefined4 *)(param_4 + 0xc));" (assignment_expression "uVar3 = FUN_0008ff90("no such database: %s",*(undefined4 *)(param_4 + 0xc))" identifier = (call_expression "FUN_0008ff90("no such database: %s",*(undefined4 *)(param_4 + 0xc))" identifier (argument_list "("no such database: %s",*(undefined4 *)(param_4 + 0xc))" ( (string_literal ""no such database: %s"" " string_content ") , (pointer_expression "*(undefined4 *)(param_4 + 0xc)" * (cast_expression "(undefined4 *)(param_4 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0xc)" ( (binary_expression "param_4 + 0xc" identifier + number_literal) )))) )))) ;) (expression_statement "*param_6 = uVar3;" (assignment_expression "*param_6 = uVar3" (pointer_expression "*param_6" * identifier) = identifier) ;) (goto_statement "goto LAB_000f2ba5;" goto statement_identifier ;) })) }))) (expression_statement "iVar2 = FUN_000e7690(param_1,\n                       "CREATE TABLE xx(   name       TEXT,               path       TEXT,               pageno     INTEGER,            pagetype   TEXT,               ncell      INTEGER,            payload    INTEGER,            unused     INTEGER,            mx_payload INTEGER,            pgoffset   INTEGER,            pgsize     INTEGER,            schema     TEXT HIDDEN       );"\n                      );" (assignment_expression "iVar2 = FUN_000e7690(param_1,\n                       "CREATE TABLE xx(   name       TEXT,               path       TEXT,               pageno     INTEGER,            pagetype   TEXT,               ncell      INTEGER,            payload    INTEGER,            unused     INTEGER,            mx_payload INTEGER,            pgoffset   INTEGER,            pgsize     INTEGER,            schema     TEXT HIDDEN       );"\n                      )" identifier = (call_expression "FUN_000e7690(param_1,\n                       "CREATE TABLE xx(   name       TEXT,               path       TEXT,               pageno     INTEGER,            pagetype   TEXT,               ncell      INTEGER,            payload    INTEGER,            unused     INTEGER,            mx_payload INTEGER,            pgoffset   INTEGER,            pgsize     INTEGER,            schema     TEXT HIDDEN       );"\n                      )" identifier (argument_list "(param_1,\n                       "CREATE TABLE xx(   name       TEXT,               path       TEXT,               pageno     INTEGER,            pagetype   TEXT,               ncell      INTEGER,            payload    INTEGER,            unused     INTEGER,            mx_payload INTEGER,            pgoffset   INTEGER,            pgsize     INTEGER,            schema     TEXT HIDDEN       );"\n                      )" ( identifier , (string_literal ""CREATE TABLE xx(   name       TEXT,               path       TEXT,               pageno     INTEGER,            pagetype   TEXT,               ncell      INTEGER,            payload    INTEGER,            unused     INTEGER,            mx_payload INTEGER,            pgoffset   INTEGER,            pgsize     INTEGER,            schema     TEXT HIDDEN       );"" " string_content ") )))) ;) (expression_statement "puVar4 = (undefined4 *)0x0;" (assignment_expression "puVar4 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (iVar2 == 0) {\n    iVar2 = FUN_0005b490();\n    puVar4 = (undefined4 *)0x0;\n    if ((iVar2 == 0) && (puVar4 = (undefined4 *)FUN_000421f0(), puVar4 != (undefined4 *)0x0)) {\n      *puVar4 = 0;\n      puVar4[1] = 0;\n      puVar4[2] = 0;\n      puVar4[3] = param_1;\n      puVar4[4] = local_34;\n      iVar2 = 0;\n    }\n    else {\n      iVar2 = 7;\n    }\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = FUN_0005b490();\n    puVar4 = (undefined4 *)0x0;\n    if ((iVar2 == 0) && (puVar4 = (undefined4 *)FUN_000421f0(), puVar4 != (undefined4 *)0x0)) {\n      *puVar4 = 0;\n      puVar4[1] = 0;\n      puVar4[2] = 0;\n      puVar4[3] = param_1;\n      puVar4[4] = local_34;\n      iVar2 = 0;\n    }\n    else {\n      iVar2 = 7;\n    }\n  }" { (expression_statement "iVar2 = FUN_0005b490();" (assignment_expression "iVar2 = FUN_0005b490()" identifier = (call_expression "FUN_0005b490()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar4 = (undefined4 *)0x0;" (assignment_expression "puVar4 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if ((iVar2 == 0) && (puVar4 = (undefined4 *)FUN_000421f0(), puVar4 != (undefined4 *)0x0)) {\n      *puVar4 = 0;\n      puVar4[1] = 0;\n      puVar4[2] = 0;\n      puVar4[3] = param_1;\n      puVar4[4] = local_34;\n      iVar2 = 0;\n    }\n    else {\n      iVar2 = 7;\n    }" if (parenthesized_expression "((iVar2 == 0) && (puVar4 = (undefined4 *)FUN_000421f0(), puVar4 != (undefined4 *)0x0))" ( (binary_expression "(iVar2 == 0) && (puVar4 = (undefined4 *)FUN_000421f0(), puVar4 != (undefined4 *)0x0)" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) && (parenthesized_expression "(puVar4 = (undefined4 *)FUN_000421f0(), puVar4 != (undefined4 *)0x0)" ( (comma_expression "puVar4 = (undefined4 *)FUN_000421f0(), puVar4 != (undefined4 *)0x0" (assignment_expression "puVar4 = (undefined4 *)FUN_000421f0()" identifier = (cast_expression "(undefined4 *)FUN_000421f0()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000421f0()" identifier (argument_list "()" ( ))))) , (binary_expression "puVar4 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n      *puVar4 = 0;\n      puVar4[1] = 0;\n      puVar4[2] = 0;\n      puVar4[3] = param_1;\n      puVar4[4] = local_34;\n      iVar2 = 0;\n    }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "puVar4[1] = 0;" (assignment_expression "puVar4[1] = 0" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar4[2] = 0;" (assignment_expression "puVar4[2] = 0" (subscript_expression "puVar4[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar4[3] = param_1;" (assignment_expression "puVar4[3] = param_1" (subscript_expression "puVar4[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4[4] = local_34;" (assignment_expression "puVar4[4] = local_34" (subscript_expression "puVar4[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar2 = 7;\n    }" else (compound_statement "{\n      iVar2 = 7;\n    }" { (expression_statement "iVar2 = 7;" (assignment_expression "iVar2 = 7" identifier = number_literal) ;) }))) })) (expression_statement "*param_5 = puVar4;" (assignment_expression "*param_5 = puVar4" (pointer_expression "*param_5" * identifier) = identifier) ;) (labeled_statement "LAB_000f2ba5:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }" statement_identifier : (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }" if (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_00116110();\n  }" { (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) , (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int FUN_000f2b10(undefined4 param_1,undefined4 param_2,int param_3,int param_4,undefined4 *param_5,\n                undefined4 *param_6)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int in_GS_OFFSET;\n  int local_34;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_3 < 4) {\n    local_34 = 0;\n  }\n  else {\n    if (*(char **)(param_4 + 0xc) != (char *)0x0) {\n      strlen(*(char **)(param_4 + 0xc));\n    }\n    local_34 = FUN_00045720();\n    if (local_34 < 0) {\n      iVar2 = 1;\n      uVar3 = FUN_0008ff90("no such database: %s",*(undefined4 *)(param_4 + 0xc));\n      *param_6 = uVar3;\n      goto LAB_000f2ba5;\n    }\n  }\n  iVar2 = FUN_000e7690(param_1,\n                       "CREATE TABLE xx(   name       TEXT,               path       TEXT,               pageno     INTEGER,            pagetype   TEXT,               ncell      INTEGER,            payload    INTEGER,            unused     INTEGER,            mx_payload INTEGER,            pgoffset   INTEGER,            pgsize     INTEGER,            schema     TEXT HIDDEN       );"\n                      );\n  puVar4 = (undefined4 *)0x0;\n  if (iVar2 == 0) {\n    iVar2 = FUN_0005b490();\n    puVar4 = (undefined4 *)0x0;\n    if ((iVar2 == 0) && (puVar4 = (undefined4 *)FUN_000421f0(), puVar4 != (undefined4 *)0x0)) {\n      *puVar4 = 0;\n      puVar4[1] = 0;\n      puVar4[2] = 0;\n      puVar4[3] = param_1;\n      puVar4[4] = local_34;\n      iVar2 = 0;\n    }\n    else {\n      iVar2 = 7;\n    }\n  }\n  *param_5 = puVar4;\nLAB_000f2ba5:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return iVar2;\n}" (primitive_type "int") (function_declarator "FUN_000f2b10(undefined4 param_1,undefined4 param_2,int param_3,int param_4,undefined4 *param_5,\n                undefined4 *param_6)" (identifier "FUN_000f2b10") (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3,int param_4,undefined4 *param_5,\n                undefined4 *param_6)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 *param_5" (type_identifier "undefined4") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) (, ",") (parameter_declaration "undefined4 *param_6" (type_identifier "undefined4") (pointer_declarator "*param_6" (* "*") (identifier "param_6"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int in_GS_OFFSET;\n  int local_34;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_3 < 4) {\n    local_34 = 0;\n  }\n  else {\n    if (*(char **)(param_4 + 0xc) != (char *)0x0) {\n      strlen(*(char **)(param_4 + 0xc));\n    }\n    local_34 = FUN_00045720();\n    if (local_34 < 0) {\n      iVar2 = 1;\n      uVar3 = FUN_0008ff90("no such database: %s",*(undefined4 *)(param_4 + 0xc));\n      *param_6 = uVar3;\n      goto LAB_000f2ba5;\n    }\n  }\n  iVar2 = FUN_000e7690(param_1,\n                       "CREATE TABLE xx(   name       TEXT,               path       TEXT,               pageno     INTEGER,            pagetype   TEXT,               ncell      INTEGER,            payload    INTEGER,            unused     INTEGER,            mx_payload INTEGER,            pgoffset   INTEGER,            pgsize     INTEGER,            schema     TEXT HIDDEN       );"\n                      );\n  puVar4 = (undefined4 *)0x0;\n  if (iVar2 == 0) {\n    iVar2 = FUN_0005b490();\n    puVar4 = (undefined4 *)0x0;\n    if ((iVar2 == 0) && (puVar4 = (undefined4 *)FUN_000421f0(), puVar4 != (undefined4 *)0x0)) {\n      *puVar4 = 0;\n      puVar4[1] = 0;\n      puVar4[2] = 0;\n      puVar4[3] = param_1;\n      puVar4[4] = local_34;\n      iVar2 = 0;\n    }\n    else {\n      iVar2 = 7;\n    }\n  }\n  *param_5 = puVar4;\nLAB_000f2ba5:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return iVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int local_34;" (primitive_type "int") (identifier "local_34") (; ";")) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (param_3 < 4) {\n    local_34 = 0;\n  }\n  else {\n    if (*(char **)(param_4 + 0xc) != (char *)0x0) {\n      strlen(*(char **)(param_4 + 0xc));\n    }\n    local_34 = FUN_00045720();\n    if (local_34 < 0) {\n      iVar2 = 1;\n      uVar3 = FUN_0008ff90("no such database: %s",*(undefined4 *)(param_4 + 0xc));\n      *param_6 = uVar3;\n      goto LAB_000f2ba5;\n    }\n  }" (if "if") (parenthesized_expression "(param_3 < 4)" (( "(") (binary_expression "param_3 < 4" (identifier "param_3") (< "<") (number_literal "4")) () ")")) (compound_statement "{\n    local_34 = 0;\n  }" ({ "{") (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" (identifier "local_34") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    if (*(char **)(param_4 + 0xc) != (char *)0x0) {\n      strlen(*(char **)(param_4 + 0xc));\n    }\n    local_34 = FUN_00045720();\n    if (local_34 < 0) {\n      iVar2 = 1;\n      uVar3 = FUN_0008ff90("no such database: %s",*(undefined4 *)(param_4 + 0xc));\n      *param_6 = uVar3;\n      goto LAB_000f2ba5;\n    }\n  }" (else "else") (compound_statement "{\n    if (*(char **)(param_4 + 0xc) != (char *)0x0) {\n      strlen(*(char **)(param_4 + 0xc));\n    }\n    local_34 = FUN_00045720();\n    if (local_34 < 0) {\n      iVar2 = 1;\n      uVar3 = FUN_0008ff90("no such database: %s",*(undefined4 *)(param_4 + 0xc));\n      *param_6 = uVar3;\n      goto LAB_000f2ba5;\n    }\n  }" ({ "{") (if_statement "if (*(char **)(param_4 + 0xc) != (char *)0x0) {\n      strlen(*(char **)(param_4 + 0xc));\n    }" (if "if") (parenthesized_expression "(*(char **)(param_4 + 0xc) != (char *)0x0)" (( "(") (binary_expression "*(char **)(param_4 + 0xc) != (char *)0x0" (pointer_expression "*(char **)(param_4 + 0xc)" (* "*") (cast_expression "(char **)(param_4 + 0xc)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_4 + 0xc)" (( "(") (binary_expression "param_4 + 0xc" (identifier "param_4") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      strlen(*(char **)(param_4 + 0xc));\n    }" ({ "{") (expression_statement "strlen(*(char **)(param_4 + 0xc));" (call_expression "strlen(*(char **)(param_4 + 0xc))" (identifier "strlen") (argument_list "(*(char **)(param_4 + 0xc))" (( "(") (pointer_expression "*(char **)(param_4 + 0xc)" (* "*") (cast_expression "(char **)(param_4 + 0xc)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_4 + 0xc)" (( "(") (binary_expression "param_4 + 0xc" (identifier "param_4") (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (} "}"))) (expression_statement "local_34 = FUN_00045720();" (assignment_expression "local_34 = FUN_00045720()" (identifier "local_34") (= "=") (call_expression "FUN_00045720()" (identifier "FUN_00045720") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (local_34 < 0) {\n      iVar2 = 1;\n      uVar3 = FUN_0008ff90("no such database: %s",*(undefined4 *)(param_4 + 0xc));\n      *param_6 = uVar3;\n      goto LAB_000f2ba5;\n    }" (if "if") (parenthesized_expression "(local_34 < 0)" (( "(") (binary_expression "local_34 < 0" (identifier "local_34") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      iVar2 = 1;\n      uVar3 = FUN_0008ff90("no such database: %s",*(undefined4 *)(param_4 + 0xc));\n      *param_6 = uVar3;\n      goto LAB_000f2ba5;\n    }" ({ "{") (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" (identifier "iVar2") (= "=") (number_literal "1")) (; ";")) (expression_statement "uVar3 = FUN_0008ff90("no such database: %s",*(undefined4 *)(param_4 + 0xc));" (assignment_expression "uVar3 = FUN_0008ff90("no such database: %s",*(undefined4 *)(param_4 + 0xc))" (identifier "uVar3") (= "=") (call_expression "FUN_0008ff90("no such database: %s",*(undefined4 *)(param_4 + 0xc))" (identifier "FUN_0008ff90") (argument_list "("no such database: %s",*(undefined4 *)(param_4 + 0xc))" (( "(") (string_literal ""no such database: %s"" (" """) (string_content "no such database: %s") (" """)) (, ",") (pointer_expression "*(undefined4 *)(param_4 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_4 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 0xc)" (( "(") (binary_expression "param_4 + 0xc" (identifier "param_4") (+ "+") (number_literal "0xc")) () ")")))) () ")")))) (; ";")) (expression_statement "*param_6 = uVar3;" (assignment_expression "*param_6 = uVar3" (pointer_expression "*param_6" (* "*") (identifier "param_6")) (= "=") (identifier "uVar3")) (; ";")) (goto_statement "goto LAB_000f2ba5;" (goto "goto") (statement_identifier "LAB_000f2ba5") (; ";")) (} "}"))) (} "}")))) (expression_statement "iVar2 = FUN_000e7690(param_1,\n                       "CREATE TABLE xx(   name       TEXT,               path       TEXT,               pageno     INTEGER,            pagetype   TEXT,               ncell      INTEGER,            payload    INTEGER,            unused     INTEGER,            mx_payload INTEGER,            pgoffset   INTEGER,            pgsize     INTEGER,            schema     TEXT HIDDEN       );"\n                      );" (assignment_expression "iVar2 = FUN_000e7690(param_1,\n                       "CREATE TABLE xx(   name       TEXT,               path       TEXT,               pageno     INTEGER,            pagetype   TEXT,               ncell      INTEGER,            payload    INTEGER,            unused     INTEGER,            mx_payload INTEGER,            pgoffset   INTEGER,            pgsize     INTEGER,            schema     TEXT HIDDEN       );"\n                      )" (identifier "iVar2") (= "=") (call_expression "FUN_000e7690(param_1,\n                       "CREATE TABLE xx(   name       TEXT,               path       TEXT,               pageno     INTEGER,            pagetype   TEXT,               ncell      INTEGER,            payload    INTEGER,            unused     INTEGER,            mx_payload INTEGER,            pgoffset   INTEGER,            pgsize     INTEGER,            schema     TEXT HIDDEN       );"\n                      )" (identifier "FUN_000e7690") (argument_list "(param_1,\n                       "CREATE TABLE xx(   name       TEXT,               path       TEXT,               pageno     INTEGER,            pagetype   TEXT,               ncell      INTEGER,            payload    INTEGER,            unused     INTEGER,            mx_payload INTEGER,            pgoffset   INTEGER,            pgsize     INTEGER,            schema     TEXT HIDDEN       );"\n                      )" (( "(") (identifier "param_1") (, ",") (string_literal ""CREATE TABLE xx(   name       TEXT,               path       TEXT,               pageno     INTEGER,            pagetype   TEXT,               ncell      INTEGER,            payload    INTEGER,            unused     INTEGER,            mx_payload INTEGER,            pgoffset   INTEGER,            pgsize     INTEGER,            schema     TEXT HIDDEN       );"" (" """) (string_content "CREATE TABLE xx(   name       TEXT,               path       TEXT,               pageno     INTEGER,            pagetype   TEXT,               ncell      INTEGER,            payload    INTEGER,            unused     INTEGER,            mx_payload INTEGER,            pgoffset   INTEGER,            pgsize     INTEGER,            schema     TEXT HIDDEN       );") (" """)) () ")")))) (; ";")) (expression_statement "puVar4 = (undefined4 *)0x0;" (assignment_expression "puVar4 = (undefined4 *)0x0" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (if_statement "if (iVar2 == 0) {\n    iVar2 = FUN_0005b490();\n    puVar4 = (undefined4 *)0x0;\n    if ((iVar2 == 0) && (puVar4 = (undefined4 *)FUN_000421f0(), puVar4 != (undefined4 *)0x0)) {\n      *puVar4 = 0;\n      puVar4[1] = 0;\n      puVar4[2] = 0;\n      puVar4[3] = param_1;\n      puVar4[4] = local_34;\n      iVar2 = 0;\n    }\n    else {\n      iVar2 = 7;\n    }\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = FUN_0005b490();\n    puVar4 = (undefined4 *)0x0;\n    if ((iVar2 == 0) && (puVar4 = (undefined4 *)FUN_000421f0(), puVar4 != (undefined4 *)0x0)) {\n      *puVar4 = 0;\n      puVar4[1] = 0;\n      puVar4[2] = 0;\n      puVar4[3] = param_1;\n      puVar4[4] = local_34;\n      iVar2 = 0;\n    }\n    else {\n      iVar2 = 7;\n    }\n  }" ({ "{") (expression_statement "iVar2 = FUN_0005b490();" (assignment_expression "iVar2 = FUN_0005b490()" (identifier "iVar2") (= "=") (call_expression "FUN_0005b490()" (identifier "FUN_0005b490") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "puVar4 = (undefined4 *)0x0;" (assignment_expression "puVar4 = (undefined4 *)0x0" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (if_statement "if ((iVar2 == 0) && (puVar4 = (undefined4 *)FUN_000421f0(), puVar4 != (undefined4 *)0x0)) {\n      *puVar4 = 0;\n      puVar4[1] = 0;\n      puVar4[2] = 0;\n      puVar4[3] = param_1;\n      puVar4[4] = local_34;\n      iVar2 = 0;\n    }\n    else {\n      iVar2 = 7;\n    }" (if "if") (parenthesized_expression "((iVar2 == 0) && (puVar4 = (undefined4 *)FUN_000421f0(), puVar4 != (undefined4 *)0x0))" (( "(") (binary_expression "(iVar2 == 0) && (puVar4 = (undefined4 *)FUN_000421f0(), puVar4 != (undefined4 *)0x0)" (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(puVar4 = (undefined4 *)FUN_000421f0(), puVar4 != (undefined4 *)0x0)" (( "(") (comma_expression "puVar4 = (undefined4 *)FUN_000421f0(), puVar4 != (undefined4 *)0x0" (assignment_expression "puVar4 = (undefined4 *)FUN_000421f0()" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)FUN_000421f0()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_000421f0()" (identifier "FUN_000421f0") (argument_list "()" (( "(") () ")"))))) (, ",") (binary_expression "puVar4 != (undefined4 *)0x0" (identifier "puVar4") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n      *puVar4 = 0;\n      puVar4[1] = 0;\n      puVar4[2] = 0;\n      puVar4[3] = param_1;\n      puVar4[4] = local_34;\n      iVar2 = 0;\n    }" ({ "{") (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar4[1] = 0;" (assignment_expression "puVar4[1] = 0" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar4[2] = 0;" (assignment_expression "puVar4[2] = 0" (subscript_expression "puVar4[2]" (identifier "puVar4") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar4[3] = param_1;" (assignment_expression "puVar4[3] = param_1" (subscript_expression "puVar4[3]" (identifier "puVar4") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "puVar4[4] = local_34;" (assignment_expression "puVar4[4] = local_34" (subscript_expression "puVar4[4]" (identifier "puVar4") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "local_34")) (; ";")) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      iVar2 = 7;\n    }" (else "else") (compound_statement "{\n      iVar2 = 7;\n    }" ({ "{") (expression_statement "iVar2 = 7;" (assignment_expression "iVar2 = 7" (identifier "iVar2") (= "=") (number_literal "7")) (; ";")) (} "}")))) (} "}"))) (expression_statement "*param_5 = puVar4;" (assignment_expression "*param_5 = puVar4" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (identifier "puVar4")) (; ";")) (labeled_statement "LAB_000f2ba5:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }" (statement_identifier "LAB_000f2ba5") (: ":") (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }" (if "if") (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_00116110();\n  }" ({ "{") (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" (identifier "FUN_00116110") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))

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

int function_1(type_1 *db,void *pAux,int var_2,char **argv,type_2 **ppVtab,char **pzErr)

{
  int var_13;
  size_t var_4;
  int var_9;
  char *pcVar4;
  type_2 *var_12;
  int var_1;
  type_3 in_stack_ffffffc4;
  int var_6;
  type_4 nm;
  
  var_13 = *(int *)(var_1 + 0x14);
  if (var_2 < 4) {
    var_6 = 0;
  }
  else {
    nm.z = argv[3];
    if (nm.z == (char *)0x0) {
      nm.n = 0;
    }
    else {
      var_4 = var_3(nm.z);
      nm.n = var_4 & 0x3fffffff;
    }
    var_6 = var_5(db,&nm);
    if (var_6 < 0) {
      var_9 = 1;
      pcVar4 = var_7("no such database: %s",argv[3]);
      *pzErr = pcVar4;
      goto LAB_000f2ba5;
    }
  }
  var_9 = var_8
                    (db,
                     "CREATE TABLE xx(   name       TEXT,             /* Name of table or index */  path       TEXT,             /* Path to page from root */  pageno     INTEGER,          /* Page number */  pagetype   TEXT,             /* \'internal\', \'leaf\' or \'overflow\' */  ncell      INTEGER,          /* Cells on page (0 for overflow) */  payload    INTEGER,          /* Bytes of payload on this page */  unused     INTEGER,          /* Bytes of unused space on this page */  mx_payload INTEGER,          /* Largest payload size of all cells */  pgoffset   INTEGER,          /* Offset of page in file */  pgsize     INTEGER,          /* Size of the page */  schema     TEXT HIDDEN       /* Database schema being analyzed */);"
                    );
  var_12 = (type_2 *)0x0;
  if (var_9 == 0) {
    var_9 = var_10();
    var_12 = (type_2 *)0x0;
    if (var_9 == 0) {
      var_12 = (type_2 *)var_11(in_stack_ffffffc4);
      if (var_12 != (type_2 *)0x0) {
        var_12->pModule = (type_5 *)0x0;
        var_12->nRef = 0;
        var_12->zErrMsg = (char *)0x0;
        var_12[1].pModule = (type_5 *)db;
        var_12[1].nRef = var_6;
        var_9 = 0;
        goto LAB_000f2ba3;
      }
    }
    var_9 = 7;
  }
LAB_000f2ba3:
  *ppVtab = var_12;
LAB_000f2ba5:
  if (var_13 == *(int *)(var_1 + 0x14)) {
    return var_9;
  }
                    /* WARNING: Subroutine does not return */
  var_14();
}


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

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

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

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  undefined4 *puVar4;
  int in_GS_OFFSET;
  int local_34;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_3 < 4) {
    local_34 = 0;
  }
  else {
    if (*(char **)(param_4 + 0xc) != (char *)0x0) {
      strlen(*(char **)(param_4 + 0xc));
    }
    local_34 = FUN_00045720();
    if (local_34 < 0) {
      iVar2 = 1;
      uVar3 = FUN_0008ff90("no such database: %s",*(undefined4 *)(param_4 + 0xc));
      *param_6 = uVar3;
      goto LAB_000f2ba5;
    }
  }
  iVar2 = FUN_000e7690(param_1,
                       "CREATE TABLE xx(   name       TEXT,             /* Name of table or index */  path       TEXT,             /* Path to page from root */  pageno     INTEGER,          /* Page number */  pagetype   TEXT,             /* \'internal\', \'leaf\' or \'overflow\' */  ncell      INTEGER,          /* Cells on page (0 for overflow) */  payload    INTEGER,          /* Bytes of payload on this page */  unused     INTEGER,          /* Bytes of unused space on this page */  mx_payload INTEGER,          /* Largest payload size of all cells */  pgoffset   INTEGER,          /* Offset of page in file */  pgsize     INTEGER,          /* Size of the page */  schema     TEXT HIDDEN       /* Database schema being analyzed */);"
                      );
  puVar4 = (undefined4 *)0x0;
  if (iVar2 == 0) {
    iVar2 = FUN_0005b490();
    puVar4 = (undefined4 *)0x0;
    if ((iVar2 == 0) && (puVar4 = (undefined4 *)FUN_000421f0(), puVar4 != (undefined4 *)0x0)) {
      *puVar4 = 0;
      puVar4[1] = 0;
      puVar4[2] = 0;
      puVar4[3] = param_1;
      puVar4[4] = local_34;
      iVar2 = 0;
    }
    else {
      iVar2 = 7;
    }
  }
  *param_5 = puVar4;
LAB_000f2ba5:
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00116110();
  }
  return iVar2;
}

