
int is_ansi_middle(LWCHAR ch)

{
  int iVar1;
  
  if (0x7f < ch) {
    return 0;
  }
  iVar1 = is_ansi_end(ch);
  if (iVar1 == 0) {
    iVar1 = (*(code *)PTR_strchr_0004f310)(*(undefined4 *)(PTR_CHAR_ARRAY_0004ebf8 + 0x680),ch);
    return (uint)(iVar1 != 0);
  }
  return 0;
}



bool is_ansi_middle(uint param_1)

{
  int iVar1;
  
  if (0x7f < param_1) {
    return false;
  }
  iVar1 = FUN_000276c4();
  if (iVar1 == 0) {
    iVar1 = (*(code *)PTR_strchr_0004f310)(*(undefined4 *)(PTR_DAT_0004ebf8 + 0x680),param_1);
    return iVar1 != 0;
  }
  return false;
}


lui gp,0x3
addiu gp,gp,-0xf84
addu gp,gp,t9
sltiu v0,a0,0x80
beq v0,zero,0x00027bcc
_lw t9,-0x7ddc(gp)
addiu sp,sp,-0x20
addiu t9,t9,0x76c4
sw gp,0x10(sp)
sw s0,0x18(sp)
sw ra,0x1c(sp)
bal 0x000276c4
_or s0,a0,zero
bne v0,zero,0x00027bb8
_lw gp,0x10(sp)
lw v0,-0x7fd8(gp)
or a1,s0,zero
lw t9,-0x78c0(gp)
jalr t9
_lw a0,0x680(v0)
lw ra,0x1c(sp)
sltu v0,zero,v0
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
lw ra,0x1c(sp)
or v0,zero,zero
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
jr ra
_or v0,zero,zero
(translation_unit "bool is_ansi_middle(uint param_1)\n\n{\n  int iVar1;\n  \n  if (0x7f < param_1) {\n    return false;\n  }\n  iVar1 = FUN_000276c4();\n  if (iVar1 == 0) {\n    iVar1 = (*(code *)PTR_strchr_0004f310)(*(undefined4 *)(PTR_DAT_0004ebf8 + 0x680),param_1);\n    return iVar1 != 0;\n  }\n  return false;\n}\n\n" (function_definition "bool is_ansi_middle(uint param_1)\n\n{\n  int iVar1;\n  \n  if (0x7f < param_1) {\n    return false;\n  }\n  iVar1 = FUN_000276c4();\n  if (iVar1 == 0) {\n    iVar1 = (*(code *)PTR_strchr_0004f310)(*(undefined4 *)(PTR_DAT_0004ebf8 + 0x680),param_1);\n    return iVar1 != 0;\n  }\n  return false;\n}" primitive_type (function_declarator "is_ansi_middle(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (0x7f < param_1) {\n    return false;\n  }\n  iVar1 = FUN_000276c4();\n  if (iVar1 == 0) {\n    iVar1 = (*(code *)PTR_strchr_0004f310)(*(undefined4 *)(PTR_DAT_0004ebf8 + 0x680),param_1);\n    return iVar1 != 0;\n  }\n  return false;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (0x7f < param_1) {\n    return false;\n  }" if (parenthesized_expression "(0x7f < param_1)" ( (binary_expression "0x7f < param_1" number_literal < identifier) )) (compound_statement "{\n    return false;\n  }" { (return_statement "return false;" return false ;) })) (expression_statement "iVar1 = FUN_000276c4();" (assignment_expression "iVar1 = FUN_000276c4()" identifier = (call_expression "FUN_000276c4()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = (*(code *)PTR_strchr_0004f310)(*(undefined4 *)(PTR_DAT_0004ebf8 + 0x680),param_1);\n    return iVar1 != 0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_strchr_0004f310)(*(undefined4 *)(PTR_DAT_0004ebf8 + 0x680),param_1);\n    return iVar1 != 0;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_strchr_0004f310)(*(undefined4 *)(PTR_DAT_0004ebf8 + 0x680),param_1);" (assignment_expression "iVar1 = (*(code *)PTR_strchr_0004f310)(*(undefined4 *)(PTR_DAT_0004ebf8 + 0x680),param_1)" identifier = (call_expression "(*(code *)PTR_strchr_0004f310)(*(undefined4 *)(PTR_DAT_0004ebf8 + 0x680),param_1)" (parenthesized_expression "(*(code *)PTR_strchr_0004f310)" ( (pointer_expression "*(code *)PTR_strchr_0004f310" * (cast_expression "(code *)PTR_strchr_0004f310" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(PTR_DAT_0004ebf8 + 0x680),param_1)" ( (pointer_expression "*(undefined4 *)(PTR_DAT_0004ebf8 + 0x680)" * (cast_expression "(undefined4 *)(PTR_DAT_0004ebf8 + 0x680)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0004ebf8 + 0x680)" ( (binary_expression "PTR_DAT_0004ebf8 + 0x680" identifier + number_literal) )))) , identifier )))) ;) (return_statement "return iVar1 != 0;" return (binary_expression "iVar1 != 0" identifier != number_literal) ;) })) (return_statement "return false;" return false ;) })))
(translation_unit "int is_ansi_middle(LWCHAR ch)\n\n{\n  int iVar1;\n  \n  if (0x7f < ch) {\n    return 0;\n  }\n  iVar1 = is_ansi_end(ch);\n  if (iVar1 == 0) {\n    iVar1 = (*(code *)PTR_strchr_0004f310)(*(undefined4 *)(PTR_CHAR_ARRAY_0004ebf8 + 0x680),ch);\n    return (uint)(iVar1 != 0);\n  }\n  return 0;\n}\n\n" (function_definition "int is_ansi_middle(LWCHAR ch)\n\n{\n  int iVar1;\n  \n  if (0x7f < ch) {\n    return 0;\n  }\n  iVar1 = is_ansi_end(ch);\n  if (iVar1 == 0) {\n    iVar1 = (*(code *)PTR_strchr_0004f310)(*(undefined4 *)(PTR_CHAR_ARRAY_0004ebf8 + 0x680),ch);\n    return (uint)(iVar1 != 0);\n  }\n  return 0;\n}" primitive_type (function_declarator "is_ansi_middle(LWCHAR ch)" identifier (parameter_list "(LWCHAR ch)" ( (parameter_declaration "LWCHAR ch" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (0x7f < ch) {\n    return 0;\n  }\n  iVar1 = is_ansi_end(ch);\n  if (iVar1 == 0) {\n    iVar1 = (*(code *)PTR_strchr_0004f310)(*(undefined4 *)(PTR_CHAR_ARRAY_0004ebf8 + 0x680),ch);\n    return (uint)(iVar1 != 0);\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (0x7f < ch) {\n    return 0;\n  }" if (parenthesized_expression "(0x7f < ch)" ( (binary_expression "0x7f < ch" number_literal < identifier) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = is_ansi_end(ch);" (assignment_expression "iVar1 = is_ansi_end(ch)" identifier = (call_expression "is_ansi_end(ch)" identifier (argument_list "(ch)" ( identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = (*(code *)PTR_strchr_0004f310)(*(undefined4 *)(PTR_CHAR_ARRAY_0004ebf8 + 0x680),ch);\n    return (uint)(iVar1 != 0);\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_strchr_0004f310)(*(undefined4 *)(PTR_CHAR_ARRAY_0004ebf8 + 0x680),ch);\n    return (uint)(iVar1 != 0);\n  }" { (expression_statement "iVar1 = (*(code *)PTR_strchr_0004f310)(*(undefined4 *)(PTR_CHAR_ARRAY_0004ebf8 + 0x680),ch);" (assignment_expression "iVar1 = (*(code *)PTR_strchr_0004f310)(*(undefined4 *)(PTR_CHAR_ARRAY_0004ebf8 + 0x680),ch)" identifier = (call_expression "(*(code *)PTR_strchr_0004f310)(*(undefined4 *)(PTR_CHAR_ARRAY_0004ebf8 + 0x680),ch)" (parenthesized_expression "(*(code *)PTR_strchr_0004f310)" ( (pointer_expression "*(code *)PTR_strchr_0004f310" * (cast_expression "(code *)PTR_strchr_0004f310" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(PTR_CHAR_ARRAY_0004ebf8 + 0x680),ch)" ( (pointer_expression "*(undefined4 *)(PTR_CHAR_ARRAY_0004ebf8 + 0x680)" * (cast_expression "(undefined4 *)(PTR_CHAR_ARRAY_0004ebf8 + 0x680)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_CHAR_ARRAY_0004ebf8 + 0x680)" ( (binary_expression "PTR_CHAR_ARRAY_0004ebf8 + 0x680" identifier + number_literal) )))) , identifier )))) ;) (return_statement "return (uint)(iVar1 != 0);" return (call_expression "(uint)(iVar1 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "bool is_ansi_middle(uint param_1)\n\n{\n  int iVar1;\n  \n  if (0x7f < param_1) {\n    return false;\n  }\n  iVar1 = FUN_000276c4();\n  if (iVar1 == 0) {\n    iVar1 = (*(code *)PTR_strchr_0004f310)(*(undefined4 *)(PTR_DAT_0004ebf8 + 0x680),param_1);\n    return iVar1 != 0;\n  }\n  return false;\n}\n\n" (function_definition "bool is_ansi_middle(uint param_1)\n\n{\n  int iVar1;\n  \n  if (0x7f < param_1) {\n    return false;\n  }\n  iVar1 = FUN_000276c4();\n  if (iVar1 == 0) {\n    iVar1 = (*(code *)PTR_strchr_0004f310)(*(undefined4 *)(PTR_DAT_0004ebf8 + 0x680),param_1);\n    return iVar1 != 0;\n  }\n  return false;\n}" primitive_type (function_declarator "is_ansi_middle(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (0x7f < param_1) {\n    return false;\n  }\n  iVar1 = FUN_000276c4();\n  if (iVar1 == 0) {\n    iVar1 = (*(code *)PTR_strchr_0004f310)(*(undefined4 *)(PTR_DAT_0004ebf8 + 0x680),param_1);\n    return iVar1 != 0;\n  }\n  return false;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (0x7f < param_1) {\n    return false;\n  }" if (parenthesized_expression "(0x7f < param_1)" ( (binary_expression "0x7f < param_1" number_literal < identifier) )) (compound_statement "{\n    return false;\n  }" { (return_statement "return false;" return false ;) })) (expression_statement "iVar1 = FUN_000276c4();" (assignment_expression "iVar1 = FUN_000276c4()" identifier = (call_expression "FUN_000276c4()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = (*(code *)PTR_strchr_0004f310)(*(undefined4 *)(PTR_DAT_0004ebf8 + 0x680),param_1);\n    return iVar1 != 0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_strchr_0004f310)(*(undefined4 *)(PTR_DAT_0004ebf8 + 0x680),param_1);\n    return iVar1 != 0;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_strchr_0004f310)(*(undefined4 *)(PTR_DAT_0004ebf8 + 0x680),param_1);" (assignment_expression "iVar1 = (*(code *)PTR_strchr_0004f310)(*(undefined4 *)(PTR_DAT_0004ebf8 + 0x680),param_1)" identifier = (call_expression "(*(code *)PTR_strchr_0004f310)(*(undefined4 *)(PTR_DAT_0004ebf8 + 0x680),param_1)" (parenthesized_expression "(*(code *)PTR_strchr_0004f310)" ( (pointer_expression "*(code *)PTR_strchr_0004f310" * (cast_expression "(code *)PTR_strchr_0004f310" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(PTR_DAT_0004ebf8 + 0x680),param_1)" ( (pointer_expression "*(undefined4 *)(PTR_DAT_0004ebf8 + 0x680)" * (cast_expression "(undefined4 *)(PTR_DAT_0004ebf8 + 0x680)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0004ebf8 + 0x680)" ( (binary_expression "PTR_DAT_0004ebf8 + 0x680" identifier + number_literal) )))) , identifier )))) ;) (return_statement "return iVar1 != 0;" return (binary_expression "iVar1 != 0" identifier != number_literal) ;) })) (return_statement "return false;" return false ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (return_statement return BOOL ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT )))) ;) (return_statement return (binary_expression IDENT != LIT) ;) })) (return_statement return BOOL ;) })))
(function_definition "bool is_ansi_middle(uint param_1)\n\n{\n  int iVar1;\n  \n  if (0x7f < param_1) {\n    return false;\n  }\n  iVar1 = FUN_000276c4();\n  if (iVar1 == 0) {\n    iVar1 = (*(code *)PTR_strchr_0004f310)(*(undefined4 *)(PTR_DAT_0004ebf8 + 0x680),param_1);\n    return iVar1 != 0;\n  }\n  return false;\n}" (primitive_type "bool") (function_declarator "is_ansi_middle(uint param_1)" (identifier "is_ansi_middle") (parameter_list "(uint param_1)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (0x7f < param_1) {\n    return false;\n  }\n  iVar1 = FUN_000276c4();\n  if (iVar1 == 0) {\n    iVar1 = (*(code *)PTR_strchr_0004f310)(*(undefined4 *)(PTR_DAT_0004ebf8 + 0x680),param_1);\n    return iVar1 != 0;\n  }\n  return false;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (0x7f < param_1) {\n    return false;\n  }" (if "if") (parenthesized_expression "(0x7f < param_1)" (( "(") (binary_expression "0x7f < param_1" (number_literal "0x7f") (< "<") (identifier "param_1")) () ")")) (compound_statement "{\n    return false;\n  }" ({ "{") (return_statement "return false;" (return "return") (false "false") (; ";")) (} "}"))) (expression_statement "iVar1 = FUN_000276c4();" (assignment_expression "iVar1 = FUN_000276c4()" (identifier "iVar1") (= "=") (call_expression "FUN_000276c4()" (identifier "FUN_000276c4") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    iVar1 = (*(code *)PTR_strchr_0004f310)(*(undefined4 *)(PTR_DAT_0004ebf8 + 0x680),param_1);\n    return iVar1 != 0;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = (*(code *)PTR_strchr_0004f310)(*(undefined4 *)(PTR_DAT_0004ebf8 + 0x680),param_1);\n    return iVar1 != 0;\n  }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_strchr_0004f310)(*(undefined4 *)(PTR_DAT_0004ebf8 + 0x680),param_1);" (assignment_expression "iVar1 = (*(code *)PTR_strchr_0004f310)(*(undefined4 *)(PTR_DAT_0004ebf8 + 0x680),param_1)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_strchr_0004f310)(*(undefined4 *)(PTR_DAT_0004ebf8 + 0x680),param_1)" (parenthesized_expression "(*(code *)PTR_strchr_0004f310)" (( "(") (pointer_expression "*(code *)PTR_strchr_0004f310" (* "*") (cast_expression "(code *)PTR_strchr_0004f310" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strchr_0004f310"))) () ")")) (argument_list "(*(undefined4 *)(PTR_DAT_0004ebf8 + 0x680),param_1)" (( "(") (pointer_expression "*(undefined4 *)(PTR_DAT_0004ebf8 + 0x680)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_0004ebf8 + 0x680)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0004ebf8 + 0x680)" (( "(") (binary_expression "PTR_DAT_0004ebf8 + 0x680" (identifier "PTR_DAT_0004ebf8") (+ "+") (number_literal "0x680")) () ")")))) (, ",") (identifier "param_1") () ")")))) (; ";")) (return_statement "return iVar1 != 0;" (return "return") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return false;" (return "return") (false "false") (; ";")) (} "}")))

int function_1(type_1 var_1)

{
  int var_3;
  
  if (0x7f < var_1) {
    return 0;
  }
  var_3 = var_2(var_1);
  if (var_3 == 0) {
    var_3 = (*(type_2 *)PTR_strchr_0004f310)(*(type_3 *)(var_4 + 0x680),var_1);
    return (uint)(var_3 != 0);
  }
  return 0;
}


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

bool MASKED(uint param_1)

{
  int iVar1;
  
  if (0x7f < param_1) {
    return false;
  }
  iVar1 = FUN_000276c4();
  if (iVar1 == 0) {
    iVar1 = (*(code *)PTR_strchr_0004f310)(*(undefined4 *)(PTR_DAT_0004ebf8 + 0x680),param_1);
    return iVar1 != 0;
  }
  return false;
}

