
int sqlite3_set_authorizer
              (sqlite3 *db,_func_int_void_ptr_int_char_ptr_char_ptr_char_ptr_char_ptr *xAuth,
              void *pArg)

{
  Vdbe *pVVar1;
  
  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(db->mutex);
  db->xAuth = xAuth;
  db->pAuthArg = pArg;
  if (xAuth != (_func_int_void_ptr_int_char_ptr_char_ptr_char_ptr_char_ptr *)0x0) {
    for (pVVar1 = db->pVdbe; pVVar1 != (Vdbe *)0x0; pVVar1 = pVVar1->pNext) {
      *(ushort *)&pVVar1->field_0x96 = *(ushort *)&pVVar1->field_0x96 & 0x3fff | 0x8000;
    }
  }
  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(db->mutex);
  return 0;
}



undefined4 sqlite3_set_authorizer(int param_1,int param_2,undefined4 param_3)

{
  int iVar1;
  
  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));
  *(int *)(param_1 + 0x150) = param_2;
  *(undefined4 *)(param_1 + 0x154) = param_3;
  if (param_2 != 0) {
    for (iVar1 = *(int *)(param_1 + 4); iVar1 != 0; iVar1 = *(int *)(iVar1 + 8)) {
      *(ushort *)(iVar1 + 0x96) = *(ushort *)(iVar1 + 0x96) & 0x3fff | 0x8000;
    }
  }
  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));
  return 0;
}


