
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: hash_entry * hash_lookup(hash_control * table, char * key, size_t len,
   hash_entry * * * plist, ulong * phash, hash_control * table) */

hash_entry * __regparm3
hash_lookup(hash_control *table,char *key,size_t len,hash_entry ***plist,ulong *phash,
           hash_control *table_1)

{
  hash_entry **pphVar1;
  char cVar2;
  int iVar3;
  hash_entry *phVar4;
  char *pcVar5;
  hash_entry *phVar6;
  hash_entry *phVar7;
  uint uVar8;
  hash_entry **pphVar9;
  
  if (plist == (hash_entry ***)0x0) {
    uVar8 = 0;
  }
  else {
    uVar8 = 0;
    pcVar5 = (char *)len;
    do {
      cVar2 = *pcVar5;
      pcVar5 = pcVar5 + 1;
      uVar8 = uVar8 + cVar2 * 0x20001;
      uVar8 = uVar8 ^ uVar8 >> 2;
    } while ((char *)((int)plist + len) != pcVar5);
  }
  uVar8 = uVar8 + (int)plist * 0x20001;
  pphVar9 = (hash_entry **)(uVar8 ^ uVar8 >> 2);
  if (table_1 != (hash_control *)0x0) {
    table_1->table = pphVar9;
  }
  pphVar1 = table->table + (uint)pphVar9 % *(uint *)key;
  if (phash != (ulong *)0x0) {
    *phash = (ulong)pphVar1;
  }
  if (*pphVar1 == (hash_entry *)0x0) {
    phVar4 = (hash_entry *)0x0;
  }
  else {
    phVar6 = (hash_entry *)0x0;
    phVar7 = *pphVar1;
    do {
      if (pphVar9 == (hash_entry **)phVar7->hash) {
        pcVar5 = phVar7->string;
        iVar3 = strncmp(pcVar5,(char *)len,(size_t)plist);
        if ((iVar3 == 0) && (pcVar5[(int)plist] == '\0')) {
          if (phVar6 == (hash_entry *)0x0) {
            return phVar7;
          }
          phVar6->next = phVar7->next;
          phVar7->next = *pphVar1;
          *pphVar1 = phVar7;
          return phVar7;
        }
      }
      phVar4 = phVar7->next;
      phVar6 = phVar7;
      phVar7 = phVar4;
    } while (phVar4 != (hash_entry *)0x0);
  }
  return phVar4;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int * __regparm3
FUN_00024fd0(int *param_1,uint *param_2,char *param_3,size_t param_4,int *param_5,uint *param_6)

{
  int *piVar1;
  char cVar2;
  int iVar3;
  int *piVar4;
  char *pcVar5;
  int *piVar6;
  int *piVar7;
  uint uVar8;
  
  if (param_4 == 0) {
    uVar8 = 0;
  }
  else {
    uVar8 = 0;
    pcVar5 = param_3;
    do {
      cVar2 = *pcVar5;
      pcVar5 = pcVar5 + 1;
      uVar8 = uVar8 + cVar2 * 0x20001;
      uVar8 = uVar8 ^ uVar8 >> 2;
    } while (param_3 + param_4 != pcVar5);
  }
  uVar8 = uVar8 + param_4 * 0x20001;
  uVar8 = uVar8 ^ uVar8 >> 2;
  if (param_6 != (uint *)0x0) {
    *param_6 = uVar8;
  }
  piVar1 = (int *)(*param_1 + (uVar8 % *param_2) * 4);
  if (param_5 != (int *)0x0) {
    *param_5 = (int)piVar1;
  }
  if ((int *)*piVar1 == (int *)0x0) {
    piVar4 = (int *)0x0;
  }
  else {
    piVar6 = (int *)0x0;
    piVar7 = (int *)*piVar1;
    do {
      if (uVar8 == piVar7[2]) {
        pcVar5 = (char *)piVar7[1];
        iVar3 = strncmp(pcVar5,param_3,param_4);
        if ((iVar3 == 0) && (pcVar5[param_4] == '\0')) {
          if (piVar6 == (int *)0x0) {
            return piVar7;
          }
          *piVar6 = *piVar7;
          *piVar7 = *piVar1;
          *piVar1 = (int)piVar7;
          return piVar7;
        }
      }
      piVar4 = (int *)*piVar7;
      piVar6 = piVar7;
      piVar7 = piVar4;
    } while (piVar4 != (int *)0x0);
  }
  return piVar4;
}


PUSH EBP
MOV EBP,ECX
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00016000
ADD EBX,0x5b025
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x30]
MOV dword ptr [ESP + 0x4],EAX
MOV dword ptr [ESP + 0x8],EDX
TEST ESI,ESI
JZ 0x000250d9
MOV ESI,dword ptr [ESP + 0x30]
MOV EDX,ECX
XOR EDI,EDI
ADD ESI,ECX
LEA ESI,[ESI]
MOVSX ECX,byte ptr [EDX]
ADD EDX,0x1
MOV EAX,ECX
SHL EAX,0x11
ADD EAX,ECX
ADD EDI,EAX
MOV EAX,EDI
SHR EAX,0x2
XOR EDI,EAX
CMP ESI,EDX
JNZ 0x00025008
MOV EAX,dword ptr [ESP + 0x30]
MOV ECX,dword ptr [ESP + 0x38]
SHL EAX,0x11
ADD EAX,dword ptr [ESP + 0x30]
ADD EDI,EAX
MOV EAX,EDI
SHR EAX,0x2
XOR EDI,EAX
TEST ECX,ECX
JZ 0x00025044
MOV EAX,dword ptr [ESP + 0x38]
MOV dword ptr [EAX],EDI
MOV ECX,dword ptr [ESP + 0x8]
MOV EAX,EDI
XOR EDX,EDX
DIV dword ptr [ECX]
MOV EAX,dword ptr [ESP + 0x4]
MOV EAX,dword ptr [EAX]
LEA EAX,[EAX + EDX*0x4]
MOV EDX,dword ptr [ESP + 0x34]
MOV dword ptr [ESP + 0xc],EAX
TEST EDX,EDX
JZ 0x00025069
MOV EDX,dword ptr [ESP + 0x34]
MOV dword ptr [EDX],EAX
MOV EAX,dword ptr [ESP + 0xc]
MOV ESI,dword ptr [EAX]
TEST ESI,ESI
JZ 0x000250e0
MOV dword ptr [ESP + 0x8],EBP
XOR EBP,EBP
JMP 0x0002508a
MOV EAX,dword ptr [ESI]
MOV EBP,ESI
TEST EAX,EAX
JZ 0x000250d1
MOV ESI,EAX
CMP EDI,dword ptr [ESI + 0x8]
JNZ 0x00025080
MOV ECX,dword ptr [ESI + 0x4]
SUB ESP,0x4
PUSH dword ptr [ESP + 0x34]
PUSH dword ptr [ESP + 0x10]
PUSH ECX
MOV dword ptr [ESP + 0x14],ECX
CALL 0x000146b0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00025080
MOV EAX,dword ptr [ESP + 0x30]
MOV ECX,dword ptr [ESP + 0x4]
CMP byte ptr [ECX + EAX*0x1],0x0
JNZ 0x00025080
MOV EAX,ESI
TEST EBP,EBP
JZ 0x000250d1
MOV ECX,dword ptr [ESI]
MOV EBX,dword ptr [ESP + 0xc]
MOV dword ptr [EBP],ECX
MOV EDX,dword ptr [EBX]
MOV dword ptr [ESI],EDX
MOV dword ptr [EBX],ESI
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
XOR EDI,EDI
JMP 0x00025022
XOR EAX,EAX
JMP 0x000250d1
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint * __regparm3\nFUN_00024fd0(int *param_1,uint *param_2,char *param_3,size_t param_4,int *param_5,uint *param_6)\n\n{\n  int *piVar1;\n  char cVar2;\n  int iVar3;\n  int *piVar4;\n  char *pcVar5;\n  int *piVar6;\n  int *piVar7;\n  uint uVar8;\n  \n  if (param_4 == 0) {\n    uVar8 = 0;\n  }\n  else {\n    uVar8 = 0;\n    pcVar5 = param_3;\n    do {\n      cVar2 = *pcVar5;\n      pcVar5 = pcVar5 + 1;\n      uVar8 = uVar8 + cVar2 * 0x20001;\n      uVar8 = uVar8 ^ uVar8 >> 2;\n    } while (param_3 + param_4 != pcVar5);\n  }\n  uVar8 = uVar8 + param_4 * 0x20001;\n  uVar8 = uVar8 ^ uVar8 >> 2;\n  if (param_6 != (uint *)0x0) {\n    *param_6 = uVar8;\n  }\n  piVar1 = (int *)(*param_1 + (uVar8 % *param_2) * 4);\n  if (param_5 != (int *)0x0) {\n    *param_5 = (int)piVar1;\n  }\n  if ((int *)*piVar1 == (int *)0x0) {\n    piVar4 = (int *)0x0;\n  }\n  else {\n    piVar6 = (int *)0x0;\n    piVar7 = (int *)*piVar1;\n    do {\n      if (uVar8 == piVar7[2]) {\n        pcVar5 = (char *)piVar7[1];\n        iVar3 = strncmp(pcVar5,param_3,param_4);\n        if ((iVar3 == 0) && (pcVar5[param_4] == '\0')) {\n          if (piVar6 == (int *)0x0) {\n            return piVar7;\n          }\n          *piVar6 = *piVar7;\n          *piVar7 = *piVar1;\n          *piVar1 = (int)piVar7;\n          return piVar7;\n        }\n      }\n      piVar4 = (int *)*piVar7;\n      piVar6 = piVar7;\n      piVar7 = piVar4;\n    } while (piVar4 != (int *)0x0);\n  }\n  return piVar4;\n}\n\n" comment (function_definition "int * __regparm3\nFUN_00024fd0(int *param_1,uint *param_2,char *param_3,size_t param_4,int *param_5,uint *param_6)\n\n{\n  int *piVar1;\n  char cVar2;\n  int iVar3;\n  int *piVar4;\n  char *pcVar5;\n  int *piVar6;\n  int *piVar7;\n  uint uVar8;\n  \n  if (param_4 == 0) {\n    uVar8 = 0;\n  }\n  else {\n    uVar8 = 0;\n    pcVar5 = param_3;\n    do {\n      cVar2 = *pcVar5;\n      pcVar5 = pcVar5 + 1;\n      uVar8 = uVar8 + cVar2 * 0x20001;\n      uVar8 = uVar8 ^ uVar8 >> 2;\n    } while (param_3 + param_4 != pcVar5);\n  }\n  uVar8 = uVar8 + param_4 * 0x20001;\n  uVar8 = uVar8 ^ uVar8 >> 2;\n  if (param_6 != (uint *)0x0) {\n    *param_6 = uVar8;\n  }\n  piVar1 = (int *)(*param_1 + (uVar8 % *param_2) * 4);\n  if (param_5 != (int *)0x0) {\n    *param_5 = (int)piVar1;\n  }\n  if ((int *)*piVar1 == (int *)0x0) {\n    piVar4 = (int *)0x0;\n  }\n  else {\n    piVar6 = (int *)0x0;\n    piVar7 = (int *)*piVar1;\n    do {\n      if (uVar8 == piVar7[2]) {\n        pcVar5 = (char *)piVar7[1];\n        iVar3 = strncmp(pcVar5,param_3,param_4);\n        if ((iVar3 == 0) && (pcVar5[param_4] == '\0')) {\n          if (piVar6 == (int *)0x0) {\n            return piVar7;\n          }\n          *piVar6 = *piVar7;\n          *piVar7 = *piVar1;\n          *piVar1 = (int)piVar7;\n          return piVar7;\n        }\n      }\n      piVar4 = (int *)*piVar7;\n      piVar6 = piVar7;\n      piVar7 = piVar4;\n    } while (piVar4 != (int *)0x0);\n  }\n  return piVar4;\n}" primitive_type (pointer_declarator "* __regparm3\nFUN_00024fd0(int *param_1,uint *param_2,char *param_3,size_t param_4,int *param_5,uint *param_6)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_00024fd0(int *param_1,uint *param_2,char *param_3,size_t param_4,int *param_5,uint *param_6)" identifier (parameter_list "(int *param_1,uint *param_2,char *param_3,size_t param_4,int *param_5,uint *param_6)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "size_t param_4" primitive_type identifier) , (parameter_declaration "int *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "uint *param_6" type_identifier (pointer_declarator "*param_6" * identifier)) )))) (compound_statement "{\n  int *piVar1;\n  char cVar2;\n  int iVar3;\n  int *piVar4;\n  char *pcVar5;\n  int *piVar6;\n  int *piVar7;\n  uint uVar8;\n  \n  if (param_4 == 0) {\n    uVar8 = 0;\n  }\n  else {\n    uVar8 = 0;\n    pcVar5 = param_3;\n    do {\n      cVar2 = *pcVar5;\n      pcVar5 = pcVar5 + 1;\n      uVar8 = uVar8 + cVar2 * 0x20001;\n      uVar8 = uVar8 ^ uVar8 >> 2;\n    } while (param_3 + param_4 != pcVar5);\n  }\n  uVar8 = uVar8 + param_4 * 0x20001;\n  uVar8 = uVar8 ^ uVar8 >> 2;\n  if (param_6 != (uint *)0x0) {\n    *param_6 = uVar8;\n  }\n  piVar1 = (int *)(*param_1 + (uVar8 % *param_2) * 4);\n  if (param_5 != (int *)0x0) {\n    *param_5 = (int)piVar1;\n  }\n  if ((int *)*piVar1 == (int *)0x0) {\n    piVar4 = (int *)0x0;\n  }\n  else {\n    piVar6 = (int *)0x0;\n    piVar7 = (int *)*piVar1;\n    do {\n      if (uVar8 == piVar7[2]) {\n        pcVar5 = (char *)piVar7[1];\n        iVar3 = strncmp(pcVar5,param_3,param_4);\n        if ((iVar3 == 0) && (pcVar5[param_4] == '\0')) {\n          if (piVar6 == (int *)0x0) {\n            return piVar7;\n          }\n          *piVar6 = *piVar7;\n          *piVar7 = *piVar1;\n          *piVar1 = (int)piVar7;\n          return piVar7;\n        }\n      }\n      piVar4 = (int *)*piVar7;\n      piVar6 = piVar7;\n      piVar7 = piVar4;\n    } while (piVar4 != (int *)0x0);\n  }\n  return piVar4;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "uint uVar8;" type_identifier identifier ;) (if_statement "if (param_4 == 0) {\n    uVar8 = 0;\n  }\n  else {\n    uVar8 = 0;\n    pcVar5 = param_3;\n    do {\n      cVar2 = *pcVar5;\n      pcVar5 = pcVar5 + 1;\n      uVar8 = uVar8 + cVar2 * 0x20001;\n      uVar8 = uVar8 ^ uVar8 >> 2;\n    } while (param_3 + param_4 != pcVar5);\n  }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar8 = 0;\n  }" { (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar8 = 0;\n    pcVar5 = param_3;\n    do {\n      cVar2 = *pcVar5;\n      pcVar5 = pcVar5 + 1;\n      uVar8 = uVar8 + cVar2 * 0x20001;\n      uVar8 = uVar8 ^ uVar8 >> 2;\n    } while (param_3 + param_4 != pcVar5);\n  }" else (compound_statement "{\n    uVar8 = 0;\n    pcVar5 = param_3;\n    do {\n      cVar2 = *pcVar5;\n      pcVar5 = pcVar5 + 1;\n      uVar8 = uVar8 + cVar2 * 0x20001;\n      uVar8 = uVar8 ^ uVar8 >> 2;\n    } while (param_3 + param_4 != pcVar5);\n  }" { (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (expression_statement "pcVar5 = param_3;" (assignment_expression "pcVar5 = param_3" identifier = identifier) ;) (do_statement "do {\n      cVar2 = *pcVar5;\n      pcVar5 = pcVar5 + 1;\n      uVar8 = uVar8 + cVar2 * 0x20001;\n      uVar8 = uVar8 ^ uVar8 >> 2;\n    } while (param_3 + param_4 != pcVar5);" do (compound_statement "{\n      cVar2 = *pcVar5;\n      pcVar5 = pcVar5 + 1;\n      uVar8 = uVar8 + cVar2 * 0x20001;\n      uVar8 = uVar8 ^ uVar8 >> 2;\n    }" { (expression_statement "cVar2 = *pcVar5;" (assignment_expression "cVar2 = *pcVar5" identifier = (pointer_expression "*pcVar5" * identifier)) ;) (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" identifier = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) (expression_statement "uVar8 = uVar8 + cVar2 * 0x20001;" (assignment_expression "uVar8 = uVar8 + cVar2 * 0x20001" identifier = (binary_expression "uVar8 + cVar2 * 0x20001" identifier + (binary_expression "cVar2 * 0x20001" identifier * number_literal))) ;) (expression_statement "uVar8 = uVar8 ^ uVar8 >> 2;" (assignment_expression "uVar8 = uVar8 ^ uVar8 >> 2" identifier = (binary_expression "uVar8 ^ uVar8 >> 2" identifier ^ (binary_expression "uVar8 >> 2" identifier >> number_literal))) ;) }) while (parenthesized_expression "(param_3 + param_4 != pcVar5)" ( (binary_expression "param_3 + param_4 != pcVar5" (binary_expression "param_3 + param_4" identifier + identifier) != identifier) )) ;) }))) (expression_statement "uVar8 = uVar8 + param_4 * 0x20001;" (assignment_expression "uVar8 = uVar8 + param_4 * 0x20001" identifier = (binary_expression "uVar8 + param_4 * 0x20001" identifier + (binary_expression "param_4 * 0x20001" identifier * number_literal))) ;) (expression_statement "uVar8 = uVar8 ^ uVar8 >> 2;" (assignment_expression "uVar8 = uVar8 ^ uVar8 >> 2" identifier = (binary_expression "uVar8 ^ uVar8 >> 2" identifier ^ (binary_expression "uVar8 >> 2" identifier >> number_literal))) ;) (if_statement "if (param_6 != (uint *)0x0) {\n    *param_6 = uVar8;\n  }" if (parenthesized_expression "(param_6 != (uint *)0x0)" ( (binary_expression "param_6 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *param_6 = uVar8;\n  }" { (expression_statement "*param_6 = uVar8;" (assignment_expression "*param_6 = uVar8" (pointer_expression "*param_6" * identifier) = identifier) ;) })) (expression_statement "piVar1 = (int *)(*param_1 + (uVar8 % *param_2) * 4);" (assignment_expression "piVar1 = (int *)(*param_1 + (uVar8 % *param_2) * 4)" identifier = (cast_expression "(int *)(*param_1 + (uVar8 % *param_2) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + (uVar8 % *param_2) * 4)" ( (binary_expression "*param_1 + (uVar8 % *param_2) * 4" (pointer_expression "*param_1" * identifier) + (binary_expression "(uVar8 % *param_2) * 4" (parenthesized_expression "(uVar8 % *param_2)" ( (binary_expression "uVar8 % *param_2" identifier % (pointer_expression "*param_2" * identifier)) )) * number_literal)) )))) ;) (if_statement "if (param_5 != (int *)0x0) {\n    *param_5 = (int)piVar1;\n  }" if (parenthesized_expression "(param_5 != (int *)0x0)" ( (binary_expression "param_5 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *param_5 = (int)piVar1;\n  }" { (expression_statement "*param_5 = (int)piVar1;" (assignment_expression "*param_5 = (int)piVar1" (pointer_expression "*param_5" * identifier) = (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })) (if_statement "if ((int *)*piVar1 == (int *)0x0) {\n    piVar4 = (int *)0x0;\n  }\n  else {\n    piVar6 = (int *)0x0;\n    piVar7 = (int *)*piVar1;\n    do {\n      if (uVar8 == piVar7[2]) {\n        pcVar5 = (char *)piVar7[1];\n        iVar3 = strncmp(pcVar5,param_3,param_4);\n        if ((iVar3 == 0) && (pcVar5[param_4] == '\0')) {\n          if (piVar6 == (int *)0x0) {\n            return piVar7;\n          }\n          *piVar6 = *piVar7;\n          *piVar7 = *piVar1;\n          *piVar1 = (int)piVar7;\n          return piVar7;\n        }\n      }\n      piVar4 = (int *)*piVar7;\n      piVar6 = piVar7;\n      piVar7 = piVar4;\n    } while (piVar4 != (int *)0x0);\n  }" if (parenthesized_expression "((int *)*piVar1 == (int *)0x0)" ( (binary_expression "(int *)*piVar1 == (int *)0x0" (cast_expression "(int *)*piVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier)) == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar4 = (int *)0x0;\n  }" { (expression_statement "piVar4 = (int *)0x0;" (assignment_expression "piVar4 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    piVar6 = (int *)0x0;\n    piVar7 = (int *)*piVar1;\n    do {\n      if (uVar8 == piVar7[2]) {\n        pcVar5 = (char *)piVar7[1];\n        iVar3 = strncmp(pcVar5,param_3,param_4);\n        if ((iVar3 == 0) && (pcVar5[param_4] == '\0')) {\n          if (piVar6 == (int *)0x0) {\n            return piVar7;\n          }\n          *piVar6 = *piVar7;\n          *piVar7 = *piVar1;\n          *piVar1 = (int)piVar7;\n          return piVar7;\n        }\n      }\n      piVar4 = (int *)*piVar7;\n      piVar6 = piVar7;\n      piVar7 = piVar4;\n    } while (piVar4 != (int *)0x0);\n  }" else (compound_statement "{\n    piVar6 = (int *)0x0;\n    piVar7 = (int *)*piVar1;\n    do {\n      if (uVar8 == piVar7[2]) {\n        pcVar5 = (char *)piVar7[1];\n        iVar3 = strncmp(pcVar5,param_3,param_4);\n        if ((iVar3 == 0) && (pcVar5[param_4] == '\0')) {\n          if (piVar6 == (int *)0x0) {\n            return piVar7;\n          }\n          *piVar6 = *piVar7;\n          *piVar7 = *piVar1;\n          *piVar1 = (int)piVar7;\n          return piVar7;\n        }\n      }\n      piVar4 = (int *)*piVar7;\n      piVar6 = piVar7;\n      piVar7 = piVar4;\n    } while (piVar4 != (int *)0x0);\n  }" { (expression_statement "piVar6 = (int *)0x0;" (assignment_expression "piVar6 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "piVar7 = (int *)*piVar1;" (assignment_expression "piVar7 = (int *)*piVar1" identifier = (cast_expression "(int *)*piVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier))) ;) (do_statement "do {\n      if (uVar8 == piVar7[2]) {\n        pcVar5 = (char *)piVar7[1];\n        iVar3 = strncmp(pcVar5,param_3,param_4);\n        if ((iVar3 == 0) && (pcVar5[param_4] == '\0')) {\n          if (piVar6 == (int *)0x0) {\n            return piVar7;\n          }\n          *piVar6 = *piVar7;\n          *piVar7 = *piVar1;\n          *piVar1 = (int)piVar7;\n          return piVar7;\n        }\n      }\n      piVar4 = (int *)*piVar7;\n      piVar6 = piVar7;\n      piVar7 = piVar4;\n    } while (piVar4 != (int *)0x0);" do (compound_statement "{\n      if (uVar8 == piVar7[2]) {\n        pcVar5 = (char *)piVar7[1];\n        iVar3 = strncmp(pcVar5,param_3,param_4);\n        if ((iVar3 == 0) && (pcVar5[param_4] == '\0')) {\n          if (piVar6 == (int *)0x0) {\n            return piVar7;\n          }\n          *piVar6 = *piVar7;\n          *piVar7 = *piVar1;\n          *piVar1 = (int)piVar7;\n          return piVar7;\n        }\n      }\n      piVar4 = (int *)*piVar7;\n      piVar6 = piVar7;\n      piVar7 = piVar4;\n    }" { (if_statement "if (uVar8 == piVar7[2]) {\n        pcVar5 = (char *)piVar7[1];\n        iVar3 = strncmp(pcVar5,param_3,param_4);\n        if ((iVar3 == 0) && (pcVar5[param_4] == '\0')) {\n          if (piVar6 == (int *)0x0) {\n            return piVar7;\n          }\n          *piVar6 = *piVar7;\n          *piVar7 = *piVar1;\n          *piVar1 = (int)piVar7;\n          return piVar7;\n        }\n      }" if (parenthesized_expression "(uVar8 == piVar7[2])" ( (binary_expression "uVar8 == piVar7[2]" identifier == (subscript_expression "piVar7[2]" identifier [ number_literal ])) )) (compound_statement "{\n        pcVar5 = (char *)piVar7[1];\n        iVar3 = strncmp(pcVar5,param_3,param_4);\n        if ((iVar3 == 0) && (pcVar5[param_4] == '\0')) {\n          if (piVar6 == (int *)0x0) {\n            return piVar7;\n          }\n          *piVar6 = *piVar7;\n          *piVar7 = *piVar1;\n          *piVar1 = (int)piVar7;\n          return piVar7;\n        }\n      }" { (expression_statement "pcVar5 = (char *)piVar7[1];" (assignment_expression "pcVar5 = (char *)piVar7[1]" identifier = (cast_expression "(char *)piVar7[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar7[1]" identifier [ number_literal ]))) ;) (expression_statement "iVar3 = strncmp(pcVar5,param_3,param_4);" (assignment_expression "iVar3 = strncmp(pcVar5,param_3,param_4)" identifier = (call_expression "strncmp(pcVar5,param_3,param_4)" identifier (argument_list "(pcVar5,param_3,param_4)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((iVar3 == 0) && (pcVar5[param_4] == '\0')) {\n          if (piVar6 == (int *)0x0) {\n            return piVar7;\n          }\n          *piVar6 = *piVar7;\n          *piVar7 = *piVar1;\n          *piVar1 = (int)piVar7;\n          return piVar7;\n        }" if (parenthesized_expression "((iVar3 == 0) && (pcVar5[param_4] == '\0'))" ( (binary_expression "(iVar3 == 0) && (pcVar5[param_4] == '\0')" (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) && (parenthesized_expression "(pcVar5[param_4] == '\0')" ( (binary_expression "pcVar5[param_4] == '\0'" (subscript_expression "pcVar5[param_4]" identifier [ identifier ]) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n          if (piVar6 == (int *)0x0) {\n            return piVar7;\n          }\n          *piVar6 = *piVar7;\n          *piVar7 = *piVar1;\n          *piVar1 = (int)piVar7;\n          return piVar7;\n        }" { (if_statement "if (piVar6 == (int *)0x0) {\n            return piVar7;\n          }" if (parenthesized_expression "(piVar6 == (int *)0x0)" ( (binary_expression "piVar6 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            return piVar7;\n          }" { (return_statement "return piVar7;" return identifier ;) })) (expression_statement "*piVar6 = *piVar7;" (assignment_expression "*piVar6 = *piVar7" (pointer_expression "*piVar6" * identifier) = (pointer_expression "*piVar7" * identifier)) ;) (expression_statement "*piVar7 = *piVar1;" (assignment_expression "*piVar7 = *piVar1" (pointer_expression "*piVar7" * identifier) = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = (int)piVar7;" (assignment_expression "*piVar1 = (int)piVar7" (pointer_expression "*piVar1" * identifier) = (cast_expression "(int)piVar7" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (return_statement "return piVar7;" return identifier ;) })) })) (expression_statement "piVar4 = (int *)*piVar7;" (assignment_expression "piVar4 = (int *)*piVar7" identifier = (cast_expression "(int *)*piVar7" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar7" * identifier))) ;) (expression_statement "piVar6 = piVar7;" (assignment_expression "piVar6 = piVar7" identifier = identifier) ;) (expression_statement "piVar7 = piVar4;" (assignment_expression "piVar7 = piVar4" identifier = identifier) ;) }) while (parenthesized_expression "(piVar4 != (int *)0x0)" ( (binary_expression "piVar4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) }))) (return_statement "return piVar4;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: hash_entry * hash_lookup(hash_control * table, char * key, size_t len,\n   hash_entry * * * plist, ulong * phash, hash_control * table) */\n\nhash_entry * __regparm3\nhash_lookup(hash_control *table,char *key,size_t len,hash_entry ***plist,ulong *phash,\n           hash_control *table_1)\n\n{\n  hash_entry **pphVar1;\n  char cVar2;\n  int iVar3;\n  hash_entry *phVar4;\n  char *pcVar5;\n  hash_entry *phVar6;\n  hash_entry *phVar7;\n  uint uVar8;\n  hash_entry **pphVar9;\n  \n  if (plist == (hash_entry ***)0x0) {\n    uVar8 = 0;\n  }\n  else {\n    uVar8 = 0;\n    pcVar5 = (char *)len;\n    do {\n      cVar2 = *pcVar5;\n      pcVar5 = pcVar5 + 1;\n      uVar8 = uVar8 + cVar2 * 0x20001;\n      uVar8 = uVar8 ^ uVar8 >> 2;\n    } while ((char *)((int)plist + len) != pcVar5);\n  }\n  uVar8 = uVar8 + (int)plist * 0x20001;\n  pphVar9 = (hash_entry **)(uVar8 ^ uVar8 >> 2);\n  if (table_1 != (hash_control *)0x0) {\n    table_1->table = pphVar9;\n  }\n  pphVar1 = table->table + (uint)pphVar9 % *(uint *)key;\n  if (phash != (ulong *)0x0) {\n    *phash = (ulong)pphVar1;\n  }\n  if (*pphVar1 == (hash_entry *)0x0) {\n    phVar4 = (hash_entry *)0x0;\n  }\n  else {\n    phVar6 = (hash_entry *)0x0;\n    phVar7 = *pphVar1;\n    do {\n      if (pphVar9 == (hash_entry **)phVar7->hash) {\n        pcVar5 = phVar7->string;\n        iVar3 = strncmp(pcVar5,(char *)len,(size_t)plist);\n        if ((iVar3 == 0) && (pcVar5[(int)plist] == '\0')) {\n          if (phVar6 == (hash_entry *)0x0) {\n            return phVar7;\n          }\n          phVar6->next = phVar7->next;\n          phVar7->next = *pphVar1;\n          *pphVar1 = phVar7;\n          return phVar7;\n        }\n      }\n      phVar4 = phVar7->next;\n      phVar6 = phVar7;\n      phVar7 = phVar4;\n    } while (phVar4 != (hash_entry *)0x0);\n  }\n  return phVar4;\n}\n\n" comment comment (ERROR "hash_entry * __regparm3\nhash_lookup(hash_control *table,char *key,size_t len,hash_entry ***plist,ulong *phash,\n           hash_control *table_1)" (binary_expression "hash_entry * __regparm3\nhash_lookup(hash_control *table,char *key,size_t len,hash_entry ***plist,ulong *phash,\n           hash_control *table_1)" identifier * (ERROR "__regparm3" identifier) (call_expression "hash_lookup(hash_control *table,char *key,size_t len,hash_entry ***plist,ulong *phash,\n           hash_control *table_1)" identifier (argument_list "(hash_control *table,char *key,size_t len,hash_entry ***plist,ulong *phash,\n           hash_control *table_1)" ( (binary_expression "hash_control *table" identifier * identifier) , (binary_expression "char *key" identifier * identifier) , identifier (ERROR "len" identifier) , (binary_expression "hash_entry ***plist" identifier * (pointer_expression "**plist" * (pointer_expression "*plist" * identifier))) , (binary_expression "ulong *phash" identifier * identifier) , (binary_expression "hash_control *table_1" identifier * identifier) ))))) (compound_statement "{\n  hash_entry **pphVar1;\n  char cVar2;\n  int iVar3;\n  hash_entry *phVar4;\n  char *pcVar5;\n  hash_entry *phVar6;\n  hash_entry *phVar7;\n  uint uVar8;\n  hash_entry **pphVar9;\n  \n  if (plist == (hash_entry ***)0x0) {\n    uVar8 = 0;\n  }\n  else {\n    uVar8 = 0;\n    pcVar5 = (char *)len;\n    do {\n      cVar2 = *pcVar5;\n      pcVar5 = pcVar5 + 1;\n      uVar8 = uVar8 + cVar2 * 0x20001;\n      uVar8 = uVar8 ^ uVar8 >> 2;\n    } while ((char *)((int)plist + len) != pcVar5);\n  }\n  uVar8 = uVar8 + (int)plist * 0x20001;\n  pphVar9 = (hash_entry **)(uVar8 ^ uVar8 >> 2);\n  if (table_1 != (hash_control *)0x0) {\n    table_1->table = pphVar9;\n  }\n  pphVar1 = table->table + (uint)pphVar9 % *(uint *)key;\n  if (phash != (ulong *)0x0) {\n    *phash = (ulong)pphVar1;\n  }\n  if (*pphVar1 == (hash_entry *)0x0) {\n    phVar4 = (hash_entry *)0x0;\n  }\n  else {\n    phVar6 = (hash_entry *)0x0;\n    phVar7 = *pphVar1;\n    do {\n      if (pphVar9 == (hash_entry **)phVar7->hash) {\n        pcVar5 = phVar7->string;\n        iVar3 = strncmp(pcVar5,(char *)len,(size_t)plist);\n        if ((iVar3 == 0) && (pcVar5[(int)plist] == '\0')) {\n          if (phVar6 == (hash_entry *)0x0) {\n            return phVar7;\n          }\n          phVar6->next = phVar7->next;\n          phVar7->next = *pphVar1;\n          *pphVar1 = phVar7;\n          return phVar7;\n        }\n      }\n      phVar4 = phVar7->next;\n      phVar6 = phVar7;\n      phVar7 = phVar4;\n    } while (phVar4 != (hash_entry *)0x0);\n  }\n  return phVar4;\n}" { (declaration "hash_entry **pphVar1;" type_identifier (pointer_declarator "**pphVar1" * (pointer_declarator "*pphVar1" * identifier)) ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "hash_entry *phVar4;" type_identifier (pointer_declarator "*phVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "hash_entry *phVar6;" type_identifier (pointer_declarator "*phVar6" * identifier) ;) (declaration "hash_entry *phVar7;" type_identifier (pointer_declarator "*phVar7" * identifier) ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "hash_entry **pphVar9;" type_identifier (pointer_declarator "**pphVar9" * (pointer_declarator "*pphVar9" * identifier)) ;) (if_statement "if (plist == (hash_entry ***)0x0) {\n    uVar8 = 0;\n  }\n  else {\n    uVar8 = 0;\n    pcVar5 = (char *)len;\n    do {\n      cVar2 = *pcVar5;\n      pcVar5 = pcVar5 + 1;\n      uVar8 = uVar8 + cVar2 * 0x20001;\n      uVar8 = uVar8 ^ uVar8 >> 2;\n    } while ((char *)((int)plist + len) != pcVar5);\n  }" if (parenthesized_expression "(plist == (hash_entry ***)0x0)" ( (binary_expression "plist == (hash_entry ***)0x0" identifier == (cast_expression "(hash_entry ***)0x0" ( (type_descriptor "hash_entry ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) number_literal)) )) (compound_statement "{\n    uVar8 = 0;\n  }" { (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar8 = 0;\n    pcVar5 = (char *)len;\n    do {\n      cVar2 = *pcVar5;\n      pcVar5 = pcVar5 + 1;\n      uVar8 = uVar8 + cVar2 * 0x20001;\n      uVar8 = uVar8 ^ uVar8 >> 2;\n    } while ((char *)((int)plist + len) != pcVar5);\n  }" else (compound_statement "{\n    uVar8 = 0;\n    pcVar5 = (char *)len;\n    do {\n      cVar2 = *pcVar5;\n      pcVar5 = pcVar5 + 1;\n      uVar8 = uVar8 + cVar2 * 0x20001;\n      uVar8 = uVar8 ^ uVar8 >> 2;\n    } while ((char *)((int)plist + len) != pcVar5);\n  }" { (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (expression_statement "pcVar5 = (char *)len;" (assignment_expression "pcVar5 = (char *)len" identifier = (cast_expression "(char *)len" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (do_statement "do {\n      cVar2 = *pcVar5;\n      pcVar5 = pcVar5 + 1;\n      uVar8 = uVar8 + cVar2 * 0x20001;\n      uVar8 = uVar8 ^ uVar8 >> 2;\n    } while ((char *)((int)plist + len) != pcVar5);" do (compound_statement "{\n      cVar2 = *pcVar5;\n      pcVar5 = pcVar5 + 1;\n      uVar8 = uVar8 + cVar2 * 0x20001;\n      uVar8 = uVar8 ^ uVar8 >> 2;\n    }" { (expression_statement "cVar2 = *pcVar5;" (assignment_expression "cVar2 = *pcVar5" identifier = (pointer_expression "*pcVar5" * identifier)) ;) (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" identifier = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) (expression_statement "uVar8 = uVar8 + cVar2 * 0x20001;" (assignment_expression "uVar8 = uVar8 + cVar2 * 0x20001" identifier = (binary_expression "uVar8 + cVar2 * 0x20001" identifier + (binary_expression "cVar2 * 0x20001" identifier * number_literal))) ;) (expression_statement "uVar8 = uVar8 ^ uVar8 >> 2;" (assignment_expression "uVar8 = uVar8 ^ uVar8 >> 2" identifier = (binary_expression "uVar8 ^ uVar8 >> 2" identifier ^ (binary_expression "uVar8 >> 2" identifier >> number_literal))) ;) }) while (parenthesized_expression "((char *)((int)plist + len) != pcVar5)" ( (binary_expression "(char *)((int)plist + len) != pcVar5" (cast_expression "(char *)((int)plist + len)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)plist + len)" ( (binary_expression "(int)plist + len" (cast_expression "(int)plist" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) ))) != identifier) )) ;) }))) (expression_statement "uVar8 = uVar8 + (int)plist * 0x20001;" (assignment_expression "uVar8 = uVar8 + (int)plist * 0x20001" identifier = (binary_expression "uVar8 + (int)plist * 0x20001" identifier + (binary_expression "(int)plist * 0x20001" (cast_expression "(int)plist" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal))) ;) (expression_statement "pphVar9 = (hash_entry **)(uVar8 ^ uVar8 >> 2);" (assignment_expression "pphVar9 = (hash_entry **)(uVar8 ^ uVar8 >> 2)" identifier = (cast_expression "(hash_entry **)(uVar8 ^ uVar8 >> 2)" ( (type_descriptor "hash_entry **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(uVar8 ^ uVar8 >> 2)" ( (binary_expression "uVar8 ^ uVar8 >> 2" identifier ^ (binary_expression "uVar8 >> 2" identifier >> number_literal)) )))) ;) (if_statement "if (table_1 != (hash_control *)0x0) {\n    table_1->table = pphVar9;\n  }" if (parenthesized_expression "(table_1 != (hash_control *)0x0)" ( (binary_expression "table_1 != (hash_control *)0x0" identifier != (cast_expression "(hash_control *)0x0" ( (type_descriptor "hash_control *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    table_1->table = pphVar9;\n  }" { (expression_statement "table_1->table = pphVar9;" (assignment_expression "table_1->table = pphVar9" (field_expression "table_1->table" identifier -> field_identifier) = identifier) ;) })) (expression_statement "pphVar1 = table->table + (uint)pphVar9 % *(uint *)key;" (assignment_expression "pphVar1 = table->table + (uint)pphVar9 % *(uint *)key" identifier = (binary_expression "table->table + (uint)pphVar9 % *(uint *)key" (field_expression "table->table" identifier -> field_identifier) + (binary_expression "(uint)pphVar9 % *(uint *)key" (cast_expression "(uint)pphVar9" ( (type_descriptor "uint" type_identifier) ) identifier) % (pointer_expression "*(uint *)key" * (cast_expression "(uint *)key" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))))) ;) (if_statement "if (phash != (ulong *)0x0) {\n    *phash = (ulong)pphVar1;\n  }" if (parenthesized_expression "(phash != (ulong *)0x0)" ( (binary_expression "phash != (ulong *)0x0" identifier != (cast_expression "(ulong *)0x0" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *phash = (ulong)pphVar1;\n  }" { (expression_statement "*phash = (ulong)pphVar1;" (assignment_expression "*phash = (ulong)pphVar1" (pointer_expression "*phash" * identifier) = (cast_expression "(ulong)pphVar1" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) })) (if_statement "if (*pphVar1 == (hash_entry *)0x0) {\n    phVar4 = (hash_entry *)0x0;\n  }\n  else {\n    phVar6 = (hash_entry *)0x0;\n    phVar7 = *pphVar1;\n    do {\n      if (pphVar9 == (hash_entry **)phVar7->hash) {\n        pcVar5 = phVar7->string;\n        iVar3 = strncmp(pcVar5,(char *)len,(size_t)plist);\n        if ((iVar3 == 0) && (pcVar5[(int)plist] == '\0')) {\n          if (phVar6 == (hash_entry *)0x0) {\n            return phVar7;\n          }\n          phVar6->next = phVar7->next;\n          phVar7->next = *pphVar1;\n          *pphVar1 = phVar7;\n          return phVar7;\n        }\n      }\n      phVar4 = phVar7->next;\n      phVar6 = phVar7;\n      phVar7 = phVar4;\n    } while (phVar4 != (hash_entry *)0x0);\n  }" if (parenthesized_expression "(*pphVar1 == (hash_entry *)0x0)" ( (binary_expression "*pphVar1 == (hash_entry *)0x0" (pointer_expression "*pphVar1" * identifier) == (cast_expression "(hash_entry *)0x0" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    phVar4 = (hash_entry *)0x0;\n  }" { (expression_statement "phVar4 = (hash_entry *)0x0;" (assignment_expression "phVar4 = (hash_entry *)0x0" identifier = (cast_expression "(hash_entry *)0x0" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    phVar6 = (hash_entry *)0x0;\n    phVar7 = *pphVar1;\n    do {\n      if (pphVar9 == (hash_entry **)phVar7->hash) {\n        pcVar5 = phVar7->string;\n        iVar3 = strncmp(pcVar5,(char *)len,(size_t)plist);\n        if ((iVar3 == 0) && (pcVar5[(int)plist] == '\0')) {\n          if (phVar6 == (hash_entry *)0x0) {\n            return phVar7;\n          }\n          phVar6->next = phVar7->next;\n          phVar7->next = *pphVar1;\n          *pphVar1 = phVar7;\n          return phVar7;\n        }\n      }\n      phVar4 = phVar7->next;\n      phVar6 = phVar7;\n      phVar7 = phVar4;\n    } while (phVar4 != (hash_entry *)0x0);\n  }" else (compound_statement "{\n    phVar6 = (hash_entry *)0x0;\n    phVar7 = *pphVar1;\n    do {\n      if (pphVar9 == (hash_entry **)phVar7->hash) {\n        pcVar5 = phVar7->string;\n        iVar3 = strncmp(pcVar5,(char *)len,(size_t)plist);\n        if ((iVar3 == 0) && (pcVar5[(int)plist] == '\0')) {\n          if (phVar6 == (hash_entry *)0x0) {\n            return phVar7;\n          }\n          phVar6->next = phVar7->next;\n          phVar7->next = *pphVar1;\n          *pphVar1 = phVar7;\n          return phVar7;\n        }\n      }\n      phVar4 = phVar7->next;\n      phVar6 = phVar7;\n      phVar7 = phVar4;\n    } while (phVar4 != (hash_entry *)0x0);\n  }" { (expression_statement "phVar6 = (hash_entry *)0x0;" (assignment_expression "phVar6 = (hash_entry *)0x0" identifier = (cast_expression "(hash_entry *)0x0" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "phVar7 = *pphVar1;" (assignment_expression "phVar7 = *pphVar1" identifier = (pointer_expression "*pphVar1" * identifier)) ;) (do_statement "do {\n      if (pphVar9 == (hash_entry **)phVar7->hash) {\n        pcVar5 = phVar7->string;\n        iVar3 = strncmp(pcVar5,(char *)len,(size_t)plist);\n        if ((iVar3 == 0) && (pcVar5[(int)plist] == '\0')) {\n          if (phVar6 == (hash_entry *)0x0) {\n            return phVar7;\n          }\n          phVar6->next = phVar7->next;\n          phVar7->next = *pphVar1;\n          *pphVar1 = phVar7;\n          return phVar7;\n        }\n      }\n      phVar4 = phVar7->next;\n      phVar6 = phVar7;\n      phVar7 = phVar4;\n    } while (phVar4 != (hash_entry *)0x0);" do (compound_statement "{\n      if (pphVar9 == (hash_entry **)phVar7->hash) {\n        pcVar5 = phVar7->string;\n        iVar3 = strncmp(pcVar5,(char *)len,(size_t)plist);\n        if ((iVar3 == 0) && (pcVar5[(int)plist] == '\0')) {\n          if (phVar6 == (hash_entry *)0x0) {\n            return phVar7;\n          }\n          phVar6->next = phVar7->next;\n          phVar7->next = *pphVar1;\n          *pphVar1 = phVar7;\n          return phVar7;\n        }\n      }\n      phVar4 = phVar7->next;\n      phVar6 = phVar7;\n      phVar7 = phVar4;\n    }" { (if_statement "if (pphVar9 == (hash_entry **)phVar7->hash) {\n        pcVar5 = phVar7->string;\n        iVar3 = strncmp(pcVar5,(char *)len,(size_t)plist);\n        if ((iVar3 == 0) && (pcVar5[(int)plist] == '\0')) {\n          if (phVar6 == (hash_entry *)0x0) {\n            return phVar7;\n          }\n          phVar6->next = phVar7->next;\n          phVar7->next = *pphVar1;\n          *pphVar1 = phVar7;\n          return phVar7;\n        }\n      }" if (parenthesized_expression "(pphVar9 == (hash_entry **)phVar7->hash)" ( (binary_expression "pphVar9 == (hash_entry **)phVar7->hash" identifier == (cast_expression "(hash_entry **)phVar7->hash" ( (type_descriptor "hash_entry **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (field_expression "phVar7->hash" identifier -> field_identifier))) )) (compound_statement "{\n        pcVar5 = phVar7->string;\n        iVar3 = strncmp(pcVar5,(char *)len,(size_t)plist);\n        if ((iVar3 == 0) && (pcVar5[(int)plist] == '\0')) {\n          if (phVar6 == (hash_entry *)0x0) {\n            return phVar7;\n          }\n          phVar6->next = phVar7->next;\n          phVar7->next = *pphVar1;\n          *pphVar1 = phVar7;\n          return phVar7;\n        }\n      }" { (expression_statement "pcVar5 = phVar7->string;" (assignment_expression "pcVar5 = phVar7->string" identifier = (field_expression "phVar7->string" identifier -> field_identifier)) ;) (expression_statement "iVar3 = strncmp(pcVar5,(char *)len,(size_t)plist);" (assignment_expression "iVar3 = strncmp(pcVar5,(char *)len,(size_t)plist)" identifier = (call_expression "strncmp(pcVar5,(char *)len,(size_t)plist)" identifier (argument_list "(pcVar5,(char *)len,(size_t)plist)" ( identifier , (cast_expression "(char *)len" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(size_t)plist" ( (type_descriptor "size_t" primitive_type) ) identifier) )))) ;) (if_statement "if ((iVar3 == 0) && (pcVar5[(int)plist] == '\0')) {\n          if (phVar6 == (hash_entry *)0x0) {\n            return phVar7;\n          }\n          phVar6->next = phVar7->next;\n          phVar7->next = *pphVar1;\n          *pphVar1 = phVar7;\n          return phVar7;\n        }" if (parenthesized_expression "((iVar3 == 0) && (pcVar5[(int)plist] == '\0'))" ( (binary_expression "(iVar3 == 0) && (pcVar5[(int)plist] == '\0')" (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) && (parenthesized_expression "(pcVar5[(int)plist] == '\0')" ( (binary_expression "pcVar5[(int)plist] == '\0'" (subscript_expression "pcVar5[(int)plist]" identifier [ (cast_expression "(int)plist" ( (type_descriptor "int" primitive_type) ) identifier) ]) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n          if (phVar6 == (hash_entry *)0x0) {\n            return phVar7;\n          }\n          phVar6->next = phVar7->next;\n          phVar7->next = *pphVar1;\n          *pphVar1 = phVar7;\n          return phVar7;\n        }" { (if_statement "if (phVar6 == (hash_entry *)0x0) {\n            return phVar7;\n          }" if (parenthesized_expression "(phVar6 == (hash_entry *)0x0)" ( (binary_expression "phVar6 == (hash_entry *)0x0" identifier == (cast_expression "(hash_entry *)0x0" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            return phVar7;\n          }" { (return_statement "return phVar7;" return identifier ;) })) (expression_statement "phVar6->next = phVar7->next;" (assignment_expression "phVar6->next = phVar7->next" (field_expression "phVar6->next" identifier -> field_identifier) = (field_expression "phVar7->next" identifier -> field_identifier)) ;) (expression_statement "phVar7->next = *pphVar1;" (assignment_expression "phVar7->next = *pphVar1" (field_expression "phVar7->next" identifier -> field_identifier) = (pointer_expression "*pphVar1" * identifier)) ;) (expression_statement "*pphVar1 = phVar7;" (assignment_expression "*pphVar1 = phVar7" (pointer_expression "*pphVar1" * identifier) = identifier) ;) (return_statement "return phVar7;" return identifier ;) })) })) (expression_statement "phVar4 = phVar7->next;" (assignment_expression "phVar4 = phVar7->next" identifier = (field_expression "phVar7->next" identifier -> field_identifier)) ;) (expression_statement "phVar6 = phVar7;" (assignment_expression "phVar6 = phVar7" identifier = identifier) ;) (expression_statement "phVar7 = phVar4;" (assignment_expression "phVar7 = phVar4" identifier = identifier) ;) }) while (parenthesized_expression "(phVar4 != (hash_entry *)0x0)" ( (binary_expression "phVar4 != (hash_entry *)0x0" identifier != (cast_expression "(hash_entry *)0x0" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) }))) (return_statement "return phVar4;" return identifier ;) }))
(translation_unit "int * __regparm3\nFUN_00024fd0(int *param_1,uint *param_2,char *param_3,size_t param_4,int *param_5,uint *param_6)\n\n{\n  int *piVar1;\n  char cVar2;\n  int iVar3;\n  int *piVar4;\n  char *pcVar5;\n  int *piVar6;\n  int *piVar7;\n  uint uVar8;\n  \n  if (param_4 == 0) {\n    uVar8 = 0;\n  }\n  else {\n    uVar8 = 0;\n    pcVar5 = param_3;\n    do {\n      cVar2 = *pcVar5;\n      pcVar5 = pcVar5 + 1;\n      uVar8 = uVar8 + cVar2 * 0x20001;\n      uVar8 = uVar8 ^ uVar8 >> 2;\n    } while (param_3 + param_4 != pcVar5);\n  }\n  uVar8 = uVar8 + param_4 * 0x20001;\n  uVar8 = uVar8 ^ uVar8 >> 2;\n  if (param_6 != (uint *)0x0) {\n    *param_6 = uVar8;\n  }\n  piVar1 = (int *)(*param_1 + (uVar8 % *param_2) * 4);\n  if (param_5 != (int *)0x0) {\n    *param_5 = (int)piVar1;\n  }\n  if ((int *)*piVar1 == (int *)0x0) {\n    piVar4 = (int *)0x0;\n  }\n  else {\n    piVar6 = (int *)0x0;\n    piVar7 = (int *)*piVar1;\n    do {\n      if (uVar8 == piVar7[2]) {\n        pcVar5 = (char *)piVar7[1];\n        iVar3 = strncmp(pcVar5,param_3,param_4);\n        if ((iVar3 == 0) && (pcVar5[param_4] == '\0')) {\n          if (piVar6 == (int *)0x0) {\n            return piVar7;\n          }\n          *piVar6 = *piVar7;\n          *piVar7 = *piVar1;\n          *piVar1 = (int)piVar7;\n          return piVar7;\n        }\n      }\n      piVar4 = (int *)*piVar7;\n      piVar6 = piVar7;\n      piVar7 = piVar4;\n    } while (piVar4 != (int *)0x0);\n  }\n  return piVar4;\n}\n\n" (function_definition "int * __regparm3\nFUN_00024fd0(int *param_1,uint *param_2,char *param_3,size_t param_4,int *param_5,uint *param_6)\n\n{\n  int *piVar1;\n  char cVar2;\n  int iVar3;\n  int *piVar4;\n  char *pcVar5;\n  int *piVar6;\n  int *piVar7;\n  uint uVar8;\n  \n  if (param_4 == 0) {\n    uVar8 = 0;\n  }\n  else {\n    uVar8 = 0;\n    pcVar5 = param_3;\n    do {\n      cVar2 = *pcVar5;\n      pcVar5 = pcVar5 + 1;\n      uVar8 = uVar8 + cVar2 * 0x20001;\n      uVar8 = uVar8 ^ uVar8 >> 2;\n    } while (param_3 + param_4 != pcVar5);\n  }\n  uVar8 = uVar8 + param_4 * 0x20001;\n  uVar8 = uVar8 ^ uVar8 >> 2;\n  if (param_6 != (uint *)0x0) {\n    *param_6 = uVar8;\n  }\n  piVar1 = (int *)(*param_1 + (uVar8 % *param_2) * 4);\n  if (param_5 != (int *)0x0) {\n    *param_5 = (int)piVar1;\n  }\n  if ((int *)*piVar1 == (int *)0x0) {\n    piVar4 = (int *)0x0;\n  }\n  else {\n    piVar6 = (int *)0x0;\n    piVar7 = (int *)*piVar1;\n    do {\n      if (uVar8 == piVar7[2]) {\n        pcVar5 = (char *)piVar7[1];\n        iVar3 = strncmp(pcVar5,param_3,param_4);\n        if ((iVar3 == 0) && (pcVar5[param_4] == '\0')) {\n          if (piVar6 == (int *)0x0) {\n            return piVar7;\n          }\n          *piVar6 = *piVar7;\n          *piVar7 = *piVar1;\n          *piVar1 = (int)piVar7;\n          return piVar7;\n        }\n      }\n      piVar4 = (int *)*piVar7;\n      piVar6 = piVar7;\n      piVar7 = piVar4;\n    } while (piVar4 != (int *)0x0);\n  }\n  return piVar4;\n}" primitive_type (pointer_declarator "* __regparm3\nFUN_00024fd0(int *param_1,uint *param_2,char *param_3,size_t param_4,int *param_5,uint *param_6)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_00024fd0(int *param_1,uint *param_2,char *param_3,size_t param_4,int *param_5,uint *param_6)" identifier (parameter_list "(int *param_1,uint *param_2,char *param_3,size_t param_4,int *param_5,uint *param_6)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "size_t param_4" primitive_type identifier) , (parameter_declaration "int *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "uint *param_6" type_identifier (pointer_declarator "*param_6" * identifier)) )))) (compound_statement "{\n  int *piVar1;\n  char cVar2;\n  int iVar3;\n  int *piVar4;\n  char *pcVar5;\n  int *piVar6;\n  int *piVar7;\n  uint uVar8;\n  \n  if (param_4 == 0) {\n    uVar8 = 0;\n  }\n  else {\n    uVar8 = 0;\n    pcVar5 = param_3;\n    do {\n      cVar2 = *pcVar5;\n      pcVar5 = pcVar5 + 1;\n      uVar8 = uVar8 + cVar2 * 0x20001;\n      uVar8 = uVar8 ^ uVar8 >> 2;\n    } while (param_3 + param_4 != pcVar5);\n  }\n  uVar8 = uVar8 + param_4 * 0x20001;\n  uVar8 = uVar8 ^ uVar8 >> 2;\n  if (param_6 != (uint *)0x0) {\n    *param_6 = uVar8;\n  }\n  piVar1 = (int *)(*param_1 + (uVar8 % *param_2) * 4);\n  if (param_5 != (int *)0x0) {\n    *param_5 = (int)piVar1;\n  }\n  if ((int *)*piVar1 == (int *)0x0) {\n    piVar4 = (int *)0x0;\n  }\n  else {\n    piVar6 = (int *)0x0;\n    piVar7 = (int *)*piVar1;\n    do {\n      if (uVar8 == piVar7[2]) {\n        pcVar5 = (char *)piVar7[1];\n        iVar3 = strncmp(pcVar5,param_3,param_4);\n        if ((iVar3 == 0) && (pcVar5[param_4] == '\0')) {\n          if (piVar6 == (int *)0x0) {\n            return piVar7;\n          }\n          *piVar6 = *piVar7;\n          *piVar7 = *piVar1;\n          *piVar1 = (int)piVar7;\n          return piVar7;\n        }\n      }\n      piVar4 = (int *)*piVar7;\n      piVar6 = piVar7;\n      piVar7 = piVar4;\n    } while (piVar4 != (int *)0x0);\n  }\n  return piVar4;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "uint uVar8;" type_identifier identifier ;) (if_statement "if (param_4 == 0) {\n    uVar8 = 0;\n  }\n  else {\n    uVar8 = 0;\n    pcVar5 = param_3;\n    do {\n      cVar2 = *pcVar5;\n      pcVar5 = pcVar5 + 1;\n      uVar8 = uVar8 + cVar2 * 0x20001;\n      uVar8 = uVar8 ^ uVar8 >> 2;\n    } while (param_3 + param_4 != pcVar5);\n  }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar8 = 0;\n  }" { (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar8 = 0;\n    pcVar5 = param_3;\n    do {\n      cVar2 = *pcVar5;\n      pcVar5 = pcVar5 + 1;\n      uVar8 = uVar8 + cVar2 * 0x20001;\n      uVar8 = uVar8 ^ uVar8 >> 2;\n    } while (param_3 + param_4 != pcVar5);\n  }" else (compound_statement "{\n    uVar8 = 0;\n    pcVar5 = param_3;\n    do {\n      cVar2 = *pcVar5;\n      pcVar5 = pcVar5 + 1;\n      uVar8 = uVar8 + cVar2 * 0x20001;\n      uVar8 = uVar8 ^ uVar8 >> 2;\n    } while (param_3 + param_4 != pcVar5);\n  }" { (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (expression_statement "pcVar5 = param_3;" (assignment_expression "pcVar5 = param_3" identifier = identifier) ;) (do_statement "do {\n      cVar2 = *pcVar5;\n      pcVar5 = pcVar5 + 1;\n      uVar8 = uVar8 + cVar2 * 0x20001;\n      uVar8 = uVar8 ^ uVar8 >> 2;\n    } while (param_3 + param_4 != pcVar5);" do (compound_statement "{\n      cVar2 = *pcVar5;\n      pcVar5 = pcVar5 + 1;\n      uVar8 = uVar8 + cVar2 * 0x20001;\n      uVar8 = uVar8 ^ uVar8 >> 2;\n    }" { (expression_statement "cVar2 = *pcVar5;" (assignment_expression "cVar2 = *pcVar5" identifier = (pointer_expression "*pcVar5" * identifier)) ;) (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" identifier = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) (expression_statement "uVar8 = uVar8 + cVar2 * 0x20001;" (assignment_expression "uVar8 = uVar8 + cVar2 * 0x20001" identifier = (binary_expression "uVar8 + cVar2 * 0x20001" identifier + (binary_expression "cVar2 * 0x20001" identifier * number_literal))) ;) (expression_statement "uVar8 = uVar8 ^ uVar8 >> 2;" (assignment_expression "uVar8 = uVar8 ^ uVar8 >> 2" identifier = (binary_expression "uVar8 ^ uVar8 >> 2" identifier ^ (binary_expression "uVar8 >> 2" identifier >> number_literal))) ;) }) while (parenthesized_expression "(param_3 + param_4 != pcVar5)" ( (binary_expression "param_3 + param_4 != pcVar5" (binary_expression "param_3 + param_4" identifier + identifier) != identifier) )) ;) }))) (expression_statement "uVar8 = uVar8 + param_4 * 0x20001;" (assignment_expression "uVar8 = uVar8 + param_4 * 0x20001" identifier = (binary_expression "uVar8 + param_4 * 0x20001" identifier + (binary_expression "param_4 * 0x20001" identifier * number_literal))) ;) (expression_statement "uVar8 = uVar8 ^ uVar8 >> 2;" (assignment_expression "uVar8 = uVar8 ^ uVar8 >> 2" identifier = (binary_expression "uVar8 ^ uVar8 >> 2" identifier ^ (binary_expression "uVar8 >> 2" identifier >> number_literal))) ;) (if_statement "if (param_6 != (uint *)0x0) {\n    *param_6 = uVar8;\n  }" if (parenthesized_expression "(param_6 != (uint *)0x0)" ( (binary_expression "param_6 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *param_6 = uVar8;\n  }" { (expression_statement "*param_6 = uVar8;" (assignment_expression "*param_6 = uVar8" (pointer_expression "*param_6" * identifier) = identifier) ;) })) (expression_statement "piVar1 = (int *)(*param_1 + (uVar8 % *param_2) * 4);" (assignment_expression "piVar1 = (int *)(*param_1 + (uVar8 % *param_2) * 4)" identifier = (cast_expression "(int *)(*param_1 + (uVar8 % *param_2) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + (uVar8 % *param_2) * 4)" ( (binary_expression "*param_1 + (uVar8 % *param_2) * 4" (pointer_expression "*param_1" * identifier) + (binary_expression "(uVar8 % *param_2) * 4" (parenthesized_expression "(uVar8 % *param_2)" ( (binary_expression "uVar8 % *param_2" identifier % (pointer_expression "*param_2" * identifier)) )) * number_literal)) )))) ;) (if_statement "if (param_5 != (int *)0x0) {\n    *param_5 = (int)piVar1;\n  }" if (parenthesized_expression "(param_5 != (int *)0x0)" ( (binary_expression "param_5 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *param_5 = (int)piVar1;\n  }" { (expression_statement "*param_5 = (int)piVar1;" (assignment_expression "*param_5 = (int)piVar1" (pointer_expression "*param_5" * identifier) = (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })) (if_statement "if ((int *)*piVar1 == (int *)0x0) {\n    piVar4 = (int *)0x0;\n  }\n  else {\n    piVar6 = (int *)0x0;\n    piVar7 = (int *)*piVar1;\n    do {\n      if (uVar8 == piVar7[2]) {\n        pcVar5 = (char *)piVar7[1];\n        iVar3 = strncmp(pcVar5,param_3,param_4);\n        if ((iVar3 == 0) && (pcVar5[param_4] == '\0')) {\n          if (piVar6 == (int *)0x0) {\n            return piVar7;\n          }\n          *piVar6 = *piVar7;\n          *piVar7 = *piVar1;\n          *piVar1 = (int)piVar7;\n          return piVar7;\n        }\n      }\n      piVar4 = (int *)*piVar7;\n      piVar6 = piVar7;\n      piVar7 = piVar4;\n    } while (piVar4 != (int *)0x0);\n  }" if (parenthesized_expression "((int *)*piVar1 == (int *)0x0)" ( (binary_expression "(int *)*piVar1 == (int *)0x0" (cast_expression "(int *)*piVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier)) == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar4 = (int *)0x0;\n  }" { (expression_statement "piVar4 = (int *)0x0;" (assignment_expression "piVar4 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    piVar6 = (int *)0x0;\n    piVar7 = (int *)*piVar1;\n    do {\n      if (uVar8 == piVar7[2]) {\n        pcVar5 = (char *)piVar7[1];\n        iVar3 = strncmp(pcVar5,param_3,param_4);\n        if ((iVar3 == 0) && (pcVar5[param_4] == '\0')) {\n          if (piVar6 == (int *)0x0) {\n            return piVar7;\n          }\n          *piVar6 = *piVar7;\n          *piVar7 = *piVar1;\n          *piVar1 = (int)piVar7;\n          return piVar7;\n        }\n      }\n      piVar4 = (int *)*piVar7;\n      piVar6 = piVar7;\n      piVar7 = piVar4;\n    } while (piVar4 != (int *)0x0);\n  }" else (compound_statement "{\n    piVar6 = (int *)0x0;\n    piVar7 = (int *)*piVar1;\n    do {\n      if (uVar8 == piVar7[2]) {\n        pcVar5 = (char *)piVar7[1];\n        iVar3 = strncmp(pcVar5,param_3,param_4);\n        if ((iVar3 == 0) && (pcVar5[param_4] == '\0')) {\n          if (piVar6 == (int *)0x0) {\n            return piVar7;\n          }\n          *piVar6 = *piVar7;\n          *piVar7 = *piVar1;\n          *piVar1 = (int)piVar7;\n          return piVar7;\n        }\n      }\n      piVar4 = (int *)*piVar7;\n      piVar6 = piVar7;\n      piVar7 = piVar4;\n    } while (piVar4 != (int *)0x0);\n  }" { (expression_statement "piVar6 = (int *)0x0;" (assignment_expression "piVar6 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "piVar7 = (int *)*piVar1;" (assignment_expression "piVar7 = (int *)*piVar1" identifier = (cast_expression "(int *)*piVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier))) ;) (do_statement "do {\n      if (uVar8 == piVar7[2]) {\n        pcVar5 = (char *)piVar7[1];\n        iVar3 = strncmp(pcVar5,param_3,param_4);\n        if ((iVar3 == 0) && (pcVar5[param_4] == '\0')) {\n          if (piVar6 == (int *)0x0) {\n            return piVar7;\n          }\n          *piVar6 = *piVar7;\n          *piVar7 = *piVar1;\n          *piVar1 = (int)piVar7;\n          return piVar7;\n        }\n      }\n      piVar4 = (int *)*piVar7;\n      piVar6 = piVar7;\n      piVar7 = piVar4;\n    } while (piVar4 != (int *)0x0);" do (compound_statement "{\n      if (uVar8 == piVar7[2]) {\n        pcVar5 = (char *)piVar7[1];\n        iVar3 = strncmp(pcVar5,param_3,param_4);\n        if ((iVar3 == 0) && (pcVar5[param_4] == '\0')) {\n          if (piVar6 == (int *)0x0) {\n            return piVar7;\n          }\n          *piVar6 = *piVar7;\n          *piVar7 = *piVar1;\n          *piVar1 = (int)piVar7;\n          return piVar7;\n        }\n      }\n      piVar4 = (int *)*piVar7;\n      piVar6 = piVar7;\n      piVar7 = piVar4;\n    }" { (if_statement "if (uVar8 == piVar7[2]) {\n        pcVar5 = (char *)piVar7[1];\n        iVar3 = strncmp(pcVar5,param_3,param_4);\n        if ((iVar3 == 0) && (pcVar5[param_4] == '\0')) {\n          if (piVar6 == (int *)0x0) {\n            return piVar7;\n          }\n          *piVar6 = *piVar7;\n          *piVar7 = *piVar1;\n          *piVar1 = (int)piVar7;\n          return piVar7;\n        }\n      }" if (parenthesized_expression "(uVar8 == piVar7[2])" ( (binary_expression "uVar8 == piVar7[2]" identifier == (subscript_expression "piVar7[2]" identifier [ number_literal ])) )) (compound_statement "{\n        pcVar5 = (char *)piVar7[1];\n        iVar3 = strncmp(pcVar5,param_3,param_4);\n        if ((iVar3 == 0) && (pcVar5[param_4] == '\0')) {\n          if (piVar6 == (int *)0x0) {\n            return piVar7;\n          }\n          *piVar6 = *piVar7;\n          *piVar7 = *piVar1;\n          *piVar1 = (int)piVar7;\n          return piVar7;\n        }\n      }" { (expression_statement "pcVar5 = (char *)piVar7[1];" (assignment_expression "pcVar5 = (char *)piVar7[1]" identifier = (cast_expression "(char *)piVar7[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar7[1]" identifier [ number_literal ]))) ;) (expression_statement "iVar3 = strncmp(pcVar5,param_3,param_4);" (assignment_expression "iVar3 = strncmp(pcVar5,param_3,param_4)" identifier = (call_expression "strncmp(pcVar5,param_3,param_4)" identifier (argument_list "(pcVar5,param_3,param_4)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((iVar3 == 0) && (pcVar5[param_4] == '\0')) {\n          if (piVar6 == (int *)0x0) {\n            return piVar7;\n          }\n          *piVar6 = *piVar7;\n          *piVar7 = *piVar1;\n          *piVar1 = (int)piVar7;\n          return piVar7;\n        }" if (parenthesized_expression "((iVar3 == 0) && (pcVar5[param_4] == '\0'))" ( (binary_expression "(iVar3 == 0) && (pcVar5[param_4] == '\0')" (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) && (parenthesized_expression "(pcVar5[param_4] == '\0')" ( (binary_expression "pcVar5[param_4] == '\0'" (subscript_expression "pcVar5[param_4]" identifier [ identifier ]) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n          if (piVar6 == (int *)0x0) {\n            return piVar7;\n          }\n          *piVar6 = *piVar7;\n          *piVar7 = *piVar1;\n          *piVar1 = (int)piVar7;\n          return piVar7;\n        }" { (if_statement "if (piVar6 == (int *)0x0) {\n            return piVar7;\n          }" if (parenthesized_expression "(piVar6 == (int *)0x0)" ( (binary_expression "piVar6 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            return piVar7;\n          }" { (return_statement "return piVar7;" return identifier ;) })) (expression_statement "*piVar6 = *piVar7;" (assignment_expression "*piVar6 = *piVar7" (pointer_expression "*piVar6" * identifier) = (pointer_expression "*piVar7" * identifier)) ;) (expression_statement "*piVar7 = *piVar1;" (assignment_expression "*piVar7 = *piVar1" (pointer_expression "*piVar7" * identifier) = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = (int)piVar7;" (assignment_expression "*piVar1 = (int)piVar7" (pointer_expression "*piVar1" * identifier) = (cast_expression "(int)piVar7" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (return_statement "return piVar7;" return identifier ;) })) })) (expression_statement "piVar4 = (int *)*piVar7;" (assignment_expression "piVar4 = (int *)*piVar7" identifier = (cast_expression "(int *)*piVar7" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar7" * identifier))) ;) (expression_statement "piVar6 = piVar7;" (assignment_expression "piVar6 = piVar7" identifier = identifier) ;) (expression_statement "piVar7 = piVar4;" (assignment_expression "piVar7 = piVar4" identifier = identifier) ;) }) while (parenthesized_expression "(piVar4 != (int *)0x0)" ( (binary_expression "piVar4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) }))) (return_statement "return piVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT ^ (binary_expression IDENT >> LIT))) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) != IDENT) )) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT ^ (binary_expression IDENT >> LIT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + (binary_expression (parenthesized_expression ( (binary_expression IDENT % (pointer_expression * IDENT)) )) * LIT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (subscript_expression IDENT [ LIT ])) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ IDENT ]) == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (return_statement return IDENT ;) })) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int * __regparm3\nFUN_00024fd0(int *param_1,uint *param_2,char *param_3,size_t param_4,int *param_5,uint *param_6)\n\n{\n  int *piVar1;\n  char cVar2;\n  int iVar3;\n  int *piVar4;\n  char *pcVar5;\n  int *piVar6;\n  int *piVar7;\n  uint uVar8;\n  \n  if (param_4 == 0) {\n    uVar8 = 0;\n  }\n  else {\n    uVar8 = 0;\n    pcVar5 = param_3;\n    do {\n      cVar2 = *pcVar5;\n      pcVar5 = pcVar5 + 1;\n      uVar8 = uVar8 + cVar2 * 0x20001;\n      uVar8 = uVar8 ^ uVar8 >> 2;\n    } while (param_3 + param_4 != pcVar5);\n  }\n  uVar8 = uVar8 + param_4 * 0x20001;\n  uVar8 = uVar8 ^ uVar8 >> 2;\n  if (param_6 != (uint *)0x0) {\n    *param_6 = uVar8;\n  }\n  piVar1 = (int *)(*param_1 + (uVar8 % *param_2) * 4);\n  if (param_5 != (int *)0x0) {\n    *param_5 = (int)piVar1;\n  }\n  if ((int *)*piVar1 == (int *)0x0) {\n    piVar4 = (int *)0x0;\n  }\n  else {\n    piVar6 = (int *)0x0;\n    piVar7 = (int *)*piVar1;\n    do {\n      if (uVar8 == piVar7[2]) {\n        pcVar5 = (char *)piVar7[1];\n        iVar3 = strncmp(pcVar5,param_3,param_4);\n        if ((iVar3 == 0) && (pcVar5[param_4] == '\0')) {\n          if (piVar6 == (int *)0x0) {\n            return piVar7;\n          }\n          *piVar6 = *piVar7;\n          *piVar7 = *piVar1;\n          *piVar1 = (int)piVar7;\n          return piVar7;\n        }\n      }\n      piVar4 = (int *)*piVar7;\n      piVar6 = piVar7;\n      piVar7 = piVar4;\n    } while (piVar4 != (int *)0x0);\n  }\n  return piVar4;\n}" (primitive_type "int") (pointer_declarator "* __regparm3\nFUN_00024fd0(int *param_1,uint *param_2,char *param_3,size_t param_4,int *param_5,uint *param_6)" (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00024fd0(int *param_1,uint *param_2,char *param_3,size_t param_4,int *param_5,uint *param_6)" (identifier "FUN_00024fd0") (parameter_list "(int *param_1,uint *param_2,char *param_3,size_t param_4,int *param_5,uint *param_6)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint *param_2" (type_identifier "uint") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "char *param_3" (primitive_type "char") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "size_t param_4" (primitive_type "size_t") (identifier "param_4")) (, ",") (parameter_declaration "int *param_5" (primitive_type "int") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) (, ",") (parameter_declaration "uint *param_6" (type_identifier "uint") (pointer_declarator "*param_6" (* "*") (identifier "param_6"))) () ")")))) (compound_statement "{\n  int *piVar1;\n  char cVar2;\n  int iVar3;\n  int *piVar4;\n  char *pcVar5;\n  int *piVar6;\n  int *piVar7;\n  uint uVar8;\n  \n  if (param_4 == 0) {\n    uVar8 = 0;\n  }\n  else {\n    uVar8 = 0;\n    pcVar5 = param_3;\n    do {\n      cVar2 = *pcVar5;\n      pcVar5 = pcVar5 + 1;\n      uVar8 = uVar8 + cVar2 * 0x20001;\n      uVar8 = uVar8 ^ uVar8 >> 2;\n    } while (param_3 + param_4 != pcVar5);\n  }\n  uVar8 = uVar8 + param_4 * 0x20001;\n  uVar8 = uVar8 ^ uVar8 >> 2;\n  if (param_6 != (uint *)0x0) {\n    *param_6 = uVar8;\n  }\n  piVar1 = (int *)(*param_1 + (uVar8 % *param_2) * 4);\n  if (param_5 != (int *)0x0) {\n    *param_5 = (int)piVar1;\n  }\n  if ((int *)*piVar1 == (int *)0x0) {\n    piVar4 = (int *)0x0;\n  }\n  else {\n    piVar6 = (int *)0x0;\n    piVar7 = (int *)*piVar1;\n    do {\n      if (uVar8 == piVar7[2]) {\n        pcVar5 = (char *)piVar7[1];\n        iVar3 = strncmp(pcVar5,param_3,param_4);\n        if ((iVar3 == 0) && (pcVar5[param_4] == '\0')) {\n          if (piVar6 == (int *)0x0) {\n            return piVar7;\n          }\n          *piVar6 = *piVar7;\n          *piVar7 = *piVar1;\n          *piVar1 = (int)piVar7;\n          return piVar7;\n        }\n      }\n      piVar4 = (int *)*piVar7;\n      piVar6 = piVar7;\n      piVar7 = piVar4;\n    } while (piVar4 != (int *)0x0);\n  }\n  return piVar4;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (declaration "int *piVar7;" (primitive_type "int") (pointer_declarator "*piVar7" (* "*") (identifier "piVar7")) (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (if_statement "if (param_4 == 0) {\n    uVar8 = 0;\n  }\n  else {\n    uVar8 = 0;\n    pcVar5 = param_3;\n    do {\n      cVar2 = *pcVar5;\n      pcVar5 = pcVar5 + 1;\n      uVar8 = uVar8 + cVar2 * 0x20001;\n      uVar8 = uVar8 ^ uVar8 >> 2;\n    } while (param_3 + param_4 != pcVar5);\n  }" (if "if") (parenthesized_expression "(param_4 == 0)" (( "(") (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar8 = 0;\n  }" ({ "{") (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" (identifier "uVar8") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    uVar8 = 0;\n    pcVar5 = param_3;\n    do {\n      cVar2 = *pcVar5;\n      pcVar5 = pcVar5 + 1;\n      uVar8 = uVar8 + cVar2 * 0x20001;\n      uVar8 = uVar8 ^ uVar8 >> 2;\n    } while (param_3 + param_4 != pcVar5);\n  }" (else "else") (compound_statement "{\n    uVar8 = 0;\n    pcVar5 = param_3;\n    do {\n      cVar2 = *pcVar5;\n      pcVar5 = pcVar5 + 1;\n      uVar8 = uVar8 + cVar2 * 0x20001;\n      uVar8 = uVar8 ^ uVar8 >> 2;\n    } while (param_3 + param_4 != pcVar5);\n  }" ({ "{") (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" (identifier "uVar8") (= "=") (number_literal "0")) (; ";")) (expression_statement "pcVar5 = param_3;" (assignment_expression "pcVar5 = param_3" (identifier "pcVar5") (= "=") (identifier "param_3")) (; ";")) (do_statement "do {\n      cVar2 = *pcVar5;\n      pcVar5 = pcVar5 + 1;\n      uVar8 = uVar8 + cVar2 * 0x20001;\n      uVar8 = uVar8 ^ uVar8 >> 2;\n    } while (param_3 + param_4 != pcVar5);" (do "do") (compound_statement "{\n      cVar2 = *pcVar5;\n      pcVar5 = pcVar5 + 1;\n      uVar8 = uVar8 + cVar2 * 0x20001;\n      uVar8 = uVar8 ^ uVar8 >> 2;\n    }" ({ "{") (expression_statement "cVar2 = *pcVar5;" (assignment_expression "cVar2 = *pcVar5" (identifier "cVar2") (= "=") (pointer_expression "*pcVar5" (* "*") (identifier "pcVar5"))) (; ";")) (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" (identifier "pcVar5") (= "=") (binary_expression "pcVar5 + 1" (identifier "pcVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar8 = uVar8 + cVar2 * 0x20001;" (assignment_expression "uVar8 = uVar8 + cVar2 * 0x20001" (identifier "uVar8") (= "=") (binary_expression "uVar8 + cVar2 * 0x20001" (identifier "uVar8") (+ "+") (binary_expression "cVar2 * 0x20001" (identifier "cVar2") (* "*") (number_literal "0x20001")))) (; ";")) (expression_statement "uVar8 = uVar8 ^ uVar8 >> 2;" (assignment_expression "uVar8 = uVar8 ^ uVar8 >> 2" (identifier "uVar8") (= "=") (binary_expression "uVar8 ^ uVar8 >> 2" (identifier "uVar8") (^ "^") (binary_expression "uVar8 >> 2" (identifier "uVar8") (>> ">>") (number_literal "2")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_3 + param_4 != pcVar5)" (( "(") (binary_expression "param_3 + param_4 != pcVar5" (binary_expression "param_3 + param_4" (identifier "param_3") (+ "+") (identifier "param_4")) (!= "!=") (identifier "pcVar5")) () ")")) (; ";")) (} "}")))) (expression_statement "uVar8 = uVar8 + param_4 * 0x20001;" (assignment_expression "uVar8 = uVar8 + param_4 * 0x20001" (identifier "uVar8") (= "=") (binary_expression "uVar8 + param_4 * 0x20001" (identifier "uVar8") (+ "+") (binary_expression "param_4 * 0x20001" (identifier "param_4") (* "*") (number_literal "0x20001")))) (; ";")) (expression_statement "uVar8 = uVar8 ^ uVar8 >> 2;" (assignment_expression "uVar8 = uVar8 ^ uVar8 >> 2" (identifier "uVar8") (= "=") (binary_expression "uVar8 ^ uVar8 >> 2" (identifier "uVar8") (^ "^") (binary_expression "uVar8 >> 2" (identifier "uVar8") (>> ">>") (number_literal "2")))) (; ";")) (if_statement "if (param_6 != (uint *)0x0) {\n    *param_6 = uVar8;\n  }" (if "if") (parenthesized_expression "(param_6 != (uint *)0x0)" (( "(") (binary_expression "param_6 != (uint *)0x0" (identifier "param_6") (!= "!=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    *param_6 = uVar8;\n  }" ({ "{") (expression_statement "*param_6 = uVar8;" (assignment_expression "*param_6 = uVar8" (pointer_expression "*param_6" (* "*") (identifier "param_6")) (= "=") (identifier "uVar8")) (; ";")) (} "}"))) (expression_statement "piVar1 = (int *)(*param_1 + (uVar8 % *param_2) * 4);" (assignment_expression "piVar1 = (int *)(*param_1 + (uVar8 % *param_2) * 4)" (identifier "piVar1") (= "=") (cast_expression "(int *)(*param_1 + (uVar8 % *param_2) * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + (uVar8 % *param_2) * 4)" (( "(") (binary_expression "*param_1 + (uVar8 % *param_2) * 4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (binary_expression "(uVar8 % *param_2) * 4" (parenthesized_expression "(uVar8 % *param_2)" (( "(") (binary_expression "uVar8 % *param_2" (identifier "uVar8") (% "%") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) () ")")) (* "*") (number_literal "4"))) () ")")))) (; ";")) (if_statement "if (param_5 != (int *)0x0) {\n    *param_5 = (int)piVar1;\n  }" (if "if") (parenthesized_expression "(param_5 != (int *)0x0)" (( "(") (binary_expression "param_5 != (int *)0x0" (identifier "param_5") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    *param_5 = (int)piVar1;\n  }" ({ "{") (expression_statement "*param_5 = (int)piVar1;" (assignment_expression "*param_5 = (int)piVar1" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (cast_expression "(int)piVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar1"))) (; ";")) (} "}"))) (if_statement "if ((int *)*piVar1 == (int *)0x0) {\n    piVar4 = (int *)0x0;\n  }\n  else {\n    piVar6 = (int *)0x0;\n    piVar7 = (int *)*piVar1;\n    do {\n      if (uVar8 == piVar7[2]) {\n        pcVar5 = (char *)piVar7[1];\n        iVar3 = strncmp(pcVar5,param_3,param_4);\n        if ((iVar3 == 0) && (pcVar5[param_4] == '\0')) {\n          if (piVar6 == (int *)0x0) {\n            return piVar7;\n          }\n          *piVar6 = *piVar7;\n          *piVar7 = *piVar1;\n          *piVar1 = (int)piVar7;\n          return piVar7;\n        }\n      }\n      piVar4 = (int *)*piVar7;\n      piVar6 = piVar7;\n      piVar7 = piVar4;\n    } while (piVar4 != (int *)0x0);\n  }" (if "if") (parenthesized_expression "((int *)*piVar1 == (int *)0x0)" (( "(") (binary_expression "(int *)*piVar1 == (int *)0x0" (cast_expression "(int *)*piVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    piVar4 = (int *)0x0;\n  }" ({ "{") (expression_statement "piVar4 = (int *)0x0;" (assignment_expression "piVar4 = (int *)0x0" (identifier "piVar4") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}")) (else_clause "else {\n    piVar6 = (int *)0x0;\n    piVar7 = (int *)*piVar1;\n    do {\n      if (uVar8 == piVar7[2]) {\n        pcVar5 = (char *)piVar7[1];\n        iVar3 = strncmp(pcVar5,param_3,param_4);\n        if ((iVar3 == 0) && (pcVar5[param_4] == '\0')) {\n          if (piVar6 == (int *)0x0) {\n            return piVar7;\n          }\n          *piVar6 = *piVar7;\n          *piVar7 = *piVar1;\n          *piVar1 = (int)piVar7;\n          return piVar7;\n        }\n      }\n      piVar4 = (int *)*piVar7;\n      piVar6 = piVar7;\n      piVar7 = piVar4;\n    } while (piVar4 != (int *)0x0);\n  }" (else "else") (compound_statement "{\n    piVar6 = (int *)0x0;\n    piVar7 = (int *)*piVar1;\n    do {\n      if (uVar8 == piVar7[2]) {\n        pcVar5 = (char *)piVar7[1];\n        iVar3 = strncmp(pcVar5,param_3,param_4);\n        if ((iVar3 == 0) && (pcVar5[param_4] == '\0')) {\n          if (piVar6 == (int *)0x0) {\n            return piVar7;\n          }\n          *piVar6 = *piVar7;\n          *piVar7 = *piVar1;\n          *piVar1 = (int)piVar7;\n          return piVar7;\n        }\n      }\n      piVar4 = (int *)*piVar7;\n      piVar6 = piVar7;\n      piVar7 = piVar4;\n    } while (piVar4 != (int *)0x0);\n  }" ({ "{") (expression_statement "piVar6 = (int *)0x0;" (assignment_expression "piVar6 = (int *)0x0" (identifier "piVar6") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "piVar7 = (int *)*piVar1;" (assignment_expression "piVar7 = (int *)*piVar1" (identifier "piVar7") (= "=") (cast_expression "(int *)*piVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar1" (* "*") (identifier "piVar1")))) (; ";")) (do_statement "do {\n      if (uVar8 == piVar7[2]) {\n        pcVar5 = (char *)piVar7[1];\n        iVar3 = strncmp(pcVar5,param_3,param_4);\n        if ((iVar3 == 0) && (pcVar5[param_4] == '\0')) {\n          if (piVar6 == (int *)0x0) {\n            return piVar7;\n          }\n          *piVar6 = *piVar7;\n          *piVar7 = *piVar1;\n          *piVar1 = (int)piVar7;\n          return piVar7;\n        }\n      }\n      piVar4 = (int *)*piVar7;\n      piVar6 = piVar7;\n      piVar7 = piVar4;\n    } while (piVar4 != (int *)0x0);" (do "do") (compound_statement "{\n      if (uVar8 == piVar7[2]) {\n        pcVar5 = (char *)piVar7[1];\n        iVar3 = strncmp(pcVar5,param_3,param_4);\n        if ((iVar3 == 0) && (pcVar5[param_4] == '\0')) {\n          if (piVar6 == (int *)0x0) {\n            return piVar7;\n          }\n          *piVar6 = *piVar7;\n          *piVar7 = *piVar1;\n          *piVar1 = (int)piVar7;\n          return piVar7;\n        }\n      }\n      piVar4 = (int *)*piVar7;\n      piVar6 = piVar7;\n      piVar7 = piVar4;\n    }" ({ "{") (if_statement "if (uVar8 == piVar7[2]) {\n        pcVar5 = (char *)piVar7[1];\n        iVar3 = strncmp(pcVar5,param_3,param_4);\n        if ((iVar3 == 0) && (pcVar5[param_4] == '\0')) {\n          if (piVar6 == (int *)0x0) {\n            return piVar7;\n          }\n          *piVar6 = *piVar7;\n          *piVar7 = *piVar1;\n          *piVar1 = (int)piVar7;\n          return piVar7;\n        }\n      }" (if "if") (parenthesized_expression "(uVar8 == piVar7[2])" (( "(") (binary_expression "uVar8 == piVar7[2]" (identifier "uVar8") (== "==") (subscript_expression "piVar7[2]" (identifier "piVar7") ([ "[") (number_literal "2") (] "]"))) () ")")) (compound_statement "{\n        pcVar5 = (char *)piVar7[1];\n        iVar3 = strncmp(pcVar5,param_3,param_4);\n        if ((iVar3 == 0) && (pcVar5[param_4] == '\0')) {\n          if (piVar6 == (int *)0x0) {\n            return piVar7;\n          }\n          *piVar6 = *piVar7;\n          *piVar7 = *piVar1;\n          *piVar1 = (int)piVar7;\n          return piVar7;\n        }\n      }" ({ "{") (expression_statement "pcVar5 = (char *)piVar7[1];" (assignment_expression "pcVar5 = (char *)piVar7[1]" (identifier "pcVar5") (= "=") (cast_expression "(char *)piVar7[1]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar7[1]" (identifier "piVar7") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "iVar3 = strncmp(pcVar5,param_3,param_4);" (assignment_expression "iVar3 = strncmp(pcVar5,param_3,param_4)" (identifier "iVar3") (= "=") (call_expression "strncmp(pcVar5,param_3,param_4)" (identifier "strncmp") (argument_list "(pcVar5,param_3,param_4)" (( "(") (identifier "pcVar5") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")")))) (; ";")) (if_statement "if ((iVar3 == 0) && (pcVar5[param_4] == '\0')) {\n          if (piVar6 == (int *)0x0) {\n            return piVar7;\n          }\n          *piVar6 = *piVar7;\n          *piVar7 = *piVar1;\n          *piVar1 = (int)piVar7;\n          return piVar7;\n        }" (if "if") (parenthesized_expression "((iVar3 == 0) && (pcVar5[param_4] == '\0'))" (( "(") (binary_expression "(iVar3 == 0) && (pcVar5[param_4] == '\0')" (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(pcVar5[param_4] == '\0')" (( "(") (binary_expression "pcVar5[param_4] == '\0'" (subscript_expression "pcVar5[param_4]" (identifier "pcVar5") ([ "[") (identifier "param_4") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n          if (piVar6 == (int *)0x0) {\n            return piVar7;\n          }\n          *piVar6 = *piVar7;\n          *piVar7 = *piVar1;\n          *piVar1 = (int)piVar7;\n          return piVar7;\n        }" ({ "{") (if_statement "if (piVar6 == (int *)0x0) {\n            return piVar7;\n          }" (if "if") (parenthesized_expression "(piVar6 == (int *)0x0)" (( "(") (binary_expression "piVar6 == (int *)0x0" (identifier "piVar6") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n            return piVar7;\n          }" ({ "{") (return_statement "return piVar7;" (return "return") (identifier "piVar7") (; ";")) (} "}"))) (expression_statement "*piVar6 = *piVar7;" (assignment_expression "*piVar6 = *piVar7" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (= "=") (pointer_expression "*piVar7" (* "*") (identifier "piVar7"))) (; ";")) (expression_statement "*piVar7 = *piVar1;" (assignment_expression "*piVar7 = *piVar1" (pointer_expression "*piVar7" (* "*") (identifier "piVar7")) (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (expression_statement "*piVar1 = (int)piVar7;" (assignment_expression "*piVar1 = (int)piVar7" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (cast_expression "(int)piVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar7"))) (; ";")) (return_statement "return piVar7;" (return "return") (identifier "piVar7") (; ";")) (} "}"))) (} "}"))) (expression_statement "piVar4 = (int *)*piVar7;" (assignment_expression "piVar4 = (int *)*piVar7" (identifier "piVar4") (= "=") (cast_expression "(int *)*piVar7" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar7" (* "*") (identifier "piVar7")))) (; ";")) (expression_statement "piVar6 = piVar7;" (assignment_expression "piVar6 = piVar7" (identifier "piVar6") (= "=") (identifier "piVar7")) (; ";")) (expression_statement "piVar7 = piVar4;" (assignment_expression "piVar7 = piVar4" (identifier "piVar7") (= "=") (identifier "piVar4")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar4 != (int *)0x0)" (( "(") (binary_expression "piVar4 != (int *)0x0" (identifier "piVar4") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (} "}")))) (return_statement "return piVar4;" (return "return") (identifier "piVar4") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: hash_entry * hash_lookup(hash_control * table, char * key, size_t len,
   hash_entry * * * plist, ulong * phash, hash_control * table) */

type_1 * __regparm3
hash_lookup(type_3 *table,char *key,size_t var_5,type_1 ***var_1,type_4 *var_7,
           type_3 *var_6)

{
  type_1 **pphVar1;
  char var_4;
  int var_10;
  type_1 *var_12;
  char *var_2;
  type_1 *var_11;
  type_1 *phVar7;
  type_2 var_3;
  type_1 **var_8;
  
  if (var_1 == (type_1 ***)0x0) {
    var_3 = 0;
  }
  else {
    var_3 = 0;
    var_2 = (char *)var_5;
    do {
      var_4 = *var_2;
      var_2 = var_2 + 1;
      var_3 = var_3 + var_4 * 0x20001;
      var_3 = var_3 ^ var_3 >> 2;
    } while ((char *)((int)var_1 + var_5) != var_2);
  }
  var_3 = var_3 + (int)var_1 * 0x20001;
  var_8 = (type_1 **)(var_3 ^ var_3 >> 2);
  if (var_6 != (type_3 *)0x0) {
    var_6->table = var_8;
  }
  pphVar1 = table->table + (type_2)var_8 % *(type_2 *)key;
  if (var_7 != (type_4 *)0x0) {
    *var_7 = (type_4)pphVar1;
  }
  if (*pphVar1 == (type_1 *)0x0) {
    var_12 = (type_1 *)0x0;
  }
  else {
    var_11 = (type_1 *)0x0;
    phVar7 = *pphVar1;
    do {
      if (var_8 == (type_1 **)phVar7->hash) {
        var_2 = phVar7->string;
        var_10 = var_9(var_2,(char *)var_5,(size_t)var_1);
        if ((var_10 == 0) && (var_2[(int)var_1] == '\0')) {
          if (var_11 == (type_1 *)0x0) {
            return phVar7;
          }
          var_11->next = phVar7->next;
          phVar7->next = *pphVar1;
          *pphVar1 = phVar7;
          return phVar7;
        }
      }
      var_12 = phVar7->next;
      var_11 = phVar7;
      phVar7 = var_12;
    } while (var_12 != (type_1 *)0x0);
  }
  return var_12;
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator (ERROR (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: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (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: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (char_literal (escape_sequence)))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (return_statement (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))))))) (return_statement (identifier)))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int * __regparm3
MASKED(int *param_1,uint *param_2,char *param_3,size_t param_4,int *param_5,uint *param_6)

{
  int *piVar1;
  char cVar2;
  int iVar3;
  int *piVar4;
  char *pcVar5;
  int *piVar6;
  int *piVar7;
  uint uVar8;
  
  if (param_4 == 0) {
    uVar8 = 0;
  }
  else {
    uVar8 = 0;
    pcVar5 = param_3;
    do {
      cVar2 = *pcVar5;
      pcVar5 = pcVar5 + 1;
      uVar8 = uVar8 + cVar2 * 0x20001;
      uVar8 = uVar8 ^ uVar8 >> 2;
    } while (param_3 + param_4 != pcVar5);
  }
  uVar8 = uVar8 + param_4 * 0x20001;
  uVar8 = uVar8 ^ uVar8 >> 2;
  if (param_6 != (uint *)0x0) {
    *param_6 = uVar8;
  }
  piVar1 = (int *)(*param_1 + (uVar8 % *param_2) * 4);
  if (param_5 != (int *)0x0) {
    *param_5 = (int)piVar1;
  }
  if ((int *)*piVar1 == (int *)0x0) {
    piVar4 = (int *)0x0;
  }
  else {
    piVar6 = (int *)0x0;
    piVar7 = (int *)*piVar1;
    do {
      if (uVar8 == piVar7[2]) {
        pcVar5 = (char *)piVar7[1];
        iVar3 = strncmp(pcVar5,param_3,param_4);
        if ((iVar3 == 0) && (pcVar5[param_4] == '\0')) {
          if (piVar6 == (int *)0x0) {
            return piVar7;
          }
          *piVar6 = *piVar7;
          *piVar7 = *piVar1;
          *piVar1 = (int)piVar7;
          return piVar7;
        }
      }
      piVar4 = (int *)*piVar7;
      piVar6 = piVar7;
      piVar7 = piVar4;
    } while (piVar4 != (int *)0x0);
  }
  return piVar4;
}

