
int bb_wcwidth(uint ucs)

{
  int iVar1;
  
  iVar1 = 0;
  if (((ucs != 0) && (iVar1 = -1, 0x1f < (ucs & 0xffffff7f))) && (ucs != 0x7f)) {
    if (ucs < 0x300) {
      iVar1 = 1;
    }
    return iVar1;
  }
  return iVar1;
}



undefined4 FUN_000f9d8c(uint param_1)

{
  undefined4 uVar1;
  
  uVar1 = 0;
  if (((param_1 != 0) && (uVar1 = 0xffffffff, 0x1f < (param_1 & 0xffffff7f))) && (param_1 != 0x7f))
  {
    if (param_1 < 0x300) {
      uVar1 = 1;
    }
    return uVar1;
  }
  return uVar1;
}


bne a0,zero,0x000f9d9c
_or v0,zero,zero
jr ra
_nop
li v1,-0x81
and v1,a0,v1
sltiu v1,v1,0x20
bne v1,zero,0x000f9d94
_li v0,-0x1
li v1,0x7f
beq a0,v1,0x000f9d94
_li v1,0x1
sltiu a0,a0,0x300
jr ra
_movn v0,v1,a0
(translation_unit "undefined4 FUN_000f9d8c(uint param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if (((param_1 != 0) && (uVar1 = 0xffffffff, 0x1f < (param_1 & 0xffffff7f))) && (param_1 != 0x7f))\n  {\n    if (param_1 < 0x300) {\n      uVar1 = 1;\n    }\n    return uVar1;\n  }\n  return uVar1;\n}\n\n" (function_definition "undefined4 FUN_000f9d8c(uint param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if (((param_1 != 0) && (uVar1 = 0xffffffff, 0x1f < (param_1 & 0xffffff7f))) && (param_1 != 0x7f))\n  {\n    if (param_1 < 0x300) {\n      uVar1 = 1;\n    }\n    return uVar1;\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_000f9d8c(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if (((param_1 != 0) && (uVar1 = 0xffffffff, 0x1f < (param_1 & 0xffffff7f))) && (param_1 != 0x7f))\n  {\n    if (param_1 < 0x300) {\n      uVar1 = 1;\n    }\n    return uVar1;\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 != 0) && (uVar1 = 0xffffffff, 0x1f < (param_1 & 0xffffff7f))) && (param_1 != 0x7f))\n  {\n    if (param_1 < 0x300) {\n      uVar1 = 1;\n    }\n    return uVar1;\n  }" if (parenthesized_expression "(((param_1 != 0) && (uVar1 = 0xffffffff, 0x1f < (param_1 & 0xffffff7f))) && (param_1 != 0x7f))" ( (binary_expression "((param_1 != 0) && (uVar1 = 0xffffffff, 0x1f < (param_1 & 0xffffff7f))) && (param_1 != 0x7f)" (parenthesized_expression "((param_1 != 0) && (uVar1 = 0xffffffff, 0x1f < (param_1 & 0xffffff7f)))" ( (binary_expression "(param_1 != 0) && (uVar1 = 0xffffffff, 0x1f < (param_1 & 0xffffff7f))" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(uVar1 = 0xffffffff, 0x1f < (param_1 & 0xffffff7f))" ( (comma_expression "uVar1 = 0xffffffff, 0x1f < (param_1 & 0xffffff7f)" (assignment_expression "uVar1 = 0xffffffff" identifier = number_literal) , (binary_expression "0x1f < (param_1 & 0xffffff7f)" number_literal < (parenthesized_expression "(param_1 & 0xffffff7f)" ( (binary_expression "param_1 & 0xffffff7f" identifier & number_literal) )))) ))) )) && (parenthesized_expression "(param_1 != 0x7f)" ( (binary_expression "param_1 != 0x7f" identifier != number_literal) ))) )) (compound_statement "{\n    if (param_1 < 0x300) {\n      uVar1 = 1;\n    }\n    return uVar1;\n  }" { (if_statement "if (param_1 < 0x300) {\n      uVar1 = 1;\n    }" if (parenthesized_expression "(param_1 < 0x300)" ( (binary_expression "param_1 < 0x300" identifier < number_literal) )) (compound_statement "{\n      uVar1 = 1;\n    }" { (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" identifier = number_literal) ;) })) (return_statement "return uVar1;" return identifier ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "int bb_wcwidth(uint ucs)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  if (((ucs != 0) && (iVar1 = -1, 0x1f < (ucs & 0xffffff7f))) && (ucs != 0x7f)) {\n    if (ucs < 0x300) {\n      iVar1 = 1;\n    }\n    return iVar1;\n  }\n  return iVar1;\n}\n\n" (function_definition "int bb_wcwidth(uint ucs)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  if (((ucs != 0) && (iVar1 = -1, 0x1f < (ucs & 0xffffff7f))) && (ucs != 0x7f)) {\n    if (ucs < 0x300) {\n      iVar1 = 1;\n    }\n    return iVar1;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "bb_wcwidth(uint ucs)" identifier (parameter_list "(uint ucs)" ( (parameter_declaration "uint ucs" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = 0;\n  if (((ucs != 0) && (iVar1 = -1, 0x1f < (ucs & 0xffffff7f))) && (ucs != 0x7f)) {\n    if (ucs < 0x300) {\n      iVar1 = 1;\n    }\n    return iVar1;\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 (((ucs != 0) && (iVar1 = -1, 0x1f < (ucs & 0xffffff7f))) && (ucs != 0x7f)) {\n    if (ucs < 0x300) {\n      iVar1 = 1;\n    }\n    return iVar1;\n  }" if (parenthesized_expression "(((ucs != 0) && (iVar1 = -1, 0x1f < (ucs & 0xffffff7f))) && (ucs != 0x7f))" ( (binary_expression "((ucs != 0) && (iVar1 = -1, 0x1f < (ucs & 0xffffff7f))) && (ucs != 0x7f)" (parenthesized_expression "((ucs != 0) && (iVar1 = -1, 0x1f < (ucs & 0xffffff7f)))" ( (binary_expression "(ucs != 0) && (iVar1 = -1, 0x1f < (ucs & 0xffffff7f))" (parenthesized_expression "(ucs != 0)" ( (binary_expression "ucs != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 = -1, 0x1f < (ucs & 0xffffff7f))" ( (comma_expression "iVar1 = -1, 0x1f < (ucs & 0xffffff7f)" (assignment_expression "iVar1 = -1" identifier = number_literal) , (binary_expression "0x1f < (ucs & 0xffffff7f)" number_literal < (parenthesized_expression "(ucs & 0xffffff7f)" ( (binary_expression "ucs & 0xffffff7f" identifier & number_literal) )))) ))) )) && (parenthesized_expression "(ucs != 0x7f)" ( (binary_expression "ucs != 0x7f" identifier != number_literal) ))) )) (compound_statement "{\n    if (ucs < 0x300) {\n      iVar1 = 1;\n    }\n    return iVar1;\n  }" { (if_statement "if (ucs < 0x300) {\n      iVar1 = 1;\n    }" if (parenthesized_expression "(ucs < 0x300)" ( (binary_expression "ucs < 0x300" identifier < number_literal) )) (compound_statement "{\n      iVar1 = 1;\n    }" { (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) })) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "undefined4 FUN_000f9d8c(uint param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if (((param_1 != 0) && (uVar1 = 0xffffffff, 0x1f < (param_1 & 0xffffff7f))) && (param_1 != 0x7f))\n  {\n    if (param_1 < 0x300) {\n      uVar1 = 1;\n    }\n    return uVar1;\n  }\n  return uVar1;\n}\n\n" (function_definition "undefined4 FUN_000f9d8c(uint param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if (((param_1 != 0) && (uVar1 = 0xffffffff, 0x1f < (param_1 & 0xffffff7f))) && (param_1 != 0x7f))\n  {\n    if (param_1 < 0x300) {\n      uVar1 = 1;\n    }\n    return uVar1;\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_000f9d8c(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if (((param_1 != 0) && (uVar1 = 0xffffffff, 0x1f < (param_1 & 0xffffff7f))) && (param_1 != 0x7f))\n  {\n    if (param_1 < 0x300) {\n      uVar1 = 1;\n    }\n    return uVar1;\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 != 0) && (uVar1 = 0xffffffff, 0x1f < (param_1 & 0xffffff7f))) && (param_1 != 0x7f))\n  {\n    if (param_1 < 0x300) {\n      uVar1 = 1;\n    }\n    return uVar1;\n  }" if (parenthesized_expression "(((param_1 != 0) && (uVar1 = 0xffffffff, 0x1f < (param_1 & 0xffffff7f))) && (param_1 != 0x7f))" ( (binary_expression "((param_1 != 0) && (uVar1 = 0xffffffff, 0x1f < (param_1 & 0xffffff7f))) && (param_1 != 0x7f)" (parenthesized_expression "((param_1 != 0) && (uVar1 = 0xffffffff, 0x1f < (param_1 & 0xffffff7f)))" ( (binary_expression "(param_1 != 0) && (uVar1 = 0xffffffff, 0x1f < (param_1 & 0xffffff7f))" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(uVar1 = 0xffffffff, 0x1f < (param_1 & 0xffffff7f))" ( (comma_expression "uVar1 = 0xffffffff, 0x1f < (param_1 & 0xffffff7f)" (assignment_expression "uVar1 = 0xffffffff" identifier = number_literal) , (binary_expression "0x1f < (param_1 & 0xffffff7f)" number_literal < (parenthesized_expression "(param_1 & 0xffffff7f)" ( (binary_expression "param_1 & 0xffffff7f" identifier & number_literal) )))) ))) )) && (parenthesized_expression "(param_1 != 0x7f)" ( (binary_expression "param_1 != 0x7f" identifier != number_literal) ))) )) (compound_statement "{\n    if (param_1 < 0x300) {\n      uVar1 = 1;\n    }\n    return uVar1;\n  }" { (if_statement "if (param_1 < 0x300) {\n      uVar1 = 1;\n    }" if (parenthesized_expression "(param_1 < 0x300)" ( (binary_expression "param_1 < 0x300" identifier < number_literal) )) (compound_statement "{\n      uVar1 = 1;\n    }" { (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" identifier = number_literal) ;) })) (return_statement "return uVar1;" return identifier ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = LIT) , (binary_expression LIT < (parenthesized_expression ( (binary_expression IDENT & LIT) )))) ))) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_000f9d8c(uint param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if (((param_1 != 0) && (uVar1 = 0xffffffff, 0x1f < (param_1 & 0xffffff7f))) && (param_1 != 0x7f))\n  {\n    if (param_1 < 0x300) {\n      uVar1 = 1;\n    }\n    return uVar1;\n  }\n  return uVar1;\n}" (type_identifier "undefined4") (function_declarator "FUN_000f9d8c(uint param_1)" (identifier "FUN_000f9d8c") (parameter_list "(uint param_1)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if (((param_1 != 0) && (uVar1 = 0xffffffff, 0x1f < (param_1 & 0xffffff7f))) && (param_1 != 0x7f))\n  {\n    if (param_1 < 0x300) {\n      uVar1 = 1;\n    }\n    return uVar1;\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 != 0) && (uVar1 = 0xffffffff, 0x1f < (param_1 & 0xffffff7f))) && (param_1 != 0x7f))\n  {\n    if (param_1 < 0x300) {\n      uVar1 = 1;\n    }\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(((param_1 != 0) && (uVar1 = 0xffffffff, 0x1f < (param_1 & 0xffffff7f))) && (param_1 != 0x7f))" (( "(") (binary_expression "((param_1 != 0) && (uVar1 = 0xffffffff, 0x1f < (param_1 & 0xffffff7f))) && (param_1 != 0x7f)" (parenthesized_expression "((param_1 != 0) && (uVar1 = 0xffffffff, 0x1f < (param_1 & 0xffffff7f)))" (( "(") (binary_expression "(param_1 != 0) && (uVar1 = 0xffffffff, 0x1f < (param_1 & 0xffffff7f))" (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(uVar1 = 0xffffffff, 0x1f < (param_1 & 0xffffff7f))" (( "(") (comma_expression "uVar1 = 0xffffffff, 0x1f < (param_1 & 0xffffff7f)" (assignment_expression "uVar1 = 0xffffffff" (identifier "uVar1") (= "=") (number_literal "0xffffffff")) (, ",") (binary_expression "0x1f < (param_1 & 0xffffff7f)" (number_literal "0x1f") (< "<") (parenthesized_expression "(param_1 & 0xffffff7f)" (( "(") (binary_expression "param_1 & 0xffffff7f" (identifier "param_1") (& "&") (number_literal "0xffffff7f")) () ")")))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(param_1 != 0x7f)" (( "(") (binary_expression "param_1 != 0x7f" (identifier "param_1") (!= "!=") (number_literal "0x7f")) () ")"))) () ")")) (compound_statement "{\n    if (param_1 < 0x300) {\n      uVar1 = 1;\n    }\n    return uVar1;\n  }" ({ "{") (if_statement "if (param_1 < 0x300) {\n      uVar1 = 1;\n    }" (if "if") (parenthesized_expression "(param_1 < 0x300)" (( "(") (binary_expression "param_1 < 0x300" (identifier "param_1") (< "<") (number_literal "0x300")) () ")")) (compound_statement "{\n      uVar1 = 1;\n    }" ({ "{") (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" (identifier "uVar1") (= "=") (number_literal "1")) (; ";")) (} "}"))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

int function_1(type_1 var_1)

{
  int iVar1;
  
  iVar1 = 0;
  if (((var_1 != 0) && (iVar1 = -1, 0x1f < (var_1 & 0xffffff7f))) && (var_1 != 0x7f)) {
    if (var_1 < 0x300) {
      iVar1 = 1;
    }
    return iVar1;
  }
  return iVar1;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) 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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (number_literal) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (return_statement (identifier)))) (return_statement (identifier)))))

undefined4 MASKED(uint param_1)

{
  undefined4 uVar1;
  
  uVar1 = 0;
  if (((param_1 != 0) && (uVar1 = 0xffffffff, 0x1f < (param_1 & 0xffffff7f))) && (param_1 != 0x7f))
  {
    if (param_1 < 0x300) {
      uVar1 = 1;
    }
    return uVar1;
  }
  return uVar1;
}

