
/* std::string::find_first_not_of(char, unsigned long) const */

ulong __thiscall std::string::find_first_not_of(string *this,char param_1,ulong param_2)

{
  char cVar1;
  ulong uVar2;
  
  uVar2 = 0xffffffffffffffff;
  if (param_2 < *(ulong *)(this + 8)) {
    cVar1 = *(char *)(*(long *)this + param_2);
    uVar2 = param_2;
    while (param_1 == cVar1) {
      uVar2 = uVar2 + 1;
      if (uVar2 == *(ulong *)(this + 8)) {
        return 0xffffffffffffffff;
      }
      cVar1 = *(char *)(*(long *)this + uVar2);
    }
  }
  return uVar2;
}



ulong FUN_002f8a60(long *param_1,char param_2,ulong param_3)

{
  char cVar1;
  ulong uVar2;
  
  uVar2 = 0xffffffffffffffff;
  if (param_3 < (ulong)param_1[1]) {
    cVar1 = *(char *)(*param_1 + param_3);
    uVar2 = param_3;
    while (param_2 == cVar1) {
      uVar2 = uVar2 + 1;
      if (uVar2 == param_1[1]) {
        return 0xffffffffffffffff;
      }
      cVar1 = *(char *)(*param_1 + uVar2);
    }
  }
  return uVar2;
}


