
/* WARNING: Unknown calling convention */

char * locale_charset(void)

{
  char *pcVar1;
  
  pcVar1 = (char *)(*(code *)PTR_nl_langinfo_0002920c)(0xe);
  if (pcVar1 == (char *)0x0) {
    pcVar1 = PTR_DAT_0002910c + -0x7f9c;
  }
  else if (*pcVar1 == '\0') {
    pcVar1 = PTR_DAT_0002910c + -0x7f9c;
  }
  return pcVar1;
}



char * locale_charset(void)

{
  char *pcVar1;
  
  pcVar1 = (char *)(*(code *)PTR_nl_langinfo_0002920c)(0xe);
  if (pcVar1 == (char *)0x0) {
    pcVar1 = PTR_DAT_0002910c + -0x7f9c;
  }
  else if (*pcVar1 == '\0') {
    pcVar1 = PTR_DAT_0002910c + -0x7f9c;
  }
  return pcVar1;
}


lui gp,0x2
addiu gp,gp,-0x57b0
addu gp,gp,t9
addiu sp,sp,-0x20
sw ra,0x1c(sp)
sw gp,0x10(sp)
li a0,0xe
lw t9,-0x7ec4(gp)
jalr t9
_nop
lw gp,0x10(sp)
beq v0,zero,0x000168d8
_nop
lb v1,0x0(v0)
beq v1,zero,0x000168cc
_nop
lw ra,0x1c(sp)
jr ra
_addiu sp,sp,0x20
lw v0,-0x7fc4(gp)
b 0x000168c0
_addiu v0,v0,-0x7f9c
lw v0,-0x7fc4(gp)
b 0x000168c0
_addiu v0,v0,-0x7f9c
(translation_unit "char * locale_charset(void)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = (char *)(*(code *)PTR_nl_langinfo_0002920c)(0xe);\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }\n  else if (*pcVar1 == '\0') {\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }\n  return pcVar1;\n}\n\n" (function_definition "char * locale_charset(void)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = (char *)(*(code *)PTR_nl_langinfo_0002920c)(0xe);\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }\n  else if (*pcVar1 == '\0') {\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }\n  return pcVar1;\n}" primitive_type (pointer_declarator "* locale_charset(void)" * (function_declarator "locale_charset(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  char *pcVar1;\n  \n  pcVar1 = (char *)(*(code *)PTR_nl_langinfo_0002920c)(0xe);\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }\n  else if (*pcVar1 == '\0') {\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "pcVar1 = (char *)(*(code *)PTR_nl_langinfo_0002920c)(0xe);" (assignment_expression "pcVar1 = (char *)(*(code *)PTR_nl_langinfo_0002920c)(0xe)" identifier = (cast_expression "(char *)(*(code *)PTR_nl_langinfo_0002920c)(0xe)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_nl_langinfo_0002920c)(0xe)" (parenthesized_expression "(*(code *)PTR_nl_langinfo_0002920c)" ( (pointer_expression "*(code *)PTR_nl_langinfo_0002920c" * (cast_expression "(code *)PTR_nl_langinfo_0002920c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0xe)" ( number_literal ))))) ;) (if_statement "if (pcVar1 == (char *)0x0) {\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }\n  else if (*pcVar1 == '\0') {\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }" { (expression_statement "pcVar1 = PTR_DAT_0002910c + -0x7f9c;" (assignment_expression "pcVar1 = PTR_DAT_0002910c + -0x7f9c" identifier = (binary_expression "PTR_DAT_0002910c + -0x7f9c" identifier + number_literal)) ;) }) (else_clause "else if (*pcVar1 == '\0') {\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }" else (if_statement "if (*pcVar1 == '\0') {\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }" if (parenthesized_expression "(*pcVar1 == '\0')" ( (binary_expression "*pcVar1 == '\0'" (pointer_expression "*pcVar1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }" { (expression_statement "pcVar1 = PTR_DAT_0002910c + -0x7f9c;" (assignment_expression "pcVar1 = PTR_DAT_0002910c + -0x7f9c" identifier = (binary_expression "PTR_DAT_0002910c + -0x7f9c" identifier + number_literal)) ;) })))) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nchar * locale_charset(void)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = (char *)(*(code *)PTR_nl_langinfo_0002920c)(0xe);\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }\n  else if (*pcVar1 == '\0') {\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }\n  return pcVar1;\n}\n\n" comment (function_definition "char * locale_charset(void)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = (char *)(*(code *)PTR_nl_langinfo_0002920c)(0xe);\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }\n  else if (*pcVar1 == '\0') {\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }\n  return pcVar1;\n}" primitive_type (pointer_declarator "* locale_charset(void)" * (function_declarator "locale_charset(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  char *pcVar1;\n  \n  pcVar1 = (char *)(*(code *)PTR_nl_langinfo_0002920c)(0xe);\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }\n  else if (*pcVar1 == '\0') {\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "pcVar1 = (char *)(*(code *)PTR_nl_langinfo_0002920c)(0xe);" (assignment_expression "pcVar1 = (char *)(*(code *)PTR_nl_langinfo_0002920c)(0xe)" identifier = (cast_expression "(char *)(*(code *)PTR_nl_langinfo_0002920c)(0xe)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_nl_langinfo_0002920c)(0xe)" (parenthesized_expression "(*(code *)PTR_nl_langinfo_0002920c)" ( (pointer_expression "*(code *)PTR_nl_langinfo_0002920c" * (cast_expression "(code *)PTR_nl_langinfo_0002920c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0xe)" ( number_literal ))))) ;) (if_statement "if (pcVar1 == (char *)0x0) {\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }\n  else if (*pcVar1 == '\0') {\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }" { (expression_statement "pcVar1 = PTR_DAT_0002910c + -0x7f9c;" (assignment_expression "pcVar1 = PTR_DAT_0002910c + -0x7f9c" identifier = (binary_expression "PTR_DAT_0002910c + -0x7f9c" identifier + number_literal)) ;) }) (else_clause "else if (*pcVar1 == '\0') {\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }" else (if_statement "if (*pcVar1 == '\0') {\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }" if (parenthesized_expression "(*pcVar1 == '\0')" ( (binary_expression "*pcVar1 == '\0'" (pointer_expression "*pcVar1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }" { (expression_statement "pcVar1 = PTR_DAT_0002910c + -0x7f9c;" (assignment_expression "pcVar1 = PTR_DAT_0002910c + -0x7f9c" identifier = (binary_expression "PTR_DAT_0002910c + -0x7f9c" identifier + number_literal)) ;) })))) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit "char * locale_charset(void)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = (char *)(*(code *)PTR_nl_langinfo_0002920c)(0xe);\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }\n  else if (*pcVar1 == '\0') {\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }\n  return pcVar1;\n}\n\n" (function_definition "char * locale_charset(void)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = (char *)(*(code *)PTR_nl_langinfo_0002920c)(0xe);\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }\n  else if (*pcVar1 == '\0') {\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }\n  return pcVar1;\n}" primitive_type (pointer_declarator "* locale_charset(void)" * (function_declarator "locale_charset(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  char *pcVar1;\n  \n  pcVar1 = (char *)(*(code *)PTR_nl_langinfo_0002920c)(0xe);\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }\n  else if (*pcVar1 == '\0') {\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "pcVar1 = (char *)(*(code *)PTR_nl_langinfo_0002920c)(0xe);" (assignment_expression "pcVar1 = (char *)(*(code *)PTR_nl_langinfo_0002920c)(0xe)" identifier = (cast_expression "(char *)(*(code *)PTR_nl_langinfo_0002920c)(0xe)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_nl_langinfo_0002920c)(0xe)" (parenthesized_expression "(*(code *)PTR_nl_langinfo_0002920c)" ( (pointer_expression "*(code *)PTR_nl_langinfo_0002920c" * (cast_expression "(code *)PTR_nl_langinfo_0002920c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0xe)" ( number_literal ))))) ;) (if_statement "if (pcVar1 == (char *)0x0) {\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }\n  else if (*pcVar1 == '\0') {\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }" { (expression_statement "pcVar1 = PTR_DAT_0002910c + -0x7f9c;" (assignment_expression "pcVar1 = PTR_DAT_0002910c + -0x7f9c" identifier = (binary_expression "PTR_DAT_0002910c + -0x7f9c" identifier + number_literal)) ;) }) (else_clause "else if (*pcVar1 == '\0') {\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }" else (if_statement "if (*pcVar1 == '\0') {\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }" if (parenthesized_expression "(*pcVar1 == '\0')" ( (binary_expression "*pcVar1 == '\0'" (pointer_expression "*pcVar1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }" { (expression_statement "pcVar1 = PTR_DAT_0002910c + -0x7f9c;" (assignment_expression "pcVar1 = PTR_DAT_0002910c + -0x7f9c" identifier = (binary_expression "PTR_DAT_0002910c + -0x7f9c" identifier + number_literal)) ;) })))) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })))) (return_statement return IDENT ;) })))
(function_definition "char * locale_charset(void)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = (char *)(*(code *)PTR_nl_langinfo_0002920c)(0xe);\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }\n  else if (*pcVar1 == '\0') {\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }\n  return pcVar1;\n}" (primitive_type "char") (pointer_declarator "* locale_charset(void)" (* "*") (function_declarator "locale_charset(void)" (identifier "locale_charset") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")")))) (compound_statement "{\n  char *pcVar1;\n  \n  pcVar1 = (char *)(*(code *)PTR_nl_langinfo_0002920c)(0xe);\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }\n  else if (*pcVar1 == '\0') {\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }\n  return pcVar1;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (expression_statement "pcVar1 = (char *)(*(code *)PTR_nl_langinfo_0002920c)(0xe);" (assignment_expression "pcVar1 = (char *)(*(code *)PTR_nl_langinfo_0002920c)(0xe)" (identifier "pcVar1") (= "=") (cast_expression "(char *)(*(code *)PTR_nl_langinfo_0002920c)(0xe)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_nl_langinfo_0002920c)(0xe)" (parenthesized_expression "(*(code *)PTR_nl_langinfo_0002920c)" (( "(") (pointer_expression "*(code *)PTR_nl_langinfo_0002920c" (* "*") (cast_expression "(code *)PTR_nl_langinfo_0002920c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_nl_langinfo_0002920c"))) () ")")) (argument_list "(0xe)" (( "(") (number_literal "0xe") () ")"))))) (; ";")) (if_statement "if (pcVar1 == (char *)0x0) {\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }\n  else if (*pcVar1 == '\0') {\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }" (if "if") (parenthesized_expression "(pcVar1 == (char *)0x0)" (( "(") (binary_expression "pcVar1 == (char *)0x0" (identifier "pcVar1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }" ({ "{") (expression_statement "pcVar1 = PTR_DAT_0002910c + -0x7f9c;" (assignment_expression "pcVar1 = PTR_DAT_0002910c + -0x7f9c" (identifier "pcVar1") (= "=") (binary_expression "PTR_DAT_0002910c + -0x7f9c" (identifier "PTR_DAT_0002910c") (+ "+") (number_literal "-0x7f9c"))) (; ";")) (} "}")) (else_clause "else if (*pcVar1 == '\0') {\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }" (else "else") (if_statement "if (*pcVar1 == '\0') {\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }" (if "if") (parenthesized_expression "(*pcVar1 == '\0')" (( "(") (binary_expression "*pcVar1 == '\0'" (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    pcVar1 = PTR_DAT_0002910c + -0x7f9c;\n  }" ({ "{") (expression_statement "pcVar1 = PTR_DAT_0002910c + -0x7f9c;" (assignment_expression "pcVar1 = PTR_DAT_0002910c + -0x7f9c" (identifier "pcVar1") (= "=") (binary_expression "PTR_DAT_0002910c + -0x7f9c" (identifier "PTR_DAT_0002910c") (+ "+") (number_literal "-0x7f9c"))) (; ";")) (} "}"))))) (return_statement "return pcVar1;" (return "return") (identifier "pcVar1") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

char * function_1(void)

{
  char *var_1;
  
  var_1 = (char *)(*(type_1 *)PTR_nl_langinfo_0002920c)(0xe);
  if (var_1 == (char *)0x0) {
    var_1 = var_2 + -0x7f9c;
  }
  else if (*var_1 == '\0') {
    var_1 = var_2 + -0x7f9c;
  }
  return var_1;
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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 (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))))) (return_statement (identifier)))))

char * MASKED(void)

{
  char *pcVar1;
  
  pcVar1 = (char *)(*(code *)PTR_nl_langinfo_0002920c)(0xe);
  if (pcVar1 == (char *)0x0) {
    pcVar1 = PTR_DAT_0002910c + -0x7f9c;
  }
  else if (*pcVar1 == '\0') {
    pcVar1 = PTR_DAT_0002910c + -0x7f9c;
  }
  return pcVar1;
}

