
int createModule(sqlite3 *db,char *zName,sqlite3_module *pModule,void *pAux,
                _func_void_void_ptr *xDestroy)

{
  u8 uVar1;
  int iVar2;
  uint uVar3;
  
  if (db->mutex != (sqlite3_mutex *)0x0) {
    (**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c))();
  }
  iVar2 = (*(code *)(PTR_LAB_00190b40 + 0x16c))(&db->aModule,zName,0);
  if (*(int *)(iVar2 + 8) == 0) {
    uVar3 = 0;
    (*(code *)(PTR_LAB_00190ba8 + 0x4044))(db);
    uVar1 = db->mallocFailed;
  }
  else {
    uVar3 = 0x15;
    sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378,
                PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380,0x20bcd,
                PTR_LAB_00190958 + 0x625c);
    uVar1 = db->mallocFailed;
  }
  if (uVar1 == '\0') {
    uVar3 = uVar3 & db->errMask;
  }
  else {
    uVar3 = (*(code *)(PTR_LAB_00190bb8 + -0x4e0c))(db);
  }
  if ((uVar3 != 0) && (xDestroy != (_func_void_void_ptr *)0x0)) {
    (*xDestroy)(pAux);
  }
  if (db->mutex != (sqlite3_mutex *)0x0) {
    (**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb14))();
  }
  return uVar3;
}



uint FUN_0008cbc4(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,code *param_5
                 )

{
  char cVar1;
  int iVar2;
  uint uVar3;
  
  if (*(int *)(param_1 + 0xc) != 0) {
    (**(code **)(PTR_DAT_00190948 + -0xb1c))();
  }
  iVar2 = (*(code *)(PTR_LAB_00190b40 + 0x16c))(param_1 + 0x158,param_2,0);
  if (*(int *)(iVar2 + 8) == 0) {
    uVar3 = 0;
    (*(code *)(PTR_LAB_00190ba8 + 0x4044))(param_1);
    cVar1 = *(char *)(param_1 + 0x51);
  }
  else {
    uVar3 = 0x15;
    sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378,
                PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380,&DAT_00020bcd,
                PTR_LAB_00190958 + 0x625c);
    cVar1 = *(char *)(param_1 + 0x51);
  }
  if (cVar1 == '\0') {
    uVar3 = uVar3 & *(uint *)(param_1 + 0x44);
  }
  else {
    uVar3 = (*(code *)(PTR_LAB_00190bb8 + -0x4e0c))(param_1);
  }
  if ((uVar3 != 0) && (param_5 != (code *)0x0)) {
    (*param_5)(param_4);
  }
  if (*(int *)(param_1 + 0xc) != 0) {
    (**(code **)(PTR_DAT_00190948 + -0xb14))();
  }
  return uVar3;
}


