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

{
  undefined3 extraout_var;
  hash_entry *phVar1;
  _Bool _Var2;
  void *pvVar3;
  
  phVar1 = safe_hasher(table,entry);
  pvVar3 = phVar1->data;
  if (pvVar3 == (void *)0x0) {
    return (void *)0x0;
  }
  while( true ) {
    if (pvVar3 == entry) {
      return entry;
    }
    _Var2 = (*table->comparator)(entry,pvVar3);
    if (CONCAT31(extraout_var,_Var2) != 0) break;
    phVar1 = phVar1->next;
    if (phVar1 == (hash_entry *)0x0) {
      return (void *)0x0;
    }
    pvVar3 = phVar1->data;
  }
  return phVar1->data;
}



int hash_lookup(int param_1,int param_2)

{
  int *piVar1;
  int iVar2;
  
  piVar1 = (int *)FUN_0001c758();
  iVar2 = *piVar1;
  if (iVar2 == 0) {
    return 0;
  }
  while( true ) {
    if (iVar2 == param_2) {
      return param_2;
    }
    iVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar2);
    if (iVar2 != 0) break;
    piVar1 = (int *)piVar1[1];
    if (piVar1 == (int *)0x0) {
      return 0;
    }
    iVar2 = *piVar1;
  }
  return *piVar1;
}


