
int sqlite3SafetyCheckOk(sqlite3 *db)

{
  int iVar1;
  u32 uVar2;
  undefined *puVar3;
  
  if (db == (sqlite3 *)0x0) {
    puVar3 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x14d0;
  }
  else {
    uVar2 = db->magic;
    if (uVar2 == 0xa029a697) {
      return 1;
    }
    if (((uVar2 != 0x4b771290) && (uVar2 != 0xf03b7906)) &&
       (iVar1 = sqlite3SafetyCheckSickOrOk(db), iVar1 == 0)) {
      return 0;
    }
    puVar3 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5c80;
  }
  sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5ce4,puVar3);
  return 0;
}



undefined4 FUN_00092a5c(int param_1)

{
  int iVar1;
  undefined *puVar2;
  
  if (param_1 == 0) {
    puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x14d0;
  }
  else {
    iVar1 = *(int *)(param_1 + 0x60);
    if (iVar1 == -0x5fd65969) {
      return 1;
    }
    if (((iVar1 != 0x4b771290) && (iVar1 != -0xfc486fa)) && (iVar1 = FUN_000926f8(), iVar1 == 0)) {
      return 0;
    }
    puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5c80;
  }
  sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5ce4,puVar2);
  return 0;
}


lui gp,0x10
addiu gp,gp,0x5ec4
addu gp,gp,t9
addiu sp,sp,-0x20
sw gp,0x10(sp)
sw ra,0x1c(sp)
beq a0,zero,0x00092af8
_lui v0,0xa029
lw v1,0x60(a0)
ori v0,v0,0xa697
beq v1,v0,0x00092ae8
_lui v0,0x4b77
addiu v0,v0,0x1290
beq v1,v0,0x00092abc
_lui v0,0xf03b
addiu v0,v0,0x7906
beq v1,v0,0x00092ac0
_lw a2,-0x7fc4(gp)
lw t9,-0x7d44(gp)
addiu t9,t9,0x26f8
bal 0x000926f8
_nop
beq v0,zero,0x00092adc
_lw gp,0x10(sp)
lw a2,-0x7fc4(gp)
li a0,0x15
addiu a2,a2,-0x5c80
lw a1,-0x7fc4(gp)
lw t9,-0x7d40(gp)
bal 0x0008c2d4
_addiu a1,a1,-0x5ce4
or v0,zero,zero
lw ra,0x1c(sp)
jr ra
_addiu sp,sp,0x20
lw ra,0x1c(sp)
li v0,0x1
jr ra
_addiu sp,sp,0x20
lw a2,-0x7fc4(gp)
li a0,0x15
b 0x00092ac8
_addiu a2,a2,-0x14d0
(translation_unit "undefined4 FUN_00092a5c(int param_1)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  \n  if (param_1 == 0) {\n    puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x14d0;\n  }\n  else {\n    iVar1 = *(int *)(param_1 + 0x60);\n    if (iVar1 == -0x5fd65969) {\n      return 1;\n    }\n    if (((iVar1 != 0x4b771290) && (iVar1 != -0xfc486fa)) && (iVar1 = FUN_000926f8(), iVar1 == 0)) {\n      return 0;\n    }\n    puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5c80;\n  }\n  sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5ce4,puVar2);\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00092a5c(int param_1)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  \n  if (param_1 == 0) {\n    puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x14d0;\n  }\n  else {\n    iVar1 = *(int *)(param_1 + 0x60);\n    if (iVar1 == -0x5fd65969) {\n      return 1;\n    }\n    if (((iVar1 != 0x4b771290) && (iVar1 != -0xfc486fa)) && (iVar1 = FUN_000926f8(), iVar1 == 0)) {\n      return 0;\n    }\n    puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5c80;\n  }\n  sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5ce4,puVar2);\n  return 0;\n}" type_identifier (function_declarator "FUN_00092a5c(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  \n  if (param_1 == 0) {\n    puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x14d0;\n  }\n  else {\n    iVar1 = *(int *)(param_1 + 0x60);\n    if (iVar1 == -0x5fd65969) {\n      return 1;\n    }\n    if (((iVar1 != 0x4b771290) && (iVar1 != -0xfc486fa)) && (iVar1 = FUN_000926f8(), iVar1 == 0)) {\n      return 0;\n    }\n    puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5c80;\n  }\n  sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5ce4,puVar2);\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (param_1 == 0) {\n    puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x14d0;\n  }\n  else {\n    iVar1 = *(int *)(param_1 + 0x60);\n    if (iVar1 == -0x5fd65969) {\n      return 1;\n    }\n    if (((iVar1 != 0x4b771290) && (iVar1 != -0xfc486fa)) && (iVar1 = FUN_000926f8(), iVar1 == 0)) {\n      return 0;\n    }\n    puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5c80;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x14d0;\n  }" { (expression_statement "puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x14d0;" (assignment_expression "puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x14d0" identifier = (binary_expression "PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x14d0" identifier + number_literal)) ;) }) (else_clause "else {\n    iVar1 = *(int *)(param_1 + 0x60);\n    if (iVar1 == -0x5fd65969) {\n      return 1;\n    }\n    if (((iVar1 != 0x4b771290) && (iVar1 != -0xfc486fa)) && (iVar1 = FUN_000926f8(), iVar1 == 0)) {\n      return 0;\n    }\n    puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5c80;\n  }" else (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x60);\n    if (iVar1 == -0x5fd65969) {\n      return 1;\n    }\n    if (((iVar1 != 0x4b771290) && (iVar1 != -0xfc486fa)) && (iVar1 = FUN_000926f8(), iVar1 == 0)) {\n      return 0;\n    }\n    puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5c80;\n  }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x60);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x60)" identifier = (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 == -0x5fd65969) {\n      return 1;\n    }" if (parenthesized_expression "(iVar1 == -0x5fd65969)" ( (binary_expression "iVar1 == -0x5fd65969" identifier == number_literal) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (((iVar1 != 0x4b771290) && (iVar1 != -0xfc486fa)) && (iVar1 = FUN_000926f8(), iVar1 == 0)) {\n      return 0;\n    }" if (parenthesized_expression "(((iVar1 != 0x4b771290) && (iVar1 != -0xfc486fa)) && (iVar1 = FUN_000926f8(), iVar1 == 0))" ( (binary_expression "((iVar1 != 0x4b771290) && (iVar1 != -0xfc486fa)) && (iVar1 = FUN_000926f8(), iVar1 == 0)" (parenthesized_expression "((iVar1 != 0x4b771290) && (iVar1 != -0xfc486fa))" ( (binary_expression "(iVar1 != 0x4b771290) && (iVar1 != -0xfc486fa)" (parenthesized_expression "(iVar1 != 0x4b771290)" ( (binary_expression "iVar1 != 0x4b771290" identifier != number_literal) )) && (parenthesized_expression "(iVar1 != -0xfc486fa)" ( (binary_expression "iVar1 != -0xfc486fa" identifier != number_literal) ))) )) && (parenthesized_expression "(iVar1 = FUN_000926f8(), iVar1 == 0)" ( (comma_expression "iVar1 = FUN_000926f8(), iVar1 == 0" (assignment_expression "iVar1 = FUN_000926f8()" identifier = (call_expression "FUN_000926f8()" identifier (argument_list "()" ( )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5c80;" (assignment_expression "puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5c80" identifier = (binary_expression "PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5c80" identifier + number_literal)) ;) }))) (expression_statement "sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5ce4,puVar2);" (call_expression "sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5ce4,puVar2)" identifier (argument_list "(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5ce4,puVar2)" ( number_literal , (binary_expression "PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5ce4" identifier + number_literal) , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int sqlite3SafetyCheckOk(sqlite3 *db)\n\n{\n  int iVar1;\n  u32 uVar2;\n  undefined *puVar3;\n  \n  if (db == (sqlite3 *)0x0) {\n    puVar3 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x14d0;\n  }\n  else {\n    uVar2 = db->magic;\n    if (uVar2 == 0xa029a697) {\n      return 1;\n    }\n    if (((uVar2 != 0x4b771290) && (uVar2 != 0xf03b7906)) &&\n       (iVar1 = sqlite3SafetyCheckSickOrOk(db), iVar1 == 0)) {\n      return 0;\n    }\n    puVar3 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5c80;\n  }\n  sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5ce4,puVar3);\n  return 0;\n}\n\n" (function_definition "int sqlite3SafetyCheckOk(sqlite3 *db)\n\n{\n  int iVar1;\n  u32 uVar2;\n  undefined *puVar3;\n  \n  if (db == (sqlite3 *)0x0) {\n    puVar3 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x14d0;\n  }\n  else {\n    uVar2 = db->magic;\n    if (uVar2 == 0xa029a697) {\n      return 1;\n    }\n    if (((uVar2 != 0x4b771290) && (uVar2 != 0xf03b7906)) &&\n       (iVar1 = sqlite3SafetyCheckSickOrOk(db), iVar1 == 0)) {\n      return 0;\n    }\n    puVar3 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5c80;\n  }\n  sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5ce4,puVar3);\n  return 0;\n}" primitive_type (function_declarator "sqlite3SafetyCheckOk(sqlite3 *db)" identifier (parameter_list "(sqlite3 *db)" ( (parameter_declaration "sqlite3 *db" type_identifier (pointer_declarator "*db" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  u32 uVar2;\n  undefined *puVar3;\n  \n  if (db == (sqlite3 *)0x0) {\n    puVar3 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x14d0;\n  }\n  else {\n    uVar2 = db->magic;\n    if (uVar2 == 0xa029a697) {\n      return 1;\n    }\n    if (((uVar2 != 0x4b771290) && (uVar2 != 0xf03b7906)) &&\n       (iVar1 = sqlite3SafetyCheckSickOrOk(db), iVar1 == 0)) {\n      return 0;\n    }\n    puVar3 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5c80;\n  }\n  sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5ce4,puVar3);\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "u32 uVar2;" type_identifier identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (if_statement "if (db == (sqlite3 *)0x0) {\n    puVar3 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x14d0;\n  }\n  else {\n    uVar2 = db->magic;\n    if (uVar2 == 0xa029a697) {\n      return 1;\n    }\n    if (((uVar2 != 0x4b771290) && (uVar2 != 0xf03b7906)) &&\n       (iVar1 = sqlite3SafetyCheckSickOrOk(db), iVar1 == 0)) {\n      return 0;\n    }\n    puVar3 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5c80;\n  }" if (parenthesized_expression "(db == (sqlite3 *)0x0)" ( (binary_expression "db == (sqlite3 *)0x0" identifier == (cast_expression "(sqlite3 *)0x0" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar3 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x14d0;\n  }" { (expression_statement "puVar3 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x14d0;" (assignment_expression "puVar3 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x14d0" identifier = (binary_expression "PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x14d0" identifier + number_literal)) ;) }) (else_clause "else {\n    uVar2 = db->magic;\n    if (uVar2 == 0xa029a697) {\n      return 1;\n    }\n    if (((uVar2 != 0x4b771290) && (uVar2 != 0xf03b7906)) &&\n       (iVar1 = sqlite3SafetyCheckSickOrOk(db), iVar1 == 0)) {\n      return 0;\n    }\n    puVar3 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5c80;\n  }" else (compound_statement "{\n    uVar2 = db->magic;\n    if (uVar2 == 0xa029a697) {\n      return 1;\n    }\n    if (((uVar2 != 0x4b771290) && (uVar2 != 0xf03b7906)) &&\n       (iVar1 = sqlite3SafetyCheckSickOrOk(db), iVar1 == 0)) {\n      return 0;\n    }\n    puVar3 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5c80;\n  }" { (expression_statement "uVar2 = db->magic;" (assignment_expression "uVar2 = db->magic" identifier = (field_expression "db->magic" identifier -> field_identifier)) ;) (if_statement "if (uVar2 == 0xa029a697) {\n      return 1;\n    }" if (parenthesized_expression "(uVar2 == 0xa029a697)" ( (binary_expression "uVar2 == 0xa029a697" identifier == number_literal) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (((uVar2 != 0x4b771290) && (uVar2 != 0xf03b7906)) &&\n       (iVar1 = sqlite3SafetyCheckSickOrOk(db), iVar1 == 0)) {\n      return 0;\n    }" if (parenthesized_expression "(((uVar2 != 0x4b771290) && (uVar2 != 0xf03b7906)) &&\n       (iVar1 = sqlite3SafetyCheckSickOrOk(db), iVar1 == 0))" ( (binary_expression "((uVar2 != 0x4b771290) && (uVar2 != 0xf03b7906)) &&\n       (iVar1 = sqlite3SafetyCheckSickOrOk(db), iVar1 == 0)" (parenthesized_expression "((uVar2 != 0x4b771290) && (uVar2 != 0xf03b7906))" ( (binary_expression "(uVar2 != 0x4b771290) && (uVar2 != 0xf03b7906)" (parenthesized_expression "(uVar2 != 0x4b771290)" ( (binary_expression "uVar2 != 0x4b771290" identifier != number_literal) )) && (parenthesized_expression "(uVar2 != 0xf03b7906)" ( (binary_expression "uVar2 != 0xf03b7906" identifier != number_literal) ))) )) && (parenthesized_expression "(iVar1 = sqlite3SafetyCheckSickOrOk(db), iVar1 == 0)" ( (comma_expression "iVar1 = sqlite3SafetyCheckSickOrOk(db), iVar1 == 0" (assignment_expression "iVar1 = sqlite3SafetyCheckSickOrOk(db)" identifier = (call_expression "sqlite3SafetyCheckSickOrOk(db)" identifier (argument_list "(db)" ( identifier )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "puVar3 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5c80;" (assignment_expression "puVar3 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5c80" identifier = (binary_expression "PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5c80" identifier + number_literal)) ;) }))) (expression_statement "sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5ce4,puVar3);" (call_expression "sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5ce4,puVar3)" identifier (argument_list "(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5ce4,puVar3)" ( number_literal , (binary_expression "PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5ce4" identifier + number_literal) , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_00092a5c(int param_1)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  \n  if (param_1 == 0) {\n    puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x14d0;\n  }\n  else {\n    iVar1 = *(int *)(param_1 + 0x60);\n    if (iVar1 == -0x5fd65969) {\n      return 1;\n    }\n    if (((iVar1 != 0x4b771290) && (iVar1 != -0xfc486fa)) && (iVar1 = FUN_000926f8(), iVar1 == 0)) {\n      return 0;\n    }\n    puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5c80;\n  }\n  sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5ce4,puVar2);\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00092a5c(int param_1)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  \n  if (param_1 == 0) {\n    puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x14d0;\n  }\n  else {\n    iVar1 = *(int *)(param_1 + 0x60);\n    if (iVar1 == -0x5fd65969) {\n      return 1;\n    }\n    if (((iVar1 != 0x4b771290) && (iVar1 != -0xfc486fa)) && (iVar1 = FUN_000926f8(), iVar1 == 0)) {\n      return 0;\n    }\n    puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5c80;\n  }\n  sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5ce4,puVar2);\n  return 0;\n}" type_identifier (function_declarator "FUN_00092a5c(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  \n  if (param_1 == 0) {\n    puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x14d0;\n  }\n  else {\n    iVar1 = *(int *)(param_1 + 0x60);\n    if (iVar1 == -0x5fd65969) {\n      return 1;\n    }\n    if (((iVar1 != 0x4b771290) && (iVar1 != -0xfc486fa)) && (iVar1 = FUN_000926f8(), iVar1 == 0)) {\n      return 0;\n    }\n    puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5c80;\n  }\n  sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5ce4,puVar2);\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (param_1 == 0) {\n    puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x14d0;\n  }\n  else {\n    iVar1 = *(int *)(param_1 + 0x60);\n    if (iVar1 == -0x5fd65969) {\n      return 1;\n    }\n    if (((iVar1 != 0x4b771290) && (iVar1 != -0xfc486fa)) && (iVar1 = FUN_000926f8(), iVar1 == 0)) {\n      return 0;\n    }\n    puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5c80;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x14d0;\n  }" { (expression_statement "puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x14d0;" (assignment_expression "puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x14d0" identifier = (binary_expression "PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x14d0" identifier + number_literal)) ;) }) (else_clause "else {\n    iVar1 = *(int *)(param_1 + 0x60);\n    if (iVar1 == -0x5fd65969) {\n      return 1;\n    }\n    if (((iVar1 != 0x4b771290) && (iVar1 != -0xfc486fa)) && (iVar1 = FUN_000926f8(), iVar1 == 0)) {\n      return 0;\n    }\n    puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5c80;\n  }" else (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x60);\n    if (iVar1 == -0x5fd65969) {\n      return 1;\n    }\n    if (((iVar1 != 0x4b771290) && (iVar1 != -0xfc486fa)) && (iVar1 = FUN_000926f8(), iVar1 == 0)) {\n      return 0;\n    }\n    puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5c80;\n  }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x60);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x60)" identifier = (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 == -0x5fd65969) {\n      return 1;\n    }" if (parenthesized_expression "(iVar1 == -0x5fd65969)" ( (binary_expression "iVar1 == -0x5fd65969" identifier == number_literal) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (((iVar1 != 0x4b771290) && (iVar1 != -0xfc486fa)) && (iVar1 = FUN_000926f8(), iVar1 == 0)) {\n      return 0;\n    }" if (parenthesized_expression "(((iVar1 != 0x4b771290) && (iVar1 != -0xfc486fa)) && (iVar1 = FUN_000926f8(), iVar1 == 0))" ( (binary_expression "((iVar1 != 0x4b771290) && (iVar1 != -0xfc486fa)) && (iVar1 = FUN_000926f8(), iVar1 == 0)" (parenthesized_expression "((iVar1 != 0x4b771290) && (iVar1 != -0xfc486fa))" ( (binary_expression "(iVar1 != 0x4b771290) && (iVar1 != -0xfc486fa)" (parenthesized_expression "(iVar1 != 0x4b771290)" ( (binary_expression "iVar1 != 0x4b771290" identifier != number_literal) )) && (parenthesized_expression "(iVar1 != -0xfc486fa)" ( (binary_expression "iVar1 != -0xfc486fa" identifier != number_literal) ))) )) && (parenthesized_expression "(iVar1 = FUN_000926f8(), iVar1 == 0)" ( (comma_expression "iVar1 = FUN_000926f8(), iVar1 == 0" (assignment_expression "iVar1 = FUN_000926f8()" identifier = (call_expression "FUN_000926f8()" identifier (argument_list "()" ( )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5c80;" (assignment_expression "puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5c80" identifier = (binary_expression "PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5c80" identifier + number_literal)) ;) }))) (expression_statement "sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5ce4,puVar2);" (call_expression "sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5ce4,puVar2)" identifier (argument_list "(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5ce4,puVar2)" ( number_literal , (binary_expression "PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5ce4" identifier + number_literal) , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (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 { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) (expression_statement (call_expression IDENT (argument_list ( LIT , (binary_expression IDENT + LIT) , IDENT ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00092a5c(int param_1)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  \n  if (param_1 == 0) {\n    puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x14d0;\n  }\n  else {\n    iVar1 = *(int *)(param_1 + 0x60);\n    if (iVar1 == -0x5fd65969) {\n      return 1;\n    }\n    if (((iVar1 != 0x4b771290) && (iVar1 != -0xfc486fa)) && (iVar1 = FUN_000926f8(), iVar1 == 0)) {\n      return 0;\n    }\n    puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5c80;\n  }\n  sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5ce4,puVar2);\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_00092a5c(int param_1)" (identifier "FUN_00092a5c") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  \n  if (param_1 == 0) {\n    puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x14d0;\n  }\n  else {\n    iVar1 = *(int *)(param_1 + 0x60);\n    if (iVar1 == -0x5fd65969) {\n      return 1;\n    }\n    if (((iVar1 != 0x4b771290) && (iVar1 != -0xfc486fa)) && (iVar1 = FUN_000926f8(), iVar1 == 0)) {\n      return 0;\n    }\n    puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5c80;\n  }\n  sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5ce4,puVar2);\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (if_statement "if (param_1 == 0) {\n    puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x14d0;\n  }\n  else {\n    iVar1 = *(int *)(param_1 + 0x60);\n    if (iVar1 == -0x5fd65969) {\n      return 1;\n    }\n    if (((iVar1 != 0x4b771290) && (iVar1 != -0xfc486fa)) && (iVar1 = FUN_000926f8(), iVar1 == 0)) {\n      return 0;\n    }\n    puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5c80;\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x14d0;\n  }" ({ "{") (expression_statement "puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x14d0;" (assignment_expression "puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x14d0" (identifier "puVar2") (= "=") (binary_expression "PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x14d0" (identifier "PTR_s_o_page_from_root____pageno_INTEG_0019095c") (+ "+") (number_literal "-0x14d0"))) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = *(int *)(param_1 + 0x60);\n    if (iVar1 == -0x5fd65969) {\n      return 1;\n    }\n    if (((iVar1 != 0x4b771290) && (iVar1 != -0xfc486fa)) && (iVar1 = FUN_000926f8(), iVar1 == 0)) {\n      return 0;\n    }\n    puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5c80;\n  }" (else "else") (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x60);\n    if (iVar1 == -0x5fd65969) {\n      return 1;\n    }\n    if (((iVar1 != 0x4b771290) && (iVar1 != -0xfc486fa)) && (iVar1 = FUN_000926f8(), iVar1 == 0)) {\n      return 0;\n    }\n    puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5c80;\n  }" ({ "{") (expression_statement "iVar1 = *(int *)(param_1 + 0x60);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x60)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x60)" (* "*") (cast_expression "(int *)(param_1 + 0x60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")"))))) (; ";")) (if_statement "if (iVar1 == -0x5fd65969) {\n      return 1;\n    }" (if "if") (parenthesized_expression "(iVar1 == -0x5fd65969)" (( "(") (binary_expression "iVar1 == -0x5fd65969" (identifier "iVar1") (== "==") (number_literal "-0x5fd65969")) () ")")) (compound_statement "{\n      return 1;\n    }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (if_statement "if (((iVar1 != 0x4b771290) && (iVar1 != -0xfc486fa)) && (iVar1 = FUN_000926f8(), iVar1 == 0)) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(((iVar1 != 0x4b771290) && (iVar1 != -0xfc486fa)) && (iVar1 = FUN_000926f8(), iVar1 == 0))" (( "(") (binary_expression "((iVar1 != 0x4b771290) && (iVar1 != -0xfc486fa)) && (iVar1 = FUN_000926f8(), iVar1 == 0)" (parenthesized_expression "((iVar1 != 0x4b771290) && (iVar1 != -0xfc486fa))" (( "(") (binary_expression "(iVar1 != 0x4b771290) && (iVar1 != -0xfc486fa)" (parenthesized_expression "(iVar1 != 0x4b771290)" (( "(") (binary_expression "iVar1 != 0x4b771290" (identifier "iVar1") (!= "!=") (number_literal "0x4b771290")) () ")")) (&& "&&") (parenthesized_expression "(iVar1 != -0xfc486fa)" (( "(") (binary_expression "iVar1 != -0xfc486fa" (identifier "iVar1") (!= "!=") (number_literal "-0xfc486fa")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = FUN_000926f8(), iVar1 == 0)" (( "(") (comma_expression "iVar1 = FUN_000926f8(), iVar1 == 0" (assignment_expression "iVar1 = FUN_000926f8()" (identifier "iVar1") (= "=") (call_expression "FUN_000926f8()" (identifier "FUN_000926f8") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5c80;" (assignment_expression "puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5c80" (identifier "puVar2") (= "=") (binary_expression "PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5c80" (identifier "PTR_s_o_page_from_root____pageno_INTEG_0019095c") (+ "+") (number_literal "-0x5c80"))) (; ";")) (} "}")))) (expression_statement "sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5ce4,puVar2);" (call_expression "sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5ce4,puVar2)" (identifier "sqlite3_log") (argument_list "(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5ce4,puVar2)" (( "(") (number_literal "0x15") (, ",") (binary_expression "PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5ce4" (identifier "PTR_s_o_page_from_root____pageno_INTEG_0019095c") (+ "+") (number_literal "-0x5ce4")) (, ",") (identifier "puVar2") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int function_1(type_1 *var_1)

{
  int var_5;
  type_2 var_3;
  type_3 *puVar3;
  
  if (var_1 == (type_1 *)0x0) {
    puVar3 = var_2 + -0x14d0;
  }
  else {
    var_3 = var_1->magic;
    if (var_3 == 0xa029a697) {
      return 1;
    }
    if (((var_3 != 0x4b771290) && (var_3 != 0xf03b7906)) &&
       (var_5 = var_4(var_1), var_5 == 0)) {
      return 0;
    }
    puVar3 = var_2 + -0x5c80;
  }
  var_6(0x15,var_2 + -0x5ce4,puVar3);
  return 0;
}


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

undefined4 MASKED(int param_1)

{
  int iVar1;
  undefined *puVar2;
  
  if (param_1 == 0) {
    puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x14d0;
  }
  else {
    iVar1 = *(int *)(param_1 + 0x60);
    if (iVar1 == -0x5fd65969) {
      return 1;
    }
    if (((iVar1 != 0x4b771290) && (iVar1 != -0xfc486fa)) && (iVar1 = FUN_000926f8(), iVar1 == 0)) {
      return 0;
    }
    puVar2 = PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5c80;
  }
  sqlite3_log(0x15,PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x5ce4,puVar2);
  return 0;
}

