
/* std::wstring::find_first_not_of(wchar_t, unsigned int) const */

uint __thiscall std::wstring::find_first_not_of(wstring *this,wchar_t param_1,uint param_2)

{
  int *piVar1;
  undefined2 in_register_00000014;
  uint uVar2;
  
  if (param_2 < *(uint *)(this + 4)) {
    piVar1 = (int *)(*(int *)this + param_2 * 4);
    uVar2 = param_2 + 1;
    if (CONCAT22(in_register_00000014,param_1) != *piVar1) {
      return param_2;
    }
    for (; piVar1 = piVar1 + 1, uVar2 != *(uint *)(this + 4); uVar2 = uVar2 + 1) {
      if (*piVar1 != CONCAT22(in_register_00000014,param_1)) {
        return uVar2;
      }
    }
  }
  return 0xffffffff;
}



uint FUN_002be3a0(int *param_1,int param_2,uint param_3)

{
  int *piVar1;
  uint uVar2;
  
  if (param_3 < (uint)param_1[1]) {
    piVar1 = (int *)(*param_1 + param_3 * 4);
    uVar2 = param_3 + 1;
    if (param_2 != *piVar1) {
      return param_3;
    }
    for (; piVar1 = piVar1 + 1, uVar2 != param_1[1]; uVar2 = uVar2 + 1) {
      if (*piVar1 != param_2) {
        return uVar2;
      }
    }
  }
  return 0xffffffff;
}


