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

{
  hash_entry *phVar1;
  _Bool _Var2;
  hash_entry *phVar3;
  void *pvVar4;
  hash_entry *phVar5;
  
  phVar3 = safe_hasher(table,entry);
  *bucket_head = phVar3;
  pvVar4 = phVar3->data;
  if (pvVar4 == (void *)0x0) {
    return (void *)0x0;
  }
  if (pvVar4 != entry) {
    _Var2 = (*table->comparator)(entry,pvVar4);
    if (!_Var2) {
      phVar5 = phVar3->next;
      if (phVar5 == (hash_entry *)0x0) {
        return (void *)0x0;
      }
      pvVar4 = phVar5->data;
      do {
        if (entry == pvVar4) {
LAB_0001ce2c:
          if (!delete) {
            return pvVar4;
          }
          phVar3->next = phVar5->next;
          phVar5->data = (void *)0x0;
          phVar5->next = table->free_entry_list;
          table->free_entry_list = phVar5;
          return pvVar4;
        }
        _Var2 = (*table->comparator)(entry,pvVar4);
        if (_Var2) {
          phVar5 = phVar3->next;
          pvVar4 = phVar5->data;
          goto LAB_0001ce2c;
        }
        phVar3 = phVar3->next;
        phVar5 = phVar3->next;
        if (phVar5 == (hash_entry *)0x0) {
          return (void *)0x0;
        }
        pvVar4 = phVar5->data;
      } while( true );
    }
    pvVar4 = phVar3->data;
  }
  if (delete) {
    phVar5 = phVar3->next;
    if (phVar5 != (hash_entry *)0x0) {
      phVar1 = phVar5->next;
      phVar3->data = phVar5->data;
      phVar3->next = phVar1;
      phVar5->data = (void *)0x0;
      phVar5->next = table->free_entry_list;
      table->free_entry_list = phVar5;
      return pvVar4;
    }
    phVar3->data = (void *)0x0;
  }
  return pvVar4;
}



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

{
  int iVar1;
  char cVar2;
  int *piVar3;
  int iVar4;
  int *piVar5;
  
  piVar3 = (int *)FUN_0001cd80();
  *param_3 = piVar3;
  iVar4 = *piVar3;
  if (iVar4 == 0) {
    return 0;
  }
  if (iVar4 != param_2) {
    cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);
    if (cVar2 == '\0') {
      piVar5 = (int *)piVar3[1];
      if (piVar5 == (int *)0x0) {
        return 0;
      }
      iVar4 = *piVar5;
      do {
        if (param_2 == iVar4) {
LAB_0001ce2c:
          if (param_4 == '\0') {
            return iVar4;
          }
          piVar3[1] = piVar5[1];
          *piVar5 = 0;
          piVar5[1] = *(int *)(param_1 + 0x24);
          *(int **)(param_1 + 0x24) = piVar5;
          return iVar4;
        }
        cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);
        if (cVar2 != '\0') {
          piVar5 = (int *)piVar3[1];
          iVar4 = *piVar5;
          goto LAB_0001ce2c;
        }
        piVar3 = (int *)piVar3[1];
        piVar5 = (int *)piVar3[1];
        if (piVar5 == (int *)0x0) {
          return 0;
        }
        iVar4 = *piVar5;
      } while( true );
    }
    iVar4 = *piVar3;
  }
  if (param_4 != '\0') {
    piVar5 = (int *)piVar3[1];
    if (piVar5 != (int *)0x0) {
      iVar1 = piVar5[1];
      *piVar3 = *piVar5;
      piVar3[1] = iVar1;
      *piVar5 = 0;
      piVar5[1] = *(int *)(param_1 + 0x24);
      *(int **)(param_1 + 0x24) = piVar5;
      return iVar4;
    }
    *piVar3 = 0;
  }
  return iVar4;
}


