
size_t hash_pjw(void *x,size_t tablesize)

{
  char cVar1;
  uint uVar2;
  
                    /* WARNING: Load size is inaccurate */
  cVar1 = *x;
  if (cVar1 != '\0') {
    uVar2 = 0;
    do {
      x = (void *)((int)x + 1);
      uVar2 = (uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1;
                    /* WARNING: Load size is inaccurate */
      cVar1 = *x;
    } while (cVar1 != '\0');
    return uVar2 % tablesize;
  }
  return 0;
}



uint FUN_000182c0(char *param_1,uint param_2)

{
  char cVar1;
  uint uVar2;
  
  cVar1 = *param_1;
  if (cVar1 != '\0') {
    uVar2 = 0;
    do {
      param_1 = param_1 + 1;
      uVar2 = (uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1;
      cVar1 = *param_1;
    } while (cVar1 != '\0');
    return uVar2 % param_2;
  }
  return 0;
}


MOV EDX,dword ptr [ESP + 0x4]
MOVSX ECX,byte ptr [EDX]
TEST CL,CL
JZ 0x000182f0
XOR EAX,EAX
LEA ESI,[ESI]
ROL EAX,0x9
ADD EDX,0x1
ADD EAX,ECX
MOVSX ECX,byte ptr [EDX]
TEST CL,CL
JNZ 0x000182d0
XOR EDX,EDX
DIV dword ptr [ESP + 0x8]
MOV EAX,EDX
RET
XOR EDX,EDX
MOV EAX,EDX
RET
(translation_unit "uint FUN_000182c0(char *param_1,uint param_2)\n\n{\n  char cVar1;\n  uint uVar2;\n  \n  cVar1 = *param_1;\n  if (cVar1 != '\0') {\n    uVar2 = 0;\n    do {\n      param_1 = param_1 + 1;\n      uVar2 = (uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1;\n      cVar1 = *param_1;\n    } while (cVar1 != '\0');\n    return uVar2 % param_2;\n  }\n  return 0;\n}\n\n" (function_definition "uint FUN_000182c0(char *param_1,uint param_2)\n\n{\n  char cVar1;\n  uint uVar2;\n  \n  cVar1 = *param_1;\n  if (cVar1 != '\0') {\n    uVar2 = 0;\n    do {\n      param_1 = param_1 + 1;\n      uVar2 = (uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1;\n      cVar1 = *param_1;\n    } while (cVar1 != '\0');\n    return uVar2 % param_2;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_000182c0(char *param_1,uint param_2)" identifier (parameter_list "(char *param_1,uint param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  uint uVar2;\n  \n  cVar1 = *param_1;\n  if (cVar1 != '\0') {\n    uVar2 = 0;\n    do {\n      param_1 = param_1 + 1;\n      uVar2 = (uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1;\n      cVar1 = *param_1;\n    } while (cVar1 != '\0');\n    return uVar2 % param_2;\n  }\n  return 0;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (cVar1 != '\0') {\n    uVar2 = 0;\n    do {\n      param_1 = param_1 + 1;\n      uVar2 = (uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1;\n      cVar1 = *param_1;\n    } while (cVar1 != '\0');\n    return uVar2 % param_2;\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar2 = 0;\n    do {\n      param_1 = param_1 + 1;\n      uVar2 = (uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1;\n      cVar1 = *param_1;\n    } while (cVar1 != '\0');\n    return uVar2 % param_2;\n  }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n      param_1 = param_1 + 1;\n      uVar2 = (uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1;\n      cVar1 = *param_1;\n    } while (cVar1 != '\0');" do (compound_statement "{\n      param_1 = param_1 + 1;\n      uVar2 = (uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1;\n      cVar1 = *param_1;\n    }" { (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "uVar2 = (uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1;" (assignment_expression "uVar2 = (uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1" identifier = (binary_expression "(uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1" (parenthesized_expression "(uVar2 << 9 | uVar2 >> 0x17)" ( (binary_expression "uVar2 << 9 | uVar2 >> 0x17" (binary_expression "uVar2 << 9" identifier << number_literal) | (binary_expression "uVar2 >> 0x17" identifier >> number_literal)) )) + (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (return_statement "return uVar2 % param_2;" return (binary_expression "uVar2 % param_2" identifier % identifier) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "size_t hash_pjw(void *x,size_t tablesize)\n\n{\n  char cVar1;\n  uint uVar2;\n  \n                    /* WARNING: Load size is inaccurate */\n  cVar1 = *x;\n  if (cVar1 != '\0') {\n    uVar2 = 0;\n    do {\n      x = (void *)((int)x + 1);\n      uVar2 = (uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1;\n                    /* WARNING: Load size is inaccurate */\n      cVar1 = *x;\n    } while (cVar1 != '\0');\n    return uVar2 % tablesize;\n  }\n  return 0;\n}\n\n" (function_definition "size_t hash_pjw(void *x,size_t tablesize)\n\n{\n  char cVar1;\n  uint uVar2;\n  \n                    /* WARNING: Load size is inaccurate */\n  cVar1 = *x;\n  if (cVar1 != '\0') {\n    uVar2 = 0;\n    do {\n      x = (void *)((int)x + 1);\n      uVar2 = (uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1;\n                    /* WARNING: Load size is inaccurate */\n      cVar1 = *x;\n    } while (cVar1 != '\0');\n    return uVar2 % tablesize;\n  }\n  return 0;\n}" primitive_type (function_declarator "hash_pjw(void *x,size_t tablesize)" identifier (parameter_list "(void *x,size_t tablesize)" ( (parameter_declaration "void *x" primitive_type (pointer_declarator "*x" * identifier)) , (parameter_declaration "size_t tablesize" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  uint uVar2;\n  \n                    /* WARNING: Load size is inaccurate */\n  cVar1 = *x;\n  if (cVar1 != '\0') {\n    uVar2 = 0;\n    do {\n      x = (void *)((int)x + 1);\n      uVar2 = (uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1;\n                    /* WARNING: Load size is inaccurate */\n      cVar1 = *x;\n    } while (cVar1 != '\0');\n    return uVar2 % tablesize;\n  }\n  return 0;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) comment (expression_statement "cVar1 = *x;" (assignment_expression "cVar1 = *x" identifier = (pointer_expression "*x" * identifier)) ;) (if_statement "if (cVar1 != '\0') {\n    uVar2 = 0;\n    do {\n      x = (void *)((int)x + 1);\n      uVar2 = (uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1;\n                    /* WARNING: Load size is inaccurate */\n      cVar1 = *x;\n    } while (cVar1 != '\0');\n    return uVar2 % tablesize;\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar2 = 0;\n    do {\n      x = (void *)((int)x + 1);\n      uVar2 = (uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1;\n                    /* WARNING: Load size is inaccurate */\n      cVar1 = *x;\n    } while (cVar1 != '\0');\n    return uVar2 % tablesize;\n  }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n      x = (void *)((int)x + 1);\n      uVar2 = (uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1;\n                    /* WARNING: Load size is inaccurate */\n      cVar1 = *x;\n    } while (cVar1 != '\0');" do (compound_statement "{\n      x = (void *)((int)x + 1);\n      uVar2 = (uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1;\n                    /* WARNING: Load size is inaccurate */\n      cVar1 = *x;\n    }" { (expression_statement "x = (void *)((int)x + 1);" (assignment_expression "x = (void *)((int)x + 1)" identifier = (cast_expression "(void *)((int)x + 1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)x + 1)" ( (binary_expression "(int)x + 1" (cast_expression "(int)x" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "uVar2 = (uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1;" (assignment_expression "uVar2 = (uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1" identifier = (binary_expression "(uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1" (parenthesized_expression "(uVar2 << 9 | uVar2 >> 0x17)" ( (binary_expression "uVar2 << 9 | uVar2 >> 0x17" (binary_expression "uVar2 << 9" identifier << number_literal) | (binary_expression "uVar2 >> 0x17" identifier >> number_literal)) )) + (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) comment (expression_statement "cVar1 = *x;" (assignment_expression "cVar1 = *x" identifier = (pointer_expression "*x" * identifier)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (return_statement "return uVar2 % tablesize;" return (binary_expression "uVar2 % tablesize" identifier % identifier) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "uint FUN_000182c0(char *param_1,uint param_2)\n\n{\n  char cVar1;\n  uint uVar2;\n  \n  cVar1 = *param_1;\n  if (cVar1 != '\0') {\n    uVar2 = 0;\n    do {\n      param_1 = param_1 + 1;\n      uVar2 = (uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1;\n      cVar1 = *param_1;\n    } while (cVar1 != '\0');\n    return uVar2 % param_2;\n  }\n  return 0;\n}\n\n" (function_definition "uint FUN_000182c0(char *param_1,uint param_2)\n\n{\n  char cVar1;\n  uint uVar2;\n  \n  cVar1 = *param_1;\n  if (cVar1 != '\0') {\n    uVar2 = 0;\n    do {\n      param_1 = param_1 + 1;\n      uVar2 = (uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1;\n      cVar1 = *param_1;\n    } while (cVar1 != '\0');\n    return uVar2 % param_2;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_000182c0(char *param_1,uint param_2)" identifier (parameter_list "(char *param_1,uint param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  uint uVar2;\n  \n  cVar1 = *param_1;\n  if (cVar1 != '\0') {\n    uVar2 = 0;\n    do {\n      param_1 = param_1 + 1;\n      uVar2 = (uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1;\n      cVar1 = *param_1;\n    } while (cVar1 != '\0');\n    return uVar2 % param_2;\n  }\n  return 0;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (cVar1 != '\0') {\n    uVar2 = 0;\n    do {\n      param_1 = param_1 + 1;\n      uVar2 = (uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1;\n      cVar1 = *param_1;\n    } while (cVar1 != '\0');\n    return uVar2 % param_2;\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar2 = 0;\n    do {\n      param_1 = param_1 + 1;\n      uVar2 = (uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1;\n      cVar1 = *param_1;\n    } while (cVar1 != '\0');\n    return uVar2 % param_2;\n  }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n      param_1 = param_1 + 1;\n      uVar2 = (uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1;\n      cVar1 = *param_1;\n    } while (cVar1 != '\0');" do (compound_statement "{\n      param_1 = param_1 + 1;\n      uVar2 = (uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1;\n      cVar1 = *param_1;\n    }" { (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "uVar2 = (uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1;" (assignment_expression "uVar2 = (uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1" identifier = (binary_expression "(uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1" (parenthesized_expression "(uVar2 << 9 | uVar2 >> 0x17)" ( (binary_expression "uVar2 << 9 | uVar2 >> 0x17" (binary_expression "uVar2 << 9" identifier << number_literal) | (binary_expression "uVar2 >> 0x17" identifier >> number_literal)) )) + (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (return_statement "return uVar2 % param_2;" return (binary_expression "uVar2 % param_2" identifier % identifier) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT << LIT) | (binary_expression IDENT >> LIT)) )) + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) ;) (return_statement return (binary_expression IDENT % IDENT) ;) })) (return_statement return LIT ;) })))
(function_definition "uint FUN_000182c0(char *param_1,uint param_2)\n\n{\n  char cVar1;\n  uint uVar2;\n  \n  cVar1 = *param_1;\n  if (cVar1 != '\0') {\n    uVar2 = 0;\n    do {\n      param_1 = param_1 + 1;\n      uVar2 = (uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1;\n      cVar1 = *param_1;\n    } while (cVar1 != '\0');\n    return uVar2 % param_2;\n  }\n  return 0;\n}" (type_identifier "uint") (function_declarator "FUN_000182c0(char *param_1,uint param_2)" (identifier "FUN_000182c0") (parameter_list "(char *param_1,uint param_2)" (( "(") (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")) () ")"))) (compound_statement "{\n  char cVar1;\n  uint uVar2;\n  \n  cVar1 = *param_1;\n  if (cVar1 != '\0') {\n    uVar2 = 0;\n    do {\n      param_1 = param_1 + 1;\n      uVar2 = (uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1;\n      cVar1 = *param_1;\n    } while (cVar1 != '\0');\n    return uVar2 % param_2;\n  }\n  return 0;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" (identifier "cVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (cVar1 != '\0') {\n    uVar2 = 0;\n    do {\n      param_1 = param_1 + 1;\n      uVar2 = (uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1;\n      cVar1 = *param_1;\n    } while (cVar1 != '\0');\n    return uVar2 % param_2;\n  }" (if "if") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    uVar2 = 0;\n    do {\n      param_1 = param_1 + 1;\n      uVar2 = (uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1;\n      cVar1 = *param_1;\n    } while (cVar1 != '\0');\n    return uVar2 % param_2;\n  }" ({ "{") (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      param_1 = param_1 + 1;\n      uVar2 = (uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1;\n      cVar1 = *param_1;\n    } while (cVar1 != '\0');" (do "do") (compound_statement "{\n      param_1 = param_1 + 1;\n      uVar2 = (uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1;\n      cVar1 = *param_1;\n    }" ({ "{") (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar2 = (uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1;" (assignment_expression "uVar2 = (uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1" (identifier "uVar2") (= "=") (binary_expression "(uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1" (parenthesized_expression "(uVar2 << 9 | uVar2 >> 0x17)" (( "(") (binary_expression "uVar2 << 9 | uVar2 >> 0x17" (binary_expression "uVar2 << 9" (identifier "uVar2") (<< "<<") (number_literal "9")) (| "|") (binary_expression "uVar2 >> 0x17" (identifier "uVar2") (>> ">>") (number_literal "0x17"))) () ")")) (+ "+") (cast_expression "(int)cVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "cVar1")))) (; ";")) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" (identifier "cVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (return_statement "return uVar2 % param_2;" (return "return") (binary_expression "uVar2 % param_2" (identifier "uVar2") (% "%") (identifier "param_2")) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

size_t function_1(void *x,size_t var_3)

{
  char var_1;
  type_1 var_2;
  
                    /* WARNING: Load size is inaccurate */
  var_1 = *x;
  if (var_1 != '\0') {
    var_2 = 0;
    do {
      x = (void *)((int)x + 1);
      var_2 = (var_2 << 9 | var_2 >> 0x17) + (int)var_1;
                    /* WARNING: Load size is inaccurate */
      var_1 = *x;
    } while (var_1 != '\0');
    return var_2 % var_3;
  }
  return 0;
}


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

uint MASKED(char *param_1,uint param_2)

{
  char cVar1;
  uint uVar2;
  
  cVar1 = *param_1;
  if (cVar1 != '\0') {
    uVar2 = 0;
    do {
      param_1 = param_1 + 1;
      uVar2 = (uVar2 << 9 | uVar2 >> 0x17) + (int)cVar1;
      cVar1 = *param_1;
    } while (cVar1 != '\0');
    return uVar2 % param_2;
  }
  return 0;
}

