
int fts3BinHash(void *pKey,int nKey)

{
  uint uVar1;
  char *z;
  char *pcVar2;
  char *pcVar3;
  
  if (0 < nKey) {
    uVar1 = 0;
    pcVar3 = (char *)pKey;
    do {
      pcVar2 = pcVar3 + 1;
      uVar1 = uVar1 ^ uVar1 << 3 ^ (int)*pcVar3;
      pcVar3 = pcVar2;
    } while (pcVar2 != (char *)((int)pKey + nKey));
    return uVar1 & 0x7fffffff;
  }
  return 0;
}



uint FUN_0004543c(char *param_1,int param_2)

{
  uint uVar1;
  char *pcVar2;
  char *pcVar3;
  
  if (0 < param_2) {
    uVar1 = 0;
    pcVar3 = param_1;
    do {
      pcVar2 = pcVar3 + 1;
      uVar1 = uVar1 ^ uVar1 << 3 ^ (int)*pcVar3;
      pcVar3 = pcVar2;
    } while (pcVar2 != param_1 + param_2);
    return uVar1 & 0x7fffffff;
  }
  return 0;
}


blez a1,0x00045468
_addu a1,a0,a1
or v0,zero,zero
addiu a0,a0,0x1
lb a2,-0x1(a0)
sll v1,v0,0x3
xor v1,v1,a2
bne a0,a1,0x00045448
_xor v0,v0,v1
jr ra
_ext v0,v0,0x0,0x1f
jr ra
_or v0,zero,zero
(translation_unit "uint FUN_0004543c(char *param_1,int param_2)\n\n{\n  uint uVar1;\n  char *pcVar2;\n  char *pcVar3;\n  \n  if (0 < param_2) {\n    uVar1 = 0;\n    pcVar3 = param_1;\n    do {\n      pcVar2 = pcVar3 + 1;\n      uVar1 = uVar1 ^ uVar1 << 3 ^ (int)*pcVar3;\n      pcVar3 = pcVar2;\n    } while (pcVar2 != param_1 + param_2);\n    return uVar1 & 0x7fffffff;\n  }\n  return 0;\n}\n\n" (function_definition "uint FUN_0004543c(char *param_1,int param_2)\n\n{\n  uint uVar1;\n  char *pcVar2;\n  char *pcVar3;\n  \n  if (0 < param_2) {\n    uVar1 = 0;\n    pcVar3 = param_1;\n    do {\n      pcVar2 = pcVar3 + 1;\n      uVar1 = uVar1 ^ uVar1 << 3 ^ (int)*pcVar3;\n      pcVar3 = pcVar2;\n    } while (pcVar2 != param_1 + param_2);\n    return uVar1 & 0x7fffffff;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0004543c(char *param_1,int param_2)" identifier (parameter_list "(char *param_1,int param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  char *pcVar2;\n  char *pcVar3;\n  \n  if (0 < param_2) {\n    uVar1 = 0;\n    pcVar3 = param_1;\n    do {\n      pcVar2 = pcVar3 + 1;\n      uVar1 = uVar1 ^ uVar1 << 3 ^ (int)*pcVar3;\n      pcVar3 = pcVar2;\n    } while (pcVar2 != param_1 + param_2);\n    return uVar1 & 0x7fffffff;\n  }\n  return 0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (if_statement "if (0 < param_2) {\n    uVar1 = 0;\n    pcVar3 = param_1;\n    do {\n      pcVar2 = pcVar3 + 1;\n      uVar1 = uVar1 ^ uVar1 << 3 ^ (int)*pcVar3;\n      pcVar3 = pcVar2;\n    } while (pcVar2 != param_1 + param_2);\n    return uVar1 & 0x7fffffff;\n  }" if (parenthesized_expression "(0 < param_2)" ( (binary_expression "0 < param_2" number_literal < identifier) )) (compound_statement "{\n    uVar1 = 0;\n    pcVar3 = param_1;\n    do {\n      pcVar2 = pcVar3 + 1;\n      uVar1 = uVar1 ^ uVar1 << 3 ^ (int)*pcVar3;\n      pcVar3 = pcVar2;\n    } while (pcVar2 != param_1 + param_2);\n    return uVar1 & 0x7fffffff;\n  }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (expression_statement "pcVar3 = param_1;" (assignment_expression "pcVar3 = param_1" identifier = identifier) ;) (do_statement "do {\n      pcVar2 = pcVar3 + 1;\n      uVar1 = uVar1 ^ uVar1 << 3 ^ (int)*pcVar3;\n      pcVar3 = pcVar2;\n    } while (pcVar2 != param_1 + param_2);" do (compound_statement "{\n      pcVar2 = pcVar3 + 1;\n      uVar1 = uVar1 ^ uVar1 << 3 ^ (int)*pcVar3;\n      pcVar3 = pcVar2;\n    }" { (expression_statement "pcVar2 = pcVar3 + 1;" (assignment_expression "pcVar2 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (expression_statement "uVar1 = uVar1 ^ uVar1 << 3 ^ (int)*pcVar3;" (assignment_expression "uVar1 = uVar1 ^ uVar1 << 3 ^ (int)*pcVar3" identifier = (binary_expression "uVar1 ^ uVar1 << 3 ^ (int)*pcVar3" (binary_expression "uVar1 ^ uVar1 << 3" identifier ^ (binary_expression "uVar1 << 3" identifier << number_literal)) ^ (cast_expression "(int)*pcVar3" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*pcVar3" * identifier)))) ;) (expression_statement "pcVar3 = pcVar2;" (assignment_expression "pcVar3 = pcVar2" identifier = identifier) ;) }) while (parenthesized_expression "(pcVar2 != param_1 + param_2)" ( (binary_expression "pcVar2 != param_1 + param_2" identifier != (binary_expression "param_1 + param_2" identifier + identifier)) )) ;) (return_statement "return uVar1 & 0x7fffffff;" return (binary_expression "uVar1 & 0x7fffffff" identifier & number_literal) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int fts3BinHash(void *pKey,int nKey)\n\n{\n  uint uVar1;\n  char *z;\n  char *pcVar2;\n  char *pcVar3;\n  \n  if (0 < nKey) {\n    uVar1 = 0;\n    pcVar3 = (char *)pKey;\n    do {\n      pcVar2 = pcVar3 + 1;\n      uVar1 = uVar1 ^ uVar1 << 3 ^ (int)*pcVar3;\n      pcVar3 = pcVar2;\n    } while (pcVar2 != (char *)((int)pKey + nKey));\n    return uVar1 & 0x7fffffff;\n  }\n  return 0;\n}\n\n" (function_definition "int fts3BinHash(void *pKey,int nKey)\n\n{\n  uint uVar1;\n  char *z;\n  char *pcVar2;\n  char *pcVar3;\n  \n  if (0 < nKey) {\n    uVar1 = 0;\n    pcVar3 = (char *)pKey;\n    do {\n      pcVar2 = pcVar3 + 1;\n      uVar1 = uVar1 ^ uVar1 << 3 ^ (int)*pcVar3;\n      pcVar3 = pcVar2;\n    } while (pcVar2 != (char *)((int)pKey + nKey));\n    return uVar1 & 0x7fffffff;\n  }\n  return 0;\n}" primitive_type (function_declarator "fts3BinHash(void *pKey,int nKey)" identifier (parameter_list "(void *pKey,int nKey)" ( (parameter_declaration "void *pKey" primitive_type (pointer_declarator "*pKey" * identifier)) , (parameter_declaration "int nKey" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  char *z;\n  char *pcVar2;\n  char *pcVar3;\n  \n  if (0 < nKey) {\n    uVar1 = 0;\n    pcVar3 = (char *)pKey;\n    do {\n      pcVar2 = pcVar3 + 1;\n      uVar1 = uVar1 ^ uVar1 << 3 ^ (int)*pcVar3;\n      pcVar3 = pcVar2;\n    } while (pcVar2 != (char *)((int)pKey + nKey));\n    return uVar1 & 0x7fffffff;\n  }\n  return 0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "char *z;" primitive_type (pointer_declarator "*z" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (if_statement "if (0 < nKey) {\n    uVar1 = 0;\n    pcVar3 = (char *)pKey;\n    do {\n      pcVar2 = pcVar3 + 1;\n      uVar1 = uVar1 ^ uVar1 << 3 ^ (int)*pcVar3;\n      pcVar3 = pcVar2;\n    } while (pcVar2 != (char *)((int)pKey + nKey));\n    return uVar1 & 0x7fffffff;\n  }" if (parenthesized_expression "(0 < nKey)" ( (binary_expression "0 < nKey" number_literal < identifier) )) (compound_statement "{\n    uVar1 = 0;\n    pcVar3 = (char *)pKey;\n    do {\n      pcVar2 = pcVar3 + 1;\n      uVar1 = uVar1 ^ uVar1 << 3 ^ (int)*pcVar3;\n      pcVar3 = pcVar2;\n    } while (pcVar2 != (char *)((int)pKey + nKey));\n    return uVar1 & 0x7fffffff;\n  }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (expression_statement "pcVar3 = (char *)pKey;" (assignment_expression "pcVar3 = (char *)pKey" identifier = (cast_expression "(char *)pKey" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (do_statement "do {\n      pcVar2 = pcVar3 + 1;\n      uVar1 = uVar1 ^ uVar1 << 3 ^ (int)*pcVar3;\n      pcVar3 = pcVar2;\n    } while (pcVar2 != (char *)((int)pKey + nKey));" do (compound_statement "{\n      pcVar2 = pcVar3 + 1;\n      uVar1 = uVar1 ^ uVar1 << 3 ^ (int)*pcVar3;\n      pcVar3 = pcVar2;\n    }" { (expression_statement "pcVar2 = pcVar3 + 1;" (assignment_expression "pcVar2 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (expression_statement "uVar1 = uVar1 ^ uVar1 << 3 ^ (int)*pcVar3;" (assignment_expression "uVar1 = uVar1 ^ uVar1 << 3 ^ (int)*pcVar3" identifier = (binary_expression "uVar1 ^ uVar1 << 3 ^ (int)*pcVar3" (binary_expression "uVar1 ^ uVar1 << 3" identifier ^ (binary_expression "uVar1 << 3" identifier << number_literal)) ^ (cast_expression "(int)*pcVar3" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*pcVar3" * identifier)))) ;) (expression_statement "pcVar3 = pcVar2;" (assignment_expression "pcVar3 = pcVar2" identifier = identifier) ;) }) while (parenthesized_expression "(pcVar2 != (char *)((int)pKey + nKey))" ( (binary_expression "pcVar2 != (char *)((int)pKey + nKey)" identifier != (cast_expression "(char *)((int)pKey + nKey)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pKey + nKey)" ( (binary_expression "(int)pKey + nKey" (cast_expression "(int)pKey" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) )) ;) (return_statement "return uVar1 & 0x7fffffff;" return (binary_expression "uVar1 & 0x7fffffff" identifier & number_literal) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "uint FUN_0004543c(char *param_1,int param_2)\n\n{\n  uint uVar1;\n  char *pcVar2;\n  char *pcVar3;\n  \n  if (0 < param_2) {\n    uVar1 = 0;\n    pcVar3 = param_1;\n    do {\n      pcVar2 = pcVar3 + 1;\n      uVar1 = uVar1 ^ uVar1 << 3 ^ (int)*pcVar3;\n      pcVar3 = pcVar2;\n    } while (pcVar2 != param_1 + param_2);\n    return uVar1 & 0x7fffffff;\n  }\n  return 0;\n}\n\n" (function_definition "uint FUN_0004543c(char *param_1,int param_2)\n\n{\n  uint uVar1;\n  char *pcVar2;\n  char *pcVar3;\n  \n  if (0 < param_2) {\n    uVar1 = 0;\n    pcVar3 = param_1;\n    do {\n      pcVar2 = pcVar3 + 1;\n      uVar1 = uVar1 ^ uVar1 << 3 ^ (int)*pcVar3;\n      pcVar3 = pcVar2;\n    } while (pcVar2 != param_1 + param_2);\n    return uVar1 & 0x7fffffff;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0004543c(char *param_1,int param_2)" identifier (parameter_list "(char *param_1,int param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  char *pcVar2;\n  char *pcVar3;\n  \n  if (0 < param_2) {\n    uVar1 = 0;\n    pcVar3 = param_1;\n    do {\n      pcVar2 = pcVar3 + 1;\n      uVar1 = uVar1 ^ uVar1 << 3 ^ (int)*pcVar3;\n      pcVar3 = pcVar2;\n    } while (pcVar2 != param_1 + param_2);\n    return uVar1 & 0x7fffffff;\n  }\n  return 0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (if_statement "if (0 < param_2) {\n    uVar1 = 0;\n    pcVar3 = param_1;\n    do {\n      pcVar2 = pcVar3 + 1;\n      uVar1 = uVar1 ^ uVar1 << 3 ^ (int)*pcVar3;\n      pcVar3 = pcVar2;\n    } while (pcVar2 != param_1 + param_2);\n    return uVar1 & 0x7fffffff;\n  }" if (parenthesized_expression "(0 < param_2)" ( (binary_expression "0 < param_2" number_literal < identifier) )) (compound_statement "{\n    uVar1 = 0;\n    pcVar3 = param_1;\n    do {\n      pcVar2 = pcVar3 + 1;\n      uVar1 = uVar1 ^ uVar1 << 3 ^ (int)*pcVar3;\n      pcVar3 = pcVar2;\n    } while (pcVar2 != param_1 + param_2);\n    return uVar1 & 0x7fffffff;\n  }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (expression_statement "pcVar3 = param_1;" (assignment_expression "pcVar3 = param_1" identifier = identifier) ;) (do_statement "do {\n      pcVar2 = pcVar3 + 1;\n      uVar1 = uVar1 ^ uVar1 << 3 ^ (int)*pcVar3;\n      pcVar3 = pcVar2;\n    } while (pcVar2 != param_1 + param_2);" do (compound_statement "{\n      pcVar2 = pcVar3 + 1;\n      uVar1 = uVar1 ^ uVar1 << 3 ^ (int)*pcVar3;\n      pcVar3 = pcVar2;\n    }" { (expression_statement "pcVar2 = pcVar3 + 1;" (assignment_expression "pcVar2 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (expression_statement "uVar1 = uVar1 ^ uVar1 << 3 ^ (int)*pcVar3;" (assignment_expression "uVar1 = uVar1 ^ uVar1 << 3 ^ (int)*pcVar3" identifier = (binary_expression "uVar1 ^ uVar1 << 3 ^ (int)*pcVar3" (binary_expression "uVar1 ^ uVar1 << 3" identifier ^ (binary_expression "uVar1 << 3" identifier << number_literal)) ^ (cast_expression "(int)*pcVar3" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*pcVar3" * identifier)))) ;) (expression_statement "pcVar3 = pcVar2;" (assignment_expression "pcVar3 = pcVar2" identifier = identifier) ;) }) while (parenthesized_expression "(pcVar2 != param_1 + param_2)" ( (binary_expression "pcVar2 != param_1 + param_2" identifier != (binary_expression "param_1 + param_2" identifier + identifier)) )) ;) (return_statement "return uVar1 & 0x7fffffff;" return (binary_expression "uVar1 & 0x7fffffff" identifier & number_literal) ;) })) (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 (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT ^ (binary_expression IDENT << LIT)) ^ (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT)))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (binary_expression IDENT + IDENT)) )) ;) (return_statement return (binary_expression IDENT & LIT) ;) })) (return_statement return LIT ;) })))
(function_definition "uint FUN_0004543c(char *param_1,int param_2)\n\n{\n  uint uVar1;\n  char *pcVar2;\n  char *pcVar3;\n  \n  if (0 < param_2) {\n    uVar1 = 0;\n    pcVar3 = param_1;\n    do {\n      pcVar2 = pcVar3 + 1;\n      uVar1 = uVar1 ^ uVar1 << 3 ^ (int)*pcVar3;\n      pcVar3 = pcVar2;\n    } while (pcVar2 != param_1 + param_2);\n    return uVar1 & 0x7fffffff;\n  }\n  return 0;\n}" (type_identifier "uint") (function_declarator "FUN_0004543c(char *param_1,int param_2)" (identifier "FUN_0004543c") (parameter_list "(char *param_1,int param_2)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  uint uVar1;\n  char *pcVar2;\n  char *pcVar3;\n  \n  if (0 < param_2) {\n    uVar1 = 0;\n    pcVar3 = param_1;\n    do {\n      pcVar2 = pcVar3 + 1;\n      uVar1 = uVar1 ^ uVar1 << 3 ^ (int)*pcVar3;\n      pcVar3 = pcVar2;\n    } while (pcVar2 != param_1 + param_2);\n    return uVar1 & 0x7fffffff;\n  }\n  return 0;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (if_statement "if (0 < param_2) {\n    uVar1 = 0;\n    pcVar3 = param_1;\n    do {\n      pcVar2 = pcVar3 + 1;\n      uVar1 = uVar1 ^ uVar1 << 3 ^ (int)*pcVar3;\n      pcVar3 = pcVar2;\n    } while (pcVar2 != param_1 + param_2);\n    return uVar1 & 0x7fffffff;\n  }" (if "if") (parenthesized_expression "(0 < param_2)" (( "(") (binary_expression "0 < param_2" (number_literal "0") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n    uVar1 = 0;\n    pcVar3 = param_1;\n    do {\n      pcVar2 = pcVar3 + 1;\n      uVar1 = uVar1 ^ uVar1 << 3 ^ (int)*pcVar3;\n      pcVar3 = pcVar2;\n    } while (pcVar2 != param_1 + param_2);\n    return uVar1 & 0x7fffffff;\n  }" ({ "{") (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (expression_statement "pcVar3 = param_1;" (assignment_expression "pcVar3 = param_1" (identifier "pcVar3") (= "=") (identifier "param_1")) (; ";")) (do_statement "do {\n      pcVar2 = pcVar3 + 1;\n      uVar1 = uVar1 ^ uVar1 << 3 ^ (int)*pcVar3;\n      pcVar3 = pcVar2;\n    } while (pcVar2 != param_1 + param_2);" (do "do") (compound_statement "{\n      pcVar2 = pcVar3 + 1;\n      uVar1 = uVar1 ^ uVar1 << 3 ^ (int)*pcVar3;\n      pcVar3 = pcVar2;\n    }" ({ "{") (expression_statement "pcVar2 = pcVar3 + 1;" (assignment_expression "pcVar2 = pcVar3 + 1" (identifier "pcVar2") (= "=") (binary_expression "pcVar3 + 1" (identifier "pcVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar1 = uVar1 ^ uVar1 << 3 ^ (int)*pcVar3;" (assignment_expression "uVar1 = uVar1 ^ uVar1 << 3 ^ (int)*pcVar3" (identifier "uVar1") (= "=") (binary_expression "uVar1 ^ uVar1 << 3 ^ (int)*pcVar3" (binary_expression "uVar1 ^ uVar1 << 3" (identifier "uVar1") (^ "^") (binary_expression "uVar1 << 3" (identifier "uVar1") (<< "<<") (number_literal "3"))) (^ "^") (cast_expression "(int)*pcVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3"))))) (; ";")) (expression_statement "pcVar3 = pcVar2;" (assignment_expression "pcVar3 = pcVar2" (identifier "pcVar3") (= "=") (identifier "pcVar2")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pcVar2 != param_1 + param_2)" (( "(") (binary_expression "pcVar2 != param_1 + param_2" (identifier "pcVar2") (!= "!=") (binary_expression "param_1 + param_2" (identifier "param_1") (+ "+") (identifier "param_2"))) () ")")) (; ";")) (return_statement "return uVar1 & 0x7fffffff;" (return "return") (binary_expression "uVar1 & 0x7fffffff" (identifier "uVar1") (& "&") (number_literal "0x7fffffff")) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int function_1(void *pKey,int var_1)

{
  type_1 var_3;
  char *z;
  char *var_4;
  char *var_2;
  
  if (0 < var_1) {
    var_3 = 0;
    var_2 = (char *)pKey;
    do {
      var_4 = var_2 + 1;
      var_3 = var_3 ^ var_3 << 3 ^ (int)*var_2;
      var_2 = var_4;
    } while (var_4 != (char *)((int)pKey + var_1));
    return var_3 & 0x7fffffff;
  }
  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: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (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: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) (return_statement (binary_expression left: (identifier) right: (number_literal))))) (return_statement (number_literal)))))

uint MASKED(char *param_1,int param_2)

{
  uint uVar1;
  char *pcVar2;
  char *pcVar3;
  
  if (0 < param_2) {
    uVar1 = 0;
    pcVar3 = param_1;
    do {
      pcVar2 = pcVar3 + 1;
      uVar1 = uVar1 ^ uVar1 << 3 ^ (int)*pcVar3;
      pcVar3 = pcVar2;
    } while (pcVar2 != param_1 + param_2);
    return uVar1 & 0x7fffffff;
  }
  return 0;
}