lui gp,0xe
addiu gp,gp,-0x5db8
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x7e58(gp)
sw s0,0x18(sp)
or s0,a0,zero
sw gp,0x10(sp)
sw s2,0x20(sp)
or s2,a2,zero
sw s1,0x1c(sp)
or s1,a1,zero
sw ra,0x24(sp)
jalr t9
_lw a0,0xc(a0)
lw gp,0x10(sp)
sw s1,0x150(s0)
beq s1,zero,0x000230c8
_sw s2,0x154(s0)
lw v0,0x4(s0)
beq v0,zero,0x000230c8
_li a0,0x2
lhu v1,0x96(v0)
ins v1,a0,0xe,0x2
sh v1,0x96(v0)
lw v0,0x8(v0)
bne v0,zero,0x000230b0
_nop
lw t9,-0x7e30(gp)
jalr t9
_lw a0,0xc(s0)
or v0,zero,zero
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "undefined4 sqlite3_set_authorizer(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));\n  *(int *)(param_1 + 0x150) = param_2;\n  *(undefined4 *)(param_1 + 0x154) = param_3;\n  if (param_2 != 0) {\n    for (iVar1 = *(int *)(param_1 + 4); iVar1 != 0; iVar1 = *(int *)(iVar1 + 8)) {\n      *(ushort *)(iVar1 + 0x96) = *(ushort *)(iVar1 + 0x96) & 0x3fff | 0x8000;\n    }\n  }\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));\n  return 0;\n}\n\n" (function_definition "undefined4 sqlite3_set_authorizer(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));\n  *(int *)(param_1 + 0x150) = param_2;\n  *(undefined4 *)(param_1 + 0x154) = param_3;\n  if (param_2 != 0) {\n    for (iVar1 = *(int *)(param_1 + 4); iVar1 != 0; iVar1 = *(int *)(iVar1 + 8)) {\n      *(ushort *)(iVar1 + 0x96) = *(ushort *)(iVar1 + 0x96) & 0x3fff | 0x8000;\n    }\n  }\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));\n  return 0;\n}" type_identifier (function_declarator "sqlite3_set_authorizer(int param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));\n  *(int *)(param_1 + 0x150) = param_2;\n  *(undefined4 *)(param_1 + 0x154) = param_3;\n  if (param_2 != 0) {\n    for (iVar1 = *(int *)(param_1 + 4); iVar1 != 0; iVar1 = *(int *)(iVar1 + 8)) {\n      *(ushort *)(iVar1 + 0x96) = *(ushort *)(iVar1 + 0x96) & 0x3fff | 0x8000;\n    }\n  }\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));" (call_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc))" (parenthesized_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)" ( (pointer_expression "*(code *)PTR_sqlite3_mutex_enter_000f5448" * (cast_expression "(code *)PTR_sqlite3_mutex_enter_000f5448" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) (expression_statement "*(int *)(param_1 + 0x150) = param_2;" (assignment_expression "*(int *)(param_1 + 0x150) = param_2" (pointer_expression "*(int *)(param_1 + 0x150)" * (cast_expression "(int *)(param_1 + 0x150)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x150)" ( (binary_expression "param_1 + 0x150" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x154) = param_3;" (assignment_expression "*(undefined4 *)(param_1 + 0x154) = param_3" (pointer_expression "*(undefined4 *)(param_1 + 0x154)" * (cast_expression "(undefined4 *)(param_1 + 0x154)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x154)" ( (binary_expression "param_1 + 0x154" identifier + number_literal) )))) = identifier) ;) (if_statement "if (param_2 != 0) {\n    for (iVar1 = *(int *)(param_1 + 4); iVar1 != 0; iVar1 = *(int *)(iVar1 + 8)) {\n      *(ushort *)(iVar1 + 0x96) = *(ushort *)(iVar1 + 0x96) & 0x3fff | 0x8000;\n    }\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    for (iVar1 = *(int *)(param_1 + 4); iVar1 != 0; iVar1 = *(int *)(iVar1 + 8)) {\n      *(ushort *)(iVar1 + 0x96) = *(ushort *)(iVar1 + 0x96) & 0x3fff | 0x8000;\n    }\n  }" { (for_statement "for (iVar1 = *(int *)(param_1 + 4); iVar1 != 0; iVar1 = *(int *)(iVar1 + 8)) {\n      *(ushort *)(iVar1 + 0x96) = *(ushort *)(iVar1 + 0x96) & 0x3fff | 0x8000;\n    }" for ( (assignment_expression "iVar1 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ; (binary_expression "iVar1 != 0" identifier != number_literal) ; (assignment_expression "iVar1 = *(int *)(iVar1 + 8)" identifier = (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) ) (compound_statement "{\n      *(ushort *)(iVar1 + 0x96) = *(ushort *)(iVar1 + 0x96) & 0x3fff | 0x8000;\n    }" { (expression_statement "*(ushort *)(iVar1 + 0x96) = *(ushort *)(iVar1 + 0x96) & 0x3fff | 0x8000;" (assignment_expression "*(ushort *)(iVar1 + 0x96) = *(ushort *)(iVar1 + 0x96) & 0x3fff | 0x8000" (pointer_expression "*(ushort *)(iVar1 + 0x96)" * (cast_expression "(ushort *)(iVar1 + 0x96)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x96)" ( (binary_expression "iVar1 + 0x96" identifier + number_literal) )))) = (binary_expression "*(ushort *)(iVar1 + 0x96) & 0x3fff | 0x8000" (binary_expression "*(ushort *)(iVar1 + 0x96) & 0x3fff" (pointer_expression "*(ushort *)(iVar1 + 0x96)" * (cast_expression "(ushort *)(iVar1 + 0x96)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x96)" ( (binary_expression "iVar1 + 0x96" identifier + number_literal) )))) & number_literal) | number_literal)) ;) })) })) (expression_statement "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));" (call_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc))" (parenthesized_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)" ( (pointer_expression "*(code *)PTR_sqlite3_mutex_leave_000f5470" * (cast_expression "(code *)PTR_sqlite3_mutex_leave_000f5470" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int sqlite3_set_authorizer\n              (sqlite3 *db,_func_int_void_ptr_int_char_ptr_char_ptr_char_ptr_char_ptr *xAuth,\n              void *pArg)\n\n{\n  Vdbe *pVVar1;\n  \n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(db->mutex);\n  db->xAuth = xAuth;\n  db->pAuthArg = pArg;\n  if (xAuth != (_func_int_void_ptr_int_char_ptr_char_ptr_char_ptr_char_ptr *)0x0) {\n    for (pVVar1 = db->pVdbe; pVVar1 != (Vdbe *)0x0; pVVar1 = pVVar1->pNext) {\n      *(ushort *)&pVVar1->field_0x96 = *(ushort *)&pVVar1->field_0x96 & 0x3fff | 0x8000;\n    }\n  }\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(db->mutex);\n  return 0;\n}\n\n" (function_definition "int sqlite3_set_authorizer\n              (sqlite3 *db,_func_int_void_ptr_int_char_ptr_char_ptr_char_ptr_char_ptr *xAuth,\n              void *pArg)\n\n{\n  Vdbe *pVVar1;\n  \n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(db->mutex);\n  db->xAuth = xAuth;\n  db->pAuthArg = pArg;\n  if (xAuth != (_func_int_void_ptr_int_char_ptr_char_ptr_char_ptr_char_ptr *)0x0) {\n    for (pVVar1 = db->pVdbe; pVVar1 != (Vdbe *)0x0; pVVar1 = pVVar1->pNext) {\n      *(ushort *)&pVVar1->field_0x96 = *(ushort *)&pVVar1->field_0x96 & 0x3fff | 0x8000;\n    }\n  }\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(db->mutex);\n  return 0;\n}" primitive_type (function_declarator "sqlite3_set_authorizer\n              (sqlite3 *db,_func_int_void_ptr_int_char_ptr_char_ptr_char_ptr_char_ptr *xAuth,\n              void *pArg)" identifier (parameter_list "(sqlite3 *db,_func_int_void_ptr_int_char_ptr_char_ptr_char_ptr_char_ptr *xAuth,\n              void *pArg)" ( (parameter_declaration "sqlite3 *db" type_identifier (pointer_declarator "*db" * identifier)) , (parameter_declaration "_func_int_void_ptr_int_char_ptr_char_ptr_char_ptr_char_ptr *xAuth" type_identifier (pointer_declarator "*xAuth" * identifier)) , (parameter_declaration "void *pArg" primitive_type (pointer_declarator "*pArg" * identifier)) ))) (compound_statement "{\n  Vdbe *pVVar1;\n  \n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(db->mutex);\n  db->xAuth = xAuth;\n  db->pAuthArg = pArg;\n  if (xAuth != (_func_int_void_ptr_int_char_ptr_char_ptr_char_ptr_char_ptr *)0x0) {\n    for (pVVar1 = db->pVdbe; pVVar1 != (Vdbe *)0x0; pVVar1 = pVVar1->pNext) {\n      *(ushort *)&pVVar1->field_0x96 = *(ushort *)&pVVar1->field_0x96 & 0x3fff | 0x8000;\n    }\n  }\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(db->mutex);\n  return 0;\n}" { (declaration "Vdbe *pVVar1;" type_identifier (pointer_declarator "*pVVar1" * identifier) ;) (expression_statement "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(db->mutex);" (call_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(db->mutex)" (parenthesized_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)" ( (pointer_expression "*(code *)PTR_sqlite3_mutex_enter_000f5448" * (cast_expression "(code *)PTR_sqlite3_mutex_enter_000f5448" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(db->mutex)" ( (field_expression "db->mutex" identifier -> field_identifier) ))) ;) (expression_statement "db->xAuth = xAuth;" (assignment_expression "db->xAuth = xAuth" (field_expression "db->xAuth" identifier -> field_identifier) = identifier) ;) (expression_statement "db->pAuthArg = pArg;" (assignment_expression "db->pAuthArg = pArg" (field_expression "db->pAuthArg" identifier -> field_identifier) = identifier) ;) (if_statement "if (xAuth != (_func_int_void_ptr_int_char_ptr_char_ptr_char_ptr_char_ptr *)0x0) {\n    for (pVVar1 = db->pVdbe; pVVar1 != (Vdbe *)0x0; pVVar1 = pVVar1->pNext) {\n      *(ushort *)&pVVar1->field_0x96 = *(ushort *)&pVVar1->field_0x96 & 0x3fff | 0x8000;\n    }\n  }" if (parenthesized_expression "(xAuth != (_func_int_void_ptr_int_char_ptr_char_ptr_char_ptr_char_ptr *)0x0)" ( (binary_expression "xAuth != (_func_int_void_ptr_int_char_ptr_char_ptr_char_ptr_char_ptr *)0x0" identifier != (cast_expression "(_func_int_void_ptr_int_char_ptr_char_ptr_char_ptr_char_ptr *)0x0" ( (type_descriptor "_func_int_void_ptr_int_char_ptr_char_ptr_char_ptr_char_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    for (pVVar1 = db->pVdbe; pVVar1 != (Vdbe *)0x0; pVVar1 = pVVar1->pNext) {\n      *(ushort *)&pVVar1->field_0x96 = *(ushort *)&pVVar1->field_0x96 & 0x3fff | 0x8000;\n    }\n  }" { (for_statement "for (pVVar1 = db->pVdbe; pVVar1 != (Vdbe *)0x0; pVVar1 = pVVar1->pNext) {\n      *(ushort *)&pVVar1->field_0x96 = *(ushort *)&pVVar1->field_0x96 & 0x3fff | 0x8000;\n    }" for ( (assignment_expression "pVVar1 = db->pVdbe" identifier = (field_expression "db->pVdbe" identifier -> field_identifier)) ; (binary_expression "pVVar1 != (Vdbe *)0x0" identifier != (cast_expression "(Vdbe *)0x0" ( (type_descriptor "Vdbe *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "pVVar1 = pVVar1->pNext" identifier = (field_expression "pVVar1->pNext" identifier -> field_identifier)) ) (compound_statement "{\n      *(ushort *)&pVVar1->field_0x96 = *(ushort *)&pVVar1->field_0x96 & 0x3fff | 0x8000;\n    }" { (expression_statement "*(ushort *)&pVVar1->field_0x96 = *(ushort *)&pVVar1->field_0x96 & 0x3fff | 0x8000;" (assignment_expression "*(ushort *)&pVVar1->field_0x96 = *(ushort *)&pVVar1->field_0x96 & 0x3fff | 0x8000" (pointer_expression "*(ushort *)&pVVar1->field_0x96" * (cast_expression "(ushort *)&pVVar1->field_0x96" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pVVar1->field_0x96" & (field_expression "pVVar1->field_0x96" identifier -> field_identifier)))) = (binary_expression "*(ushort *)&pVVar1->field_0x96 & 0x3fff | 0x8000" (binary_expression "*(ushort *)&pVVar1->field_0x96 & 0x3fff" (pointer_expression "*(ushort *)&pVVar1->field_0x96" * (cast_expression "(ushort *)&pVVar1->field_0x96" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pVVar1->field_0x96" & (field_expression "pVVar1->field_0x96" identifier -> field_identifier)))) & number_literal) | number_literal)) ;) })) })) (expression_statement "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(db->mutex);" (call_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(db->mutex)" (parenthesized_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)" ( (pointer_expression "*(code *)PTR_sqlite3_mutex_leave_000f5470" * (cast_expression "(code *)PTR_sqlite3_mutex_leave_000f5470" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(db->mutex)" ( (field_expression "db->mutex" identifier -> field_identifier) ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 sqlite3_set_authorizer(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));\n  *(int *)(param_1 + 0x150) = param_2;\n  *(undefined4 *)(param_1 + 0x154) = param_3;\n  if (param_2 != 0) {\n    for (iVar1 = *(int *)(param_1 + 4); iVar1 != 0; iVar1 = *(int *)(iVar1 + 8)) {\n      *(ushort *)(iVar1 + 0x96) = *(ushort *)(iVar1 + 0x96) & 0x3fff | 0x8000;\n    }\n  }\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));\n  return 0;\n}\n\n" (function_definition "undefined4 sqlite3_set_authorizer(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));\n  *(int *)(param_1 + 0x150) = param_2;\n  *(undefined4 *)(param_1 + 0x154) = param_3;\n  if (param_2 != 0) {\n    for (iVar1 = *(int *)(param_1 + 4); iVar1 != 0; iVar1 = *(int *)(iVar1 + 8)) {\n      *(ushort *)(iVar1 + 0x96) = *(ushort *)(iVar1 + 0x96) & 0x3fff | 0x8000;\n    }\n  }\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));\n  return 0;\n}" type_identifier (function_declarator "sqlite3_set_authorizer(int param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));\n  *(int *)(param_1 + 0x150) = param_2;\n  *(undefined4 *)(param_1 + 0x154) = param_3;\n  if (param_2 != 0) {\n    for (iVar1 = *(int *)(param_1 + 4); iVar1 != 0; iVar1 = *(int *)(iVar1 + 8)) {\n      *(ushort *)(iVar1 + 0x96) = *(ushort *)(iVar1 + 0x96) & 0x3fff | 0x8000;\n    }\n  }\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));" (call_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc))" (parenthesized_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)" ( (pointer_expression "*(code *)PTR_sqlite3_mutex_enter_000f5448" * (cast_expression "(code *)PTR_sqlite3_mutex_enter_000f5448" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) (expression_statement "*(int *)(param_1 + 0x150) = param_2;" (assignment_expression "*(int *)(param_1 + 0x150) = param_2" (pointer_expression "*(int *)(param_1 + 0x150)" * (cast_expression "(int *)(param_1 + 0x150)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x150)" ( (binary_expression "param_1 + 0x150" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x154) = param_3;" (assignment_expression "*(undefined4 *)(param_1 + 0x154) = param_3" (pointer_expression "*(undefined4 *)(param_1 + 0x154)" * (cast_expression "(undefined4 *)(param_1 + 0x154)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x154)" ( (binary_expression "param_1 + 0x154" identifier + number_literal) )))) = identifier) ;) (if_statement "if (param_2 != 0) {\n    for (iVar1 = *(int *)(param_1 + 4); iVar1 != 0; iVar1 = *(int *)(iVar1 + 8)) {\n      *(ushort *)(iVar1 + 0x96) = *(ushort *)(iVar1 + 0x96) & 0x3fff | 0x8000;\n    }\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    for (iVar1 = *(int *)(param_1 + 4); iVar1 != 0; iVar1 = *(int *)(iVar1 + 8)) {\n      *(ushort *)(iVar1 + 0x96) = *(ushort *)(iVar1 + 0x96) & 0x3fff | 0x8000;\n    }\n  }" { (for_statement "for (iVar1 = *(int *)(param_1 + 4); iVar1 != 0; iVar1 = *(int *)(iVar1 + 8)) {\n      *(ushort *)(iVar1 + 0x96) = *(ushort *)(iVar1 + 0x96) & 0x3fff | 0x8000;\n    }" for ( (assignment_expression "iVar1 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ; (binary_expression "iVar1 != 0" identifier != number_literal) ; (assignment_expression "iVar1 = *(int *)(iVar1 + 8)" identifier = (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) ) (compound_statement "{\n      *(ushort *)(iVar1 + 0x96) = *(ushort *)(iVar1 + 0x96) & 0x3fff | 0x8000;\n    }" { (expression_statement "*(ushort *)(iVar1 + 0x96) = *(ushort *)(iVar1 + 0x96) & 0x3fff | 0x8000;" (assignment_expression "*(ushort *)(iVar1 + 0x96) = *(ushort *)(iVar1 + 0x96) & 0x3fff | 0x8000" (pointer_expression "*(ushort *)(iVar1 + 0x96)" * (cast_expression "(ushort *)(iVar1 + 0x96)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x96)" ( (binary_expression "iVar1 + 0x96" identifier + number_literal) )))) = (binary_expression "*(ushort *)(iVar1 + 0x96) & 0x3fff | 0x8000" (binary_expression "*(ushort *)(iVar1 + 0x96) & 0x3fff" (pointer_expression "*(ushort *)(iVar1 + 0x96)" * (cast_expression "(ushort *)(iVar1 + 0x96)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x96)" ( (binary_expression "iVar1 + 0x96" identifier + number_literal) )))) & number_literal) | number_literal)) ;) })) })) (expression_statement "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));" (call_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc))" (parenthesized_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)" ( (pointer_expression "*(code *)PTR_sqlite3_mutex_leave_000f5470" * (cast_expression "(code *)PTR_sqlite3_mutex_leave_000f5470" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (for_statement for ( (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) | LIT)) ;) })) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 sqlite3_set_authorizer(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));\n  *(int *)(param_1 + 0x150) = param_2;\n  *(undefined4 *)(param_1 + 0x154) = param_3;\n  if (param_2 != 0) {\n    for (iVar1 = *(int *)(param_1 + 4); iVar1 != 0; iVar1 = *(int *)(iVar1 + 8)) {\n      *(ushort *)(iVar1 + 0x96) = *(ushort *)(iVar1 + 0x96) & 0x3fff | 0x8000;\n    }\n  }\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "sqlite3_set_authorizer(int param_1,int param_2,undefined4 param_3)" (identifier "sqlite3_set_authorizer") (parameter_list "(int param_1,int param_2,undefined4 param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));\n  *(int *)(param_1 + 0x150) = param_2;\n  *(undefined4 *)(param_1 + 0x154) = param_3;\n  if (param_2 != 0) {\n    for (iVar1 = *(int *)(param_1 + 4); iVar1 != 0; iVar1 = *(int *)(iVar1 + 8)) {\n      *(ushort *)(iVar1 + 0x96) = *(ushort *)(iVar1 + 0x96) & 0x3fff | 0x8000;\n    }\n  }\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));" (call_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc))" (parenthesized_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_mutex_enter_000f5448" (* "*") (cast_expression "(code *)PTR_sqlite3_mutex_enter_000f5448" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_mutex_enter_000f5448"))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 0xc))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x150) = param_2;" (assignment_expression "*(int *)(param_1 + 0x150) = param_2" (pointer_expression "*(int *)(param_1 + 0x150)" (* "*") (cast_expression "(int *)(param_1 + 0x150)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x150)" (( "(") (binary_expression "param_1 + 0x150" (identifier "param_1") (+ "+") (number_literal "0x150")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x154) = param_3;" (assignment_expression "*(undefined4 *)(param_1 + 0x154) = param_3" (pointer_expression "*(undefined4 *)(param_1 + 0x154)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x154)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x154)" (( "(") (binary_expression "param_1 + 0x154" (identifier "param_1") (+ "+") (number_literal "0x154")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (if_statement "if (param_2 != 0) {\n    for (iVar1 = *(int *)(param_1 + 4); iVar1 != 0; iVar1 = *(int *)(iVar1 + 8)) {\n      *(ushort *)(iVar1 + 0x96) = *(ushort *)(iVar1 + 0x96) & 0x3fff | 0x8000;\n    }\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    for (iVar1 = *(int *)(param_1 + 4); iVar1 != 0; iVar1 = *(int *)(iVar1 + 8)) {\n      *(ushort *)(iVar1 + 0x96) = *(ushort *)(iVar1 + 0x96) & 0x3fff | 0x8000;\n    }\n  }" ({ "{") (for_statement "for (iVar1 = *(int *)(param_1 + 4); iVar1 != 0; iVar1 = *(int *)(iVar1 + 8)) {\n      *(ushort *)(iVar1 + 0x96) = *(ushort *)(iVar1 + 0x96) & 0x3fff | 0x8000;\n    }" (for "for") (( "(") (assignment_expression "iVar1 = *(int *)(param_1 + 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar1 = *(int *)(iVar1 + 8)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar1 + 8)" (* "*") (cast_expression "(int *)(iVar1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")"))))) () ")") (compound_statement "{\n      *(ushort *)(iVar1 + 0x96) = *(ushort *)(iVar1 + 0x96) & 0x3fff | 0x8000;\n    }" ({ "{") (expression_statement "*(ushort *)(iVar1 + 0x96) = *(ushort *)(iVar1 + 0x96) & 0x3fff | 0x8000;" (assignment_expression "*(ushort *)(iVar1 + 0x96) = *(ushort *)(iVar1 + 0x96) & 0x3fff | 0x8000" (pointer_expression "*(ushort *)(iVar1 + 0x96)" (* "*") (cast_expression "(ushort *)(iVar1 + 0x96)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x96)" (( "(") (binary_expression "iVar1 + 0x96" (identifier "iVar1") (+ "+") (number_literal "0x96")) () ")")))) (= "=") (binary_expression "*(ushort *)(iVar1 + 0x96) & 0x3fff | 0x8000" (binary_expression "*(ushort *)(iVar1 + 0x96) & 0x3fff" (pointer_expression "*(ushort *)(iVar1 + 0x96)" (* "*") (cast_expression "(ushort *)(iVar1 + 0x96)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x96)" (( "(") (binary_expression "iVar1 + 0x96" (identifier "iVar1") (+ "+") (number_literal "0x96")) () ")")))) (& "&") (number_literal "0x3fff")) (| "|") (number_literal "0x8000"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));" (call_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc))" (parenthesized_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_mutex_leave_000f5470" (* "*") (cast_expression "(code *)PTR_sqlite3_mutex_leave_000f5470" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_mutex_leave_000f5470"))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 0xc))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int function_1
              (type_1 *db,type_2 *var_1,
              void *pArg)

{
  type_3 *var_2;
  
  (*(type_4 *)PTR_sqlite3_mutex_enter_000f5448)(db->mutex);
  db->var_1 = var_1;
  db->pAuthArg = pArg;
  if (var_1 != (type_2 *)0x0) {
    for (var_2 = db->pVdbe; var_2 != (type_3 *)0x0; var_2 = var_2->pNext) {
      *(type_5 *)&var_2->field_0x96 = *(type_5 *)&var_2->field_0x96 & 0x3fff | 0x8000;
    }
  }
  (*(type_4 *)PTR_sqlite3_mutex_leave_000f5470)(db->mutex);
  return 0;
}


(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: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) 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)))))))) (expression_statement (assignment_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: (identifier))) (expression_statement (assignment_expression left: (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))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (for_statement initializer: (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)))))) condition: (binary_expression left: (identifier) right: (number_literal)) update: (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)))))) body: (compound_statement (expression_statement (assignment_expression left: (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))))) right: (binary_expression left: (binary_expression left: (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))))) right: (number_literal)) 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: (identifier)))) 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)))))))) (return_statement (number_literal)))))

undefined4 MASKED(int param_1,int param_2,undefined4 param_3)

{
  int iVar1;
  
  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));
  *(int *)(param_1 + 0x150) = param_2;
  *(undefined4 *)(param_1 + 0x154) = param_3;
  if (param_2 != 0) {
    for (iVar1 = *(int *)(param_1 + 4); iVar1 != 0; iVar1 = *(int *)(iVar1 + 8)) {
      *(ushort *)(iVar1 + 0x96) = *(ushort *)(iVar1 + 0x96) & 0x3fff | 0x8000;
    }
  }
  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));
  return 0;
}

