
/* WARNING: Unknown calling convention */

void * hash_get_next(Hash_table *table,void *entry)

{
  void **ppvVar1;
  hash_entry *phVar2;
  hash_entry *phVar3;
  
  phVar2 = safe_hasher(table,entry);
  phVar3 = phVar2;
  do {
    ppvVar1 = &phVar3->data;
    phVar3 = phVar3->next;
    if (*ppvVar1 == entry) {
      if (phVar3 != (hash_entry *)0x0) {
        return phVar3->data;
      }
      break;
    }
  } while (phVar3 != (hash_entry *)0x0);
  do {
    phVar2 = phVar2 + 1;
    if (table->bucket_limit <= phVar2) {
      return (void *)0x0;
    }
  } while (phVar2->data == (void *)0x0);
  return phVar2->data;
}



int FUN_00021c00(int param_1,int param_2)

{
  int iVar1;
  int *piVar2;
  int *piVar3;
  
  piVar2 = (int *)FUN_00021610();
  piVar3 = piVar2;
  do {
    iVar1 = *piVar3;
    piVar3 = (int *)piVar3[1];
    if (iVar1 == param_2) {
      if (piVar3 != (int *)0x0) {
        return *piVar3;
      }
      break;
    }
  } while (piVar3 != (int *)0x0);
  do {
    piVar2 = piVar2 + 2;
    if (*(int **)(param_1 + 4) <= piVar2) {
      return 0;
    }
  } while (*piVar2 == 0);
  return *piVar2;
}


