
int pager_wait_on_lock(Pager *pPager,int locktype)

{
  int iVar1;
  
  do {
    iVar1 = pagerLockDb(pPager,locktype);
    if (iVar1 != 5) {
      return iVar1;
    }
    iVar1 = (*pPager->xBusyHandler)(pPager->pBusyHandlerArg);
  } while (iVar1 != 0);
  return 5;
}



int FUN_00044744(int param_1,undefined4 param_2)

{
  int iVar1;
  
  do {
    iVar1 = FUN_00044338(param_1,param_2);
    if (iVar1 != 5) {
      return iVar1;
    }
    iVar1 = (**(code **)(param_1 + 0xb0))(*(undefined4 *)(param_1 + 0xb4));
  } while (iVar1 != 0);
  return 5;
}


lui gp,0x15
addiu gp,gp,0x31dc
addu gp,gp,t9
addiu sp,sp,-0x30
sw ra,0x2c(sp)
sw s4,0x28(sp)
sw s3,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
or s0,a0,zero
or s4,a1,zero
lw s2,-0x7dc8(gp)
addiu s2,s2,0x4338
li s3,0x5
or a1,s4,zero
or a0,s0,zero
or t9,s2,zero
bal 0x00044338
_nop
lw gp,0x10(sp)
bne v0,s3,0x000447c0
_or s1,v0,zero
lw t9,0xb0(s0)
lw a0,0xb4(s0)
jalr t9
_nop
lw gp,0x10(sp)
bne v0,zero,0x00044788
_or a1,s4,zero
or v0,s1,zero
lw ra,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x30
(translation_unit "int FUN_00044744(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  do {\n    iVar1 = FUN_00044338(param_1,param_2);\n    if (iVar1 != 5) {\n      return iVar1;\n    }\n    iVar1 = (**(code **)(param_1 + 0xb0))(*(undefined4 *)(param_1 + 0xb4));\n  } while (iVar1 != 0);\n  return 5;\n}\n\n" (function_definition "int FUN_00044744(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  do {\n    iVar1 = FUN_00044338(param_1,param_2);\n    if (iVar1 != 5) {\n      return iVar1;\n    }\n    iVar1 = (**(code **)(param_1 + 0xb0))(*(undefined4 *)(param_1 + 0xb4));\n  } while (iVar1 != 0);\n  return 5;\n}" primitive_type (function_declarator "FUN_00044744(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  do {\n    iVar1 = FUN_00044338(param_1,param_2);\n    if (iVar1 != 5) {\n      return iVar1;\n    }\n    iVar1 = (**(code **)(param_1 + 0xb0))(*(undefined4 *)(param_1 + 0xb4));\n  } while (iVar1 != 0);\n  return 5;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (do_statement "do {\n    iVar1 = FUN_00044338(param_1,param_2);\n    if (iVar1 != 5) {\n      return iVar1;\n    }\n    iVar1 = (**(code **)(param_1 + 0xb0))(*(undefined4 *)(param_1 + 0xb4));\n  } while (iVar1 != 0);" do (compound_statement "{\n    iVar1 = FUN_00044338(param_1,param_2);\n    if (iVar1 != 5) {\n      return iVar1;\n    }\n    iVar1 = (**(code **)(param_1 + 0xb0))(*(undefined4 *)(param_1 + 0xb4));\n  }" { (expression_statement "iVar1 = FUN_00044338(param_1,param_2);" (assignment_expression "iVar1 = FUN_00044338(param_1,param_2)" identifier = (call_expression "FUN_00044338(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 != 5) {\n      return iVar1;\n    }" if (parenthesized_expression "(iVar1 != 5)" ( (binary_expression "iVar1 != 5" identifier != number_literal) )) (compound_statement "{\n      return iVar1;\n    }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "iVar1 = (**(code **)(param_1 + 0xb0))(*(undefined4 *)(param_1 + 0xb4));" (assignment_expression "iVar1 = (**(code **)(param_1 + 0xb0))(*(undefined4 *)(param_1 + 0xb4))" identifier = (call_expression "(**(code **)(param_1 + 0xb0))(*(undefined4 *)(param_1 + 0xb4))" (parenthesized_expression "(**(code **)(param_1 + 0xb0))" ( (pointer_expression "**(code **)(param_1 + 0xb0)" * (pointer_expression "*(code **)(param_1 + 0xb0)" * (cast_expression "(code **)(param_1 + 0xb0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xb0)" ( (binary_expression "param_1 + 0xb0" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(param_1 + 0xb4))" ( (pointer_expression "*(undefined4 *)(param_1 + 0xb4)" * (cast_expression "(undefined4 *)(param_1 + 0xb4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb4)" ( (binary_expression "param_1 + 0xb4" identifier + number_literal) )))) )))) ;) }) while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) ;) (return_statement "return 5;" return number_literal ;) })))
(translation_unit "int pager_wait_on_lock(Pager *pPager,int locktype)\n\n{\n  int iVar1;\n  \n  do {\n    iVar1 = pagerLockDb(pPager,locktype);\n    if (iVar1 != 5) {\n      return iVar1;\n    }\n    iVar1 = (*pPager->xBusyHandler)(pPager->pBusyHandlerArg);\n  } while (iVar1 != 0);\n  return 5;\n}\n\n" (function_definition "int pager_wait_on_lock(Pager *pPager,int locktype)\n\n{\n  int iVar1;\n  \n  do {\n    iVar1 = pagerLockDb(pPager,locktype);\n    if (iVar1 != 5) {\n      return iVar1;\n    }\n    iVar1 = (*pPager->xBusyHandler)(pPager->pBusyHandlerArg);\n  } while (iVar1 != 0);\n  return 5;\n}" primitive_type (function_declarator "pager_wait_on_lock(Pager *pPager,int locktype)" identifier (parameter_list "(Pager *pPager,int locktype)" ( (parameter_declaration "Pager *pPager" type_identifier (pointer_declarator "*pPager" * identifier)) , (parameter_declaration "int locktype" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  do {\n    iVar1 = pagerLockDb(pPager,locktype);\n    if (iVar1 != 5) {\n      return iVar1;\n    }\n    iVar1 = (*pPager->xBusyHandler)(pPager->pBusyHandlerArg);\n  } while (iVar1 != 0);\n  return 5;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (do_statement "do {\n    iVar1 = pagerLockDb(pPager,locktype);\n    if (iVar1 != 5) {\n      return iVar1;\n    }\n    iVar1 = (*pPager->xBusyHandler)(pPager->pBusyHandlerArg);\n  } while (iVar1 != 0);" do (compound_statement "{\n    iVar1 = pagerLockDb(pPager,locktype);\n    if (iVar1 != 5) {\n      return iVar1;\n    }\n    iVar1 = (*pPager->xBusyHandler)(pPager->pBusyHandlerArg);\n  }" { (expression_statement "iVar1 = pagerLockDb(pPager,locktype);" (assignment_expression "iVar1 = pagerLockDb(pPager,locktype)" identifier = (call_expression "pagerLockDb(pPager,locktype)" identifier (argument_list "(pPager,locktype)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 != 5) {\n      return iVar1;\n    }" if (parenthesized_expression "(iVar1 != 5)" ( (binary_expression "iVar1 != 5" identifier != number_literal) )) (compound_statement "{\n      return iVar1;\n    }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "iVar1 = (*pPager->xBusyHandler)(pPager->pBusyHandlerArg);" (assignment_expression "iVar1 = (*pPager->xBusyHandler)(pPager->pBusyHandlerArg)" identifier = (call_expression "(*pPager->xBusyHandler)(pPager->pBusyHandlerArg)" (parenthesized_expression "(*pPager->xBusyHandler)" ( (pointer_expression "*pPager->xBusyHandler" * (field_expression "pPager->xBusyHandler" identifier -> field_identifier)) )) (argument_list "(pPager->pBusyHandlerArg)" ( (field_expression "pPager->pBusyHandlerArg" identifier -> field_identifier) )))) ;) }) while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) ;) (return_statement "return 5;" return number_literal ;) })))
(translation_unit "int FUN_00044744(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  do {\n    iVar1 = FUN_00044338(param_1,param_2);\n    if (iVar1 != 5) {\n      return iVar1;\n    }\n    iVar1 = (**(code **)(param_1 + 0xb0))(*(undefined4 *)(param_1 + 0xb4));\n  } while (iVar1 != 0);\n  return 5;\n}\n\n" (function_definition "int FUN_00044744(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  do {\n    iVar1 = FUN_00044338(param_1,param_2);\n    if (iVar1 != 5) {\n      return iVar1;\n    }\n    iVar1 = (**(code **)(param_1 + 0xb0))(*(undefined4 *)(param_1 + 0xb4));\n  } while (iVar1 != 0);\n  return 5;\n}" primitive_type (function_declarator "FUN_00044744(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  do {\n    iVar1 = FUN_00044338(param_1,param_2);\n    if (iVar1 != 5) {\n      return iVar1;\n    }\n    iVar1 = (**(code **)(param_1 + 0xb0))(*(undefined4 *)(param_1 + 0xb4));\n  } while (iVar1 != 0);\n  return 5;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (do_statement "do {\n    iVar1 = FUN_00044338(param_1,param_2);\n    if (iVar1 != 5) {\n      return iVar1;\n    }\n    iVar1 = (**(code **)(param_1 + 0xb0))(*(undefined4 *)(param_1 + 0xb4));\n  } while (iVar1 != 0);" do (compound_statement "{\n    iVar1 = FUN_00044338(param_1,param_2);\n    if (iVar1 != 5) {\n      return iVar1;\n    }\n    iVar1 = (**(code **)(param_1 + 0xb0))(*(undefined4 *)(param_1 + 0xb4));\n  }" { (expression_statement "iVar1 = FUN_00044338(param_1,param_2);" (assignment_expression "iVar1 = FUN_00044338(param_1,param_2)" identifier = (call_expression "FUN_00044338(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 != 5) {\n      return iVar1;\n    }" if (parenthesized_expression "(iVar1 != 5)" ( (binary_expression "iVar1 != 5" identifier != number_literal) )) (compound_statement "{\n      return iVar1;\n    }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "iVar1 = (**(code **)(param_1 + 0xb0))(*(undefined4 *)(param_1 + 0xb4));" (assignment_expression "iVar1 = (**(code **)(param_1 + 0xb0))(*(undefined4 *)(param_1 + 0xb4))" identifier = (call_expression "(**(code **)(param_1 + 0xb0))(*(undefined4 *)(param_1 + 0xb4))" (parenthesized_expression "(**(code **)(param_1 + 0xb0))" ( (pointer_expression "**(code **)(param_1 + 0xb0)" * (pointer_expression "*(code **)(param_1 + 0xb0)" * (cast_expression "(code **)(param_1 + 0xb0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xb0)" ( (binary_expression "param_1 + 0xb0" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(param_1 + 0xb4))" ( (pointer_expression "*(undefined4 *)(param_1 + 0xb4)" * (cast_expression "(undefined4 *)(param_1 + 0xb4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb4)" ( (binary_expression "param_1 + 0xb4" identifier + number_literal) )))) )))) ;) }) while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) ;) (return_statement "return 5;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (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 ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (return_statement return LIT ;) })))
(function_definition "int FUN_00044744(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  do {\n    iVar1 = FUN_00044338(param_1,param_2);\n    if (iVar1 != 5) {\n      return iVar1;\n    }\n    iVar1 = (**(code **)(param_1 + 0xb0))(*(undefined4 *)(param_1 + 0xb4));\n  } while (iVar1 != 0);\n  return 5;\n}" (primitive_type "int") (function_declarator "FUN_00044744(int param_1,undefined4 param_2)" (identifier "FUN_00044744") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  do {\n    iVar1 = FUN_00044338(param_1,param_2);\n    if (iVar1 != 5) {\n      return iVar1;\n    }\n    iVar1 = (**(code **)(param_1 + 0xb0))(*(undefined4 *)(param_1 + 0xb4));\n  } while (iVar1 != 0);\n  return 5;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (do_statement "do {\n    iVar1 = FUN_00044338(param_1,param_2);\n    if (iVar1 != 5) {\n      return iVar1;\n    }\n    iVar1 = (**(code **)(param_1 + 0xb0))(*(undefined4 *)(param_1 + 0xb4));\n  } while (iVar1 != 0);" (do "do") (compound_statement "{\n    iVar1 = FUN_00044338(param_1,param_2);\n    if (iVar1 != 5) {\n      return iVar1;\n    }\n    iVar1 = (**(code **)(param_1 + 0xb0))(*(undefined4 *)(param_1 + 0xb4));\n  }" ({ "{") (expression_statement "iVar1 = FUN_00044338(param_1,param_2);" (assignment_expression "iVar1 = FUN_00044338(param_1,param_2)" (identifier "iVar1") (= "=") (call_expression "FUN_00044338(param_1,param_2)" (identifier "FUN_00044338") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar1 != 5) {\n      return iVar1;\n    }" (if "if") (parenthesized_expression "(iVar1 != 5)" (( "(") (binary_expression "iVar1 != 5" (identifier "iVar1") (!= "!=") (number_literal "5")) () ")")) (compound_statement "{\n      return iVar1;\n    }" ({ "{") (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (expression_statement "iVar1 = (**(code **)(param_1 + 0xb0))(*(undefined4 *)(param_1 + 0xb4));" (assignment_expression "iVar1 = (**(code **)(param_1 + 0xb0))(*(undefined4 *)(param_1 + 0xb4))" (identifier "iVar1") (= "=") (call_expression "(**(code **)(param_1 + 0xb0))(*(undefined4 *)(param_1 + 0xb4))" (parenthesized_expression "(**(code **)(param_1 + 0xb0))" (( "(") (pointer_expression "**(code **)(param_1 + 0xb0)" (* "*") (pointer_expression "*(code **)(param_1 + 0xb0)" (* "*") (cast_expression "(code **)(param_1 + 0xb0)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xb0)" (( "(") (binary_expression "param_1 + 0xb0" (identifier "param_1") (+ "+") (number_literal "0xb0")) () ")"))))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 0xb4))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0xb4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xb4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xb4)" (( "(") (binary_expression "param_1 + 0xb4" (identifier "param_1") (+ "+") (number_literal "0xb4")) () ")")))) () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (; ";")) (return_statement "return 5;" (return "return") (number_literal "5") (; ";")) (} "}")))

int function_1(type_1 *pPager,int locktype)

{
  int var_2;
  
  do {
    var_2 = var_1(pPager,locktype);
    if (var_2 != 5) {
      return var_2;
    }
    var_2 = (*pPager->xBusyHandler)(pPager->pBusyHandlerArg);
  } while (var_2 != 0);
  return 5;
}


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

int MASKED(int param_1,undefined4 param_2)

{
  int iVar1;
  
  do {
    iVar1 = FUN_00044338(param_1,param_2);
    if (iVar1 != 5) {
      return iVar1;
    }
    iVar1 = (**(code **)(param_1 + 0xb0))(*(undefined4 *)(param_1 + 0xb4));
  } while (iVar1 != 0);
  return 5;
}

