
/* std::ctype<wchar_t>::do_is(unsigned short, wchar_t) const */

bool __thiscall std::ctype<wchar_t>::do_is(ctype<wchar_t> *this,ushort param_1,wchar_t param_2)

{
  int iVar1;
  undefined2 in_register_00000014;
  undefined2 in_register_00000018;
  ctype<wchar_t> *pcVar2;
  
  if ((uint)*(ushort *)(this + 0x49a) == CONCAT22(in_register_00000014,param_1)) {
    iVar1 = (*(code *)PTR___iswctype_l_00436914)
                      (CONCAT22(in_register_00000018,param_2),*(undefined4 *)(this + 0x4c4),
                       *(undefined4 *)(this + 8));
    return iVar1 != 0;
  }
  pcVar2 = this + 0x490;
  do {
    if ((param_1 & *(ushort *)pcVar2) != 0) {
      iVar1 = (*(code *)PTR___iswctype_l_00436914)
                        (CONCAT22(in_register_00000018,param_2),
                         *(undefined4 *)(((int)pcVar2 * 2 - (int)this) + -0x470),
                         *(undefined4 *)(this + 8));
      if (iVar1 != 0) {
        return true;
      }
      if ((uint)*(ushort *)pcVar2 == CONCAT22(in_register_00000014,param_1)) {
        return false;
      }
    }
    pcVar2 = pcVar2 + 2;
    if (pcVar2 == this + 0x4a8) {
      return false;
    }
  } while( true );
}



bool FUN_002ff120(int param_1,uint param_2,undefined4 param_3)

{
  int iVar1;
  ushort *puVar2;
  
  if (*(ushort *)(param_1 + 0x49a) == param_2) {
    iVar1 = (*(code *)PTR___iswctype_l_00436914)
                      (param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8));
    return iVar1 != 0;
  }
  puVar2 = (ushort *)(param_1 + 0x490);
  do {
    if ((param_2 & *puVar2) != 0) {
      iVar1 = (*(code *)PTR___iswctype_l_00436914)
                        (param_3,*(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470),
                         *(undefined4 *)(param_1 + 8));
      if (iVar1 != 0) {
        return true;
      }
      if (*puVar2 == param_2) {
        return false;
      }
    }
    puVar2 = puVar2 + 1;
    if (puVar2 == (ushort *)(param_1 + 0x4a8)) {
      return false;
    }
  } while( true );
}