lw a3,0x4(a0)
sltu v0,a2,a3
beq v0,zero,0x002be3e8
_sll v1,a2,0x2
lw v0,0x0(a0)
addu v0,v0,v1
lw v1,0x0(v0)
beq a1,v1,0x002be3e0
_addiu a2,a2,0x1
addiu a2,a2,-0x1
jr ra
_or v0,a2,zero
lw v1,0x0(v0)
bne v1,a1,0x002be3f0
_nop
addiu a2,a2,0x1
bne a2,a3,0x002be3d0
_addiu v0,v0,0x4
jr ra
_li v0,-0x1
jr ra
_or v0,a2,zero
(translation_unit "uint FUN_002be3a0(int *param_1,int param_2,uint param_3)\n\n{\n  int *piVar1;\n  uint uVar2;\n  \n  if (param_3 < (uint)param_1[1]) {\n    piVar1 = (int *)(*param_1 + param_3 * 4);\n    uVar2 = param_3 + 1;\n    if (param_2 != *piVar1) {\n      return param_3;\n    }\n    for (; piVar1 = piVar1 + 1, uVar2 != param_1[1]; uVar2 = uVar2 + 1) {\n      if (*piVar1 != param_2) {\n        return uVar2;\n      }\n    }\n  }\n  return 0xffffffff;\n}\n\n" (function_definition "uint FUN_002be3a0(int *param_1,int param_2,uint param_3)\n\n{\n  int *piVar1;\n  uint uVar2;\n  \n  if (param_3 < (uint)param_1[1]) {\n    piVar1 = (int *)(*param_1 + param_3 * 4);\n    uVar2 = param_3 + 1;\n    if (param_2 != *piVar1) {\n      return param_3;\n    }\n    for (; piVar1 = piVar1 + 1, uVar2 != param_1[1]; uVar2 = uVar2 + 1) {\n      if (*piVar1 != param_2) {\n        return uVar2;\n      }\n    }\n  }\n  return 0xffffffff;\n}" type_identifier (function_declarator "FUN_002be3a0(int *param_1,int param_2,uint param_3)" identifier (parameter_list "(int *param_1,int param_2,uint param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  \n  if (param_3 < (uint)param_1[1]) {\n    piVar1 = (int *)(*param_1 + param_3 * 4);\n    uVar2 = param_3 + 1;\n    if (param_2 != *piVar1) {\n      return param_3;\n    }\n    for (; piVar1 = piVar1 + 1, uVar2 != param_1[1]; uVar2 = uVar2 + 1) {\n      if (*piVar1 != param_2) {\n        return uVar2;\n      }\n    }\n  }\n  return 0xffffffff;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (if_statement "if (param_3 < (uint)param_1[1]) {\n    piVar1 = (int *)(*param_1 + param_3 * 4);\n    uVar2 = param_3 + 1;\n    if (param_2 != *piVar1) {\n      return param_3;\n    }\n    for (; piVar1 = piVar1 + 1, uVar2 != param_1[1]; uVar2 = uVar2 + 1) {\n      if (*piVar1 != param_2) {\n        return uVar2;\n      }\n    }\n  }" if (parenthesized_expression "(param_3 < (uint)param_1[1])" ( (binary_expression "param_3 < (uint)param_1[1]" identifier < (cast_expression "(uint)param_1[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    piVar1 = (int *)(*param_1 + param_3 * 4);\n    uVar2 = param_3 + 1;\n    if (param_2 != *piVar1) {\n      return param_3;\n    }\n    for (; piVar1 = piVar1 + 1, uVar2 != param_1[1]; uVar2 = uVar2 + 1) {\n      if (*piVar1 != param_2) {\n        return uVar2;\n      }\n    }\n  }" { (expression_statement "piVar1 = (int *)(*param_1 + param_3 * 4);" (assignment_expression "piVar1 = (int *)(*param_1 + param_3 * 4)" identifier = (cast_expression "(int *)(*param_1 + param_3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + param_3 * 4)" ( (binary_expression "*param_1 + param_3 * 4" (pointer_expression "*param_1" * identifier) + (binary_expression "param_3 * 4" identifier * number_literal)) )))) ;) (expression_statement "uVar2 = param_3 + 1;" (assignment_expression "uVar2 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) (if_statement "if (param_2 != *piVar1) {\n      return param_3;\n    }" if (parenthesized_expression "(param_2 != *piVar1)" ( (binary_expression "param_2 != *piVar1" identifier != (pointer_expression "*piVar1" * identifier)) )) (compound_statement "{\n      return param_3;\n    }" { (return_statement "return param_3;" return identifier ;) })) (for_statement "for (; piVar1 = piVar1 + 1, uVar2 != param_1[1]; uVar2 = uVar2 + 1) {\n      if (*piVar1 != param_2) {\n        return uVar2;\n      }\n    }" for ( ; (comma_expression "piVar1 = piVar1 + 1, uVar2 != param_1[1]" (assignment_expression "piVar1 = piVar1 + 1" identifier = (binary_expression "piVar1 + 1" identifier + number_literal)) , (binary_expression "uVar2 != param_1[1]" identifier != (subscript_expression "param_1[1]" identifier [ number_literal ]))) ; (assignment_expression "uVar2 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ) (compound_statement "{\n      if (*piVar1 != param_2) {\n        return uVar2;\n      }\n    }" { (if_statement "if (*piVar1 != param_2) {\n        return uVar2;\n      }" if (parenthesized_expression "(*piVar1 != param_2)" ( (binary_expression "*piVar1 != param_2" (pointer_expression "*piVar1" * identifier) != identifier) )) (compound_statement "{\n        return uVar2;\n      }" { (return_statement "return uVar2;" return identifier ;) })) })) })) (return_statement "return 0xffffffff;" return number_literal ;) })))
(translation_unit "/* std::wstring::find_first_not_of(wchar_t, unsigned int) const */\n\nuint __thiscall std::wstring::find_first_not_of(wstring *this,wchar_t param_1,uint param_2)\n\n{\n  int *piVar1;\n  undefined2 in_register_00000014;\n  uint uVar2;\n  \n  if (param_2 < *(uint *)(this + 4)) {\n    piVar1 = (int *)(*(int *)this + param_2 * 4);\n    uVar2 = param_2 + 1;\n    if (CONCAT22(in_register_00000014,param_1) != *piVar1) {\n      return param_2;\n    }\n    for (; piVar1 = piVar1 + 1, uVar2 != *(uint *)(this + 4); uVar2 = uVar2 + 1) {\n      if (*piVar1 != CONCAT22(in_register_00000014,param_1)) {\n        return uVar2;\n      }\n    }\n  }\n  return 0xffffffff;\n}\n\n" comment (function_definition "uint __thiscall std::wstring::find_first_not_of(wstring *this,wchar_t param_1,uint param_2)\n\n{\n  int *piVar1;\n  undefined2 in_register_00000014;\n  uint uVar2;\n  \n  if (param_2 < *(uint *)(this + 4)) {\n    piVar1 = (int *)(*(int *)this + param_2 * 4);\n    uVar2 = param_2 + 1;\n    if (CONCAT22(in_register_00000014,param_1) != *piVar1) {\n      return param_2;\n    }\n    for (; piVar1 = piVar1 + 1, uVar2 != *(uint *)(this + 4); uVar2 = uVar2 + 1) {\n      if (*piVar1 != CONCAT22(in_register_00000014,param_1)) {\n        return uVar2;\n      }\n    }\n  }\n  return 0xffffffff;\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wstring::" identifier : : identifier : :) (function_declarator "find_first_not_of(wstring *this,wchar_t param_1,uint param_2)" identifier (parameter_list "(wstring *this,wchar_t param_1,uint param_2)" ( (parameter_declaration "wstring *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "wchar_t param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  undefined2 in_register_00000014;\n  uint uVar2;\n  \n  if (param_2 < *(uint *)(this + 4)) {\n    piVar1 = (int *)(*(int *)this + param_2 * 4);\n    uVar2 = param_2 + 1;\n    if (CONCAT22(in_register_00000014,param_1) != *piVar1) {\n      return param_2;\n    }\n    for (; piVar1 = piVar1 + 1, uVar2 != *(uint *)(this + 4); uVar2 = uVar2 + 1) {\n      if (*piVar1 != CONCAT22(in_register_00000014,param_1)) {\n        return uVar2;\n      }\n    }\n  }\n  return 0xffffffff;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined2 in_register_00000014;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (if_statement "if (param_2 < *(uint *)(this + 4)) {\n    piVar1 = (int *)(*(int *)this + param_2 * 4);\n    uVar2 = param_2 + 1;\n    if (CONCAT22(in_register_00000014,param_1) != *piVar1) {\n      return param_2;\n    }\n    for (; piVar1 = piVar1 + 1, uVar2 != *(uint *)(this + 4); uVar2 = uVar2 + 1) {\n      if (*piVar1 != CONCAT22(in_register_00000014,param_1)) {\n        return uVar2;\n      }\n    }\n  }" if (parenthesized_expression "(param_2 < *(uint *)(this + 4))" ( (binary_expression "param_2 < *(uint *)(this + 4)" identifier < (pointer_expression "*(uint *)(this + 4)" * (cast_expression "(uint *)(this + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))))) )) (compound_statement "{\n    piVar1 = (int *)(*(int *)this + param_2 * 4);\n    uVar2 = param_2 + 1;\n    if (CONCAT22(in_register_00000014,param_1) != *piVar1) {\n      return param_2;\n    }\n    for (; piVar1 = piVar1 + 1, uVar2 != *(uint *)(this + 4); uVar2 = uVar2 + 1) {\n      if (*piVar1 != CONCAT22(in_register_00000014,param_1)) {\n        return uVar2;\n      }\n    }\n  }" { (expression_statement "piVar1 = (int *)(*(int *)this + param_2 * 4);" (assignment_expression "piVar1 = (int *)(*(int *)this + param_2 * 4)" identifier = (cast_expression "(int *)(*(int *)this + param_2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + param_2 * 4)" ( (binary_expression "*(int *)this + param_2 * 4" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + (binary_expression "param_2 * 4" identifier * number_literal)) )))) ;) (expression_statement "uVar2 = param_2 + 1;" (assignment_expression "uVar2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (if_statement "if (CONCAT22(in_register_00000014,param_1) != *piVar1) {\n      return param_2;\n    }" if (parenthesized_expression "(CONCAT22(in_register_00000014,param_1) != *piVar1)" ( (binary_expression "CONCAT22(in_register_00000014,param_1) != *piVar1" (call_expression "CONCAT22(in_register_00000014,param_1)" identifier (argument_list "(in_register_00000014,param_1)" ( identifier , identifier ))) != (pointer_expression "*piVar1" * identifier)) )) (compound_statement "{\n      return param_2;\n    }" { (return_statement "return param_2;" return identifier ;) })) (for_statement "for (; piVar1 = piVar1 + 1, uVar2 != *(uint *)(this + 4); uVar2 = uVar2 + 1) {\n      if (*piVar1 != CONCAT22(in_register_00000014,param_1)) {\n        return uVar2;\n      }\n    }" for ( ; (comma_expression "piVar1 = piVar1 + 1, uVar2 != *(uint *)(this + 4)" (assignment_expression "piVar1 = piVar1 + 1" identifier = (binary_expression "piVar1 + 1" identifier + number_literal)) , (binary_expression "uVar2 != *(uint *)(this + 4)" identifier != (pointer_expression "*(uint *)(this + 4)" * (cast_expression "(uint *)(this + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))))) ; (assignment_expression "uVar2 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ) (compound_statement "{\n      if (*piVar1 != CONCAT22(in_register_00000014,param_1)) {\n        return uVar2;\n      }\n    }" { (if_statement "if (*piVar1 != CONCAT22(in_register_00000014,param_1)) {\n        return uVar2;\n      }" if (parenthesized_expression "(*piVar1 != CONCAT22(in_register_00000014,param_1))" ( (binary_expression "*piVar1 != CONCAT22(in_register_00000014,param_1)" (pointer_expression "*piVar1" * identifier) != (call_expression "CONCAT22(in_register_00000014,param_1)" identifier (argument_list "(in_register_00000014,param_1)" ( identifier , identifier )))) )) (compound_statement "{\n        return uVar2;\n      }" { (return_statement "return uVar2;" return identifier ;) })) })) })) (return_statement "return 0xffffffff;" return number_literal ;) })))
(translation_unit "uint FUN_002be3a0(int *param_1,int param_2,uint param_3)\n\n{\n  int *piVar1;\n  uint uVar2;\n  \n  if (param_3 < (uint)param_1[1]) {\n    piVar1 = (int *)(*param_1 + param_3 * 4);\n    uVar2 = param_3 + 1;\n    if (param_2 != *piVar1) {\n      return param_3;\n    }\n    for (; piVar1 = piVar1 + 1, uVar2 != param_1[1]; uVar2 = uVar2 + 1) {\n      if (*piVar1 != param_2) {\n        return uVar2;\n      }\n    }\n  }\n  return 0xffffffff;\n}\n\n" (function_definition "uint FUN_002be3a0(int *param_1,int param_2,uint param_3)\n\n{\n  int *piVar1;\n  uint uVar2;\n  \n  if (param_3 < (uint)param_1[1]) {\n    piVar1 = (int *)(*param_1 + param_3 * 4);\n    uVar2 = param_3 + 1;\n    if (param_2 != *piVar1) {\n      return param_3;\n    }\n    for (; piVar1 = piVar1 + 1, uVar2 != param_1[1]; uVar2 = uVar2 + 1) {\n      if (*piVar1 != param_2) {\n        return uVar2;\n      }\n    }\n  }\n  return 0xffffffff;\n}" type_identifier (function_declarator "FUN_002be3a0(int *param_1,int param_2,uint param_3)" identifier (parameter_list "(int *param_1,int param_2,uint param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  \n  if (param_3 < (uint)param_1[1]) {\n    piVar1 = (int *)(*param_1 + param_3 * 4);\n    uVar2 = param_3 + 1;\n    if (param_2 != *piVar1) {\n      return param_3;\n    }\n    for (; piVar1 = piVar1 + 1, uVar2 != param_1[1]; uVar2 = uVar2 + 1) {\n      if (*piVar1 != param_2) {\n        return uVar2;\n      }\n    }\n  }\n  return 0xffffffff;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (if_statement "if (param_3 < (uint)param_1[1]) {\n    piVar1 = (int *)(*param_1 + param_3 * 4);\n    uVar2 = param_3 + 1;\n    if (param_2 != *piVar1) {\n      return param_3;\n    }\n    for (; piVar1 = piVar1 + 1, uVar2 != param_1[1]; uVar2 = uVar2 + 1) {\n      if (*piVar1 != param_2) {\n        return uVar2;\n      }\n    }\n  }" if (parenthesized_expression "(param_3 < (uint)param_1[1])" ( (binary_expression "param_3 < (uint)param_1[1]" identifier < (cast_expression "(uint)param_1[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    piVar1 = (int *)(*param_1 + param_3 * 4);\n    uVar2 = param_3 + 1;\n    if (param_2 != *piVar1) {\n      return param_3;\n    }\n    for (; piVar1 = piVar1 + 1, uVar2 != param_1[1]; uVar2 = uVar2 + 1) {\n      if (*piVar1 != param_2) {\n        return uVar2;\n      }\n    }\n  }" { (expression_statement "piVar1 = (int *)(*param_1 + param_3 * 4);" (assignment_expression "piVar1 = (int *)(*param_1 + param_3 * 4)" identifier = (cast_expression "(int *)(*param_1 + param_3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + param_3 * 4)" ( (binary_expression "*param_1 + param_3 * 4" (pointer_expression "*param_1" * identifier) + (binary_expression "param_3 * 4" identifier * number_literal)) )))) ;) (expression_statement "uVar2 = param_3 + 1;" (assignment_expression "uVar2 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) (if_statement "if (param_2 != *piVar1) {\n      return param_3;\n    }" if (parenthesized_expression "(param_2 != *piVar1)" ( (binary_expression "param_2 != *piVar1" identifier != (pointer_expression "*piVar1" * identifier)) )) (compound_statement "{\n      return param_3;\n    }" { (return_statement "return param_3;" return identifier ;) })) (for_statement "for (; piVar1 = piVar1 + 1, uVar2 != param_1[1]; uVar2 = uVar2 + 1) {\n      if (*piVar1 != param_2) {\n        return uVar2;\n      }\n    }" for ( ; (comma_expression "piVar1 = piVar1 + 1, uVar2 != param_1[1]" (assignment_expression "piVar1 = piVar1 + 1" identifier = (binary_expression "piVar1 + 1" identifier + number_literal)) , (binary_expression "uVar2 != param_1[1]" identifier != (subscript_expression "param_1[1]" identifier [ number_literal ]))) ; (assignment_expression "uVar2 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ) (compound_statement "{\n      if (*piVar1 != param_2) {\n        return uVar2;\n      }\n    }" { (if_statement "if (*piVar1 != param_2) {\n        return uVar2;\n      }" if (parenthesized_expression "(*piVar1 != param_2)" ( (binary_expression "*piVar1 != param_2" (pointer_expression "*piVar1" * identifier) != identifier) )) (compound_statement "{\n        return uVar2;\n      }" { (return_statement "return uVar2;" return identifier ;) })) })) })) (return_statement "return 0xffffffff;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * IDENT)) )) (compound_statement { (return_statement return IDENT ;) })) (for_statement for ( ; (comma_expression (assignment_expression IDENT = (binary_expression IDENT + LIT)) , (binary_expression IDENT != (subscript_expression IDENT [ LIT ]))) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != IDENT) )) (compound_statement { (return_statement return IDENT ;) })) })) })) (return_statement return LIT ;) })))
(function_definition "uint FUN_002be3a0(int *param_1,int param_2,uint param_3)\n\n{\n  int *piVar1;\n  uint uVar2;\n  \n  if (param_3 < (uint)param_1[1]) {\n    piVar1 = (int *)(*param_1 + param_3 * 4);\n    uVar2 = param_3 + 1;\n    if (param_2 != *piVar1) {\n      return param_3;\n    }\n    for (; piVar1 = piVar1 + 1, uVar2 != param_1[1]; uVar2 = uVar2 + 1) {\n      if (*piVar1 != param_2) {\n        return uVar2;\n      }\n    }\n  }\n  return 0xffffffff;\n}" (type_identifier "uint") (function_declarator "FUN_002be3a0(int *param_1,int param_2,uint param_3)" (identifier "FUN_002be3a0") (parameter_list "(int *param_1,int param_2,uint param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  \n  if (param_3 < (uint)param_1[1]) {\n    piVar1 = (int *)(*param_1 + param_3 * 4);\n    uVar2 = param_3 + 1;\n    if (param_2 != *piVar1) {\n      return param_3;\n    }\n    for (; piVar1 = piVar1 + 1, uVar2 != param_1[1]; uVar2 = uVar2 + 1) {\n      if (*piVar1 != param_2) {\n        return uVar2;\n      }\n    }\n  }\n  return 0xffffffff;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (if_statement "if (param_3 < (uint)param_1[1]) {\n    piVar1 = (int *)(*param_1 + param_3 * 4);\n    uVar2 = param_3 + 1;\n    if (param_2 != *piVar1) {\n      return param_3;\n    }\n    for (; piVar1 = piVar1 + 1, uVar2 != param_1[1]; uVar2 = uVar2 + 1) {\n      if (*piVar1 != param_2) {\n        return uVar2;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(param_3 < (uint)param_1[1])" (( "(") (binary_expression "param_3 < (uint)param_1[1]" (identifier "param_3") (< "<") (cast_expression "(uint)param_1[1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) () ")")) (compound_statement "{\n    piVar1 = (int *)(*param_1 + param_3 * 4);\n    uVar2 = param_3 + 1;\n    if (param_2 != *piVar1) {\n      return param_3;\n    }\n    for (; piVar1 = piVar1 + 1, uVar2 != param_1[1]; uVar2 = uVar2 + 1) {\n      if (*piVar1 != param_2) {\n        return uVar2;\n      }\n    }\n  }" ({ "{") (expression_statement "piVar1 = (int *)(*param_1 + param_3 * 4);" (assignment_expression "piVar1 = (int *)(*param_1 + param_3 * 4)" (identifier "piVar1") (= "=") (cast_expression "(int *)(*param_1 + param_3 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + param_3 * 4)" (( "(") (binary_expression "*param_1 + param_3 * 4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (binary_expression "param_3 * 4" (identifier "param_3") (* "*") (number_literal "4"))) () ")")))) (; ";")) (expression_statement "uVar2 = param_3 + 1;" (assignment_expression "uVar2 = param_3 + 1" (identifier "uVar2") (= "=") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (param_2 != *piVar1) {\n      return param_3;\n    }" (if "if") (parenthesized_expression "(param_2 != *piVar1)" (( "(") (binary_expression "param_2 != *piVar1" (identifier "param_2") (!= "!=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) () ")")) (compound_statement "{\n      return param_3;\n    }" ({ "{") (return_statement "return param_3;" (return "return") (identifier "param_3") (; ";")) (} "}"))) (for_statement "for (; piVar1 = piVar1 + 1, uVar2 != param_1[1]; uVar2 = uVar2 + 1) {\n      if (*piVar1 != param_2) {\n        return uVar2;\n      }\n    }" (for "for") (( "(") (; ";") (comma_expression "piVar1 = piVar1 + 1, uVar2 != param_1[1]" (assignment_expression "piVar1 = piVar1 + 1" (identifier "piVar1") (= "=") (binary_expression "piVar1 + 1" (identifier "piVar1") (+ "+") (number_literal "1"))) (, ",") (binary_expression "uVar2 != param_1[1]" (identifier "uVar2") (!= "!=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) (; ";") (assignment_expression "uVar2 = uVar2 + 1" (identifier "uVar2") (= "=") (binary_expression "uVar2 + 1" (identifier "uVar2") (+ "+") (number_literal "1"))) () ")") (compound_statement "{\n      if (*piVar1 != param_2) {\n        return uVar2;\n      }\n    }" ({ "{") (if_statement "if (*piVar1 != param_2) {\n        return uVar2;\n      }" (if "if") (parenthesized_expression "(*piVar1 != param_2)" (( "(") (binary_expression "*piVar1 != param_2" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (!= "!=") (identifier "param_2")) () ")")) (compound_statement "{\n        return uVar2;\n      }" ({ "{") (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (} "}"))) (} "}"))) (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}")))

/* std::wstring::find_first_not_of(wchar_t, unsigned int) const */

type_1 __thiscall std::type_2::function_1(type_2 *var_2,type_3 param_1,type_1 var_1)

{
  int *var_4;
  type_4 in_register_00000014;
  type_1 var_5;
  
  if (var_1 < *(type_1 *)(var_2 + 4)) {
    var_4 = (int *)(*(int *)var_2 + var_1 * 4);
    var_5 = var_1 + 1;
    if (var_3(in_register_00000014,param_1) != *var_4) {
      return var_1;
    }
    for (; var_4 = var_4 + 1, var_5 != *(type_1 *)(var_2 + 4); var_5 = var_5 + 1) {
      if (*var_4 != var_3(in_register_00000014,param_1)) {
        return var_5;
      }
    }
  }
  return 0xffffffff;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (return_statement (identifier)))) (for_statement condition: (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (binary_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) update: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier))) consequence: (compound_statement (return_statement (identifier)))))))) (return_statement (number_literal)))))

uint MASKED(int *param_1,int param_2,uint param_3)

{
  int *piVar1;
  uint uVar2;
  
  if (param_3 < (uint)param_1[1]) {
    piVar1 = (int *)(*param_1 + param_3 * 4);
    uVar2 = param_3 + 1;
    if (param_2 != *piVar1) {
      return param_3;
    }
    for (; piVar1 = piVar1 + 1, uVar2 != param_1[1]; uVar2 = uVar2 + 1) {
      if (*piVar1 != param_2) {
        return uVar2;
      }
    }
  }
  return 0xffffffff;
}

