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

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

{
  wchar_t wVar1;
  long lVar2;
  ulong uVar3;
  
  lVar2 = *(long *)this;
  uVar3 = 0xffffffffffffffff;
  if (param_2 < *(ulong *)(lVar2 + -0x18)) {
    wVar1 = *(wchar_t *)(lVar2 + param_2 * 4);
    uVar3 = param_2;
    while (param_1 == wVar1) {
      uVar3 = uVar3 + 1;
      if (uVar3 == *(ulong *)(lVar2 + -0x18)) {
        return 0xffffffffffffffff;
      }
      wVar1 = *(wchar_t *)(lVar2 + uVar3 * 4);
    }
  }
  return uVar3;
}



ulong FUN_002f1590(long *param_1,int param_2,ulong param_3)

{
  int iVar1;
  long lVar2;
  ulong uVar3;
  
  lVar2 = *param_1;
  uVar3 = 0xffffffffffffffff;
  if (param_3 < *(ulong *)(lVar2 + -0x18)) {
    iVar1 = *(int *)(lVar2 + param_3 * 4);
    uVar3 = param_3;
    while (param_2 == iVar1) {
      uVar3 = uVar3 + 1;
      if (uVar3 == *(ulong *)(lVar2 + -0x18)) {
        return 0xffffffffffffffff;
      }
      iVar1 = *(int *)(lVar2 + uVar3 * 4);
    }
  }
  return uVar3;
}