lui gp,0x14
addiu gp,gp,-0x4f50
addu gp,gp,t9
addiu sp,sp,-0x30
sw s3,0x24(sp)
or s3,a2,zero
sw s2,0x20(sp)
sw gp,0x10(sp)
sw ra,0x2c(sp)
sw s4,0x28(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
lhu v0,0x49a(a0)
beq v0,a1,0x002ff1d8
_or s2,a0,zero
or s1,a1,zero
addiu s0,a0,0x490
b 0x002ff178
_addiu s4,a0,0x4a8
addiu s0,s0,0x2
beq s0,s4,0x002ff1b8
_or v0,zero,zero
lhu v0,0x0(s0)
and v0,s1,v0
beq v0,zero,0x002ff16c
_sll v0,s0,0x1
lw t9,-0x38bc(gp)
lw a2,0x8(s2)
or a0,s3,zero
subu v0,v0,s2
jalr t9
_lw a1,-0x470(v0)
bne v0,zero,0x002ff210
_lw gp,0x10(sp)
lhu v0,0x0(s0)
bne v0,s1,0x002ff170
_addiu s0,s0,0x2
or v0,zero,zero
lw ra,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x30
lw t9,-0x38bc(gp)
or a0,a2,zero
lw a1,0x4c4(s2)
jalr t9
_lw a2,0x8(s2)
lw ra,0x2c(sp)
sltu v0,zero,v0
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x30
b 0x002ff1b8
_li v0,0x1
(translation_unit "bool FUN_002ff120(int param_1,uint param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  ushort *puVar2;\n  \n  if (*(ushort *)(param_1 + 0x49a) == param_2) {\n    iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                      (param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8));\n    return iVar1 != 0;\n  }\n  puVar2 = (ushort *)(param_1 + 0x490);\n  do {\n    if ((param_2 & *puVar2) != 0) {\n      iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                        (param_3,*(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470),\n                         *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*puVar2 == param_2) {\n        return false;\n      }\n    }\n    puVar2 = puVar2 + 1;\n    if (puVar2 == (ushort *)(param_1 + 0x4a8)) {\n      return false;\n    }\n  } while( true );\n}\n\n" (function_definition "bool FUN_002ff120(int param_1,uint param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  ushort *puVar2;\n  \n  if (*(ushort *)(param_1 + 0x49a) == param_2) {\n    iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                      (param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8));\n    return iVar1 != 0;\n  }\n  puVar2 = (ushort *)(param_1 + 0x490);\n  do {\n    if ((param_2 & *puVar2) != 0) {\n      iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                        (param_3,*(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470),\n                         *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*puVar2 == param_2) {\n        return false;\n      }\n    }\n    puVar2 = puVar2 + 1;\n    if (puVar2 == (ushort *)(param_1 + 0x4a8)) {\n      return false;\n    }\n  } while( true );\n}" primitive_type (function_declarator "FUN_002ff120(int param_1,uint param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,uint param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  ushort *puVar2;\n  \n  if (*(ushort *)(param_1 + 0x49a) == param_2) {\n    iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                      (param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8));\n    return iVar1 != 0;\n  }\n  puVar2 = (ushort *)(param_1 + 0x490);\n  do {\n    if ((param_2 & *puVar2) != 0) {\n      iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                        (param_3,*(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470),\n                         *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*puVar2 == param_2) {\n        return false;\n      }\n    }\n    puVar2 = puVar2 + 1;\n    if (puVar2 == (ushort *)(param_1 + 0x4a8)) {\n      return false;\n    }\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "ushort *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (*(ushort *)(param_1 + 0x49a) == param_2) {\n    iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                      (param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8));\n    return iVar1 != 0;\n  }" if (parenthesized_expression "(*(ushort *)(param_1 + 0x49a) == param_2)" ( (binary_expression "*(ushort *)(param_1 + 0x49a) == param_2" (pointer_expression "*(ushort *)(param_1 + 0x49a)" * (cast_expression "(ushort *)(param_1 + 0x49a)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x49a)" ( (binary_expression "param_1 + 0x49a" identifier + number_literal) )))) == identifier) )) (compound_statement "{\n    iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                      (param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8));\n    return iVar1 != 0;\n  }" { (expression_statement "iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                      (param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8));" (assignment_expression "iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                      (param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8))" identifier = (call_expression "(*(code *)PTR___iswctype_l_00436914)\n                      (param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8))" (parenthesized_expression "(*(code *)PTR___iswctype_l_00436914)" ( (pointer_expression "*(code *)PTR___iswctype_l_00436914" * (cast_expression "(code *)PTR___iswctype_l_00436914" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8))" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x4c4)" * (cast_expression "(undefined4 *)(param_1 + 0x4c4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c4)" ( (binary_expression "param_1 + 0x4c4" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) )))) ;) (return_statement "return iVar1 != 0;" return (binary_expression "iVar1 != 0" identifier != number_literal) ;) })) (expression_statement "puVar2 = (ushort *)(param_1 + 0x490);" (assignment_expression "puVar2 = (ushort *)(param_1 + 0x490)" identifier = (cast_expression "(ushort *)(param_1 + 0x490)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x490)" ( (binary_expression "param_1 + 0x490" identifier + number_literal) )))) ;) (do_statement "do {\n    if ((param_2 & *puVar2) != 0) {\n      iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                        (param_3,*(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470),\n                         *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*puVar2 == param_2) {\n        return false;\n      }\n    }\n    puVar2 = puVar2 + 1;\n    if (puVar2 == (ushort *)(param_1 + 0x4a8)) {\n      return false;\n    }\n  } while( true );" do (compound_statement "{\n    if ((param_2 & *puVar2) != 0) {\n      iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                        (param_3,*(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470),\n                         *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*puVar2 == param_2) {\n        return false;\n      }\n    }\n    puVar2 = puVar2 + 1;\n    if (puVar2 == (ushort *)(param_1 + 0x4a8)) {\n      return false;\n    }\n  }" { (if_statement "if ((param_2 & *puVar2) != 0) {\n      iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                        (param_3,*(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470),\n                         *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*puVar2 == param_2) {\n        return false;\n      }\n    }" if (parenthesized_expression "((param_2 & *puVar2) != 0)" ( (binary_expression "(param_2 & *puVar2) != 0" (parenthesized_expression "(param_2 & *puVar2)" ( (binary_expression "param_2 & *puVar2" identifier & (pointer_expression "*puVar2" * identifier)) )) != number_literal) )) (compound_statement "{\n      iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                        (param_3,*(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470),\n                         *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*puVar2 == param_2) {\n        return false;\n      }\n    }" { (expression_statement "iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                        (param_3,*(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470),\n                         *(undefined4 *)(param_1 + 8));" (assignment_expression "iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                        (param_3,*(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470),\n                         *(undefined4 *)(param_1 + 8))" identifier = (call_expression "(*(code *)PTR___iswctype_l_00436914)\n                        (param_3,*(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470),\n                         *(undefined4 *)(param_1 + 8))" (parenthesized_expression "(*(code *)PTR___iswctype_l_00436914)" ( (pointer_expression "*(code *)PTR___iswctype_l_00436914" * (cast_expression "(code *)PTR___iswctype_l_00436914" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3,*(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470),\n                         *(undefined4 *)(param_1 + 8))" ( identifier , (pointer_expression "*(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470)" * (cast_expression "(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((int)puVar2 * 2 - param_1) + -0x470)" ( (binary_expression "((int)puVar2 * 2 - param_1) + -0x470" (parenthesized_expression "((int)puVar2 * 2 - param_1)" ( (binary_expression "(int)puVar2 * 2 - param_1" (binary_expression "(int)puVar2 * 2" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal) - identifier) )) + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar1 != 0) {\n        return true;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        return true;\n      }" { (return_statement "return true;" return true ;) })) (if_statement "if (*puVar2 == param_2) {\n        return false;\n      }" if (parenthesized_expression "(*puVar2 == param_2)" ( (binary_expression "*puVar2 == param_2" (pointer_expression "*puVar2" * identifier) == identifier) )) (compound_statement "{\n        return false;\n      }" { (return_statement "return false;" return false ;) })) })) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) (if_statement "if (puVar2 == (ushort *)(param_1 + 0x4a8)) {\n      return false;\n    }" if (parenthesized_expression "(puVar2 == (ushort *)(param_1 + 0x4a8))" ( (binary_expression "puVar2 == (ushort *)(param_1 + 0x4a8)" identifier == (cast_expression "(ushort *)(param_1 + 0x4a8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4a8)" ( (binary_expression "param_1 + 0x4a8" identifier + number_literal) )))) )) (compound_statement "{\n      return false;\n    }" { (return_statement "return false;" return false ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* std::ctype<wchar_t>::do_is(unsigned short, wchar_t) const */\n\nbool __thiscall std::ctype<wchar_t>::do_is(ctype<wchar_t> *this,ushort param_1,wchar_t param_2)\n\n{\n  int iVar1;\n  undefined2 in_register_00000014;\n  undefined2 in_register_00000018;\n  ctype<wchar_t> *pcVar2;\n  \n  if ((uint)*(ushort *)(this + 0x49a) == CONCAT22(in_register_00000014,param_1)) {\n    iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                      (CONCAT22(in_register_00000018,param_2),*(undefined4 *)(this + 0x4c4),\n                       *(undefined4 *)(this + 8));\n    return iVar1 != 0;\n  }\n  pcVar2 = this + 0x490;\n  do {\n    if ((param_1 & *(ushort *)pcVar2) != 0) {\n      iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                        (CONCAT22(in_register_00000018,param_2),\n                         *(undefined4 *)(((int)pcVar2 * 2 - (int)this) + -0x470),\n                         *(undefined4 *)(this + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if ((uint)*(ushort *)pcVar2 == CONCAT22(in_register_00000014,param_1)) {\n        return false;\n      }\n    }\n    pcVar2 = pcVar2 + 2;\n    if (pcVar2 == this + 0x4a8) {\n      return false;\n    }\n  } while( true );\n}\n\n" comment (function_definition "bool __thiscall std::ctype<wchar_t>::do_is(ctype<wchar_t> *this,ushort param_1,wchar_t param_2)\n\n{\n  int iVar1;\n  undefined2 in_register_00000014;\n  undefined2 in_register_00000018;\n  ctype<wchar_t> *pcVar2;\n  \n  if ((uint)*(ushort *)(this + 0x49a) == CONCAT22(in_register_00000014,param_1)) {\n    iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                      (CONCAT22(in_register_00000018,param_2),*(undefined4 *)(this + 0x4c4),\n                       *(undefined4 *)(this + 8));\n    return iVar1 != 0;\n  }\n  pcVar2 = this + 0x490;\n  do {\n    if ((param_1 & *(ushort *)pcVar2) != 0) {\n      iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                        (CONCAT22(in_register_00000018,param_2),\n                         *(undefined4 *)(((int)pcVar2 * 2 - (int)this) + -0x470),\n                         *(undefined4 *)(this + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if ((uint)*(ushort *)pcVar2 == CONCAT22(in_register_00000014,param_1)) {\n        return false;\n      }\n    }\n    pcVar2 = pcVar2 + 2;\n    if (pcVar2 == this + 0x4a8) {\n      return false;\n    }\n  } while( true );\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::ctype<wchar_t>::" identifier : : identifier < identifier > : :) (function_declarator "do_is(ctype<wchar_t> *this,ushort param_1,wchar_t param_2)" identifier (parameter_list "(ctype<wchar_t> *this,ushort param_1,wchar_t param_2)" ( (parameter_declaration "ctype<wchar_t> *this" type_identifier (ERROR "<wchar_t>" < identifier >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "ushort param_1" type_identifier identifier) , (parameter_declaration "wchar_t param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined2 in_register_00000014;\n  undefined2 in_register_00000018;\n  ctype<wchar_t> *pcVar2;\n  \n  if ((uint)*(ushort *)(this + 0x49a) == CONCAT22(in_register_00000014,param_1)) {\n    iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                      (CONCAT22(in_register_00000018,param_2),*(undefined4 *)(this + 0x4c4),\n                       *(undefined4 *)(this + 8));\n    return iVar1 != 0;\n  }\n  pcVar2 = this + 0x490;\n  do {\n    if ((param_1 & *(ushort *)pcVar2) != 0) {\n      iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                        (CONCAT22(in_register_00000018,param_2),\n                         *(undefined4 *)(((int)pcVar2 * 2 - (int)this) + -0x470),\n                         *(undefined4 *)(this + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if ((uint)*(ushort *)pcVar2 == CONCAT22(in_register_00000014,param_1)) {\n        return false;\n      }\n    }\n    pcVar2 = pcVar2 + 2;\n    if (pcVar2 == this + 0x4a8) {\n      return false;\n    }\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined2 in_register_00000014;" type_identifier identifier ;) (declaration "undefined2 in_register_00000018;" type_identifier identifier ;) (expression_statement "ctype<wchar_t> *pcVar2;" (binary_expression "ctype<wchar_t> *pcVar2" (binary_expression "ctype<wchar_t" identifier < identifier) > (pointer_expression "*pcVar2" * identifier)) ;) (if_statement "if ((uint)*(ushort *)(this + 0x49a) == CONCAT22(in_register_00000014,param_1)) {\n    iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                      (CONCAT22(in_register_00000018,param_2),*(undefined4 *)(this + 0x4c4),\n                       *(undefined4 *)(this + 8));\n    return iVar1 != 0;\n  }" if (parenthesized_expression "((uint)*(ushort *)(this + 0x49a) == CONCAT22(in_register_00000014,param_1))" ( (binary_expression "(uint)*(ushort *)(this + 0x49a) == CONCAT22(in_register_00000014,param_1)" (binary_expression "(uint)*(ushort *)(this + 0x49a)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(this + 0x49a)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x49a)" ( (binary_expression "this + 0x49a" identifier + number_literal) )))) == (call_expression "CONCAT22(in_register_00000014,param_1)" identifier (argument_list "(in_register_00000014,param_1)" ( identifier , identifier )))) )) (compound_statement "{\n    iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                      (CONCAT22(in_register_00000018,param_2),*(undefined4 *)(this + 0x4c4),\n                       *(undefined4 *)(this + 8));\n    return iVar1 != 0;\n  }" { (expression_statement "iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                      (CONCAT22(in_register_00000018,param_2),*(undefined4 *)(this + 0x4c4),\n                       *(undefined4 *)(this + 8));" (assignment_expression "iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                      (CONCAT22(in_register_00000018,param_2),*(undefined4 *)(this + 0x4c4),\n                       *(undefined4 *)(this + 8))" identifier = (call_expression "(*(code *)PTR___iswctype_l_00436914)\n                      (CONCAT22(in_register_00000018,param_2),*(undefined4 *)(this + 0x4c4),\n                       *(undefined4 *)(this + 8))" (parenthesized_expression "(*(code *)PTR___iswctype_l_00436914)" ( (pointer_expression "*(code *)PTR___iswctype_l_00436914" * (cast_expression "(code *)PTR___iswctype_l_00436914" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(CONCAT22(in_register_00000018,param_2),*(undefined4 *)(this + 0x4c4),\n                       *(undefined4 *)(this + 8))" ( (call_expression "CONCAT22(in_register_00000018,param_2)" identifier (argument_list "(in_register_00000018,param_2)" ( identifier , identifier ))) , (pointer_expression "*(undefined4 *)(this + 0x4c4)" * (cast_expression "(undefined4 *)(this + 0x4c4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x4c4)" ( (binary_expression "this + 0x4c4" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(this + 8)" * (cast_expression "(undefined4 *)(this + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) )))) ;) (return_statement "return iVar1 != 0;" return (binary_expression "iVar1 != 0" identifier != number_literal) ;) })) (expression_statement "pcVar2 = this + 0x490;" (assignment_expression "pcVar2 = this + 0x490" identifier = (binary_expression "this + 0x490" identifier + number_literal)) ;) (do_statement "do {\n    if ((param_1 & *(ushort *)pcVar2) != 0) {\n      iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                        (CONCAT22(in_register_00000018,param_2),\n                         *(undefined4 *)(((int)pcVar2 * 2 - (int)this) + -0x470),\n                         *(undefined4 *)(this + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if ((uint)*(ushort *)pcVar2 == CONCAT22(in_register_00000014,param_1)) {\n        return false;\n      }\n    }\n    pcVar2 = pcVar2 + 2;\n    if (pcVar2 == this + 0x4a8) {\n      return false;\n    }\n  } while( true );" do (compound_statement "{\n    if ((param_1 & *(ushort *)pcVar2) != 0) {\n      iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                        (CONCAT22(in_register_00000018,param_2),\n                         *(undefined4 *)(((int)pcVar2 * 2 - (int)this) + -0x470),\n                         *(undefined4 *)(this + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if ((uint)*(ushort *)pcVar2 == CONCAT22(in_register_00000014,param_1)) {\n        return false;\n      }\n    }\n    pcVar2 = pcVar2 + 2;\n    if (pcVar2 == this + 0x4a8) {\n      return false;\n    }\n  }" { (if_statement "if ((param_1 & *(ushort *)pcVar2) != 0) {\n      iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                        (CONCAT22(in_register_00000018,param_2),\n                         *(undefined4 *)(((int)pcVar2 * 2 - (int)this) + -0x470),\n                         *(undefined4 *)(this + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if ((uint)*(ushort *)pcVar2 == CONCAT22(in_register_00000014,param_1)) {\n        return false;\n      }\n    }" if (parenthesized_expression "((param_1 & *(ushort *)pcVar2) != 0)" ( (binary_expression "(param_1 & *(ushort *)pcVar2) != 0" (parenthesized_expression "(param_1 & *(ushort *)pcVar2)" ( (binary_expression "param_1 & *(ushort *)pcVar2" identifier & (pointer_expression "*(ushort *)pcVar2" * (cast_expression "(ushort *)pcVar2" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) )) != number_literal) )) (compound_statement "{\n      iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                        (CONCAT22(in_register_00000018,param_2),\n                         *(undefined4 *)(((int)pcVar2 * 2 - (int)this) + -0x470),\n                         *(undefined4 *)(this + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if ((uint)*(ushort *)pcVar2 == CONCAT22(in_register_00000014,param_1)) {\n        return false;\n      }\n    }" { (expression_statement "iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                        (CONCAT22(in_register_00000018,param_2),\n                         *(undefined4 *)(((int)pcVar2 * 2 - (int)this) + -0x470),\n                         *(undefined4 *)(this + 8));" (assignment_expression "iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                        (CONCAT22(in_register_00000018,param_2),\n                         *(undefined4 *)(((int)pcVar2 * 2 - (int)this) + -0x470),\n                         *(undefined4 *)(this + 8))" identifier = (call_expression "(*(code *)PTR___iswctype_l_00436914)\n                        (CONCAT22(in_register_00000018,param_2),\n                         *(undefined4 *)(((int)pcVar2 * 2 - (int)this) + -0x470),\n                         *(undefined4 *)(this + 8))" (parenthesized_expression "(*(code *)PTR___iswctype_l_00436914)" ( (pointer_expression "*(code *)PTR___iswctype_l_00436914" * (cast_expression "(code *)PTR___iswctype_l_00436914" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(CONCAT22(in_register_00000018,param_2),\n                         *(undefined4 *)(((int)pcVar2 * 2 - (int)this) + -0x470),\n                         *(undefined4 *)(this + 8))" ( (call_expression "CONCAT22(in_register_00000018,param_2)" identifier (argument_list "(in_register_00000018,param_2)" ( identifier , identifier ))) , (pointer_expression "*(undefined4 *)(((int)pcVar2 * 2 - (int)this) + -0x470)" * (cast_expression "(undefined4 *)(((int)pcVar2 * 2 - (int)this) + -0x470)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((int)pcVar2 * 2 - (int)this) + -0x470)" ( (binary_expression "((int)pcVar2 * 2 - (int)this) + -0x470" (parenthesized_expression "((int)pcVar2 * 2 - (int)this)" ( (binary_expression "(int)pcVar2 * 2 - (int)this" (binary_expression "(int)pcVar2 * 2" (cast_expression "(int)pcVar2" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal) - (cast_expression "(int)this" ( (type_descriptor "int" primitive_type) ) identifier)) )) + number_literal) )))) , (pointer_expression "*(undefined4 *)(this + 8)" * (cast_expression "(undefined4 *)(this + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar1 != 0) {\n        return true;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        return true;\n      }" { (return_statement "return true;" return true ;) })) (if_statement "if ((uint)*(ushort *)pcVar2 == CONCAT22(in_register_00000014,param_1)) {\n        return false;\n      }" if (parenthesized_expression "((uint)*(ushort *)pcVar2 == CONCAT22(in_register_00000014,param_1))" ( (binary_expression "(uint)*(ushort *)pcVar2 == CONCAT22(in_register_00000014,param_1)" (binary_expression "(uint)*(ushort *)pcVar2" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)pcVar2" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) == (call_expression "CONCAT22(in_register_00000014,param_1)" identifier (argument_list "(in_register_00000014,param_1)" ( identifier , identifier )))) )) (compound_statement "{\n        return false;\n      }" { (return_statement "return false;" return false ;) })) })) (expression_statement "pcVar2 = pcVar2 + 2;" (assignment_expression "pcVar2 = pcVar2 + 2" identifier = (binary_expression "pcVar2 + 2" identifier + number_literal)) ;) (if_statement "if (pcVar2 == this + 0x4a8) {\n      return false;\n    }" if (parenthesized_expression "(pcVar2 == this + 0x4a8)" ( (binary_expression "pcVar2 == this + 0x4a8" identifier == (binary_expression "this + 0x4a8" identifier + number_literal)) )) (compound_statement "{\n      return false;\n    }" { (return_statement "return false;" return false ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "bool FUN_002ff120(int param_1,uint param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  ushort *puVar2;\n  \n  if (*(ushort *)(param_1 + 0x49a) == param_2) {\n    iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                      (param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8));\n    return iVar1 != 0;\n  }\n  puVar2 = (ushort *)(param_1 + 0x490);\n  do {\n    if ((param_2 & *puVar2) != 0) {\n      iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                        (param_3,*(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470),\n                         *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*puVar2 == param_2) {\n        return false;\n      }\n    }\n    puVar2 = puVar2 + 1;\n    if (puVar2 == (ushort *)(param_1 + 0x4a8)) {\n      return false;\n    }\n  } while( true );\n}\n\n" (function_definition "bool FUN_002ff120(int param_1,uint param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  ushort *puVar2;\n  \n  if (*(ushort *)(param_1 + 0x49a) == param_2) {\n    iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                      (param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8));\n    return iVar1 != 0;\n  }\n  puVar2 = (ushort *)(param_1 + 0x490);\n  do {\n    if ((param_2 & *puVar2) != 0) {\n      iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                        (param_3,*(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470),\n                         *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*puVar2 == param_2) {\n        return false;\n      }\n    }\n    puVar2 = puVar2 + 1;\n    if (puVar2 == (ushort *)(param_1 + 0x4a8)) {\n      return false;\n    }\n  } while( true );\n}" primitive_type (function_declarator "FUN_002ff120(int param_1,uint param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,uint param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  ushort *puVar2;\n  \n  if (*(ushort *)(param_1 + 0x49a) == param_2) {\n    iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                      (param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8));\n    return iVar1 != 0;\n  }\n  puVar2 = (ushort *)(param_1 + 0x490);\n  do {\n    if ((param_2 & *puVar2) != 0) {\n      iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                        (param_3,*(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470),\n                         *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*puVar2 == param_2) {\n        return false;\n      }\n    }\n    puVar2 = puVar2 + 1;\n    if (puVar2 == (ushort *)(param_1 + 0x4a8)) {\n      return false;\n    }\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "ushort *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (*(ushort *)(param_1 + 0x49a) == param_2) {\n    iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                      (param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8));\n    return iVar1 != 0;\n  }" if (parenthesized_expression "(*(ushort *)(param_1 + 0x49a) == param_2)" ( (binary_expression "*(ushort *)(param_1 + 0x49a) == param_2" (pointer_expression "*(ushort *)(param_1 + 0x49a)" * (cast_expression "(ushort *)(param_1 + 0x49a)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x49a)" ( (binary_expression "param_1 + 0x49a" identifier + number_literal) )))) == identifier) )) (compound_statement "{\n    iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                      (param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8));\n    return iVar1 != 0;\n  }" { (expression_statement "iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                      (param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8));" (assignment_expression "iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                      (param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8))" identifier = (call_expression "(*(code *)PTR___iswctype_l_00436914)\n                      (param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8))" (parenthesized_expression "(*(code *)PTR___iswctype_l_00436914)" ( (pointer_expression "*(code *)PTR___iswctype_l_00436914" * (cast_expression "(code *)PTR___iswctype_l_00436914" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8))" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x4c4)" * (cast_expression "(undefined4 *)(param_1 + 0x4c4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c4)" ( (binary_expression "param_1 + 0x4c4" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) )))) ;) (return_statement "return iVar1 != 0;" return (binary_expression "iVar1 != 0" identifier != number_literal) ;) })) (expression_statement "puVar2 = (ushort *)(param_1 + 0x490);" (assignment_expression "puVar2 = (ushort *)(param_1 + 0x490)" identifier = (cast_expression "(ushort *)(param_1 + 0x490)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x490)" ( (binary_expression "param_1 + 0x490" identifier + number_literal) )))) ;) (do_statement "do {\n    if ((param_2 & *puVar2) != 0) {\n      iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                        (param_3,*(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470),\n                         *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*puVar2 == param_2) {\n        return false;\n      }\n    }\n    puVar2 = puVar2 + 1;\n    if (puVar2 == (ushort *)(param_1 + 0x4a8)) {\n      return false;\n    }\n  } while( true );" do (compound_statement "{\n    if ((param_2 & *puVar2) != 0) {\n      iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                        (param_3,*(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470),\n                         *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*puVar2 == param_2) {\n        return false;\n      }\n    }\n    puVar2 = puVar2 + 1;\n    if (puVar2 == (ushort *)(param_1 + 0x4a8)) {\n      return false;\n    }\n  }" { (if_statement "if ((param_2 & *puVar2) != 0) {\n      iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                        (param_3,*(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470),\n                         *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*puVar2 == param_2) {\n        return false;\n      }\n    }" if (parenthesized_expression "((param_2 & *puVar2) != 0)" ( (binary_expression "(param_2 & *puVar2) != 0" (parenthesized_expression "(param_2 & *puVar2)" ( (binary_expression "param_2 & *puVar2" identifier & (pointer_expression "*puVar2" * identifier)) )) != number_literal) )) (compound_statement "{\n      iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                        (param_3,*(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470),\n                         *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*puVar2 == param_2) {\n        return false;\n      }\n    }" { (expression_statement "iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                        (param_3,*(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470),\n                         *(undefined4 *)(param_1 + 8));" (assignment_expression "iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                        (param_3,*(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470),\n                         *(undefined4 *)(param_1 + 8))" identifier = (call_expression "(*(code *)PTR___iswctype_l_00436914)\n                        (param_3,*(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470),\n                         *(undefined4 *)(param_1 + 8))" (parenthesized_expression "(*(code *)PTR___iswctype_l_00436914)" ( (pointer_expression "*(code *)PTR___iswctype_l_00436914" * (cast_expression "(code *)PTR___iswctype_l_00436914" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3,*(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470),\n                         *(undefined4 *)(param_1 + 8))" ( identifier , (pointer_expression "*(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470)" * (cast_expression "(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((int)puVar2 * 2 - param_1) + -0x470)" ( (binary_expression "((int)puVar2 * 2 - param_1) + -0x470" (parenthesized_expression "((int)puVar2 * 2 - param_1)" ( (binary_expression "(int)puVar2 * 2 - param_1" (binary_expression "(int)puVar2 * 2" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal) - identifier) )) + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar1 != 0) {\n        return true;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        return true;\n      }" { (return_statement "return true;" return true ;) })) (if_statement "if (*puVar2 == param_2) {\n        return false;\n      }" if (parenthesized_expression "(*puVar2 == param_2)" ( (binary_expression "*puVar2 == param_2" (pointer_expression "*puVar2" * identifier) == identifier) )) (compound_statement "{\n        return false;\n      }" { (return_statement "return false;" return false ;) })) })) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) (if_statement "if (puVar2 == (ushort *)(param_1 + 0x4a8)) {\n      return false;\n    }" if (parenthesized_expression "(puVar2 == (ushort *)(param_1 + 0x4a8))" ( (binary_expression "puVar2 == (ushort *)(param_1 + 0x4a8)" identifier == (cast_expression "(ushort *)(param_1 + 0x4a8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4a8)" ( (binary_expression "param_1 + 0x4a8" identifier + number_literal) )))) )) (compound_statement "{\n      return false;\n    }" { (return_statement "return false;" return false ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT) )) (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 , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (return_statement return (binary_expression IDENT != LIT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & (pointer_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 ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT) - IDENT) )) + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return BOOL ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == IDENT) )) (compound_statement { (return_statement return BOOL ;) })) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (compound_statement { (return_statement return BOOL ;) })) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "bool FUN_002ff120(int param_1,uint param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  ushort *puVar2;\n  \n  if (*(ushort *)(param_1 + 0x49a) == param_2) {\n    iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                      (param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8));\n    return iVar1 != 0;\n  }\n  puVar2 = (ushort *)(param_1 + 0x490);\n  do {\n    if ((param_2 & *puVar2) != 0) {\n      iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                        (param_3,*(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470),\n                         *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*puVar2 == param_2) {\n        return false;\n      }\n    }\n    puVar2 = puVar2 + 1;\n    if (puVar2 == (ushort *)(param_1 + 0x4a8)) {\n      return false;\n    }\n  } while( true );\n}" (primitive_type "bool") (function_declarator "FUN_002ff120(int param_1,uint param_2,undefined4 param_3)" (identifier "FUN_002ff120") (parameter_list "(int param_1,uint param_2,undefined4 param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  ushort *puVar2;\n  \n  if (*(ushort *)(param_1 + 0x49a) == param_2) {\n    iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                      (param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8));\n    return iVar1 != 0;\n  }\n  puVar2 = (ushort *)(param_1 + 0x490);\n  do {\n    if ((param_2 & *puVar2) != 0) {\n      iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                        (param_3,*(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470),\n                         *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*puVar2 == param_2) {\n        return false;\n      }\n    }\n    puVar2 = puVar2 + 1;\n    if (puVar2 == (ushort *)(param_1 + 0x4a8)) {\n      return false;\n    }\n  } while( true );\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "ushort *puVar2;" (type_identifier "ushort") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (if_statement "if (*(ushort *)(param_1 + 0x49a) == param_2) {\n    iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                      (param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8));\n    return iVar1 != 0;\n  }" (if "if") (parenthesized_expression "(*(ushort *)(param_1 + 0x49a) == param_2)" (( "(") (binary_expression "*(ushort *)(param_1 + 0x49a) == param_2" (pointer_expression "*(ushort *)(param_1 + 0x49a)" (* "*") (cast_expression "(ushort *)(param_1 + 0x49a)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x49a)" (( "(") (binary_expression "param_1 + 0x49a" (identifier "param_1") (+ "+") (number_literal "0x49a")) () ")")))) (== "==") (identifier "param_2")) () ")")) (compound_statement "{\n    iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                      (param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8));\n    return iVar1 != 0;\n  }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                      (param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8));" (assignment_expression "iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                      (param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8))" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR___iswctype_l_00436914)\n                      (param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8))" (parenthesized_expression "(*(code *)PTR___iswctype_l_00436914)" (( "(") (pointer_expression "*(code *)PTR___iswctype_l_00436914" (* "*") (cast_expression "(code *)PTR___iswctype_l_00436914" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___iswctype_l_00436914"))) () ")")) (argument_list "(param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8))" (( "(") (identifier "param_3") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x4c4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x4c4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c4)" (( "(") (binary_expression "param_1 + 0x4c4" (identifier "param_1") (+ "+") (number_literal "0x4c4")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) () ")")))) (; ";")) (return_statement "return iVar1 != 0;" (return "return") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "puVar2 = (ushort *)(param_1 + 0x490);" (assignment_expression "puVar2 = (ushort *)(param_1 + 0x490)" (identifier "puVar2") (= "=") (cast_expression "(ushort *)(param_1 + 0x490)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x490)" (( "(") (binary_expression "param_1 + 0x490" (identifier "param_1") (+ "+") (number_literal "0x490")) () ")")))) (; ";")) (do_statement "do {\n    if ((param_2 & *puVar2) != 0) {\n      iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                        (param_3,*(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470),\n                         *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*puVar2 == param_2) {\n        return false;\n      }\n    }\n    puVar2 = puVar2 + 1;\n    if (puVar2 == (ushort *)(param_1 + 0x4a8)) {\n      return false;\n    }\n  } while( true );" (do "do") (compound_statement "{\n    if ((param_2 & *puVar2) != 0) {\n      iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                        (param_3,*(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470),\n                         *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*puVar2 == param_2) {\n        return false;\n      }\n    }\n    puVar2 = puVar2 + 1;\n    if (puVar2 == (ushort *)(param_1 + 0x4a8)) {\n      return false;\n    }\n  }" ({ "{") (if_statement "if ((param_2 & *puVar2) != 0) {\n      iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                        (param_3,*(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470),\n                         *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*puVar2 == param_2) {\n        return false;\n      }\n    }" (if "if") (parenthesized_expression "((param_2 & *puVar2) != 0)" (( "(") (binary_expression "(param_2 & *puVar2) != 0" (parenthesized_expression "(param_2 & *puVar2)" (( "(") (binary_expression "param_2 & *puVar2" (identifier "param_2") (& "&") (pointer_expression "*puVar2" (* "*") (identifier "puVar2"))) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                        (param_3,*(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470),\n                         *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*puVar2 == param_2) {\n        return false;\n      }\n    }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                        (param_3,*(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470),\n                         *(undefined4 *)(param_1 + 8));" (assignment_expression "iVar1 = (*(code *)PTR___iswctype_l_00436914)\n                        (param_3,*(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470),\n                         *(undefined4 *)(param_1 + 8))" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR___iswctype_l_00436914)\n                        (param_3,*(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470),\n                         *(undefined4 *)(param_1 + 8))" (parenthesized_expression "(*(code *)PTR___iswctype_l_00436914)" (( "(") (pointer_expression "*(code *)PTR___iswctype_l_00436914" (* "*") (cast_expression "(code *)PTR___iswctype_l_00436914" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___iswctype_l_00436914"))) () ")")) (argument_list "(param_3,*(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470),\n                         *(undefined4 *)(param_1 + 8))" (( "(") (identifier "param_3") (, ",") (pointer_expression "*(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470)" (* "*") (cast_expression "(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(((int)puVar2 * 2 - param_1) + -0x470)" (( "(") (binary_expression "((int)puVar2 * 2 - param_1) + -0x470" (parenthesized_expression "((int)puVar2 * 2 - param_1)" (( "(") (binary_expression "(int)puVar2 * 2 - param_1" (binary_expression "(int)puVar2 * 2" (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2")) (* "*") (number_literal "2")) (- "-") (identifier "param_1")) () ")")) (+ "+") (number_literal "-0x470")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n        return true;\n      }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        return true;\n      }" ({ "{") (return_statement "return true;" (return "return") (true "true") (; ";")) (} "}"))) (if_statement "if (*puVar2 == param_2) {\n        return false;\n      }" (if "if") (parenthesized_expression "(*puVar2 == param_2)" (( "(") (binary_expression "*puVar2 == param_2" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (== "==") (identifier "param_2")) () ")")) (compound_statement "{\n        return false;\n      }" ({ "{") (return_statement "return false;" (return "return") (false "false") (; ";")) (} "}"))) (} "}"))) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" (identifier "puVar2") (= "=") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (puVar2 == (ushort *)(param_1 + 0x4a8)) {\n      return false;\n    }" (if "if") (parenthesized_expression "(puVar2 == (ushort *)(param_1 + 0x4a8))" (( "(") (binary_expression "puVar2 == (ushort *)(param_1 + 0x4a8)" (identifier "puVar2") (== "==") (cast_expression "(ushort *)(param_1 + 0x4a8)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4a8)" (( "(") (binary_expression "param_1 + 0x4a8" (identifier "param_1") (+ "+") (number_literal "0x4a8")) () ")")))) () ")")) (compound_statement "{\n      return false;\n    }" ({ "{") (return_statement "return false;" (return "return") (false "false") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (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))))) right: (identifier))) 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) (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))))) (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))))))))) (return_statement (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (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 (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)) right: (identifier))) right: (number_literal))))) (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))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (true)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier))) consequence: (compound_statement (return_statement (false)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (return_statement (false))))) condition: (parenthesized_expression (true))))))

bool MASKED(int param_1,uint param_2,undefined4 param_3)

{
  int iVar1;
  ushort *puVar2;
  
  if (*(ushort *)(param_1 + 0x49a) == param_2) {
    iVar1 = (*(code *)PTR___iswctype_l_00436914)
                      (param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8));
    return iVar1 != 0;
  }
  puVar2 = (ushort *)(param_1 + 0x490);
  do {
    if ((param_2 & *puVar2) != 0) {
      iVar1 = (*(code *)PTR___iswctype_l_00436914)
                        (param_3,*(undefined4 *)(((int)puVar2 * 2 - param_1) + -0x470),
                         *(undefined4 *)(param_1 + 8));
      if (iVar1 != 0) {
        return true;
      }
      if (*puVar2 == param_2) {
        return false;
      }
    }
    puVar2 = puVar2 + 1;
    if (puVar2 == (ushort *)(param_1 + 0x4a8)) {
      return false;
    }
  } while( true );
}

