
int sqlite3_sleep(int ms)

{
  sqlite3_vfs *psVar1;
  int iVar2;
  
  psVar1 = sqlite3_vfs_find((char *)0x0);
  if (psVar1 != (sqlite3_vfs *)0x0) {
    iVar2 = (*psVar1->xSleep)(psVar1,ms * 1000);
    return iVar2 / 1000;
  }
  return 0;
}



int FUN_0004f708(int param_1)

{
  int iVar1;
  
  iVar1 = sqlite3_vfs_find(0);
  if (iVar1 != 0) {
    iVar1 = (**(code **)(iVar1 + 0x3c))(iVar1,param_1 * 1000);
    return iVar1 / 1000;
  }
  return 0;
}


lui gp,0x11
addiu gp,gp,0x3ea8
addu gp,gp,t9
addiu sp,sp,-0x20
lw t9,-0x7e58(gp)
sw s0,0x18(sp)
or s0,a0,zero
sw gp,0x10(sp)
sw ra,0x1c(sp)
bal 0x0004f60c
_or a0,zero,zero
beq v0,zero,0x0004f778
_li a1,0x3e8
lw t9,0x3c(v0)
or a0,v0,zero
jalr t9
_mul a1,s0,a1
lui v1,0x1062
sra a0,v0,0x1f
lw ra,0x1c(sp)
addiu v1,v1,0x4dd3
lw s0,0x18(sp)
addiu sp,sp,0x20
mult v0,v1
mfhi v0
sra v0,v0,0x6
jr ra
_subu v0,v0,a0
lw ra,0x1c(sp)
or v0,zero,zero
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "int FUN_0004f708(int param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = sqlite3_vfs_find(0);\n  if (iVar1 != 0) {\n    iVar1 = (**(code **)(iVar1 + 0x3c))(iVar1,param_1 * 1000);\n    return iVar1 / 1000;\n  }\n  return 0;\n}\n\n" (function_definition "int FUN_0004f708(int param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = sqlite3_vfs_find(0);\n  if (iVar1 != 0) {\n    iVar1 = (**(code **)(iVar1 + 0x3c))(iVar1,param_1 * 1000);\n    return iVar1 / 1000;\n  }\n  return 0;\n}" primitive_type (function_declarator "FUN_0004f708(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = sqlite3_vfs_find(0);\n  if (iVar1 != 0) {\n    iVar1 = (**(code **)(iVar1 + 0x3c))(iVar1,param_1 * 1000);\n    return iVar1 / 1000;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = sqlite3_vfs_find(0);" (assignment_expression "iVar1 = sqlite3_vfs_find(0)" identifier = (call_expression "sqlite3_vfs_find(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n    iVar1 = (**(code **)(iVar1 + 0x3c))(iVar1,param_1 * 1000);\n    return iVar1 / 1000;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = (**(code **)(iVar1 + 0x3c))(iVar1,param_1 * 1000);\n    return iVar1 / 1000;\n  }" { (expression_statement "iVar1 = (**(code **)(iVar1 + 0x3c))(iVar1,param_1 * 1000);" (assignment_expression "iVar1 = (**(code **)(iVar1 + 0x3c))(iVar1,param_1 * 1000)" identifier = (call_expression "(**(code **)(iVar1 + 0x3c))(iVar1,param_1 * 1000)" (parenthesized_expression "(**(code **)(iVar1 + 0x3c))" ( (pointer_expression "**(code **)(iVar1 + 0x3c)" * (pointer_expression "*(code **)(iVar1 + 0x3c)" * (cast_expression "(code **)(iVar1 + 0x3c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x3c)" ( (binary_expression "iVar1 + 0x3c" identifier + number_literal) ))))) )) (argument_list "(iVar1,param_1 * 1000)" ( identifier , (binary_expression "param_1 * 1000" identifier * number_literal) )))) ;) (return_statement "return iVar1 / 1000;" return (binary_expression "iVar1 / 1000" identifier / number_literal) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int sqlite3_sleep(int ms)\n\n{\n  sqlite3_vfs *psVar1;\n  int iVar2;\n  \n  psVar1 = sqlite3_vfs_find((char *)0x0);\n  if (psVar1 != (sqlite3_vfs *)0x0) {\n    iVar2 = (*psVar1->xSleep)(psVar1,ms * 1000);\n    return iVar2 / 1000;\n  }\n  return 0;\n}\n\n" (function_definition "int sqlite3_sleep(int ms)\n\n{\n  sqlite3_vfs *psVar1;\n  int iVar2;\n  \n  psVar1 = sqlite3_vfs_find((char *)0x0);\n  if (psVar1 != (sqlite3_vfs *)0x0) {\n    iVar2 = (*psVar1->xSleep)(psVar1,ms * 1000);\n    return iVar2 / 1000;\n  }\n  return 0;\n}" primitive_type (function_declarator "sqlite3_sleep(int ms)" identifier (parameter_list "(int ms)" ( (parameter_declaration "int ms" primitive_type identifier) ))) (compound_statement "{\n  sqlite3_vfs *psVar1;\n  int iVar2;\n  \n  psVar1 = sqlite3_vfs_find((char *)0x0);\n  if (psVar1 != (sqlite3_vfs *)0x0) {\n    iVar2 = (*psVar1->xSleep)(psVar1,ms * 1000);\n    return iVar2 / 1000;\n  }\n  return 0;\n}" { (declaration "sqlite3_vfs *psVar1;" type_identifier (pointer_declarator "*psVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "psVar1 = sqlite3_vfs_find((char *)0x0);" (assignment_expression "psVar1 = sqlite3_vfs_find((char *)0x0)" identifier = (call_expression "sqlite3_vfs_find((char *)0x0)" identifier (argument_list "((char *)0x0)" ( (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (if_statement "if (psVar1 != (sqlite3_vfs *)0x0) {\n    iVar2 = (*psVar1->xSleep)(psVar1,ms * 1000);\n    return iVar2 / 1000;\n  }" if (parenthesized_expression "(psVar1 != (sqlite3_vfs *)0x0)" ( (binary_expression "psVar1 != (sqlite3_vfs *)0x0" identifier != (cast_expression "(sqlite3_vfs *)0x0" ( (type_descriptor "sqlite3_vfs *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar2 = (*psVar1->xSleep)(psVar1,ms * 1000);\n    return iVar2 / 1000;\n  }" { (expression_statement "iVar2 = (*psVar1->xSleep)(psVar1,ms * 1000);" (assignment_expression "iVar2 = (*psVar1->xSleep)(psVar1,ms * 1000)" identifier = (call_expression "(*psVar1->xSleep)(psVar1,ms * 1000)" (parenthesized_expression "(*psVar1->xSleep)" ( (pointer_expression "*psVar1->xSleep" * (field_expression "psVar1->xSleep" identifier -> field_identifier)) )) (argument_list "(psVar1,ms * 1000)" ( identifier , (binary_expression "ms * 1000" identifier * number_literal) )))) ;) (return_statement "return iVar2 / 1000;" return (binary_expression "iVar2 / 1000" identifier / number_literal) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int FUN_0004f708(int param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = sqlite3_vfs_find(0);\n  if (iVar1 != 0) {\n    iVar1 = (**(code **)(iVar1 + 0x3c))(iVar1,param_1 * 1000);\n    return iVar1 / 1000;\n  }\n  return 0;\n}\n\n" (function_definition "int FUN_0004f708(int param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = sqlite3_vfs_find(0);\n  if (iVar1 != 0) {\n    iVar1 = (**(code **)(iVar1 + 0x3c))(iVar1,param_1 * 1000);\n    return iVar1 / 1000;\n  }\n  return 0;\n}" primitive_type (function_declarator "FUN_0004f708(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = sqlite3_vfs_find(0);\n  if (iVar1 != 0) {\n    iVar1 = (**(code **)(iVar1 + 0x3c))(iVar1,param_1 * 1000);\n    return iVar1 / 1000;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = sqlite3_vfs_find(0);" (assignment_expression "iVar1 = sqlite3_vfs_find(0)" identifier = (call_expression "sqlite3_vfs_find(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n    iVar1 = (**(code **)(iVar1 + 0x3c))(iVar1,param_1 * 1000);\n    return iVar1 / 1000;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = (**(code **)(iVar1 + 0x3c))(iVar1,param_1 * 1000);\n    return iVar1 / 1000;\n  }" { (expression_statement "iVar1 = (**(code **)(iVar1 + 0x3c))(iVar1,param_1 * 1000);" (assignment_expression "iVar1 = (**(code **)(iVar1 + 0x3c))(iVar1,param_1 * 1000)" identifier = (call_expression "(**(code **)(iVar1 + 0x3c))(iVar1,param_1 * 1000)" (parenthesized_expression "(**(code **)(iVar1 + 0x3c))" ( (pointer_expression "**(code **)(iVar1 + 0x3c)" * (pointer_expression "*(code **)(iVar1 + 0x3c)" * (cast_expression "(code **)(iVar1 + 0x3c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x3c)" ( (binary_expression "iVar1 + 0x3c" identifier + number_literal) ))))) )) (argument_list "(iVar1,param_1 * 1000)" ( identifier , (binary_expression "param_1 * 1000" identifier * number_literal) )))) ;) (return_statement "return iVar1 / 1000;" return (binary_expression "iVar1 / 1000" identifier / number_literal) ;) })) (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 ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (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 ( IDENT , (binary_expression IDENT * LIT) )))) ;) (return_statement return (binary_expression IDENT / LIT) ;) })) (return_statement return LIT ;) })))
(function_definition "int FUN_0004f708(int param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = sqlite3_vfs_find(0);\n  if (iVar1 != 0) {\n    iVar1 = (**(code **)(iVar1 + 0x3c))(iVar1,param_1 * 1000);\n    return iVar1 / 1000;\n  }\n  return 0;\n}" (primitive_type "int") (function_declarator "FUN_0004f708(int param_1)" (identifier "FUN_0004f708") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = sqlite3_vfs_find(0);\n  if (iVar1 != 0) {\n    iVar1 = (**(code **)(iVar1 + 0x3c))(iVar1,param_1 * 1000);\n    return iVar1 / 1000;\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = sqlite3_vfs_find(0);" (assignment_expression "iVar1 = sqlite3_vfs_find(0)" (identifier "iVar1") (= "=") (call_expression "sqlite3_vfs_find(0)" (identifier "sqlite3_vfs_find") (argument_list "(0)" (( "(") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    iVar1 = (**(code **)(iVar1 + 0x3c))(iVar1,param_1 * 1000);\n    return iVar1 / 1000;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = (**(code **)(iVar1 + 0x3c))(iVar1,param_1 * 1000);\n    return iVar1 / 1000;\n  }" ({ "{") (expression_statement "iVar1 = (**(code **)(iVar1 + 0x3c))(iVar1,param_1 * 1000);" (assignment_expression "iVar1 = (**(code **)(iVar1 + 0x3c))(iVar1,param_1 * 1000)" (identifier "iVar1") (= "=") (call_expression "(**(code **)(iVar1 + 0x3c))(iVar1,param_1 * 1000)" (parenthesized_expression "(**(code **)(iVar1 + 0x3c))" (( "(") (pointer_expression "**(code **)(iVar1 + 0x3c)" (* "*") (pointer_expression "*(code **)(iVar1 + 0x3c)" (* "*") (cast_expression "(code **)(iVar1 + 0x3c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 0x3c)" (( "(") (binary_expression "iVar1 + 0x3c" (identifier "iVar1") (+ "+") (number_literal "0x3c")) () ")"))))) () ")")) (argument_list "(iVar1,param_1 * 1000)" (( "(") (identifier "iVar1") (, ",") (binary_expression "param_1 * 1000" (identifier "param_1") (* "*") (number_literal "1000")) () ")")))) (; ";")) (return_statement "return iVar1 / 1000;" (return "return") (binary_expression "iVar1 / 1000" (identifier "iVar1") (/ "/") (number_literal "1000")) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int function_1(int var_3)

{
  type_1 *var_2;
  int var_4;
  
  var_2 = var_1((char *)0x0);
  if (var_2 != (type_1 *)0x0) {
    var_4 = (*var_2->xSleep)(var_2,var_3 * 1000);
    return var_4 / 1000;
  }
  return 0;
}


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

int MASKED(int param_1)

{
  int iVar1;
  
  iVar1 = sqlite3_vfs_find(0);
  if (iVar1 != 0) {
    iVar1 = (**(code **)(iVar1 + 0x3c))(iVar1,param_1 * 1000);
    return iVar1 / 1000;
  }
  return 0;
}

