
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

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

{
  hash_entry *phVar1;
  _Bool _Var2;
  size_t sVar3;
  void *pvVar4;
  
  sVar3 = (*table->hasher)(entry,table->n_buckets);
  if (table->n_buckets <= sVar3) {
                    /* WARNING: Subroutine does not return */
    abort();
  }
  phVar1 = table->bucket + sVar3;
  pvVar4 = phVar1->data;
  if (pvVar4 == (void *)0x0) {
LAB_00029c4c:
    pvVar4 = (void *)0x0;
  }
  else {
    while (pvVar4 != entry) {
      _Var2 = (*table->comparator)(entry,pvVar4);
      if (_Var2) {
        return phVar1->data;
      }
      phVar1 = phVar1->next;
      if (phVar1 == (hash_entry *)0x0) goto LAB_00029c4c;
      pvVar4 = phVar1->data;
    }
  }
  return pvVar4;
}



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

int FUN_00029bf0(int *param_1,int param_2)

{
  int *piVar1;
  char cVar2;
  uint uVar3;
  int iVar4;
  
  uVar3 = (*(code *)param_1[6])(param_2,param_1[2]);
  if ((uint)param_1[2] <= uVar3) {
                    /* WARNING: Subroutine does not return */
    abort();
  }
  piVar1 = (int *)(*param_1 + uVar3 * 8);
  iVar4 = *piVar1;
  if (iVar4 == 0) {
LAB_00029c4c:
    iVar4 = 0;
  }
  else {
    while (iVar4 != param_2) {
      cVar2 = (*(code *)param_1[7])(param_2,iVar4);
      if (cVar2 != '\0') {
        return *piVar1;
      }
      piVar1 = (int *)piVar1[1];
      if (piVar1 == (int *)0x0) goto LAB_00029c4c;
      iVar4 = *piVar1;
    }
  }
  return iVar4;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EDI,dword ptr [ESP + 0x10]
CALL 0x000142a0
ADD EBX,0x1e1f0
MOV ESI,dword ptr [ESP + 0x14]
SUB ESP,0x8
PUSH dword ptr [EDI + 0x8]
PUSH ESI
CALL dword ptr [EDI + 0x18]
ADD ESP,0x10
CMP EAX,dword ptr [EDI + 0x8]
JNC 0x00012776
MOV EDX,dword ptr [EDI]
LEA EBX,[EDX + EAX*0x8]
MOV EAX,dword ptr [EBX]
TEST EAX,EAX
JZ 0x00029c4c
CMP EAX,ESI
JNZ 0x00029c36
JMP 0x00029c4e
MOV EAX,dword ptr [EBX]
CMP ESI,EAX
JZ 0x00029c4e
SUB ESP,0x8
PUSH EAX
PUSH ESI
CALL dword ptr [EDI + 0x1c]
ADD ESP,0x10
TEST AL,AL
JNZ 0x00029c58
MOV EBX,dword ptr [EBX + 0x4]
TEST EBX,EBX
JNZ 0x00029c30
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
RET
MOV EAX,dword ptr [EBX]
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_00029bf0(int *param_1,int param_2)\n\n{\n  int *piVar1;\n  char cVar2;\n  uint uVar3;\n  int iVar4;\n  \n  uVar3 = (*(code *)param_1[6])(param_2,param_1[2]);\n  if ((uint)param_1[2] <= uVar3) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  piVar1 = (int *)(*param_1 + uVar3 * 8);\n  iVar4 = *piVar1;\n  if (iVar4 == 0) {\nLAB_00029c4c:\n    iVar4 = 0;\n  }\n  else {\n    while (iVar4 != param_2) {\n      cVar2 = (*(code *)param_1[7])(param_2,iVar4);\n      if (cVar2 != '\0') {\n        return *piVar1;\n      }\n      piVar1 = (int *)piVar1[1];\n      if (piVar1 == (int *)0x0) goto LAB_00029c4c;\n      iVar4 = *piVar1;\n    }\n  }\n  return iVar4;\n}\n\n" comment (function_definition "int FUN_00029bf0(int *param_1,int param_2)\n\n{\n  int *piVar1;\n  char cVar2;\n  uint uVar3;\n  int iVar4;\n  \n  uVar3 = (*(code *)param_1[6])(param_2,param_1[2]);\n  if ((uint)param_1[2] <= uVar3) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  piVar1 = (int *)(*param_1 + uVar3 * 8);\n  iVar4 = *piVar1;\n  if (iVar4 == 0) {\nLAB_00029c4c:\n    iVar4 = 0;\n  }\n  else {\n    while (iVar4 != param_2) {\n      cVar2 = (*(code *)param_1[7])(param_2,iVar4);\n      if (cVar2 != '\0') {\n        return *piVar1;\n      }\n      piVar1 = (int *)piVar1[1];\n      if (piVar1 == (int *)0x0) goto LAB_00029c4c;\n      iVar4 = *piVar1;\n    }\n  }\n  return iVar4;\n}" primitive_type (function_declarator "FUN_00029bf0(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  char cVar2;\n  uint uVar3;\n  int iVar4;\n  \n  uVar3 = (*(code *)param_1[6])(param_2,param_1[2]);\n  if ((uint)param_1[2] <= uVar3) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  piVar1 = (int *)(*param_1 + uVar3 * 8);\n  iVar4 = *piVar1;\n  if (iVar4 == 0) {\nLAB_00029c4c:\n    iVar4 = 0;\n  }\n  else {\n    while (iVar4 != param_2) {\n      cVar2 = (*(code *)param_1[7])(param_2,iVar4);\n      if (cVar2 != '\0') {\n        return *piVar1;\n      }\n      piVar1 = (int *)piVar1[1];\n      if (piVar1 == (int *)0x0) goto LAB_00029c4c;\n      iVar4 = *piVar1;\n    }\n  }\n  return iVar4;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "uVar3 = (*(code *)param_1[6])(param_2,param_1[2]);" (assignment_expression "uVar3 = (*(code *)param_1[6])(param_2,param_1[2])" identifier = (call_expression "(*(code *)param_1[6])(param_2,param_1[2])" (parenthesized_expression "(*(code *)param_1[6])" ( (pointer_expression "*(code *)param_1[6]" * (cast_expression "(code *)param_1[6]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[6]" identifier [ number_literal ]))) )) (argument_list "(param_2,param_1[2])" ( identifier , (subscript_expression "param_1[2]" identifier [ number_literal ]) )))) ;) (if_statement "if ((uint)param_1[2] <= uVar3) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" if (parenthesized_expression "((uint)param_1[2] <= uVar3)" ( (binary_expression "(uint)param_1[2] <= uVar3" (cast_expression "(uint)param_1[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) <= identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" { comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "piVar1 = (int *)(*param_1 + uVar3 * 8);" (assignment_expression "piVar1 = (int *)(*param_1 + uVar3 * 8)" identifier = (cast_expression "(int *)(*param_1 + uVar3 * 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + uVar3 * 8)" ( (binary_expression "*param_1 + uVar3 * 8" (pointer_expression "*param_1" * identifier) + (binary_expression "uVar3 * 8" identifier * number_literal)) )))) ;) (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (if_statement "if (iVar4 == 0) {\nLAB_00029c4c:\n    iVar4 = 0;\n  }\n  else {\n    while (iVar4 != param_2) {\n      cVar2 = (*(code *)param_1[7])(param_2,iVar4);\n      if (cVar2 != '\0') {\n        return *piVar1;\n      }\n      piVar1 = (int *)piVar1[1];\n      if (piVar1 == (int *)0x0) goto LAB_00029c4c;\n      iVar4 = *piVar1;\n    }\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00029c4c:\n    iVar4 = 0;\n  }" { (labeled_statement "LAB_00029c4c:\n    iVar4 = 0;" statement_identifier : (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;)) }) (else_clause "else {\n    while (iVar4 != param_2) {\n      cVar2 = (*(code *)param_1[7])(param_2,iVar4);\n      if (cVar2 != '\0') {\n        return *piVar1;\n      }\n      piVar1 = (int *)piVar1[1];\n      if (piVar1 == (int *)0x0) goto LAB_00029c4c;\n      iVar4 = *piVar1;\n    }\n  }" else (compound_statement "{\n    while (iVar4 != param_2) {\n      cVar2 = (*(code *)param_1[7])(param_2,iVar4);\n      if (cVar2 != '\0') {\n        return *piVar1;\n      }\n      piVar1 = (int *)piVar1[1];\n      if (piVar1 == (int *)0x0) goto LAB_00029c4c;\n      iVar4 = *piVar1;\n    }\n  }" { (while_statement "while (iVar4 != param_2) {\n      cVar2 = (*(code *)param_1[7])(param_2,iVar4);\n      if (cVar2 != '\0') {\n        return *piVar1;\n      }\n      piVar1 = (int *)piVar1[1];\n      if (piVar1 == (int *)0x0) goto LAB_00029c4c;\n      iVar4 = *piVar1;\n    }" while (parenthesized_expression "(iVar4 != param_2)" ( (binary_expression "iVar4 != param_2" identifier != identifier) )) (compound_statement "{\n      cVar2 = (*(code *)param_1[7])(param_2,iVar4);\n      if (cVar2 != '\0') {\n        return *piVar1;\n      }\n      piVar1 = (int *)piVar1[1];\n      if (piVar1 == (int *)0x0) goto LAB_00029c4c;\n      iVar4 = *piVar1;\n    }" { (expression_statement "cVar2 = (*(code *)param_1[7])(param_2,iVar4);" (assignment_expression "cVar2 = (*(code *)param_1[7])(param_2,iVar4)" identifier = (call_expression "(*(code *)param_1[7])(param_2,iVar4)" (parenthesized_expression "(*(code *)param_1[7])" ( (pointer_expression "*(code *)param_1[7]" * (cast_expression "(code *)param_1[7]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[7]" identifier [ number_literal ]))) )) (argument_list "(param_2,iVar4)" ( identifier , identifier )))) ;) (if_statement "if (cVar2 != '\0') {\n        return *piVar1;\n      }" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        return *piVar1;\n      }" { (return_statement "return *piVar1;" return (pointer_expression "*piVar1" * identifier) ;) })) (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) goto LAB_00029c4c;" 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)) )) (goto_statement "goto LAB_00029c4c;" goto statement_identifier ;)) (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) })) }))) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid * hash_lookup(Hash_table *table,void *entry)\n\n{\n  hash_entry *phVar1;\n  _Bool _Var2;\n  size_t sVar3;\n  void *pvVar4;\n  \n  sVar3 = (*table->hasher)(entry,table->n_buckets);\n  if (table->n_buckets <= sVar3) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  phVar1 = table->bucket + sVar3;\n  pvVar4 = phVar1->data;\n  if (pvVar4 == (void *)0x0) {\nLAB_00029c4c:\n    pvVar4 = (void *)0x0;\n  }\n  else {\n    while (pvVar4 != entry) {\n      _Var2 = (*table->comparator)(entry,pvVar4);\n      if (_Var2) {\n        return phVar1->data;\n      }\n      phVar1 = phVar1->next;\n      if (phVar1 == (hash_entry *)0x0) goto LAB_00029c4c;\n      pvVar4 = phVar1->data;\n    }\n  }\n  return pvVar4;\n}\n\n" comment comment (function_definition "void * hash_lookup(Hash_table *table,void *entry)\n\n{\n  hash_entry *phVar1;\n  _Bool _Var2;\n  size_t sVar3;\n  void *pvVar4;\n  \n  sVar3 = (*table->hasher)(entry,table->n_buckets);\n  if (table->n_buckets <= sVar3) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  phVar1 = table->bucket + sVar3;\n  pvVar4 = phVar1->data;\n  if (pvVar4 == (void *)0x0) {\nLAB_00029c4c:\n    pvVar4 = (void *)0x0;\n  }\n  else {\n    while (pvVar4 != entry) {\n      _Var2 = (*table->comparator)(entry,pvVar4);\n      if (_Var2) {\n        return phVar1->data;\n      }\n      phVar1 = phVar1->next;\n      if (phVar1 == (hash_entry *)0x0) goto LAB_00029c4c;\n      pvVar4 = phVar1->data;\n    }\n  }\n  return pvVar4;\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  hash_entry *phVar1;\n  _Bool _Var2;\n  size_t sVar3;\n  void *pvVar4;\n  \n  sVar3 = (*table->hasher)(entry,table->n_buckets);\n  if (table->n_buckets <= sVar3) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  phVar1 = table->bucket + sVar3;\n  pvVar4 = phVar1->data;\n  if (pvVar4 == (void *)0x0) {\nLAB_00029c4c:\n    pvVar4 = (void *)0x0;\n  }\n  else {\n    while (pvVar4 != entry) {\n      _Var2 = (*table->comparator)(entry,pvVar4);\n      if (_Var2) {\n        return phVar1->data;\n      }\n      phVar1 = phVar1->next;\n      if (phVar1 == (hash_entry *)0x0) goto LAB_00029c4c;\n      pvVar4 = phVar1->data;\n    }\n  }\n  return pvVar4;\n}" { (declaration "hash_entry *phVar1;" type_identifier (pointer_declarator "*phVar1" * identifier) ;) (declaration "_Bool _Var2;" type_identifier identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "void *pvVar4;" primitive_type (pointer_declarator "*pvVar4" * identifier) ;) (expression_statement "sVar3 = (*table->hasher)(entry,table->n_buckets);" (assignment_expression "sVar3 = (*table->hasher)(entry,table->n_buckets)" identifier = (call_expression "(*table->hasher)(entry,table->n_buckets)" (parenthesized_expression "(*table->hasher)" ( (pointer_expression "*table->hasher" * (field_expression "table->hasher" identifier -> field_identifier)) )) (argument_list "(entry,table->n_buckets)" ( identifier , (field_expression "table->n_buckets" identifier -> field_identifier) )))) ;) (if_statement "if (table->n_buckets <= sVar3) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" if (parenthesized_expression "(table->n_buckets <= sVar3)" ( (binary_expression "table->n_buckets <= sVar3" (field_expression "table->n_buckets" identifier -> field_identifier) <= identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" { comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "phVar1 = table->bucket + sVar3;" (assignment_expression "phVar1 = table->bucket + sVar3" identifier = (binary_expression "table->bucket + sVar3" (field_expression "table->bucket" identifier -> field_identifier) + identifier)) ;) (expression_statement "pvVar4 = phVar1->data;" (assignment_expression "pvVar4 = phVar1->data" identifier = (field_expression "phVar1->data" identifier -> field_identifier)) ;) (if_statement "if (pvVar4 == (void *)0x0) {\nLAB_00029c4c:\n    pvVar4 = (void *)0x0;\n  }\n  else {\n    while (pvVar4 != entry) {\n      _Var2 = (*table->comparator)(entry,pvVar4);\n      if (_Var2) {\n        return phVar1->data;\n      }\n      phVar1 = phVar1->next;\n      if (phVar1 == (hash_entry *)0x0) goto LAB_00029c4c;\n      pvVar4 = phVar1->data;\n    }\n  }" if (parenthesized_expression "(pvVar4 == (void *)0x0)" ( (binary_expression "pvVar4 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_00029c4c:\n    pvVar4 = (void *)0x0;\n  }" { (labeled_statement "LAB_00029c4c:\n    pvVar4 = (void *)0x0;" statement_identifier : (expression_statement "pvVar4 = (void *)0x0;" (assignment_expression "pvVar4 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) }) (else_clause "else {\n    while (pvVar4 != entry) {\n      _Var2 = (*table->comparator)(entry,pvVar4);\n      if (_Var2) {\n        return phVar1->data;\n      }\n      phVar1 = phVar1->next;\n      if (phVar1 == (hash_entry *)0x0) goto LAB_00029c4c;\n      pvVar4 = phVar1->data;\n    }\n  }" else (compound_statement "{\n    while (pvVar4 != entry) {\n      _Var2 = (*table->comparator)(entry,pvVar4);\n      if (_Var2) {\n        return phVar1->data;\n      }\n      phVar1 = phVar1->next;\n      if (phVar1 == (hash_entry *)0x0) goto LAB_00029c4c;\n      pvVar4 = phVar1->data;\n    }\n  }" { (while_statement "while (pvVar4 != entry) {\n      _Var2 = (*table->comparator)(entry,pvVar4);\n      if (_Var2) {\n        return phVar1->data;\n      }\n      phVar1 = phVar1->next;\n      if (phVar1 == (hash_entry *)0x0) goto LAB_00029c4c;\n      pvVar4 = phVar1->data;\n    }" while (parenthesized_expression "(pvVar4 != entry)" ( (binary_expression "pvVar4 != entry" identifier != identifier) )) (compound_statement "{\n      _Var2 = (*table->comparator)(entry,pvVar4);\n      if (_Var2) {\n        return phVar1->data;\n      }\n      phVar1 = phVar1->next;\n      if (phVar1 == (hash_entry *)0x0) goto LAB_00029c4c;\n      pvVar4 = phVar1->data;\n    }" { (expression_statement "_Var2 = (*table->comparator)(entry,pvVar4);" (assignment_expression "_Var2 = (*table->comparator)(entry,pvVar4)" identifier = (call_expression "(*table->comparator)(entry,pvVar4)" (parenthesized_expression "(*table->comparator)" ( (pointer_expression "*table->comparator" * (field_expression "table->comparator" identifier -> field_identifier)) )) (argument_list "(entry,pvVar4)" ( identifier , identifier )))) ;) (if_statement "if (_Var2) {\n        return phVar1->data;\n      }" if (parenthesized_expression "(_Var2)" ( identifier )) (compound_statement "{\n        return phVar1->data;\n      }" { (return_statement "return phVar1->data;" return (field_expression "phVar1->data" identifier -> field_identifier) ;) })) (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) goto LAB_00029c4c;" 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)) )) (goto_statement "goto LAB_00029c4c;" goto statement_identifier ;)) (expression_statement "pvVar4 = phVar1->data;" (assignment_expression "pvVar4 = phVar1->data" identifier = (field_expression "phVar1->data" identifier -> field_identifier)) ;) })) }))) (return_statement "return pvVar4;" return identifier ;) })))
(translation_unit "int FUN_00029bf0(int *param_1,int param_2)\n\n{\n  int *piVar1;\n  char cVar2;\n  uint uVar3;\n  int iVar4;\n  \n  uVar3 = (*(code *)param_1[6])(param_2,param_1[2]);\n  if ((uint)param_1[2] <= uVar3) {\n                    \n    abort();\n  }\n  piVar1 = (int *)(*param_1 + uVar3 * 8);\n  iVar4 = *piVar1;\n  if (iVar4 == 0) {\nLAB_00029c4c:\n    iVar4 = 0;\n  }\n  else {\n    while (iVar4 != param_2) {\n      cVar2 = (*(code *)param_1[7])(param_2,iVar4);\n      if (cVar2 != '\0') {\n        return *piVar1;\n      }\n      piVar1 = (int *)piVar1[1];\n      if (piVar1 == (int *)0x0) goto LAB_00029c4c;\n      iVar4 = *piVar1;\n    }\n  }\n  return iVar4;\n}\n\n" (function_definition "int FUN_00029bf0(int *param_1,int param_2)\n\n{\n  int *piVar1;\n  char cVar2;\n  uint uVar3;\n  int iVar4;\n  \n  uVar3 = (*(code *)param_1[6])(param_2,param_1[2]);\n  if ((uint)param_1[2] <= uVar3) {\n                    \n    abort();\n  }\n  piVar1 = (int *)(*param_1 + uVar3 * 8);\n  iVar4 = *piVar1;\n  if (iVar4 == 0) {\nLAB_00029c4c:\n    iVar4 = 0;\n  }\n  else {\n    while (iVar4 != param_2) {\n      cVar2 = (*(code *)param_1[7])(param_2,iVar4);\n      if (cVar2 != '\0') {\n        return *piVar1;\n      }\n      piVar1 = (int *)piVar1[1];\n      if (piVar1 == (int *)0x0) goto LAB_00029c4c;\n      iVar4 = *piVar1;\n    }\n  }\n  return iVar4;\n}" primitive_type (function_declarator "FUN_00029bf0(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  char cVar2;\n  uint uVar3;\n  int iVar4;\n  \n  uVar3 = (*(code *)param_1[6])(param_2,param_1[2]);\n  if ((uint)param_1[2] <= uVar3) {\n                    \n    abort();\n  }\n  piVar1 = (int *)(*param_1 + uVar3 * 8);\n  iVar4 = *piVar1;\n  if (iVar4 == 0) {\nLAB_00029c4c:\n    iVar4 = 0;\n  }\n  else {\n    while (iVar4 != param_2) {\n      cVar2 = (*(code *)param_1[7])(param_2,iVar4);\n      if (cVar2 != '\0') {\n        return *piVar1;\n      }\n      piVar1 = (int *)piVar1[1];\n      if (piVar1 == (int *)0x0) goto LAB_00029c4c;\n      iVar4 = *piVar1;\n    }\n  }\n  return iVar4;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "uVar3 = (*(code *)param_1[6])(param_2,param_1[2]);" (assignment_expression "uVar3 = (*(code *)param_1[6])(param_2,param_1[2])" identifier = (call_expression "(*(code *)param_1[6])(param_2,param_1[2])" (parenthesized_expression "(*(code *)param_1[6])" ( (pointer_expression "*(code *)param_1[6]" * (cast_expression "(code *)param_1[6]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[6]" identifier [ number_literal ]))) )) (argument_list "(param_2,param_1[2])" ( identifier , (subscript_expression "param_1[2]" identifier [ number_literal ]) )))) ;) (if_statement "if ((uint)param_1[2] <= uVar3) {\n                    \n    abort();\n  }" if (parenthesized_expression "((uint)param_1[2] <= uVar3)" ( (binary_expression "(uint)param_1[2] <= uVar3" (cast_expression "(uint)param_1[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) <= identifier) )) (compound_statement "{\n                    \n    abort();\n  }" { (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "piVar1 = (int *)(*param_1 + uVar3 * 8);" (assignment_expression "piVar1 = (int *)(*param_1 + uVar3 * 8)" identifier = (cast_expression "(int *)(*param_1 + uVar3 * 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + uVar3 * 8)" ( (binary_expression "*param_1 + uVar3 * 8" (pointer_expression "*param_1" * identifier) + (binary_expression "uVar3 * 8" identifier * number_literal)) )))) ;) (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (if_statement "if (iVar4 == 0) {\nLAB_00029c4c:\n    iVar4 = 0;\n  }\n  else {\n    while (iVar4 != param_2) {\n      cVar2 = (*(code *)param_1[7])(param_2,iVar4);\n      if (cVar2 != '\0') {\n        return *piVar1;\n      }\n      piVar1 = (int *)piVar1[1];\n      if (piVar1 == (int *)0x0) goto LAB_00029c4c;\n      iVar4 = *piVar1;\n    }\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00029c4c:\n    iVar4 = 0;\n  }" { (labeled_statement "LAB_00029c4c:\n    iVar4 = 0;" statement_identifier : (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;)) }) (else_clause "else {\n    while (iVar4 != param_2) {\n      cVar2 = (*(code *)param_1[7])(param_2,iVar4);\n      if (cVar2 != '\0') {\n        return *piVar1;\n      }\n      piVar1 = (int *)piVar1[1];\n      if (piVar1 == (int *)0x0) goto LAB_00029c4c;\n      iVar4 = *piVar1;\n    }\n  }" else (compound_statement "{\n    while (iVar4 != param_2) {\n      cVar2 = (*(code *)param_1[7])(param_2,iVar4);\n      if (cVar2 != '\0') {\n        return *piVar1;\n      }\n      piVar1 = (int *)piVar1[1];\n      if (piVar1 == (int *)0x0) goto LAB_00029c4c;\n      iVar4 = *piVar1;\n    }\n  }" { (while_statement "while (iVar4 != param_2) {\n      cVar2 = (*(code *)param_1[7])(param_2,iVar4);\n      if (cVar2 != '\0') {\n        return *piVar1;\n      }\n      piVar1 = (int *)piVar1[1];\n      if (piVar1 == (int *)0x0) goto LAB_00029c4c;\n      iVar4 = *piVar1;\n    }" while (parenthesized_expression "(iVar4 != param_2)" ( (binary_expression "iVar4 != param_2" identifier != identifier) )) (compound_statement "{\n      cVar2 = (*(code *)param_1[7])(param_2,iVar4);\n      if (cVar2 != '\0') {\n        return *piVar1;\n      }\n      piVar1 = (int *)piVar1[1];\n      if (piVar1 == (int *)0x0) goto LAB_00029c4c;\n      iVar4 = *piVar1;\n    }" { (expression_statement "cVar2 = (*(code *)param_1[7])(param_2,iVar4);" (assignment_expression "cVar2 = (*(code *)param_1[7])(param_2,iVar4)" identifier = (call_expression "(*(code *)param_1[7])(param_2,iVar4)" (parenthesized_expression "(*(code *)param_1[7])" ( (pointer_expression "*(code *)param_1[7]" * (cast_expression "(code *)param_1[7]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[7]" identifier [ number_literal ]))) )) (argument_list "(param_2,iVar4)" ( identifier , identifier )))) ;) (if_statement "if (cVar2 != '\0') {\n        return *piVar1;\n      }" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        return *piVar1;\n      }" { (return_statement "return *piVar1;" return (pointer_expression "*piVar1" * identifier) ;) })) (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) goto LAB_00029c4c;" 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)) )) (goto_statement "goto LAB_00029c4c;" goto statement_identifier ;)) (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) })) }))) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) <= IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) }) (else_clause else (compound_statement { (while_statement while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return (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 == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) }))) (return_statement return IDENT ;) })))
(function_definition "int FUN_00029bf0(int *param_1,int param_2)\n\n{\n  int *piVar1;\n  char cVar2;\n  uint uVar3;\n  int iVar4;\n  \n  uVar3 = (*(code *)param_1[6])(param_2,param_1[2]);\n  if ((uint)param_1[2] <= uVar3) {\n                    \n    abort();\n  }\n  piVar1 = (int *)(*param_1 + uVar3 * 8);\n  iVar4 = *piVar1;\n  if (iVar4 == 0) {\nLAB_00029c4c:\n    iVar4 = 0;\n  }\n  else {\n    while (iVar4 != param_2) {\n      cVar2 = (*(code *)param_1[7])(param_2,iVar4);\n      if (cVar2 != '\0') {\n        return *piVar1;\n      }\n      piVar1 = (int *)piVar1[1];\n      if (piVar1 == (int *)0x0) goto LAB_00029c4c;\n      iVar4 = *piVar1;\n    }\n  }\n  return iVar4;\n}" (primitive_type "int") (function_declarator "FUN_00029bf0(int *param_1,int param_2)" (identifier "FUN_00029bf0") (parameter_list "(int *param_1,int param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int *piVar1;\n  char cVar2;\n  uint uVar3;\n  int iVar4;\n  \n  uVar3 = (*(code *)param_1[6])(param_2,param_1[2]);\n  if ((uint)param_1[2] <= uVar3) {\n                    \n    abort();\n  }\n  piVar1 = (int *)(*param_1 + uVar3 * 8);\n  iVar4 = *piVar1;\n  if (iVar4 == 0) {\nLAB_00029c4c:\n    iVar4 = 0;\n  }\n  else {\n    while (iVar4 != param_2) {\n      cVar2 = (*(code *)param_1[7])(param_2,iVar4);\n      if (cVar2 != '\0') {\n        return *piVar1;\n      }\n      piVar1 = (int *)piVar1[1];\n      if (piVar1 == (int *)0x0) goto LAB_00029c4c;\n      iVar4 = *piVar1;\n    }\n  }\n  return iVar4;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (expression_statement "uVar3 = (*(code *)param_1[6])(param_2,param_1[2]);" (assignment_expression "uVar3 = (*(code *)param_1[6])(param_2,param_1[2])" (identifier "uVar3") (= "=") (call_expression "(*(code *)param_1[6])(param_2,param_1[2])" (parenthesized_expression "(*(code *)param_1[6])" (( "(") (pointer_expression "*(code *)param_1[6]" (* "*") (cast_expression "(code *)param_1[6]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")))) () ")")) (argument_list "(param_2,param_1[2])" (( "(") (identifier "param_2") (, ",") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) () ")")))) (; ";")) (if_statement "if ((uint)param_1[2] <= uVar3) {\n                    \n    abort();\n  }" (if "if") (parenthesized_expression "((uint)param_1[2] <= uVar3)" (( "(") (binary_expression "(uint)param_1[2] <= uVar3" (cast_expression "(uint)param_1[2]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (<= "<=") (identifier "uVar3")) () ")")) (compound_statement "{\n                    \n    abort();\n  }" ({ "{") (expression_statement "abort();" (call_expression "abort()" (identifier "abort") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "piVar1 = (int *)(*param_1 + uVar3 * 8);" (assignment_expression "piVar1 = (int *)(*param_1 + uVar3 * 8)" (identifier "piVar1") (= "=") (cast_expression "(int *)(*param_1 + uVar3 * 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + uVar3 * 8)" (( "(") (binary_expression "*param_1 + uVar3 * 8" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (binary_expression "uVar3 * 8" (identifier "uVar3") (* "*") (number_literal "8"))) () ")")))) (; ";")) (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" (identifier "iVar4") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (if_statement "if (iVar4 == 0) {\nLAB_00029c4c:\n    iVar4 = 0;\n  }\n  else {\n    while (iVar4 != param_2) {\n      cVar2 = (*(code *)param_1[7])(param_2,iVar4);\n      if (cVar2 != '\0') {\n        return *piVar1;\n      }\n      piVar1 = (int *)piVar1[1];\n      if (piVar1 == (int *)0x0) goto LAB_00029c4c;\n      iVar4 = *piVar1;\n    }\n  }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00029c4c:\n    iVar4 = 0;\n  }" ({ "{") (labeled_statement "LAB_00029c4c:\n    iVar4 = 0;" (statement_identifier "LAB_00029c4c") (: ":") (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";"))) (} "}")) (else_clause "else {\n    while (iVar4 != param_2) {\n      cVar2 = (*(code *)param_1[7])(param_2,iVar4);\n      if (cVar2 != '\0') {\n        return *piVar1;\n      }\n      piVar1 = (int *)piVar1[1];\n      if (piVar1 == (int *)0x0) goto LAB_00029c4c;\n      iVar4 = *piVar1;\n    }\n  }" (else "else") (compound_statement "{\n    while (iVar4 != param_2) {\n      cVar2 = (*(code *)param_1[7])(param_2,iVar4);\n      if (cVar2 != '\0') {\n        return *piVar1;\n      }\n      piVar1 = (int *)piVar1[1];\n      if (piVar1 == (int *)0x0) goto LAB_00029c4c;\n      iVar4 = *piVar1;\n    }\n  }" ({ "{") (while_statement "while (iVar4 != param_2) {\n      cVar2 = (*(code *)param_1[7])(param_2,iVar4);\n      if (cVar2 != '\0') {\n        return *piVar1;\n      }\n      piVar1 = (int *)piVar1[1];\n      if (piVar1 == (int *)0x0) goto LAB_00029c4c;\n      iVar4 = *piVar1;\n    }" (while "while") (parenthesized_expression "(iVar4 != param_2)" (( "(") (binary_expression "iVar4 != param_2" (identifier "iVar4") (!= "!=") (identifier "param_2")) () ")")) (compound_statement "{\n      cVar2 = (*(code *)param_1[7])(param_2,iVar4);\n      if (cVar2 != '\0') {\n        return *piVar1;\n      }\n      piVar1 = (int *)piVar1[1];\n      if (piVar1 == (int *)0x0) goto LAB_00029c4c;\n      iVar4 = *piVar1;\n    }" ({ "{") (expression_statement "cVar2 = (*(code *)param_1[7])(param_2,iVar4);" (assignment_expression "cVar2 = (*(code *)param_1[7])(param_2,iVar4)" (identifier "cVar2") (= "=") (call_expression "(*(code *)param_1[7])(param_2,iVar4)" (parenthesized_expression "(*(code *)param_1[7])" (( "(") (pointer_expression "*(code *)param_1[7]" (* "*") (cast_expression "(code *)param_1[7]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")))) () ")")) (argument_list "(param_2,iVar4)" (( "(") (identifier "param_2") (, ",") (identifier "iVar4") () ")")))) (; ";")) (if_statement "if (cVar2 != '\0') {\n        return *piVar1;\n      }" (if "if") (parenthesized_expression "(cVar2 != '\0')" (( "(") (binary_expression "cVar2 != '\0'" (identifier "cVar2") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        return *piVar1;\n      }" ({ "{") (return_statement "return *piVar1;" (return "return") (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (} "}"))) (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) goto LAB_00029c4c;" (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"))) () ")")) (goto_statement "goto LAB_00029c4c;" (goto "goto") (statement_identifier "LAB_00029c4c") (; ";"))) (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" (identifier "iVar4") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (} "}"))) (} "}")))) (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

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