MOV RCX,qword ptr [RDI]
MOV RAX,-0x1
MOV RDI,qword ptr [RCX + -0x18]
CMP RDX,RDI
JNC 0x002f15d3
CMP ESI,dword ptr [RCX + RDX*0x4]
JZ 0x002f15b5
JMP 0x002f15d0
CMP dword ptr [RCX + RDX*0x4],ESI
JNZ 0x002f15d0
ADD RDX,0x1
CMP RDX,RDI
JNZ 0x002f15b0
MOV RAX,-0x1
RET
MOV RAX,RDX
RET
(translation_unit "ulong FUN_002f1590(long *param_1,int param_2,ulong param_3)\n\n{\n  int iVar1;\n  long lVar2;\n  ulong uVar3;\n  \n  lVar2 = *param_1;\n  uVar3 = 0xffffffffffffffff;\n  if (param_3 < *(ulong *)(lVar2 + -0x18)) {\n    iVar1 = *(int *)(lVar2 + param_3 * 4);\n    uVar3 = param_3;\n    while (param_2 == iVar1) {\n      uVar3 = uVar3 + 1;\n      if (uVar3 == *(ulong *)(lVar2 + -0x18)) {\n        return 0xffffffffffffffff;\n      }\n      iVar1 = *(int *)(lVar2 + uVar3 * 4);\n    }\n  }\n  return uVar3;\n}\n\n" (function_definition "ulong FUN_002f1590(long *param_1,int param_2,ulong param_3)\n\n{\n  int iVar1;\n  long lVar2;\n  ulong uVar3;\n  \n  lVar2 = *param_1;\n  uVar3 = 0xffffffffffffffff;\n  if (param_3 < *(ulong *)(lVar2 + -0x18)) {\n    iVar1 = *(int *)(lVar2 + param_3 * 4);\n    uVar3 = param_3;\n    while (param_2 == iVar1) {\n      uVar3 = uVar3 + 1;\n      if (uVar3 == *(ulong *)(lVar2 + -0x18)) {\n        return 0xffffffffffffffff;\n      }\n      iVar1 = *(int *)(lVar2 + uVar3 * 4);\n    }\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_002f1590(long *param_1,int param_2,ulong param_3)" identifier (parameter_list "(long *param_1,int param_2,ulong param_3)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "ulong param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  ulong uVar3;\n  \n  lVar2 = *param_1;\n  uVar3 = 0xffffffffffffffff;\n  if (param_3 < *(ulong *)(lVar2 + -0x18)) {\n    iVar1 = *(int *)(lVar2 + param_3 * 4);\n    uVar3 = param_3;\n    while (param_2 == iVar1) {\n      uVar3 = uVar3 + 1;\n      if (uVar3 == *(ulong *)(lVar2 + -0x18)) {\n        return 0xffffffffffffffff;\n      }\n      iVar1 = *(int *)(lVar2 + uVar3 * 4);\n    }\n  }\n  return uVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar3;" type_identifier identifier ;) (expression_statement "lVar2 = *param_1;" (assignment_expression "lVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar3 = 0xffffffffffffffff;" (assignment_expression "uVar3 = 0xffffffffffffffff" identifier = number_literal) ;) (if_statement "if (param_3 < *(ulong *)(lVar2 + -0x18)) {\n    iVar1 = *(int *)(lVar2 + param_3 * 4);\n    uVar3 = param_3;\n    while (param_2 == iVar1) {\n      uVar3 = uVar3 + 1;\n      if (uVar3 == *(ulong *)(lVar2 + -0x18)) {\n        return 0xffffffffffffffff;\n      }\n      iVar1 = *(int *)(lVar2 + uVar3 * 4);\n    }\n  }" if (parenthesized_expression "(param_3 < *(ulong *)(lVar2 + -0x18))" ( (binary_expression "param_3 < *(ulong *)(lVar2 + -0x18)" identifier < (pointer_expression "*(ulong *)(lVar2 + -0x18)" * (cast_expression "(ulong *)(lVar2 + -0x18)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -0x18)" ( (binary_expression "lVar2 + -0x18" identifier + number_literal) ))))) )) (compound_statement "{\n    iVar1 = *(int *)(lVar2 + param_3 * 4);\n    uVar3 = param_3;\n    while (param_2 == iVar1) {\n      uVar3 = uVar3 + 1;\n      if (uVar3 == *(ulong *)(lVar2 + -0x18)) {\n        return 0xffffffffffffffff;\n      }\n      iVar1 = *(int *)(lVar2 + uVar3 * 4);\n    }\n  }" { (expression_statement "iVar1 = *(int *)(lVar2 + param_3 * 4);" (assignment_expression "iVar1 = *(int *)(lVar2 + param_3 * 4)" identifier = (pointer_expression "*(int *)(lVar2 + param_3 * 4)" * (cast_expression "(int *)(lVar2 + param_3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + param_3 * 4)" ( (binary_expression "lVar2 + param_3 * 4" identifier + (binary_expression "param_3 * 4" identifier * number_literal)) ))))) ;) (expression_statement "uVar3 = param_3;" (assignment_expression "uVar3 = param_3" identifier = identifier) ;) (while_statement "while (param_2 == iVar1) {\n      uVar3 = uVar3 + 1;\n      if (uVar3 == *(ulong *)(lVar2 + -0x18)) {\n        return 0xffffffffffffffff;\n      }\n      iVar1 = *(int *)(lVar2 + uVar3 * 4);\n    }" while (parenthesized_expression "(param_2 == iVar1)" ( (binary_expression "param_2 == iVar1" identifier == identifier) )) (compound_statement "{\n      uVar3 = uVar3 + 1;\n      if (uVar3 == *(ulong *)(lVar2 + -0x18)) {\n        return 0xffffffffffffffff;\n      }\n      iVar1 = *(int *)(lVar2 + uVar3 * 4);\n    }" { (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) (if_statement "if (uVar3 == *(ulong *)(lVar2 + -0x18)) {\n        return 0xffffffffffffffff;\n      }" if (parenthesized_expression "(uVar3 == *(ulong *)(lVar2 + -0x18))" ( (binary_expression "uVar3 == *(ulong *)(lVar2 + -0x18)" identifier == (pointer_expression "*(ulong *)(lVar2 + -0x18)" * (cast_expression "(ulong *)(lVar2 + -0x18)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -0x18)" ( (binary_expression "lVar2 + -0x18" identifier + number_literal) ))))) )) (compound_statement "{\n        return 0xffffffffffffffff;\n      }" { (return_statement "return 0xffffffffffffffff;" return number_literal ;) })) (expression_statement "iVar1 = *(int *)(lVar2 + uVar3 * 4);" (assignment_expression "iVar1 = *(int *)(lVar2 + uVar3 * 4)" identifier = (pointer_expression "*(int *)(lVar2 + uVar3 * 4)" * (cast_expression "(int *)(lVar2 + uVar3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + uVar3 * 4)" ( (binary_expression "lVar2 + uVar3 * 4" identifier + (binary_expression "uVar3 * 4" identifier * number_literal)) ))))) ;) })) })) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "/* std::wstring::find_first_not_of(wchar_t, unsigned long) const */\n\nulong __thiscall std::wstring::find_first_not_of(wstring *this,wchar_t param_1,ulong param_2)\n\n{\n  wchar_t wVar1;\n  long lVar2;\n  ulong uVar3;\n  \n  lVar2 = *(long *)this;\n  uVar3 = 0xffffffffffffffff;\n  if (param_2 < *(ulong *)(lVar2 + -0x18)) {\n    wVar1 = *(wchar_t *)(lVar2 + param_2 * 4);\n    uVar3 = param_2;\n    while (param_1 == wVar1) {\n      uVar3 = uVar3 + 1;\n      if (uVar3 == *(ulong *)(lVar2 + -0x18)) {\n        return 0xffffffffffffffff;\n      }\n      wVar1 = *(wchar_t *)(lVar2 + uVar3 * 4);\n    }\n  }\n  return uVar3;\n}\n\n" comment (function_definition "ulong __thiscall std::wstring::find_first_not_of(wstring *this,wchar_t param_1,ulong param_2)\n\n{\n  wchar_t wVar1;\n  long lVar2;\n  ulong uVar3;\n  \n  lVar2 = *(long *)this;\n  uVar3 = 0xffffffffffffffff;\n  if (param_2 < *(ulong *)(lVar2 + -0x18)) {\n    wVar1 = *(wchar_t *)(lVar2 + param_2 * 4);\n    uVar3 = param_2;\n    while (param_1 == wVar1) {\n      uVar3 = uVar3 + 1;\n      if (uVar3 == *(ulong *)(lVar2 + -0x18)) {\n        return 0xffffffffffffffff;\n      }\n      wVar1 = *(wchar_t *)(lVar2 + uVar3 * 4);\n    }\n  }\n  return uVar3;\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,ulong param_2)" identifier (parameter_list "(wstring *this,wchar_t param_1,ulong param_2)" ( (parameter_declaration "wstring *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "wchar_t param_1" type_identifier identifier) , (parameter_declaration "ulong param_2" type_identifier identifier) ))) (compound_statement "{\n  wchar_t wVar1;\n  long lVar2;\n  ulong uVar3;\n  \n  lVar2 = *(long *)this;\n  uVar3 = 0xffffffffffffffff;\n  if (param_2 < *(ulong *)(lVar2 + -0x18)) {\n    wVar1 = *(wchar_t *)(lVar2 + param_2 * 4);\n    uVar3 = param_2;\n    while (param_1 == wVar1) {\n      uVar3 = uVar3 + 1;\n      if (uVar3 == *(ulong *)(lVar2 + -0x18)) {\n        return 0xffffffffffffffff;\n      }\n      wVar1 = *(wchar_t *)(lVar2 + uVar3 * 4);\n    }\n  }\n  return uVar3;\n}" { (declaration "wchar_t wVar1;" type_identifier identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar3;" type_identifier identifier ;) (expression_statement "lVar2 = *(long *)this;" (assignment_expression "lVar2 = *(long *)this" identifier = (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar3 = 0xffffffffffffffff;" (assignment_expression "uVar3 = 0xffffffffffffffff" identifier = number_literal) ;) (if_statement "if (param_2 < *(ulong *)(lVar2 + -0x18)) {\n    wVar1 = *(wchar_t *)(lVar2 + param_2 * 4);\n    uVar3 = param_2;\n    while (param_1 == wVar1) {\n      uVar3 = uVar3 + 1;\n      if (uVar3 == *(ulong *)(lVar2 + -0x18)) {\n        return 0xffffffffffffffff;\n      }\n      wVar1 = *(wchar_t *)(lVar2 + uVar3 * 4);\n    }\n  }" if (parenthesized_expression "(param_2 < *(ulong *)(lVar2 + -0x18))" ( (binary_expression "param_2 < *(ulong *)(lVar2 + -0x18)" identifier < (pointer_expression "*(ulong *)(lVar2 + -0x18)" * (cast_expression "(ulong *)(lVar2 + -0x18)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -0x18)" ( (binary_expression "lVar2 + -0x18" identifier + number_literal) ))))) )) (compound_statement "{\n    wVar1 = *(wchar_t *)(lVar2 + param_2 * 4);\n    uVar3 = param_2;\n    while (param_1 == wVar1) {\n      uVar3 = uVar3 + 1;\n      if (uVar3 == *(ulong *)(lVar2 + -0x18)) {\n        return 0xffffffffffffffff;\n      }\n      wVar1 = *(wchar_t *)(lVar2 + uVar3 * 4);\n    }\n  }" { (expression_statement "wVar1 = *(wchar_t *)(lVar2 + param_2 * 4);" (assignment_expression "wVar1 = *(wchar_t *)(lVar2 + param_2 * 4)" identifier = (pointer_expression "*(wchar_t *)(lVar2 + param_2 * 4)" * (cast_expression "(wchar_t *)(lVar2 + param_2 * 4)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + param_2 * 4)" ( (binary_expression "lVar2 + param_2 * 4" identifier + (binary_expression "param_2 * 4" identifier * number_literal)) ))))) ;) (expression_statement "uVar3 = param_2;" (assignment_expression "uVar3 = param_2" identifier = identifier) ;) (while_statement "while (param_1 == wVar1) {\n      uVar3 = uVar3 + 1;\n      if (uVar3 == *(ulong *)(lVar2 + -0x18)) {\n        return 0xffffffffffffffff;\n      }\n      wVar1 = *(wchar_t *)(lVar2 + uVar3 * 4);\n    }" while (parenthesized_expression "(param_1 == wVar1)" ( (binary_expression "param_1 == wVar1" identifier == identifier) )) (compound_statement "{\n      uVar3 = uVar3 + 1;\n      if (uVar3 == *(ulong *)(lVar2 + -0x18)) {\n        return 0xffffffffffffffff;\n      }\n      wVar1 = *(wchar_t *)(lVar2 + uVar3 * 4);\n    }" { (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) (if_statement "if (uVar3 == *(ulong *)(lVar2 + -0x18)) {\n        return 0xffffffffffffffff;\n      }" if (parenthesized_expression "(uVar3 == *(ulong *)(lVar2 + -0x18))" ( (binary_expression "uVar3 == *(ulong *)(lVar2 + -0x18)" identifier == (pointer_expression "*(ulong *)(lVar2 + -0x18)" * (cast_expression "(ulong *)(lVar2 + -0x18)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -0x18)" ( (binary_expression "lVar2 + -0x18" identifier + number_literal) ))))) )) (compound_statement "{\n        return 0xffffffffffffffff;\n      }" { (return_statement "return 0xffffffffffffffff;" return number_literal ;) })) (expression_statement "wVar1 = *(wchar_t *)(lVar2 + uVar3 * 4);" (assignment_expression "wVar1 = *(wchar_t *)(lVar2 + uVar3 * 4)" identifier = (pointer_expression "*(wchar_t *)(lVar2 + uVar3 * 4)" * (cast_expression "(wchar_t *)(lVar2 + uVar3 * 4)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + uVar3 * 4)" ( (binary_expression "lVar2 + uVar3 * 4" identifier + (binary_expression "uVar3 * 4" identifier * number_literal)) ))))) ;) })) })) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "ulong FUN_002f1590(long *param_1,int param_2,ulong param_3)\n\n{\n  int iVar1;\n  long lVar2;\n  ulong uVar3;\n  \n  lVar2 = *param_1;\n  uVar3 = 0xffffffffffffffff;\n  if (param_3 < *(ulong *)(lVar2 + -0x18)) {\n    iVar1 = *(int *)(lVar2 + param_3 * 4);\n    uVar3 = param_3;\n    while (param_2 == iVar1) {\n      uVar3 = uVar3 + 1;\n      if (uVar3 == *(ulong *)(lVar2 + -0x18)) {\n        return 0xffffffffffffffff;\n      }\n      iVar1 = *(int *)(lVar2 + uVar3 * 4);\n    }\n  }\n  return uVar3;\n}\n\n" (function_definition "ulong FUN_002f1590(long *param_1,int param_2,ulong param_3)\n\n{\n  int iVar1;\n  long lVar2;\n  ulong uVar3;\n  \n  lVar2 = *param_1;\n  uVar3 = 0xffffffffffffffff;\n  if (param_3 < *(ulong *)(lVar2 + -0x18)) {\n    iVar1 = *(int *)(lVar2 + param_3 * 4);\n    uVar3 = param_3;\n    while (param_2 == iVar1) {\n      uVar3 = uVar3 + 1;\n      if (uVar3 == *(ulong *)(lVar2 + -0x18)) {\n        return 0xffffffffffffffff;\n      }\n      iVar1 = *(int *)(lVar2 + uVar3 * 4);\n    }\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_002f1590(long *param_1,int param_2,ulong param_3)" identifier (parameter_list "(long *param_1,int param_2,ulong param_3)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "ulong param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  ulong uVar3;\n  \n  lVar2 = *param_1;\n  uVar3 = 0xffffffffffffffff;\n  if (param_3 < *(ulong *)(lVar2 + -0x18)) {\n    iVar1 = *(int *)(lVar2 + param_3 * 4);\n    uVar3 = param_3;\n    while (param_2 == iVar1) {\n      uVar3 = uVar3 + 1;\n      if (uVar3 == *(ulong *)(lVar2 + -0x18)) {\n        return 0xffffffffffffffff;\n      }\n      iVar1 = *(int *)(lVar2 + uVar3 * 4);\n    }\n  }\n  return uVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar3;" type_identifier identifier ;) (expression_statement "lVar2 = *param_1;" (assignment_expression "lVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar3 = 0xffffffffffffffff;" (assignment_expression "uVar3 = 0xffffffffffffffff" identifier = number_literal) ;) (if_statement "if (param_3 < *(ulong *)(lVar2 + -0x18)) {\n    iVar1 = *(int *)(lVar2 + param_3 * 4);\n    uVar3 = param_3;\n    while (param_2 == iVar1) {\n      uVar3 = uVar3 + 1;\n      if (uVar3 == *(ulong *)(lVar2 + -0x18)) {\n        return 0xffffffffffffffff;\n      }\n      iVar1 = *(int *)(lVar2 + uVar3 * 4);\n    }\n  }" if (parenthesized_expression "(param_3 < *(ulong *)(lVar2 + -0x18))" ( (binary_expression "param_3 < *(ulong *)(lVar2 + -0x18)" identifier < (pointer_expression "*(ulong *)(lVar2 + -0x18)" * (cast_expression "(ulong *)(lVar2 + -0x18)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -0x18)" ( (binary_expression "lVar2 + -0x18" identifier + number_literal) ))))) )) (compound_statement "{\n    iVar1 = *(int *)(lVar2 + param_3 * 4);\n    uVar3 = param_3;\n    while (param_2 == iVar1) {\n      uVar3 = uVar3 + 1;\n      if (uVar3 == *(ulong *)(lVar2 + -0x18)) {\n        return 0xffffffffffffffff;\n      }\n      iVar1 = *(int *)(lVar2 + uVar3 * 4);\n    }\n  }" { (expression_statement "iVar1 = *(int *)(lVar2 + param_3 * 4);" (assignment_expression "iVar1 = *(int *)(lVar2 + param_3 * 4)" identifier = (pointer_expression "*(int *)(lVar2 + param_3 * 4)" * (cast_expression "(int *)(lVar2 + param_3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + param_3 * 4)" ( (binary_expression "lVar2 + param_3 * 4" identifier + (binary_expression "param_3 * 4" identifier * number_literal)) ))))) ;) (expression_statement "uVar3 = param_3;" (assignment_expression "uVar3 = param_3" identifier = identifier) ;) (while_statement "while (param_2 == iVar1) {\n      uVar3 = uVar3 + 1;\n      if (uVar3 == *(ulong *)(lVar2 + -0x18)) {\n        return 0xffffffffffffffff;\n      }\n      iVar1 = *(int *)(lVar2 + uVar3 * 4);\n    }" while (parenthesized_expression "(param_2 == iVar1)" ( (binary_expression "param_2 == iVar1" identifier == identifier) )) (compound_statement "{\n      uVar3 = uVar3 + 1;\n      if (uVar3 == *(ulong *)(lVar2 + -0x18)) {\n        return 0xffffffffffffffff;\n      }\n      iVar1 = *(int *)(lVar2 + uVar3 * 4);\n    }" { (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) (if_statement "if (uVar3 == *(ulong *)(lVar2 + -0x18)) {\n        return 0xffffffffffffffff;\n      }" if (parenthesized_expression "(uVar3 == *(ulong *)(lVar2 + -0x18))" ( (binary_expression "uVar3 == *(ulong *)(lVar2 + -0x18)" identifier == (pointer_expression "*(ulong *)(lVar2 + -0x18)" * (cast_expression "(ulong *)(lVar2 + -0x18)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -0x18)" ( (binary_expression "lVar2 + -0x18" identifier + number_literal) ))))) )) (compound_statement "{\n        return 0xffffffffffffffff;\n      }" { (return_statement "return 0xffffffffffffffff;" return number_literal ;) })) (expression_statement "iVar1 = *(int *)(lVar2 + uVar3 * 4);" (assignment_expression "iVar1 = *(int *)(lVar2 + uVar3 * 4)" identifier = (pointer_expression "*(int *)(lVar2 + uVar3 * 4)" * (cast_expression "(int *)(lVar2 + uVar3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + uVar3 * 4)" ( (binary_expression "lVar2 + uVar3 * 4" identifier + (binary_expression "uVar3 * 4" identifier * number_literal)) ))))) ;) })) })) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) ;) })) })) (return_statement return IDENT ;) })))
(function_definition "ulong FUN_002f1590(long *param_1,int param_2,ulong param_3)\n\n{\n  int iVar1;\n  long lVar2;\n  ulong uVar3;\n  \n  lVar2 = *param_1;\n  uVar3 = 0xffffffffffffffff;\n  if (param_3 < *(ulong *)(lVar2 + -0x18)) {\n    iVar1 = *(int *)(lVar2 + param_3 * 4);\n    uVar3 = param_3;\n    while (param_2 == iVar1) {\n      uVar3 = uVar3 + 1;\n      if (uVar3 == *(ulong *)(lVar2 + -0x18)) {\n        return 0xffffffffffffffff;\n      }\n      iVar1 = *(int *)(lVar2 + uVar3 * 4);\n    }\n  }\n  return uVar3;\n}" (type_identifier "ulong") (function_declarator "FUN_002f1590(long *param_1,int param_2,ulong param_3)" (identifier "FUN_002f1590") (parameter_list "(long *param_1,int param_2,ulong param_3)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "ulong param_3" (type_identifier "ulong") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  ulong uVar3;\n  \n  lVar2 = *param_1;\n  uVar3 = 0xffffffffffffffff;\n  if (param_3 < *(ulong *)(lVar2 + -0x18)) {\n    iVar1 = *(int *)(lVar2 + param_3 * 4);\n    uVar3 = param_3;\n    while (param_2 == iVar1) {\n      uVar3 = uVar3 + 1;\n      if (uVar3 == *(ulong *)(lVar2 + -0x18)) {\n        return 0xffffffffffffffff;\n      }\n      iVar1 = *(int *)(lVar2 + uVar3 * 4);\n    }\n  }\n  return uVar3;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "ulong uVar3;" (type_identifier "ulong") (identifier "uVar3") (; ";")) (expression_statement "lVar2 = *param_1;" (assignment_expression "lVar2 = *param_1" (identifier "lVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "uVar3 = 0xffffffffffffffff;" (assignment_expression "uVar3 = 0xffffffffffffffff" (identifier "uVar3") (= "=") (number_literal "0xffffffffffffffff")) (; ";")) (if_statement "if (param_3 < *(ulong *)(lVar2 + -0x18)) {\n    iVar1 = *(int *)(lVar2 + param_3 * 4);\n    uVar3 = param_3;\n    while (param_2 == iVar1) {\n      uVar3 = uVar3 + 1;\n      if (uVar3 == *(ulong *)(lVar2 + -0x18)) {\n        return 0xffffffffffffffff;\n      }\n      iVar1 = *(int *)(lVar2 + uVar3 * 4);\n    }\n  }" (if "if") (parenthesized_expression "(param_3 < *(ulong *)(lVar2 + -0x18))" (( "(") (binary_expression "param_3 < *(ulong *)(lVar2 + -0x18)" (identifier "param_3") (< "<") (pointer_expression "*(ulong *)(lVar2 + -0x18)" (* "*") (cast_expression "(ulong *)(lVar2 + -0x18)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + -0x18)" (( "(") (binary_expression "lVar2 + -0x18" (identifier "lVar2") (+ "+") (number_literal "-0x18")) () ")"))))) () ")")) (compound_statement "{\n    iVar1 = *(int *)(lVar2 + param_3 * 4);\n    uVar3 = param_3;\n    while (param_2 == iVar1) {\n      uVar3 = uVar3 + 1;\n      if (uVar3 == *(ulong *)(lVar2 + -0x18)) {\n        return 0xffffffffffffffff;\n      }\n      iVar1 = *(int *)(lVar2 + uVar3 * 4);\n    }\n  }" ({ "{") (expression_statement "iVar1 = *(int *)(lVar2 + param_3 * 4);" (assignment_expression "iVar1 = *(int *)(lVar2 + param_3 * 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(lVar2 + param_3 * 4)" (* "*") (cast_expression "(int *)(lVar2 + param_3 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + param_3 * 4)" (( "(") (binary_expression "lVar2 + param_3 * 4" (identifier "lVar2") (+ "+") (binary_expression "param_3 * 4" (identifier "param_3") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "uVar3 = param_3;" (assignment_expression "uVar3 = param_3" (identifier "uVar3") (= "=") (identifier "param_3")) (; ";")) (while_statement "while (param_2 == iVar1) {\n      uVar3 = uVar3 + 1;\n      if (uVar3 == *(ulong *)(lVar2 + -0x18)) {\n        return 0xffffffffffffffff;\n      }\n      iVar1 = *(int *)(lVar2 + uVar3 * 4);\n    }" (while "while") (parenthesized_expression "(param_2 == iVar1)" (( "(") (binary_expression "param_2 == iVar1" (identifier "param_2") (== "==") (identifier "iVar1")) () ")")) (compound_statement "{\n      uVar3 = uVar3 + 1;\n      if (uVar3 == *(ulong *)(lVar2 + -0x18)) {\n        return 0xffffffffffffffff;\n      }\n      iVar1 = *(int *)(lVar2 + uVar3 * 4);\n    }" ({ "{") (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" (identifier "uVar3") (= "=") (binary_expression "uVar3 + 1" (identifier "uVar3") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (uVar3 == *(ulong *)(lVar2 + -0x18)) {\n        return 0xffffffffffffffff;\n      }" (if "if") (parenthesized_expression "(uVar3 == *(ulong *)(lVar2 + -0x18))" (( "(") (binary_expression "uVar3 == *(ulong *)(lVar2 + -0x18)" (identifier "uVar3") (== "==") (pointer_expression "*(ulong *)(lVar2 + -0x18)" (* "*") (cast_expression "(ulong *)(lVar2 + -0x18)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + -0x18)" (( "(") (binary_expression "lVar2 + -0x18" (identifier "lVar2") (+ "+") (number_literal "-0x18")) () ")"))))) () ")")) (compound_statement "{\n        return 0xffffffffffffffff;\n      }" ({ "{") (return_statement "return 0xffffffffffffffff;" (return "return") (number_literal "0xffffffffffffffff") (; ";")) (} "}"))) (expression_statement "iVar1 = *(int *)(lVar2 + uVar3 * 4);" (assignment_expression "iVar1 = *(int *)(lVar2 + uVar3 * 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(lVar2 + uVar3 * 4)" (* "*") (cast_expression "(int *)(lVar2 + uVar3 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + uVar3 * 4)" (( "(") (binary_expression "lVar2 + uVar3 * 4" (identifier "lVar2") (+ "+") (binary_expression "uVar3 * 4" (identifier "uVar3") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (} "}"))) (} "}"))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

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

type_1 __thiscall std::type_2::function_1(type_2 *this,type_3 var_3,type_1 var_1)

{
  type_3 var_4;
  long var_2;
  type_1 var_5;
  
  var_2 = *(long *)this;
  var_5 = 0xffffffffffffffff;
  if (var_1 < *(type_1 *)(var_2 + -0x18)) {
    var_4 = *(type_3 *)(var_2 + var_1 * 4);
    var_5 = var_1;
    while (var_3 == var_4) {
      var_5 = var_5 + 1;
      if (var_5 == *(type_1 *)(var_2 + -0x18)) {
        return 0xffffffffffffffff;
      }
      var_4 = *(type_3 *)(var_2 + var_5 * 4);
    }
  }
  return var_5;
}


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

ulong MASKED(long *param_1,int param_2,ulong param_3)

{
  int iVar1;
  long lVar2;
  ulong uVar3;
  
  lVar2 = *param_1;
  uVar3 = 0xffffffffffffffff;
  if (param_3 < *(ulong *)(lVar2 + -0x18)) {
    iVar1 = *(int *)(lVar2 + param_3 * 4);
    uVar3 = param_3;
    while (param_2 == iVar1) {
      uVar3 = uVar3 + 1;
      if (uVar3 == *(ulong *)(lVar2 + -0x18)) {
        return 0xffffffffffffffff;
      }
      iVar1 = *(int *)(lVar2 + uVar3 * 4);
    }
  }
  return uVar3;
}

