
size_t bb_wcrtomb(char *s,wchar_t wc,bb_mbstate_t *ps)

{
  size_t sVar1;
  
  if (*PTR_unicode_status_0012a88c != '\x02') {
    *s = (char)wc;
    return 1;
  }
  sVar1 = wcrtomb_internal(s,wc);
  return sVar1;
}



undefined4 FUN_000f9a30(undefined1 *param_1,undefined1 param_2)

{
  undefined4 uVar1;
  
  if (*PTR_DAT_0012a88c != '\x02') {
    *param_1 = param_2;
    return 1;
  }
  uVar1 = FUN_000f9490();
  return uVar1;
}


lui gp,0x4
addiu gp,gp,-0x78e0
addu gp,gp,t9
lw a3,-0x78c4(gp)
li a2,0x2
lbu a3,0x0(a3)
beq a3,a2,0x000f9a5c
_or v0,a0,zero
sb a1,0x0(v0)
jr ra
_li v0,0x1
lw t9,-0x7fc4(gp)
addiu t9,t9,-0x6b70
b 0x000f9490
_nop
(translation_unit "undefined4 FUN_000f9a30(undefined1 *param_1,undefined1 param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (*PTR_DAT_0012a88c != '\x02') {\n    *param_1 = param_2;\n    return 1;\n  }\n  uVar1 = FUN_000f9490();\n  return uVar1;\n}\n\n" (function_definition "undefined4 FUN_000f9a30(undefined1 *param_1,undefined1 param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (*PTR_DAT_0012a88c != '\x02') {\n    *param_1 = param_2;\n    return 1;\n  }\n  uVar1 = FUN_000f9490();\n  return uVar1;\n}" type_identifier (function_declarator "FUN_000f9a30(undefined1 *param_1,undefined1 param_2)" identifier (parameter_list "(undefined1 *param_1,undefined1 param_2)" ( (parameter_declaration "undefined1 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (*PTR_DAT_0012a88c != '\x02') {\n    *param_1 = param_2;\n    return 1;\n  }\n  uVar1 = FUN_000f9490();\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (*PTR_DAT_0012a88c != '\x02') {\n    *param_1 = param_2;\n    return 1;\n  }" if (parenthesized_expression "(*PTR_DAT_0012a88c != '\x02')" ( (binary_expression "*PTR_DAT_0012a88c != '\x02'" (pointer_expression "*PTR_DAT_0012a88c" * identifier) != (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n    *param_1 = param_2;\n    return 1;\n  }" { (expression_statement "*param_1 = param_2;" (assignment_expression "*param_1 = param_2" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar1 = FUN_000f9490();" (assignment_expression "uVar1 = FUN_000f9490()" identifier = (call_expression "FUN_000f9490()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "size_t bb_wcrtomb(char *s,wchar_t wc,bb_mbstate_t *ps)\n\n{\n  size_t sVar1;\n  \n  if (*PTR_unicode_status_0012a88c != '\x02') {\n    *s = (char)wc;\n    return 1;\n  }\n  sVar1 = wcrtomb_internal(s,wc);\n  return sVar1;\n}\n\n" (function_definition "size_t bb_wcrtomb(char *s,wchar_t wc,bb_mbstate_t *ps)\n\n{\n  size_t sVar1;\n  \n  if (*PTR_unicode_status_0012a88c != '\x02') {\n    *s = (char)wc;\n    return 1;\n  }\n  sVar1 = wcrtomb_internal(s,wc);\n  return sVar1;\n}" primitive_type (function_declarator "bb_wcrtomb(char *s,wchar_t wc,bb_mbstate_t *ps)" identifier (parameter_list "(char *s,wchar_t wc,bb_mbstate_t *ps)" ( (parameter_declaration "char *s" primitive_type (pointer_declarator "*s" * identifier)) , (parameter_declaration "wchar_t wc" type_identifier identifier) , (parameter_declaration "bb_mbstate_t *ps" type_identifier (pointer_declarator "*ps" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  \n  if (*PTR_unicode_status_0012a88c != '\x02') {\n    *s = (char)wc;\n    return 1;\n  }\n  sVar1 = wcrtomb_internal(s,wc);\n  return sVar1;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (if_statement "if (*PTR_unicode_status_0012a88c != '\x02') {\n    *s = (char)wc;\n    return 1;\n  }" if (parenthesized_expression "(*PTR_unicode_status_0012a88c != '\x02')" ( (binary_expression "*PTR_unicode_status_0012a88c != '\x02'" (pointer_expression "*PTR_unicode_status_0012a88c" * identifier) != (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n    *s = (char)wc;\n    return 1;\n  }" { (expression_statement "*s = (char)wc;" (assignment_expression "*s = (char)wc" (pointer_expression "*s" * identifier) = (cast_expression "(char)wc" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "sVar1 = wcrtomb_internal(s,wc);" (assignment_expression "sVar1 = wcrtomb_internal(s,wc)" identifier = (call_expression "wcrtomb_internal(s,wc)" identifier (argument_list "(s,wc)" ( identifier , identifier )))) ;) (return_statement "return sVar1;" return identifier ;) })))
(translation_unit "undefined4 FUN_000f9a30(undefined1 *param_1,undefined1 param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (*PTR_DAT_0012a88c != '\x02') {\n    *param_1 = param_2;\n    return 1;\n  }\n  uVar1 = FUN_000f9490();\n  return uVar1;\n}\n\n" (function_definition "undefined4 FUN_000f9a30(undefined1 *param_1,undefined1 param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (*PTR_DAT_0012a88c != '\x02') {\n    *param_1 = param_2;\n    return 1;\n  }\n  uVar1 = FUN_000f9490();\n  return uVar1;\n}" type_identifier (function_declarator "FUN_000f9a30(undefined1 *param_1,undefined1 param_2)" identifier (parameter_list "(undefined1 *param_1,undefined1 param_2)" ( (parameter_declaration "undefined1 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (*PTR_DAT_0012a88c != '\x02') {\n    *param_1 = param_2;\n    return 1;\n  }\n  uVar1 = FUN_000f9490();\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (*PTR_DAT_0012a88c != '\x02') {\n    *param_1 = param_2;\n    return 1;\n  }" if (parenthesized_expression "(*PTR_DAT_0012a88c != '\x02')" ( (binary_expression "*PTR_DAT_0012a88c != '\x02'" (pointer_expression "*PTR_DAT_0012a88c" * identifier) != (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n    *param_1 = param_2;\n    return 1;\n  }" { (expression_statement "*param_1 = param_2;" (assignment_expression "*param_1 = param_2" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar1 = FUN_000f9490();" (assignment_expression "uVar1 = FUN_000f9490()" identifier = (call_expression "FUN_000f9490()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar1;" return identifier ;) })))
(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 (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_000f9a30(undefined1 *param_1,undefined1 param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (*PTR_DAT_0012a88c != '\x02') {\n    *param_1 = param_2;\n    return 1;\n  }\n  uVar1 = FUN_000f9490();\n  return uVar1;\n}" (type_identifier "undefined4") (function_declarator "FUN_000f9a30(undefined1 *param_1,undefined1 param_2)" (identifier "FUN_000f9a30") (parameter_list "(undefined1 *param_1,undefined1 param_2)" (( "(") (parameter_declaration "undefined1 *param_1" (type_identifier "undefined1") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined1 param_2" (type_identifier "undefined1") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (*PTR_DAT_0012a88c != '\x02') {\n    *param_1 = param_2;\n    return 1;\n  }\n  uVar1 = FUN_000f9490();\n  return uVar1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (if_statement "if (*PTR_DAT_0012a88c != '\x02') {\n    *param_1 = param_2;\n    return 1;\n  }" (if "if") (parenthesized_expression "(*PTR_DAT_0012a88c != '\x02')" (( "(") (binary_expression "*PTR_DAT_0012a88c != '\x02'" (pointer_expression "*PTR_DAT_0012a88c" (* "*") (identifier "PTR_DAT_0012a88c")) (!= "!=") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) () ")")) (compound_statement "{\n    *param_1 = param_2;\n    return 1;\n  }" ({ "{") (expression_statement "*param_1 = param_2;" (assignment_expression "*param_1 = param_2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "param_2")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "uVar1 = FUN_000f9490();" (assignment_expression "uVar1 = FUN_000f9490()" (identifier "uVar1") (= "=") (call_expression "FUN_000f9490()" (identifier "FUN_000f9490") (argument_list "()" (( "(") () ")")))) (; ";")) (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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (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: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (return_statement (identifier)))))

undefined4 MASKED(undefined1 *param_1,undefined1 param_2)

{
  undefined4 uVar1;
  
  if (*PTR_DAT_0012a88c != '\x02') {
    *param_1 = param_2;
    return 1;
  }
  uVar1 = FUN_000f9490();
  return uVar1;
}