PUSH ESI
PUSH EBX
SUB ESP,0x4
MOV EBX,dword ptr [ESP + 0x10]
MOV ESI,dword ptr [ESP + 0x14]
MOV EAX,EBX
MOV EDX,ESI
CALL 0x00021610
MOV ECX,EAX
MOV EDX,EAX
JMP 0x00021c24
TEST EDX,EDX
JZ 0x00021c31
MOV EAX,dword ptr [EDX]
MOV EDX,dword ptr [EDX + 0x4]
CMP EAX,ESI
JNZ 0x00021c20
TEST EDX,EDX
JNZ 0x00021c58
MOV EDX,dword ptr [EBX + 0x4]
JMP 0x00021c46
MOV EAX,dword ptr [ECX]
TEST EAX,EAX
JNZ 0x00021c4f
ADD ECX,0x8
CMP EDX,ECX
JA 0x00021c40
XOR EAX,EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
MOV EAX,dword ptr [EDX]
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "int FUN_00021c00(int param_1,int param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  int *piVar3;\n  \n  piVar2 = (int *)FUN_00021610();\n  piVar3 = piVar2;\n  do {\n    iVar1 = *piVar3;\n    piVar3 = (int *)piVar3[1];\n    if (iVar1 == param_2) {\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }\n  } while (piVar3 != (int *)0x0);\n  do {\n    piVar2 = piVar2 + 2;\n    if (*(int **)(param_1 + 4) <= piVar2) {\n      return 0;\n    }\n  } while (*piVar2 == 0);\n  return *piVar2;\n}\n\n" (function_definition "int FUN_00021c00(int param_1,int param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  int *piVar3;\n  \n  piVar2 = (int *)FUN_00021610();\n  piVar3 = piVar2;\n  do {\n    iVar1 = *piVar3;\n    piVar3 = (int *)piVar3[1];\n    if (iVar1 == param_2) {\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }\n  } while (piVar3 != (int *)0x0);\n  do {\n    piVar2 = piVar2 + 2;\n    if (*(int **)(param_1 + 4) <= piVar2) {\n      return 0;\n    }\n  } while (*piVar2 == 0);\n  return *piVar2;\n}" primitive_type (function_declarator "FUN_00021c00(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int *piVar3;\n  \n  piVar2 = (int *)FUN_00021610();\n  piVar3 = piVar2;\n  do {\n    iVar1 = *piVar3;\n    piVar3 = (int *)piVar3[1];\n    if (iVar1 == param_2) {\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }\n  } while (piVar3 != (int *)0x0);\n  do {\n    piVar2 = piVar2 + 2;\n    if (*(int **)(param_1 + 4) <= piVar2) {\n      return 0;\n    }\n  } while (*piVar2 == 0);\n  return *piVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "piVar2 = (int *)FUN_00021610();" (assignment_expression "piVar2 = (int *)FUN_00021610()" identifier = (cast_expression "(int *)FUN_00021610()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00021610()" identifier (argument_list "()" ( ))))) ;) (expression_statement "piVar3 = piVar2;" (assignment_expression "piVar3 = piVar2" identifier = identifier) ;) (do_statement "do {\n    iVar1 = *piVar3;\n    piVar3 = (int *)piVar3[1];\n    if (iVar1 == param_2) {\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }\n  } while (piVar3 != (int *)0x0);" do (compound_statement "{\n    iVar1 = *piVar3;\n    piVar3 = (int *)piVar3[1];\n    if (iVar1 == param_2) {\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }\n  }" { (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "piVar3 = (int *)piVar3[1];" (assignment_expression "piVar3 = (int *)piVar3[1]" identifier = (cast_expression "(int *)piVar3[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[1]" identifier [ number_literal ]))) ;) (if_statement "if (iVar1 == param_2) {\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }" if (parenthesized_expression "(iVar1 == param_2)" ( (binary_expression "iVar1 == param_2" identifier == identifier) )) (compound_statement "{\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }" { (if_statement "if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }" if (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return *piVar3;\n      }" { (return_statement "return *piVar3;" return (pointer_expression "*piVar3" * identifier) ;) })) (break_statement "break;" break ;) })) }) while (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (do_statement "do {\n    piVar2 = piVar2 + 2;\n    if (*(int **)(param_1 + 4) <= piVar2) {\n      return 0;\n    }\n  } while (*piVar2 == 0);" do (compound_statement "{\n    piVar2 = piVar2 + 2;\n    if (*(int **)(param_1 + 4) <= piVar2) {\n      return 0;\n    }\n  }" { (expression_statement "piVar2 = piVar2 + 2;" (assignment_expression "piVar2 = piVar2 + 2" identifier = (binary_expression "piVar2 + 2" identifier + number_literal)) ;) (if_statement "if (*(int **)(param_1 + 4) <= piVar2) {\n      return 0;\n    }" if (parenthesized_expression "(*(int **)(param_1 + 4) <= piVar2)" ( (binary_expression "*(int **)(param_1 + 4) <= piVar2" (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) while (parenthesized_expression "(*piVar2 == 0)" ( (binary_expression "*piVar2 == 0" (pointer_expression "*piVar2" * identifier) == number_literal) )) ;) (return_statement "return *piVar2;" return (pointer_expression "*piVar2" * identifier) ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nvoid * hash_get_next(Hash_table *table,void *entry)\n\n{\n  void **ppvVar1;\n  hash_entry *phVar2;\n  hash_entry *phVar3;\n  \n  phVar2 = safe_hasher(table,entry);\n  phVar3 = phVar2;\n  do {\n    ppvVar1 = &phVar3->data;\n    phVar3 = phVar3->next;\n    if (*ppvVar1 == entry) {\n      if (phVar3 != (hash_entry *)0x0) {\n        return phVar3->data;\n      }\n      break;\n    }\n  } while (phVar3 != (hash_entry *)0x0);\n  do {\n    phVar2 = phVar2 + 1;\n    if (table->bucket_limit <= phVar2) {\n      return (void *)0x0;\n    }\n  } while (phVar2->data == (void *)0x0);\n  return phVar2->data;\n}\n\n" comment (function_definition "void * hash_get_next(Hash_table *table,void *entry)\n\n{\n  void **ppvVar1;\n  hash_entry *phVar2;\n  hash_entry *phVar3;\n  \n  phVar2 = safe_hasher(table,entry);\n  phVar3 = phVar2;\n  do {\n    ppvVar1 = &phVar3->data;\n    phVar3 = phVar3->next;\n    if (*ppvVar1 == entry) {\n      if (phVar3 != (hash_entry *)0x0) {\n        return phVar3->data;\n      }\n      break;\n    }\n  } while (phVar3 != (hash_entry *)0x0);\n  do {\n    phVar2 = phVar2 + 1;\n    if (table->bucket_limit <= phVar2) {\n      return (void *)0x0;\n    }\n  } while (phVar2->data == (void *)0x0);\n  return phVar2->data;\n}" primitive_type (pointer_declarator "* hash_get_next(Hash_table *table,void *entry)" * (function_declarator "hash_get_next(Hash_table *table,void *entry)" identifier (parameter_list "(Hash_table *table,void *entry)" ( (parameter_declaration "Hash_table *table" type_identifier (pointer_declarator "*table" * identifier)) , (parameter_declaration "void *entry" primitive_type (pointer_declarator "*entry" * identifier)) )))) (compound_statement "{\n  void **ppvVar1;\n  hash_entry *phVar2;\n  hash_entry *phVar3;\n  \n  phVar2 = safe_hasher(table,entry);\n  phVar3 = phVar2;\n  do {\n    ppvVar1 = &phVar3->data;\n    phVar3 = phVar3->next;\n    if (*ppvVar1 == entry) {\n      if (phVar3 != (hash_entry *)0x0) {\n        return phVar3->data;\n      }\n      break;\n    }\n  } while (phVar3 != (hash_entry *)0x0);\n  do {\n    phVar2 = phVar2 + 1;\n    if (table->bucket_limit <= phVar2) {\n      return (void *)0x0;\n    }\n  } while (phVar2->data == (void *)0x0);\n  return phVar2->data;\n}" { (declaration "void **ppvVar1;" primitive_type (pointer_declarator "**ppvVar1" * (pointer_declarator "*ppvVar1" * identifier)) ;) (declaration "hash_entry *phVar2;" type_identifier (pointer_declarator "*phVar2" * identifier) ;) (declaration "hash_entry *phVar3;" type_identifier (pointer_declarator "*phVar3" * identifier) ;) (expression_statement "phVar2 = safe_hasher(table,entry);" (assignment_expression "phVar2 = safe_hasher(table,entry)" identifier = (call_expression "safe_hasher(table,entry)" identifier (argument_list "(table,entry)" ( identifier , identifier )))) ;) (expression_statement "phVar3 = phVar2;" (assignment_expression "phVar3 = phVar2" identifier = identifier) ;) (do_statement "do {\n    ppvVar1 = &phVar3->data;\n    phVar3 = phVar3->next;\n    if (*ppvVar1 == entry) {\n      if (phVar3 != (hash_entry *)0x0) {\n        return phVar3->data;\n      }\n      break;\n    }\n  } while (phVar3 != (hash_entry *)0x0);" do (compound_statement "{\n    ppvVar1 = &phVar3->data;\n    phVar3 = phVar3->next;\n    if (*ppvVar1 == entry) {\n      if (phVar3 != (hash_entry *)0x0) {\n        return phVar3->data;\n      }\n      break;\n    }\n  }" { (expression_statement "ppvVar1 = &phVar3->data;" (assignment_expression "ppvVar1 = &phVar3->data" identifier = (pointer_expression "&phVar3->data" & (field_expression "phVar3->data" identifier -> field_identifier))) ;) (expression_statement "phVar3 = phVar3->next;" (assignment_expression "phVar3 = phVar3->next" identifier = (field_expression "phVar3->next" identifier -> field_identifier)) ;) (if_statement "if (*ppvVar1 == entry) {\n      if (phVar3 != (hash_entry *)0x0) {\n        return phVar3->data;\n      }\n      break;\n    }" if (parenthesized_expression "(*ppvVar1 == entry)" ( (binary_expression "*ppvVar1 == entry" (pointer_expression "*ppvVar1" * identifier) == identifier) )) (compound_statement "{\n      if (phVar3 != (hash_entry *)0x0) {\n        return phVar3->data;\n      }\n      break;\n    }" { (if_statement "if (phVar3 != (hash_entry *)0x0) {\n        return phVar3->data;\n      }" if (parenthesized_expression "(phVar3 != (hash_entry *)0x0)" ( (binary_expression "phVar3 != (hash_entry *)0x0" identifier != (cast_expression "(hash_entry *)0x0" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return phVar3->data;\n      }" { (return_statement "return phVar3->data;" return (field_expression "phVar3->data" identifier -> field_identifier) ;) })) (break_statement "break;" break ;) })) }) while (parenthesized_expression "(phVar3 != (hash_entry *)0x0)" ( (binary_expression "phVar3 != (hash_entry *)0x0" identifier != (cast_expression "(hash_entry *)0x0" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (do_statement "do {\n    phVar2 = phVar2 + 1;\n    if (table->bucket_limit <= phVar2) {\n      return (void *)0x0;\n    }\n  } while (phVar2->data == (void *)0x0);" do (compound_statement "{\n    phVar2 = phVar2 + 1;\n    if (table->bucket_limit <= phVar2) {\n      return (void *)0x0;\n    }\n  }" { (expression_statement "phVar2 = phVar2 + 1;" (assignment_expression "phVar2 = phVar2 + 1" identifier = (binary_expression "phVar2 + 1" identifier + number_literal)) ;) (if_statement "if (table->bucket_limit <= phVar2) {\n      return (void *)0x0;\n    }" if (parenthesized_expression "(table->bucket_limit <= phVar2)" ( (binary_expression "table->bucket_limit <= phVar2" (field_expression "table->bucket_limit" identifier -> field_identifier) <= identifier) )) (compound_statement "{\n      return (void *)0x0;\n    }" { (return_statement "return (void *)0x0;" return (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) }) while (parenthesized_expression "(phVar2->data == (void *)0x0)" ( (binary_expression "phVar2->data == (void *)0x0" (field_expression "phVar2->data" identifier -> field_identifier) == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (return_statement "return phVar2->data;" return (field_expression "phVar2->data" identifier -> field_identifier) ;) })))
(translation_unit "int FUN_00021c00(int param_1,int param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  int *piVar3;\n  \n  piVar2 = (int *)FUN_00021610();\n  piVar3 = piVar2;\n  do {\n    iVar1 = *piVar3;\n    piVar3 = (int *)piVar3[1];\n    if (iVar1 == param_2) {\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }\n  } while (piVar3 != (int *)0x0);\n  do {\n    piVar2 = piVar2 + 2;\n    if (*(int **)(param_1 + 4) <= piVar2) {\n      return 0;\n    }\n  } while (*piVar2 == 0);\n  return *piVar2;\n}\n\n" (function_definition "int FUN_00021c00(int param_1,int param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  int *piVar3;\n  \n  piVar2 = (int *)FUN_00021610();\n  piVar3 = piVar2;\n  do {\n    iVar1 = *piVar3;\n    piVar3 = (int *)piVar3[1];\n    if (iVar1 == param_2) {\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }\n  } while (piVar3 != (int *)0x0);\n  do {\n    piVar2 = piVar2 + 2;\n    if (*(int **)(param_1 + 4) <= piVar2) {\n      return 0;\n    }\n  } while (*piVar2 == 0);\n  return *piVar2;\n}" primitive_type (function_declarator "FUN_00021c00(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int *piVar3;\n  \n  piVar2 = (int *)FUN_00021610();\n  piVar3 = piVar2;\n  do {\n    iVar1 = *piVar3;\n    piVar3 = (int *)piVar3[1];\n    if (iVar1 == param_2) {\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }\n  } while (piVar3 != (int *)0x0);\n  do {\n    piVar2 = piVar2 + 2;\n    if (*(int **)(param_1 + 4) <= piVar2) {\n      return 0;\n    }\n  } while (*piVar2 == 0);\n  return *piVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "piVar2 = (int *)FUN_00021610();" (assignment_expression "piVar2 = (int *)FUN_00021610()" identifier = (cast_expression "(int *)FUN_00021610()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00021610()" identifier (argument_list "()" ( ))))) ;) (expression_statement "piVar3 = piVar2;" (assignment_expression "piVar3 = piVar2" identifier = identifier) ;) (do_statement "do {\n    iVar1 = *piVar3;\n    piVar3 = (int *)piVar3[1];\n    if (iVar1 == param_2) {\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }\n  } while (piVar3 != (int *)0x0);" do (compound_statement "{\n    iVar1 = *piVar3;\n    piVar3 = (int *)piVar3[1];\n    if (iVar1 == param_2) {\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }\n  }" { (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "piVar3 = (int *)piVar3[1];" (assignment_expression "piVar3 = (int *)piVar3[1]" identifier = (cast_expression "(int *)piVar3[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[1]" identifier [ number_literal ]))) ;) (if_statement "if (iVar1 == param_2) {\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }" if (parenthesized_expression "(iVar1 == param_2)" ( (binary_expression "iVar1 == param_2" identifier == identifier) )) (compound_statement "{\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }" { (if_statement "if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }" if (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return *piVar3;\n      }" { (return_statement "return *piVar3;" return (pointer_expression "*piVar3" * identifier) ;) })) (break_statement "break;" break ;) })) }) while (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (do_statement "do {\n    piVar2 = piVar2 + 2;\n    if (*(int **)(param_1 + 4) <= piVar2) {\n      return 0;\n    }\n  } while (*piVar2 == 0);" do (compound_statement "{\n    piVar2 = piVar2 + 2;\n    if (*(int **)(param_1 + 4) <= piVar2) {\n      return 0;\n    }\n  }" { (expression_statement "piVar2 = piVar2 + 2;" (assignment_expression "piVar2 = piVar2 + 2" identifier = (binary_expression "piVar2 + 2" identifier + number_literal)) ;) (if_statement "if (*(int **)(param_1 + 4) <= piVar2) {\n      return 0;\n    }" if (parenthesized_expression "(*(int **)(param_1 + 4) <= piVar2)" ( (binary_expression "*(int **)(param_1 + 4) <= piVar2" (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) while (parenthesized_expression "(*piVar2 == 0)" ( (binary_expression "*piVar2 == 0" (pointer_expression "*piVar2" * identifier) == number_literal) )) ;) (return_statement "return *piVar2;" return (pointer_expression "*piVar2" * identifier) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return (pointer_expression * IDENT) ;) })) (break_statement break ;) })) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= IDENT) )) (compound_statement { (return_statement return LIT ;) })) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) ;) (return_statement return (pointer_expression * IDENT) ;) })))
(function_definition "int FUN_00021c00(int param_1,int param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  int *piVar3;\n  \n  piVar2 = (int *)FUN_00021610();\n  piVar3 = piVar2;\n  do {\n    iVar1 = *piVar3;\n    piVar3 = (int *)piVar3[1];\n    if (iVar1 == param_2) {\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }\n  } while (piVar3 != (int *)0x0);\n  do {\n    piVar2 = piVar2 + 2;\n    if (*(int **)(param_1 + 4) <= piVar2) {\n      return 0;\n    }\n  } while (*piVar2 == 0);\n  return *piVar2;\n}" (primitive_type "int") (function_declarator "FUN_00021c00(int param_1,int param_2)" (identifier "FUN_00021c00") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int *piVar3;\n  \n  piVar2 = (int *)FUN_00021610();\n  piVar3 = piVar2;\n  do {\n    iVar1 = *piVar3;\n    piVar3 = (int *)piVar3[1];\n    if (iVar1 == param_2) {\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }\n  } while (piVar3 != (int *)0x0);\n  do {\n    piVar2 = piVar2 + 2;\n    if (*(int **)(param_1 + 4) <= piVar2) {\n      return 0;\n    }\n  } while (*piVar2 == 0);\n  return *piVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (expression_statement "piVar2 = (int *)FUN_00021610();" (assignment_expression "piVar2 = (int *)FUN_00021610()" (identifier "piVar2") (= "=") (cast_expression "(int *)FUN_00021610()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00021610()" (identifier "FUN_00021610") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "piVar3 = piVar2;" (assignment_expression "piVar3 = piVar2" (identifier "piVar3") (= "=") (identifier "piVar2")) (; ";")) (do_statement "do {\n    iVar1 = *piVar3;\n    piVar3 = (int *)piVar3[1];\n    if (iVar1 == param_2) {\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }\n  } while (piVar3 != (int *)0x0);" (do "do") (compound_statement "{\n    iVar1 = *piVar3;\n    piVar3 = (int *)piVar3[1];\n    if (iVar1 == param_2) {\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }\n  }" ({ "{") (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" (identifier "iVar1") (= "=") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (; ";")) (expression_statement "piVar3 = (int *)piVar3[1];" (assignment_expression "piVar3 = (int *)piVar3[1]" (identifier "piVar3") (= "=") (cast_expression "(int *)piVar3[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")))) (; ";")) (if_statement "if (iVar1 == param_2) {\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }" (if "if") (parenthesized_expression "(iVar1 == param_2)" (( "(") (binary_expression "iVar1 == param_2" (identifier "iVar1") (== "==") (identifier "param_2")) () ")")) (compound_statement "{\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }" ({ "{") (if_statement "if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }" (if "if") (parenthesized_expression "(piVar3 != (int *)0x0)" (( "(") (binary_expression "piVar3 != (int *)0x0" (identifier "piVar3") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        return *piVar3;\n      }" ({ "{") (return_statement "return *piVar3;" (return "return") (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(piVar3 != (int *)0x0)" (( "(") (binary_expression "piVar3 != (int *)0x0" (identifier "piVar3") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (do_statement "do {\n    piVar2 = piVar2 + 2;\n    if (*(int **)(param_1 + 4) <= piVar2) {\n      return 0;\n    }\n  } while (*piVar2 == 0);" (do "do") (compound_statement "{\n    piVar2 = piVar2 + 2;\n    if (*(int **)(param_1 + 4) <= piVar2) {\n      return 0;\n    }\n  }" ({ "{") (expression_statement "piVar2 = piVar2 + 2;" (assignment_expression "piVar2 = piVar2 + 2" (identifier "piVar2") (= "=") (binary_expression "piVar2 + 2" (identifier "piVar2") (+ "+") (number_literal "2"))) (; ";")) (if_statement "if (*(int **)(param_1 + 4) <= piVar2) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(*(int **)(param_1 + 4) <= piVar2)" (( "(") (binary_expression "*(int **)(param_1 + 4) <= piVar2" (pointer_expression "*(int **)(param_1 + 4)" (* "*") (cast_expression "(int **)(param_1 + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (<= "<=") (identifier "piVar2")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(*piVar2 == 0)" (( "(") (binary_expression "*piVar2 == 0" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (== "==") (number_literal "0")) () ")")) (; ";")) (return_statement "return *piVar2;" (return "return") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

void * function_1(type_1 *table,void *var_2)

{
  void **ppvVar1;
  type_2 *var_4;
  type_2 *var_3;
  
  var_4 = var_1(table,var_2);
  var_3 = var_4;
  do {
    ppvVar1 = &var_3->data;
    var_3 = var_3->next;
    if (*ppvVar1 == var_2) {
      if (var_3 != (type_2 *)0x0) {
        return var_3->data;
      }
      break;
    }
  } while (var_3 != (type_2 *)0x0);
  do {
    var_4 = var_4 + 1;
    if (table->bucket_limit <= var_4) {
      return (void *)0x0;
    }
  } while (var_4->data == (void *)0x0);
  return var_4->data;
}


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

int MASKED(int param_1,int param_2)

{
  int iVar1;
  int *piVar2;
  int *piVar3;
  
  piVar2 = (int *)FUN_00021610();
  piVar3 = piVar2;
  do {
    iVar1 = *piVar3;
    piVar3 = (int *)piVar3[1];
    if (iVar1 == param_2) {
      if (piVar3 != (int *)0x0) {
        return *piVar3;
      }
      break;
    }
  } while (piVar3 != (int *)0x0);
  do {
    piVar2 = piVar2 + 2;
    if (*(int **)(param_1 + 4) <= piVar2) {
      return 0;
    }
  } while (*piVar2 == 0);
  return *piVar2;
}

