
/* std::string::find_first_of(char const*, unsigned int, unsigned int) const */

uint __thiscall std::string::find_first_of(string *this,char *param_1,uint param_2,uint param_3)

{
  int iVar1;
  uint uVar2;
  int iVar3;
  
  if (param_3 == 0) {
    return 0xffffffff;
  }
  uVar2 = *(uint *)(this + 4);
  if (param_2 < uVar2) {
    iVar3 = *(int *)this;
    do {
      iVar1 = (*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3);
      if (iVar1 != 0) {
        return param_2;
      }
      param_2 = param_2 + 1;
    } while (param_2 != uVar2);
  }
  return 0xffffffff;
}



/* std::string::find_first_of(char const*, unsigned int, unsigned int) const */

uint __thiscall std::string::find_first_of(string *this,char *param_1,uint param_2,uint param_3)

{
  int iVar1;
  uint uVar2;
  int iVar3;
  
  if (param_3 == 0) {
    return 0xffffffff;
  }
  uVar2 = *(uint *)(this + 4);
  if (param_2 < uVar2) {
    iVar3 = *(int *)this;
    do {
      iVar1 = (*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3);
      if (iVar1 != 0) {
        return param_2;
      }
      param_2 = param_2 + 1;
    } while (param_2 != uVar2);
  }
  return 0xffffffff;
}