MOV RCX,qword ptr [RDI + 0x8]
MOV R8D,ESI
MOV RAX,-0x1
CMP RDX,RCX
JNC 0x002f8aa3
MOV RAX,qword ptr [RDI]
CMP SIL,byte ptr [RAX + RDX*0x1]
JZ 0x002f8a86
JMP 0x002f8aa0
CMP byte ptr [RAX + RDX*0x1],R8B
JNZ 0x002f8aa0
ADD RDX,0x1
CMP RDX,RCX
JNZ 0x002f8a80
MOV RAX,-0x1
RET
MOV RAX,RDX
RET
(translation_unit "ulong FUN_002f8a60(long *param_1,char param_2,ulong param_3)\n\n{\n  char cVar1;\n  ulong uVar2;\n  \n  uVar2 = 0xffffffffffffffff;\n  if (param_3 < (ulong)param_1[1]) {\n    cVar1 = *(char *)(*param_1 + param_3);\n    uVar2 = param_3;\n    while (param_2 == cVar1) {\n      uVar2 = uVar2 + 1;\n      if (uVar2 == param_1[1]) {\n        return 0xffffffffffffffff;\n      }\n      cVar1 = *(char *)(*param_1 + uVar2);\n    }\n  }\n  return uVar2;\n}\n\n" (function_definition "ulong FUN_002f8a60(long *param_1,char param_2,ulong param_3)\n\n{\n  char cVar1;\n  ulong uVar2;\n  \n  uVar2 = 0xffffffffffffffff;\n  if (param_3 < (ulong)param_1[1]) {\n    cVar1 = *(char *)(*param_1 + param_3);\n    uVar2 = param_3;\n    while (param_2 == cVar1) {\n      uVar2 = uVar2 + 1;\n      if (uVar2 == param_1[1]) {\n        return 0xffffffffffffffff;\n      }\n      cVar1 = *(char *)(*param_1 + uVar2);\n    }\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_002f8a60(long *param_1,char param_2,ulong param_3)" identifier (parameter_list "(long *param_1,char param_2,ulong param_3)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char param_2" primitive_type identifier) , (parameter_declaration "ulong param_3" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  ulong uVar2;\n  \n  uVar2 = 0xffffffffffffffff;\n  if (param_3 < (ulong)param_1[1]) {\n    cVar1 = *(char *)(*param_1 + param_3);\n    uVar2 = param_3;\n    while (param_2 == cVar1) {\n      uVar2 = uVar2 + 1;\n      if (uVar2 == param_1[1]) {\n        return 0xffffffffffffffff;\n      }\n      cVar1 = *(char *)(*param_1 + uVar2);\n    }\n  }\n  return uVar2;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = 0xffffffffffffffff;" (assignment_expression "uVar2 = 0xffffffffffffffff" identifier = number_literal) ;) (if_statement "if (param_3 < (ulong)param_1[1]) {\n    cVar1 = *(char *)(*param_1 + param_3);\n    uVar2 = param_3;\n    while (param_2 == cVar1) {\n      uVar2 = uVar2 + 1;\n      if (uVar2 == param_1[1]) {\n        return 0xffffffffffffffff;\n      }\n      cVar1 = *(char *)(*param_1 + uVar2);\n    }\n  }" if (parenthesized_expression "(param_3 < (ulong)param_1[1])" ( (binary_expression "param_3 < (ulong)param_1[1]" identifier < (cast_expression "(ulong)param_1[1]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    cVar1 = *(char *)(*param_1 + param_3);\n    uVar2 = param_3;\n    while (param_2 == cVar1) {\n      uVar2 = uVar2 + 1;\n      if (uVar2 == param_1[1]) {\n        return 0xffffffffffffffff;\n      }\n      cVar1 = *(char *)(*param_1 + uVar2);\n    }\n  }" { (expression_statement "cVar1 = *(char *)(*param_1 + param_3);" (assignment_expression "cVar1 = *(char *)(*param_1 + param_3)" identifier = (pointer_expression "*(char *)(*param_1 + param_3)" * (cast_expression "(char *)(*param_1 + param_3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + param_3)" ( (binary_expression "*param_1 + param_3" (pointer_expression "*param_1" * identifier) + identifier) ))))) ;) (expression_statement "uVar2 = param_3;" (assignment_expression "uVar2 = param_3" identifier = identifier) ;) (while_statement "while (param_2 == cVar1) {\n      uVar2 = uVar2 + 1;\n      if (uVar2 == param_1[1]) {\n        return 0xffffffffffffffff;\n      }\n      cVar1 = *(char *)(*param_1 + uVar2);\n    }" while (parenthesized_expression "(param_2 == cVar1)" ( (binary_expression "param_2 == cVar1" identifier == identifier) )) (compound_statement "{\n      uVar2 = uVar2 + 1;\n      if (uVar2 == param_1[1]) {\n        return 0xffffffffffffffff;\n      }\n      cVar1 = *(char *)(*param_1 + uVar2);\n    }" { (expression_statement "uVar2 = uVar2 + 1;" (assignment_expression "uVar2 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) (if_statement "if (uVar2 == param_1[1]) {\n        return 0xffffffffffffffff;\n      }" if (parenthesized_expression "(uVar2 == param_1[1])" ( (binary_expression "uVar2 == param_1[1]" identifier == (subscript_expression "param_1[1]" identifier [ number_literal ])) )) (compound_statement "{\n        return 0xffffffffffffffff;\n      }" { (return_statement "return 0xffffffffffffffff;" return number_literal ;) })) (expression_statement "cVar1 = *(char *)(*param_1 + uVar2);" (assignment_expression "cVar1 = *(char *)(*param_1 + uVar2)" identifier = (pointer_expression "*(char *)(*param_1 + uVar2)" * (cast_expression "(char *)(*param_1 + uVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + uVar2)" ( (binary_expression "*param_1 + uVar2" (pointer_expression "*param_1" * identifier) + identifier) ))))) ;) })) })) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "/* std::string::find_first_not_of(char, unsigned long) const */\n\nulong __thiscall std::string::find_first_not_of(string *this,char param_1,ulong param_2)\n\n{\n  char cVar1;\n  ulong uVar2;\n  \n  uVar2 = 0xffffffffffffffff;\n  if (param_2 < *(ulong *)(this + 8)) {\n    cVar1 = *(char *)(*(long *)this + param_2);\n    uVar2 = param_2;\n    while (param_1 == cVar1) {\n      uVar2 = uVar2 + 1;\n      if (uVar2 == *(ulong *)(this + 8)) {\n        return 0xffffffffffffffff;\n      }\n      cVar1 = *(char *)(*(long *)this + uVar2);\n    }\n  }\n  return uVar2;\n}\n\n" comment (function_definition "ulong __thiscall std::string::find_first_not_of(string *this,char param_1,ulong param_2)\n\n{\n  char cVar1;\n  ulong uVar2;\n  \n  uVar2 = 0xffffffffffffffff;\n  if (param_2 < *(ulong *)(this + 8)) {\n    cVar1 = *(char *)(*(long *)this + param_2);\n    uVar2 = param_2;\n    while (param_1 == cVar1) {\n      uVar2 = uVar2 + 1;\n      if (uVar2 == *(ulong *)(this + 8)) {\n        return 0xffffffffffffffff;\n      }\n      cVar1 = *(char *)(*(long *)this + uVar2);\n    }\n  }\n  return uVar2;\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::string::" identifier : : identifier : :) (function_declarator "find_first_not_of(string *this,char param_1,ulong param_2)" identifier (parameter_list "(string *this,char param_1,ulong param_2)" ( (parameter_declaration "string *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "char param_1" primitive_type identifier) , (parameter_declaration "ulong param_2" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  ulong uVar2;\n  \n  uVar2 = 0xffffffffffffffff;\n  if (param_2 < *(ulong *)(this + 8)) {\n    cVar1 = *(char *)(*(long *)this + param_2);\n    uVar2 = param_2;\n    while (param_1 == cVar1) {\n      uVar2 = uVar2 + 1;\n      if (uVar2 == *(ulong *)(this + 8)) {\n        return 0xffffffffffffffff;\n      }\n      cVar1 = *(char *)(*(long *)this + uVar2);\n    }\n  }\n  return uVar2;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = 0xffffffffffffffff;" (assignment_expression "uVar2 = 0xffffffffffffffff" identifier = number_literal) ;) (if_statement "if (param_2 < *(ulong *)(this + 8)) {\n    cVar1 = *(char *)(*(long *)this + param_2);\n    uVar2 = param_2;\n    while (param_1 == cVar1) {\n      uVar2 = uVar2 + 1;\n      if (uVar2 == *(ulong *)(this + 8)) {\n        return 0xffffffffffffffff;\n      }\n      cVar1 = *(char *)(*(long *)this + uVar2);\n    }\n  }" if (parenthesized_expression "(param_2 < *(ulong *)(this + 8))" ( (binary_expression "param_2 < *(ulong *)(this + 8)" identifier < (pointer_expression "*(ulong *)(this + 8)" * (cast_expression "(ulong *)(this + 8)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) )) (compound_statement "{\n    cVar1 = *(char *)(*(long *)this + param_2);\n    uVar2 = param_2;\n    while (param_1 == cVar1) {\n      uVar2 = uVar2 + 1;\n      if (uVar2 == *(ulong *)(this + 8)) {\n        return 0xffffffffffffffff;\n      }\n      cVar1 = *(char *)(*(long *)this + uVar2);\n    }\n  }" { (expression_statement "cVar1 = *(char *)(*(long *)this + param_2);" (assignment_expression "cVar1 = *(char *)(*(long *)this + param_2)" identifier = (pointer_expression "*(char *)(*(long *)this + param_2)" * (cast_expression "(char *)(*(long *)this + param_2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)this + param_2)" ( (binary_expression "*(long *)this + param_2" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + identifier) ))))) ;) (expression_statement "uVar2 = param_2;" (assignment_expression "uVar2 = param_2" identifier = identifier) ;) (while_statement "while (param_1 == cVar1) {\n      uVar2 = uVar2 + 1;\n      if (uVar2 == *(ulong *)(this + 8)) {\n        return 0xffffffffffffffff;\n      }\n      cVar1 = *(char *)(*(long *)this + uVar2);\n    }" while (parenthesized_expression "(param_1 == cVar1)" ( (binary_expression "param_1 == cVar1" identifier == identifier) )) (compound_statement "{\n      uVar2 = uVar2 + 1;\n      if (uVar2 == *(ulong *)(this + 8)) {\n        return 0xffffffffffffffff;\n      }\n      cVar1 = *(char *)(*(long *)this + uVar2);\n    }" { (expression_statement "uVar2 = uVar2 + 1;" (assignment_expression "uVar2 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) (if_statement "if (uVar2 == *(ulong *)(this + 8)) {\n        return 0xffffffffffffffff;\n      }" if (parenthesized_expression "(uVar2 == *(ulong *)(this + 8))" ( (binary_expression "uVar2 == *(ulong *)(this + 8)" identifier == (pointer_expression "*(ulong *)(this + 8)" * (cast_expression "(ulong *)(this + 8)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) )) (compound_statement "{\n        return 0xffffffffffffffff;\n      }" { (return_statement "return 0xffffffffffffffff;" return number_literal ;) })) (expression_statement "cVar1 = *(char *)(*(long *)this + uVar2);" (assignment_expression "cVar1 = *(char *)(*(long *)this + uVar2)" identifier = (pointer_expression "*(char *)(*(long *)this + uVar2)" * (cast_expression "(char *)(*(long *)this + uVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)this + uVar2)" ( (binary_expression "*(long *)this + uVar2" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + identifier) ))))) ;) })) })) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "ulong FUN_002f8a60(long *param_1,char param_2,ulong param_3)\n\n{\n  char cVar1;\n  ulong uVar2;\n  \n  uVar2 = 0xffffffffffffffff;\n  if (param_3 < (ulong)param_1[1]) {\n    cVar1 = *(char *)(*param_1 + param_3);\n    uVar2 = param_3;\n    while (param_2 == cVar1) {\n      uVar2 = uVar2 + 1;\n      if (uVar2 == param_1[1]) {\n        return 0xffffffffffffffff;\n      }\n      cVar1 = *(char *)(*param_1 + uVar2);\n    }\n  }\n  return uVar2;\n}\n\n" (function_definition "ulong FUN_002f8a60(long *param_1,char param_2,ulong param_3)\n\n{\n  char cVar1;\n  ulong uVar2;\n  \n  uVar2 = 0xffffffffffffffff;\n  if (param_3 < (ulong)param_1[1]) {\n    cVar1 = *(char *)(*param_1 + param_3);\n    uVar2 = param_3;\n    while (param_2 == cVar1) {\n      uVar2 = uVar2 + 1;\n      if (uVar2 == param_1[1]) {\n        return 0xffffffffffffffff;\n      }\n      cVar1 = *(char *)(*param_1 + uVar2);\n    }\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_002f8a60(long *param_1,char param_2,ulong param_3)" identifier (parameter_list "(long *param_1,char param_2,ulong param_3)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char param_2" primitive_type identifier) , (parameter_declaration "ulong param_3" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  ulong uVar2;\n  \n  uVar2 = 0xffffffffffffffff;\n  if (param_3 < (ulong)param_1[1]) {\n    cVar1 = *(char *)(*param_1 + param_3);\n    uVar2 = param_3;\n    while (param_2 == cVar1) {\n      uVar2 = uVar2 + 1;\n      if (uVar2 == param_1[1]) {\n        return 0xffffffffffffffff;\n      }\n      cVar1 = *(char *)(*param_1 + uVar2);\n    }\n  }\n  return uVar2;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = 0xffffffffffffffff;" (assignment_expression "uVar2 = 0xffffffffffffffff" identifier = number_literal) ;) (if_statement "if (param_3 < (ulong)param_1[1]) {\n    cVar1 = *(char *)(*param_1 + param_3);\n    uVar2 = param_3;\n    while (param_2 == cVar1) {\n      uVar2 = uVar2 + 1;\n      if (uVar2 == param_1[1]) {\n        return 0xffffffffffffffff;\n      }\n      cVar1 = *(char *)(*param_1 + uVar2);\n    }\n  }" if (parenthesized_expression "(param_3 < (ulong)param_1[1])" ( (binary_expression "param_3 < (ulong)param_1[1]" identifier < (cast_expression "(ulong)param_1[1]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    cVar1 = *(char *)(*param_1 + param_3);\n    uVar2 = param_3;\n    while (param_2 == cVar1) {\n      uVar2 = uVar2 + 1;\n      if (uVar2 == param_1[1]) {\n        return 0xffffffffffffffff;\n      }\n      cVar1 = *(char *)(*param_1 + uVar2);\n    }\n  }" { (expression_statement "cVar1 = *(char *)(*param_1 + param_3);" (assignment_expression "cVar1 = *(char *)(*param_1 + param_3)" identifier = (pointer_expression "*(char *)(*param_1 + param_3)" * (cast_expression "(char *)(*param_1 + param_3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + param_3)" ( (binary_expression "*param_1 + param_3" (pointer_expression "*param_1" * identifier) + identifier) ))))) ;) (expression_statement "uVar2 = param_3;" (assignment_expression "uVar2 = param_3" identifier = identifier) ;) (while_statement "while (param_2 == cVar1) {\n      uVar2 = uVar2 + 1;\n      if (uVar2 == param_1[1]) {\n        return 0xffffffffffffffff;\n      }\n      cVar1 = *(char *)(*param_1 + uVar2);\n    }" while (parenthesized_expression "(param_2 == cVar1)" ( (binary_expression "param_2 == cVar1" identifier == identifier) )) (compound_statement "{\n      uVar2 = uVar2 + 1;\n      if (uVar2 == param_1[1]) {\n        return 0xffffffffffffffff;\n      }\n      cVar1 = *(char *)(*param_1 + uVar2);\n    }" { (expression_statement "uVar2 = uVar2 + 1;" (assignment_expression "uVar2 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) (if_statement "if (uVar2 == param_1[1]) {\n        return 0xffffffffffffffff;\n      }" if (parenthesized_expression "(uVar2 == param_1[1])" ( (binary_expression "uVar2 == param_1[1]" identifier == (subscript_expression "param_1[1]" identifier [ number_literal ])) )) (compound_statement "{\n        return 0xffffffffffffffff;\n      }" { (return_statement "return 0xffffffffffffffff;" return number_literal ;) })) (expression_statement "cVar1 = *(char *)(*param_1 + uVar2);" (assignment_expression "cVar1 = *(char *)(*param_1 + uVar2)" identifier = (pointer_expression "*(char *)(*param_1 + uVar2)" * (cast_expression "(char *)(*param_1 + uVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + uVar2)" ( (binary_expression "*param_1 + uVar2" (pointer_expression "*param_1" * identifier) + identifier) ))))) ;) })) })) (return_statement "return uVar2;" 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 TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + IDENT) ))))) ;) (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 == (subscript_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 (pointer_expression * IDENT) + IDENT) ))))) ;) })) })) (return_statement return IDENT ;) })))
(function_definition "ulong FUN_002f8a60(long *param_1,char param_2,ulong param_3)\n\n{\n  char cVar1;\n  ulong uVar2;\n  \n  uVar2 = 0xffffffffffffffff;\n  if (param_3 < (ulong)param_1[1]) {\n    cVar1 = *(char *)(*param_1 + param_3);\n    uVar2 = param_3;\n    while (param_2 == cVar1) {\n      uVar2 = uVar2 + 1;\n      if (uVar2 == param_1[1]) {\n        return 0xffffffffffffffff;\n      }\n      cVar1 = *(char *)(*param_1 + uVar2);\n    }\n  }\n  return uVar2;\n}" (type_identifier "ulong") (function_declarator "FUN_002f8a60(long *param_1,char param_2,ulong param_3)" (identifier "FUN_002f8a60") (parameter_list "(long *param_1,char 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 "char param_2" (primitive_type "char") (identifier "param_2")) (, ",") (parameter_declaration "ulong param_3" (type_identifier "ulong") (identifier "param_3")) () ")"))) (compound_statement "{\n  char cVar1;\n  ulong uVar2;\n  \n  uVar2 = 0xffffffffffffffff;\n  if (param_3 < (ulong)param_1[1]) {\n    cVar1 = *(char *)(*param_1 + param_3);\n    uVar2 = param_3;\n    while (param_2 == cVar1) {\n      uVar2 = uVar2 + 1;\n      if (uVar2 == param_1[1]) {\n        return 0xffffffffffffffff;\n      }\n      cVar1 = *(char *)(*param_1 + uVar2);\n    }\n  }\n  return uVar2;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "ulong uVar2;" (type_identifier "ulong") (identifier "uVar2") (; ";")) (expression_statement "uVar2 = 0xffffffffffffffff;" (assignment_expression "uVar2 = 0xffffffffffffffff" (identifier "uVar2") (= "=") (number_literal "0xffffffffffffffff")) (; ";")) (if_statement "if (param_3 < (ulong)param_1[1]) {\n    cVar1 = *(char *)(*param_1 + param_3);\n    uVar2 = param_3;\n    while (param_2 == cVar1) {\n      uVar2 = uVar2 + 1;\n      if (uVar2 == param_1[1]) {\n        return 0xffffffffffffffff;\n      }\n      cVar1 = *(char *)(*param_1 + uVar2);\n    }\n  }" (if "if") (parenthesized_expression "(param_3 < (ulong)param_1[1])" (( "(") (binary_expression "param_3 < (ulong)param_1[1]" (identifier "param_3") (< "<") (cast_expression "(ulong)param_1[1]" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) () ")")) (compound_statement "{\n    cVar1 = *(char *)(*param_1 + param_3);\n    uVar2 = param_3;\n    while (param_2 == cVar1) {\n      uVar2 = uVar2 + 1;\n      if (uVar2 == param_1[1]) {\n        return 0xffffffffffffffff;\n      }\n      cVar1 = *(char *)(*param_1 + uVar2);\n    }\n  }" ({ "{") (expression_statement "cVar1 = *(char *)(*param_1 + param_3);" (assignment_expression "cVar1 = *(char *)(*param_1 + param_3)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(*param_1 + param_3)" (* "*") (cast_expression "(char *)(*param_1 + param_3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + param_3)" (( "(") (binary_expression "*param_1 + param_3" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (identifier "param_3")) () ")"))))) (; ";")) (expression_statement "uVar2 = param_3;" (assignment_expression "uVar2 = param_3" (identifier "uVar2") (= "=") (identifier "param_3")) (; ";")) (while_statement "while (param_2 == cVar1) {\n      uVar2 = uVar2 + 1;\n      if (uVar2 == param_1[1]) {\n        return 0xffffffffffffffff;\n      }\n      cVar1 = *(char *)(*param_1 + uVar2);\n    }" (while "while") (parenthesized_expression "(param_2 == cVar1)" (( "(") (binary_expression "param_2 == cVar1" (identifier "param_2") (== "==") (identifier "cVar1")) () ")")) (compound_statement "{\n      uVar2 = uVar2 + 1;\n      if (uVar2 == param_1[1]) {\n        return 0xffffffffffffffff;\n      }\n      cVar1 = *(char *)(*param_1 + uVar2);\n    }" ({ "{") (expression_statement "uVar2 = uVar2 + 1;" (assignment_expression "uVar2 = uVar2 + 1" (identifier "uVar2") (= "=") (binary_expression "uVar2 + 1" (identifier "uVar2") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (uVar2 == param_1[1]) {\n        return 0xffffffffffffffff;\n      }" (if "if") (parenthesized_expression "(uVar2 == param_1[1])" (( "(") (binary_expression "uVar2 == param_1[1]" (identifier "uVar2") (== "==") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) () ")")) (compound_statement "{\n        return 0xffffffffffffffff;\n      }" ({ "{") (return_statement "return 0xffffffffffffffff;" (return "return") (number_literal "0xffffffffffffffff") (; ";")) (} "}"))) (expression_statement "cVar1 = *(char *)(*param_1 + uVar2);" (assignment_expression "cVar1 = *(char *)(*param_1 + uVar2)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(*param_1 + uVar2)" (* "*") (cast_expression "(char *)(*param_1 + uVar2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + uVar2)" (( "(") (binary_expression "*param_1 + uVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (identifier "uVar2")) () ")"))))) (; ";")) (} "}"))) (} "}"))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

/* std::string::find_first_not_of(char, unsigned long) const */

type_1 __thiscall std::type_2::function_1(type_2 *var_2,char var_3,type_1 var_1)

{
  char var_4;
  type_1 var_5;
  
  var_5 = 0xffffffffffffffff;
  if (var_1 < *(type_1 *)(var_2 + 8)) {
    var_4 = *(char *)(*(long *)var_2 + var_1);
    var_5 = var_1;
    while (var_3 == var_4) {
      var_5 = var_5 + 1;
      if (var_5 == *(type_1 *)(var_2 + 8)) {
        return 0xffffffffffffffff;
      }
      var_4 = *(char *)(*(long *)var_2 + var_5);
    }
  }
  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: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier))))))) (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: (subscript_expression argument: (identifier) index: (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: (pointer_expression argument: (identifier)) right: (identifier))))))))))) (return_statement (identifier)))))

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

{
  char cVar1;
  ulong uVar2;
  
  uVar2 = 0xffffffffffffffff;
  if (param_3 < (ulong)param_1[1]) {
    cVar1 = *(char *)(*param_1 + param_3);
    uVar2 = param_3;
    while (param_2 == cVar1) {
      uVar2 = uVar2 + 1;
      if (uVar2 == param_1[1]) {
        return 0xffffffffffffffff;
      }
      cVar1 = *(char *)(*param_1 + uVar2);
    }
  }
  return uVar2;
}