PUSH EBP
MOV EBP,ECX
PUSH EDI
MOV EDI,EDX
PUSH ESI
MOV ESI,EAX
PUSH EBX
SUB ESP,0x1c
MOV EAX,dword ptr [ESP + 0x30]
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,ESI
CALL 0x0001cd80
MOV EBX,EAX
MOV dword ptr [EBP],EAX
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JZ 0x0001ce88
CMP EAX,EDI
JZ 0x0001ce52
SUB ESP,0x8
PUSH EAX
PUSH EDI
CALL dword ptr [ESI + 0x1c]
ADD ESP,0x10
TEST AL,AL
JNZ 0x0001ce50
MOV EDX,dword ptr [EBX + 0x4]
TEST EDX,EDX
JZ 0x0001ce88
MOV EAX,dword ptr [EDX]
CMP EDI,EAX
JNZ 0x0001ce18
JMP 0x0001ce2c
MOV EBX,dword ptr [EBX + 0x4]
MOV EDX,dword ptr [EBX + 0x4]
TEST EDX,EDX
JZ 0x0001ce88
MOV EAX,dword ptr [EDX]
CMP EAX,EDI
JZ 0x0001ce2c
SUB ESP,0x8
PUSH EAX
PUSH EDI
CALL dword ptr [ESI + 0x1c]
ADD ESP,0x10
TEST AL,AL
JZ 0x0001ce08
MOV EDX,dword ptr [EBX + 0x4]
MOV EAX,dword ptr [EDX]
CMP byte ptr [ESP + 0xc],0x0
JZ 0x0001ce48
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 0x0001ce48
MOV EDX,dword ptr [EBX + 0x4]
TEST EDX,EDX
JZ 0x0001ce98
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 0x0001ce48
(translation_unit "int __regparm3 FUN_0001cdb0(int param_1,int param_2,undefined4 *param_3,char param_4)\n\n{\n  int iVar1;\n  char cVar2;\n  int *piVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar3 = (int *)FUN_0001cd80();\n  *param_3 = piVar3;\n  iVar4 = *piVar3;\n  if (iVar4 == 0) {\n    return 0;\n  }\n  if (iVar4 != param_2) {\n    cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n    if (cVar2 == '\0') {\n      piVar5 = (int *)piVar3[1];\n      if (piVar5 == (int *)0x0) {\n        return 0;\n      }\n      iVar4 = *piVar5;\n      do {\n        if (param_2 == iVar4) {\nLAB_0001ce2c:\n          if (param_4 == '\0') {\n            return iVar4;\n          }\n          piVar3[1] = piVar5[1];\n          *piVar5 = 0;\n          piVar5[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar5;\n          return iVar4;\n        }\n        cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n        if (cVar2 != '\0') {\n          piVar5 = (int *)piVar3[1];\n          iVar4 = *piVar5;\n          goto LAB_0001ce2c;\n        }\n        piVar3 = (int *)piVar3[1];\n        piVar5 = (int *)piVar3[1];\n        if (piVar5 == (int *)0x0) {\n          return 0;\n        }\n        iVar4 = *piVar5;\n      } while( true );\n    }\n    iVar4 = *piVar3;\n  }\n  if (param_4 != '\0') {\n    piVar5 = (int *)piVar3[1];\n    if (piVar5 != (int *)0x0) {\n      iVar1 = piVar5[1];\n      *piVar3 = *piVar5;\n      piVar3[1] = iVar1;\n      *piVar5 = 0;\n      piVar5[1] = *(int *)(param_1 + 0x24);\n      *(int **)(param_1 + 0x24) = piVar5;\n      return iVar4;\n    }\n    *piVar3 = 0;\n  }\n  return iVar4;\n}\n\n" (function_definition "int __regparm3 FUN_0001cdb0(int param_1,int param_2,undefined4 *param_3,char param_4)\n\n{\n  int iVar1;\n  char cVar2;\n  int *piVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar3 = (int *)FUN_0001cd80();\n  *param_3 = piVar3;\n  iVar4 = *piVar3;\n  if (iVar4 == 0) {\n    return 0;\n  }\n  if (iVar4 != param_2) {\n    cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n    if (cVar2 == '\0') {\n      piVar5 = (int *)piVar3[1];\n      if (piVar5 == (int *)0x0) {\n        return 0;\n      }\n      iVar4 = *piVar5;\n      do {\n        if (param_2 == iVar4) {\nLAB_0001ce2c:\n          if (param_4 == '\0') {\n            return iVar4;\n          }\n          piVar3[1] = piVar5[1];\n          *piVar5 = 0;\n          piVar5[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar5;\n          return iVar4;\n        }\n        cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n        if (cVar2 != '\0') {\n          piVar5 = (int *)piVar3[1];\n          iVar4 = *piVar5;\n          goto LAB_0001ce2c;\n        }\n        piVar3 = (int *)piVar3[1];\n        piVar5 = (int *)piVar3[1];\n        if (piVar5 == (int *)0x0) {\n          return 0;\n        }\n        iVar4 = *piVar5;\n      } while( true );\n    }\n    iVar4 = *piVar3;\n  }\n  if (param_4 != '\0') {\n    piVar5 = (int *)piVar3[1];\n    if (piVar5 != (int *)0x0) {\n      iVar1 = piVar5[1];\n      *piVar3 = *piVar5;\n      piVar3[1] = iVar1;\n      *piVar5 = 0;\n      piVar5[1] = *(int *)(param_1 + 0x24);\n      *(int **)(param_1 + 0x24) = piVar5;\n      return iVar4;\n    }\n    *piVar3 = 0;\n  }\n  return iVar4;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001cdb0(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 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 iVar1;\n  char cVar2;\n  int *piVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar3 = (int *)FUN_0001cd80();\n  *param_3 = piVar3;\n  iVar4 = *piVar3;\n  if (iVar4 == 0) {\n    return 0;\n  }\n  if (iVar4 != param_2) {\n    cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n    if (cVar2 == '\0') {\n      piVar5 = (int *)piVar3[1];\n      if (piVar5 == (int *)0x0) {\n        return 0;\n      }\n      iVar4 = *piVar5;\n      do {\n        if (param_2 == iVar4) {\nLAB_0001ce2c:\n          if (param_4 == '\0') {\n            return iVar4;\n          }\n          piVar3[1] = piVar5[1];\n          *piVar5 = 0;\n          piVar5[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar5;\n          return iVar4;\n        }\n        cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n        if (cVar2 != '\0') {\n          piVar5 = (int *)piVar3[1];\n          iVar4 = *piVar5;\n          goto LAB_0001ce2c;\n        }\n        piVar3 = (int *)piVar3[1];\n        piVar5 = (int *)piVar3[1];\n        if (piVar5 == (int *)0x0) {\n          return 0;\n        }\n        iVar4 = *piVar5;\n      } while( true );\n    }\n    iVar4 = *piVar3;\n  }\n  if (param_4 != '\0') {\n    piVar5 = (int *)piVar3[1];\n    if (piVar5 != (int *)0x0) {\n      iVar1 = piVar5[1];\n      *piVar3 = *piVar5;\n      piVar3[1] = iVar1;\n      *piVar5 = 0;\n      piVar5[1] = *(int *)(param_1 + 0x24);\n      *(int **)(param_1 + 0x24) = piVar5;\n      return iVar4;\n    }\n    *piVar3 = 0;\n  }\n  return iVar4;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (expression_statement "piVar3 = (int *)FUN_0001cd80();" (assignment_expression "piVar3 = (int *)FUN_0001cd80()" identifier = (cast_expression "(int *)FUN_0001cd80()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001cd80()" identifier (argument_list "()" ( ))))) ;) (expression_statement "*param_3 = piVar3;" (assignment_expression "*param_3 = piVar3" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "iVar4 = *piVar3;" (assignment_expression "iVar4 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (if_statement "if (iVar4 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (iVar4 != param_2) {\n    cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n    if (cVar2 == '\0') {\n      piVar5 = (int *)piVar3[1];\n      if (piVar5 == (int *)0x0) {\n        return 0;\n      }\n      iVar4 = *piVar5;\n      do {\n        if (param_2 == iVar4) {\nLAB_0001ce2c:\n          if (param_4 == '\0') {\n            return iVar4;\n          }\n          piVar3[1] = piVar5[1];\n          *piVar5 = 0;\n          piVar5[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar5;\n          return iVar4;\n        }\n        cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n        if (cVar2 != '\0') {\n          piVar5 = (int *)piVar3[1];\n          iVar4 = *piVar5;\n          goto LAB_0001ce2c;\n        }\n        piVar3 = (int *)piVar3[1];\n        piVar5 = (int *)piVar3[1];\n        if (piVar5 == (int *)0x0) {\n          return 0;\n        }\n        iVar4 = *piVar5;\n      } while( true );\n    }\n    iVar4 = *piVar3;\n  }" if (parenthesized_expression "(iVar4 != param_2)" ( (binary_expression "iVar4 != param_2" identifier != identifier) )) (compound_statement "{\n    cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n    if (cVar2 == '\0') {\n      piVar5 = (int *)piVar3[1];\n      if (piVar5 == (int *)0x0) {\n        return 0;\n      }\n      iVar4 = *piVar5;\n      do {\n        if (param_2 == iVar4) {\nLAB_0001ce2c:\n          if (param_4 == '\0') {\n            return iVar4;\n          }\n          piVar3[1] = piVar5[1];\n          *piVar5 = 0;\n          piVar5[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar5;\n          return iVar4;\n        }\n        cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n        if (cVar2 != '\0') {\n          piVar5 = (int *)piVar3[1];\n          iVar4 = *piVar5;\n          goto LAB_0001ce2c;\n        }\n        piVar3 = (int *)piVar3[1];\n        piVar5 = (int *)piVar3[1];\n        if (piVar5 == (int *)0x0) {\n          return 0;\n        }\n        iVar4 = *piVar5;\n      } while( true );\n    }\n    iVar4 = *piVar3;\n  }" { (expression_statement "cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);" (assignment_expression "cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4)" identifier = (call_expression "(**(code **)(param_1 + 0x1c))(param_2,iVar4)" (parenthesized_expression "(**(code **)(param_1 + 0x1c))" ( (pointer_expression "**(code **)(param_1 + 0x1c)" * (pointer_expression "*(code **)(param_1 + 0x1c)" * (cast_expression "(code **)(param_1 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) )) (argument_list "(param_2,iVar4)" ( identifier , identifier )))) ;) (if_statement "if (cVar2 == '\0') {\n      piVar5 = (int *)piVar3[1];\n      if (piVar5 == (int *)0x0) {\n        return 0;\n      }\n      iVar4 = *piVar5;\n      do {\n        if (param_2 == iVar4) {\nLAB_0001ce2c:\n          if (param_4 == '\0') {\n            return iVar4;\n          }\n          piVar3[1] = piVar5[1];\n          *piVar5 = 0;\n          piVar5[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar5;\n          return iVar4;\n        }\n        cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n        if (cVar2 != '\0') {\n          piVar5 = (int *)piVar3[1];\n          iVar4 = *piVar5;\n          goto LAB_0001ce2c;\n        }\n        piVar3 = (int *)piVar3[1];\n        piVar5 = (int *)piVar3[1];\n        if (piVar5 == (int *)0x0) {\n          return 0;\n        }\n        iVar4 = *piVar5;\n      } while( true );\n    }" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      piVar5 = (int *)piVar3[1];\n      if (piVar5 == (int *)0x0) {\n        return 0;\n      }\n      iVar4 = *piVar5;\n      do {\n        if (param_2 == iVar4) {\nLAB_0001ce2c:\n          if (param_4 == '\0') {\n            return iVar4;\n          }\n          piVar3[1] = piVar5[1];\n          *piVar5 = 0;\n          piVar5[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar5;\n          return iVar4;\n        }\n        cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n        if (cVar2 != '\0') {\n          piVar5 = (int *)piVar3[1];\n          iVar4 = *piVar5;\n          goto LAB_0001ce2c;\n        }\n        piVar3 = (int *)piVar3[1];\n        piVar5 = (int *)piVar3[1];\n        if (piVar5 == (int *)0x0) {\n          return 0;\n        }\n        iVar4 = *piVar5;\n      } while( true );\n    }" { (expression_statement "piVar5 = (int *)piVar3[1];" (assignment_expression "piVar5 = (int *)piVar3[1]" identifier = (cast_expression "(int *)piVar3[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[1]" identifier [ number_literal ]))) ;) (if_statement "if (piVar5 == (int *)0x0) {\n        return 0;\n      }" if (parenthesized_expression "(piVar5 == (int *)0x0)" ( (binary_expression "piVar5 == (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 "iVar4 = *piVar5;" (assignment_expression "iVar4 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (do_statement "do {\n        if (param_2 == iVar4) {\nLAB_0001ce2c:\n          if (param_4 == '\0') {\n            return iVar4;\n          }\n          piVar3[1] = piVar5[1];\n          *piVar5 = 0;\n          piVar5[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar5;\n          return iVar4;\n        }\n        cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n        if (cVar2 != '\0') {\n          piVar5 = (int *)piVar3[1];\n          iVar4 = *piVar5;\n          goto LAB_0001ce2c;\n        }\n        piVar3 = (int *)piVar3[1];\n        piVar5 = (int *)piVar3[1];\n        if (piVar5 == (int *)0x0) {\n          return 0;\n        }\n        iVar4 = *piVar5;\n      } while( true );" do (compound_statement "{\n        if (param_2 == iVar4) {\nLAB_0001ce2c:\n          if (param_4 == '\0') {\n            return iVar4;\n          }\n          piVar3[1] = piVar5[1];\n          *piVar5 = 0;\n          piVar5[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar5;\n          return iVar4;\n        }\n        cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n        if (cVar2 != '\0') {\n          piVar5 = (int *)piVar3[1];\n          iVar4 = *piVar5;\n          goto LAB_0001ce2c;\n        }\n        piVar3 = (int *)piVar3[1];\n        piVar5 = (int *)piVar3[1];\n        if (piVar5 == (int *)0x0) {\n          return 0;\n        }\n        iVar4 = *piVar5;\n      }" { (if_statement "if (param_2 == iVar4) {\nLAB_0001ce2c:\n          if (param_4 == '\0') {\n            return iVar4;\n          }\n          piVar3[1] = piVar5[1];\n          *piVar5 = 0;\n          piVar5[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar5;\n          return iVar4;\n        }" if (parenthesized_expression "(param_2 == iVar4)" ( (binary_expression "param_2 == iVar4" identifier == identifier) )) (compound_statement "{\nLAB_0001ce2c:\n          if (param_4 == '\0') {\n            return iVar4;\n          }\n          piVar3[1] = piVar5[1];\n          *piVar5 = 0;\n          piVar5[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar5;\n          return iVar4;\n        }" { (labeled_statement "LAB_0001ce2c:\n          if (param_4 == '\0') {\n            return iVar4;\n          }" statement_identifier : (if_statement "if (param_4 == '\0') {\n            return iVar4;\n          }" if (parenthesized_expression "(param_4 == '\0')" ( (binary_expression "param_4 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            return iVar4;\n          }" { (return_statement "return iVar4;" return identifier ;) }))) (expression_statement "piVar3[1] = piVar5[1];" (assignment_expression "piVar3[1] = piVar5[1]" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = (subscript_expression "piVar5[1]" identifier [ number_literal ])) ;) (expression_statement "*piVar5 = 0;" (assignment_expression "*piVar5 = 0" (pointer_expression "*piVar5" * identifier) = number_literal) ;) (expression_statement "piVar5[1] = *(int *)(param_1 + 0x24);" (assignment_expression "piVar5[1] = *(int *)(param_1 + 0x24)" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "*(int **)(param_1 + 0x24) = piVar5;" (assignment_expression "*(int **)(param_1 + 0x24) = piVar5" (pointer_expression "*(int **)(param_1 + 0x24)" * (cast_expression "(int **)(param_1 + 0x24)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = identifier) ;) (return_statement "return iVar4;" return identifier ;) })) (expression_statement "cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);" (assignment_expression "cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4)" identifier = (call_expression "(**(code **)(param_1 + 0x1c))(param_2,iVar4)" (parenthesized_expression "(**(code **)(param_1 + 0x1c))" ( (pointer_expression "**(code **)(param_1 + 0x1c)" * (pointer_expression "*(code **)(param_1 + 0x1c)" * (cast_expression "(code **)(param_1 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) )) (argument_list "(param_2,iVar4)" ( identifier , identifier )))) ;) (if_statement "if (cVar2 != '\0') {\n          piVar5 = (int *)piVar3[1];\n          iVar4 = *piVar5;\n          goto LAB_0001ce2c;\n        }" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          piVar5 = (int *)piVar3[1];\n          iVar4 = *piVar5;\n          goto LAB_0001ce2c;\n        }" { (expression_statement "piVar5 = (int *)piVar3[1];" (assignment_expression "piVar5 = (int *)piVar3[1]" identifier = (cast_expression "(int *)piVar3[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[1]" identifier [ number_literal ]))) ;) (expression_statement "iVar4 = *piVar5;" (assignment_expression "iVar4 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (goto_statement "goto LAB_0001ce2c;" goto statement_identifier ;) })) (expression_statement "piVar3 = (int *)piVar3[1];" (assignment_expression "piVar3 = (int *)piVar3[1]" identifier = (cast_expression "(int *)piVar3[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[1]" identifier [ number_literal ]))) ;) (expression_statement "piVar5 = (int *)piVar3[1];" (assignment_expression "piVar5 = (int *)piVar3[1]" identifier = (cast_expression "(int *)piVar3[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[1]" identifier [ number_literal ]))) ;) (if_statement "if (piVar5 == (int *)0x0) {\n          return 0;\n        }" if (parenthesized_expression "(piVar5 == (int *)0x0)" ( (binary_expression "piVar5 == (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 "iVar4 = *piVar5;" (assignment_expression "iVar4 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })) (expression_statement "iVar4 = *piVar3;" (assignment_expression "iVar4 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) })) (if_statement "if (param_4 != '\0') {\n    piVar5 = (int *)piVar3[1];\n    if (piVar5 != (int *)0x0) {\n      iVar1 = piVar5[1];\n      *piVar3 = *piVar5;\n      piVar3[1] = iVar1;\n      *piVar5 = 0;\n      piVar5[1] = *(int *)(param_1 + 0x24);\n      *(int **)(param_1 + 0x24) = piVar5;\n      return iVar4;\n    }\n    *piVar3 = 0;\n  }" if (parenthesized_expression "(param_4 != '\0')" ( (binary_expression "param_4 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    piVar5 = (int *)piVar3[1];\n    if (piVar5 != (int *)0x0) {\n      iVar1 = piVar5[1];\n      *piVar3 = *piVar5;\n      piVar3[1] = iVar1;\n      *piVar5 = 0;\n      piVar5[1] = *(int *)(param_1 + 0x24);\n      *(int **)(param_1 + 0x24) = piVar5;\n      return iVar4;\n    }\n    *piVar3 = 0;\n  }" { (expression_statement "piVar5 = (int *)piVar3[1];" (assignment_expression "piVar5 = (int *)piVar3[1]" identifier = (cast_expression "(int *)piVar3[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[1]" identifier [ number_literal ]))) ;) (if_statement "if (piVar5 != (int *)0x0) {\n      iVar1 = piVar5[1];\n      *piVar3 = *piVar5;\n      piVar3[1] = iVar1;\n      *piVar5 = 0;\n      piVar5[1] = *(int *)(param_1 + 0x24);\n      *(int **)(param_1 + 0x24) = piVar5;\n      return iVar4;\n    }" if (parenthesized_expression "(piVar5 != (int *)0x0)" ( (binary_expression "piVar5 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar1 = piVar5[1];\n      *piVar3 = *piVar5;\n      piVar3[1] = iVar1;\n      *piVar5 = 0;\n      piVar5[1] = *(int *)(param_1 + 0x24);\n      *(int **)(param_1 + 0x24) = piVar5;\n      return iVar4;\n    }" { (expression_statement "iVar1 = piVar5[1];" (assignment_expression "iVar1 = piVar5[1]" identifier = (subscript_expression "piVar5[1]" identifier [ number_literal ])) ;) (expression_statement "*piVar3 = *piVar5;" (assignment_expression "*piVar3 = *piVar5" (pointer_expression "*piVar3" * identifier) = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "piVar3[1] = iVar1;" (assignment_expression "piVar3[1] = iVar1" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*piVar5 = 0;" (assignment_expression "*piVar5 = 0" (pointer_expression "*piVar5" * identifier) = number_literal) ;) (expression_statement "piVar5[1] = *(int *)(param_1 + 0x24);" (assignment_expression "piVar5[1] = *(int *)(param_1 + 0x24)" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "*(int **)(param_1 + 0x24) = piVar5;" (assignment_expression "*(int **)(param_1 + 0x24) = piVar5" (pointer_expression "*(int **)(param_1 + 0x24)" * (cast_expression "(int **)(param_1 + 0x24)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = identifier) ;) (return_statement "return iVar4;" return identifier ;) })) (expression_statement "*piVar3 = 0;" (assignment_expression "*piVar3 = 0" (pointer_expression "*piVar3" * identifier) = number_literal) ;) })) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "void * __regparm3\nhash_find_entry(Hash_table *table,void *entry,hash_entry **bucket_head,_Bool delete)\n\n{\n  hash_entry *phVar1;\n  _Bool _Var2;\n  hash_entry *phVar3;\n  void *pvVar4;\n  hash_entry *phVar5;\n  \n  phVar3 = safe_hasher(table,entry);\n  *bucket_head = phVar3;\n  pvVar4 = phVar3->data;\n  if (pvVar4 == (void *)0x0) {\n    return (void *)0x0;\n  }\n  if (pvVar4 != entry) {\n    _Var2 = (*table->comparator)(entry,pvVar4);\n    if (!_Var2) {\n      phVar5 = phVar3->next;\n      if (phVar5 == (hash_entry *)0x0) {\n        return (void *)0x0;\n      }\n      pvVar4 = phVar5->data;\n      do {\n        if (entry == pvVar4) {\nLAB_0001ce2c:\n          if (!delete) {\n            return pvVar4;\n          }\n          phVar3->next = phVar5->next;\n          phVar5->data = (void *)0x0;\n          phVar5->next = table->free_entry_list;\n          table->free_entry_list = phVar5;\n          return pvVar4;\n        }\n        _Var2 = (*table->comparator)(entry,pvVar4);\n        if (_Var2) {\n          phVar5 = phVar3->next;\n          pvVar4 = phVar5->data;\n          goto LAB_0001ce2c;\n        }\n        phVar3 = phVar3->next;\n        phVar5 = phVar3->next;\n        if (phVar5 == (hash_entry *)0x0) {\n          return (void *)0x0;\n        }\n        pvVar4 = phVar5->data;\n      } while( true );\n    }\n    pvVar4 = phVar3->data;\n  }\n  if (delete) {\n    phVar5 = phVar3->next;\n    if (phVar5 != (hash_entry *)0x0) {\n      phVar1 = phVar5->next;\n      phVar3->data = phVar5->data;\n      phVar3->next = phVar1;\n      phVar5->data = (void *)0x0;\n      phVar5->next = table->free_entry_list;\n      table->free_entry_list = phVar5;\n      return pvVar4;\n    }\n    phVar3->data = (void *)0x0;\n  }\n  return pvVar4;\n}\n\n" (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  _Bool _Var2;\n  hash_entry *phVar3;\n  void *pvVar4;\n  hash_entry *phVar5;\n  \n  phVar3 = safe_hasher(table,entry);\n  *bucket_head = phVar3;\n  pvVar4 = phVar3->data;\n  if (pvVar4 == (void *)0x0) {\n    return (void *)0x0;\n  }\n  if (pvVar4 != entry) {\n    _Var2 = (*table->comparator)(entry,pvVar4);\n    if (!_Var2) {\n      phVar5 = phVar3->next;\n      if (phVar5 == (hash_entry *)0x0) {\n        return (void *)0x0;\n      }\n      pvVar4 = phVar5->data;\n      do {\n        if (entry == pvVar4) {\nLAB_0001ce2c:\n          if (!delete) {\n            return pvVar4;\n          }\n          phVar3->next = phVar5->next;\n          phVar5->data = (void *)0x0;\n          phVar5->next = table->free_entry_list;\n          table->free_entry_list = phVar5;\n          return pvVar4;\n        }\n        _Var2 = (*table->comparator)(entry,pvVar4);\n        if (_Var2) {\n          phVar5 = phVar3->next;\n          pvVar4 = phVar5->data;\n          goto LAB_0001ce2c;\n        }\n        phVar3 = phVar3->next;\n        phVar5 = phVar3->next;\n        if (phVar5 == (hash_entry *)0x0) {\n          return (void *)0x0;\n        }\n        pvVar4 = phVar5->data;\n      } while( true );\n    }\n    pvVar4 = phVar3->data;\n  }\n  if (delete) {\n    phVar5 = phVar3->next;\n    if (phVar5 != (hash_entry *)0x0) {\n      phVar1 = phVar5->next;\n      phVar3->data = phVar5->data;\n      phVar3->next = phVar1;\n      phVar5->data = (void *)0x0;\n      phVar5->next = table->free_entry_list;\n      table->free_entry_list = phVar5;\n      return pvVar4;\n    }\n    phVar3->data = (void *)0x0;\n  }\n  return pvVar4;\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  _Bool _Var2;\n  hash_entry *phVar3;\n  void *pvVar4;\n  hash_entry *phVar5;\n  \n  phVar3 = safe_hasher(table,entry);\n  *bucket_head = phVar3;\n  pvVar4 = phVar3->data;\n  if (pvVar4 == (void *)0x0) {\n    return (void *)0x0;\n  }\n  if (pvVar4 != entry) {\n    _Var2 = (*table->comparator)(entry,pvVar4);\n    if (!_Var2) {\n      phVar5 = phVar3->next;\n      if (phVar5 == (hash_entry *)0x0) {\n        return (void *)0x0;\n      }\n      pvVar4 = phVar5->data;\n      do {\n        if (entry == pvVar4) {\nLAB_0001ce2c:\n          if (!delete) {\n            return pvVar4;\n          }\n          phVar3->next = phVar5->next;\n          phVar5->data = (void *)0x0;\n          phVar5->next = table->free_entry_list;\n          table->free_entry_list = phVar5;\n          return pvVar4;\n        }\n        _Var2 = (*table->comparator)(entry,pvVar4);\n        if (_Var2) {\n          phVar5 = phVar3->next;\n          pvVar4 = phVar5->data;\n          goto LAB_0001ce2c;\n        }\n        phVar3 = phVar3->next;\n        phVar5 = phVar3->next;\n        if (phVar5 == (hash_entry *)0x0) {\n          return (void *)0x0;\n        }\n        pvVar4 = phVar5->data;\n      } while( true );\n    }\n    pvVar4 = phVar3->data;\n  }\n  if (delete) {\n    phVar5 = phVar3->next;\n    if (phVar5 != (hash_entry *)0x0) {\n      phVar1 = phVar5->next;\n      phVar3->data = phVar5->data;\n      phVar3->next = phVar1;\n      phVar5->data = (void *)0x0;\n      phVar5->next = table->free_entry_list;\n      table->free_entry_list = phVar5;\n      return pvVar4;\n    }\n    phVar3->data = (void *)0x0;\n  }\n  return pvVar4;\n}" { (declaration "hash_entry *phVar1;" type_identifier (pointer_declarator "*phVar1" * identifier) ;) (declaration "_Bool _Var2;" type_identifier identifier ;) (declaration "hash_entry *phVar3;" type_identifier (pointer_declarator "*phVar3" * identifier) ;) (declaration "void *pvVar4;" primitive_type (pointer_declarator "*pvVar4" * identifier) ;) (declaration "hash_entry *phVar5;" type_identifier (pointer_declarator "*phVar5" * identifier) ;) (expression_statement "phVar3 = safe_hasher(table,entry);" (assignment_expression "phVar3 = safe_hasher(table,entry)" identifier = (call_expression "safe_hasher(table,entry)" identifier (argument_list "(table,entry)" ( identifier , identifier )))) ;) (expression_statement "*bucket_head = phVar3;" (assignment_expression "*bucket_head = phVar3" (pointer_expression "*bucket_head" * identifier) = identifier) ;) (expression_statement "pvVar4 = phVar3->data;" (assignment_expression "pvVar4 = phVar3->data" identifier = (field_expression "phVar3->data" identifier -> field_identifier)) ;) (if_statement "if (pvVar4 == (void *)0x0) {\n    return (void *)0x0;\n  }" if (parenthesized_expression "(pvVar4 == (void *)0x0)" ( (binary_expression "pvVar4 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\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 (pvVar4 != entry) {\n    _Var2 = (*table->comparator)(entry,pvVar4);\n    if (!_Var2) {\n      phVar5 = phVar3->next;\n      if (phVar5 == (hash_entry *)0x0) {\n        return (void *)0x0;\n      }\n      pvVar4 = phVar5->data;\n      do {\n        if (entry == pvVar4) {\nLAB_0001ce2c:\n          if (!delete) {\n            return pvVar4;\n          }\n          phVar3->next = phVar5->next;\n          phVar5->data = (void *)0x0;\n          phVar5->next = table->free_entry_list;\n          table->free_entry_list = phVar5;\n          return pvVar4;\n        }\n        _Var2 = (*table->comparator)(entry,pvVar4);\n        if (_Var2) {\n          phVar5 = phVar3->next;\n          pvVar4 = phVar5->data;\n          goto LAB_0001ce2c;\n        }\n        phVar3 = phVar3->next;\n        phVar5 = phVar3->next;\n        if (phVar5 == (hash_entry *)0x0) {\n          return (void *)0x0;\n        }\n        pvVar4 = phVar5->data;\n      } while( true );\n    }\n    pvVar4 = phVar3->data;\n  }" if (parenthesized_expression "(pvVar4 != entry)" ( (binary_expression "pvVar4 != entry" identifier != identifier) )) (compound_statement "{\n    _Var2 = (*table->comparator)(entry,pvVar4);\n    if (!_Var2) {\n      phVar5 = phVar3->next;\n      if (phVar5 == (hash_entry *)0x0) {\n        return (void *)0x0;\n      }\n      pvVar4 = phVar5->data;\n      do {\n        if (entry == pvVar4) {\nLAB_0001ce2c:\n          if (!delete) {\n            return pvVar4;\n          }\n          phVar3->next = phVar5->next;\n          phVar5->data = (void *)0x0;\n          phVar5->next = table->free_entry_list;\n          table->free_entry_list = phVar5;\n          return pvVar4;\n        }\n        _Var2 = (*table->comparator)(entry,pvVar4);\n        if (_Var2) {\n          phVar5 = phVar3->next;\n          pvVar4 = phVar5->data;\n          goto LAB_0001ce2c;\n        }\n        phVar3 = phVar3->next;\n        phVar5 = phVar3->next;\n        if (phVar5 == (hash_entry *)0x0) {\n          return (void *)0x0;\n        }\n        pvVar4 = phVar5->data;\n      } while( true );\n    }\n    pvVar4 = phVar3->data;\n  }" { (expression_statement "_Var2 = (*table->comparator)(entry,pvVar4);" (assignment_expression "_Var2 = (*table->comparator)(entry,pvVar4)" identifier = (call_expression "(*table->comparator)(entry,pvVar4)" (parenthesized_expression "(*table->comparator)" ( (pointer_expression "*table->comparator" * (field_expression "table->comparator" identifier -> field_identifier)) )) (argument_list "(entry,pvVar4)" ( identifier , identifier )))) ;) (if_statement "if (!_Var2) {\n      phVar5 = phVar3->next;\n      if (phVar5 == (hash_entry *)0x0) {\n        return (void *)0x0;\n      }\n      pvVar4 = phVar5->data;\n      do {\n        if (entry == pvVar4) {\nLAB_0001ce2c:\n          if (!delete) {\n            return pvVar4;\n          }\n          phVar3->next = phVar5->next;\n          phVar5->data = (void *)0x0;\n          phVar5->next = table->free_entry_list;\n          table->free_entry_list = phVar5;\n          return pvVar4;\n        }\n        _Var2 = (*table->comparator)(entry,pvVar4);\n        if (_Var2) {\n          phVar5 = phVar3->next;\n          pvVar4 = phVar5->data;\n          goto LAB_0001ce2c;\n        }\n        phVar3 = phVar3->next;\n        phVar5 = phVar3->next;\n        if (phVar5 == (hash_entry *)0x0) {\n          return (void *)0x0;\n        }\n        pvVar4 = phVar5->data;\n      } while( true );\n    }" if (parenthesized_expression "(!_Var2)" ( (unary_expression "!_Var2" ! identifier) )) (compound_statement "{\n      phVar5 = phVar3->next;\n      if (phVar5 == (hash_entry *)0x0) {\n        return (void *)0x0;\n      }\n      pvVar4 = phVar5->data;\n      do {\n        if (entry == pvVar4) {\nLAB_0001ce2c:\n          if (!delete) {\n            return pvVar4;\n          }\n          phVar3->next = phVar5->next;\n          phVar5->data = (void *)0x0;\n          phVar5->next = table->free_entry_list;\n          table->free_entry_list = phVar5;\n          return pvVar4;\n        }\n        _Var2 = (*table->comparator)(entry,pvVar4);\n        if (_Var2) {\n          phVar5 = phVar3->next;\n          pvVar4 = phVar5->data;\n          goto LAB_0001ce2c;\n        }\n        phVar3 = phVar3->next;\n        phVar5 = phVar3->next;\n        if (phVar5 == (hash_entry *)0x0) {\n          return (void *)0x0;\n        }\n        pvVar4 = phVar5->data;\n      } while( true );\n    }" { (expression_statement "phVar5 = phVar3->next;" (assignment_expression "phVar5 = phVar3->next" identifier = (field_expression "phVar3->next" identifier -> field_identifier)) ;) (if_statement "if (phVar5 == (hash_entry *)0x0) {\n        return (void *)0x0;\n      }" if (parenthesized_expression "(phVar5 == (hash_entry *)0x0)" ( (binary_expression "phVar5 == (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 "pvVar4 = phVar5->data;" (assignment_expression "pvVar4 = phVar5->data" identifier = (field_expression "phVar5->data" identifier -> field_identifier)) ;) (do_statement "do {\n        if (entry == pvVar4) {\nLAB_0001ce2c:\n          if (!delete) {\n            return pvVar4;\n          }\n          phVar3->next = phVar5->next;\n          phVar5->data = (void *)0x0;\n          phVar5->next = table->free_entry_list;\n          table->free_entry_list = phVar5;\n          return pvVar4;\n        }\n        _Var2 = (*table->comparator)(entry,pvVar4);\n        if (_Var2) {\n          phVar5 = phVar3->next;\n          pvVar4 = phVar5->data;\n          goto LAB_0001ce2c;\n        }\n        phVar3 = phVar3->next;\n        phVar5 = phVar3->next;\n        if (phVar5 == (hash_entry *)0x0) {\n          return (void *)0x0;\n        }\n        pvVar4 = phVar5->data;\n      } while( true );" do (compound_statement "{\n        if (entry == pvVar4) {\nLAB_0001ce2c:\n          if (!delete) {\n            return pvVar4;\n          }\n          phVar3->next = phVar5->next;\n          phVar5->data = (void *)0x0;\n          phVar5->next = table->free_entry_list;\n          table->free_entry_list = phVar5;\n          return pvVar4;\n        }\n        _Var2 = (*table->comparator)(entry,pvVar4);\n        if (_Var2) {\n          phVar5 = phVar3->next;\n          pvVar4 = phVar5->data;\n          goto LAB_0001ce2c;\n        }\n        phVar3 = phVar3->next;\n        phVar5 = phVar3->next;\n        if (phVar5 == (hash_entry *)0x0) {\n          return (void *)0x0;\n        }\n        pvVar4 = phVar5->data;\n      }" { (if_statement "if (entry == pvVar4) {\nLAB_0001ce2c:\n          if (!delete) {\n            return pvVar4;\n          }\n          phVar3->next = phVar5->next;\n          phVar5->data = (void *)0x0;\n          phVar5->next = table->free_entry_list;\n          table->free_entry_list = phVar5;\n          return pvVar4;\n        }" if (parenthesized_expression "(entry == pvVar4)" ( (binary_expression "entry == pvVar4" identifier == identifier) )) (compound_statement "{\nLAB_0001ce2c:\n          if (!delete) {\n            return pvVar4;\n          }\n          phVar3->next = phVar5->next;\n          phVar5->data = (void *)0x0;\n          phVar5->next = table->free_entry_list;\n          table->free_entry_list = phVar5;\n          return pvVar4;\n        }" { (labeled_statement "LAB_0001ce2c:\n          if (!delete) {\n            return pvVar4;\n          }" statement_identifier : (if_statement "if (!delete) {\n            return pvVar4;\n          }" if (parenthesized_expression "(!delete)" ( (unary_expression "!delete" ! identifier) )) (compound_statement "{\n            return pvVar4;\n          }" { (return_statement "return pvVar4;" return identifier ;) }))) (expression_statement "phVar3->next = phVar5->next;" (assignment_expression "phVar3->next = phVar5->next" (field_expression "phVar3->next" identifier -> field_identifier) = (field_expression "phVar5->next" identifier -> field_identifier)) ;) (expression_statement "phVar5->data = (void *)0x0;" (assignment_expression "phVar5->data = (void *)0x0" (field_expression "phVar5->data" identifier -> field_identifier) = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "phVar5->next = table->free_entry_list;" (assignment_expression "phVar5->next = table->free_entry_list" (field_expression "phVar5->next" identifier -> field_identifier) = (field_expression "table->free_entry_list" identifier -> field_identifier)) ;) (expression_statement "table->free_entry_list = phVar5;" (assignment_expression "table->free_entry_list = phVar5" (field_expression "table->free_entry_list" identifier -> field_identifier) = identifier) ;) (return_statement "return pvVar4;" return identifier ;) })) (expression_statement "_Var2 = (*table->comparator)(entry,pvVar4);" (assignment_expression "_Var2 = (*table->comparator)(entry,pvVar4)" identifier = (call_expression "(*table->comparator)(entry,pvVar4)" (parenthesized_expression "(*table->comparator)" ( (pointer_expression "*table->comparator" * (field_expression "table->comparator" identifier -> field_identifier)) )) (argument_list "(entry,pvVar4)" ( identifier , identifier )))) ;) (if_statement "if (_Var2) {\n          phVar5 = phVar3->next;\n          pvVar4 = phVar5->data;\n          goto LAB_0001ce2c;\n        }" if (parenthesized_expression "(_Var2)" ( identifier )) (compound_statement "{\n          phVar5 = phVar3->next;\n          pvVar4 = phVar5->data;\n          goto LAB_0001ce2c;\n        }" { (expression_statement "phVar5 = phVar3->next;" (assignment_expression "phVar5 = phVar3->next" identifier = (field_expression "phVar3->next" identifier -> field_identifier)) ;) (expression_statement "pvVar4 = phVar5->data;" (assignment_expression "pvVar4 = phVar5->data" identifier = (field_expression "phVar5->data" identifier -> field_identifier)) ;) (goto_statement "goto LAB_0001ce2c;" goto statement_identifier ;) })) (expression_statement "phVar3 = phVar3->next;" (assignment_expression "phVar3 = phVar3->next" identifier = (field_expression "phVar3->next" identifier -> field_identifier)) ;) (expression_statement "phVar5 = phVar3->next;" (assignment_expression "phVar5 = phVar3->next" identifier = (field_expression "phVar3->next" identifier -> field_identifier)) ;) (if_statement "if (phVar5 == (hash_entry *)0x0) {\n          return (void *)0x0;\n        }" if (parenthesized_expression "(phVar5 == (hash_entry *)0x0)" ( (binary_expression "phVar5 == (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 "pvVar4 = phVar5->data;" (assignment_expression "pvVar4 = phVar5->data" identifier = (field_expression "phVar5->data" identifier -> field_identifier)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })) (expression_statement "pvVar4 = phVar3->data;" (assignment_expression "pvVar4 = phVar3->data" identifier = (field_expression "phVar3->data" identifier -> field_identifier)) ;) })) (if_statement "if (delete) {\n    phVar5 = phVar3->next;\n    if (phVar5 != (hash_entry *)0x0) {\n      phVar1 = phVar5->next;\n      phVar3->data = phVar5->data;\n      phVar3->next = phVar1;\n      phVar5->data = (void *)0x0;\n      phVar5->next = table->free_entry_list;\n      table->free_entry_list = phVar5;\n      return pvVar4;\n    }\n    phVar3->data = (void *)0x0;\n  }" if (parenthesized_expression "(delete)" ( identifier )) (compound_statement "{\n    phVar5 = phVar3->next;\n    if (phVar5 != (hash_entry *)0x0) {\n      phVar1 = phVar5->next;\n      phVar3->data = phVar5->data;\n      phVar3->next = phVar1;\n      phVar5->data = (void *)0x0;\n      phVar5->next = table->free_entry_list;\n      table->free_entry_list = phVar5;\n      return pvVar4;\n    }\n    phVar3->data = (void *)0x0;\n  }" { (expression_statement "phVar5 = phVar3->next;" (assignment_expression "phVar5 = phVar3->next" identifier = (field_expression "phVar3->next" identifier -> field_identifier)) ;) (if_statement "if (phVar5 != (hash_entry *)0x0) {\n      phVar1 = phVar5->next;\n      phVar3->data = phVar5->data;\n      phVar3->next = phVar1;\n      phVar5->data = (void *)0x0;\n      phVar5->next = table->free_entry_list;\n      table->free_entry_list = phVar5;\n      return pvVar4;\n    }" if (parenthesized_expression "(phVar5 != (hash_entry *)0x0)" ( (binary_expression "phVar5 != (hash_entry *)0x0" identifier != (cast_expression "(hash_entry *)0x0" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      phVar1 = phVar5->next;\n      phVar3->data = phVar5->data;\n      phVar3->next = phVar1;\n      phVar5->data = (void *)0x0;\n      phVar5->next = table->free_entry_list;\n      table->free_entry_list = phVar5;\n      return pvVar4;\n    }" { (expression_statement "phVar1 = phVar5->next;" (assignment_expression "phVar1 = phVar5->next" identifier = (field_expression "phVar5->next" identifier -> field_identifier)) ;) (expression_statement "phVar3->data = phVar5->data;" (assignment_expression "phVar3->data = phVar5->data" (field_expression "phVar3->data" identifier -> field_identifier) = (field_expression "phVar5->data" identifier -> field_identifier)) ;) (expression_statement "phVar3->next = phVar1;" (assignment_expression "phVar3->next = phVar1" (field_expression "phVar3->next" identifier -> field_identifier) = identifier) ;) (expression_statement "phVar5->data = (void *)0x0;" (assignment_expression "phVar5->data = (void *)0x0" (field_expression "phVar5->data" identifier -> field_identifier) = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "phVar5->next = table->free_entry_list;" (assignment_expression "phVar5->next = table->free_entry_list" (field_expression "phVar5->next" identifier -> field_identifier) = (field_expression "table->free_entry_list" identifier -> field_identifier)) ;) (expression_statement "table->free_entry_list = phVar5;" (assignment_expression "table->free_entry_list = phVar5" (field_expression "table->free_entry_list" identifier -> field_identifier) = identifier) ;) (return_statement "return pvVar4;" return identifier ;) })) (expression_statement "phVar3->data = (void *)0x0;" (assignment_expression "phVar3->data = (void *)0x0" (field_expression "phVar3->data" identifier -> field_identifier) = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (return_statement "return pvVar4;" return identifier ;) })))
(translation_unit "int __regparm3 FUN_0001cdb0(int param_1,int param_2,undefined4 *param_3,char param_4)\n\n{\n  int iVar1;\n  char cVar2;\n  int *piVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar3 = (int *)FUN_0001cd80();\n  *param_3 = piVar3;\n  iVar4 = *piVar3;\n  if (iVar4 == 0) {\n    return 0;\n  }\n  if (iVar4 != param_2) {\n    cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n    if (cVar2 == '\0') {\n      piVar5 = (int *)piVar3[1];\n      if (piVar5 == (int *)0x0) {\n        return 0;\n      }\n      iVar4 = *piVar5;\n      do {\n        if (param_2 == iVar4) {\nLAB_0001ce2c:\n          if (param_4 == '\0') {\n            return iVar4;\n          }\n          piVar3[1] = piVar5[1];\n          *piVar5 = 0;\n          piVar5[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar5;\n          return iVar4;\n        }\n        cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n        if (cVar2 != '\0') {\n          piVar5 = (int *)piVar3[1];\n          iVar4 = *piVar5;\n          goto LAB_0001ce2c;\n        }\n        piVar3 = (int *)piVar3[1];\n        piVar5 = (int *)piVar3[1];\n        if (piVar5 == (int *)0x0) {\n          return 0;\n        }\n        iVar4 = *piVar5;\n      } while( true );\n    }\n    iVar4 = *piVar3;\n  }\n  if (param_4 != '\0') {\n    piVar5 = (int *)piVar3[1];\n    if (piVar5 != (int *)0x0) {\n      iVar1 = piVar5[1];\n      *piVar3 = *piVar5;\n      piVar3[1] = iVar1;\n      *piVar5 = 0;\n      piVar5[1] = *(int *)(param_1 + 0x24);\n      *(int **)(param_1 + 0x24) = piVar5;\n      return iVar4;\n    }\n    *piVar3 = 0;\n  }\n  return iVar4;\n}\n\n" (function_definition "int __regparm3 FUN_0001cdb0(int param_1,int param_2,undefined4 *param_3,char param_4)\n\n{\n  int iVar1;\n  char cVar2;\n  int *piVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar3 = (int *)FUN_0001cd80();\n  *param_3 = piVar3;\n  iVar4 = *piVar3;\n  if (iVar4 == 0) {\n    return 0;\n  }\n  if (iVar4 != param_2) {\n    cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n    if (cVar2 == '\0') {\n      piVar5 = (int *)piVar3[1];\n      if (piVar5 == (int *)0x0) {\n        return 0;\n      }\n      iVar4 = *piVar5;\n      do {\n        if (param_2 == iVar4) {\nLAB_0001ce2c:\n          if (param_4 == '\0') {\n            return iVar4;\n          }\n          piVar3[1] = piVar5[1];\n          *piVar5 = 0;\n          piVar5[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar5;\n          return iVar4;\n        }\n        cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n        if (cVar2 != '\0') {\n          piVar5 = (int *)piVar3[1];\n          iVar4 = *piVar5;\n          goto LAB_0001ce2c;\n        }\n        piVar3 = (int *)piVar3[1];\n        piVar5 = (int *)piVar3[1];\n        if (piVar5 == (int *)0x0) {\n          return 0;\n        }\n        iVar4 = *piVar5;\n      } while( true );\n    }\n    iVar4 = *piVar3;\n  }\n  if (param_4 != '\0') {\n    piVar5 = (int *)piVar3[1];\n    if (piVar5 != (int *)0x0) {\n      iVar1 = piVar5[1];\n      *piVar3 = *piVar5;\n      piVar3[1] = iVar1;\n      *piVar5 = 0;\n      piVar5[1] = *(int *)(param_1 + 0x24);\n      *(int **)(param_1 + 0x24) = piVar5;\n      return iVar4;\n    }\n    *piVar3 = 0;\n  }\n  return iVar4;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001cdb0(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 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 iVar1;\n  char cVar2;\n  int *piVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar3 = (int *)FUN_0001cd80();\n  *param_3 = piVar3;\n  iVar4 = *piVar3;\n  if (iVar4 == 0) {\n    return 0;\n  }\n  if (iVar4 != param_2) {\n    cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n    if (cVar2 == '\0') {\n      piVar5 = (int *)piVar3[1];\n      if (piVar5 == (int *)0x0) {\n        return 0;\n      }\n      iVar4 = *piVar5;\n      do {\n        if (param_2 == iVar4) {\nLAB_0001ce2c:\n          if (param_4 == '\0') {\n            return iVar4;\n          }\n          piVar3[1] = piVar5[1];\n          *piVar5 = 0;\n          piVar5[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar5;\n          return iVar4;\n        }\n        cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n        if (cVar2 != '\0') {\n          piVar5 = (int *)piVar3[1];\n          iVar4 = *piVar5;\n          goto LAB_0001ce2c;\n        }\n        piVar3 = (int *)piVar3[1];\n        piVar5 = (int *)piVar3[1];\n        if (piVar5 == (int *)0x0) {\n          return 0;\n        }\n        iVar4 = *piVar5;\n      } while( true );\n    }\n    iVar4 = *piVar3;\n  }\n  if (param_4 != '\0') {\n    piVar5 = (int *)piVar3[1];\n    if (piVar5 != (int *)0x0) {\n      iVar1 = piVar5[1];\n      *piVar3 = *piVar5;\n      piVar3[1] = iVar1;\n      *piVar5 = 0;\n      piVar5[1] = *(int *)(param_1 + 0x24);\n      *(int **)(param_1 + 0x24) = piVar5;\n      return iVar4;\n    }\n    *piVar3 = 0;\n  }\n  return iVar4;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (expression_statement "piVar3 = (int *)FUN_0001cd80();" (assignment_expression "piVar3 = (int *)FUN_0001cd80()" identifier = (cast_expression "(int *)FUN_0001cd80()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001cd80()" identifier (argument_list "()" ( ))))) ;) (expression_statement "*param_3 = piVar3;" (assignment_expression "*param_3 = piVar3" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "iVar4 = *piVar3;" (assignment_expression "iVar4 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (if_statement "if (iVar4 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (iVar4 != param_2) {\n    cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n    if (cVar2 == '\0') {\n      piVar5 = (int *)piVar3[1];\n      if (piVar5 == (int *)0x0) {\n        return 0;\n      }\n      iVar4 = *piVar5;\n      do {\n        if (param_2 == iVar4) {\nLAB_0001ce2c:\n          if (param_4 == '\0') {\n            return iVar4;\n          }\n          piVar3[1] = piVar5[1];\n          *piVar5 = 0;\n          piVar5[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar5;\n          return iVar4;\n        }\n        cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n        if (cVar2 != '\0') {\n          piVar5 = (int *)piVar3[1];\n          iVar4 = *piVar5;\n          goto LAB_0001ce2c;\n        }\n        piVar3 = (int *)piVar3[1];\n        piVar5 = (int *)piVar3[1];\n        if (piVar5 == (int *)0x0) {\n          return 0;\n        }\n        iVar4 = *piVar5;\n      } while( true );\n    }\n    iVar4 = *piVar3;\n  }" if (parenthesized_expression "(iVar4 != param_2)" ( (binary_expression "iVar4 != param_2" identifier != identifier) )) (compound_statement "{\n    cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n    if (cVar2 == '\0') {\n      piVar5 = (int *)piVar3[1];\n      if (piVar5 == (int *)0x0) {\n        return 0;\n      }\n      iVar4 = *piVar5;\n      do {\n        if (param_2 == iVar4) {\nLAB_0001ce2c:\n          if (param_4 == '\0') {\n            return iVar4;\n          }\n          piVar3[1] = piVar5[1];\n          *piVar5 = 0;\n          piVar5[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar5;\n          return iVar4;\n        }\n        cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n        if (cVar2 != '\0') {\n          piVar5 = (int *)piVar3[1];\n          iVar4 = *piVar5;\n          goto LAB_0001ce2c;\n        }\n        piVar3 = (int *)piVar3[1];\n        piVar5 = (int *)piVar3[1];\n        if (piVar5 == (int *)0x0) {\n          return 0;\n        }\n        iVar4 = *piVar5;\n      } while( true );\n    }\n    iVar4 = *piVar3;\n  }" { (expression_statement "cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);" (assignment_expression "cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4)" identifier = (call_expression "(**(code **)(param_1 + 0x1c))(param_2,iVar4)" (parenthesized_expression "(**(code **)(param_1 + 0x1c))" ( (pointer_expression "**(code **)(param_1 + 0x1c)" * (pointer_expression "*(code **)(param_1 + 0x1c)" * (cast_expression "(code **)(param_1 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) )) (argument_list "(param_2,iVar4)" ( identifier , identifier )))) ;) (if_statement "if (cVar2 == '\0') {\n      piVar5 = (int *)piVar3[1];\n      if (piVar5 == (int *)0x0) {\n        return 0;\n      }\n      iVar4 = *piVar5;\n      do {\n        if (param_2 == iVar4) {\nLAB_0001ce2c:\n          if (param_4 == '\0') {\n            return iVar4;\n          }\n          piVar3[1] = piVar5[1];\n          *piVar5 = 0;\n          piVar5[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar5;\n          return iVar4;\n        }\n        cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n        if (cVar2 != '\0') {\n          piVar5 = (int *)piVar3[1];\n          iVar4 = *piVar5;\n          goto LAB_0001ce2c;\n        }\n        piVar3 = (int *)piVar3[1];\n        piVar5 = (int *)piVar3[1];\n        if (piVar5 == (int *)0x0) {\n          return 0;\n        }\n        iVar4 = *piVar5;\n      } while( true );\n    }" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      piVar5 = (int *)piVar3[1];\n      if (piVar5 == (int *)0x0) {\n        return 0;\n      }\n      iVar4 = *piVar5;\n      do {\n        if (param_2 == iVar4) {\nLAB_0001ce2c:\n          if (param_4 == '\0') {\n            return iVar4;\n          }\n          piVar3[1] = piVar5[1];\n          *piVar5 = 0;\n          piVar5[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar5;\n          return iVar4;\n        }\n        cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n        if (cVar2 != '\0') {\n          piVar5 = (int *)piVar3[1];\n          iVar4 = *piVar5;\n          goto LAB_0001ce2c;\n        }\n        piVar3 = (int *)piVar3[1];\n        piVar5 = (int *)piVar3[1];\n        if (piVar5 == (int *)0x0) {\n          return 0;\n        }\n        iVar4 = *piVar5;\n      } while( true );\n    }" { (expression_statement "piVar5 = (int *)piVar3[1];" (assignment_expression "piVar5 = (int *)piVar3[1]" identifier = (cast_expression "(int *)piVar3[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[1]" identifier [ number_literal ]))) ;) (if_statement "if (piVar5 == (int *)0x0) {\n        return 0;\n      }" if (parenthesized_expression "(piVar5 == (int *)0x0)" ( (binary_expression "piVar5 == (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 "iVar4 = *piVar5;" (assignment_expression "iVar4 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (do_statement "do {\n        if (param_2 == iVar4) {\nLAB_0001ce2c:\n          if (param_4 == '\0') {\n            return iVar4;\n          }\n          piVar3[1] = piVar5[1];\n          *piVar5 = 0;\n          piVar5[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar5;\n          return iVar4;\n        }\n        cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n        if (cVar2 != '\0') {\n          piVar5 = (int *)piVar3[1];\n          iVar4 = *piVar5;\n          goto LAB_0001ce2c;\n        }\n        piVar3 = (int *)piVar3[1];\n        piVar5 = (int *)piVar3[1];\n        if (piVar5 == (int *)0x0) {\n          return 0;\n        }\n        iVar4 = *piVar5;\n      } while( true );" do (compound_statement "{\n        if (param_2 == iVar4) {\nLAB_0001ce2c:\n          if (param_4 == '\0') {\n            return iVar4;\n          }\n          piVar3[1] = piVar5[1];\n          *piVar5 = 0;\n          piVar5[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar5;\n          return iVar4;\n        }\n        cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n        if (cVar2 != '\0') {\n          piVar5 = (int *)piVar3[1];\n          iVar4 = *piVar5;\n          goto LAB_0001ce2c;\n        }\n        piVar3 = (int *)piVar3[1];\n        piVar5 = (int *)piVar3[1];\n        if (piVar5 == (int *)0x0) {\n          return 0;\n        }\n        iVar4 = *piVar5;\n      }" { (if_statement "if (param_2 == iVar4) {\nLAB_0001ce2c:\n          if (param_4 == '\0') {\n            return iVar4;\n          }\n          piVar3[1] = piVar5[1];\n          *piVar5 = 0;\n          piVar5[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar5;\n          return iVar4;\n        }" if (parenthesized_expression "(param_2 == iVar4)" ( (binary_expression "param_2 == iVar4" identifier == identifier) )) (compound_statement "{\nLAB_0001ce2c:\n          if (param_4 == '\0') {\n            return iVar4;\n          }\n          piVar3[1] = piVar5[1];\n          *piVar5 = 0;\n          piVar5[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar5;\n          return iVar4;\n        }" { (labeled_statement "LAB_0001ce2c:\n          if (param_4 == '\0') {\n            return iVar4;\n          }" statement_identifier : (if_statement "if (param_4 == '\0') {\n            return iVar4;\n          }" if (parenthesized_expression "(param_4 == '\0')" ( (binary_expression "param_4 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            return iVar4;\n          }" { (return_statement "return iVar4;" return identifier ;) }))) (expression_statement "piVar3[1] = piVar5[1];" (assignment_expression "piVar3[1] = piVar5[1]" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = (subscript_expression "piVar5[1]" identifier [ number_literal ])) ;) (expression_statement "*piVar5 = 0;" (assignment_expression "*piVar5 = 0" (pointer_expression "*piVar5" * identifier) = number_literal) ;) (expression_statement "piVar5[1] = *(int *)(param_1 + 0x24);" (assignment_expression "piVar5[1] = *(int *)(param_1 + 0x24)" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "*(int **)(param_1 + 0x24) = piVar5;" (assignment_expression "*(int **)(param_1 + 0x24) = piVar5" (pointer_expression "*(int **)(param_1 + 0x24)" * (cast_expression "(int **)(param_1 + 0x24)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = identifier) ;) (return_statement "return iVar4;" return identifier ;) })) (expression_statement "cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);" (assignment_expression "cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4)" identifier = (call_expression "(**(code **)(param_1 + 0x1c))(param_2,iVar4)" (parenthesized_expression "(**(code **)(param_1 + 0x1c))" ( (pointer_expression "**(code **)(param_1 + 0x1c)" * (pointer_expression "*(code **)(param_1 + 0x1c)" * (cast_expression "(code **)(param_1 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) )) (argument_list "(param_2,iVar4)" ( identifier , identifier )))) ;) (if_statement "if (cVar2 != '\0') {\n          piVar5 = (int *)piVar3[1];\n          iVar4 = *piVar5;\n          goto LAB_0001ce2c;\n        }" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          piVar5 = (int *)piVar3[1];\n          iVar4 = *piVar5;\n          goto LAB_0001ce2c;\n        }" { (expression_statement "piVar5 = (int *)piVar3[1];" (assignment_expression "piVar5 = (int *)piVar3[1]" identifier = (cast_expression "(int *)piVar3[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[1]" identifier [ number_literal ]))) ;) (expression_statement "iVar4 = *piVar5;" (assignment_expression "iVar4 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (goto_statement "goto LAB_0001ce2c;" goto statement_identifier ;) })) (expression_statement "piVar3 = (int *)piVar3[1];" (assignment_expression "piVar3 = (int *)piVar3[1]" identifier = (cast_expression "(int *)piVar3[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[1]" identifier [ number_literal ]))) ;) (expression_statement "piVar5 = (int *)piVar3[1];" (assignment_expression "piVar5 = (int *)piVar3[1]" identifier = (cast_expression "(int *)piVar3[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[1]" identifier [ number_literal ]))) ;) (if_statement "if (piVar5 == (int *)0x0) {\n          return 0;\n        }" if (parenthesized_expression "(piVar5 == (int *)0x0)" ( (binary_expression "piVar5 == (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 "iVar4 = *piVar5;" (assignment_expression "iVar4 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })) (expression_statement "iVar4 = *piVar3;" (assignment_expression "iVar4 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) })) (if_statement "if (param_4 != '\0') {\n    piVar5 = (int *)piVar3[1];\n    if (piVar5 != (int *)0x0) {\n      iVar1 = piVar5[1];\n      *piVar3 = *piVar5;\n      piVar3[1] = iVar1;\n      *piVar5 = 0;\n      piVar5[1] = *(int *)(param_1 + 0x24);\n      *(int **)(param_1 + 0x24) = piVar5;\n      return iVar4;\n    }\n    *piVar3 = 0;\n  }" if (parenthesized_expression "(param_4 != '\0')" ( (binary_expression "param_4 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    piVar5 = (int *)piVar3[1];\n    if (piVar5 != (int *)0x0) {\n      iVar1 = piVar5[1];\n      *piVar3 = *piVar5;\n      piVar3[1] = iVar1;\n      *piVar5 = 0;\n      piVar5[1] = *(int *)(param_1 + 0x24);\n      *(int **)(param_1 + 0x24) = piVar5;\n      return iVar4;\n    }\n    *piVar3 = 0;\n  }" { (expression_statement "piVar5 = (int *)piVar3[1];" (assignment_expression "piVar5 = (int *)piVar3[1]" identifier = (cast_expression "(int *)piVar3[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[1]" identifier [ number_literal ]))) ;) (if_statement "if (piVar5 != (int *)0x0) {\n      iVar1 = piVar5[1];\n      *piVar3 = *piVar5;\n      piVar3[1] = iVar1;\n      *piVar5 = 0;\n      piVar5[1] = *(int *)(param_1 + 0x24);\n      *(int **)(param_1 + 0x24) = piVar5;\n      return iVar4;\n    }" if (parenthesized_expression "(piVar5 != (int *)0x0)" ( (binary_expression "piVar5 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar1 = piVar5[1];\n      *piVar3 = *piVar5;\n      piVar3[1] = iVar1;\n      *piVar5 = 0;\n      piVar5[1] = *(int *)(param_1 + 0x24);\n      *(int **)(param_1 + 0x24) = piVar5;\n      return iVar4;\n    }" { (expression_statement "iVar1 = piVar5[1];" (assignment_expression "iVar1 = piVar5[1]" identifier = (subscript_expression "piVar5[1]" identifier [ number_literal ])) ;) (expression_statement "*piVar3 = *piVar5;" (assignment_expression "*piVar3 = *piVar5" (pointer_expression "*piVar3" * identifier) = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "piVar3[1] = iVar1;" (assignment_expression "piVar3[1] = iVar1" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*piVar5 = 0;" (assignment_expression "*piVar5 = 0" (pointer_expression "*piVar5" * identifier) = number_literal) ;) (expression_statement "piVar5[1] = *(int *)(param_1 + 0x24);" (assignment_expression "piVar5[1] = *(int *)(param_1 + 0x24)" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "*(int **)(param_1 + 0x24) = piVar5;" (assignment_expression "*(int **)(param_1 + 0x24) = piVar5" (pointer_expression "*(int **)(param_1 + 0x24)" * (cast_expression "(int **)(param_1 + 0x24)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = identifier) ;) (return_statement "return iVar4;" return identifier ;) })) (expression_statement "*piVar3 = 0;" (assignment_expression "*piVar3 = 0" (pointer_expression "*piVar3" * identifier) = number_literal) ;) })) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression (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 * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (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 ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (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 ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "int __regparm3 FUN_0001cdb0(int param_1,int param_2,undefined4 *param_3,char param_4)\n\n{\n  int iVar1;\n  char cVar2;\n  int *piVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar3 = (int *)FUN_0001cd80();\n  *param_3 = piVar3;\n  iVar4 = *piVar3;\n  if (iVar4 == 0) {\n    return 0;\n  }\n  if (iVar4 != param_2) {\n    cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n    if (cVar2 == '\0') {\n      piVar5 = (int *)piVar3[1];\n      if (piVar5 == (int *)0x0) {\n        return 0;\n      }\n      iVar4 = *piVar5;\n      do {\n        if (param_2 == iVar4) {\nLAB_0001ce2c:\n          if (param_4 == '\0') {\n            return iVar4;\n          }\n          piVar3[1] = piVar5[1];\n          *piVar5 = 0;\n          piVar5[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar5;\n          return iVar4;\n        }\n        cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n        if (cVar2 != '\0') {\n          piVar5 = (int *)piVar3[1];\n          iVar4 = *piVar5;\n          goto LAB_0001ce2c;\n        }\n        piVar3 = (int *)piVar3[1];\n        piVar5 = (int *)piVar3[1];\n        if (piVar5 == (int *)0x0) {\n          return 0;\n        }\n        iVar4 = *piVar5;\n      } while( true );\n    }\n    iVar4 = *piVar3;\n  }\n  if (param_4 != '\0') {\n    piVar5 = (int *)piVar3[1];\n    if (piVar5 != (int *)0x0) {\n      iVar1 = piVar5[1];\n      *piVar3 = *piVar5;\n      piVar3[1] = iVar1;\n      *piVar5 = 0;\n      piVar5[1] = *(int *)(param_1 + 0x24);\n      *(int **)(param_1 + 0x24) = piVar5;\n      return iVar4;\n    }\n    *piVar3 = 0;\n  }\n  return iVar4;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0001cdb0(int param_1,int param_2,undefined4 *param_3,char param_4)" (identifier "FUN_0001cdb0") (parameter_list "(int param_1,int param_2,undefined4 *param_3,char param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (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 iVar1;\n  char cVar2;\n  int *piVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar3 = (int *)FUN_0001cd80();\n  *param_3 = piVar3;\n  iVar4 = *piVar3;\n  if (iVar4 == 0) {\n    return 0;\n  }\n  if (iVar4 != param_2) {\n    cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n    if (cVar2 == '\0') {\n      piVar5 = (int *)piVar3[1];\n      if (piVar5 == (int *)0x0) {\n        return 0;\n      }\n      iVar4 = *piVar5;\n      do {\n        if (param_2 == iVar4) {\nLAB_0001ce2c:\n          if (param_4 == '\0') {\n            return iVar4;\n          }\n          piVar3[1] = piVar5[1];\n          *piVar5 = 0;\n          piVar5[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar5;\n          return iVar4;\n        }\n        cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n        if (cVar2 != '\0') {\n          piVar5 = (int *)piVar3[1];\n          iVar4 = *piVar5;\n          goto LAB_0001ce2c;\n        }\n        piVar3 = (int *)piVar3[1];\n        piVar5 = (int *)piVar3[1];\n        if (piVar5 == (int *)0x0) {\n          return 0;\n        }\n        iVar4 = *piVar5;\n      } while( true );\n    }\n    iVar4 = *piVar3;\n  }\n  if (param_4 != '\0') {\n    piVar5 = (int *)piVar3[1];\n    if (piVar5 != (int *)0x0) {\n      iVar1 = piVar5[1];\n      *piVar3 = *piVar5;\n      piVar3[1] = iVar1;\n      *piVar5 = 0;\n      piVar5[1] = *(int *)(param_1 + 0x24);\n      *(int **)(param_1 + 0x24) = piVar5;\n      return iVar4;\n    }\n    *piVar3 = 0;\n  }\n  return iVar4;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (expression_statement "piVar3 = (int *)FUN_0001cd80();" (assignment_expression "piVar3 = (int *)FUN_0001cd80()" (identifier "piVar3") (= "=") (cast_expression "(int *)FUN_0001cd80()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001cd80()" (identifier "FUN_0001cd80") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "*param_3 = piVar3;" (assignment_expression "*param_3 = piVar3" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "piVar3")) (; ";")) (expression_statement "iVar4 = *piVar3;" (assignment_expression "iVar4 = *piVar3" (identifier "iVar4") (= "=") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (; ";")) (if_statement "if (iVar4 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (iVar4 != param_2) {\n    cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n    if (cVar2 == '\0') {\n      piVar5 = (int *)piVar3[1];\n      if (piVar5 == (int *)0x0) {\n        return 0;\n      }\n      iVar4 = *piVar5;\n      do {\n        if (param_2 == iVar4) {\nLAB_0001ce2c:\n          if (param_4 == '\0') {\n            return iVar4;\n          }\n          piVar3[1] = piVar5[1];\n          *piVar5 = 0;\n          piVar5[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar5;\n          return iVar4;\n        }\n        cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n        if (cVar2 != '\0') {\n          piVar5 = (int *)piVar3[1];\n          iVar4 = *piVar5;\n          goto LAB_0001ce2c;\n        }\n        piVar3 = (int *)piVar3[1];\n        piVar5 = (int *)piVar3[1];\n        if (piVar5 == (int *)0x0) {\n          return 0;\n        }\n        iVar4 = *piVar5;\n      } while( true );\n    }\n    iVar4 = *piVar3;\n  }" (if "if") (parenthesized_expression "(iVar4 != param_2)" (( "(") (binary_expression "iVar4 != param_2" (identifier "iVar4") (!= "!=") (identifier "param_2")) () ")")) (compound_statement "{\n    cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n    if (cVar2 == '\0') {\n      piVar5 = (int *)piVar3[1];\n      if (piVar5 == (int *)0x0) {\n        return 0;\n      }\n      iVar4 = *piVar5;\n      do {\n        if (param_2 == iVar4) {\nLAB_0001ce2c:\n          if (param_4 == '\0') {\n            return iVar4;\n          }\n          piVar3[1] = piVar5[1];\n          *piVar5 = 0;\n          piVar5[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar5;\n          return iVar4;\n        }\n        cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n        if (cVar2 != '\0') {\n          piVar5 = (int *)piVar3[1];\n          iVar4 = *piVar5;\n          goto LAB_0001ce2c;\n        }\n        piVar3 = (int *)piVar3[1];\n        piVar5 = (int *)piVar3[1];\n        if (piVar5 == (int *)0x0) {\n          return 0;\n        }\n        iVar4 = *piVar5;\n      } while( true );\n    }\n    iVar4 = *piVar3;\n  }" ({ "{") (expression_statement "cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);" (assignment_expression "cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4)" (identifier "cVar2") (= "=") (call_expression "(**(code **)(param_1 + 0x1c))(param_2,iVar4)" (parenthesized_expression "(**(code **)(param_1 + 0x1c))" (( "(") (pointer_expression "**(code **)(param_1 + 0x1c)" (* "*") (pointer_expression "*(code **)(param_1 + 0x1c)" (* "*") (cast_expression "(code **)(param_1 + 0x1c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))))) () ")")) (argument_list "(param_2,iVar4)" (( "(") (identifier "param_2") (, ",") (identifier "iVar4") () ")")))) (; ";")) (if_statement "if (cVar2 == '\0') {\n      piVar5 = (int *)piVar3[1];\n      if (piVar5 == (int *)0x0) {\n        return 0;\n      }\n      iVar4 = *piVar5;\n      do {\n        if (param_2 == iVar4) {\nLAB_0001ce2c:\n          if (param_4 == '\0') {\n            return iVar4;\n          }\n          piVar3[1] = piVar5[1];\n          *piVar5 = 0;\n          piVar5[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar5;\n          return iVar4;\n        }\n        cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n        if (cVar2 != '\0') {\n          piVar5 = (int *)piVar3[1];\n          iVar4 = *piVar5;\n          goto LAB_0001ce2c;\n        }\n        piVar3 = (int *)piVar3[1];\n        piVar5 = (int *)piVar3[1];\n        if (piVar5 == (int *)0x0) {\n          return 0;\n        }\n        iVar4 = *piVar5;\n      } while( true );\n    }" (if "if") (parenthesized_expression "(cVar2 == '\0')" (( "(") (binary_expression "cVar2 == '\0'" (identifier "cVar2") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      piVar5 = (int *)piVar3[1];\n      if (piVar5 == (int *)0x0) {\n        return 0;\n      }\n      iVar4 = *piVar5;\n      do {\n        if (param_2 == iVar4) {\nLAB_0001ce2c:\n          if (param_4 == '\0') {\n            return iVar4;\n          }\n          piVar3[1] = piVar5[1];\n          *piVar5 = 0;\n          piVar5[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar5;\n          return iVar4;\n        }\n        cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n        if (cVar2 != '\0') {\n          piVar5 = (int *)piVar3[1];\n          iVar4 = *piVar5;\n          goto LAB_0001ce2c;\n        }\n        piVar3 = (int *)piVar3[1];\n        piVar5 = (int *)piVar3[1];\n        if (piVar5 == (int *)0x0) {\n          return 0;\n        }\n        iVar4 = *piVar5;\n      } while( true );\n    }" ({ "{") (expression_statement "piVar5 = (int *)piVar3[1];" (assignment_expression "piVar5 = (int *)piVar3[1]" (identifier "piVar5") (= "=") (cast_expression "(int *)piVar3[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")))) (; ";")) (if_statement "if (piVar5 == (int *)0x0) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(piVar5 == (int *)0x0)" (( "(") (binary_expression "piVar5 == (int *)0x0" (identifier "piVar5") (== "==") (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 "iVar4 = *piVar5;" (assignment_expression "iVar4 = *piVar5" (identifier "iVar4") (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (do_statement "do {\n        if (param_2 == iVar4) {\nLAB_0001ce2c:\n          if (param_4 == '\0') {\n            return iVar4;\n          }\n          piVar3[1] = piVar5[1];\n          *piVar5 = 0;\n          piVar5[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar5;\n          return iVar4;\n        }\n        cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n        if (cVar2 != '\0') {\n          piVar5 = (int *)piVar3[1];\n          iVar4 = *piVar5;\n          goto LAB_0001ce2c;\n        }\n        piVar3 = (int *)piVar3[1];\n        piVar5 = (int *)piVar3[1];\n        if (piVar5 == (int *)0x0) {\n          return 0;\n        }\n        iVar4 = *piVar5;\n      } while( true );" (do "do") (compound_statement "{\n        if (param_2 == iVar4) {\nLAB_0001ce2c:\n          if (param_4 == '\0') {\n            return iVar4;\n          }\n          piVar3[1] = piVar5[1];\n          *piVar5 = 0;\n          piVar5[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar5;\n          return iVar4;\n        }\n        cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);\n        if (cVar2 != '\0') {\n          piVar5 = (int *)piVar3[1];\n          iVar4 = *piVar5;\n          goto LAB_0001ce2c;\n        }\n        piVar3 = (int *)piVar3[1];\n        piVar5 = (int *)piVar3[1];\n        if (piVar5 == (int *)0x0) {\n          return 0;\n        }\n        iVar4 = *piVar5;\n      }" ({ "{") (if_statement "if (param_2 == iVar4) {\nLAB_0001ce2c:\n          if (param_4 == '\0') {\n            return iVar4;\n          }\n          piVar3[1] = piVar5[1];\n          *piVar5 = 0;\n          piVar5[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar5;\n          return iVar4;\n        }" (if "if") (parenthesized_expression "(param_2 == iVar4)" (( "(") (binary_expression "param_2 == iVar4" (identifier "param_2") (== "==") (identifier "iVar4")) () ")")) (compound_statement "{\nLAB_0001ce2c:\n          if (param_4 == '\0') {\n            return iVar4;\n          }\n          piVar3[1] = piVar5[1];\n          *piVar5 = 0;\n          piVar5[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar5;\n          return iVar4;\n        }" ({ "{") (labeled_statement "LAB_0001ce2c:\n          if (param_4 == '\0') {\n            return iVar4;\n          }" (statement_identifier "LAB_0001ce2c") (: ":") (if_statement "if (param_4 == '\0') {\n            return iVar4;\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 iVar4;\n          }" ({ "{") (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}")))) (expression_statement "piVar3[1] = piVar5[1];" (assignment_expression "piVar3[1] = piVar5[1]" (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*piVar5 = 0;" (assignment_expression "*piVar5 = 0" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar5[1] = *(int *)(param_1 + 0x24);" (assignment_expression "piVar5[1] = *(int *)(param_1 + 0x24)" (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (pointer_expression "*(int *)(param_1 + 0x24)" (* "*") (cast_expression "(int *)(param_1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (expression_statement "*(int **)(param_1 + 0x24) = piVar5;" (assignment_expression "*(int **)(param_1 + 0x24) = piVar5" (pointer_expression "*(int **)(param_1 + 0x24)" (* "*") (cast_expression "(int **)(param_1 + 0x24)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (identifier "piVar5")) (; ";")) (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}"))) (expression_statement "cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);" (assignment_expression "cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4)" (identifier "cVar2") (= "=") (call_expression "(**(code **)(param_1 + 0x1c))(param_2,iVar4)" (parenthesized_expression "(**(code **)(param_1 + 0x1c))" (( "(") (pointer_expression "**(code **)(param_1 + 0x1c)" (* "*") (pointer_expression "*(code **)(param_1 + 0x1c)" (* "*") (cast_expression "(code **)(param_1 + 0x1c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))))) () ")")) (argument_list "(param_2,iVar4)" (( "(") (identifier "param_2") (, ",") (identifier "iVar4") () ")")))) (; ";")) (if_statement "if (cVar2 != '\0') {\n          piVar5 = (int *)piVar3[1];\n          iVar4 = *piVar5;\n          goto LAB_0001ce2c;\n        }" (if "if") (parenthesized_expression "(cVar2 != '\0')" (( "(") (binary_expression "cVar2 != '\0'" (identifier "cVar2") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          piVar5 = (int *)piVar3[1];\n          iVar4 = *piVar5;\n          goto LAB_0001ce2c;\n        }" ({ "{") (expression_statement "piVar5 = (int *)piVar3[1];" (assignment_expression "piVar5 = (int *)piVar3[1]" (identifier "piVar5") (= "=") (cast_expression "(int *)piVar3[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "iVar4 = *piVar5;" (assignment_expression "iVar4 = *piVar5" (identifier "iVar4") (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (goto_statement "goto LAB_0001ce2c;" (goto "goto") (statement_identifier "LAB_0001ce2c") (; ";")) (} "}"))) (expression_statement "piVar3 = (int *)piVar3[1];" (assignment_expression "piVar3 = (int *)piVar3[1]" (identifier "piVar3") (= "=") (cast_expression "(int *)piVar3[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "piVar5 = (int *)piVar3[1];" (assignment_expression "piVar5 = (int *)piVar3[1]" (identifier "piVar5") (= "=") (cast_expression "(int *)piVar3[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")))) (; ";")) (if_statement "if (piVar5 == (int *)0x0) {\n          return 0;\n        }" (if "if") (parenthesized_expression "(piVar5 == (int *)0x0)" (( "(") (binary_expression "piVar5 == (int *)0x0" (identifier "piVar5") (== "==") (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 "iVar4 = *piVar5;" (assignment_expression "iVar4 = *piVar5" (identifier "iVar4") (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}"))) (expression_statement "iVar4 = *piVar3;" (assignment_expression "iVar4 = *piVar3" (identifier "iVar4") (= "=") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (; ";")) (} "}"))) (if_statement "if (param_4 != '\0') {\n    piVar5 = (int *)piVar3[1];\n    if (piVar5 != (int *)0x0) {\n      iVar1 = piVar5[1];\n      *piVar3 = *piVar5;\n      piVar3[1] = iVar1;\n      *piVar5 = 0;\n      piVar5[1] = *(int *)(param_1 + 0x24);\n      *(int **)(param_1 + 0x24) = piVar5;\n      return iVar4;\n    }\n    *piVar3 = 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    piVar5 = (int *)piVar3[1];\n    if (piVar5 != (int *)0x0) {\n      iVar1 = piVar5[1];\n      *piVar3 = *piVar5;\n      piVar3[1] = iVar1;\n      *piVar5 = 0;\n      piVar5[1] = *(int *)(param_1 + 0x24);\n      *(int **)(param_1 + 0x24) = piVar5;\n      return iVar4;\n    }\n    *piVar3 = 0;\n  }" ({ "{") (expression_statement "piVar5 = (int *)piVar3[1];" (assignment_expression "piVar5 = (int *)piVar3[1]" (identifier "piVar5") (= "=") (cast_expression "(int *)piVar3[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")))) (; ";")) (if_statement "if (piVar5 != (int *)0x0) {\n      iVar1 = piVar5[1];\n      *piVar3 = *piVar5;\n      piVar3[1] = iVar1;\n      *piVar5 = 0;\n      piVar5[1] = *(int *)(param_1 + 0x24);\n      *(int **)(param_1 + 0x24) = piVar5;\n      return iVar4;\n    }" (if "if") (parenthesized_expression "(piVar5 != (int *)0x0)" (( "(") (binary_expression "piVar5 != (int *)0x0" (identifier "piVar5") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      iVar1 = piVar5[1];\n      *piVar3 = *piVar5;\n      piVar3[1] = iVar1;\n      *piVar5 = 0;\n      piVar5[1] = *(int *)(param_1 + 0x24);\n      *(int **)(param_1 + 0x24) = piVar5;\n      return iVar4;\n    }" ({ "{") (expression_statement "iVar1 = piVar5[1];" (assignment_expression "iVar1 = piVar5[1]" (identifier "iVar1") (= "=") (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*piVar3 = *piVar5;" (assignment_expression "*piVar3 = *piVar5" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (expression_statement "piVar3[1] = iVar1;" (assignment_expression "piVar3[1] = iVar1" (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "*piVar5 = 0;" (assignment_expression "*piVar5 = 0" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar5[1] = *(int *)(param_1 + 0x24);" (assignment_expression "piVar5[1] = *(int *)(param_1 + 0x24)" (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (pointer_expression "*(int *)(param_1 + 0x24)" (* "*") (cast_expression "(int *)(param_1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (expression_statement "*(int **)(param_1 + 0x24) = piVar5;" (assignment_expression "*(int **)(param_1 + 0x24) = piVar5" (pointer_expression "*(int **)(param_1 + 0x24)" (* "*") (cast_expression "(int **)(param_1 + 0x24)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (identifier "piVar5")) (; ";")) (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}"))) (expression_statement "*piVar3 = 0;" (assignment_expression "*piVar3 = 0" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}")))

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

{
  type_2 *phVar1;
  type_3 _Var2;
  type_2 *phVar3;
  void *var_2;
  type_2 *var_4;
  
  phVar3 = var_1(table,var_3);
  *bucket_head = phVar3;
  var_2 = phVar3->data;
  if (var_2 == (void *)0x0) {
    return (void *)0x0;
  }
  if (var_2 != var_3) {
    _Var2 = (*table->comparator)(var_3,var_2);
    if (!_Var2) {
      var_4 = phVar3->next;
      if (var_4 == (type_2 *)0x0) {
        return (void *)0x0;
      }
      var_2 = var_4->data;
      do {
        if (var_3 == var_2) {
LAB_0001ce2c:
          if (!delete) {
            return var_2;
          }
          phVar3->next = var_4->next;
          var_4->data = (void *)0x0;
          var_4->next = table->free_entry_list;
          table->free_entry_list = var_4;
          return var_2;
        }
        _Var2 = (*table->comparator)(var_3,var_2);
        if (_Var2) {
          var_4 = phVar3->next;
          var_2 = var_4->data;
          goto LAB_0001ce2c;
        }
        phVar3 = phVar3->next;
        var_4 = phVar3->next;
        if (var_4 == (type_2 *)0x0) {
          return (void *)0x0;
        }
        var_2 = var_4->data;
      } while( true );
    }
    var_2 = phVar3->data;
  }
  if (delete) {
    var_4 = phVar3->next;
    if (var_4 != (type_2 *)0x0) {
      phVar1 = var_4->next;
      phVar3->data = var_4->data;
      phVar3->next = phVar1;
      var_4->data = (void *)0x0;
      var_4->next = table->free_entry_list;
      table->free_entry_list = var_4;
      return var_2;
    }
    phVar3->data = (void *)0x0;
  }
  return var_2;
}


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

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

{
  int iVar1;
  char cVar2;
  int *piVar3;
  int iVar4;
  int *piVar5;
  
  piVar3 = (int *)FUN_0001cd80();
  *param_3 = piVar3;
  iVar4 = *piVar3;
  if (iVar4 == 0) {
    return 0;
  }
  if (iVar4 != param_2) {
    cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);
    if (cVar2 == '\0') {
      piVar5 = (int *)piVar3[1];
      if (piVar5 == (int *)0x0) {
        return 0;
      }
      iVar4 = *piVar5;
      do {
        if (param_2 == iVar4) {
LAB_0001ce2c:
          if (param_4 == '\0') {
            return iVar4;
          }
          piVar3[1] = piVar5[1];
          *piVar5 = 0;
          piVar5[1] = *(int *)(param_1 + 0x24);
          *(int **)(param_1 + 0x24) = piVar5;
          return iVar4;
        }
        cVar2 = (**(code **)(param_1 + 0x1c))(param_2,iVar4);
        if (cVar2 != '\0') {
          piVar5 = (int *)piVar3[1];
          iVar4 = *piVar5;
          goto LAB_0001ce2c;
        }
        piVar3 = (int *)piVar3[1];
        piVar5 = (int *)piVar3[1];
        if (piVar5 == (int *)0x0) {
          return 0;
        }
        iVar4 = *piVar5;
      } while( true );
    }
    iVar4 = *piVar3;
  }
  if (param_4 != '\0') {
    piVar5 = (int *)piVar3[1];
    if (piVar5 != (int *)0x0) {
      iVar1 = piVar5[1];
      *piVar3 = *piVar5;
      piVar3[1] = iVar1;
      *piVar5 = 0;
      piVar5[1] = *(int *)(param_1 + 0x24);
      *(int **)(param_1 + 0x24) = piVar5;
      return iVar4;
    }
    *piVar3 = 0;
  }
  return iVar4;
}

