
int open_or_warn_stdin(char *filename)

{
  int iVar1;
  
  iVar1 = 0;
  if ((filename != PTR_bb_msg_standard_input_001313e0) &&
     ((*filename != '-' || (iVar1 = 0, filename[1] != '\0')))) {
    iVar1 = (*(code *)PTR_open_or_warn_00131400)(filename,0);
  }
  return iVar1;
}



undefined4 FUN_00102248(char *param_1)

{
  undefined4 uVar1;
  
  uVar1 = 0;
  if ((param_1 != PTR_s_standard_input_001313e0) &&
     ((*param_1 != '-' || (uVar1 = 0, param_1[1] != '\0')))) {
    uVar1 = (*(code *)PTR_FUN_00131400)(param_1,0);
  }
  return uVar1;
}


lui gp,0x3
addiu gp,gp,0x6f08
addu gp,gp,t9
addiu sp,sp,-0x20
sw ra,0x1c(sp)
sw gp,0x10(sp)
lw v1,-0x7d70(gp)
beq a0,v1,0x0010229c
_or v0,zero,zero
lbu v1,0x0(a0)
li v0,0x2d
bne v1,v0,0x0010228c
_or a1,zero,zero
lbu v1,0x1(a0)
beq v1,zero,0x0010229c
_or v0,zero,zero
or a1,zero,zero
lw t9,-0x7d50(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw ra,0x1c(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "undefined4 FUN_00102248(char *param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if ((param_1 != PTR_s_standard_input_001313e0) &&\n     ((*param_1 != '-' || (uVar1 = 0, param_1[1] != '\0')))) {\n    uVar1 = (*(code *)PTR_FUN_00131400)(param_1,0);\n  }\n  return uVar1;\n}\n\n" (function_definition "undefined4 FUN_00102248(char *param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if ((param_1 != PTR_s_standard_input_001313e0) &&\n     ((*param_1 != '-' || (uVar1 = 0, param_1[1] != '\0')))) {\n    uVar1 = (*(code *)PTR_FUN_00131400)(param_1,0);\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_00102248(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if ((param_1 != PTR_s_standard_input_001313e0) &&\n     ((*param_1 != '-' || (uVar1 = 0, param_1[1] != '\0')))) {\n    uVar1 = (*(code *)PTR_FUN_00131400)(param_1,0);\n  }\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (if_statement "if ((param_1 != PTR_s_standard_input_001313e0) &&\n     ((*param_1 != '-' || (uVar1 = 0, param_1[1] != '\0')))) {\n    uVar1 = (*(code *)PTR_FUN_00131400)(param_1,0);\n  }" if (parenthesized_expression "((param_1 != PTR_s_standard_input_001313e0) &&\n     ((*param_1 != '-' || (uVar1 = 0, param_1[1] != '\0'))))" ( (binary_expression "(param_1 != PTR_s_standard_input_001313e0) &&\n     ((*param_1 != '-' || (uVar1 = 0, param_1[1] != '\0')))" (parenthesized_expression "(param_1 != PTR_s_standard_input_001313e0)" ( (binary_expression "param_1 != PTR_s_standard_input_001313e0" identifier != identifier) )) && (parenthesized_expression "((*param_1 != '-' || (uVar1 = 0, param_1[1] != '\0')))" ( (parenthesized_expression "(*param_1 != '-' || (uVar1 = 0, param_1[1] != '\0'))" ( (binary_expression "*param_1 != '-' || (uVar1 = 0, param_1[1] != '\0')" (binary_expression "*param_1 != '-'" (pointer_expression "*param_1" * identifier) != (char_literal "'-'" ' character ')) || (parenthesized_expression "(uVar1 = 0, param_1[1] != '\0')" ( (comma_expression "uVar1 = 0, param_1[1] != '\0'" (assignment_expression "uVar1 = 0" identifier = number_literal) , (binary_expression "param_1[1] != '\0'" (subscript_expression "param_1[1]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence '))) ))) )) ))) )) (compound_statement "{\n    uVar1 = (*(code *)PTR_FUN_00131400)(param_1,0);\n  }" { (expression_statement "uVar1 = (*(code *)PTR_FUN_00131400)(param_1,0);" (assignment_expression "uVar1 = (*(code *)PTR_FUN_00131400)(param_1,0)" identifier = (call_expression "(*(code *)PTR_FUN_00131400)(param_1,0)" (parenthesized_expression "(*(code *)PTR_FUN_00131400)" ( (pointer_expression "*(code *)PTR_FUN_00131400" * (cast_expression "(code *)PTR_FUN_00131400" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "int open_or_warn_stdin(char *filename)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  if ((filename != PTR_bb_msg_standard_input_001313e0) &&\n     ((*filename != '-' || (iVar1 = 0, filename[1] != '\0')))) {\n    iVar1 = (*(code *)PTR_open_or_warn_00131400)(filename,0);\n  }\n  return iVar1;\n}\n\n" (function_definition "int open_or_warn_stdin(char *filename)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  if ((filename != PTR_bb_msg_standard_input_001313e0) &&\n     ((*filename != '-' || (iVar1 = 0, filename[1] != '\0')))) {\n    iVar1 = (*(code *)PTR_open_or_warn_00131400)(filename,0);\n  }\n  return iVar1;\n}" primitive_type (function_declarator "open_or_warn_stdin(char *filename)" identifier (parameter_list "(char *filename)" ( (parameter_declaration "char *filename" primitive_type (pointer_declarator "*filename" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = 0;\n  if ((filename != PTR_bb_msg_standard_input_001313e0) &&\n     ((*filename != '-' || (iVar1 = 0, filename[1] != '\0')))) {\n    iVar1 = (*(code *)PTR_open_or_warn_00131400)(filename,0);\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if ((filename != PTR_bb_msg_standard_input_001313e0) &&\n     ((*filename != '-' || (iVar1 = 0, filename[1] != '\0')))) {\n    iVar1 = (*(code *)PTR_open_or_warn_00131400)(filename,0);\n  }" if (parenthesized_expression "((filename != PTR_bb_msg_standard_input_001313e0) &&\n     ((*filename != '-' || (iVar1 = 0, filename[1] != '\0'))))" ( (binary_expression "(filename != PTR_bb_msg_standard_input_001313e0) &&\n     ((*filename != '-' || (iVar1 = 0, filename[1] != '\0')))" (parenthesized_expression "(filename != PTR_bb_msg_standard_input_001313e0)" ( (binary_expression "filename != PTR_bb_msg_standard_input_001313e0" identifier != identifier) )) && (parenthesized_expression "((*filename != '-' || (iVar1 = 0, filename[1] != '\0')))" ( (parenthesized_expression "(*filename != '-' || (iVar1 = 0, filename[1] != '\0'))" ( (binary_expression "*filename != '-' || (iVar1 = 0, filename[1] != '\0')" (binary_expression "*filename != '-'" (pointer_expression "*filename" * identifier) != (char_literal "'-'" ' character ')) || (parenthesized_expression "(iVar1 = 0, filename[1] != '\0')" ( (comma_expression "iVar1 = 0, filename[1] != '\0'" (assignment_expression "iVar1 = 0" identifier = number_literal) , (binary_expression "filename[1] != '\0'" (subscript_expression "filename[1]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence '))) ))) )) ))) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_open_or_warn_00131400)(filename,0);\n  }" { (expression_statement "iVar1 = (*(code *)PTR_open_or_warn_00131400)(filename,0);" (assignment_expression "iVar1 = (*(code *)PTR_open_or_warn_00131400)(filename,0)" identifier = (call_expression "(*(code *)PTR_open_or_warn_00131400)(filename,0)" (parenthesized_expression "(*(code *)PTR_open_or_warn_00131400)" ( (pointer_expression "*(code *)PTR_open_or_warn_00131400" * (cast_expression "(code *)PTR_open_or_warn_00131400" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(filename,0)" ( identifier , number_literal )))) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "undefined4 FUN_00102248(char *param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if ((param_1 != PTR_s_standard_input_001313e0) &&\n     ((*param_1 != '-' || (uVar1 = 0, param_1[1] != '\0')))) {\n    uVar1 = (*(code *)PTR_FUN_00131400)(param_1,0);\n  }\n  return uVar1;\n}\n\n" (function_definition "undefined4 FUN_00102248(char *param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if ((param_1 != PTR_s_standard_input_001313e0) &&\n     ((*param_1 != '-' || (uVar1 = 0, param_1[1] != '\0')))) {\n    uVar1 = (*(code *)PTR_FUN_00131400)(param_1,0);\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_00102248(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if ((param_1 != PTR_s_standard_input_001313e0) &&\n     ((*param_1 != '-' || (uVar1 = 0, param_1[1] != '\0')))) {\n    uVar1 = (*(code *)PTR_FUN_00131400)(param_1,0);\n  }\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (if_statement "if ((param_1 != PTR_s_standard_input_001313e0) &&\n     ((*param_1 != '-' || (uVar1 = 0, param_1[1] != '\0')))) {\n    uVar1 = (*(code *)PTR_FUN_00131400)(param_1,0);\n  }" if (parenthesized_expression "((param_1 != PTR_s_standard_input_001313e0) &&\n     ((*param_1 != '-' || (uVar1 = 0, param_1[1] != '\0'))))" ( (binary_expression "(param_1 != PTR_s_standard_input_001313e0) &&\n     ((*param_1 != '-' || (uVar1 = 0, param_1[1] != '\0')))" (parenthesized_expression "(param_1 != PTR_s_standard_input_001313e0)" ( (binary_expression "param_1 != PTR_s_standard_input_001313e0" identifier != identifier) )) && (parenthesized_expression "((*param_1 != '-' || (uVar1 = 0, param_1[1] != '\0')))" ( (parenthesized_expression "(*param_1 != '-' || (uVar1 = 0, param_1[1] != '\0'))" ( (binary_expression "*param_1 != '-' || (uVar1 = 0, param_1[1] != '\0')" (binary_expression "*param_1 != '-'" (pointer_expression "*param_1" * identifier) != (char_literal "'-'" ' character ')) || (parenthesized_expression "(uVar1 = 0, param_1[1] != '\0')" ( (comma_expression "uVar1 = 0, param_1[1] != '\0'" (assignment_expression "uVar1 = 0" identifier = number_literal) , (binary_expression "param_1[1] != '\0'" (subscript_expression "param_1[1]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence '))) ))) )) ))) )) (compound_statement "{\n    uVar1 = (*(code *)PTR_FUN_00131400)(param_1,0);\n  }" { (expression_statement "uVar1 = (*(code *)PTR_FUN_00131400)(param_1,0);" (assignment_expression "uVar1 = (*(code *)PTR_FUN_00131400)(param_1,0)" identifier = (call_expression "(*(code *)PTR_FUN_00131400)(param_1,0)" (parenthesized_expression "(*(code *)PTR_FUN_00131400)" ( (pointer_expression "*(code *)PTR_FUN_00131400" * (cast_expression "(code *)PTR_FUN_00131400" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != IDENT) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * IDENT) != (char_literal ' character ')) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = LIT) , (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' escape_sequence '))) ))) )) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT )))) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_00102248(char *param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if ((param_1 != PTR_s_standard_input_001313e0) &&\n     ((*param_1 != '-' || (uVar1 = 0, param_1[1] != '\0')))) {\n    uVar1 = (*(code *)PTR_FUN_00131400)(param_1,0);\n  }\n  return uVar1;\n}" (type_identifier "undefined4") (function_declarator "FUN_00102248(char *param_1)" (identifier "FUN_00102248") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if ((param_1 != PTR_s_standard_input_001313e0) &&\n     ((*param_1 != '-' || (uVar1 = 0, param_1[1] != '\0')))) {\n    uVar1 = (*(code *)PTR_FUN_00131400)(param_1,0);\n  }\n  return uVar1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (if_statement "if ((param_1 != PTR_s_standard_input_001313e0) &&\n     ((*param_1 != '-' || (uVar1 = 0, param_1[1] != '\0')))) {\n    uVar1 = (*(code *)PTR_FUN_00131400)(param_1,0);\n  }" (if "if") (parenthesized_expression "((param_1 != PTR_s_standard_input_001313e0) &&\n     ((*param_1 != '-' || (uVar1 = 0, param_1[1] != '\0'))))" (( "(") (binary_expression "(param_1 != PTR_s_standard_input_001313e0) &&\n     ((*param_1 != '-' || (uVar1 = 0, param_1[1] != '\0')))" (parenthesized_expression "(param_1 != PTR_s_standard_input_001313e0)" (( "(") (binary_expression "param_1 != PTR_s_standard_input_001313e0" (identifier "param_1") (!= "!=") (identifier "PTR_s_standard_input_001313e0")) () ")")) (&& "&&") (parenthesized_expression "((*param_1 != '-' || (uVar1 = 0, param_1[1] != '\0')))" (( "(") (parenthesized_expression "(*param_1 != '-' || (uVar1 = 0, param_1[1] != '\0'))" (( "(") (binary_expression "*param_1 != '-' || (uVar1 = 0, param_1[1] != '\0')" (binary_expression "*param_1 != '-'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (char_literal "'-'" (' "'") (character "-") (' "'"))) (|| "||") (parenthesized_expression "(uVar1 = 0, param_1[1] != '\0')" (( "(") (comma_expression "uVar1 = 0, param_1[1] != '\0'" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (, ",") (binary_expression "param_1[1] != '\0'" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")))) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n    uVar1 = (*(code *)PTR_FUN_00131400)(param_1,0);\n  }" ({ "{") (expression_statement "uVar1 = (*(code *)PTR_FUN_00131400)(param_1,0);" (assignment_expression "uVar1 = (*(code *)PTR_FUN_00131400)(param_1,0)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_FUN_00131400)(param_1,0)" (parenthesized_expression "(*(code *)PTR_FUN_00131400)" (( "(") (pointer_expression "*(code *)PTR_FUN_00131400" (* "*") (cast_expression "(code *)PTR_FUN_00131400" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_00131400"))) () ")")) (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")")))) (; ";")) (} "}"))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))
(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)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))))))))) 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 (identifier) (number_literal))))))) (return_statement (identifier)))))

undefined4 MASKED(char *param_1)

{
  undefined4 uVar1;
  
  uVar1 = 0;
  if ((param_1 != PTR_s_standard_input_001313e0) &&
     ((*param_1 != '-' || (uVar1 = 0, param_1[1] != '\0')))) {
    uVar1 = (*(code *)PTR_FUN_00131400)(param_1,0);
  }
  return uVar1;
}