lui gp,0x2
addiu gp,gp,-0x1d38
addu gp,gp,t9
lw t9,-0x7fc8(gp)
addiu sp,sp,-0x28
addiu t9,t9,-0x38a8
sw s2,0x20(sp)
sw s1,0x1c(sp)
or s2,a0,zero
sw gp,0x10(sp)
or s1,a1,zero
sw ra,0x24(sp)
bal 0x0001c758
_sw s0,0x18(sp)
lw v1,0x0(v0)
beq v1,zero,0x0001ce80
_or s0,v0,zero
b 0x0001ce58
_nop
lw v1,0x0(s0)
beq v1,s1,0x0001cea0
_or a1,v1,zero
lw t9,0x1c(s2)
jalr t9
_or a0,s1,zero
bne v0,zero,0x0001ce9c
_nop
lw s0,0x4(s0)
bne s0,zero,0x0001ce54
_nop
lw ra,0x24(sp)
or v0,zero,zero
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
lw s1,0x0(s0)
lw ra,0x24(sp)
or v0,s1,zero
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "int hash_lookup(int param_1,int param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)FUN_0001c758();\n  iVar2 = *piVar1;\n  if (iVar2 == 0) {\n    return 0;\n  }\n  while( true ) {\n    if (iVar2 == param_2) {\n      return param_2;\n    }\n    iVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar2);\n    if (iVar2 != 0) break;\n    piVar1 = (int *)piVar1[1];\n    if (piVar1 == (int *)0x0) {\n      return 0;\n    }\n    iVar2 = *piVar1;\n  }\n  return *piVar1;\n}\n\n" (function_definition "int hash_lookup(int param_1,int param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)FUN_0001c758();\n  iVar2 = *piVar1;\n  if (iVar2 == 0) {\n    return 0;\n  }\n  while( true ) {\n    if (iVar2 == param_2) {\n      return param_2;\n    }\n    iVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar2);\n    if (iVar2 != 0) break;\n    piVar1 = (int *)piVar1[1];\n    if (piVar1 == (int *)0x0) {\n      return 0;\n    }\n    iVar2 = *piVar1;\n  }\n  return *piVar1;\n}" primitive_type (function_declarator "hash_lookup(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 *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)FUN_0001c758();\n  iVar2 = *piVar1;\n  if (iVar2 == 0) {\n    return 0;\n  }\n  while( true ) {\n    if (iVar2 == param_2) {\n      return param_2;\n    }\n    iVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar2);\n    if (iVar2 != 0) break;\n    piVar1 = (int *)piVar1[1];\n    if (piVar1 == (int *)0x0) {\n      return 0;\n    }\n    iVar2 = *piVar1;\n  }\n  return *piVar1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "piVar1 = (int *)FUN_0001c758();" (assignment_expression "piVar1 = (int *)FUN_0001c758()" identifier = (cast_expression "(int *)FUN_0001c758()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001c758()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (while_statement "while( true ) {\n    if (iVar2 == param_2) {\n      return param_2;\n    }\n    iVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar2);\n    if (iVar2 != 0) break;\n    piVar1 = (int *)piVar1[1];\n    if (piVar1 == (int *)0x0) {\n      return 0;\n    }\n    iVar2 = *piVar1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (iVar2 == param_2) {\n      return param_2;\n    }\n    iVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar2);\n    if (iVar2 != 0) break;\n    piVar1 = (int *)piVar1[1];\n    if (piVar1 == (int *)0x0) {\n      return 0;\n    }\n    iVar2 = *piVar1;\n  }" { (if_statement "if (iVar2 == param_2) {\n      return param_2;\n    }" if (parenthesized_expression "(iVar2 == param_2)" ( (binary_expression "iVar2 == param_2" identifier == identifier) )) (compound_statement "{\n      return param_2;\n    }" { (return_statement "return param_2;" return identifier ;) })) (expression_statement "iVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar2);" (assignment_expression "iVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar2)" identifier = (call_expression "(**(code **)(param_1 + 0x1c))(param_2,iVar2)" (parenthesized_expression "(**(code **)(param_1 + 0x1c))" ( (pointer_expression "**(code **)(param_1 + 0x1c)" * (pointer_expression "*(code **)(param_1 + 0x1c)" * (cast_expression "(code **)(param_1 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) )) (argument_list "(param_2,iVar2)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 != 0) break;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (break_statement "break;" break ;)) (expression_statement "piVar1 = (int *)piVar1[1];" (assignment_expression "piVar1 = (int *)piVar1[1]" identifier = (cast_expression "(int *)piVar1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[1]" identifier [ number_literal ]))) ;) (if_statement "if (piVar1 == (int *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) })) (return_statement "return *piVar1;" return (pointer_expression "*piVar1" * identifier) ;) })))
(translation_unit "void * hash_lookup(Hash_table *table,void *entry)\n\n{\n  undefined3 extraout_var;\n  hash_entry *phVar1;\n  _Bool _Var2;\n  void *pvVar3;\n  \n  phVar1 = safe_hasher(table,entry);\n  pvVar3 = phVar1->data;\n  if (pvVar3 == (void *)0x0) {\n    return (void *)0x0;\n  }\n  while( true ) {\n    if (pvVar3 == entry) {\n      return entry;\n    }\n    _Var2 = (*table->comparator)(entry,pvVar3);\n    if (CONCAT31(extraout_var,_Var2) != 0) break;\n    phVar1 = phVar1->next;\n    if (phVar1 == (hash_entry *)0x0) {\n      return (void *)0x0;\n    }\n    pvVar3 = phVar1->data;\n  }\n  return phVar1->data;\n}\n\n" (function_definition "void * hash_lookup(Hash_table *table,void *entry)\n\n{\n  undefined3 extraout_var;\n  hash_entry *phVar1;\n  _Bool _Var2;\n  void *pvVar3;\n  \n  phVar1 = safe_hasher(table,entry);\n  pvVar3 = phVar1->data;\n  if (pvVar3 == (void *)0x0) {\n    return (void *)0x0;\n  }\n  while( true ) {\n    if (pvVar3 == entry) {\n      return entry;\n    }\n    _Var2 = (*table->comparator)(entry,pvVar3);\n    if (CONCAT31(extraout_var,_Var2) != 0) break;\n    phVar1 = phVar1->next;\n    if (phVar1 == (hash_entry *)0x0) {\n      return (void *)0x0;\n    }\n    pvVar3 = phVar1->data;\n  }\n  return phVar1->data;\n}" primitive_type (pointer_declarator "* hash_lookup(Hash_table *table,void *entry)" * (function_declarator "hash_lookup(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  undefined3 extraout_var;\n  hash_entry *phVar1;\n  _Bool _Var2;\n  void *pvVar3;\n  \n  phVar1 = safe_hasher(table,entry);\n  pvVar3 = phVar1->data;\n  if (pvVar3 == (void *)0x0) {\n    return (void *)0x0;\n  }\n  while( true ) {\n    if (pvVar3 == entry) {\n      return entry;\n    }\n    _Var2 = (*table->comparator)(entry,pvVar3);\n    if (CONCAT31(extraout_var,_Var2) != 0) break;\n    phVar1 = phVar1->next;\n    if (phVar1 == (hash_entry *)0x0) {\n      return (void *)0x0;\n    }\n    pvVar3 = phVar1->data;\n  }\n  return phVar1->data;\n}" { (declaration "undefined3 extraout_var;" type_identifier identifier ;) (declaration "hash_entry *phVar1;" type_identifier (pointer_declarator "*phVar1" * identifier) ;) (declaration "_Bool _Var2;" type_identifier identifier ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (expression_statement "phVar1 = safe_hasher(table,entry);" (assignment_expression "phVar1 = safe_hasher(table,entry)" identifier = (call_expression "safe_hasher(table,entry)" identifier (argument_list "(table,entry)" ( identifier , identifier )))) ;) (expression_statement "pvVar3 = phVar1->data;" (assignment_expression "pvVar3 = phVar1->data" identifier = (field_expression "phVar1->data" identifier -> field_identifier)) ;) (if_statement "if (pvVar3 == (void *)0x0) {\n    return (void *)0x0;\n  }" if (parenthesized_expression "(pvVar3 == (void *)0x0)" ( (binary_expression "pvVar3 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (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_statement "while( true ) {\n    if (pvVar3 == entry) {\n      return entry;\n    }\n    _Var2 = (*table->comparator)(entry,pvVar3);\n    if (CONCAT31(extraout_var,_Var2) != 0) break;\n    phVar1 = phVar1->next;\n    if (phVar1 == (hash_entry *)0x0) {\n      return (void *)0x0;\n    }\n    pvVar3 = phVar1->data;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (pvVar3 == entry) {\n      return entry;\n    }\n    _Var2 = (*table->comparator)(entry,pvVar3);\n    if (CONCAT31(extraout_var,_Var2) != 0) break;\n    phVar1 = phVar1->next;\n    if (phVar1 == (hash_entry *)0x0) {\n      return (void *)0x0;\n    }\n    pvVar3 = phVar1->data;\n  }" { (if_statement "if (pvVar3 == entry) {\n      return entry;\n    }" if (parenthesized_expression "(pvVar3 == entry)" ( (binary_expression "pvVar3 == entry" identifier == identifier) )) (compound_statement "{\n      return entry;\n    }" { (return_statement "return entry;" return identifier ;) })) (expression_statement "_Var2 = (*table->comparator)(entry,pvVar3);" (assignment_expression "_Var2 = (*table->comparator)(entry,pvVar3)" identifier = (call_expression "(*table->comparator)(entry,pvVar3)" (parenthesized_expression "(*table->comparator)" ( (pointer_expression "*table->comparator" * (field_expression "table->comparator" identifier -> field_identifier)) )) (argument_list "(entry,pvVar3)" ( identifier , identifier )))) ;) (if_statement "if (CONCAT31(extraout_var,_Var2) != 0) break;" if (parenthesized_expression "(CONCAT31(extraout_var,_Var2) != 0)" ( (binary_expression "CONCAT31(extraout_var,_Var2) != 0" (call_expression "CONCAT31(extraout_var,_Var2)" identifier (argument_list "(extraout_var,_Var2)" ( identifier , identifier ))) != number_literal) )) (break_statement "break;" break ;)) (expression_statement "phVar1 = phVar1->next;" (assignment_expression "phVar1 = phVar1->next" identifier = (field_expression "phVar1->next" identifier -> field_identifier)) ;) (if_statement "if (phVar1 == (hash_entry *)0x0) {\n      return (void *)0x0;\n    }" if (parenthesized_expression "(phVar1 == (hash_entry *)0x0)" ( (binary_expression "phVar1 == (hash_entry *)0x0" identifier == (cast_expression "(hash_entry *)0x0" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (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) ;) })) (expression_statement "pvVar3 = phVar1->data;" (assignment_expression "pvVar3 = phVar1->data" identifier = (field_expression "phVar1->data" identifier -> field_identifier)) ;) })) (return_statement "return phVar1->data;" return (field_expression "phVar1->data" identifier -> field_identifier) ;) })))
(translation_unit "int hash_lookup(int param_1,int param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)FUN_0001c758();\n  iVar2 = *piVar1;\n  if (iVar2 == 0) {\n    return 0;\n  }\n  while( true ) {\n    if (iVar2 == param_2) {\n      return param_2;\n    }\n    iVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar2);\n    if (iVar2 != 0) break;\n    piVar1 = (int *)piVar1[1];\n    if (piVar1 == (int *)0x0) {\n      return 0;\n    }\n    iVar2 = *piVar1;\n  }\n  return *piVar1;\n}\n\n" (function_definition "int hash_lookup(int param_1,int param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)FUN_0001c758();\n  iVar2 = *piVar1;\n  if (iVar2 == 0) {\n    return 0;\n  }\n  while( true ) {\n    if (iVar2 == param_2) {\n      return param_2;\n    }\n    iVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar2);\n    if (iVar2 != 0) break;\n    piVar1 = (int *)piVar1[1];\n    if (piVar1 == (int *)0x0) {\n      return 0;\n    }\n    iVar2 = *piVar1;\n  }\n  return *piVar1;\n}" primitive_type (function_declarator "hash_lookup(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 *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)FUN_0001c758();\n  iVar2 = *piVar1;\n  if (iVar2 == 0) {\n    return 0;\n  }\n  while( true ) {\n    if (iVar2 == param_2) {\n      return param_2;\n    }\n    iVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar2);\n    if (iVar2 != 0) break;\n    piVar1 = (int *)piVar1[1];\n    if (piVar1 == (int *)0x0) {\n      return 0;\n    }\n    iVar2 = *piVar1;\n  }\n  return *piVar1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "piVar1 = (int *)FUN_0001c758();" (assignment_expression "piVar1 = (int *)FUN_0001c758()" identifier = (cast_expression "(int *)FUN_0001c758()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001c758()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (while_statement "while( true ) {\n    if (iVar2 == param_2) {\n      return param_2;\n    }\n    iVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar2);\n    if (iVar2 != 0) break;\n    piVar1 = (int *)piVar1[1];\n    if (piVar1 == (int *)0x0) {\n      return 0;\n    }\n    iVar2 = *piVar1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (iVar2 == param_2) {\n      return param_2;\n    }\n    iVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar2);\n    if (iVar2 != 0) break;\n    piVar1 = (int *)piVar1[1];\n    if (piVar1 == (int *)0x0) {\n      return 0;\n    }\n    iVar2 = *piVar1;\n  }" { (if_statement "if (iVar2 == param_2) {\n      return param_2;\n    }" if (parenthesized_expression "(iVar2 == param_2)" ( (binary_expression "iVar2 == param_2" identifier == identifier) )) (compound_statement "{\n      return param_2;\n    }" { (return_statement "return param_2;" return identifier ;) })) (expression_statement "iVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar2);" (assignment_expression "iVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar2)" identifier = (call_expression "(**(code **)(param_1 + 0x1c))(param_2,iVar2)" (parenthesized_expression "(**(code **)(param_1 + 0x1c))" ( (pointer_expression "**(code **)(param_1 + 0x1c)" * (pointer_expression "*(code **)(param_1 + 0x1c)" * (cast_expression "(code **)(param_1 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) )) (argument_list "(param_2,iVar2)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 != 0) break;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (break_statement "break;" break ;)) (expression_statement "piVar1 = (int *)piVar1[1];" (assignment_expression "piVar1 = (int *)piVar1[1]" identifier = (cast_expression "(int *)piVar1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[1]" identifier [ number_literal ]))) ;) (if_statement "if (piVar1 == (int *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) })) (return_statement "return *piVar1;" return (pointer_expression "*piVar1" * identifier) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (break_statement break ;)) (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 == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (return_statement return (pointer_expression * IDENT) ;) })))
(function_definition "int hash_lookup(int param_1,int param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)FUN_0001c758();\n  iVar2 = *piVar1;\n  if (iVar2 == 0) {\n    return 0;\n  }\n  while( true ) {\n    if (iVar2 == param_2) {\n      return param_2;\n    }\n    iVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar2);\n    if (iVar2 != 0) break;\n    piVar1 = (int *)piVar1[1];\n    if (piVar1 == (int *)0x0) {\n      return 0;\n    }\n    iVar2 = *piVar1;\n  }\n  return *piVar1;\n}" (primitive_type "int") (function_declarator "hash_lookup(int param_1,int param_2)" (identifier "hash_lookup") (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 *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)FUN_0001c758();\n  iVar2 = *piVar1;\n  if (iVar2 == 0) {\n    return 0;\n  }\n  while( true ) {\n    if (iVar2 == param_2) {\n      return param_2;\n    }\n    iVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar2);\n    if (iVar2 != 0) break;\n    piVar1 = (int *)piVar1[1];\n    if (piVar1 == (int *)0x0) {\n      return 0;\n    }\n    iVar2 = *piVar1;\n  }\n  return *piVar1;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "piVar1 = (int *)FUN_0001c758();" (assignment_expression "piVar1 = (int *)FUN_0001c758()" (identifier "piVar1") (= "=") (cast_expression "(int *)FUN_0001c758()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001c758()" (identifier "FUN_0001c758") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *piVar1" (identifier "iVar2") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (while_statement "while( true ) {\n    if (iVar2 == param_2) {\n      return param_2;\n    }\n    iVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar2);\n    if (iVar2 != 0) break;\n    piVar1 = (int *)piVar1[1];\n    if (piVar1 == (int *)0x0) {\n      return 0;\n    }\n    iVar2 = *piVar1;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    if (iVar2 == param_2) {\n      return param_2;\n    }\n    iVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar2);\n    if (iVar2 != 0) break;\n    piVar1 = (int *)piVar1[1];\n    if (piVar1 == (int *)0x0) {\n      return 0;\n    }\n    iVar2 = *piVar1;\n  }" ({ "{") (if_statement "if (iVar2 == param_2) {\n      return param_2;\n    }" (if "if") (parenthesized_expression "(iVar2 == param_2)" (( "(") (binary_expression "iVar2 == param_2" (identifier "iVar2") (== "==") (identifier "param_2")) () ")")) (compound_statement "{\n      return param_2;\n    }" ({ "{") (return_statement "return param_2;" (return "return") (identifier "param_2") (; ";")) (} "}"))) (expression_statement "iVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar2);" (assignment_expression "iVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar2)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(param_1 + 0x1c))(param_2,iVar2)" (parenthesized_expression "(**(code **)(param_1 + 0x1c))" (( "(") (pointer_expression "**(code **)(param_1 + 0x1c)" (* "*") (pointer_expression "*(code **)(param_1 + 0x1c)" (* "*") (cast_expression "(code **)(param_1 + 0x1c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))))) () ")")) (argument_list "(param_2,iVar2)" (( "(") (identifier "param_2") (, ",") (identifier "iVar2") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) break;" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "piVar1 = (int *)piVar1[1];" (assignment_expression "piVar1 = (int *)piVar1[1]" (identifier "piVar1") (= "=") (cast_expression "(int *)piVar1[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (if_statement "if (piVar1 == (int *)0x0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(piVar1 == (int *)0x0)" (( "(") (binary_expression "piVar1 == (int *)0x0" (identifier "piVar1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *piVar1" (identifier "iVar2") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (} "}"))) (return_statement "return *piVar1;" (return "return") (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (} "}")))
(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: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) 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: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_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))))) (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 (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))))) (return_statement (pointer_expression argument: (identifier))))))

int MASKED(int param_1,int param_2)

{
  int *piVar1;
  int iVar2;
  
  piVar1 = (int *)FUN_0001c758();
  iVar2 = *piVar1;
  if (iVar2 == 0) {
    return 0;
  }
  while( true ) {
    if (iVar2 == param_2) {
      return param_2;
    }
    iVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar2);
    if (iVar2 != 0) break;
    piVar1 = (int *)piVar1[1];
    if (piVar1 == (int *)0x0) {
      return 0;
    }
    iVar2 = *piVar1;
  }
  return *piVar1;
}

