
int rpl_fflush(FILE *stream)

{
  int iVar1;
  int in_a1;
  undefined4 in_stack_ffffffec;
  
  if (stream != (FILE *)0x0) {
    iVar1 = (*(code *)PTR___freading_00031354)();
    if ((iVar1 != 0) && ((stream->_flags & 0x100U) != 0)) {
      rpl_fseeko(stream,CONCAT44(1,in_stack_ffffffec),in_a1);
                    /* WARNING: Could not recover jumptable at 0x0001b6dc. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      iVar1 = (*(code *)PTR_fflush_000313d8)(stream);
      return iVar1;
    }
  }
                    /* WARNING: Could not recover jumptable at 0x0001b6a8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  iVar1 = (*(code *)PTR_fflush_000313d8)(stream);
  return iVar1;
}



void rpl_fflush(uint *param_1,undefined4 param_2)

{
  int iVar1;
  
  if (param_1 != (uint *)0x0) {
    iVar1 = (*(code *)PTR___freading_00031354)();
    if ((iVar1 != 0) && ((*param_1 & 0x100) != 0)) {
      rpl_fseeko(param_1,param_2,0,0,1);
                    /* WARNING: Could not recover jumptable at 0x0001b6dc. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      (*(code *)PTR_fflush_000313d8)(param_1);
      return;
    }
  }
                    /* WARNING: Could not recover jumptable at 0x0001b6a8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*(code *)PTR_fflush_000313d8)(param_1);
  return;
}


lui gp,0x2
addiu gp,gp,-0x2570
addu gp,gp,t9
addiu sp,sp,-0x28
sw gp,0x18(sp)
sw s0,0x20(sp)
or s0,a0,zero
beq a0,zero,0x0001b698
_sw ra,0x24(sp)
lw t9,-0x7d8c(gp)
jalr t9
_nop
beq v0,zero,0x0001b698
_lw gp,0x18(sp)
lw v0,0x0(s0)
andi v0,v0,0x100
bne v0,zero,0x0001b6b0
_lw t9,-0x7e88(gp)
lw ra,0x24(sp)
or a0,s0,zero
lw t9,-0x7d08(gp)
lw s0,0x20(sp)
jr t9
_addiu sp,sp,0x28
li v0,0x1
or a3,zero,zero
or a2,zero,zero
sw v0,0x10(sp)
bal 0x0001b6f0
_or a0,s0,zero
or a0,s0,zero
lw gp,0x18(sp)
lw ra,0x24(sp)
lw s0,0x20(sp)
lw t9,-0x7d08(gp)
jr t9
_addiu sp,sp,0x28
(translation_unit "void rpl_fflush(uint *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  if (param_1 != (uint *)0x0) {\n    iVar1 = (*(code *)PTR___freading_00031354)();\n    if ((iVar1 != 0) && ((*param_1 & 0x100) != 0)) {\n      rpl_fseeko(param_1,param_2,0,0,1);\n                    /* WARNING: Could not recover jumptable at 0x0001b6dc. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)PTR_fflush_000313d8)(param_1);\n      return;\n    }\n  }\n                    /* WARNING: Could not recover jumptable at 0x0001b6a8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_fflush_000313d8)(param_1);\n  return;\n}\n\n" (function_definition "void rpl_fflush(uint *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  if (param_1 != (uint *)0x0) {\n    iVar1 = (*(code *)PTR___freading_00031354)();\n    if ((iVar1 != 0) && ((*param_1 & 0x100) != 0)) {\n      rpl_fseeko(param_1,param_2,0,0,1);\n                    /* WARNING: Could not recover jumptable at 0x0001b6dc. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)PTR_fflush_000313d8)(param_1);\n      return;\n    }\n  }\n                    /* WARNING: Could not recover jumptable at 0x0001b6a8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_fflush_000313d8)(param_1);\n  return;\n}" primitive_type (function_declarator "rpl_fflush(uint *param_1,undefined4 param_2)" identifier (parameter_list "(uint *param_1,undefined4 param_2)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 != (uint *)0x0) {\n    iVar1 = (*(code *)PTR___freading_00031354)();\n    if ((iVar1 != 0) && ((*param_1 & 0x100) != 0)) {\n      rpl_fseeko(param_1,param_2,0,0,1);\n                    /* WARNING: Could not recover jumptable at 0x0001b6dc. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)PTR_fflush_000313d8)(param_1);\n      return;\n    }\n  }\n                    /* WARNING: Could not recover jumptable at 0x0001b6a8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_fflush_000313d8)(param_1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_1 != (uint *)0x0) {\n    iVar1 = (*(code *)PTR___freading_00031354)();\n    if ((iVar1 != 0) && ((*param_1 & 0x100) != 0)) {\n      rpl_fseeko(param_1,param_2,0,0,1);\n                    /* WARNING: Could not recover jumptable at 0x0001b6dc. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)PTR_fflush_000313d8)(param_1);\n      return;\n    }\n  }" if (parenthesized_expression "(param_1 != (uint *)0x0)" ( (binary_expression "param_1 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = (*(code *)PTR___freading_00031354)();\n    if ((iVar1 != 0) && ((*param_1 & 0x100) != 0)) {\n      rpl_fseeko(param_1,param_2,0,0,1);\n                    /* WARNING: Could not recover jumptable at 0x0001b6dc. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)PTR_fflush_000313d8)(param_1);\n      return;\n    }\n  }" { (expression_statement "iVar1 = (*(code *)PTR___freading_00031354)();" (assignment_expression "iVar1 = (*(code *)PTR___freading_00031354)()" identifier = (call_expression "(*(code *)PTR___freading_00031354)()" (parenthesized_expression "(*(code *)PTR___freading_00031354)" ( (pointer_expression "*(code *)PTR___freading_00031354" * (cast_expression "(code *)PTR___freading_00031354" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 != 0) && ((*param_1 & 0x100) != 0)) {\n      rpl_fseeko(param_1,param_2,0,0,1);\n                    /* WARNING: Could not recover jumptable at 0x0001b6dc. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)PTR_fflush_000313d8)(param_1);\n      return;\n    }" if (parenthesized_expression "((iVar1 != 0) && ((*param_1 & 0x100) != 0))" ( (binary_expression "(iVar1 != 0) && ((*param_1 & 0x100) != 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "((*param_1 & 0x100) != 0)" ( (binary_expression "(*param_1 & 0x100) != 0" (parenthesized_expression "(*param_1 & 0x100)" ( (binary_expression "*param_1 & 0x100" (pointer_expression "*param_1" * identifier) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n      rpl_fseeko(param_1,param_2,0,0,1);\n                    /* WARNING: Could not recover jumptable at 0x0001b6dc. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)PTR_fflush_000313d8)(param_1);\n      return;\n    }" { (expression_statement "rpl_fseeko(param_1,param_2,0,0,1);" (call_expression "rpl_fseeko(param_1,param_2,0,0,1)" identifier (argument_list "(param_1,param_2,0,0,1)" ( identifier , identifier , number_literal , number_literal , number_literal ))) ;) comment comment (expression_statement "(*(code *)PTR_fflush_000313d8)(param_1);" (call_expression "(*(code *)PTR_fflush_000313d8)(param_1)" (parenthesized_expression "(*(code *)PTR_fflush_000313d8)" ( (pointer_expression "*(code *)PTR_fflush_000313d8" * (cast_expression "(code *)PTR_fflush_000313d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })) })) comment comment (expression_statement "(*(code *)PTR_fflush_000313d8)(param_1);" (call_expression "(*(code *)PTR_fflush_000313d8)(param_1)" (parenthesized_expression "(*(code *)PTR_fflush_000313d8)" ( (pointer_expression "*(code *)PTR_fflush_000313d8" * (cast_expression "(code *)PTR_fflush_000313d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "int rpl_fflush(FILE *stream)\n\n{\n  int iVar1;\n  int in_a1;\n  undefined4 in_stack_ffffffec;\n  \n  if (stream != (FILE *)0x0) {\n    iVar1 = (*(code *)PTR___freading_00031354)();\n    if ((iVar1 != 0) && ((stream->_flags & 0x100U) != 0)) {\n      rpl_fseeko(stream,CONCAT44(1,in_stack_ffffffec),in_a1);\n                    /* WARNING: Could not recover jumptable at 0x0001b6dc. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar1 = (*(code *)PTR_fflush_000313d8)(stream);\n      return iVar1;\n    }\n  }\n                    /* WARNING: Could not recover jumptable at 0x0001b6a8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  iVar1 = (*(code *)PTR_fflush_000313d8)(stream);\n  return iVar1;\n}\n\n" (function_definition "int rpl_fflush(FILE *stream)\n\n{\n  int iVar1;\n  int in_a1;\n  undefined4 in_stack_ffffffec;\n  \n  if (stream != (FILE *)0x0) {\n    iVar1 = (*(code *)PTR___freading_00031354)();\n    if ((iVar1 != 0) && ((stream->_flags & 0x100U) != 0)) {\n      rpl_fseeko(stream,CONCAT44(1,in_stack_ffffffec),in_a1);\n                    /* WARNING: Could not recover jumptable at 0x0001b6dc. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar1 = (*(code *)PTR_fflush_000313d8)(stream);\n      return iVar1;\n    }\n  }\n                    /* WARNING: Could not recover jumptable at 0x0001b6a8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  iVar1 = (*(code *)PTR_fflush_000313d8)(stream);\n  return iVar1;\n}" primitive_type (function_declarator "rpl_fflush(FILE *stream)" identifier (parameter_list "(FILE *stream)" ( (parameter_declaration "FILE *stream" type_identifier (pointer_declarator "*stream" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int in_a1;\n  undefined4 in_stack_ffffffec;\n  \n  if (stream != (FILE *)0x0) {\n    iVar1 = (*(code *)PTR___freading_00031354)();\n    if ((iVar1 != 0) && ((stream->_flags & 0x100U) != 0)) {\n      rpl_fseeko(stream,CONCAT44(1,in_stack_ffffffec),in_a1);\n                    /* WARNING: Could not recover jumptable at 0x0001b6dc. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar1 = (*(code *)PTR_fflush_000313d8)(stream);\n      return iVar1;\n    }\n  }\n                    /* WARNING: Could not recover jumptable at 0x0001b6a8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  iVar1 = (*(code *)PTR_fflush_000313d8)(stream);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_a1;" primitive_type identifier ;) (declaration "undefined4 in_stack_ffffffec;" type_identifier identifier ;) (if_statement "if (stream != (FILE *)0x0) {\n    iVar1 = (*(code *)PTR___freading_00031354)();\n    if ((iVar1 != 0) && ((stream->_flags & 0x100U) != 0)) {\n      rpl_fseeko(stream,CONCAT44(1,in_stack_ffffffec),in_a1);\n                    /* WARNING: Could not recover jumptable at 0x0001b6dc. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar1 = (*(code *)PTR_fflush_000313d8)(stream);\n      return iVar1;\n    }\n  }" if (parenthesized_expression "(stream != (FILE *)0x0)" ( (binary_expression "stream != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = (*(code *)PTR___freading_00031354)();\n    if ((iVar1 != 0) && ((stream->_flags & 0x100U) != 0)) {\n      rpl_fseeko(stream,CONCAT44(1,in_stack_ffffffec),in_a1);\n                    /* WARNING: Could not recover jumptable at 0x0001b6dc. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar1 = (*(code *)PTR_fflush_000313d8)(stream);\n      return iVar1;\n    }\n  }" { (expression_statement "iVar1 = (*(code *)PTR___freading_00031354)();" (assignment_expression "iVar1 = (*(code *)PTR___freading_00031354)()" identifier = (call_expression "(*(code *)PTR___freading_00031354)()" (parenthesized_expression "(*(code *)PTR___freading_00031354)" ( (pointer_expression "*(code *)PTR___freading_00031354" * (cast_expression "(code *)PTR___freading_00031354" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 != 0) && ((stream->_flags & 0x100U) != 0)) {\n      rpl_fseeko(stream,CONCAT44(1,in_stack_ffffffec),in_a1);\n                    /* WARNING: Could not recover jumptable at 0x0001b6dc. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar1 = (*(code *)PTR_fflush_000313d8)(stream);\n      return iVar1;\n    }" if (parenthesized_expression "((iVar1 != 0) && ((stream->_flags & 0x100U) != 0))" ( (binary_expression "(iVar1 != 0) && ((stream->_flags & 0x100U) != 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "((stream->_flags & 0x100U) != 0)" ( (binary_expression "(stream->_flags & 0x100U) != 0" (parenthesized_expression "(stream->_flags & 0x100U)" ( (binary_expression "stream->_flags & 0x100U" (field_expression "stream->_flags" identifier -> field_identifier) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n      rpl_fseeko(stream,CONCAT44(1,in_stack_ffffffec),in_a1);\n                    /* WARNING: Could not recover jumptable at 0x0001b6dc. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar1 = (*(code *)PTR_fflush_000313d8)(stream);\n      return iVar1;\n    }" { (expression_statement "rpl_fseeko(stream,CONCAT44(1,in_stack_ffffffec),in_a1);" (call_expression "rpl_fseeko(stream,CONCAT44(1,in_stack_ffffffec),in_a1)" identifier (argument_list "(stream,CONCAT44(1,in_stack_ffffffec),in_a1)" ( identifier , (call_expression "CONCAT44(1,in_stack_ffffffec)" identifier (argument_list "(1,in_stack_ffffffec)" ( number_literal , identifier ))) , identifier ))) ;) comment comment (expression_statement "iVar1 = (*(code *)PTR_fflush_000313d8)(stream);" (assignment_expression "iVar1 = (*(code *)PTR_fflush_000313d8)(stream)" identifier = (call_expression "(*(code *)PTR_fflush_000313d8)(stream)" (parenthesized_expression "(*(code *)PTR_fflush_000313d8)" ( (pointer_expression "*(code *)PTR_fflush_000313d8" * (cast_expression "(code *)PTR_fflush_000313d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(stream)" ( identifier )))) ;) (return_statement "return iVar1;" return identifier ;) })) })) comment comment (expression_statement "iVar1 = (*(code *)PTR_fflush_000313d8)(stream);" (assignment_expression "iVar1 = (*(code *)PTR_fflush_000313d8)(stream)" identifier = (call_expression "(*(code *)PTR_fflush_000313d8)(stream)" (parenthesized_expression "(*(code *)PTR_fflush_000313d8)" ( (pointer_expression "*(code *)PTR_fflush_000313d8" * (cast_expression "(code *)PTR_fflush_000313d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(stream)" ( identifier )))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "void rpl_fflush(uint *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  if (param_1 != (uint *)0x0) {\n    iVar1 = (*(code *)PTR___freading_00031354)();\n    if ((iVar1 != 0) && ((*param_1 & 0x100) != 0)) {\n      rpl_fseeko(param_1,param_2,0,0,1);\n                    \n                    \n      (*(code *)PTR_fflush_000313d8)(param_1);\n      return;\n    }\n  }\n                    \n                    \n  (*(code *)PTR_fflush_000313d8)(param_1);\n  return;\n}\n\n" (function_definition "void rpl_fflush(uint *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  if (param_1 != (uint *)0x0) {\n    iVar1 = (*(code *)PTR___freading_00031354)();\n    if ((iVar1 != 0) && ((*param_1 & 0x100) != 0)) {\n      rpl_fseeko(param_1,param_2,0,0,1);\n                    \n                    \n      (*(code *)PTR_fflush_000313d8)(param_1);\n      return;\n    }\n  }\n                    \n                    \n  (*(code *)PTR_fflush_000313d8)(param_1);\n  return;\n}" primitive_type (function_declarator "rpl_fflush(uint *param_1,undefined4 param_2)" identifier (parameter_list "(uint *param_1,undefined4 param_2)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 != (uint *)0x0) {\n    iVar1 = (*(code *)PTR___freading_00031354)();\n    if ((iVar1 != 0) && ((*param_1 & 0x100) != 0)) {\n      rpl_fseeko(param_1,param_2,0,0,1);\n                    \n                    \n      (*(code *)PTR_fflush_000313d8)(param_1);\n      return;\n    }\n  }\n                    \n                    \n  (*(code *)PTR_fflush_000313d8)(param_1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_1 != (uint *)0x0) {\n    iVar1 = (*(code *)PTR___freading_00031354)();\n    if ((iVar1 != 0) && ((*param_1 & 0x100) != 0)) {\n      rpl_fseeko(param_1,param_2,0,0,1);\n                    \n                    \n      (*(code *)PTR_fflush_000313d8)(param_1);\n      return;\n    }\n  }" if (parenthesized_expression "(param_1 != (uint *)0x0)" ( (binary_expression "param_1 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = (*(code *)PTR___freading_00031354)();\n    if ((iVar1 != 0) && ((*param_1 & 0x100) != 0)) {\n      rpl_fseeko(param_1,param_2,0,0,1);\n                    \n                    \n      (*(code *)PTR_fflush_000313d8)(param_1);\n      return;\n    }\n  }" { (expression_statement "iVar1 = (*(code *)PTR___freading_00031354)();" (assignment_expression "iVar1 = (*(code *)PTR___freading_00031354)()" identifier = (call_expression "(*(code *)PTR___freading_00031354)()" (parenthesized_expression "(*(code *)PTR___freading_00031354)" ( (pointer_expression "*(code *)PTR___freading_00031354" * (cast_expression "(code *)PTR___freading_00031354" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 != 0) && ((*param_1 & 0x100) != 0)) {\n      rpl_fseeko(param_1,param_2,0,0,1);\n                    \n                    \n      (*(code *)PTR_fflush_000313d8)(param_1);\n      return;\n    }" if (parenthesized_expression "((iVar1 != 0) && ((*param_1 & 0x100) != 0))" ( (binary_expression "(iVar1 != 0) && ((*param_1 & 0x100) != 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "((*param_1 & 0x100) != 0)" ( (binary_expression "(*param_1 & 0x100) != 0" (parenthesized_expression "(*param_1 & 0x100)" ( (binary_expression "*param_1 & 0x100" (pointer_expression "*param_1" * identifier) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n      rpl_fseeko(param_1,param_2,0,0,1);\n                    \n                    \n      (*(code *)PTR_fflush_000313d8)(param_1);\n      return;\n    }" { (expression_statement "rpl_fseeko(param_1,param_2,0,0,1);" (call_expression "rpl_fseeko(param_1,param_2,0,0,1)" identifier (argument_list "(param_1,param_2,0,0,1)" ( identifier , identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "(*(code *)PTR_fflush_000313d8)(param_1);" (call_expression "(*(code *)PTR_fflush_000313d8)(param_1)" (parenthesized_expression "(*(code *)PTR_fflush_000313d8)" ( (pointer_expression "*(code *)PTR_fflush_000313d8" * (cast_expression "(code *)PTR_fflush_000313d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })) })) (expression_statement "(*(code *)PTR_fflush_000313d8)(param_1);" (call_expression "(*(code *)PTR_fflush_000313d8)(param_1)" (parenthesized_expression "(*(code *)PTR_fflush_000313d8)" ( (pointer_expression "*(code *)PTR_fflush_000313d8" * (cast_expression "(code *)PTR_fflush_000313d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) & LIT) )) != LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , LIT , LIT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return ;) })) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void rpl_fflush(uint *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  if (param_1 != (uint *)0x0) {\n    iVar1 = (*(code *)PTR___freading_00031354)();\n    if ((iVar1 != 0) && ((*param_1 & 0x100) != 0)) {\n      rpl_fseeko(param_1,param_2,0,0,1);\n                    \n                    \n      (*(code *)PTR_fflush_000313d8)(param_1);\n      return;\n    }\n  }\n                    \n                    \n  (*(code *)PTR_fflush_000313d8)(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "rpl_fflush(uint *param_1,undefined4 param_2)" (identifier "rpl_fflush") (parameter_list "(uint *param_1,undefined4 param_2)" (( "(") (parameter_declaration "uint *param_1" (type_identifier "uint") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 != (uint *)0x0) {\n    iVar1 = (*(code *)PTR___freading_00031354)();\n    if ((iVar1 != 0) && ((*param_1 & 0x100) != 0)) {\n      rpl_fseeko(param_1,param_2,0,0,1);\n                    \n                    \n      (*(code *)PTR_fflush_000313d8)(param_1);\n      return;\n    }\n  }\n                    \n                    \n  (*(code *)PTR_fflush_000313d8)(param_1);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (param_1 != (uint *)0x0) {\n    iVar1 = (*(code *)PTR___freading_00031354)();\n    if ((iVar1 != 0) && ((*param_1 & 0x100) != 0)) {\n      rpl_fseeko(param_1,param_2,0,0,1);\n                    \n                    \n      (*(code *)PTR_fflush_000313d8)(param_1);\n      return;\n    }\n  }" (if "if") (parenthesized_expression "(param_1 != (uint *)0x0)" (( "(") (binary_expression "param_1 != (uint *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar1 = (*(code *)PTR___freading_00031354)();\n    if ((iVar1 != 0) && ((*param_1 & 0x100) != 0)) {\n      rpl_fseeko(param_1,param_2,0,0,1);\n                    \n                    \n      (*(code *)PTR_fflush_000313d8)(param_1);\n      return;\n    }\n  }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR___freading_00031354)();" (assignment_expression "iVar1 = (*(code *)PTR___freading_00031354)()" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR___freading_00031354)()" (parenthesized_expression "(*(code *)PTR___freading_00031354)" (( "(") (pointer_expression "*(code *)PTR___freading_00031354" (* "*") (cast_expression "(code *)PTR___freading_00031354" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___freading_00031354"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((iVar1 != 0) && ((*param_1 & 0x100) != 0)) {\n      rpl_fseeko(param_1,param_2,0,0,1);\n                    \n                    \n      (*(code *)PTR_fflush_000313d8)(param_1);\n      return;\n    }" (if "if") (parenthesized_expression "((iVar1 != 0) && ((*param_1 & 0x100) != 0))" (( "(") (binary_expression "(iVar1 != 0) && ((*param_1 & 0x100) != 0)" (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((*param_1 & 0x100) != 0)" (( "(") (binary_expression "(*param_1 & 0x100) != 0" (parenthesized_expression "(*param_1 & 0x100)" (( "(") (binary_expression "*param_1 & 0x100" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (& "&") (number_literal "0x100")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      rpl_fseeko(param_1,param_2,0,0,1);\n                    \n                    \n      (*(code *)PTR_fflush_000313d8)(param_1);\n      return;\n    }" ({ "{") (expression_statement "rpl_fseeko(param_1,param_2,0,0,1);" (call_expression "rpl_fseeko(param_1,param_2,0,0,1)" (identifier "rpl_fseeko") (argument_list "(param_1,param_2,0,0,1)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_fflush_000313d8)(param_1);" (call_expression "(*(code *)PTR_fflush_000313d8)(param_1)" (parenthesized_expression "(*(code *)PTR_fflush_000313d8)" (( "(") (pointer_expression "*(code *)PTR_fflush_000313d8" (* "*") (cast_expression "(code *)PTR_fflush_000313d8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fflush_000313d8"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (expression_statement "(*(code *)PTR_fflush_000313d8)(param_1);" (call_expression "(*(code *)PTR_fflush_000313d8)(param_1)" (parenthesized_expression "(*(code *)PTR_fflush_000313d8)" (( "(") (pointer_expression "*(code *)PTR_fflush_000313d8" (* "*") (cast_expression "(code *)PTR_fflush_000313d8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fflush_000313d8"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) right: (number_literal))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal) (number_literal) (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 (identifier)))) (return_statement))))) (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 (identifier)))) (return_statement))))

void MASKED(uint *param_1,undefined4 param_2)

{
  int iVar1;
  
  if (param_1 != (uint *)0x0) {
    iVar1 = (*(code *)PTR___freading_00031354)();
    if ((iVar1 != 0) && ((*param_1 & 0x100) != 0)) {
      rpl_fseeko(param_1,param_2,0,0,1);
                    /* WARNING: Could not recover jumptable at 0x0001b6dc. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      (*(code *)PTR_fflush_000313d8)(param_1);
      return;
    }
  }
                    /* WARNING: Could not recover jumptable at 0x0001b6a8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*(code *)PTR_fflush_000313d8)(param_1);
  return;
}

