
int rpl_fflush(FILE *stream)

{
  int iVar1;
  int in_a1;
  undefined4 in_stack_ffffffec;
  
  if ((stream == (FILE *)0x0) || (iVar1 = (*(code *)PTR___freading_000332f0)(), iVar1 == 0)) {
    iVar1 = (*(code *)PTR_fflush_00033370)(stream);
  }
  else {
    if ((stream->_flags & 0x100U) != 0) {
      rpl_fseeko(stream,CONCAT44(1,in_stack_ffffffec),in_a1);
    }
    iVar1 = (*(code *)PTR_fflush_00033370)(stream);
  }
  return iVar1;
}



void rpl_fflush(uint *param_1,undefined4 param_2)

{
  int iVar1;
  
  if ((param_1 == (uint *)0x0) || (iVar1 = (*(code *)PTR___freading_000332f0)(), iVar1 == 0)) {
    (*(code *)PTR_fflush_00033370)(param_1);
  }
  else {
    if ((*param_1 & 0x100) != 0) {
      rpl_fseeko(param_1,param_2,0,0,1);
    }
    (*(code *)PTR_fflush_00033370)(param_1);
  }
  return;
}


lui gp,0x2
addiu gp,gp,-0x2a90
addu gp,gp,t9
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s0,0x20(sp)
sw gp,0x18(sp)
beq a0,zero,0x0001db6c
_or s0,a0,zero
lw t9,-0x7db0(gp)
jalr t9
_nop
lw gp,0x18(sp)
bne v0,zero,0x0001db90
_nop
or a0,s0,zero
lw t9,-0x7d30(gp)
jalr t9
_nop
lw gp,0x18(sp)
lw ra,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x28
lw v0,0x0(s0)
andi v0,v0,0x100
bne v0,zero,0x0001dbbc
_or a3,zero,zero
or a0,s0,zero
lw t9,-0x7d30(gp)
jalr t9
_nop
lw gp,0x18(sp)
b 0x0001db84
_lw ra,0x24(sp)
li v0,0x1
sw v0,0x10(sp)
or a2,zero,zero
or a0,s0,zero
lw t9,-0x7f1c(gp)
bal 0x0001dc40
_nop
lw gp,0x18(sp)
b 0x0001dba4
_or a0,s0,zero
(translation_unit "void rpl_fflush(uint *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  if ((param_1 == (uint *)0x0) || (iVar1 = (*(code *)PTR___freading_000332f0)(), iVar1 == 0)) {\n    (*(code *)PTR_fflush_00033370)(param_1);\n  }\n  else {\n    if ((*param_1 & 0x100) != 0) {\n      rpl_fseeko(param_1,param_2,0,0,1);\n    }\n    (*(code *)PTR_fflush_00033370)(param_1);\n  }\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) || (iVar1 = (*(code *)PTR___freading_000332f0)(), iVar1 == 0)) {\n    (*(code *)PTR_fflush_00033370)(param_1);\n  }\n  else {\n    if ((*param_1 & 0x100) != 0) {\n      rpl_fseeko(param_1,param_2,0,0,1);\n    }\n    (*(code *)PTR_fflush_00033370)(param_1);\n  }\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) || (iVar1 = (*(code *)PTR___freading_000332f0)(), iVar1 == 0)) {\n    (*(code *)PTR_fflush_00033370)(param_1);\n  }\n  else {\n    if ((*param_1 & 0x100) != 0) {\n      rpl_fseeko(param_1,param_2,0,0,1);\n    }\n    (*(code *)PTR_fflush_00033370)(param_1);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if ((param_1 == (uint *)0x0) || (iVar1 = (*(code *)PTR___freading_000332f0)(), iVar1 == 0)) {\n    (*(code *)PTR_fflush_00033370)(param_1);\n  }\n  else {\n    if ((*param_1 & 0x100) != 0) {\n      rpl_fseeko(param_1,param_2,0,0,1);\n    }\n    (*(code *)PTR_fflush_00033370)(param_1);\n  }" if (parenthesized_expression "((param_1 == (uint *)0x0) || (iVar1 = (*(code *)PTR___freading_000332f0)(), iVar1 == 0))" ( (binary_expression "(param_1 == (uint *)0x0) || (iVar1 = (*(code *)PTR___freading_000332f0)(), iVar1 == 0)" (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)) )) || (parenthesized_expression "(iVar1 = (*(code *)PTR___freading_000332f0)(), iVar1 == 0)" ( (comma_expression "iVar1 = (*(code *)PTR___freading_000332f0)(), iVar1 == 0" (assignment_expression "iVar1 = (*(code *)PTR___freading_000332f0)()" identifier = (call_expression "(*(code *)PTR___freading_000332f0)()" (parenthesized_expression "(*(code *)PTR___freading_000332f0)" ( (pointer_expression "*(code *)PTR___freading_000332f0" * (cast_expression "(code *)PTR___freading_000332f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    (*(code *)PTR_fflush_00033370)(param_1);\n  }" { (expression_statement "(*(code *)PTR_fflush_00033370)(param_1);" (call_expression "(*(code *)PTR_fflush_00033370)(param_1)" (parenthesized_expression "(*(code *)PTR_fflush_00033370)" ( (pointer_expression "*(code *)PTR_fflush_00033370" * (cast_expression "(code *)PTR_fflush_00033370" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))) ;) }) (else_clause "else {\n    if ((*param_1 & 0x100) != 0) {\n      rpl_fseeko(param_1,param_2,0,0,1);\n    }\n    (*(code *)PTR_fflush_00033370)(param_1);\n  }" else (compound_statement "{\n    if ((*param_1 & 0x100) != 0) {\n      rpl_fseeko(param_1,param_2,0,0,1);\n    }\n    (*(code *)PTR_fflush_00033370)(param_1);\n  }" { (if_statement "if ((*param_1 & 0x100) != 0) {\n      rpl_fseeko(param_1,param_2,0,0,1);\n    }" if (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    }" { (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_00033370)(param_1);" (call_expression "(*(code *)PTR_fflush_00033370)(param_1)" (parenthesized_expression "(*(code *)PTR_fflush_00033370)" ( (pointer_expression "*(code *)PTR_fflush_00033370" * (cast_expression "(code *)PTR_fflush_00033370" ( (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) || (iVar1 = (*(code *)PTR___freading_000332f0)(), iVar1 == 0)) {\n    iVar1 = (*(code *)PTR_fflush_00033370)(stream);\n  }\n  else {\n    if ((stream->_flags & 0x100U) != 0) {\n      rpl_fseeko(stream,CONCAT44(1,in_stack_ffffffec),in_a1);\n    }\n    iVar1 = (*(code *)PTR_fflush_00033370)(stream);\n  }\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) || (iVar1 = (*(code *)PTR___freading_000332f0)(), iVar1 == 0)) {\n    iVar1 = (*(code *)PTR_fflush_00033370)(stream);\n  }\n  else {\n    if ((stream->_flags & 0x100U) != 0) {\n      rpl_fseeko(stream,CONCAT44(1,in_stack_ffffffec),in_a1);\n    }\n    iVar1 = (*(code *)PTR_fflush_00033370)(stream);\n  }\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) || (iVar1 = (*(code *)PTR___freading_000332f0)(), iVar1 == 0)) {\n    iVar1 = (*(code *)PTR_fflush_00033370)(stream);\n  }\n  else {\n    if ((stream->_flags & 0x100U) != 0) {\n      rpl_fseeko(stream,CONCAT44(1,in_stack_ffffffec),in_a1);\n    }\n    iVar1 = (*(code *)PTR_fflush_00033370)(stream);\n  }\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) || (iVar1 = (*(code *)PTR___freading_000332f0)(), iVar1 == 0)) {\n    iVar1 = (*(code *)PTR_fflush_00033370)(stream);\n  }\n  else {\n    if ((stream->_flags & 0x100U) != 0) {\n      rpl_fseeko(stream,CONCAT44(1,in_stack_ffffffec),in_a1);\n    }\n    iVar1 = (*(code *)PTR_fflush_00033370)(stream);\n  }" if (parenthesized_expression "((stream == (FILE *)0x0) || (iVar1 = (*(code *)PTR___freading_000332f0)(), iVar1 == 0))" ( (binary_expression "(stream == (FILE *)0x0) || (iVar1 = (*(code *)PTR___freading_000332f0)(), iVar1 == 0)" (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)) )) || (parenthesized_expression "(iVar1 = (*(code *)PTR___freading_000332f0)(), iVar1 == 0)" ( (comma_expression "iVar1 = (*(code *)PTR___freading_000332f0)(), iVar1 == 0" (assignment_expression "iVar1 = (*(code *)PTR___freading_000332f0)()" identifier = (call_expression "(*(code *)PTR___freading_000332f0)()" (parenthesized_expression "(*(code *)PTR___freading_000332f0)" ( (pointer_expression "*(code *)PTR___freading_000332f0" * (cast_expression "(code *)PTR___freading_000332f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_fflush_00033370)(stream);\n  }" { (expression_statement "iVar1 = (*(code *)PTR_fflush_00033370)(stream);" (assignment_expression "iVar1 = (*(code *)PTR_fflush_00033370)(stream)" identifier = (call_expression "(*(code *)PTR_fflush_00033370)(stream)" (parenthesized_expression "(*(code *)PTR_fflush_00033370)" ( (pointer_expression "*(code *)PTR_fflush_00033370" * (cast_expression "(code *)PTR_fflush_00033370" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(stream)" ( identifier )))) ;) }) (else_clause "else {\n    if ((stream->_flags & 0x100U) != 0) {\n      rpl_fseeko(stream,CONCAT44(1,in_stack_ffffffec),in_a1);\n    }\n    iVar1 = (*(code *)PTR_fflush_00033370)(stream);\n  }" else (compound_statement "{\n    if ((stream->_flags & 0x100U) != 0) {\n      rpl_fseeko(stream,CONCAT44(1,in_stack_ffffffec),in_a1);\n    }\n    iVar1 = (*(code *)PTR_fflush_00033370)(stream);\n  }" { (if_statement "if ((stream->_flags & 0x100U) != 0) {\n      rpl_fseeko(stream,CONCAT44(1,in_stack_ffffffec),in_a1);\n    }" if (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    }" { (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 ))) ;) })) (expression_statement "iVar1 = (*(code *)PTR_fflush_00033370)(stream);" (assignment_expression "iVar1 = (*(code *)PTR_fflush_00033370)(stream)" identifier = (call_expression "(*(code *)PTR_fflush_00033370)(stream)" (parenthesized_expression "(*(code *)PTR_fflush_00033370)" ( (pointer_expression "*(code *)PTR_fflush_00033370" * (cast_expression "(code *)PTR_fflush_00033370" ( (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) || (iVar1 = (*(code *)PTR___freading_000332f0)(), iVar1 == 0)) {\n    (*(code *)PTR_fflush_00033370)(param_1);\n  }\n  else {\n    if ((*param_1 & 0x100) != 0) {\n      rpl_fseeko(param_1,param_2,0,0,1);\n    }\n    (*(code *)PTR_fflush_00033370)(param_1);\n  }\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) || (iVar1 = (*(code *)PTR___freading_000332f0)(), iVar1 == 0)) {\n    (*(code *)PTR_fflush_00033370)(param_1);\n  }\n  else {\n    if ((*param_1 & 0x100) != 0) {\n      rpl_fseeko(param_1,param_2,0,0,1);\n    }\n    (*(code *)PTR_fflush_00033370)(param_1);\n  }\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) || (iVar1 = (*(code *)PTR___freading_000332f0)(), iVar1 == 0)) {\n    (*(code *)PTR_fflush_00033370)(param_1);\n  }\n  else {\n    if ((*param_1 & 0x100) != 0) {\n      rpl_fseeko(param_1,param_2,0,0,1);\n    }\n    (*(code *)PTR_fflush_00033370)(param_1);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if ((param_1 == (uint *)0x0) || (iVar1 = (*(code *)PTR___freading_000332f0)(), iVar1 == 0)) {\n    (*(code *)PTR_fflush_00033370)(param_1);\n  }\n  else {\n    if ((*param_1 & 0x100) != 0) {\n      rpl_fseeko(param_1,param_2,0,0,1);\n    }\n    (*(code *)PTR_fflush_00033370)(param_1);\n  }" if (parenthesized_expression "((param_1 == (uint *)0x0) || (iVar1 = (*(code *)PTR___freading_000332f0)(), iVar1 == 0))" ( (binary_expression "(param_1 == (uint *)0x0) || (iVar1 = (*(code *)PTR___freading_000332f0)(), iVar1 == 0)" (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)) )) || (parenthesized_expression "(iVar1 = (*(code *)PTR___freading_000332f0)(), iVar1 == 0)" ( (comma_expression "iVar1 = (*(code *)PTR___freading_000332f0)(), iVar1 == 0" (assignment_expression "iVar1 = (*(code *)PTR___freading_000332f0)()" identifier = (call_expression "(*(code *)PTR___freading_000332f0)()" (parenthesized_expression "(*(code *)PTR___freading_000332f0)" ( (pointer_expression "*(code *)PTR___freading_000332f0" * (cast_expression "(code *)PTR___freading_000332f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    (*(code *)PTR_fflush_00033370)(param_1);\n  }" { (expression_statement "(*(code *)PTR_fflush_00033370)(param_1);" (call_expression "(*(code *)PTR_fflush_00033370)(param_1)" (parenthesized_expression "(*(code *)PTR_fflush_00033370)" ( (pointer_expression "*(code *)PTR_fflush_00033370" * (cast_expression "(code *)PTR_fflush_00033370" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))) ;) }) (else_clause "else {\n    if ((*param_1 & 0x100) != 0) {\n      rpl_fseeko(param_1,param_2,0,0,1);\n    }\n    (*(code *)PTR_fflush_00033370)(param_1);\n  }" else (compound_statement "{\n    if ((*param_1 & 0x100) != 0) {\n      rpl_fseeko(param_1,param_2,0,0,1);\n    }\n    (*(code *)PTR_fflush_00033370)(param_1);\n  }" { (if_statement "if ((*param_1 & 0x100) != 0) {\n      rpl_fseeko(param_1,param_2,0,0,1);\n    }" if (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    }" { (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_00033370)(param_1);" (call_expression "(*(code *)PTR_fflush_00033370)(param_1)" (parenthesized_expression "(*(code *)PTR_fflush_00033370)" ( (pointer_expression "*(code *)PTR_fflush_00033370" * (cast_expression "(code *)PTR_fflush_00033370" ( (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 (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) }) (else_clause else (compound_statement { (if_statement if (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 ;) })))
(function_definition "void rpl_fflush(uint *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  if ((param_1 == (uint *)0x0) || (iVar1 = (*(code *)PTR___freading_000332f0)(), iVar1 == 0)) {\n    (*(code *)PTR_fflush_00033370)(param_1);\n  }\n  else {\n    if ((*param_1 & 0x100) != 0) {\n      rpl_fseeko(param_1,param_2,0,0,1);\n    }\n    (*(code *)PTR_fflush_00033370)(param_1);\n  }\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) || (iVar1 = (*(code *)PTR___freading_000332f0)(), iVar1 == 0)) {\n    (*(code *)PTR_fflush_00033370)(param_1);\n  }\n  else {\n    if ((*param_1 & 0x100) != 0) {\n      rpl_fseeko(param_1,param_2,0,0,1);\n    }\n    (*(code *)PTR_fflush_00033370)(param_1);\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if ((param_1 == (uint *)0x0) || (iVar1 = (*(code *)PTR___freading_000332f0)(), iVar1 == 0)) {\n    (*(code *)PTR_fflush_00033370)(param_1);\n  }\n  else {\n    if ((*param_1 & 0x100) != 0) {\n      rpl_fseeko(param_1,param_2,0,0,1);\n    }\n    (*(code *)PTR_fflush_00033370)(param_1);\n  }" (if "if") (parenthesized_expression "((param_1 == (uint *)0x0) || (iVar1 = (*(code *)PTR___freading_000332f0)(), iVar1 == 0))" (( "(") (binary_expression "(param_1 == (uint *)0x0) || (iVar1 = (*(code *)PTR___freading_000332f0)(), iVar1 == 0)" (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"))) () ")")) (|| "||") (parenthesized_expression "(iVar1 = (*(code *)PTR___freading_000332f0)(), iVar1 == 0)" (( "(") (comma_expression "iVar1 = (*(code *)PTR___freading_000332f0)(), iVar1 == 0" (assignment_expression "iVar1 = (*(code *)PTR___freading_000332f0)()" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR___freading_000332f0)()" (parenthesized_expression "(*(code *)PTR___freading_000332f0)" (( "(") (pointer_expression "*(code *)PTR___freading_000332f0" (* "*") (cast_expression "(code *)PTR___freading_000332f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___freading_000332f0"))) () ")")) (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    (*(code *)PTR_fflush_00033370)(param_1);\n  }" ({ "{") (expression_statement "(*(code *)PTR_fflush_00033370)(param_1);" (call_expression "(*(code *)PTR_fflush_00033370)(param_1)" (parenthesized_expression "(*(code *)PTR_fflush_00033370)" (( "(") (pointer_expression "*(code *)PTR_fflush_00033370" (* "*") (cast_expression "(code *)PTR_fflush_00033370" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fflush_00033370"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    if ((*param_1 & 0x100) != 0) {\n      rpl_fseeko(param_1,param_2,0,0,1);\n    }\n    (*(code *)PTR_fflush_00033370)(param_1);\n  }" (else "else") (compound_statement "{\n    if ((*param_1 & 0x100) != 0) {\n      rpl_fseeko(param_1,param_2,0,0,1);\n    }\n    (*(code *)PTR_fflush_00033370)(param_1);\n  }" ({ "{") (if_statement "if ((*param_1 & 0x100) != 0) {\n      rpl_fseeko(param_1,param_2,0,0,1);\n    }" (if "if") (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    }" ({ "{") (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_00033370)(param_1);" (call_expression "(*(code *)PTR_fflush_00033370)(param_1)" (parenthesized_expression "(*(code *)PTR_fflush_00033370)" (( "(") (pointer_expression "*(code *)PTR_fflush_00033370" (* "*") (cast_expression "(code *)PTR_fflush_00033370" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fflush_00033370"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}")))

int function_1(type_1 *var_1)

{
  int var_2;
  int in_a1;
  type_2 in_stack_ffffffec;
  
  if ((var_1 == (type_1 *)0x0) || (var_2 = (*(type_3 *)PTR___freading_000332f0)(), var_2 == 0)) {
    var_2 = (*(type_3 *)PTR_fflush_00033370)(var_1);
  }
  else {
    if ((var_1->_flags & 0x100U) != 0) {
      var_3(var_1,var_4(1,in_stack_ffffffec),in_a1);
    }
    var_2 = (*(type_3 *)PTR_fflush_00033370)(var_1);
  }
  return var_2;
}


(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: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (comma_expression left: (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))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_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))))) alternative: (else_clause (compound_statement (if_statement condition: (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))))

void MASKED(uint *param_1,undefined4 param_2)

{
  int iVar1;
  
  if ((param_1 == (uint *)0x0) || (iVar1 = (*(code *)PTR___freading_000332f0)(), iVar1 == 0)) {
    (*(code *)PTR_fflush_00033370)(param_1);
  }
  else {
    if ((*param_1 & 0x100) != 0) {
      rpl_fseeko(param_1,param_2,0,0,1);
    }
    (*(code *)PTR_fflush_00033370)(param_1);
  }
  return;
}

