
int randread_free(randread_source *s)

{
  int iVar1;
  FILE *fp;
  
  fp = s->source;
  (*(code *)PTR___explicit_bzero_chk_000434e0)(s,0x81c,0xffffffff);
  (*(code *)PTR_free_0004363c)(s);
  if (fp != (FILE *)0x0) {
    iVar1 = rpl_fclose(fp);
    return iVar1;
  }
  return 0;
}



undefined4 randread_free(int *param_1)

{
  undefined4 uVar1;
  int iVar2;
  
  iVar2 = *param_1;
  (*(code *)PTR___explicit_bzero_chk_000434e0)(param_1,0x81c,0xffffffff);
  (*(code *)PTR_free_0004363c)(param_1);
  if (iVar2 != 0) {
    uVar1 = rpl_fclose(iVar2);
    return uVar1;
  }
  return 0;
}


lui gp,0x2
addiu gp,gp,-0x30e8
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x7c10(gp)
li a2,-0x1
li a1,0x81c
sw gp,0x10(sp)
sw ra,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
or s0,a0,zero
jalr t9
_lw s1,0x0(a0)
lw gp,0x10(sp)
lw t9,-0x7ab4(gp)
jalr t9
_or a0,s0,zero
beq s1,zero,0x0002e244
_lw gp,0x10(sp)
lw ra,0x24(sp)
or a0,s1,zero
lw s0,0x1c(sp)
lw s1,0x20(sp)
lw t9,-0x7d1c(gp)
b 0x0002e740
_addiu sp,sp,0x28
lw ra,0x24(sp)
or v0,zero,zero
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "undefined4 randread_free(int *param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = *param_1;\n  (*(code *)PTR___explicit_bzero_chk_000434e0)(param_1,0x81c,0xffffffff);\n  (*(code *)PTR_free_0004363c)(param_1);\n  if (iVar2 != 0) {\n    uVar1 = rpl_fclose(iVar2);\n    return uVar1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 randread_free(int *param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = *param_1;\n  (*(code *)PTR___explicit_bzero_chk_000434e0)(param_1,0x81c,0xffffffff);\n  (*(code *)PTR_free_0004363c)(param_1);\n  if (iVar2 != 0) {\n    uVar1 = rpl_fclose(iVar2);\n    return uVar1;\n  }\n  return 0;\n}" type_identifier (function_declarator "randread_free(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = *param_1;\n  (*(code *)PTR___explicit_bzero_chk_000434e0)(param_1,0x81c,0xffffffff);\n  (*(code *)PTR_free_0004363c)(param_1);\n  if (iVar2 != 0) {\n    uVar1 = rpl_fclose(iVar2);\n    return uVar1;\n  }\n  return 0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "(*(code *)PTR___explicit_bzero_chk_000434e0)(param_1,0x81c,0xffffffff);" (call_expression "(*(code *)PTR___explicit_bzero_chk_000434e0)(param_1,0x81c,0xffffffff)" (parenthesized_expression "(*(code *)PTR___explicit_bzero_chk_000434e0)" ( (pointer_expression "*(code *)PTR___explicit_bzero_chk_000434e0" * (cast_expression "(code *)PTR___explicit_bzero_chk_000434e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,0x81c,0xffffffff)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "(*(code *)PTR_free_0004363c)(param_1);" (call_expression "(*(code *)PTR_free_0004363c)(param_1)" (parenthesized_expression "(*(code *)PTR_free_0004363c)" ( (pointer_expression "*(code *)PTR_free_0004363c" * (cast_expression "(code *)PTR_free_0004363c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))) ;) (if_statement "if (iVar2 != 0) {\n    uVar1 = rpl_fclose(iVar2);\n    return uVar1;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar1 = rpl_fclose(iVar2);\n    return uVar1;\n  }" { (expression_statement "uVar1 = rpl_fclose(iVar2);" (assignment_expression "uVar1 = rpl_fclose(iVar2)" identifier = (call_expression "rpl_fclose(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;) (return_statement "return uVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int randread_free(randread_source *s)\n\n{\n  int iVar1;\n  FILE *fp;\n  \n  fp = s->source;\n  (*(code *)PTR___explicit_bzero_chk_000434e0)(s,0x81c,0xffffffff);\n  (*(code *)PTR_free_0004363c)(s);\n  if (fp != (FILE *)0x0) {\n    iVar1 = rpl_fclose(fp);\n    return iVar1;\n  }\n  return 0;\n}\n\n" (function_definition "int randread_free(randread_source *s)\n\n{\n  int iVar1;\n  FILE *fp;\n  \n  fp = s->source;\n  (*(code *)PTR___explicit_bzero_chk_000434e0)(s,0x81c,0xffffffff);\n  (*(code *)PTR_free_0004363c)(s);\n  if (fp != (FILE *)0x0) {\n    iVar1 = rpl_fclose(fp);\n    return iVar1;\n  }\n  return 0;\n}" primitive_type (function_declarator "randread_free(randread_source *s)" identifier (parameter_list "(randread_source *s)" ( (parameter_declaration "randread_source *s" type_identifier (pointer_declarator "*s" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  FILE *fp;\n  \n  fp = s->source;\n  (*(code *)PTR___explicit_bzero_chk_000434e0)(s,0x81c,0xffffffff);\n  (*(code *)PTR_free_0004363c)(s);\n  if (fp != (FILE *)0x0) {\n    iVar1 = rpl_fclose(fp);\n    return iVar1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "FILE *fp;" type_identifier (pointer_declarator "*fp" * identifier) ;) (expression_statement "fp = s->source;" (assignment_expression "fp = s->source" identifier = (field_expression "s->source" identifier -> field_identifier)) ;) (expression_statement "(*(code *)PTR___explicit_bzero_chk_000434e0)(s,0x81c,0xffffffff);" (call_expression "(*(code *)PTR___explicit_bzero_chk_000434e0)(s,0x81c,0xffffffff)" (parenthesized_expression "(*(code *)PTR___explicit_bzero_chk_000434e0)" ( (pointer_expression "*(code *)PTR___explicit_bzero_chk_000434e0" * (cast_expression "(code *)PTR___explicit_bzero_chk_000434e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(s,0x81c,0xffffffff)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "(*(code *)PTR_free_0004363c)(s);" (call_expression "(*(code *)PTR_free_0004363c)(s)" (parenthesized_expression "(*(code *)PTR_free_0004363c)" ( (pointer_expression "*(code *)PTR_free_0004363c" * (cast_expression "(code *)PTR_free_0004363c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(s)" ( identifier ))) ;) (if_statement "if (fp != (FILE *)0x0) {\n    iVar1 = rpl_fclose(fp);\n    return iVar1;\n  }" if (parenthesized_expression "(fp != (FILE *)0x0)" ( (binary_expression "fp != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = rpl_fclose(fp);\n    return iVar1;\n  }" { (expression_statement "iVar1 = rpl_fclose(fp);" (assignment_expression "iVar1 = rpl_fclose(fp)" identifier = (call_expression "rpl_fclose(fp)" identifier (argument_list "(fp)" ( identifier )))) ;) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 randread_free(int *param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = *param_1;\n  (*(code *)PTR___explicit_bzero_chk_000434e0)(param_1,0x81c,0xffffffff);\n  (*(code *)PTR_free_0004363c)(param_1);\n  if (iVar2 != 0) {\n    uVar1 = rpl_fclose(iVar2);\n    return uVar1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 randread_free(int *param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = *param_1;\n  (*(code *)PTR___explicit_bzero_chk_000434e0)(param_1,0x81c,0xffffffff);\n  (*(code *)PTR_free_0004363c)(param_1);\n  if (iVar2 != 0) {\n    uVar1 = rpl_fclose(iVar2);\n    return uVar1;\n  }\n  return 0;\n}" type_identifier (function_declarator "randread_free(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = *param_1;\n  (*(code *)PTR___explicit_bzero_chk_000434e0)(param_1,0x81c,0xffffffff);\n  (*(code *)PTR_free_0004363c)(param_1);\n  if (iVar2 != 0) {\n    uVar1 = rpl_fclose(iVar2);\n    return uVar1;\n  }\n  return 0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "(*(code *)PTR___explicit_bzero_chk_000434e0)(param_1,0x81c,0xffffffff);" (call_expression "(*(code *)PTR___explicit_bzero_chk_000434e0)(param_1,0x81c,0xffffffff)" (parenthesized_expression "(*(code *)PTR___explicit_bzero_chk_000434e0)" ( (pointer_expression "*(code *)PTR___explicit_bzero_chk_000434e0" * (cast_expression "(code *)PTR___explicit_bzero_chk_000434e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,0x81c,0xffffffff)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "(*(code *)PTR_free_0004363c)(param_1);" (call_expression "(*(code *)PTR_free_0004363c)(param_1)" (parenthesized_expression "(*(code *)PTR_free_0004363c)" ( (pointer_expression "*(code *)PTR_free_0004363c" * (cast_expression "(code *)PTR_free_0004363c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))) ;) (if_statement "if (iVar2 != 0) {\n    uVar1 = rpl_fclose(iVar2);\n    return uVar1;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar1 = rpl_fclose(iVar2);\n    return uVar1;\n  }" { (expression_statement "uVar1 = rpl_fclose(iVar2);" (assignment_expression "uVar1 = rpl_fclose(iVar2)" identifier = (call_expression "rpl_fclose(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;) (return_statement "return uVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 randread_free(int *param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = *param_1;\n  (*(code *)PTR___explicit_bzero_chk_000434e0)(param_1,0x81c,0xffffffff);\n  (*(code *)PTR_free_0004363c)(param_1);\n  if (iVar2 != 0) {\n    uVar1 = rpl_fclose(iVar2);\n    return uVar1;\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "randread_free(int *param_1)" (identifier "randread_free") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = *param_1;\n  (*(code *)PTR___explicit_bzero_chk_000434e0)(param_1,0x81c,0xffffffff);\n  (*(code *)PTR_free_0004363c)(param_1);\n  if (iVar2 != 0) {\n    uVar1 = rpl_fclose(iVar2);\n    return uVar1;\n  }\n  return 0;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" (identifier "iVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "(*(code *)PTR___explicit_bzero_chk_000434e0)(param_1,0x81c,0xffffffff);" (call_expression "(*(code *)PTR___explicit_bzero_chk_000434e0)(param_1,0x81c,0xffffffff)" (parenthesized_expression "(*(code *)PTR___explicit_bzero_chk_000434e0)" (( "(") (pointer_expression "*(code *)PTR___explicit_bzero_chk_000434e0" (* "*") (cast_expression "(code *)PTR___explicit_bzero_chk_000434e0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___explicit_bzero_chk_000434e0"))) () ")")) (argument_list "(param_1,0x81c,0xffffffff)" (( "(") (identifier "param_1") (, ",") (number_literal "0x81c") (, ",") (number_literal "0xffffffff") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_free_0004363c)(param_1);" (call_expression "(*(code *)PTR_free_0004363c)(param_1)" (parenthesized_expression "(*(code *)PTR_free_0004363c)" (( "(") (pointer_expression "*(code *)PTR_free_0004363c" (* "*") (cast_expression "(code *)PTR_free_0004363c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0004363c"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (if_statement "if (iVar2 != 0) {\n    uVar1 = rpl_fclose(iVar2);\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = rpl_fclose(iVar2);\n    return uVar1;\n  }" ({ "{") (expression_statement "uVar1 = rpl_fclose(iVar2);" (assignment_expression "uVar1 = rpl_fclose(iVar2)" (identifier "uVar1") (= "=") (call_expression "rpl_fclose(iVar2)" (identifier "rpl_fclose") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int function_1(type_1 *s)

{
  int iVar1;
  type_2 *var_1;
  
  var_1 = s->source;
  (*(type_3 *)PTR___explicit_bzero_chk_000434e0)(s,0x81c,0xffffffff);
  (*(type_3 *)PTR_free_0004363c)(s);
  if (var_1 != (type_2 *)0x0) {
    iVar1 = var_2(var_1);
    return iVar1;
  }
  return 0;
}


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

undefined4 MASKED(int *param_1)

{
  undefined4 uVar1;
  int iVar2;
  
  iVar2 = *param_1;
  (*(code *)PTR___explicit_bzero_chk_000434e0)(param_1,0x81c,0xffffffff);
  (*(code *)PTR_free_0004363c)(param_1);
  if (iVar2 != 0) {
    uVar1 = rpl_fclose(iVar2);
    return uVar1;
  }
  return 0;
}

