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

void * __regparm3
hash_find_entry(Hash_table *table,void *entry,hash_entry **bucket_head,_Bool delete)

{
  hash_entry *phVar1;
  hash_entry *phVar2;
  _Bool _Var3;
  size_t sVar4;
  void *pvVar5;
  hash_entry *phVar6;
  
  sVar4 = (*table->hasher)(entry,table->n_buckets);
  if (table->n_buckets <= sVar4) {
                    /* WARNING: Subroutine does not return */
    abort();
  }
  phVar1 = table->bucket + sVar4;
  *bucket_head = phVar1;
  pvVar5 = phVar1->data;
  if (pvVar5 == (void *)0x0) {
    return (void *)0x0;
  }
  if (pvVar5 != entry) {
    _Var3 = (*table->comparator)(entry,pvVar5);
    if (!_Var3) {
      phVar6 = phVar1->next;
      if (phVar6 == (hash_entry *)0x0) {
        return (void *)0x0;
      }
      pvVar5 = phVar6->data;
      do {
        if (entry == pvVar5) {
LAB_00014634:
          if (!delete) {
            return pvVar5;
          }
          phVar1->next = phVar6->next;
          phVar6->data = (void *)0x0;
          phVar6->next = table->free_entry_list;
          table->free_entry_list = phVar6;
          return pvVar5;
        }
        _Var3 = (*table->comparator)(entry,pvVar5);
        if (_Var3) {
          phVar6 = phVar1->next;
          pvVar5 = phVar6->data;
          goto LAB_00014634;
        }
        phVar1 = phVar1->next;
        phVar6 = phVar1->next;
        if (phVar6 == (hash_entry *)0x0) {
          return (void *)0x0;
        }
        pvVar5 = phVar6->data;
      } while( true );
    }
    pvVar5 = phVar1->data;
  }
  if (delete) {
    phVar6 = phVar1->next;
    if (phVar6 != (hash_entry *)0x0) {
      phVar2 = phVar6->next;
      phVar1->data = phVar6->data;
      phVar1->next = phVar2;
      phVar6->data = (void *)0x0;
      phVar6->next = table->free_entry_list;
      table->free_entry_list = phVar6;
      return pvVar5;
    }
    phVar1->data = (void *)0x0;
  }
  return pvVar5;
}



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

int __regparm3 FUN_000145a0(int *param_1,int param_2,undefined4 *param_3,char param_4)

{
  int *piVar1;
  int iVar2;
  char cVar3;
  uint uVar4;
  int iVar5;
  int *piVar6;
  
  uVar4 = (*(code *)param_1[6])(param_2,param_1[2]);
  if ((uint)param_1[2] <= uVar4) {
                    /* WARNING: Subroutine does not return */
    abort();
  }
  piVar1 = (int *)(*param_1 + uVar4 * 8);
  *param_3 = piVar1;
  iVar5 = *piVar1;
  if (iVar5 == 0) {
    return 0;
  }
  if (iVar5 != param_2) {
    cVar3 = (*(code *)param_1[7])(param_2,iVar5);
    if (cVar3 == '\0') {
      piVar6 = (int *)piVar1[1];
      if (piVar6 == (int *)0x0) {
        return 0;
      }
      iVar5 = *piVar6;
      do {
        if (param_2 == iVar5) {
LAB_00014634:
          if (param_4 == '\0') {
            return iVar5;
          }
          piVar1[1] = piVar6[1];
          *piVar6 = 0;
          piVar6[1] = param_1[9];
          param_1[9] = (int)piVar6;
          return iVar5;
        }
        cVar3 = (*(code *)param_1[7])(param_2,iVar5);
        if (cVar3 != '\0') {
          piVar6 = (int *)piVar1[1];
          iVar5 = *piVar6;
          goto LAB_00014634;
        }
        piVar1 = (int *)piVar1[1];
        piVar6 = (int *)piVar1[1];
        if (piVar6 == (int *)0x0) {
          return 0;
        }
        iVar5 = *piVar6;
      } while( true );
    }
    iVar5 = *piVar1;
  }
  if (param_4 != '\0') {
    piVar6 = (int *)piVar1[1];
    if (piVar6 != (int *)0x0) {
      iVar2 = piVar6[1];
      *piVar1 = *piVar6;
      piVar1[1] = iVar2;
      *piVar6 = 0;
      piVar6[1] = param_1[9];
      param_1[9] = (int)piVar6;
      return iVar5;
    }
    *piVar1 = 0;
  }
  return iVar5;
}