lui gp,0x17
addiu gp,gp,0x7b44
addu gp,gp,t9
beq a3,zero,0x002c2754
_nop
addiu sp,sp,-0x30
sw s0,0x18(sp)
sw gp,0x10(sp)
sw ra,0x2c(sp)
sw s4,0x28(sp)
sw s3,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
lw s2,0x4(a0)
sltu v0,a2,s2
beq v0,zero,0x002c2730
_or s0,a2,zero
or s1,a3,zero
lw s4,0x0(a0)
b 0x002c26ec
_or s3,a1,zero
addiu s0,s0,0x1
beq s0,s2,0x002c2734
_lw ra,0x2c(sp)
addu v0,s4,s0
lw t9,-0x3b28(gp)
or a2,s1,zero
or a0,s3,zero
jalr t9
_lb a1,0x0(v0)
beq v0,zero,0x002c26e0
_lw gp,0x10(sp)
lw ra,0x2c(sp)
or v0,s0,zero
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 ra,0x2c(sp)
li v0,-0x1
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
jr ra
_li v0,-0x1
(translation_unit "/* std::string::find_first_of(char const*, unsigned int, unsigned int) const */\n\nuint __thiscall std::string::find_first_of(string *this,char *param_1,uint param_2,uint param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  \n  if (param_3 == 0) {\n    return 0xffffffff;\n  }\n  uVar2 = *(uint *)(this + 4);\n  if (param_2 < uVar2) {\n    iVar3 = *(int *)this;\n    do {\n      iVar1 = (*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3);\n      if (iVar1 != 0) {\n        return param_2;\n      }\n      param_2 = param_2 + 1;\n    } while (param_2 != uVar2);\n  }\n  return 0xffffffff;\n}\n\n" comment (function_definition "uint __thiscall std::string::find_first_of(string *this,char *param_1,uint param_2,uint param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  \n  if (param_3 == 0) {\n    return 0xffffffff;\n  }\n  uVar2 = *(uint *)(this + 4);\n  if (param_2 < uVar2) {\n    iVar3 = *(int *)this;\n    do {\n      iVar1 = (*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3);\n      if (iVar1 != 0) {\n        return param_2;\n      }\n      param_2 = param_2 + 1;\n    } while (param_2 != uVar2);\n  }\n  return 0xffffffff;\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::string::" identifier : : identifier : :) (function_declarator "find_first_of(string *this,char *param_1,uint param_2,uint param_3)" identifier (parameter_list "(string *this,char *param_1,uint param_2,uint param_3)" ( (parameter_declaration "string *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  \n  if (param_3 == 0) {\n    return 0xffffffff;\n  }\n  uVar2 = *(uint *)(this + 4);\n  if (param_2 < uVar2) {\n    iVar3 = *(int *)this;\n    do {\n      iVar1 = (*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3);\n      if (iVar1 != 0) {\n        return param_2;\n      }\n      param_2 = param_2 + 1;\n    } while (param_2 != uVar2);\n  }\n  return 0xffffffff;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (param_3 == 0) {\n    return 0xffffffff;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0xffffffff;\n  }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (expression_statement "uVar2 = *(uint *)(this + 4);" (assignment_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) ))))) ;) (if_statement "if (param_2 < uVar2) {\n    iVar3 = *(int *)this;\n    do {\n      iVar1 = (*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3);\n      if (iVar1 != 0) {\n        return param_2;\n      }\n      param_2 = param_2 + 1;\n    } while (param_2 != uVar2);\n  }" if (parenthesized_expression "(param_2 < uVar2)" ( (binary_expression "param_2 < uVar2" identifier < identifier) )) (compound_statement "{\n    iVar3 = *(int *)this;\n    do {\n      iVar1 = (*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3);\n      if (iVar1 != 0) {\n        return param_2;\n      }\n      param_2 = param_2 + 1;\n    } while (param_2 != uVar2);\n  }" { (expression_statement "iVar3 = *(int *)this;" (assignment_expression "iVar3 = *(int *)this" identifier = (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (do_statement "do {\n      iVar1 = (*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3);\n      if (iVar1 != 0) {\n        return param_2;\n      }\n      param_2 = param_2 + 1;\n    } while (param_2 != uVar2);" do (compound_statement "{\n      iVar1 = (*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3);\n      if (iVar1 != 0) {\n        return param_2;\n      }\n      param_2 = param_2 + 1;\n    }" { (expression_statement "iVar1 = (*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3);" (assignment_expression "iVar1 = (*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3)" identifier = (call_expression "(*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3)" (parenthesized_expression "(*(code *)PTR_memchr_004366a8)" ( (pointer_expression "*(code *)PTR_memchr_004366a8" * (cast_expression "(code *)PTR_memchr_004366a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,(int)*(char *)(iVar3 + param_2),param_3)" ( identifier , (cast_expression "(int)*(char *)(iVar3 + param_2)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(char *)(iVar3 + param_2)" * (cast_expression "(char *)(iVar3 + param_2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + param_2)" ( (binary_expression "iVar3 + param_2" identifier + identifier) ))))) , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n        return param_2;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        return param_2;\n      }" { (return_statement "return param_2;" return identifier ;) })) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_2 != uVar2)" ( (binary_expression "param_2 != uVar2" identifier != identifier) )) ;) })) (return_statement "return 0xffffffff;" return number_literal ;) })))
(translation_unit "/* std::string::find_first_of(char const*, unsigned int, unsigned int) const */\n\nuint __thiscall std::string::find_first_of(string *this,char *param_1,uint param_2,uint param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  \n  if (param_3 == 0) {\n    return 0xffffffff;\n  }\n  uVar2 = *(uint *)(this + 4);\n  if (param_2 < uVar2) {\n    iVar3 = *(int *)this;\n    do {\n      iVar1 = (*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3);\n      if (iVar1 != 0) {\n        return param_2;\n      }\n      param_2 = param_2 + 1;\n    } while (param_2 != uVar2);\n  }\n  return 0xffffffff;\n}\n\n" comment (function_definition "uint __thiscall std::string::find_first_of(string *this,char *param_1,uint param_2,uint param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  \n  if (param_3 == 0) {\n    return 0xffffffff;\n  }\n  uVar2 = *(uint *)(this + 4);\n  if (param_2 < uVar2) {\n    iVar3 = *(int *)this;\n    do {\n      iVar1 = (*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3);\n      if (iVar1 != 0) {\n        return param_2;\n      }\n      param_2 = param_2 + 1;\n    } while (param_2 != uVar2);\n  }\n  return 0xffffffff;\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::string::" identifier : : identifier : :) (function_declarator "find_first_of(string *this,char *param_1,uint param_2,uint param_3)" identifier (parameter_list "(string *this,char *param_1,uint param_2,uint param_3)" ( (parameter_declaration "string *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  \n  if (param_3 == 0) {\n    return 0xffffffff;\n  }\n  uVar2 = *(uint *)(this + 4);\n  if (param_2 < uVar2) {\n    iVar3 = *(int *)this;\n    do {\n      iVar1 = (*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3);\n      if (iVar1 != 0) {\n        return param_2;\n      }\n      param_2 = param_2 + 1;\n    } while (param_2 != uVar2);\n  }\n  return 0xffffffff;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (param_3 == 0) {\n    return 0xffffffff;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0xffffffff;\n  }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (expression_statement "uVar2 = *(uint *)(this + 4);" (assignment_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) ))))) ;) (if_statement "if (param_2 < uVar2) {\n    iVar3 = *(int *)this;\n    do {\n      iVar1 = (*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3);\n      if (iVar1 != 0) {\n        return param_2;\n      }\n      param_2 = param_2 + 1;\n    } while (param_2 != uVar2);\n  }" if (parenthesized_expression "(param_2 < uVar2)" ( (binary_expression "param_2 < uVar2" identifier < identifier) )) (compound_statement "{\n    iVar3 = *(int *)this;\n    do {\n      iVar1 = (*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3);\n      if (iVar1 != 0) {\n        return param_2;\n      }\n      param_2 = param_2 + 1;\n    } while (param_2 != uVar2);\n  }" { (expression_statement "iVar3 = *(int *)this;" (assignment_expression "iVar3 = *(int *)this" identifier = (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (do_statement "do {\n      iVar1 = (*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3);\n      if (iVar1 != 0) {\n        return param_2;\n      }\n      param_2 = param_2 + 1;\n    } while (param_2 != uVar2);" do (compound_statement "{\n      iVar1 = (*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3);\n      if (iVar1 != 0) {\n        return param_2;\n      }\n      param_2 = param_2 + 1;\n    }" { (expression_statement "iVar1 = (*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3);" (assignment_expression "iVar1 = (*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3)" identifier = (call_expression "(*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3)" (parenthesized_expression "(*(code *)PTR_memchr_004366a8)" ( (pointer_expression "*(code *)PTR_memchr_004366a8" * (cast_expression "(code *)PTR_memchr_004366a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,(int)*(char *)(iVar3 + param_2),param_3)" ( identifier , (cast_expression "(int)*(char *)(iVar3 + param_2)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(char *)(iVar3 + param_2)" * (cast_expression "(char *)(iVar3 + param_2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + param_2)" ( (binary_expression "iVar3 + param_2" identifier + identifier) ))))) , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n        return param_2;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        return param_2;\n      }" { (return_statement "return param_2;" return identifier ;) })) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_2 != uVar2)" ( (binary_expression "param_2 != uVar2" identifier != identifier) )) ;) })) (return_statement "return 0xffffffff;" return number_literal ;) })))
(translation_unit "uint __thiscall std::string::find_first_of(string *this,char *param_1,uint param_2,uint param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  \n  if (param_3 == 0) {\n    return 0xffffffff;\n  }\n  uVar2 = *(uint *)(this + 4);\n  if (param_2 < uVar2) {\n    iVar3 = *(int *)this;\n    do {\n      iVar1 = (*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3);\n      if (iVar1 != 0) {\n        return param_2;\n      }\n      param_2 = param_2 + 1;\n    } while (param_2 != uVar2);\n  }\n  return 0xffffffff;\n}\n\n" (function_definition "uint __thiscall std::string::find_first_of(string *this,char *param_1,uint param_2,uint param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  \n  if (param_3 == 0) {\n    return 0xffffffff;\n  }\n  uVar2 = *(uint *)(this + 4);\n  if (param_2 < uVar2) {\n    iVar3 = *(int *)this;\n    do {\n      iVar1 = (*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3);\n      if (iVar1 != 0) {\n        return param_2;\n      }\n      param_2 = param_2 + 1;\n    } while (param_2 != uVar2);\n  }\n  return 0xffffffff;\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::string::" identifier : : identifier : :) (function_declarator "find_first_of(string *this,char *param_1,uint param_2,uint param_3)" identifier (parameter_list "(string *this,char *param_1,uint param_2,uint param_3)" ( (parameter_declaration "string *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  \n  if (param_3 == 0) {\n    return 0xffffffff;\n  }\n  uVar2 = *(uint *)(this + 4);\n  if (param_2 < uVar2) {\n    iVar3 = *(int *)this;\n    do {\n      iVar1 = (*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3);\n      if (iVar1 != 0) {\n        return param_2;\n      }\n      param_2 = param_2 + 1;\n    } while (param_2 != uVar2);\n  }\n  return 0xffffffff;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (param_3 == 0) {\n    return 0xffffffff;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0xffffffff;\n  }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (expression_statement "uVar2 = *(uint *)(this + 4);" (assignment_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) ))))) ;) (if_statement "if (param_2 < uVar2) {\n    iVar3 = *(int *)this;\n    do {\n      iVar1 = (*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3);\n      if (iVar1 != 0) {\n        return param_2;\n      }\n      param_2 = param_2 + 1;\n    } while (param_2 != uVar2);\n  }" if (parenthesized_expression "(param_2 < uVar2)" ( (binary_expression "param_2 < uVar2" identifier < identifier) )) (compound_statement "{\n    iVar3 = *(int *)this;\n    do {\n      iVar1 = (*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3);\n      if (iVar1 != 0) {\n        return param_2;\n      }\n      param_2 = param_2 + 1;\n    } while (param_2 != uVar2);\n  }" { (expression_statement "iVar3 = *(int *)this;" (assignment_expression "iVar3 = *(int *)this" identifier = (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (do_statement "do {\n      iVar1 = (*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3);\n      if (iVar1 != 0) {\n        return param_2;\n      }\n      param_2 = param_2 + 1;\n    } while (param_2 != uVar2);" do (compound_statement "{\n      iVar1 = (*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3);\n      if (iVar1 != 0) {\n        return param_2;\n      }\n      param_2 = param_2 + 1;\n    }" { (expression_statement "iVar1 = (*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3);" (assignment_expression "iVar1 = (*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3)" identifier = (call_expression "(*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3)" (parenthesized_expression "(*(code *)PTR_memchr_004366a8)" ( (pointer_expression "*(code *)PTR_memchr_004366a8" * (cast_expression "(code *)PTR_memchr_004366a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,(int)*(char *)(iVar3 + param_2),param_3)" ( identifier , (cast_expression "(int)*(char *)(iVar3 + param_2)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(char *)(iVar3 + param_2)" * (cast_expression "(char *)(iVar3 + param_2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + param_2)" ( (binary_expression "iVar3 + param_2" identifier + identifier) ))))) , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n        return param_2;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        return param_2;\n      }" { (return_statement "return param_2;" return identifier ;) })) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_2 != uVar2)" ( (binary_expression "param_2 != uVar2" identifier != identifier) )) ;) })) (return_statement "return 0xffffffff;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ms_call_modifier __thiscall) (ERROR IDENT : : IDENT : :) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (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 + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (do_statement do (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 , (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))))) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (return_statement return LIT ;) })))
(function_definition "uint __thiscall std::string::find_first_of(string *this,char *param_1,uint param_2,uint param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  \n  if (param_3 == 0) {\n    return 0xffffffff;\n  }\n  uVar2 = *(uint *)(this + 4);\n  if (param_2 < uVar2) {\n    iVar3 = *(int *)this;\n    do {\n      iVar1 = (*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3);\n      if (iVar1 != 0) {\n        return param_2;\n      }\n      param_2 = param_2 + 1;\n    } while (param_2 != uVar2);\n  }\n  return 0xffffffff;\n}" (type_identifier "uint") (ms_call_modifier "__thiscall" (__thiscall "__thiscall")) (ERROR "std::string::" (identifier "std") (: ":") (: ":") (identifier "string") (: ":") (: ":")) (function_declarator "find_first_of(string *this,char *param_1,uint param_2,uint param_3)" (identifier "find_first_of") (parameter_list "(string *this,char *param_1,uint param_2,uint param_3)" (( "(") (parameter_declaration "string *this" (type_identifier "string") (pointer_declarator "*this" (* "*") (identifier "this"))) (, ",") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  \n  if (param_3 == 0) {\n    return 0xffffffff;\n  }\n  uVar2 = *(uint *)(this + 4);\n  if (param_2 < uVar2) {\n    iVar3 = *(int *)this;\n    do {\n      iVar1 = (*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3);\n      if (iVar1 != 0) {\n        return param_2;\n      }\n      param_2 = param_2 + 1;\n    } while (param_2 != uVar2);\n  }\n  return 0xffffffff;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (if_statement "if (param_3 == 0) {\n    return 0xffffffff;\n  }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0xffffffff;\n  }" ({ "{") (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}"))) (expression_statement "uVar2 = *(uint *)(this + 4);" (assignment_expression "uVar2 = *(uint *)(this + 4)" (identifier "uVar2") (= "=") (pointer_expression "*(uint *)(this + 4)" (* "*") (cast_expression "(uint *)(this + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(this + 4)" (( "(") (binary_expression "this + 4" (identifier "this") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (param_2 < uVar2) {\n    iVar3 = *(int *)this;\n    do {\n      iVar1 = (*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3);\n      if (iVar1 != 0) {\n        return param_2;\n      }\n      param_2 = param_2 + 1;\n    } while (param_2 != uVar2);\n  }" (if "if") (parenthesized_expression "(param_2 < uVar2)" (( "(") (binary_expression "param_2 < uVar2" (identifier "param_2") (< "<") (identifier "uVar2")) () ")")) (compound_statement "{\n    iVar3 = *(int *)this;\n    do {\n      iVar1 = (*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3);\n      if (iVar1 != 0) {\n        return param_2;\n      }\n      param_2 = param_2 + 1;\n    } while (param_2 != uVar2);\n  }" ({ "{") (expression_statement "iVar3 = *(int *)this;" (assignment_expression "iVar3 = *(int *)this" (identifier "iVar3") (= "=") (pointer_expression "*(int *)this" (* "*") (cast_expression "(int *)this" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this")))) (; ";")) (do_statement "do {\n      iVar1 = (*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3);\n      if (iVar1 != 0) {\n        return param_2;\n      }\n      param_2 = param_2 + 1;\n    } while (param_2 != uVar2);" (do "do") (compound_statement "{\n      iVar1 = (*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3);\n      if (iVar1 != 0) {\n        return param_2;\n      }\n      param_2 = param_2 + 1;\n    }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3);" (assignment_expression "iVar1 = (*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3)" (parenthesized_expression "(*(code *)PTR_memchr_004366a8)" (( "(") (pointer_expression "*(code *)PTR_memchr_004366a8" (* "*") (cast_expression "(code *)PTR_memchr_004366a8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memchr_004366a8"))) () ")")) (argument_list "(param_1,(int)*(char *)(iVar3 + param_2),param_3)" (( "(") (identifier "param_1") (, ",") (cast_expression "(int)*(char *)(iVar3 + param_2)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*(char *)(iVar3 + param_2)" (* "*") (cast_expression "(char *)(iVar3 + param_2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + param_2)" (( "(") (binary_expression "iVar3 + param_2" (identifier "iVar3") (+ "+") (identifier "param_2")) () ")"))))) (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n        return param_2;\n      }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        return param_2;\n      }" ({ "{") (return_statement "return param_2;" (return "return") (identifier "param_2") (; ";")) (} "}"))) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" (identifier "param_2") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_2 != uVar2)" (( "(") (binary_expression "param_2 != uVar2" (identifier "param_2") (!= "!=") (identifier "uVar2")) () ")")) (; ";")) (} "}"))) (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) (ms_call_modifier) (ERROR (identifier) (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator 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: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (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: (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: (identifier))) 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: (identifier))))) (do_statement body: (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) (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (return_statement (number_literal)))))

/* std::string::MASKED(char const*, unsigned int, unsigned int) const */

uint __thiscall std::string::MASKED(string *this,char *param_1,uint param_2,uint param_3)

{
  int iVar1;
  uint uVar2;
  int iVar3;
  
  if (param_3 == 0) {
    return 0xffffffff;
  }
  uVar2 = *(uint *)(this + 4);
  if (param_2 < uVar2) {
    iVar3 = *(int *)this;
    do {
      iVar1 = (*(code *)PTR_memchr_004366a8)(param_1,(int)*(char *)(iVar3 + param_2),param_3);
      if (iVar1 != 0) {
        return param_2;
      }
      param_2 = param_2 + 1;
    } while (param_2 != uVar2);
  }
  return 0xffffffff;
}