{
  type_2 *var_5;
  type_3 _Var2;
  size_t var_1;
  void *var_3;
  
  var_1 = (*table->hasher)(var_4,table->n_buckets);
  if (table->n_buckets <= var_1) {
                    /* WARNING: Subroutine does not return */
    var_2();
  }
  var_5 = table->bucket + var_1;
  var_3 = var_5->data;
  if (var_3 == (void *)0x0) {
LAB_00029c4c:
    var_3 = (void *)0x0;
  }
  else {
    while (var_3 != var_4) {
      _Var2 = (*table->comparator)(var_4,var_3);
      if (_Var2) {
        return var_5->data;
      }
      var_5 = var_5->next;
      if (var_5 == (type_2 *)0x0) goto LAB_00029c4c;
      var_3 = var_5->data;
    }
  }
  return var_3;
}


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

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

int MASKED(int *param_1,int param_2)

{
  int *piVar1;
  char cVar2;
  uint uVar3;
  int iVar4;
  
  uVar3 = (*(code *)param_1[6])(param_2,param_1[2]);
  if ((uint)param_1[2] <= uVar3) {
                    /* WARNING: Subroutine does not return */
    abort();
  }
  piVar1 = (int *)(*param_1 + uVar3 * 8);
  iVar4 = *piVar1;
  if (iVar4 == 0) {
LAB_00029c4c:
    iVar4 = 0;
  }
  else {
    while (iVar4 != param_2) {
      cVar2 = (*(code *)param_1[7])(param_2,iVar4);
      if (cVar2 != '\0') {
        return *piVar1;
      }
      piVar1 = (int *)piVar1[1];
      if (piVar1 == (int *)0x0) goto LAB_00029c4c;
      iVar4 = *piVar1;
    }
  }
  return iVar4;
}