lui gp,0x11
addiu gp,gp,-0x42a4
addu gp,gp,t9
addiu sp,sp,-0x38
sw s3,0x30(sp)
or s3,a2,zero
sw s2,0x2c(sp)
or s2,a3,zero
sw s1,0x28(sp)
sw s0,0x24(sp)
or s0,a0,zero
sw gp,0x18(sp)
sw ra,0x34(sp)
lw a0,0xc(a0)
beq a0,zero,0x0008cc18
_or s1,a1,zero
lw v0,-0x7fd8(gp)
lw t9,-0xb1c(v0)
jalr t9
_nop
lw gp,0x18(sp)
lw t9,-0x7de0(gp)
or a2,zero,zero
addiu a0,s0,0x158
addiu t9,t9,0x16c
jalr t9
_or a1,s1,zero
lw v0,0x8(v0)
beq v0,zero,0x0008ccd8
_lw gp,0x18(sp)
lw v0,-0x7fc8(gp)
lui a3,0x2
lw a2,-0x7fc4(gp)
li a0,0x15
lw a1,-0x7fc4(gp)
addiu a3,a3,0xbcd
addiu v0,v0,0x625c
lw t9,-0x7d40(gp)
addiu a2,a2,-0x6380
addiu a1,a1,-0x6378
sw v0,0x10(sp)
bal 0x0008c2d4
_li s1,0x15
lbu v0,0x51(s0)
bne v0,zero,0x0008cd08
_lw gp,0x18(sp)
lw v0,0x44(s0)
and s1,s1,v0
beq s1,zero,0x0008cca0
_lw v0,0x48(sp)
beq v0,zero,0x0008cca0
_or t9,v0,zero
jalr t9
_or a0,s2,zero
lw gp,0x18(sp)
lw a0,0xc(s0)
beq a0,zero,0x0008ccb8
_lw v0,-0x7fd8(gp)
lw t9,-0xb14(v0)
jalr t9
_nop
lw ra,0x34(sp)
or v0,s1,zero
lw s3,0x30(sp)
lw s2,0x2c(sp)
lw s1,0x28(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x38
lw t9,-0x7d78(gp)
or a3,s2,zero
lw v0,0x48(sp)
or a2,s3,zero
or a0,s0,zero
addiu t9,t9,0x4044
sw v0,0x10(sp)
jalr t9
_or s1,zero,zero
lbu v0,0x51(s0)
beq v0,zero,0x0008cc7c
_lw gp,0x18(sp)
lw t9,-0x7d68(gp)
addiu t9,t9,-0x4e0c
jalr t9
_or a0,s0,zero
lw gp,0x18(sp)
b 0x0008cc84
_or s1,v0,zero
(translation_unit "uint FUN_0008cbc4(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,code *param_5\n                 )\n\n{\n  char cVar1;\n  int iVar2;\n  uint uVar3;\n  \n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))();\n  }\n  iVar2 = (*(code *)(PTR_LAB_00190b40 + 0x16c))(param_1 + 0x158,param_2,0);\n  if (*(int *)(iVar2 + 8) == 0) {\n    uVar3 = 0;\n    (*(code *)(PTR_LAB_00190ba8 + 0x4044))(param_1);\n    cVar1 = *(char *)(param_1 + 0x51);\n  }\n  else {\n    uVar3 = 0x15;\n    sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378,\n                PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380,&DAT_00020bcd,\n                PTR_LAB_00190958 + 0x625c);\n    cVar1 = *(char *)(param_1 + 0x51);\n  }\n  if (cVar1 == '\0') {\n    uVar3 = uVar3 & *(uint *)(param_1 + 0x44);\n  }\n  else {\n    uVar3 = (*(code *)(PTR_LAB_00190bb8 + -0x4e0c))(param_1);\n  }\n  if ((uVar3 != 0) && (param_5 != (code *)0x0)) {\n    (*param_5)(param_4);\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb14))();\n  }\n  return uVar3;\n}\n\n" (function_definition "uint FUN_0008cbc4(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,code *param_5\n                 )\n\n{\n  char cVar1;\n  int iVar2;\n  uint uVar3;\n  \n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))();\n  }\n  iVar2 = (*(code *)(PTR_LAB_00190b40 + 0x16c))(param_1 + 0x158,param_2,0);\n  if (*(int *)(iVar2 + 8) == 0) {\n    uVar3 = 0;\n    (*(code *)(PTR_LAB_00190ba8 + 0x4044))(param_1);\n    cVar1 = *(char *)(param_1 + 0x51);\n  }\n  else {\n    uVar3 = 0x15;\n    sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378,\n                PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380,&DAT_00020bcd,\n                PTR_LAB_00190958 + 0x625c);\n    cVar1 = *(char *)(param_1 + 0x51);\n  }\n  if (cVar1 == '\0') {\n    uVar3 = uVar3 & *(uint *)(param_1 + 0x44);\n  }\n  else {\n    uVar3 = (*(code *)(PTR_LAB_00190bb8 + -0x4e0c))(param_1);\n  }\n  if ((uVar3 != 0) && (param_5 != (code *)0x0)) {\n    (*param_5)(param_4);\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb14))();\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_0008cbc4(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,code *param_5\n                 )" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,code *param_5\n                 )" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "code *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  uint uVar3;\n  \n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))();\n  }\n  iVar2 = (*(code *)(PTR_LAB_00190b40 + 0x16c))(param_1 + 0x158,param_2,0);\n  if (*(int *)(iVar2 + 8) == 0) {\n    uVar3 = 0;\n    (*(code *)(PTR_LAB_00190ba8 + 0x4044))(param_1);\n    cVar1 = *(char *)(param_1 + 0x51);\n  }\n  else {\n    uVar3 = 0x15;\n    sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378,\n                PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380,&DAT_00020bcd,\n                PTR_LAB_00190958 + 0x625c);\n    cVar1 = *(char *)(param_1 + 0x51);\n  }\n  if (cVar1 == '\0') {\n    uVar3 = uVar3 & *(uint *)(param_1 + 0x44);\n  }\n  else {\n    uVar3 = (*(code *)(PTR_LAB_00190bb8 + -0x4e0c))(param_1);\n  }\n  if ((uVar3 != 0) && (param_5 != (code *)0x0)) {\n    (*param_5)(param_4);\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb14))();\n  }\n  return uVar3;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))();\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))();\n  }" { (expression_statement "(**(code **)(PTR_DAT_00190948 + -0xb1c))();" (call_expression "(**(code **)(PTR_DAT_00190948 + -0xb1c))()" (parenthesized_expression "(**(code **)(PTR_DAT_00190948 + -0xb1c))" ( (pointer_expression "**(code **)(PTR_DAT_00190948 + -0xb1c)" * (pointer_expression "*(code **)(PTR_DAT_00190948 + -0xb1c)" * (cast_expression "(code **)(PTR_DAT_00190948 + -0xb1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_00190948 + -0xb1c)" ( (binary_expression "PTR_DAT_00190948 + -0xb1c" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (expression_statement "iVar2 = (*(code *)(PTR_LAB_00190b40 + 0x16c))(param_1 + 0x158,param_2,0);" (assignment_expression "iVar2 = (*(code *)(PTR_LAB_00190b40 + 0x16c))(param_1 + 0x158,param_2,0)" identifier = (call_expression "(*(code *)(PTR_LAB_00190b40 + 0x16c))(param_1 + 0x158,param_2,0)" (parenthesized_expression "(*(code *)(PTR_LAB_00190b40 + 0x16c))" ( (pointer_expression "*(code *)(PTR_LAB_00190b40 + 0x16c)" * (cast_expression "(code *)(PTR_LAB_00190b40 + 0x16c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190b40 + 0x16c)" ( (binary_expression "PTR_LAB_00190b40 + 0x16c" identifier + number_literal) )))) )) (argument_list "(param_1 + 0x158,param_2,0)" ( (binary_expression "param_1 + 0x158" identifier + number_literal) , identifier , number_literal )))) ;) (if_statement "if (*(int *)(iVar2 + 8) == 0) {\n    uVar3 = 0;\n    (*(code *)(PTR_LAB_00190ba8 + 0x4044))(param_1);\n    cVar1 = *(char *)(param_1 + 0x51);\n  }\n  else {\n    uVar3 = 0x15;\n    sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378,\n                PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380,&DAT_00020bcd,\n                PTR_LAB_00190958 + 0x625c);\n    cVar1 = *(char *)(param_1 + 0x51);\n  }" if (parenthesized_expression "(*(int *)(iVar2 + 8) == 0)" ( (binary_expression "*(int *)(iVar2 + 8) == 0" (pointer_expression "*(int *)(iVar2 + 8)" * (cast_expression "(int *)(iVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    uVar3 = 0;\n    (*(code *)(PTR_LAB_00190ba8 + 0x4044))(param_1);\n    cVar1 = *(char *)(param_1 + 0x51);\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "(*(code *)(PTR_LAB_00190ba8 + 0x4044))(param_1);" (call_expression "(*(code *)(PTR_LAB_00190ba8 + 0x4044))(param_1)" (parenthesized_expression "(*(code *)(PTR_LAB_00190ba8 + 0x4044))" ( (pointer_expression "*(code *)(PTR_LAB_00190ba8 + 0x4044)" * (cast_expression "(code *)(PTR_LAB_00190ba8 + 0x4044)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190ba8 + 0x4044)" ( (binary_expression "PTR_LAB_00190ba8 + 0x4044" identifier + number_literal) )))) )) (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "cVar1 = *(char *)(param_1 + 0x51);" (assignment_expression "cVar1 = *(char *)(param_1 + 0x51)" identifier = (pointer_expression "*(char *)(param_1 + 0x51)" * (cast_expression "(char *)(param_1 + 0x51)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x51)" ( (binary_expression "param_1 + 0x51" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    uVar3 = 0x15;\n    sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378,\n                PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380,&DAT_00020bcd,\n                PTR_LAB_00190958 + 0x625c);\n    cVar1 = *(char *)(param_1 + 0x51);\n  }" else (compound_statement "{\n    uVar3 = 0x15;\n    sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378,\n                PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380,&DAT_00020bcd,\n                PTR_LAB_00190958 + 0x625c);\n    cVar1 = *(char *)(param_1 + 0x51);\n  }" { (expression_statement "uVar3 = 0x15;" (assignment_expression "uVar3 = 0x15" identifier = number_literal) ;) (expression_statement "sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378,\n                PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380,&DAT_00020bcd,\n                PTR_LAB_00190958 + 0x625c);" (call_expression "sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378,\n                PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380,&DAT_00020bcd,\n                PTR_LAB_00190958 + 0x625c)" identifier (argument_list "(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378,\n                PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380,&DAT_00020bcd,\n                PTR_LAB_00190958 + 0x625c)" ( number_literal , (binary_expression "PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378" identifier + number_literal) , (binary_expression "PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380" identifier + number_literal) , (pointer_expression "&DAT_00020bcd" & identifier) , (binary_expression "PTR_LAB_00190958 + 0x625c" identifier + number_literal) ))) ;) (expression_statement "cVar1 = *(char *)(param_1 + 0x51);" (assignment_expression "cVar1 = *(char *)(param_1 + 0x51)" identifier = (pointer_expression "*(char *)(param_1 + 0x51)" * (cast_expression "(char *)(param_1 + 0x51)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x51)" ( (binary_expression "param_1 + 0x51" identifier + number_literal) ))))) ;) }))) (if_statement "if (cVar1 == '\0') {\n    uVar3 = uVar3 & *(uint *)(param_1 + 0x44);\n  }\n  else {\n    uVar3 = (*(code *)(PTR_LAB_00190bb8 + -0x4e0c))(param_1);\n  }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar3 = uVar3 & *(uint *)(param_1 + 0x44);\n  }" { (expression_statement "uVar3 = uVar3 & *(uint *)(param_1 + 0x44);" (assignment_expression "uVar3 = uVar3 & *(uint *)(param_1 + 0x44)" identifier = (binary_expression "uVar3 & *(uint *)(param_1 + 0x44)" identifier & (pointer_expression "*(uint *)(param_1 + 0x44)" * (cast_expression "(uint *)(param_1 + 0x44)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))))) ;) }) (else_clause "else {\n    uVar3 = (*(code *)(PTR_LAB_00190bb8 + -0x4e0c))(param_1);\n  }" else (compound_statement "{\n    uVar3 = (*(code *)(PTR_LAB_00190bb8 + -0x4e0c))(param_1);\n  }" { (expression_statement "uVar3 = (*(code *)(PTR_LAB_00190bb8 + -0x4e0c))(param_1);" (assignment_expression "uVar3 = (*(code *)(PTR_LAB_00190bb8 + -0x4e0c))(param_1)" identifier = (call_expression "(*(code *)(PTR_LAB_00190bb8 + -0x4e0c))(param_1)" (parenthesized_expression "(*(code *)(PTR_LAB_00190bb8 + -0x4e0c))" ( (pointer_expression "*(code *)(PTR_LAB_00190bb8 + -0x4e0c)" * (cast_expression "(code *)(PTR_LAB_00190bb8 + -0x4e0c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190bb8 + -0x4e0c)" ( (binary_expression "PTR_LAB_00190bb8 + -0x4e0c" identifier + number_literal) )))) )) (argument_list "(param_1)" ( identifier )))) ;) }))) (if_statement "if ((uVar3 != 0) && (param_5 != (code *)0x0)) {\n    (*param_5)(param_4);\n  }" if (parenthesized_expression "((uVar3 != 0) && (param_5 != (code *)0x0))" ( (binary_expression "(uVar3 != 0) && (param_5 != (code *)0x0)" (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_5 != (code *)0x0)" ( (binary_expression "param_5 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    (*param_5)(param_4);\n  }" { (expression_statement "(*param_5)(param_4);" (call_expression "(*param_5)(param_4)" (parenthesized_expression "(*param_5)" ( (pointer_expression "*param_5" * identifier) )) (argument_list "(param_4)" ( identifier ))) ;) })) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb14))();\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (**(code **)(PTR_DAT_00190948 + -0xb14))();\n  }" { (expression_statement "(**(code **)(PTR_DAT_00190948 + -0xb14))();" (call_expression "(**(code **)(PTR_DAT_00190948 + -0xb14))()" (parenthesized_expression "(**(code **)(PTR_DAT_00190948 + -0xb14))" ( (pointer_expression "**(code **)(PTR_DAT_00190948 + -0xb14)" * (pointer_expression "*(code **)(PTR_DAT_00190948 + -0xb14)" * (cast_expression "(code **)(PTR_DAT_00190948 + -0xb14)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_00190948 + -0xb14)" ( (binary_expression "PTR_DAT_00190948 + -0xb14" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "int createModule(sqlite3 *db,char *zName,sqlite3_module *pModule,void *pAux,\n                _func_void_void_ptr *xDestroy)\n\n{\n  u8 uVar1;\n  int iVar2;\n  uint uVar3;\n  \n  if (db->mutex != (sqlite3_mutex *)0x0) {\n    (**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c))();\n  }\n  iVar2 = (*(code *)(PTR_LAB_00190b40 + 0x16c))(&db->aModule,zName,0);\n  if (*(int *)(iVar2 + 8) == 0) {\n    uVar3 = 0;\n    (*(code *)(PTR_LAB_00190ba8 + 0x4044))(db);\n    uVar1 = db->mallocFailed;\n  }\n  else {\n    uVar3 = 0x15;\n    sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378,\n                PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380,0x20bcd,\n                PTR_LAB_00190958 + 0x625c);\n    uVar1 = db->mallocFailed;\n  }\n  if (uVar1 == '\0') {\n    uVar3 = uVar3 & db->errMask;\n  }\n  else {\n    uVar3 = (*(code *)(PTR_LAB_00190bb8 + -0x4e0c))(db);\n  }\n  if ((uVar3 != 0) && (xDestroy != (_func_void_void_ptr *)0x0)) {\n    (*xDestroy)(pAux);\n  }\n  if (db->mutex != (sqlite3_mutex *)0x0) {\n    (**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb14))();\n  }\n  return uVar3;\n}\n\n" (function_definition "int createModule(sqlite3 *db,char *zName,sqlite3_module *pModule,void *pAux,\n                _func_void_void_ptr *xDestroy)\n\n{\n  u8 uVar1;\n  int iVar2;\n  uint uVar3;\n  \n  if (db->mutex != (sqlite3_mutex *)0x0) {\n    (**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c))();\n  }\n  iVar2 = (*(code *)(PTR_LAB_00190b40 + 0x16c))(&db->aModule,zName,0);\n  if (*(int *)(iVar2 + 8) == 0) {\n    uVar3 = 0;\n    (*(code *)(PTR_LAB_00190ba8 + 0x4044))(db);\n    uVar1 = db->mallocFailed;\n  }\n  else {\n    uVar3 = 0x15;\n    sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378,\n                PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380,0x20bcd,\n                PTR_LAB_00190958 + 0x625c);\n    uVar1 = db->mallocFailed;\n  }\n  if (uVar1 == '\0') {\n    uVar3 = uVar3 & db->errMask;\n  }\n  else {\n    uVar3 = (*(code *)(PTR_LAB_00190bb8 + -0x4e0c))(db);\n  }\n  if ((uVar3 != 0) && (xDestroy != (_func_void_void_ptr *)0x0)) {\n    (*xDestroy)(pAux);\n  }\n  if (db->mutex != (sqlite3_mutex *)0x0) {\n    (**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb14))();\n  }\n  return uVar3;\n}" primitive_type (function_declarator "createModule(sqlite3 *db,char *zName,sqlite3_module *pModule,void *pAux,\n                _func_void_void_ptr *xDestroy)" identifier (parameter_list "(sqlite3 *db,char *zName,sqlite3_module *pModule,void *pAux,\n                _func_void_void_ptr *xDestroy)" ( (parameter_declaration "sqlite3 *db" type_identifier (pointer_declarator "*db" * identifier)) , (parameter_declaration "char *zName" primitive_type (pointer_declarator "*zName" * identifier)) , (parameter_declaration "sqlite3_module *pModule" type_identifier (pointer_declarator "*pModule" * identifier)) , (parameter_declaration "void *pAux" primitive_type (pointer_declarator "*pAux" * identifier)) , (parameter_declaration "_func_void_void_ptr *xDestroy" type_identifier (pointer_declarator "*xDestroy" * identifier)) ))) (compound_statement "{\n  u8 uVar1;\n  int iVar2;\n  uint uVar3;\n  \n  if (db->mutex != (sqlite3_mutex *)0x0) {\n    (**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c))();\n  }\n  iVar2 = (*(code *)(PTR_LAB_00190b40 + 0x16c))(&db->aModule,zName,0);\n  if (*(int *)(iVar2 + 8) == 0) {\n    uVar3 = 0;\n    (*(code *)(PTR_LAB_00190ba8 + 0x4044))(db);\n    uVar1 = db->mallocFailed;\n  }\n  else {\n    uVar3 = 0x15;\n    sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378,\n                PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380,0x20bcd,\n                PTR_LAB_00190958 + 0x625c);\n    uVar1 = db->mallocFailed;\n  }\n  if (uVar1 == '\0') {\n    uVar3 = uVar3 & db->errMask;\n  }\n  else {\n    uVar3 = (*(code *)(PTR_LAB_00190bb8 + -0x4e0c))(db);\n  }\n  if ((uVar3 != 0) && (xDestroy != (_func_void_void_ptr *)0x0)) {\n    (*xDestroy)(pAux);\n  }\n  if (db->mutex != (sqlite3_mutex *)0x0) {\n    (**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb14))();\n  }\n  return uVar3;\n}" { (declaration "u8 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (if_statement "if (db->mutex != (sqlite3_mutex *)0x0) {\n    (**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c))();\n  }" if (parenthesized_expression "(db->mutex != (sqlite3_mutex *)0x0)" ( (binary_expression "db->mutex != (sqlite3_mutex *)0x0" (field_expression "db->mutex" identifier -> field_identifier) != (cast_expression "(sqlite3_mutex *)0x0" ( (type_descriptor "sqlite3_mutex *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c))();\n  }" { (expression_statement "(**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c))();" (call_expression "(**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c))()" (parenthesized_expression "(**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c))" ( (pointer_expression "**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c)" * (pointer_expression "*(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c)" * (cast_expression "(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c)" ( (binary_expression "PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (expression_statement "iVar2 = (*(code *)(PTR_LAB_00190b40 + 0x16c))(&db->aModule,zName,0);" (assignment_expression "iVar2 = (*(code *)(PTR_LAB_00190b40 + 0x16c))(&db->aModule,zName,0)" identifier = (call_expression "(*(code *)(PTR_LAB_00190b40 + 0x16c))(&db->aModule,zName,0)" (parenthesized_expression "(*(code *)(PTR_LAB_00190b40 + 0x16c))" ( (pointer_expression "*(code *)(PTR_LAB_00190b40 + 0x16c)" * (cast_expression "(code *)(PTR_LAB_00190b40 + 0x16c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190b40 + 0x16c)" ( (binary_expression "PTR_LAB_00190b40 + 0x16c" identifier + number_literal) )))) )) (argument_list "(&db->aModule,zName,0)" ( (pointer_expression "&db->aModule" & (field_expression "db->aModule" identifier -> field_identifier)) , identifier , number_literal )))) ;) (if_statement "if (*(int *)(iVar2 + 8) == 0) {\n    uVar3 = 0;\n    (*(code *)(PTR_LAB_00190ba8 + 0x4044))(db);\n    uVar1 = db->mallocFailed;\n  }\n  else {\n    uVar3 = 0x15;\n    sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378,\n                PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380,0x20bcd,\n                PTR_LAB_00190958 + 0x625c);\n    uVar1 = db->mallocFailed;\n  }" if (parenthesized_expression "(*(int *)(iVar2 + 8) == 0)" ( (binary_expression "*(int *)(iVar2 + 8) == 0" (pointer_expression "*(int *)(iVar2 + 8)" * (cast_expression "(int *)(iVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    uVar3 = 0;\n    (*(code *)(PTR_LAB_00190ba8 + 0x4044))(db);\n    uVar1 = db->mallocFailed;\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "(*(code *)(PTR_LAB_00190ba8 + 0x4044))(db);" (call_expression "(*(code *)(PTR_LAB_00190ba8 + 0x4044))(db)" (parenthesized_expression "(*(code *)(PTR_LAB_00190ba8 + 0x4044))" ( (pointer_expression "*(code *)(PTR_LAB_00190ba8 + 0x4044)" * (cast_expression "(code *)(PTR_LAB_00190ba8 + 0x4044)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190ba8 + 0x4044)" ( (binary_expression "PTR_LAB_00190ba8 + 0x4044" identifier + number_literal) )))) )) (argument_list "(db)" ( identifier ))) ;) (expression_statement "uVar1 = db->mallocFailed;" (assignment_expression "uVar1 = db->mallocFailed" identifier = (field_expression "db->mallocFailed" identifier -> field_identifier)) ;) }) (else_clause "else {\n    uVar3 = 0x15;\n    sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378,\n                PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380,0x20bcd,\n                PTR_LAB_00190958 + 0x625c);\n    uVar1 = db->mallocFailed;\n  }" else (compound_statement "{\n    uVar3 = 0x15;\n    sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378,\n                PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380,0x20bcd,\n                PTR_LAB_00190958 + 0x625c);\n    uVar1 = db->mallocFailed;\n  }" { (expression_statement "uVar3 = 0x15;" (assignment_expression "uVar3 = 0x15" identifier = number_literal) ;) (expression_statement "sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378,\n                PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380,0x20bcd,\n                PTR_LAB_00190958 + 0x625c);" (call_expression "sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378,\n                PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380,0x20bcd,\n                PTR_LAB_00190958 + 0x625c)" identifier (argument_list "(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378,\n                PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380,0x20bcd,\n                PTR_LAB_00190958 + 0x625c)" ( number_literal , (binary_expression "PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378" identifier + number_literal) , (binary_expression "PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380" identifier + number_literal) , number_literal , (binary_expression "PTR_LAB_00190958 + 0x625c" identifier + number_literal) ))) ;) (expression_statement "uVar1 = db->mallocFailed;" (assignment_expression "uVar1 = db->mallocFailed" identifier = (field_expression "db->mallocFailed" identifier -> field_identifier)) ;) }))) (if_statement "if (uVar1 == '\0') {\n    uVar3 = uVar3 & db->errMask;\n  }\n  else {\n    uVar3 = (*(code *)(PTR_LAB_00190bb8 + -0x4e0c))(db);\n  }" if (parenthesized_expression "(uVar1 == '\0')" ( (binary_expression "uVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar3 = uVar3 & db->errMask;\n  }" { (expression_statement "uVar3 = uVar3 & db->errMask;" (assignment_expression "uVar3 = uVar3 & db->errMask" identifier = (binary_expression "uVar3 & db->errMask" identifier & (field_expression "db->errMask" identifier -> field_identifier))) ;) }) (else_clause "else {\n    uVar3 = (*(code *)(PTR_LAB_00190bb8 + -0x4e0c))(db);\n  }" else (compound_statement "{\n    uVar3 = (*(code *)(PTR_LAB_00190bb8 + -0x4e0c))(db);\n  }" { (expression_statement "uVar3 = (*(code *)(PTR_LAB_00190bb8 + -0x4e0c))(db);" (assignment_expression "uVar3 = (*(code *)(PTR_LAB_00190bb8 + -0x4e0c))(db)" identifier = (call_expression "(*(code *)(PTR_LAB_00190bb8 + -0x4e0c))(db)" (parenthesized_expression "(*(code *)(PTR_LAB_00190bb8 + -0x4e0c))" ( (pointer_expression "*(code *)(PTR_LAB_00190bb8 + -0x4e0c)" * (cast_expression "(code *)(PTR_LAB_00190bb8 + -0x4e0c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190bb8 + -0x4e0c)" ( (binary_expression "PTR_LAB_00190bb8 + -0x4e0c" identifier + number_literal) )))) )) (argument_list "(db)" ( identifier )))) ;) }))) (if_statement "if ((uVar3 != 0) && (xDestroy != (_func_void_void_ptr *)0x0)) {\n    (*xDestroy)(pAux);\n  }" if (parenthesized_expression "((uVar3 != 0) && (xDestroy != (_func_void_void_ptr *)0x0))" ( (binary_expression "(uVar3 != 0) && (xDestroy != (_func_void_void_ptr *)0x0)" (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) && (parenthesized_expression "(xDestroy != (_func_void_void_ptr *)0x0)" ( (binary_expression "xDestroy != (_func_void_void_ptr *)0x0" identifier != (cast_expression "(_func_void_void_ptr *)0x0" ( (type_descriptor "_func_void_void_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    (*xDestroy)(pAux);\n  }" { (expression_statement "(*xDestroy)(pAux);" (call_expression "(*xDestroy)(pAux)" (parenthesized_expression "(*xDestroy)" ( (pointer_expression "*xDestroy" * identifier) )) (argument_list "(pAux)" ( identifier ))) ;) })) (if_statement "if (db->mutex != (sqlite3_mutex *)0x0) {\n    (**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb14))();\n  }" if (parenthesized_expression "(db->mutex != (sqlite3_mutex *)0x0)" ( (binary_expression "db->mutex != (sqlite3_mutex *)0x0" (field_expression "db->mutex" identifier -> field_identifier) != (cast_expression "(sqlite3_mutex *)0x0" ( (type_descriptor "sqlite3_mutex *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb14))();\n  }" { (expression_statement "(**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb14))();" (call_expression "(**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb14))()" (parenthesized_expression "(**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb14))" ( (pointer_expression "**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb14)" * (pointer_expression "*(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb14)" * (cast_expression "(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb14)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb14)" ( (binary_expression "PTR_aBuiltinFunc_29540_1408__00190948 + -0xb14" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "uint FUN_0008cbc4(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,code *param_5\n                 )\n\n{\n  char cVar1;\n  int iVar2;\n  uint uVar3;\n  \n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))();\n  }\n  iVar2 = (*(code *)(PTR_LAB_00190b40 + 0x16c))(param_1 + 0x158,param_2,0);\n  if (*(int *)(iVar2 + 8) == 0) {\n    uVar3 = 0;\n    (*(code *)(PTR_LAB_00190ba8 + 0x4044))(param_1);\n    cVar1 = *(char *)(param_1 + 0x51);\n  }\n  else {\n    uVar3 = 0x15;\n    sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378,\n                PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380,&DAT_00020bcd,\n                PTR_LAB_00190958 + 0x625c);\n    cVar1 = *(char *)(param_1 + 0x51);\n  }\n  if (cVar1 == '\0') {\n    uVar3 = uVar3 & *(uint *)(param_1 + 0x44);\n  }\n  else {\n    uVar3 = (*(code *)(PTR_LAB_00190bb8 + -0x4e0c))(param_1);\n  }\n  if ((uVar3 != 0) && (param_5 != (code *)0x0)) {\n    (*param_5)(param_4);\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb14))();\n  }\n  return uVar3;\n}\n\n" (function_definition "uint FUN_0008cbc4(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,code *param_5\n                 )\n\n{\n  char cVar1;\n  int iVar2;\n  uint uVar3;\n  \n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))();\n  }\n  iVar2 = (*(code *)(PTR_LAB_00190b40 + 0x16c))(param_1 + 0x158,param_2,0);\n  if (*(int *)(iVar2 + 8) == 0) {\n    uVar3 = 0;\n    (*(code *)(PTR_LAB_00190ba8 + 0x4044))(param_1);\n    cVar1 = *(char *)(param_1 + 0x51);\n  }\n  else {\n    uVar3 = 0x15;\n    sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378,\n                PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380,&DAT_00020bcd,\n                PTR_LAB_00190958 + 0x625c);\n    cVar1 = *(char *)(param_1 + 0x51);\n  }\n  if (cVar1 == '\0') {\n    uVar3 = uVar3 & *(uint *)(param_1 + 0x44);\n  }\n  else {\n    uVar3 = (*(code *)(PTR_LAB_00190bb8 + -0x4e0c))(param_1);\n  }\n  if ((uVar3 != 0) && (param_5 != (code *)0x0)) {\n    (*param_5)(param_4);\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb14))();\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_0008cbc4(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,code *param_5\n                 )" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,code *param_5\n                 )" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "code *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  uint uVar3;\n  \n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))();\n  }\n  iVar2 = (*(code *)(PTR_LAB_00190b40 + 0x16c))(param_1 + 0x158,param_2,0);\n  if (*(int *)(iVar2 + 8) == 0) {\n    uVar3 = 0;\n    (*(code *)(PTR_LAB_00190ba8 + 0x4044))(param_1);\n    cVar1 = *(char *)(param_1 + 0x51);\n  }\n  else {\n    uVar3 = 0x15;\n    sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378,\n                PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380,&DAT_00020bcd,\n                PTR_LAB_00190958 + 0x625c);\n    cVar1 = *(char *)(param_1 + 0x51);\n  }\n  if (cVar1 == '\0') {\n    uVar3 = uVar3 & *(uint *)(param_1 + 0x44);\n  }\n  else {\n    uVar3 = (*(code *)(PTR_LAB_00190bb8 + -0x4e0c))(param_1);\n  }\n  if ((uVar3 != 0) && (param_5 != (code *)0x0)) {\n    (*param_5)(param_4);\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb14))();\n  }\n  return uVar3;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))();\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))();\n  }" { (expression_statement "(**(code **)(PTR_DAT_00190948 + -0xb1c))();" (call_expression "(**(code **)(PTR_DAT_00190948 + -0xb1c))()" (parenthesized_expression "(**(code **)(PTR_DAT_00190948 + -0xb1c))" ( (pointer_expression "**(code **)(PTR_DAT_00190948 + -0xb1c)" * (pointer_expression "*(code **)(PTR_DAT_00190948 + -0xb1c)" * (cast_expression "(code **)(PTR_DAT_00190948 + -0xb1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_00190948 + -0xb1c)" ( (binary_expression "PTR_DAT_00190948 + -0xb1c" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (expression_statement "iVar2 = (*(code *)(PTR_LAB_00190b40 + 0x16c))(param_1 + 0x158,param_2,0);" (assignment_expression "iVar2 = (*(code *)(PTR_LAB_00190b40 + 0x16c))(param_1 + 0x158,param_2,0)" identifier = (call_expression "(*(code *)(PTR_LAB_00190b40 + 0x16c))(param_1 + 0x158,param_2,0)" (parenthesized_expression "(*(code *)(PTR_LAB_00190b40 + 0x16c))" ( (pointer_expression "*(code *)(PTR_LAB_00190b40 + 0x16c)" * (cast_expression "(code *)(PTR_LAB_00190b40 + 0x16c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190b40 + 0x16c)" ( (binary_expression "PTR_LAB_00190b40 + 0x16c" identifier + number_literal) )))) )) (argument_list "(param_1 + 0x158,param_2,0)" ( (binary_expression "param_1 + 0x158" identifier + number_literal) , identifier , number_literal )))) ;) (if_statement "if (*(int *)(iVar2 + 8) == 0) {\n    uVar3 = 0;\n    (*(code *)(PTR_LAB_00190ba8 + 0x4044))(param_1);\n    cVar1 = *(char *)(param_1 + 0x51);\n  }\n  else {\n    uVar3 = 0x15;\n    sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378,\n                PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380,&DAT_00020bcd,\n                PTR_LAB_00190958 + 0x625c);\n    cVar1 = *(char *)(param_1 + 0x51);\n  }" if (parenthesized_expression "(*(int *)(iVar2 + 8) == 0)" ( (binary_expression "*(int *)(iVar2 + 8) == 0" (pointer_expression "*(int *)(iVar2 + 8)" * (cast_expression "(int *)(iVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    uVar3 = 0;\n    (*(code *)(PTR_LAB_00190ba8 + 0x4044))(param_1);\n    cVar1 = *(char *)(param_1 + 0x51);\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "(*(code *)(PTR_LAB_00190ba8 + 0x4044))(param_1);" (call_expression "(*(code *)(PTR_LAB_00190ba8 + 0x4044))(param_1)" (parenthesized_expression "(*(code *)(PTR_LAB_00190ba8 + 0x4044))" ( (pointer_expression "*(code *)(PTR_LAB_00190ba8 + 0x4044)" * (cast_expression "(code *)(PTR_LAB_00190ba8 + 0x4044)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190ba8 + 0x4044)" ( (binary_expression "PTR_LAB_00190ba8 + 0x4044" identifier + number_literal) )))) )) (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "cVar1 = *(char *)(param_1 + 0x51);" (assignment_expression "cVar1 = *(char *)(param_1 + 0x51)" identifier = (pointer_expression "*(char *)(param_1 + 0x51)" * (cast_expression "(char *)(param_1 + 0x51)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x51)" ( (binary_expression "param_1 + 0x51" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    uVar3 = 0x15;\n    sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378,\n                PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380,&DAT_00020bcd,\n                PTR_LAB_00190958 + 0x625c);\n    cVar1 = *(char *)(param_1 + 0x51);\n  }" else (compound_statement "{\n    uVar3 = 0x15;\n    sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378,\n                PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380,&DAT_00020bcd,\n                PTR_LAB_00190958 + 0x625c);\n    cVar1 = *(char *)(param_1 + 0x51);\n  }" { (expression_statement "uVar3 = 0x15;" (assignment_expression "uVar3 = 0x15" identifier = number_literal) ;) (expression_statement "sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378,\n                PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380,&DAT_00020bcd,\n                PTR_LAB_00190958 + 0x625c);" (call_expression "sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378,\n                PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380,&DAT_00020bcd,\n                PTR_LAB_00190958 + 0x625c)" identifier (argument_list "(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378,\n                PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380,&DAT_00020bcd,\n                PTR_LAB_00190958 + 0x625c)" ( number_literal , (binary_expression "PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378" identifier + number_literal) , (binary_expression "PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380" identifier + number_literal) , (pointer_expression "&DAT_00020bcd" & identifier) , (binary_expression "PTR_LAB_00190958 + 0x625c" identifier + number_literal) ))) ;) (expression_statement "cVar1 = *(char *)(param_1 + 0x51);" (assignment_expression "cVar1 = *(char *)(param_1 + 0x51)" identifier = (pointer_expression "*(char *)(param_1 + 0x51)" * (cast_expression "(char *)(param_1 + 0x51)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x51)" ( (binary_expression "param_1 + 0x51" identifier + number_literal) ))))) ;) }))) (if_statement "if (cVar1 == '\0') {\n    uVar3 = uVar3 & *(uint *)(param_1 + 0x44);\n  }\n  else {\n    uVar3 = (*(code *)(PTR_LAB_00190bb8 + -0x4e0c))(param_1);\n  }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar3 = uVar3 & *(uint *)(param_1 + 0x44);\n  }" { (expression_statement "uVar3 = uVar3 & *(uint *)(param_1 + 0x44);" (assignment_expression "uVar3 = uVar3 & *(uint *)(param_1 + 0x44)" identifier = (binary_expression "uVar3 & *(uint *)(param_1 + 0x44)" identifier & (pointer_expression "*(uint *)(param_1 + 0x44)" * (cast_expression "(uint *)(param_1 + 0x44)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))))) ;) }) (else_clause "else {\n    uVar3 = (*(code *)(PTR_LAB_00190bb8 + -0x4e0c))(param_1);\n  }" else (compound_statement "{\n    uVar3 = (*(code *)(PTR_LAB_00190bb8 + -0x4e0c))(param_1);\n  }" { (expression_statement "uVar3 = (*(code *)(PTR_LAB_00190bb8 + -0x4e0c))(param_1);" (assignment_expression "uVar3 = (*(code *)(PTR_LAB_00190bb8 + -0x4e0c))(param_1)" identifier = (call_expression "(*(code *)(PTR_LAB_00190bb8 + -0x4e0c))(param_1)" (parenthesized_expression "(*(code *)(PTR_LAB_00190bb8 + -0x4e0c))" ( (pointer_expression "*(code *)(PTR_LAB_00190bb8 + -0x4e0c)" * (cast_expression "(code *)(PTR_LAB_00190bb8 + -0x4e0c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190bb8 + -0x4e0c)" ( (binary_expression "PTR_LAB_00190bb8 + -0x4e0c" identifier + number_literal) )))) )) (argument_list "(param_1)" ( identifier )))) ;) }))) (if_statement "if ((uVar3 != 0) && (param_5 != (code *)0x0)) {\n    (*param_5)(param_4);\n  }" if (parenthesized_expression "((uVar3 != 0) && (param_5 != (code *)0x0))" ( (binary_expression "(uVar3 != 0) && (param_5 != (code *)0x0)" (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_5 != (code *)0x0)" ( (binary_expression "param_5 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    (*param_5)(param_4);\n  }" { (expression_statement "(*param_5)(param_4);" (call_expression "(*param_5)(param_4)" (parenthesized_expression "(*param_5)" ( (pointer_expression "*param_5" * identifier) )) (argument_list "(param_4)" ( identifier ))) ;) })) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb14))();\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (**(code **)(PTR_DAT_00190948 + -0xb14))();\n  }" { (expression_statement "(**(code **)(PTR_DAT_00190948 + -0xb14))();" (call_expression "(**(code **)(PTR_DAT_00190948 + -0xb14))()" (parenthesized_expression "(**(code **)(PTR_DAT_00190948 + -0xb14))" ( (pointer_expression "**(code **)(PTR_DAT_00190948 + -0xb14)" * (pointer_expression "*(code **)(PTR_DAT_00190948 + -0xb14)" * (cast_expression "(code **)(PTR_DAT_00190948 + -0xb14)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_00190948 + -0xb14)" ( (binary_expression "PTR_DAT_00190948 + -0xb14" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (return_statement "return uVar3;" 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)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , (pointer_expression & IDENT) , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT & (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( IDENT )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "uint FUN_0008cbc4(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,code *param_5\n                 )\n\n{\n  char cVar1;\n  int iVar2;\n  uint uVar3;\n  \n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))();\n  }\n  iVar2 = (*(code *)(PTR_LAB_00190b40 + 0x16c))(param_1 + 0x158,param_2,0);\n  if (*(int *)(iVar2 + 8) == 0) {\n    uVar3 = 0;\n    (*(code *)(PTR_LAB_00190ba8 + 0x4044))(param_1);\n    cVar1 = *(char *)(param_1 + 0x51);\n  }\n  else {\n    uVar3 = 0x15;\n    sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378,\n                PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380,&DAT_00020bcd,\n                PTR_LAB_00190958 + 0x625c);\n    cVar1 = *(char *)(param_1 + 0x51);\n  }\n  if (cVar1 == '\0') {\n    uVar3 = uVar3 & *(uint *)(param_1 + 0x44);\n  }\n  else {\n    uVar3 = (*(code *)(PTR_LAB_00190bb8 + -0x4e0c))(param_1);\n  }\n  if ((uVar3 != 0) && (param_5 != (code *)0x0)) {\n    (*param_5)(param_4);\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb14))();\n  }\n  return uVar3;\n}" (type_identifier "uint") (function_declarator "FUN_0008cbc4(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,code *param_5\n                 )" (identifier "FUN_0008cbc4") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,code *param_5\n                 )" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "code *param_5" (type_identifier "code") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")"))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  uint uVar3;\n  \n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))();\n  }\n  iVar2 = (*(code *)(PTR_LAB_00190b40 + 0x16c))(param_1 + 0x158,param_2,0);\n  if (*(int *)(iVar2 + 8) == 0) {\n    uVar3 = 0;\n    (*(code *)(PTR_LAB_00190ba8 + 0x4044))(param_1);\n    cVar1 = *(char *)(param_1 + 0x51);\n  }\n  else {\n    uVar3 = 0x15;\n    sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378,\n                PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380,&DAT_00020bcd,\n                PTR_LAB_00190958 + 0x625c);\n    cVar1 = *(char *)(param_1 + 0x51);\n  }\n  if (cVar1 == '\0') {\n    uVar3 = uVar3 & *(uint *)(param_1 + 0x44);\n  }\n  else {\n    uVar3 = (*(code *)(PTR_LAB_00190bb8 + -0x4e0c))(param_1);\n  }\n  if ((uVar3 != 0) && (param_5 != (code *)0x0)) {\n    (*param_5)(param_4);\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb14))();\n  }\n  return uVar3;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))();\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))();\n  }" ({ "{") (expression_statement "(**(code **)(PTR_DAT_00190948 + -0xb1c))();" (call_expression "(**(code **)(PTR_DAT_00190948 + -0xb1c))()" (parenthesized_expression "(**(code **)(PTR_DAT_00190948 + -0xb1c))" (( "(") (pointer_expression "**(code **)(PTR_DAT_00190948 + -0xb1c)" (* "*") (pointer_expression "*(code **)(PTR_DAT_00190948 + -0xb1c)" (* "*") (cast_expression "(code **)(PTR_DAT_00190948 + -0xb1c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR_DAT_00190948 + -0xb1c)" (( "(") (binary_expression "PTR_DAT_00190948 + -0xb1c" (identifier "PTR_DAT_00190948") (+ "+") (number_literal "-0xb1c")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar2 = (*(code *)(PTR_LAB_00190b40 + 0x16c))(param_1 + 0x158,param_2,0);" (assignment_expression "iVar2 = (*(code *)(PTR_LAB_00190b40 + 0x16c))(param_1 + 0x158,param_2,0)" (identifier "iVar2") (= "=") (call_expression "(*(code *)(PTR_LAB_00190b40 + 0x16c))(param_1 + 0x158,param_2,0)" (parenthesized_expression "(*(code *)(PTR_LAB_00190b40 + 0x16c))" (( "(") (pointer_expression "*(code *)(PTR_LAB_00190b40 + 0x16c)" (* "*") (cast_expression "(code *)(PTR_LAB_00190b40 + 0x16c)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_00190b40 + 0x16c)" (( "(") (binary_expression "PTR_LAB_00190b40 + 0x16c" (identifier "PTR_LAB_00190b40") (+ "+") (number_literal "0x16c")) () ")")))) () ")")) (argument_list "(param_1 + 0x158,param_2,0)" (( "(") (binary_expression "param_1 + 0x158" (identifier "param_1") (+ "+") (number_literal "0x158")) (, ",") (identifier "param_2") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (*(int *)(iVar2 + 8) == 0) {\n    uVar3 = 0;\n    (*(code *)(PTR_LAB_00190ba8 + 0x4044))(param_1);\n    cVar1 = *(char *)(param_1 + 0x51);\n  }\n  else {\n    uVar3 = 0x15;\n    sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378,\n                PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380,&DAT_00020bcd,\n                PTR_LAB_00190958 + 0x625c);\n    cVar1 = *(char *)(param_1 + 0x51);\n  }" (if "if") (parenthesized_expression "(*(int *)(iVar2 + 8) == 0)" (( "(") (binary_expression "*(int *)(iVar2 + 8) == 0" (pointer_expression "*(int *)(iVar2 + 8)" (* "*") (cast_expression "(int *)(iVar2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 8)" (( "(") (binary_expression "iVar2 + 8" (identifier "iVar2") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar3 = 0;\n    (*(code *)(PTR_LAB_00190ba8 + 0x4044))(param_1);\n    cVar1 = *(char *)(param_1 + 0x51);\n  }" ({ "{") (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "(*(code *)(PTR_LAB_00190ba8 + 0x4044))(param_1);" (call_expression "(*(code *)(PTR_LAB_00190ba8 + 0x4044))(param_1)" (parenthesized_expression "(*(code *)(PTR_LAB_00190ba8 + 0x4044))" (( "(") (pointer_expression "*(code *)(PTR_LAB_00190ba8 + 0x4044)" (* "*") (cast_expression "(code *)(PTR_LAB_00190ba8 + 0x4044)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_00190ba8 + 0x4044)" (( "(") (binary_expression "PTR_LAB_00190ba8 + 0x4044" (identifier "PTR_LAB_00190ba8") (+ "+") (number_literal "0x4044")) () ")")))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "cVar1 = *(char *)(param_1 + 0x51);" (assignment_expression "cVar1 = *(char *)(param_1 + 0x51)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(param_1 + 0x51)" (* "*") (cast_expression "(char *)(param_1 + 0x51)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x51)" (( "(") (binary_expression "param_1 + 0x51" (identifier "param_1") (+ "+") (number_literal "0x51")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    uVar3 = 0x15;\n    sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378,\n                PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380,&DAT_00020bcd,\n                PTR_LAB_00190958 + 0x625c);\n    cVar1 = *(char *)(param_1 + 0x51);\n  }" (else "else") (compound_statement "{\n    uVar3 = 0x15;\n    sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378,\n                PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380,&DAT_00020bcd,\n                PTR_LAB_00190958 + 0x625c);\n    cVar1 = *(char *)(param_1 + 0x51);\n  }" ({ "{") (expression_statement "uVar3 = 0x15;" (assignment_expression "uVar3 = 0x15" (identifier "uVar3") (= "=") (number_literal "0x15")) (; ";")) (expression_statement "sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378,\n                PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380,&DAT_00020bcd,\n                PTR_LAB_00190958 + 0x625c);" (call_expression "sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378,\n                PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380,&DAT_00020bcd,\n                PTR_LAB_00190958 + 0x625c)" (identifier "sqlite3_log") (argument_list "(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378,\n                PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380,&DAT_00020bcd,\n                PTR_LAB_00190958 + 0x625c)" (( "(") (number_literal "0x15") (, ",") (binary_expression "PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378" (identifier "PTR_s_o_page_from_root____pageno_INTEG_0019095c") (+ "+") (number_literal "-0x6378")) (, ",") (binary_expression "PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380" (identifier "PTR_s_o_page_from_root____pageno_INTEG_0019095c") (+ "+") (number_literal "-0x6380")) (, ",") (pointer_expression "&DAT_00020bcd" (& "&") (identifier "DAT_00020bcd")) (, ",") (binary_expression "PTR_LAB_00190958 + 0x625c" (identifier "PTR_LAB_00190958") (+ "+") (number_literal "0x625c")) () ")"))) (; ";")) (expression_statement "cVar1 = *(char *)(param_1 + 0x51);" (assignment_expression "cVar1 = *(char *)(param_1 + 0x51)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(param_1 + 0x51)" (* "*") (cast_expression "(char *)(param_1 + 0x51)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x51)" (( "(") (binary_expression "param_1 + 0x51" (identifier "param_1") (+ "+") (number_literal "0x51")) () ")"))))) (; ";")) (} "}")))) (if_statement "if (cVar1 == '\0') {\n    uVar3 = uVar3 & *(uint *)(param_1 + 0x44);\n  }\n  else {\n    uVar3 = (*(code *)(PTR_LAB_00190bb8 + -0x4e0c))(param_1);\n  }" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    uVar3 = uVar3 & *(uint *)(param_1 + 0x44);\n  }" ({ "{") (expression_statement "uVar3 = uVar3 & *(uint *)(param_1 + 0x44);" (assignment_expression "uVar3 = uVar3 & *(uint *)(param_1 + 0x44)" (identifier "uVar3") (= "=") (binary_expression "uVar3 & *(uint *)(param_1 + 0x44)" (identifier "uVar3") (& "&") (pointer_expression "*(uint *)(param_1 + 0x44)" (* "*") (cast_expression "(uint *)(param_1 + 0x44)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x44)" (( "(") (binary_expression "param_1 + 0x44" (identifier "param_1") (+ "+") (number_literal "0x44")) () ")")))))) (; ";")) (} "}")) (else_clause "else {\n    uVar3 = (*(code *)(PTR_LAB_00190bb8 + -0x4e0c))(param_1);\n  }" (else "else") (compound_statement "{\n    uVar3 = (*(code *)(PTR_LAB_00190bb8 + -0x4e0c))(param_1);\n  }" ({ "{") (expression_statement "uVar3 = (*(code *)(PTR_LAB_00190bb8 + -0x4e0c))(param_1);" (assignment_expression "uVar3 = (*(code *)(PTR_LAB_00190bb8 + -0x4e0c))(param_1)" (identifier "uVar3") (= "=") (call_expression "(*(code *)(PTR_LAB_00190bb8 + -0x4e0c))(param_1)" (parenthesized_expression "(*(code *)(PTR_LAB_00190bb8 + -0x4e0c))" (( "(") (pointer_expression "*(code *)(PTR_LAB_00190bb8 + -0x4e0c)" (* "*") (cast_expression "(code *)(PTR_LAB_00190bb8 + -0x4e0c)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_00190bb8 + -0x4e0c)" (( "(") (binary_expression "PTR_LAB_00190bb8 + -0x4e0c" (identifier "PTR_LAB_00190bb8") (+ "+") (number_literal "-0x4e0c")) () ")")))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (} "}")))) (if_statement "if ((uVar3 != 0) && (param_5 != (code *)0x0)) {\n    (*param_5)(param_4);\n  }" (if "if") (parenthesized_expression "((uVar3 != 0) && (param_5 != (code *)0x0))" (( "(") (binary_expression "(uVar3 != 0) && (param_5 != (code *)0x0)" (parenthesized_expression "(uVar3 != 0)" (( "(") (binary_expression "uVar3 != 0" (identifier "uVar3") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_5 != (code *)0x0)" (( "(") (binary_expression "param_5 != (code *)0x0" (identifier "param_5") (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")"))) () ")")) (compound_statement "{\n    (*param_5)(param_4);\n  }" ({ "{") (expression_statement "(*param_5)(param_4);" (call_expression "(*param_5)(param_4)" (parenthesized_expression "(*param_5)" (( "(") (pointer_expression "*param_5" (* "*") (identifier "param_5")) () ")")) (argument_list "(param_4)" (( "(") (identifier "param_4") () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb14))();\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (**(code **)(PTR_DAT_00190948 + -0xb14))();\n  }" ({ "{") (expression_statement "(**(code **)(PTR_DAT_00190948 + -0xb14))();" (call_expression "(**(code **)(PTR_DAT_00190948 + -0xb14))()" (parenthesized_expression "(**(code **)(PTR_DAT_00190948 + -0xb14))" (( "(") (pointer_expression "**(code **)(PTR_DAT_00190948 + -0xb14)" (* "*") (pointer_expression "*(code **)(PTR_DAT_00190948 + -0xb14)" (* "*") (cast_expression "(code **)(PTR_DAT_00190948 + -0xb14)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR_DAT_00190948 + -0xb14)" (( "(") (binary_expression "PTR_DAT_00190948 + -0xb14" (identifier "PTR_DAT_00190948") (+ "+") (number_literal "-0xb14")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

int function_1(type_1 *db,char *zName,type_2 *pModule,void *pAux,
                type_3 *var_11)

{
  type_4 var_8;
  int var_3;
  type_5 var_9;
  
  if (db->mutex != (type_6 *)0x0) {
    (**(type_7 **)(var_1 + -0xb1c))();
  }
  var_3 = (*(type_7 *)(var_2 + 0x16c))(&db->aModule,zName,0);
  if (*(int *)(var_3 + 8) == 0) {
    var_9 = 0;
    (*(type_7 *)(var_4 + 0x4044))(db);
    var_8 = db->mallocFailed;
  }
  else {
    var_9 = 0x15;
    var_5(0x15,var_6 + -0x6378,
                var_6 + -0x6380,0x20bcd,
                var_7 + 0x625c);
    var_8 = db->mallocFailed;
  }
  if (var_8 == '\0') {
    var_9 = var_9 & db->errMask;
  }
  else {
    var_9 = (*(type_7 *)(var_10 + -0x4e0c))(db);
  }
  if ((var_9 != 0) && (var_11 != (type_3 *)0x0)) {
    (*var_11)(pAux);
  }
  if (db->mutex != (type_6 *)0x0) {
    (**(type_7 **)(var_1 + -0xb14))();
  }
  return var_9;
}


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

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

{
  char cVar1;
  int iVar2;
  uint uVar3;
  
  if (*(int *)(param_1 + 0xc) != 0) {
    (**(code **)(PTR_DAT_00190948 + -0xb1c))();
  }
  iVar2 = (*(code *)(PTR_LAB_00190b40 + 0x16c))(param_1 + 0x158,param_2,0);
  if (*(int *)(iVar2 + 8) == 0) {
    uVar3 = 0;
    (*(code *)(PTR_LAB_00190ba8 + 0x4044))(param_1);
    cVar1 = *(char *)(param_1 + 0x51);
  }
  else {
    uVar3 = 0x15;
    sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6378,
                PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x6380,&DAT_00020bcd,
                PTR_LAB_00190958 + 0x625c);
    cVar1 = *(char *)(param_1 + 0x51);
  }
  if (cVar1 == '\0') {
    uVar3 = uVar3 & *(uint *)(param_1 + 0x44);
  }
  else {
    uVar3 = (*(code *)(PTR_LAB_00190bb8 + -0x4e0c))(param_1);
  }
  if ((uVar3 != 0) && (param_5 != (code *)0x0)) {
    (*param_5)(param_4);
  }
  if (*(int *)(param_1 + 0xc) != 0) {
    (**(code **)(PTR_DAT_00190948 + -0xb14))();
  }
  return uVar3;
}