PUSH EBP
MOV EBP,ECX
PUSH EDI
MOV EDI,EDX
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00012da0
ADD EBX,0x12a51
SUB ESP,0x24
MOV EAX,dword ptr [ESP + 0x38]
MOV dword ptr [ESP + 0x14],EAX
PUSH dword ptr [ESI + 0x8]
PUSH EDX
CALL dword ptr [ESI + 0x18]
ADD ESP,0x10
CMP EAX,dword ptr [ESI + 0x8]
JNC 0x000125c0
MOV EDX,dword ptr [ESI]
LEA EBX,[EDX + EAX*0x8]
MOV dword ptr [EBP],EBX
MOV EAX,dword ptr [EBX]
TEST EAX,EAX
JZ 0x00014698
CMP EAX,EDI
JZ 0x00014662
SUB ESP,0x8
PUSH EAX
PUSH EDI
CALL dword ptr [ESI + 0x1c]
ADD ESP,0x10
TEST AL,AL
JNZ 0x00014660
MOV EDX,dword ptr [EBX + 0x4]
TEST EDX,EDX
JZ 0x00014698
MOV EAX,dword ptr [EDX]
CMP EDI,EAX
JNZ 0x00014620
JMP 0x00014634
MOV EBX,dword ptr [EBX + 0x4]
MOV EDX,dword ptr [EBX + 0x4]
TEST EDX,EDX
JZ 0x00014698
MOV EAX,dword ptr [EDX]
CMP EAX,EDI
JZ 0x00014634
SUB ESP,0x8
PUSH EAX
PUSH EDI
CALL dword ptr [ESI + 0x1c]
ADD ESP,0x10
TEST AL,AL
JZ 0x00014610
MOV EDX,dword ptr [EBX + 0x4]
MOV EAX,dword ptr [EDX]
CMP byte ptr [ESP + 0xc],0x0
JZ 0x00014650
MOV ECX,dword ptr [EDX + 0x4]
MOV dword ptr [EBX + 0x4],ECX
MOV dword ptr [EDX],0x0
MOV ECX,dword ptr [ESI + 0x24]
MOV dword ptr [EDX + 0x4],ECX
MOV dword ptr [ESI + 0x24],EDX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [EBX]
CMP byte ptr [ESP + 0xc],0x0
JZ 0x00014650
MOV EDX,dword ptr [EBX + 0x4]
TEST EDX,EDX
JZ 0x000146a8
MOV EDI,dword ptr [EDX]
MOV EBP,dword ptr [EDX + 0x4]
MOV dword ptr [EBX],EDI
MOV dword ptr [EBX + 0x4],EBP
MOV dword ptr [EDX],0x0
MOV ECX,dword ptr [ESI + 0x24]
MOV dword ptr [EDX + 0x4],ECX
MOV dword ptr [ESI + 0x24],EDX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD ESP,0x1c
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [EBX],0x0
JMP 0x00014650
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 FUN_000145a0(int *param_1,int param_2,undefined4 *param_3,char param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  char cVar3;\n  uint uVar4;\n  int iVar5;\n  int *piVar6;\n  \n  uVar4 = (*(code *)param_1[6])(param_2,param_1[2]);\n  if ((uint)param_1[2] <= uVar4) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  piVar1 = (int *)(*param_1 + uVar4 * 8);\n  *param_3 = piVar1;\n  iVar5 = *piVar1;\n  if (iVar5 == 0) {\n    return 0;\n  }\n  if (iVar5 != param_2) {\n    cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n    if (cVar3 == '\0') {\n      piVar6 = (int *)piVar1[1];\n      if (piVar6 == (int *)0x0) {\n        return 0;\n      }\n      iVar5 = *piVar6;\n      do {\n        if (param_2 == iVar5) {\nLAB_00014634:\n          if (param_4 == '\0') {\n            return iVar5;\n          }\n          piVar1[1] = piVar6[1];\n          *piVar6 = 0;\n          piVar6[1] = param_1[9];\n          param_1[9] = (int)piVar6;\n          return iVar5;\n        }\n        cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n        if (cVar3 != '\0') {\n          piVar6 = (int *)piVar1[1];\n          iVar5 = *piVar6;\n          goto LAB_00014634;\n        }\n        piVar1 = (int *)piVar1[1];\n        piVar6 = (int *)piVar1[1];\n        if (piVar6 == (int *)0x0) {\n          return 0;\n        }\n        iVar5 = *piVar6;\n      } while( true );\n    }\n    iVar5 = *piVar1;\n  }\n  if (param_4 != '\0') {\n    piVar6 = (int *)piVar1[1];\n    if (piVar6 != (int *)0x0) {\n      iVar2 = piVar6[1];\n      *piVar1 = *piVar6;\n      piVar1[1] = iVar2;\n      *piVar6 = 0;\n      piVar6[1] = param_1[9];\n      param_1[9] = (int)piVar6;\n      return iVar5;\n    }\n    *piVar1 = 0;\n  }\n  return iVar5;\n}\n\n" comment (function_definition "int __regparm3 FUN_000145a0(int *param_1,int param_2,undefined4 *param_3,char param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  char cVar3;\n  uint uVar4;\n  int iVar5;\n  int *piVar6;\n  \n  uVar4 = (*(code *)param_1[6])(param_2,param_1[2]);\n  if ((uint)param_1[2] <= uVar4) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  piVar1 = (int *)(*param_1 + uVar4 * 8);\n  *param_3 = piVar1;\n  iVar5 = *piVar1;\n  if (iVar5 == 0) {\n    return 0;\n  }\n  if (iVar5 != param_2) {\n    cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n    if (cVar3 == '\0') {\n      piVar6 = (int *)piVar1[1];\n      if (piVar6 == (int *)0x0) {\n        return 0;\n      }\n      iVar5 = *piVar6;\n      do {\n        if (param_2 == iVar5) {\nLAB_00014634:\n          if (param_4 == '\0') {\n            return iVar5;\n          }\n          piVar1[1] = piVar6[1];\n          *piVar6 = 0;\n          piVar6[1] = param_1[9];\n          param_1[9] = (int)piVar6;\n          return iVar5;\n        }\n        cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n        if (cVar3 != '\0') {\n          piVar6 = (int *)piVar1[1];\n          iVar5 = *piVar6;\n          goto LAB_00014634;\n        }\n        piVar1 = (int *)piVar1[1];\n        piVar6 = (int *)piVar1[1];\n        if (piVar6 == (int *)0x0) {\n          return 0;\n        }\n        iVar5 = *piVar6;\n      } while( true );\n    }\n    iVar5 = *piVar1;\n  }\n  if (param_4 != '\0') {\n    piVar6 = (int *)piVar1[1];\n    if (piVar6 != (int *)0x0) {\n      iVar2 = piVar6[1];\n      *piVar1 = *piVar6;\n      piVar1[1] = iVar2;\n      *piVar6 = 0;\n      piVar6[1] = param_1[9];\n      param_1[9] = (int)piVar6;\n      return iVar5;\n    }\n    *piVar1 = 0;\n  }\n  return iVar5;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000145a0(int *param_1,int param_2,undefined4 *param_3,char param_4)" identifier (parameter_list "(int *param_1,int param_2,undefined4 *param_3,char param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "char param_4" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  char cVar3;\n  uint uVar4;\n  int iVar5;\n  int *piVar6;\n  \n  uVar4 = (*(code *)param_1[6])(param_2,param_1[2]);\n  if ((uint)param_1[2] <= uVar4) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  piVar1 = (int *)(*param_1 + uVar4 * 8);\n  *param_3 = piVar1;\n  iVar5 = *piVar1;\n  if (iVar5 == 0) {\n    return 0;\n  }\n  if (iVar5 != param_2) {\n    cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n    if (cVar3 == '\0') {\n      piVar6 = (int *)piVar1[1];\n      if (piVar6 == (int *)0x0) {\n        return 0;\n      }\n      iVar5 = *piVar6;\n      do {\n        if (param_2 == iVar5) {\nLAB_00014634:\n          if (param_4 == '\0') {\n            return iVar5;\n          }\n          piVar1[1] = piVar6[1];\n          *piVar6 = 0;\n          piVar6[1] = param_1[9];\n          param_1[9] = (int)piVar6;\n          return iVar5;\n        }\n        cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n        if (cVar3 != '\0') {\n          piVar6 = (int *)piVar1[1];\n          iVar5 = *piVar6;\n          goto LAB_00014634;\n        }\n        piVar1 = (int *)piVar1[1];\n        piVar6 = (int *)piVar1[1];\n        if (piVar6 == (int *)0x0) {\n          return 0;\n        }\n        iVar5 = *piVar6;\n      } while( true );\n    }\n    iVar5 = *piVar1;\n  }\n  if (param_4 != '\0') {\n    piVar6 = (int *)piVar1[1];\n    if (piVar6 != (int *)0x0) {\n      iVar2 = piVar6[1];\n      *piVar1 = *piVar6;\n      piVar1[1] = iVar2;\n      *piVar6 = 0;\n      piVar6[1] = param_1[9];\n      param_1[9] = (int)piVar6;\n      return iVar5;\n    }\n    *piVar1 = 0;\n  }\n  return iVar5;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (expression_statement "uVar4 = (*(code *)param_1[6])(param_2,param_1[2]);" (assignment_expression "uVar4 = (*(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] <= uVar4) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" if (parenthesized_expression "((uint)param_1[2] <= uVar4)" ( (binary_expression "(uint)param_1[2] <= uVar4" (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 + uVar4 * 8);" (assignment_expression "piVar1 = (int *)(*param_1 + uVar4 * 8)" identifier = (cast_expression "(int *)(*param_1 + uVar4 * 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + uVar4 * 8)" ( (binary_expression "*param_1 + uVar4 * 8" (pointer_expression "*param_1" * identifier) + (binary_expression "uVar4 * 8" identifier * number_literal)) )))) ;) (expression_statement "*param_3 = piVar1;" (assignment_expression "*param_3 = piVar1" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "iVar5 = *piVar1;" (assignment_expression "iVar5 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (if_statement "if (iVar5 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (iVar5 != param_2) {\n    cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n    if (cVar3 == '\0') {\n      piVar6 = (int *)piVar1[1];\n      if (piVar6 == (int *)0x0) {\n        return 0;\n      }\n      iVar5 = *piVar6;\n      do {\n        if (param_2 == iVar5) {\nLAB_00014634:\n          if (param_4 == '\0') {\n            return iVar5;\n          }\n          piVar1[1] = piVar6[1];\n          *piVar6 = 0;\n          piVar6[1] = param_1[9];\n          param_1[9] = (int)piVar6;\n          return iVar5;\n        }\n        cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n        if (cVar3 != '\0') {\n          piVar6 = (int *)piVar1[1];\n          iVar5 = *piVar6;\n          goto LAB_00014634;\n        }\n        piVar1 = (int *)piVar1[1];\n        piVar6 = (int *)piVar1[1];\n        if (piVar6 == (int *)0x0) {\n          return 0;\n        }\n        iVar5 = *piVar6;\n      } while( true );\n    }\n    iVar5 = *piVar1;\n  }" if (parenthesized_expression "(iVar5 != param_2)" ( (binary_expression "iVar5 != param_2" identifier != identifier) )) (compound_statement "{\n    cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n    if (cVar3 == '\0') {\n      piVar6 = (int *)piVar1[1];\n      if (piVar6 == (int *)0x0) {\n        return 0;\n      }\n      iVar5 = *piVar6;\n      do {\n        if (param_2 == iVar5) {\nLAB_00014634:\n          if (param_4 == '\0') {\n            return iVar5;\n          }\n          piVar1[1] = piVar6[1];\n          *piVar6 = 0;\n          piVar6[1] = param_1[9];\n          param_1[9] = (int)piVar6;\n          return iVar5;\n        }\n        cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n        if (cVar3 != '\0') {\n          piVar6 = (int *)piVar1[1];\n          iVar5 = *piVar6;\n          goto LAB_00014634;\n        }\n        piVar1 = (int *)piVar1[1];\n        piVar6 = (int *)piVar1[1];\n        if (piVar6 == (int *)0x0) {\n          return 0;\n        }\n        iVar5 = *piVar6;\n      } while( true );\n    }\n    iVar5 = *piVar1;\n  }" { (expression_statement "cVar3 = (*(code *)param_1[7])(param_2,iVar5);" (assignment_expression "cVar3 = (*(code *)param_1[7])(param_2,iVar5)" identifier = (call_expression "(*(code *)param_1[7])(param_2,iVar5)" (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,iVar5)" ( identifier , identifier )))) ;) (if_statement "if (cVar3 == '\0') {\n      piVar6 = (int *)piVar1[1];\n      if (piVar6 == (int *)0x0) {\n        return 0;\n      }\n      iVar5 = *piVar6;\n      do {\n        if (param_2 == iVar5) {\nLAB_00014634:\n          if (param_4 == '\0') {\n            return iVar5;\n          }\n          piVar1[1] = piVar6[1];\n          *piVar6 = 0;\n          piVar6[1] = param_1[9];\n          param_1[9] = (int)piVar6;\n          return iVar5;\n        }\n        cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n        if (cVar3 != '\0') {\n          piVar6 = (int *)piVar1[1];\n          iVar5 = *piVar6;\n          goto LAB_00014634;\n        }\n        piVar1 = (int *)piVar1[1];\n        piVar6 = (int *)piVar1[1];\n        if (piVar6 == (int *)0x0) {\n          return 0;\n        }\n        iVar5 = *piVar6;\n      } while( true );\n    }" if (parenthesized_expression "(cVar3 == '\0')" ( (binary_expression "cVar3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      piVar6 = (int *)piVar1[1];\n      if (piVar6 == (int *)0x0) {\n        return 0;\n      }\n      iVar5 = *piVar6;\n      do {\n        if (param_2 == iVar5) {\nLAB_00014634:\n          if (param_4 == '\0') {\n            return iVar5;\n          }\n          piVar1[1] = piVar6[1];\n          *piVar6 = 0;\n          piVar6[1] = param_1[9];\n          param_1[9] = (int)piVar6;\n          return iVar5;\n        }\n        cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n        if (cVar3 != '\0') {\n          piVar6 = (int *)piVar1[1];\n          iVar5 = *piVar6;\n          goto LAB_00014634;\n        }\n        piVar1 = (int *)piVar1[1];\n        piVar6 = (int *)piVar1[1];\n        if (piVar6 == (int *)0x0) {\n          return 0;\n        }\n        iVar5 = *piVar6;\n      } while( true );\n    }" { (expression_statement "piVar6 = (int *)piVar1[1];" (assignment_expression "piVar6 = (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 (piVar6 == (int *)0x0) {\n        return 0;\n      }" if (parenthesized_expression "(piVar6 == (int *)0x0)" ( (binary_expression "piVar6 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar5 = *piVar6;" (assignment_expression "iVar5 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;) (do_statement "do {\n        if (param_2 == iVar5) {\nLAB_00014634:\n          if (param_4 == '\0') {\n            return iVar5;\n          }\n          piVar1[1] = piVar6[1];\n          *piVar6 = 0;\n          piVar6[1] = param_1[9];\n          param_1[9] = (int)piVar6;\n          return iVar5;\n        }\n        cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n        if (cVar3 != '\0') {\n          piVar6 = (int *)piVar1[1];\n          iVar5 = *piVar6;\n          goto LAB_00014634;\n        }\n        piVar1 = (int *)piVar1[1];\n        piVar6 = (int *)piVar1[1];\n        if (piVar6 == (int *)0x0) {\n          return 0;\n        }\n        iVar5 = *piVar6;\n      } while( true );" do (compound_statement "{\n        if (param_2 == iVar5) {\nLAB_00014634:\n          if (param_4 == '\0') {\n            return iVar5;\n          }\n          piVar1[1] = piVar6[1];\n          *piVar6 = 0;\n          piVar6[1] = param_1[9];\n          param_1[9] = (int)piVar6;\n          return iVar5;\n        }\n        cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n        if (cVar3 != '\0') {\n          piVar6 = (int *)piVar1[1];\n          iVar5 = *piVar6;\n          goto LAB_00014634;\n        }\n        piVar1 = (int *)piVar1[1];\n        piVar6 = (int *)piVar1[1];\n        if (piVar6 == (int *)0x0) {\n          return 0;\n        }\n        iVar5 = *piVar6;\n      }" { (if_statement "if (param_2 == iVar5) {\nLAB_00014634:\n          if (param_4 == '\0') {\n            return iVar5;\n          }\n          piVar1[1] = piVar6[1];\n          *piVar6 = 0;\n          piVar6[1] = param_1[9];\n          param_1[9] = (int)piVar6;\n          return iVar5;\n        }" if (parenthesized_expression "(param_2 == iVar5)" ( (binary_expression "param_2 == iVar5" identifier == identifier) )) (compound_statement "{\nLAB_00014634:\n          if (param_4 == '\0') {\n            return iVar5;\n          }\n          piVar1[1] = piVar6[1];\n          *piVar6 = 0;\n          piVar6[1] = param_1[9];\n          param_1[9] = (int)piVar6;\n          return iVar5;\n        }" { (labeled_statement "LAB_00014634:\n          if (param_4 == '\0') {\n            return iVar5;\n          }" statement_identifier : (if_statement "if (param_4 == '\0') {\n            return iVar5;\n          }" if (parenthesized_expression "(param_4 == '\0')" ( (binary_expression "param_4 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            return iVar5;\n          }" { (return_statement "return iVar5;" return identifier ;) }))) (expression_statement "piVar1[1] = piVar6[1];" (assignment_expression "piVar1[1] = piVar6[1]" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = (subscript_expression "piVar6[1]" identifier [ number_literal ])) ;) (expression_statement "*piVar6 = 0;" (assignment_expression "*piVar6 = 0" (pointer_expression "*piVar6" * identifier) = number_literal) ;) (expression_statement "piVar6[1] = param_1[9];" (assignment_expression "piVar6[1] = param_1[9]" (subscript_expression "piVar6[1]" identifier [ number_literal ]) = (subscript_expression "param_1[9]" identifier [ number_literal ])) ;) (expression_statement "param_1[9] = (int)piVar6;" (assignment_expression "param_1[9] = (int)piVar6" (subscript_expression "param_1[9]" identifier [ number_literal ]) = (cast_expression "(int)piVar6" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (return_statement "return iVar5;" return identifier ;) })) (expression_statement "cVar3 = (*(code *)param_1[7])(param_2,iVar5);" (assignment_expression "cVar3 = (*(code *)param_1[7])(param_2,iVar5)" identifier = (call_expression "(*(code *)param_1[7])(param_2,iVar5)" (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,iVar5)" ( identifier , identifier )))) ;) (if_statement "if (cVar3 != '\0') {\n          piVar6 = (int *)piVar1[1];\n          iVar5 = *piVar6;\n          goto LAB_00014634;\n        }" if (parenthesized_expression "(cVar3 != '\0')" ( (binary_expression "cVar3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          piVar6 = (int *)piVar1[1];\n          iVar5 = *piVar6;\n          goto LAB_00014634;\n        }" { (expression_statement "piVar6 = (int *)piVar1[1];" (assignment_expression "piVar6 = (int *)piVar1[1]" identifier = (cast_expression "(int *)piVar1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[1]" identifier [ number_literal ]))) ;) (expression_statement "iVar5 = *piVar6;" (assignment_expression "iVar5 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;) (goto_statement "goto LAB_00014634;" goto statement_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 ]))) ;) (expression_statement "piVar6 = (int *)piVar1[1];" (assignment_expression "piVar6 = (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 (piVar6 == (int *)0x0) {\n          return 0;\n        }" if (parenthesized_expression "(piVar6 == (int *)0x0)" ( (binary_expression "piVar6 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar5 = *piVar6;" (assignment_expression "iVar5 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })) (expression_statement "iVar5 = *piVar1;" (assignment_expression "iVar5 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) })) (if_statement "if (param_4 != '\0') {\n    piVar6 = (int *)piVar1[1];\n    if (piVar6 != (int *)0x0) {\n      iVar2 = piVar6[1];\n      *piVar1 = *piVar6;\n      piVar1[1] = iVar2;\n      *piVar6 = 0;\n      piVar6[1] = param_1[9];\n      param_1[9] = (int)piVar6;\n      return iVar5;\n    }\n    *piVar1 = 0;\n  }" if (parenthesized_expression "(param_4 != '\0')" ( (binary_expression "param_4 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    piVar6 = (int *)piVar1[1];\n    if (piVar6 != (int *)0x0) {\n      iVar2 = piVar6[1];\n      *piVar1 = *piVar6;\n      piVar1[1] = iVar2;\n      *piVar6 = 0;\n      piVar6[1] = param_1[9];\n      param_1[9] = (int)piVar6;\n      return iVar5;\n    }\n    *piVar1 = 0;\n  }" { (expression_statement "piVar6 = (int *)piVar1[1];" (assignment_expression "piVar6 = (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 (piVar6 != (int *)0x0) {\n      iVar2 = piVar6[1];\n      *piVar1 = *piVar6;\n      piVar1[1] = iVar2;\n      *piVar6 = 0;\n      piVar6[1] = param_1[9];\n      param_1[9] = (int)piVar6;\n      return iVar5;\n    }" if (parenthesized_expression "(piVar6 != (int *)0x0)" ( (binary_expression "piVar6 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar2 = piVar6[1];\n      *piVar1 = *piVar6;\n      piVar1[1] = iVar2;\n      *piVar6 = 0;\n      piVar6[1] = param_1[9];\n      param_1[9] = (int)piVar6;\n      return iVar5;\n    }" { (expression_statement "iVar2 = piVar6[1];" (assignment_expression "iVar2 = piVar6[1]" identifier = (subscript_expression "piVar6[1]" identifier [ number_literal ])) ;) (expression_statement "*piVar1 = *piVar6;" (assignment_expression "*piVar1 = *piVar6" (pointer_expression "*piVar1" * identifier) = (pointer_expression "*piVar6" * identifier)) ;) (expression_statement "piVar1[1] = iVar2;" (assignment_expression "piVar1[1] = iVar2" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*piVar6 = 0;" (assignment_expression "*piVar6 = 0" (pointer_expression "*piVar6" * identifier) = number_literal) ;) (expression_statement "piVar6[1] = param_1[9];" (assignment_expression "piVar6[1] = param_1[9]" (subscript_expression "piVar6[1]" identifier [ number_literal ]) = (subscript_expression "param_1[9]" identifier [ number_literal ])) ;) (expression_statement "param_1[9] = (int)piVar6;" (assignment_expression "param_1[9] = (int)piVar6" (subscript_expression "param_1[9]" identifier [ number_literal ]) = (cast_expression "(int)piVar6" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (return_statement "return iVar5;" return identifier ;) })) (expression_statement "*piVar1 = 0;" (assignment_expression "*piVar1 = 0" (pointer_expression "*piVar1" * identifier) = number_literal) ;) })) (return_statement "return iVar5;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid * __regparm3\nhash_find_entry(Hash_table *table,void *entry,hash_entry **bucket_head,_Bool delete)\n\n{\n  hash_entry *phVar1;\n  hash_entry *phVar2;\n  _Bool _Var3;\n  size_t sVar4;\n  void *pvVar5;\n  hash_entry *phVar6;\n  \n  sVar4 = (*table->hasher)(entry,table->n_buckets);\n  if (table->n_buckets <= sVar4) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  phVar1 = table->bucket + sVar4;\n  *bucket_head = phVar1;\n  pvVar5 = phVar1->data;\n  if (pvVar5 == (void *)0x0) {\n    return (void *)0x0;\n  }\n  if (pvVar5 != entry) {\n    _Var3 = (*table->comparator)(entry,pvVar5);\n    if (!_Var3) {\n      phVar6 = phVar1->next;\n      if (phVar6 == (hash_entry *)0x0) {\n        return (void *)0x0;\n      }\n      pvVar5 = phVar6->data;\n      do {\n        if (entry == pvVar5) {\nLAB_00014634:\n          if (!delete) {\n            return pvVar5;\n          }\n          phVar1->next = phVar6->next;\n          phVar6->data = (void *)0x0;\n          phVar6->next = table->free_entry_list;\n          table->free_entry_list = phVar6;\n          return pvVar5;\n        }\n        _Var3 = (*table->comparator)(entry,pvVar5);\n        if (_Var3) {\n          phVar6 = phVar1->next;\n          pvVar5 = phVar6->data;\n          goto LAB_00014634;\n        }\n        phVar1 = phVar1->next;\n        phVar6 = phVar1->next;\n        if (phVar6 == (hash_entry *)0x0) {\n          return (void *)0x0;\n        }\n        pvVar5 = phVar6->data;\n      } while( true );\n    }\n    pvVar5 = phVar1->data;\n  }\n  if (delete) {\n    phVar6 = phVar1->next;\n    if (phVar6 != (hash_entry *)0x0) {\n      phVar2 = phVar6->next;\n      phVar1->data = phVar6->data;\n      phVar1->next = phVar2;\n      phVar6->data = (void *)0x0;\n      phVar6->next = table->free_entry_list;\n      table->free_entry_list = phVar6;\n      return pvVar5;\n    }\n    phVar1->data = (void *)0x0;\n  }\n  return pvVar5;\n}\n\n" comment (function_definition "void * __regparm3\nhash_find_entry(Hash_table *table,void *entry,hash_entry **bucket_head,_Bool delete)\n\n{\n  hash_entry *phVar1;\n  hash_entry *phVar2;\n  _Bool _Var3;\n  size_t sVar4;\n  void *pvVar5;\n  hash_entry *phVar6;\n  \n  sVar4 = (*table->hasher)(entry,table->n_buckets);\n  if (table->n_buckets <= sVar4) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  phVar1 = table->bucket + sVar4;\n  *bucket_head = phVar1;\n  pvVar5 = phVar1->data;\n  if (pvVar5 == (void *)0x0) {\n    return (void *)0x0;\n  }\n  if (pvVar5 != entry) {\n    _Var3 = (*table->comparator)(entry,pvVar5);\n    if (!_Var3) {\n      phVar6 = phVar1->next;\n      if (phVar6 == (hash_entry *)0x0) {\n        return (void *)0x0;\n      }\n      pvVar5 = phVar6->data;\n      do {\n        if (entry == pvVar5) {\nLAB_00014634:\n          if (!delete) {\n            return pvVar5;\n          }\n          phVar1->next = phVar6->next;\n          phVar6->data = (void *)0x0;\n          phVar6->next = table->free_entry_list;\n          table->free_entry_list = phVar6;\n          return pvVar5;\n        }\n        _Var3 = (*table->comparator)(entry,pvVar5);\n        if (_Var3) {\n          phVar6 = phVar1->next;\n          pvVar5 = phVar6->data;\n          goto LAB_00014634;\n        }\n        phVar1 = phVar1->next;\n        phVar6 = phVar1->next;\n        if (phVar6 == (hash_entry *)0x0) {\n          return (void *)0x0;\n        }\n        pvVar5 = phVar6->data;\n      } while( true );\n    }\n    pvVar5 = phVar1->data;\n  }\n  if (delete) {\n    phVar6 = phVar1->next;\n    if (phVar6 != (hash_entry *)0x0) {\n      phVar2 = phVar6->next;\n      phVar1->data = phVar6->data;\n      phVar1->next = phVar2;\n      phVar6->data = (void *)0x0;\n      phVar6->next = table->free_entry_list;\n      table->free_entry_list = phVar6;\n      return pvVar5;\n    }\n    phVar1->data = (void *)0x0;\n  }\n  return pvVar5;\n}" primitive_type (pointer_declarator "* __regparm3\nhash_find_entry(Hash_table *table,void *entry,hash_entry **bucket_head,_Bool delete)" * (ERROR "__regparm3" identifier) (function_declarator "hash_find_entry(Hash_table *table,void *entry,hash_entry **bucket_head,_Bool delete)" identifier (parameter_list "(Hash_table *table,void *entry,hash_entry **bucket_head,_Bool delete)" ( (parameter_declaration "Hash_table *table" type_identifier (pointer_declarator "*table" * identifier)) , (parameter_declaration "void *entry" primitive_type (pointer_declarator "*entry" * identifier)) , (parameter_declaration "hash_entry **bucket_head" type_identifier (pointer_declarator "**bucket_head" * (pointer_declarator "*bucket_head" * identifier))) , (parameter_declaration "_Bool delete" type_identifier identifier) )))) (compound_statement "{\n  hash_entry *phVar1;\n  hash_entry *phVar2;\n  _Bool _Var3;\n  size_t sVar4;\n  void *pvVar5;\n  hash_entry *phVar6;\n  \n  sVar4 = (*table->hasher)(entry,table->n_buckets);\n  if (table->n_buckets <= sVar4) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  phVar1 = table->bucket + sVar4;\n  *bucket_head = phVar1;\n  pvVar5 = phVar1->data;\n  if (pvVar5 == (void *)0x0) {\n    return (void *)0x0;\n  }\n  if (pvVar5 != entry) {\n    _Var3 = (*table->comparator)(entry,pvVar5);\n    if (!_Var3) {\n      phVar6 = phVar1->next;\n      if (phVar6 == (hash_entry *)0x0) {\n        return (void *)0x0;\n      }\n      pvVar5 = phVar6->data;\n      do {\n        if (entry == pvVar5) {\nLAB_00014634:\n          if (!delete) {\n            return pvVar5;\n          }\n          phVar1->next = phVar6->next;\n          phVar6->data = (void *)0x0;\n          phVar6->next = table->free_entry_list;\n          table->free_entry_list = phVar6;\n          return pvVar5;\n        }\n        _Var3 = (*table->comparator)(entry,pvVar5);\n        if (_Var3) {\n          phVar6 = phVar1->next;\n          pvVar5 = phVar6->data;\n          goto LAB_00014634;\n        }\n        phVar1 = phVar1->next;\n        phVar6 = phVar1->next;\n        if (phVar6 == (hash_entry *)0x0) {\n          return (void *)0x0;\n        }\n        pvVar5 = phVar6->data;\n      } while( true );\n    }\n    pvVar5 = phVar1->data;\n  }\n  if (delete) {\n    phVar6 = phVar1->next;\n    if (phVar6 != (hash_entry *)0x0) {\n      phVar2 = phVar6->next;\n      phVar1->data = phVar6->data;\n      phVar1->next = phVar2;\n      phVar6->data = (void *)0x0;\n      phVar6->next = table->free_entry_list;\n      table->free_entry_list = phVar6;\n      return pvVar5;\n    }\n    phVar1->data = (void *)0x0;\n  }\n  return pvVar5;\n}" { (declaration "hash_entry *phVar1;" type_identifier (pointer_declarator "*phVar1" * identifier) ;) (declaration "hash_entry *phVar2;" type_identifier (pointer_declarator "*phVar2" * identifier) ;) (declaration "_Bool _Var3;" type_identifier identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "void *pvVar5;" primitive_type (pointer_declarator "*pvVar5" * identifier) ;) (declaration "hash_entry *phVar6;" type_identifier (pointer_declarator "*phVar6" * identifier) ;) (expression_statement "sVar4 = (*table->hasher)(entry,table->n_buckets);" (assignment_expression "sVar4 = (*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 <= sVar4) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" if (parenthesized_expression "(table->n_buckets <= sVar4)" ( (binary_expression "table->n_buckets <= sVar4" (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 + sVar4;" (assignment_expression "phVar1 = table->bucket + sVar4" identifier = (binary_expression "table->bucket + sVar4" (field_expression "table->bucket" identifier -> field_identifier) + identifier)) ;) (expression_statement "*bucket_head = phVar1;" (assignment_expression "*bucket_head = phVar1" (pointer_expression "*bucket_head" * identifier) = identifier) ;) (expression_statement "pvVar5 = phVar1->data;" (assignment_expression "pvVar5 = phVar1->data" identifier = (field_expression "phVar1->data" identifier -> field_identifier)) ;) (if_statement "if (pvVar5 == (void *)0x0) {\n    return (void *)0x0;\n  }" if (parenthesized_expression "(pvVar5 == (void *)0x0)" ( (binary_expression "pvVar5 == (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) ;) })) (if_statement "if (pvVar5 != entry) {\n    _Var3 = (*table->comparator)(entry,pvVar5);\n    if (!_Var3) {\n      phVar6 = phVar1->next;\n      if (phVar6 == (hash_entry *)0x0) {\n        return (void *)0x0;\n      }\n      pvVar5 = phVar6->data;\n      do {\n        if (entry == pvVar5) {\nLAB_00014634:\n          if (!delete) {\n            return pvVar5;\n          }\n          phVar1->next = phVar6->next;\n          phVar6->data = (void *)0x0;\n          phVar6->next = table->free_entry_list;\n          table->free_entry_list = phVar6;\n          return pvVar5;\n        }\n        _Var3 = (*table->comparator)(entry,pvVar5);\n        if (_Var3) {\n          phVar6 = phVar1->next;\n          pvVar5 = phVar6->data;\n          goto LAB_00014634;\n        }\n        phVar1 = phVar1->next;\n        phVar6 = phVar1->next;\n        if (phVar6 == (hash_entry *)0x0) {\n          return (void *)0x0;\n        }\n        pvVar5 = phVar6->data;\n      } while( true );\n    }\n    pvVar5 = phVar1->data;\n  }" if (parenthesized_expression "(pvVar5 != entry)" ( (binary_expression "pvVar5 != entry" identifier != identifier) )) (compound_statement "{\n    _Var3 = (*table->comparator)(entry,pvVar5);\n    if (!_Var3) {\n      phVar6 = phVar1->next;\n      if (phVar6 == (hash_entry *)0x0) {\n        return (void *)0x0;\n      }\n      pvVar5 = phVar6->data;\n      do {\n        if (entry == pvVar5) {\nLAB_00014634:\n          if (!delete) {\n            return pvVar5;\n          }\n          phVar1->next = phVar6->next;\n          phVar6->data = (void *)0x0;\n          phVar6->next = table->free_entry_list;\n          table->free_entry_list = phVar6;\n          return pvVar5;\n        }\n        _Var3 = (*table->comparator)(entry,pvVar5);\n        if (_Var3) {\n          phVar6 = phVar1->next;\n          pvVar5 = phVar6->data;\n          goto LAB_00014634;\n        }\n        phVar1 = phVar1->next;\n        phVar6 = phVar1->next;\n        if (phVar6 == (hash_entry *)0x0) {\n          return (void *)0x0;\n        }\n        pvVar5 = phVar6->data;\n      } while( true );\n    }\n    pvVar5 = phVar1->data;\n  }" { (expression_statement "_Var3 = (*table->comparator)(entry,pvVar5);" (assignment_expression "_Var3 = (*table->comparator)(entry,pvVar5)" identifier = (call_expression "(*table->comparator)(entry,pvVar5)" (parenthesized_expression "(*table->comparator)" ( (pointer_expression "*table->comparator" * (field_expression "table->comparator" identifier -> field_identifier)) )) (argument_list "(entry,pvVar5)" ( identifier , identifier )))) ;) (if_statement "if (!_Var3) {\n      phVar6 = phVar1->next;\n      if (phVar6 == (hash_entry *)0x0) {\n        return (void *)0x0;\n      }\n      pvVar5 = phVar6->data;\n      do {\n        if (entry == pvVar5) {\nLAB_00014634:\n          if (!delete) {\n            return pvVar5;\n          }\n          phVar1->next = phVar6->next;\n          phVar6->data = (void *)0x0;\n          phVar6->next = table->free_entry_list;\n          table->free_entry_list = phVar6;\n          return pvVar5;\n        }\n        _Var3 = (*table->comparator)(entry,pvVar5);\n        if (_Var3) {\n          phVar6 = phVar1->next;\n          pvVar5 = phVar6->data;\n          goto LAB_00014634;\n        }\n        phVar1 = phVar1->next;\n        phVar6 = phVar1->next;\n        if (phVar6 == (hash_entry *)0x0) {\n          return (void *)0x0;\n        }\n        pvVar5 = phVar6->data;\n      } while( true );\n    }" if (parenthesized_expression "(!_Var3)" ( (unary_expression "!_Var3" ! identifier) )) (compound_statement "{\n      phVar6 = phVar1->next;\n      if (phVar6 == (hash_entry *)0x0) {\n        return (void *)0x0;\n      }\n      pvVar5 = phVar6->data;\n      do {\n        if (entry == pvVar5) {\nLAB_00014634:\n          if (!delete) {\n            return pvVar5;\n          }\n          phVar1->next = phVar6->next;\n          phVar6->data = (void *)0x0;\n          phVar6->next = table->free_entry_list;\n          table->free_entry_list = phVar6;\n          return pvVar5;\n        }\n        _Var3 = (*table->comparator)(entry,pvVar5);\n        if (_Var3) {\n          phVar6 = phVar1->next;\n          pvVar5 = phVar6->data;\n          goto LAB_00014634;\n        }\n        phVar1 = phVar1->next;\n        phVar6 = phVar1->next;\n        if (phVar6 == (hash_entry *)0x0) {\n          return (void *)0x0;\n        }\n        pvVar5 = phVar6->data;\n      } while( true );\n    }" { (expression_statement "phVar6 = phVar1->next;" (assignment_expression "phVar6 = phVar1->next" identifier = (field_expression "phVar1->next" identifier -> field_identifier)) ;) (if_statement "if (phVar6 == (hash_entry *)0x0) {\n        return (void *)0x0;\n      }" if (parenthesized_expression "(phVar6 == (hash_entry *)0x0)" ( (binary_expression "phVar6 == (hash_entry *)0x0" identifier == (cast_expression "(hash_entry *)0x0" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return (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 "pvVar5 = phVar6->data;" (assignment_expression "pvVar5 = phVar6->data" identifier = (field_expression "phVar6->data" identifier -> field_identifier)) ;) (do_statement "do {\n        if (entry == pvVar5) {\nLAB_00014634:\n          if (!delete) {\n            return pvVar5;\n          }\n          phVar1->next = phVar6->next;\n          phVar6->data = (void *)0x0;\n          phVar6->next = table->free_entry_list;\n          table->free_entry_list = phVar6;\n          return pvVar5;\n        }\n        _Var3 = (*table->comparator)(entry,pvVar5);\n        if (_Var3) {\n          phVar6 = phVar1->next;\n          pvVar5 = phVar6->data;\n          goto LAB_00014634;\n        }\n        phVar1 = phVar1->next;\n        phVar6 = phVar1->next;\n        if (phVar6 == (hash_entry *)0x0) {\n          return (void *)0x0;\n        }\n        pvVar5 = phVar6->data;\n      } while( true );" do (compound_statement "{\n        if (entry == pvVar5) {\nLAB_00014634:\n          if (!delete) {\n            return pvVar5;\n          }\n          phVar1->next = phVar6->next;\n          phVar6->data = (void *)0x0;\n          phVar6->next = table->free_entry_list;\n          table->free_entry_list = phVar6;\n          return pvVar5;\n        }\n        _Var3 = (*table->comparator)(entry,pvVar5);\n        if (_Var3) {\n          phVar6 = phVar1->next;\n          pvVar5 = phVar6->data;\n          goto LAB_00014634;\n        }\n        phVar1 = phVar1->next;\n        phVar6 = phVar1->next;\n        if (phVar6 == (hash_entry *)0x0) {\n          return (void *)0x0;\n        }\n        pvVar5 = phVar6->data;\n      }" { (if_statement "if (entry == pvVar5) {\nLAB_00014634:\n          if (!delete) {\n            return pvVar5;\n          }\n          phVar1->next = phVar6->next;\n          phVar6->data = (void *)0x0;\n          phVar6->next = table->free_entry_list;\n          table->free_entry_list = phVar6;\n          return pvVar5;\n        }" if (parenthesized_expression "(entry == pvVar5)" ( (binary_expression "entry == pvVar5" identifier == identifier) )) (compound_statement "{\nLAB_00014634:\n          if (!delete) {\n            return pvVar5;\n          }\n          phVar1->next = phVar6->next;\n          phVar6->data = (void *)0x0;\n          phVar6->next = table->free_entry_list;\n          table->free_entry_list = phVar6;\n          return pvVar5;\n        }" { (labeled_statement "LAB_00014634:\n          if (!delete) {\n            return pvVar5;\n          }" statement_identifier : (if_statement "if (!delete) {\n            return pvVar5;\n          }" if (parenthesized_expression "(!delete)" ( (unary_expression "!delete" ! identifier) )) (compound_statement "{\n            return pvVar5;\n          }" { (return_statement "return pvVar5;" return identifier ;) }))) (expression_statement "phVar1->next = phVar6->next;" (assignment_expression "phVar1->next = phVar6->next" (field_expression "phVar1->next" identifier -> field_identifier) = (field_expression "phVar6->next" identifier -> field_identifier)) ;) (expression_statement "phVar6->data = (void *)0x0;" (assignment_expression "phVar6->data = (void *)0x0" (field_expression "phVar6->data" identifier -> field_identifier) = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "phVar6->next = table->free_entry_list;" (assignment_expression "phVar6->next = table->free_entry_list" (field_expression "phVar6->next" identifier -> field_identifier) = (field_expression "table->free_entry_list" identifier -> field_identifier)) ;) (expression_statement "table->free_entry_list = phVar6;" (assignment_expression "table->free_entry_list = phVar6" (field_expression "table->free_entry_list" identifier -> field_identifier) = identifier) ;) (return_statement "return pvVar5;" return identifier ;) })) (expression_statement "_Var3 = (*table->comparator)(entry,pvVar5);" (assignment_expression "_Var3 = (*table->comparator)(entry,pvVar5)" identifier = (call_expression "(*table->comparator)(entry,pvVar5)" (parenthesized_expression "(*table->comparator)" ( (pointer_expression "*table->comparator" * (field_expression "table->comparator" identifier -> field_identifier)) )) (argument_list "(entry,pvVar5)" ( identifier , identifier )))) ;) (if_statement "if (_Var3) {\n          phVar6 = phVar1->next;\n          pvVar5 = phVar6->data;\n          goto LAB_00014634;\n        }" if (parenthesized_expression "(_Var3)" ( identifier )) (compound_statement "{\n          phVar6 = phVar1->next;\n          pvVar5 = phVar6->data;\n          goto LAB_00014634;\n        }" { (expression_statement "phVar6 = phVar1->next;" (assignment_expression "phVar6 = phVar1->next" identifier = (field_expression "phVar1->next" identifier -> field_identifier)) ;) (expression_statement "pvVar5 = phVar6->data;" (assignment_expression "pvVar5 = phVar6->data" identifier = (field_expression "phVar6->data" identifier -> field_identifier)) ;) (goto_statement "goto LAB_00014634;" goto statement_identifier ;) })) (expression_statement "phVar1 = phVar1->next;" (assignment_expression "phVar1 = phVar1->next" identifier = (field_expression "phVar1->next" identifier -> field_identifier)) ;) (expression_statement "phVar6 = phVar1->next;" (assignment_expression "phVar6 = phVar1->next" identifier = (field_expression "phVar1->next" identifier -> field_identifier)) ;) (if_statement "if (phVar6 == (hash_entry *)0x0) {\n          return (void *)0x0;\n        }" if (parenthesized_expression "(phVar6 == (hash_entry *)0x0)" ( (binary_expression "phVar6 == (hash_entry *)0x0" identifier == (cast_expression "(hash_entry *)0x0" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          return (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 "pvVar5 = phVar6->data;" (assignment_expression "pvVar5 = phVar6->data" identifier = (field_expression "phVar6->data" identifier -> field_identifier)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })) (expression_statement "pvVar5 = phVar1->data;" (assignment_expression "pvVar5 = phVar1->data" identifier = (field_expression "phVar1->data" identifier -> field_identifier)) ;) })) (if_statement "if (delete) {\n    phVar6 = phVar1->next;\n    if (phVar6 != (hash_entry *)0x0) {\n      phVar2 = phVar6->next;\n      phVar1->data = phVar6->data;\n      phVar1->next = phVar2;\n      phVar6->data = (void *)0x0;\n      phVar6->next = table->free_entry_list;\n      table->free_entry_list = phVar6;\n      return pvVar5;\n    }\n    phVar1->data = (void *)0x0;\n  }" if (parenthesized_expression "(delete)" ( identifier )) (compound_statement "{\n    phVar6 = phVar1->next;\n    if (phVar6 != (hash_entry *)0x0) {\n      phVar2 = phVar6->next;\n      phVar1->data = phVar6->data;\n      phVar1->next = phVar2;\n      phVar6->data = (void *)0x0;\n      phVar6->next = table->free_entry_list;\n      table->free_entry_list = phVar6;\n      return pvVar5;\n    }\n    phVar1->data = (void *)0x0;\n  }" { (expression_statement "phVar6 = phVar1->next;" (assignment_expression "phVar6 = phVar1->next" identifier = (field_expression "phVar1->next" identifier -> field_identifier)) ;) (if_statement "if (phVar6 != (hash_entry *)0x0) {\n      phVar2 = phVar6->next;\n      phVar1->data = phVar6->data;\n      phVar1->next = phVar2;\n      phVar6->data = (void *)0x0;\n      phVar6->next = table->free_entry_list;\n      table->free_entry_list = phVar6;\n      return pvVar5;\n    }" if (parenthesized_expression "(phVar6 != (hash_entry *)0x0)" ( (binary_expression "phVar6 != (hash_entry *)0x0" identifier != (cast_expression "(hash_entry *)0x0" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      phVar2 = phVar6->next;\n      phVar1->data = phVar6->data;\n      phVar1->next = phVar2;\n      phVar6->data = (void *)0x0;\n      phVar6->next = table->free_entry_list;\n      table->free_entry_list = phVar6;\n      return pvVar5;\n    }" { (expression_statement "phVar2 = phVar6->next;" (assignment_expression "phVar2 = phVar6->next" identifier = (field_expression "phVar6->next" identifier -> field_identifier)) ;) (expression_statement "phVar1->data = phVar6->data;" (assignment_expression "phVar1->data = phVar6->data" (field_expression "phVar1->data" identifier -> field_identifier) = (field_expression "phVar6->data" identifier -> field_identifier)) ;) (expression_statement "phVar1->next = phVar2;" (assignment_expression "phVar1->next = phVar2" (field_expression "phVar1->next" identifier -> field_identifier) = identifier) ;) (expression_statement "phVar6->data = (void *)0x0;" (assignment_expression "phVar6->data = (void *)0x0" (field_expression "phVar6->data" identifier -> field_identifier) = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "phVar6->next = table->free_entry_list;" (assignment_expression "phVar6->next = table->free_entry_list" (field_expression "phVar6->next" identifier -> field_identifier) = (field_expression "table->free_entry_list" identifier -> field_identifier)) ;) (expression_statement "table->free_entry_list = phVar6;" (assignment_expression "table->free_entry_list = phVar6" (field_expression "table->free_entry_list" identifier -> field_identifier) = identifier) ;) (return_statement "return pvVar5;" return identifier ;) })) (expression_statement "phVar1->data = (void *)0x0;" (assignment_expression "phVar1->data = (void *)0x0" (field_expression "phVar1->data" identifier -> field_identifier) = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (return_statement "return pvVar5;" return identifier ;) })))
(translation_unit "int __regparm3 FUN_000145a0(int *param_1,int param_2,undefined4 *param_3,char param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  char cVar3;\n  uint uVar4;\n  int iVar5;\n  int *piVar6;\n  \n  uVar4 = (*(code *)param_1[6])(param_2,param_1[2]);\n  if ((uint)param_1[2] <= uVar4) {\n                    \n    abort();\n  }\n  piVar1 = (int *)(*param_1 + uVar4 * 8);\n  *param_3 = piVar1;\n  iVar5 = *piVar1;\n  if (iVar5 == 0) {\n    return 0;\n  }\n  if (iVar5 != param_2) {\n    cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n    if (cVar3 == '\0') {\n      piVar6 = (int *)piVar1[1];\n      if (piVar6 == (int *)0x0) {\n        return 0;\n      }\n      iVar5 = *piVar6;\n      do {\n        if (param_2 == iVar5) {\nLAB_00014634:\n          if (param_4 == '\0') {\n            return iVar5;\n          }\n          piVar1[1] = piVar6[1];\n          *piVar6 = 0;\n          piVar6[1] = param_1[9];\n          param_1[9] = (int)piVar6;\n          return iVar5;\n        }\n        cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n        if (cVar3 != '\0') {\n          piVar6 = (int *)piVar1[1];\n          iVar5 = *piVar6;\n          goto LAB_00014634;\n        }\n        piVar1 = (int *)piVar1[1];\n        piVar6 = (int *)piVar1[1];\n        if (piVar6 == (int *)0x0) {\n          return 0;\n        }\n        iVar5 = *piVar6;\n      } while( true );\n    }\n    iVar5 = *piVar1;\n  }\n  if (param_4 != '\0') {\n    piVar6 = (int *)piVar1[1];\n    if (piVar6 != (int *)0x0) {\n      iVar2 = piVar6[1];\n      *piVar1 = *piVar6;\n      piVar1[1] = iVar2;\n      *piVar6 = 0;\n      piVar6[1] = param_1[9];\n      param_1[9] = (int)piVar6;\n      return iVar5;\n    }\n    *piVar1 = 0;\n  }\n  return iVar5;\n}\n\n" (function_definition "int __regparm3 FUN_000145a0(int *param_1,int param_2,undefined4 *param_3,char param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  char cVar3;\n  uint uVar4;\n  int iVar5;\n  int *piVar6;\n  \n  uVar4 = (*(code *)param_1[6])(param_2,param_1[2]);\n  if ((uint)param_1[2] <= uVar4) {\n                    \n    abort();\n  }\n  piVar1 = (int *)(*param_1 + uVar4 * 8);\n  *param_3 = piVar1;\n  iVar5 = *piVar1;\n  if (iVar5 == 0) {\n    return 0;\n  }\n  if (iVar5 != param_2) {\n    cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n    if (cVar3 == '\0') {\n      piVar6 = (int *)piVar1[1];\n      if (piVar6 == (int *)0x0) {\n        return 0;\n      }\n      iVar5 = *piVar6;\n      do {\n        if (param_2 == iVar5) {\nLAB_00014634:\n          if (param_4 == '\0') {\n            return iVar5;\n          }\n          piVar1[1] = piVar6[1];\n          *piVar6 = 0;\n          piVar6[1] = param_1[9];\n          param_1[9] = (int)piVar6;\n          return iVar5;\n        }\n        cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n        if (cVar3 != '\0') {\n          piVar6 = (int *)piVar1[1];\n          iVar5 = *piVar6;\n          goto LAB_00014634;\n        }\n        piVar1 = (int *)piVar1[1];\n        piVar6 = (int *)piVar1[1];\n        if (piVar6 == (int *)0x0) {\n          return 0;\n        }\n        iVar5 = *piVar6;\n      } while( true );\n    }\n    iVar5 = *piVar1;\n  }\n  if (param_4 != '\0') {\n    piVar6 = (int *)piVar1[1];\n    if (piVar6 != (int *)0x0) {\n      iVar2 = piVar6[1];\n      *piVar1 = *piVar6;\n      piVar1[1] = iVar2;\n      *piVar6 = 0;\n      piVar6[1] = param_1[9];\n      param_1[9] = (int)piVar6;\n      return iVar5;\n    }\n    *piVar1 = 0;\n  }\n  return iVar5;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000145a0(int *param_1,int param_2,undefined4 *param_3,char param_4)" identifier (parameter_list "(int *param_1,int param_2,undefined4 *param_3,char param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "char param_4" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  char cVar3;\n  uint uVar4;\n  int iVar5;\n  int *piVar6;\n  \n  uVar4 = (*(code *)param_1[6])(param_2,param_1[2]);\n  if ((uint)param_1[2] <= uVar4) {\n                    \n    abort();\n  }\n  piVar1 = (int *)(*param_1 + uVar4 * 8);\n  *param_3 = piVar1;\n  iVar5 = *piVar1;\n  if (iVar5 == 0) {\n    return 0;\n  }\n  if (iVar5 != param_2) {\n    cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n    if (cVar3 == '\0') {\n      piVar6 = (int *)piVar1[1];\n      if (piVar6 == (int *)0x0) {\n        return 0;\n      }\n      iVar5 = *piVar6;\n      do {\n        if (param_2 == iVar5) {\nLAB_00014634:\n          if (param_4 == '\0') {\n            return iVar5;\n          }\n          piVar1[1] = piVar6[1];\n          *piVar6 = 0;\n          piVar6[1] = param_1[9];\n          param_1[9] = (int)piVar6;\n          return iVar5;\n        }\n        cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n        if (cVar3 != '\0') {\n          piVar6 = (int *)piVar1[1];\n          iVar5 = *piVar6;\n          goto LAB_00014634;\n        }\n        piVar1 = (int *)piVar1[1];\n        piVar6 = (int *)piVar1[1];\n        if (piVar6 == (int *)0x0) {\n          return 0;\n        }\n        iVar5 = *piVar6;\n      } while( true );\n    }\n    iVar5 = *piVar1;\n  }\n  if (param_4 != '\0') {\n    piVar6 = (int *)piVar1[1];\n    if (piVar6 != (int *)0x0) {\n      iVar2 = piVar6[1];\n      *piVar1 = *piVar6;\n      piVar1[1] = iVar2;\n      *piVar6 = 0;\n      piVar6[1] = param_1[9];\n      param_1[9] = (int)piVar6;\n      return iVar5;\n    }\n    *piVar1 = 0;\n  }\n  return iVar5;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (expression_statement "uVar4 = (*(code *)param_1[6])(param_2,param_1[2]);" (assignment_expression "uVar4 = (*(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] <= uVar4) {\n                    \n    abort();\n  }" if (parenthesized_expression "((uint)param_1[2] <= uVar4)" ( (binary_expression "(uint)param_1[2] <= uVar4" (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 + uVar4 * 8);" (assignment_expression "piVar1 = (int *)(*param_1 + uVar4 * 8)" identifier = (cast_expression "(int *)(*param_1 + uVar4 * 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + uVar4 * 8)" ( (binary_expression "*param_1 + uVar4 * 8" (pointer_expression "*param_1" * identifier) + (binary_expression "uVar4 * 8" identifier * number_literal)) )))) ;) (expression_statement "*param_3 = piVar1;" (assignment_expression "*param_3 = piVar1" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "iVar5 = *piVar1;" (assignment_expression "iVar5 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (if_statement "if (iVar5 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (iVar5 != param_2) {\n    cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n    if (cVar3 == '\0') {\n      piVar6 = (int *)piVar1[1];\n      if (piVar6 == (int *)0x0) {\n        return 0;\n      }\n      iVar5 = *piVar6;\n      do {\n        if (param_2 == iVar5) {\nLAB_00014634:\n          if (param_4 == '\0') {\n            return iVar5;\n          }\n          piVar1[1] = piVar6[1];\n          *piVar6 = 0;\n          piVar6[1] = param_1[9];\n          param_1[9] = (int)piVar6;\n          return iVar5;\n        }\n        cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n        if (cVar3 != '\0') {\n          piVar6 = (int *)piVar1[1];\n          iVar5 = *piVar6;\n          goto LAB_00014634;\n        }\n        piVar1 = (int *)piVar1[1];\n        piVar6 = (int *)piVar1[1];\n        if (piVar6 == (int *)0x0) {\n          return 0;\n        }\n        iVar5 = *piVar6;\n      } while( true );\n    }\n    iVar5 = *piVar1;\n  }" if (parenthesized_expression "(iVar5 != param_2)" ( (binary_expression "iVar5 != param_2" identifier != identifier) )) (compound_statement "{\n    cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n    if (cVar3 == '\0') {\n      piVar6 = (int *)piVar1[1];\n      if (piVar6 == (int *)0x0) {\n        return 0;\n      }\n      iVar5 = *piVar6;\n      do {\n        if (param_2 == iVar5) {\nLAB_00014634:\n          if (param_4 == '\0') {\n            return iVar5;\n          }\n          piVar1[1] = piVar6[1];\n          *piVar6 = 0;\n          piVar6[1] = param_1[9];\n          param_1[9] = (int)piVar6;\n          return iVar5;\n        }\n        cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n        if (cVar3 != '\0') {\n          piVar6 = (int *)piVar1[1];\n          iVar5 = *piVar6;\n          goto LAB_00014634;\n        }\n        piVar1 = (int *)piVar1[1];\n        piVar6 = (int *)piVar1[1];\n        if (piVar6 == (int *)0x0) {\n          return 0;\n        }\n        iVar5 = *piVar6;\n      } while( true );\n    }\n    iVar5 = *piVar1;\n  }" { (expression_statement "cVar3 = (*(code *)param_1[7])(param_2,iVar5);" (assignment_expression "cVar3 = (*(code *)param_1[7])(param_2,iVar5)" identifier = (call_expression "(*(code *)param_1[7])(param_2,iVar5)" (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,iVar5)" ( identifier , identifier )))) ;) (if_statement "if (cVar3 == '\0') {\n      piVar6 = (int *)piVar1[1];\n      if (piVar6 == (int *)0x0) {\n        return 0;\n      }\n      iVar5 = *piVar6;\n      do {\n        if (param_2 == iVar5) {\nLAB_00014634:\n          if (param_4 == '\0') {\n            return iVar5;\n          }\n          piVar1[1] = piVar6[1];\n          *piVar6 = 0;\n          piVar6[1] = param_1[9];\n          param_1[9] = (int)piVar6;\n          return iVar5;\n        }\n        cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n        if (cVar3 != '\0') {\n          piVar6 = (int *)piVar1[1];\n          iVar5 = *piVar6;\n          goto LAB_00014634;\n        }\n        piVar1 = (int *)piVar1[1];\n        piVar6 = (int *)piVar1[1];\n        if (piVar6 == (int *)0x0) {\n          return 0;\n        }\n        iVar5 = *piVar6;\n      } while( true );\n    }" if (parenthesized_expression "(cVar3 == '\0')" ( (binary_expression "cVar3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      piVar6 = (int *)piVar1[1];\n      if (piVar6 == (int *)0x0) {\n        return 0;\n      }\n      iVar5 = *piVar6;\n      do {\n        if (param_2 == iVar5) {\nLAB_00014634:\n          if (param_4 == '\0') {\n            return iVar5;\n          }\n          piVar1[1] = piVar6[1];\n          *piVar6 = 0;\n          piVar6[1] = param_1[9];\n          param_1[9] = (int)piVar6;\n          return iVar5;\n        }\n        cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n        if (cVar3 != '\0') {\n          piVar6 = (int *)piVar1[1];\n          iVar5 = *piVar6;\n          goto LAB_00014634;\n        }\n        piVar1 = (int *)piVar1[1];\n        piVar6 = (int *)piVar1[1];\n        if (piVar6 == (int *)0x0) {\n          return 0;\n        }\n        iVar5 = *piVar6;\n      } while( true );\n    }" { (expression_statement "piVar6 = (int *)piVar1[1];" (assignment_expression "piVar6 = (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 (piVar6 == (int *)0x0) {\n        return 0;\n      }" if (parenthesized_expression "(piVar6 == (int *)0x0)" ( (binary_expression "piVar6 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar5 = *piVar6;" (assignment_expression "iVar5 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;) (do_statement "do {\n        if (param_2 == iVar5) {\nLAB_00014634:\n          if (param_4 == '\0') {\n            return iVar5;\n          }\n          piVar1[1] = piVar6[1];\n          *piVar6 = 0;\n          piVar6[1] = param_1[9];\n          param_1[9] = (int)piVar6;\n          return iVar5;\n        }\n        cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n        if (cVar3 != '\0') {\n          piVar6 = (int *)piVar1[1];\n          iVar5 = *piVar6;\n          goto LAB_00014634;\n        }\n        piVar1 = (int *)piVar1[1];\n        piVar6 = (int *)piVar1[1];\n        if (piVar6 == (int *)0x0) {\n          return 0;\n        }\n        iVar5 = *piVar6;\n      } while( true );" do (compound_statement "{\n        if (param_2 == iVar5) {\nLAB_00014634:\n          if (param_4 == '\0') {\n            return iVar5;\n          }\n          piVar1[1] = piVar6[1];\n          *piVar6 = 0;\n          piVar6[1] = param_1[9];\n          param_1[9] = (int)piVar6;\n          return iVar5;\n        }\n        cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n        if (cVar3 != '\0') {\n          piVar6 = (int *)piVar1[1];\n          iVar5 = *piVar6;\n          goto LAB_00014634;\n        }\n        piVar1 = (int *)piVar1[1];\n        piVar6 = (int *)piVar1[1];\n        if (piVar6 == (int *)0x0) {\n          return 0;\n        }\n        iVar5 = *piVar6;\n      }" { (if_statement "if (param_2 == iVar5) {\nLAB_00014634:\n          if (param_4 == '\0') {\n            return iVar5;\n          }\n          piVar1[1] = piVar6[1];\n          *piVar6 = 0;\n          piVar6[1] = param_1[9];\n          param_1[9] = (int)piVar6;\n          return iVar5;\n        }" if (parenthesized_expression "(param_2 == iVar5)" ( (binary_expression "param_2 == iVar5" identifier == identifier) )) (compound_statement "{\nLAB_00014634:\n          if (param_4 == '\0') {\n            return iVar5;\n          }\n          piVar1[1] = piVar6[1];\n          *piVar6 = 0;\n          piVar6[1] = param_1[9];\n          param_1[9] = (int)piVar6;\n          return iVar5;\n        }" { (labeled_statement "LAB_00014634:\n          if (param_4 == '\0') {\n            return iVar5;\n          }" statement_identifier : (if_statement "if (param_4 == '\0') {\n            return iVar5;\n          }" if (parenthesized_expression "(param_4 == '\0')" ( (binary_expression "param_4 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            return iVar5;\n          }" { (return_statement "return iVar5;" return identifier ;) }))) (expression_statement "piVar1[1] = piVar6[1];" (assignment_expression "piVar1[1] = piVar6[1]" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = (subscript_expression "piVar6[1]" identifier [ number_literal ])) ;) (expression_statement "*piVar6 = 0;" (assignment_expression "*piVar6 = 0" (pointer_expression "*piVar6" * identifier) = number_literal) ;) (expression_statement "piVar6[1] = param_1[9];" (assignment_expression "piVar6[1] = param_1[9]" (subscript_expression "piVar6[1]" identifier [ number_literal ]) = (subscript_expression "param_1[9]" identifier [ number_literal ])) ;) (expression_statement "param_1[9] = (int)piVar6;" (assignment_expression "param_1[9] = (int)piVar6" (subscript_expression "param_1[9]" identifier [ number_literal ]) = (cast_expression "(int)piVar6" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (return_statement "return iVar5;" return identifier ;) })) (expression_statement "cVar3 = (*(code *)param_1[7])(param_2,iVar5);" (assignment_expression "cVar3 = (*(code *)param_1[7])(param_2,iVar5)" identifier = (call_expression "(*(code *)param_1[7])(param_2,iVar5)" (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,iVar5)" ( identifier , identifier )))) ;) (if_statement "if (cVar3 != '\0') {\n          piVar6 = (int *)piVar1[1];\n          iVar5 = *piVar6;\n          goto LAB_00014634;\n        }" if (parenthesized_expression "(cVar3 != '\0')" ( (binary_expression "cVar3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          piVar6 = (int *)piVar1[1];\n          iVar5 = *piVar6;\n          goto LAB_00014634;\n        }" { (expression_statement "piVar6 = (int *)piVar1[1];" (assignment_expression "piVar6 = (int *)piVar1[1]" identifier = (cast_expression "(int *)piVar1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[1]" identifier [ number_literal ]))) ;) (expression_statement "iVar5 = *piVar6;" (assignment_expression "iVar5 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;) (goto_statement "goto LAB_00014634;" goto statement_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 ]))) ;) (expression_statement "piVar6 = (int *)piVar1[1];" (assignment_expression "piVar6 = (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 (piVar6 == (int *)0x0) {\n          return 0;\n        }" if (parenthesized_expression "(piVar6 == (int *)0x0)" ( (binary_expression "piVar6 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar5 = *piVar6;" (assignment_expression "iVar5 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })) (expression_statement "iVar5 = *piVar1;" (assignment_expression "iVar5 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) })) (if_statement "if (param_4 != '\0') {\n    piVar6 = (int *)piVar1[1];\n    if (piVar6 != (int *)0x0) {\n      iVar2 = piVar6[1];\n      *piVar1 = *piVar6;\n      piVar1[1] = iVar2;\n      *piVar6 = 0;\n      piVar6[1] = param_1[9];\n      param_1[9] = (int)piVar6;\n      return iVar5;\n    }\n    *piVar1 = 0;\n  }" if (parenthesized_expression "(param_4 != '\0')" ( (binary_expression "param_4 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    piVar6 = (int *)piVar1[1];\n    if (piVar6 != (int *)0x0) {\n      iVar2 = piVar6[1];\n      *piVar1 = *piVar6;\n      piVar1[1] = iVar2;\n      *piVar6 = 0;\n      piVar6[1] = param_1[9];\n      param_1[9] = (int)piVar6;\n      return iVar5;\n    }\n    *piVar1 = 0;\n  }" { (expression_statement "piVar6 = (int *)piVar1[1];" (assignment_expression "piVar6 = (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 (piVar6 != (int *)0x0) {\n      iVar2 = piVar6[1];\n      *piVar1 = *piVar6;\n      piVar1[1] = iVar2;\n      *piVar6 = 0;\n      piVar6[1] = param_1[9];\n      param_1[9] = (int)piVar6;\n      return iVar5;\n    }" if (parenthesized_expression "(piVar6 != (int *)0x0)" ( (binary_expression "piVar6 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar2 = piVar6[1];\n      *piVar1 = *piVar6;\n      piVar1[1] = iVar2;\n      *piVar6 = 0;\n      piVar6[1] = param_1[9];\n      param_1[9] = (int)piVar6;\n      return iVar5;\n    }" { (expression_statement "iVar2 = piVar6[1];" (assignment_expression "iVar2 = piVar6[1]" identifier = (subscript_expression "piVar6[1]" identifier [ number_literal ])) ;) (expression_statement "*piVar1 = *piVar6;" (assignment_expression "*piVar1 = *piVar6" (pointer_expression "*piVar1" * identifier) = (pointer_expression "*piVar6" * identifier)) ;) (expression_statement "piVar1[1] = iVar2;" (assignment_expression "piVar1[1] = iVar2" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*piVar6 = 0;" (assignment_expression "*piVar6 = 0" (pointer_expression "*piVar6" * identifier) = number_literal) ;) (expression_statement "piVar6[1] = param_1[9];" (assignment_expression "piVar6[1] = param_1[9]" (subscript_expression "piVar6[1]" identifier [ number_literal ]) = (subscript_expression "param_1[9]" identifier [ number_literal ])) ;) (expression_statement "param_1[9] = (int)piVar6;" (assignment_expression "param_1[9] = (int)piVar6" (subscript_expression "param_1[9]" identifier [ number_literal ]) = (cast_expression "(int)piVar6" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (return_statement "return iVar5;" return identifier ;) })) (expression_statement "*piVar1 = 0;" (assignment_expression "*piVar1 = 0" (pointer_expression "*piVar1" * identifier) = number_literal) ;) })) (return_statement "return iVar5;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (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 ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * 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 (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (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 { (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)) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (return_statement return 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 , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (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)) ;) }) while (parenthesized_expression ( BOOL )) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (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 { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "int __regparm3 FUN_000145a0(int *param_1,int param_2,undefined4 *param_3,char param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  char cVar3;\n  uint uVar4;\n  int iVar5;\n  int *piVar6;\n  \n  uVar4 = (*(code *)param_1[6])(param_2,param_1[2]);\n  if ((uint)param_1[2] <= uVar4) {\n                    \n    abort();\n  }\n  piVar1 = (int *)(*param_1 + uVar4 * 8);\n  *param_3 = piVar1;\n  iVar5 = *piVar1;\n  if (iVar5 == 0) {\n    return 0;\n  }\n  if (iVar5 != param_2) {\n    cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n    if (cVar3 == '\0') {\n      piVar6 = (int *)piVar1[1];\n      if (piVar6 == (int *)0x0) {\n        return 0;\n      }\n      iVar5 = *piVar6;\n      do {\n        if (param_2 == iVar5) {\nLAB_00014634:\n          if (param_4 == '\0') {\n            return iVar5;\n          }\n          piVar1[1] = piVar6[1];\n          *piVar6 = 0;\n          piVar6[1] = param_1[9];\n          param_1[9] = (int)piVar6;\n          return iVar5;\n        }\n        cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n        if (cVar3 != '\0') {\n          piVar6 = (int *)piVar1[1];\n          iVar5 = *piVar6;\n          goto LAB_00014634;\n        }\n        piVar1 = (int *)piVar1[1];\n        piVar6 = (int *)piVar1[1];\n        if (piVar6 == (int *)0x0) {\n          return 0;\n        }\n        iVar5 = *piVar6;\n      } while( true );\n    }\n    iVar5 = *piVar1;\n  }\n  if (param_4 != '\0') {\n    piVar6 = (int *)piVar1[1];\n    if (piVar6 != (int *)0x0) {\n      iVar2 = piVar6[1];\n      *piVar1 = *piVar6;\n      piVar1[1] = iVar2;\n      *piVar6 = 0;\n      piVar6[1] = param_1[9];\n      param_1[9] = (int)piVar6;\n      return iVar5;\n    }\n    *piVar1 = 0;\n  }\n  return iVar5;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000145a0(int *param_1,int param_2,undefined4 *param_3,char param_4)" (identifier "FUN_000145a0") (parameter_list "(int *param_1,int param_2,undefined4 *param_3,char param_4)" (( "(") (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")) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "char param_4" (primitive_type "char") (identifier "param_4")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  char cVar3;\n  uint uVar4;\n  int iVar5;\n  int *piVar6;\n  \n  uVar4 = (*(code *)param_1[6])(param_2,param_1[2]);\n  if ((uint)param_1[2] <= uVar4) {\n                    \n    abort();\n  }\n  piVar1 = (int *)(*param_1 + uVar4 * 8);\n  *param_3 = piVar1;\n  iVar5 = *piVar1;\n  if (iVar5 == 0) {\n    return 0;\n  }\n  if (iVar5 != param_2) {\n    cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n    if (cVar3 == '\0') {\n      piVar6 = (int *)piVar1[1];\n      if (piVar6 == (int *)0x0) {\n        return 0;\n      }\n      iVar5 = *piVar6;\n      do {\n        if (param_2 == iVar5) {\nLAB_00014634:\n          if (param_4 == '\0') {\n            return iVar5;\n          }\n          piVar1[1] = piVar6[1];\n          *piVar6 = 0;\n          piVar6[1] = param_1[9];\n          param_1[9] = (int)piVar6;\n          return iVar5;\n        }\n        cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n        if (cVar3 != '\0') {\n          piVar6 = (int *)piVar1[1];\n          iVar5 = *piVar6;\n          goto LAB_00014634;\n        }\n        piVar1 = (int *)piVar1[1];\n        piVar6 = (int *)piVar1[1];\n        if (piVar6 == (int *)0x0) {\n          return 0;\n        }\n        iVar5 = *piVar6;\n      } while( true );\n    }\n    iVar5 = *piVar1;\n  }\n  if (param_4 != '\0') {\n    piVar6 = (int *)piVar1[1];\n    if (piVar6 != (int *)0x0) {\n      iVar2 = piVar6[1];\n      *piVar1 = *piVar6;\n      piVar1[1] = iVar2;\n      *piVar6 = 0;\n      piVar6[1] = param_1[9];\n      param_1[9] = (int)piVar6;\n      return iVar5;\n    }\n    *piVar1 = 0;\n  }\n  return iVar5;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "char cVar3;" (primitive_type "char") (identifier "cVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (expression_statement "uVar4 = (*(code *)param_1[6])(param_2,param_1[2]);" (assignment_expression "uVar4 = (*(code *)param_1[6])(param_2,param_1[2])" (identifier "uVar4") (= "=") (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] <= uVar4) {\n                    \n    abort();\n  }" (if "if") (parenthesized_expression "((uint)param_1[2] <= uVar4)" (( "(") (binary_expression "(uint)param_1[2] <= uVar4" (cast_expression "(uint)param_1[2]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (<= "<=") (identifier "uVar4")) () ")")) (compound_statement "{\n                    \n    abort();\n  }" ({ "{") (expression_statement "abort();" (call_expression "abort()" (identifier "abort") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "piVar1 = (int *)(*param_1 + uVar4 * 8);" (assignment_expression "piVar1 = (int *)(*param_1 + uVar4 * 8)" (identifier "piVar1") (= "=") (cast_expression "(int *)(*param_1 + uVar4 * 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + uVar4 * 8)" (( "(") (binary_expression "*param_1 + uVar4 * 8" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (binary_expression "uVar4 * 8" (identifier "uVar4") (* "*") (number_literal "8"))) () ")")))) (; ";")) (expression_statement "*param_3 = piVar1;" (assignment_expression "*param_3 = piVar1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "piVar1")) (; ";")) (expression_statement "iVar5 = *piVar1;" (assignment_expression "iVar5 = *piVar1" (identifier "iVar5") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (if_statement "if (iVar5 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (iVar5 != param_2) {\n    cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n    if (cVar3 == '\0') {\n      piVar6 = (int *)piVar1[1];\n      if (piVar6 == (int *)0x0) {\n        return 0;\n      }\n      iVar5 = *piVar6;\n      do {\n        if (param_2 == iVar5) {\nLAB_00014634:\n          if (param_4 == '\0') {\n            return iVar5;\n          }\n          piVar1[1] = piVar6[1];\n          *piVar6 = 0;\n          piVar6[1] = param_1[9];\n          param_1[9] = (int)piVar6;\n          return iVar5;\n        }\n        cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n        if (cVar3 != '\0') {\n          piVar6 = (int *)piVar1[1];\n          iVar5 = *piVar6;\n          goto LAB_00014634;\n        }\n        piVar1 = (int *)piVar1[1];\n        piVar6 = (int *)piVar1[1];\n        if (piVar6 == (int *)0x0) {\n          return 0;\n        }\n        iVar5 = *piVar6;\n      } while( true );\n    }\n    iVar5 = *piVar1;\n  }" (if "if") (parenthesized_expression "(iVar5 != param_2)" (( "(") (binary_expression "iVar5 != param_2" (identifier "iVar5") (!= "!=") (identifier "param_2")) () ")")) (compound_statement "{\n    cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n    if (cVar3 == '\0') {\n      piVar6 = (int *)piVar1[1];\n      if (piVar6 == (int *)0x0) {\n        return 0;\n      }\n      iVar5 = *piVar6;\n      do {\n        if (param_2 == iVar5) {\nLAB_00014634:\n          if (param_4 == '\0') {\n            return iVar5;\n          }\n          piVar1[1] = piVar6[1];\n          *piVar6 = 0;\n          piVar6[1] = param_1[9];\n          param_1[9] = (int)piVar6;\n          return iVar5;\n        }\n        cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n        if (cVar3 != '\0') {\n          piVar6 = (int *)piVar1[1];\n          iVar5 = *piVar6;\n          goto LAB_00014634;\n        }\n        piVar1 = (int *)piVar1[1];\n        piVar6 = (int *)piVar1[1];\n        if (piVar6 == (int *)0x0) {\n          return 0;\n        }\n        iVar5 = *piVar6;\n      } while( true );\n    }\n    iVar5 = *piVar1;\n  }" ({ "{") (expression_statement "cVar3 = (*(code *)param_1[7])(param_2,iVar5);" (assignment_expression "cVar3 = (*(code *)param_1[7])(param_2,iVar5)" (identifier "cVar3") (= "=") (call_expression "(*(code *)param_1[7])(param_2,iVar5)" (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,iVar5)" (( "(") (identifier "param_2") (, ",") (identifier "iVar5") () ")")))) (; ";")) (if_statement "if (cVar3 == '\0') {\n      piVar6 = (int *)piVar1[1];\n      if (piVar6 == (int *)0x0) {\n        return 0;\n      }\n      iVar5 = *piVar6;\n      do {\n        if (param_2 == iVar5) {\nLAB_00014634:\n          if (param_4 == '\0') {\n            return iVar5;\n          }\n          piVar1[1] = piVar6[1];\n          *piVar6 = 0;\n          piVar6[1] = param_1[9];\n          param_1[9] = (int)piVar6;\n          return iVar5;\n        }\n        cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n        if (cVar3 != '\0') {\n          piVar6 = (int *)piVar1[1];\n          iVar5 = *piVar6;\n          goto LAB_00014634;\n        }\n        piVar1 = (int *)piVar1[1];\n        piVar6 = (int *)piVar1[1];\n        if (piVar6 == (int *)0x0) {\n          return 0;\n        }\n        iVar5 = *piVar6;\n      } while( true );\n    }" (if "if") (parenthesized_expression "(cVar3 == '\0')" (( "(") (binary_expression "cVar3 == '\0'" (identifier "cVar3") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      piVar6 = (int *)piVar1[1];\n      if (piVar6 == (int *)0x0) {\n        return 0;\n      }\n      iVar5 = *piVar6;\n      do {\n        if (param_2 == iVar5) {\nLAB_00014634:\n          if (param_4 == '\0') {\n            return iVar5;\n          }\n          piVar1[1] = piVar6[1];\n          *piVar6 = 0;\n          piVar6[1] = param_1[9];\n          param_1[9] = (int)piVar6;\n          return iVar5;\n        }\n        cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n        if (cVar3 != '\0') {\n          piVar6 = (int *)piVar1[1];\n          iVar5 = *piVar6;\n          goto LAB_00014634;\n        }\n        piVar1 = (int *)piVar1[1];\n        piVar6 = (int *)piVar1[1];\n        if (piVar6 == (int *)0x0) {\n          return 0;\n        }\n        iVar5 = *piVar6;\n      } while( true );\n    }" ({ "{") (expression_statement "piVar6 = (int *)piVar1[1];" (assignment_expression "piVar6 = (int *)piVar1[1]" (identifier "piVar6") (= "=") (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 (piVar6 == (int *)0x0) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(piVar6 == (int *)0x0)" (( "(") (binary_expression "piVar6 == (int *)0x0" (identifier "piVar6") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar5 = *piVar6;" (assignment_expression "iVar5 = *piVar6" (identifier "iVar5") (= "=") (pointer_expression "*piVar6" (* "*") (identifier "piVar6"))) (; ";")) (do_statement "do {\n        if (param_2 == iVar5) {\nLAB_00014634:\n          if (param_4 == '\0') {\n            return iVar5;\n          }\n          piVar1[1] = piVar6[1];\n          *piVar6 = 0;\n          piVar6[1] = param_1[9];\n          param_1[9] = (int)piVar6;\n          return iVar5;\n        }\n        cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n        if (cVar3 != '\0') {\n          piVar6 = (int *)piVar1[1];\n          iVar5 = *piVar6;\n          goto LAB_00014634;\n        }\n        piVar1 = (int *)piVar1[1];\n        piVar6 = (int *)piVar1[1];\n        if (piVar6 == (int *)0x0) {\n          return 0;\n        }\n        iVar5 = *piVar6;\n      } while( true );" (do "do") (compound_statement "{\n        if (param_2 == iVar5) {\nLAB_00014634:\n          if (param_4 == '\0') {\n            return iVar5;\n          }\n          piVar1[1] = piVar6[1];\n          *piVar6 = 0;\n          piVar6[1] = param_1[9];\n          param_1[9] = (int)piVar6;\n          return iVar5;\n        }\n        cVar3 = (*(code *)param_1[7])(param_2,iVar5);\n        if (cVar3 != '\0') {\n          piVar6 = (int *)piVar1[1];\n          iVar5 = *piVar6;\n          goto LAB_00014634;\n        }\n        piVar1 = (int *)piVar1[1];\n        piVar6 = (int *)piVar1[1];\n        if (piVar6 == (int *)0x0) {\n          return 0;\n        }\n        iVar5 = *piVar6;\n      }" ({ "{") (if_statement "if (param_2 == iVar5) {\nLAB_00014634:\n          if (param_4 == '\0') {\n            return iVar5;\n          }\n          piVar1[1] = piVar6[1];\n          *piVar6 = 0;\n          piVar6[1] = param_1[9];\n          param_1[9] = (int)piVar6;\n          return iVar5;\n        }" (if "if") (parenthesized_expression "(param_2 == iVar5)" (( "(") (binary_expression "param_2 == iVar5" (identifier "param_2") (== "==") (identifier "iVar5")) () ")")) (compound_statement "{\nLAB_00014634:\n          if (param_4 == '\0') {\n            return iVar5;\n          }\n          piVar1[1] = piVar6[1];\n          *piVar6 = 0;\n          piVar6[1] = param_1[9];\n          param_1[9] = (int)piVar6;\n          return iVar5;\n        }" ({ "{") (labeled_statement "LAB_00014634:\n          if (param_4 == '\0') {\n            return iVar5;\n          }" (statement_identifier "LAB_00014634") (: ":") (if_statement "if (param_4 == '\0') {\n            return iVar5;\n          }" (if "if") (parenthesized_expression "(param_4 == '\0')" (( "(") (binary_expression "param_4 == '\0'" (identifier "param_4") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n            return iVar5;\n          }" ({ "{") (return_statement "return iVar5;" (return "return") (identifier "iVar5") (; ";")) (} "}")))) (expression_statement "piVar1[1] = piVar6[1];" (assignment_expression "piVar1[1] = piVar6[1]" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "piVar6[1]" (identifier "piVar6") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*piVar6 = 0;" (assignment_expression "*piVar6 = 0" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar6[1] = param_1[9];" (assignment_expression "piVar6[1] = param_1[9]" (subscript_expression "piVar6[1]" (identifier "piVar6") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]"))) (; ";")) (expression_statement "param_1[9] = (int)piVar6;" (assignment_expression "param_1[9] = (int)piVar6" (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (= "=") (cast_expression "(int)piVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar6"))) (; ";")) (return_statement "return iVar5;" (return "return") (identifier "iVar5") (; ";")) (} "}"))) (expression_statement "cVar3 = (*(code *)param_1[7])(param_2,iVar5);" (assignment_expression "cVar3 = (*(code *)param_1[7])(param_2,iVar5)" (identifier "cVar3") (= "=") (call_expression "(*(code *)param_1[7])(param_2,iVar5)" (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,iVar5)" (( "(") (identifier "param_2") (, ",") (identifier "iVar5") () ")")))) (; ";")) (if_statement "if (cVar3 != '\0') {\n          piVar6 = (int *)piVar1[1];\n          iVar5 = *piVar6;\n          goto LAB_00014634;\n        }" (if "if") (parenthesized_expression "(cVar3 != '\0')" (( "(") (binary_expression "cVar3 != '\0'" (identifier "cVar3") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          piVar6 = (int *)piVar1[1];\n          iVar5 = *piVar6;\n          goto LAB_00014634;\n        }" ({ "{") (expression_statement "piVar6 = (int *)piVar1[1];" (assignment_expression "piVar6 = (int *)piVar1[1]" (identifier "piVar6") (= "=") (cast_expression "(int *)piVar1[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "iVar5 = *piVar6;" (assignment_expression "iVar5 = *piVar6" (identifier "iVar5") (= "=") (pointer_expression "*piVar6" (* "*") (identifier "piVar6"))) (; ";")) (goto_statement "goto LAB_00014634;" (goto "goto") (statement_identifier "LAB_00014634") (; ";")) (} "}"))) (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") (] "]")))) (; ";")) (expression_statement "piVar6 = (int *)piVar1[1];" (assignment_expression "piVar6 = (int *)piVar1[1]" (identifier "piVar6") (= "=") (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 (piVar6 == (int *)0x0) {\n          return 0;\n        }" (if "if") (parenthesized_expression "(piVar6 == (int *)0x0)" (( "(") (binary_expression "piVar6 == (int *)0x0" (identifier "piVar6") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          return 0;\n        }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar5 = *piVar6;" (assignment_expression "iVar5 = *piVar6" (identifier "iVar5") (= "=") (pointer_expression "*piVar6" (* "*") (identifier "piVar6"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}"))) (expression_statement "iVar5 = *piVar1;" (assignment_expression "iVar5 = *piVar1" (identifier "iVar5") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (} "}"))) (if_statement "if (param_4 != '\0') {\n    piVar6 = (int *)piVar1[1];\n    if (piVar6 != (int *)0x0) {\n      iVar2 = piVar6[1];\n      *piVar1 = *piVar6;\n      piVar1[1] = iVar2;\n      *piVar6 = 0;\n      piVar6[1] = param_1[9];\n      param_1[9] = (int)piVar6;\n      return iVar5;\n    }\n    *piVar1 = 0;\n  }" (if "if") (parenthesized_expression "(param_4 != '\0')" (( "(") (binary_expression "param_4 != '\0'" (identifier "param_4") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    piVar6 = (int *)piVar1[1];\n    if (piVar6 != (int *)0x0) {\n      iVar2 = piVar6[1];\n      *piVar1 = *piVar6;\n      piVar1[1] = iVar2;\n      *piVar6 = 0;\n      piVar6[1] = param_1[9];\n      param_1[9] = (int)piVar6;\n      return iVar5;\n    }\n    *piVar1 = 0;\n  }" ({ "{") (expression_statement "piVar6 = (int *)piVar1[1];" (assignment_expression "piVar6 = (int *)piVar1[1]" (identifier "piVar6") (= "=") (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 (piVar6 != (int *)0x0) {\n      iVar2 = piVar6[1];\n      *piVar1 = *piVar6;\n      piVar1[1] = iVar2;\n      *piVar6 = 0;\n      piVar6[1] = param_1[9];\n      param_1[9] = (int)piVar6;\n      return iVar5;\n    }" (if "if") (parenthesized_expression "(piVar6 != (int *)0x0)" (( "(") (binary_expression "piVar6 != (int *)0x0" (identifier "piVar6") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      iVar2 = piVar6[1];\n      *piVar1 = *piVar6;\n      piVar1[1] = iVar2;\n      *piVar6 = 0;\n      piVar6[1] = param_1[9];\n      param_1[9] = (int)piVar6;\n      return iVar5;\n    }" ({ "{") (expression_statement "iVar2 = piVar6[1];" (assignment_expression "iVar2 = piVar6[1]" (identifier "iVar2") (= "=") (subscript_expression "piVar6[1]" (identifier "piVar6") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*piVar1 = *piVar6;" (assignment_expression "*piVar1 = *piVar6" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (pointer_expression "*piVar6" (* "*") (identifier "piVar6"))) (; ";")) (expression_statement "piVar1[1] = iVar2;" (assignment_expression "piVar1[1] = iVar2" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "*piVar6 = 0;" (assignment_expression "*piVar6 = 0" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar6[1] = param_1[9];" (assignment_expression "piVar6[1] = param_1[9]" (subscript_expression "piVar6[1]" (identifier "piVar6") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]"))) (; ";")) (expression_statement "param_1[9] = (int)piVar6;" (assignment_expression "param_1[9] = (int)piVar6" (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (= "=") (cast_expression "(int)piVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar6"))) (; ";")) (return_statement "return iVar5;" (return "return") (identifier "iVar5") (; ";")) (} "}"))) (expression_statement "*piVar1 = 0;" (assignment_expression "*piVar1 = 0" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return iVar5;" (return "return") (identifier "iVar5") (; ";")) (} "}")))

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

void * __regparm3
function_1(type_1 *table,void *var_4,type_2 **bucket_head,type_3 delete)

{
  type_2 *phVar1;
  type_2 *phVar2;
  type_3 _Var3;
  size_t var_1;
  void *var_3;
  type_2 *var_5;
  
  var_1 = (*table->hasher)(var_4,table->n_buckets);
  if (table->n_buckets <= var_1) {
                    /* WARNING: Subroutine does not return */
    var_2();
  }
  phVar1 = table->bucket + var_1;
  *bucket_head = phVar1;
  var_3 = phVar1->data;
  if (var_3 == (void *)0x0) {
    return (void *)0x0;
  }
  if (var_3 != var_4) {
    _Var3 = (*table->comparator)(var_4,var_3);
    if (!_Var3) {
      var_5 = phVar1->next;
      if (var_5 == (type_2 *)0x0) {
        return (void *)0x0;
      }
      var_3 = var_5->data;
      do {
        if (var_4 == var_3) {
LAB_00014634:
          if (!delete) {
            return var_3;
          }
          phVar1->next = var_5->next;
          var_5->data = (void *)0x0;
          var_5->next = table->free_entry_list;
          table->free_entry_list = var_5;
          return var_3;
        }
        _Var3 = (*table->comparator)(var_4,var_3);
        if (_Var3) {
          var_5 = phVar1->next;
          var_3 = var_5->data;
          goto LAB_00014634;
        }
        phVar1 = phVar1->next;
        var_5 = phVar1->next;
        if (var_5 == (type_2 *)0x0) {
          return (void *)0x0;
        }
        var_3 = var_5->data;
      } while( true );
    }
    var_3 = phVar1->data;
  }
  if (delete) {
    var_5 = phVar1->next;
    if (var_5 != (type_2 *)0x0) {
      phVar2 = var_5->next;
      phVar1->data = var_5->data;
      phVar1->next = phVar2;
      var_5->data = (void *)0x0;
      var_5->next = table->free_entry_list;
      table->free_entry_list = var_5;
      return var_3;
    }
    phVar1->data = (void *)0x0;
  }
  return var_3;
}


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

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

int __regparm3 MASKED(int *param_1,int param_2,undefined4 *param_3,char param_4)

{
  int *piVar1;
  int iVar2;
  char cVar3;
  uint uVar4;
  int iVar5;
  int *piVar6;
  
  uVar4 = (*(code *)param_1[6])(param_2,param_1[2]);
  if ((uint)param_1[2] <= uVar4) {
                    /* WARNING: Subroutine does not return */
    abort();
  }
  piVar1 = (int *)(*param_1 + uVar4 * 8);
  *param_3 = piVar1;
  iVar5 = *piVar1;
  if (iVar5 == 0) {
    return 0;
  }
  if (iVar5 != param_2) {
    cVar3 = (*(code *)param_1[7])(param_2,iVar5);
    if (cVar3 == '\0') {
      piVar6 = (int *)piVar1[1];
      if (piVar6 == (int *)0x0) {
        return 0;
      }
      iVar5 = *piVar6;
      do {
        if (param_2 == iVar5) {
LAB_00014634:
          if (param_4 == '\0') {
            return iVar5;
          }
          piVar1[1] = piVar6[1];
          *piVar6 = 0;
          piVar6[1] = param_1[9];
          param_1[9] = (int)piVar6;
          return iVar5;
        }
        cVar3 = (*(code *)param_1[7])(param_2,iVar5);
        if (cVar3 != '\0') {
          piVar6 = (int *)piVar1[1];
          iVar5 = *piVar6;
          goto LAB_00014634;
        }
        piVar1 = (int *)piVar1[1];
        piVar6 = (int *)piVar1[1];
        if (piVar6 == (int *)0x0) {
          return 0;
        }
        iVar5 = *piVar6;
      } while( true );
    }
    iVar5 = *piVar1;
  }
  if (param_4 != '\0') {
    piVar6 = (int *)piVar1[1];
    if (piVar6 != (int *)0x0) {
      iVar2 = piVar6[1];
      *piVar1 = *piVar6;
      piVar1[1] = iVar2;
      *piVar6 = 0;
      piVar6[1] = param_1[9];
      param_1[9] = (int)piVar6;
      return iVar5;
    }
    *piVar1 = 0;
  }
  return iVar5;
}

