
/* WARNING: Unknown calling convention */

size_t hash_do_for_each(Hash_table *table,Hash_processor processor,void *processor_data)

{
  _Bool _Var1;
  void *pvVar2;
  size_t sVar3;
  hash_entry *phVar4;
  hash_entry *phVar5;
  
  sVar3 = 0;
  phVar4 = table->bucket;
  if (phVar4 < table->bucket_limit) {
    do {
      pvVar2 = phVar4->data;
      phVar5 = phVar4;
      if (pvVar2 != (void *)0x0) {
        while( true ) {
          _Var1 = (*processor)(pvVar2,processor_data);
          if (!_Var1) {
            return sVar3;
          }
          phVar5 = phVar5->next;
          sVar3 = sVar3 + 1;
          if (phVar5 == (hash_entry *)0x0) break;
          pvVar2 = phVar5->data;
        }
      }
      phVar4 = phVar4 + 1;
    } while (phVar4 < table->bucket_limit);
  }
  return sVar3;
}



int FUN_000160c0(uint *param_1,code *param_2,undefined4 param_3)

{
  char cVar1;
  int iVar2;
  int iVar3;
  int *piVar4;
  int *piVar5;
  
  iVar3 = 0;
  piVar4 = (int *)*param_1;
  if (piVar4 < (int *)param_1[1]) {
    do {
      iVar2 = *piVar4;
      piVar5 = piVar4;
      if (iVar2 != 0) {
        while( true ) {
          cVar1 = (*param_2)(iVar2,param_3);
          if (cVar1 == '\0') {
            return iVar3;
          }
          piVar5 = (int *)piVar5[1];
          iVar3 = iVar3 + 1;
          if (piVar5 == (int *)0x0) break;
          iVar2 = *piVar5;
        }
      }
      piVar4 = piVar4 + 2;
    } while (piVar4 < (int *)param_1[1]);
  }
  return iVar3;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
XOR EBX,EBX
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x20]
MOV EDI,dword ptr [ESP + 0x28]
MOV EBP,dword ptr [EAX]
CMP dword ptr [EAX + 0x4],EBP
JBE 0x000160eb
MOV EAX,dword ptr [EBP]
TEST EAX,EAX
JNZ 0x000160f8
MOV EAX,dword ptr [ESP + 0x20]
ADD EBP,0x8
CMP dword ptr [EAX + 0x4],EBP
JA 0x000160d8
ADD ESP,0xc
MOV EAX,EBX
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ESI,EBP
JMP 0x0001610c
MOV ESI,dword ptr [ESI + 0x4]
ADD EBX,0x1
TEST ESI,ESI
JZ 0x000160df
MOV EAX,dword ptr [ESI]
SUB ESP,0x8
PUSH EDI
PUSH EAX
CALL dword ptr [ESP + 0x34]
ADD ESP,0x10
TEST AL,AL
JNZ 0x00016100
ADD ESP,0xc
MOV EAX,EBX
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "int FUN_000160c0(uint *param_1,code *param_2,undefined4 param_3)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int *piVar5;\n  \n  iVar3 = 0;\n  piVar4 = (int *)*param_1;\n  if (piVar4 < (int *)param_1[1]) {\n    do {\n      iVar2 = *piVar4;\n      piVar5 = piVar4;\n      if (iVar2 != 0) {\n        while( true ) {\n          cVar1 = (*param_2)(iVar2,param_3);\n          if (cVar1 == '\0') {\n            return iVar3;\n          }\n          piVar5 = (int *)piVar5[1];\n          iVar3 = iVar3 + 1;\n          if (piVar5 == (int *)0x0) break;\n          iVar2 = *piVar5;\n        }\n      }\n      piVar4 = piVar4 + 2;\n    } while (piVar4 < (int *)param_1[1]);\n  }\n  return iVar3;\n}\n\n" (function_definition "int FUN_000160c0(uint *param_1,code *param_2,undefined4 param_3)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int *piVar5;\n  \n  iVar3 = 0;\n  piVar4 = (int *)*param_1;\n  if (piVar4 < (int *)param_1[1]) {\n    do {\n      iVar2 = *piVar4;\n      piVar5 = piVar4;\n      if (iVar2 != 0) {\n        while( true ) {\n          cVar1 = (*param_2)(iVar2,param_3);\n          if (cVar1 == '\0') {\n            return iVar3;\n          }\n          piVar5 = (int *)piVar5[1];\n          iVar3 = iVar3 + 1;\n          if (piVar5 == (int *)0x0) break;\n          iVar2 = *piVar5;\n        }\n      }\n      piVar4 = piVar4 + 2;\n    } while (piVar4 < (int *)param_1[1]);\n  }\n  return iVar3;\n}" primitive_type (function_declarator "FUN_000160c0(uint *param_1,code *param_2,undefined4 param_3)" identifier (parameter_list "(uint *param_1,code *param_2,undefined4 param_3)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "code *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int *piVar5;\n  \n  iVar3 = 0;\n  piVar4 = (int *)*param_1;\n  if (piVar4 < (int *)param_1[1]) {\n    do {\n      iVar2 = *piVar4;\n      piVar5 = piVar4;\n      if (iVar2 != 0) {\n        while( true ) {\n          cVar1 = (*param_2)(iVar2,param_3);\n          if (cVar1 == '\0') {\n            return iVar3;\n          }\n          piVar5 = (int *)piVar5[1];\n          iVar3 = iVar3 + 1;\n          if (piVar5 == (int *)0x0) break;\n          iVar2 = *piVar5;\n        }\n      }\n      piVar4 = piVar4 + 2;\n    } while (piVar4 < (int *)param_1[1]);\n  }\n  return iVar3;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "piVar4 = (int *)*param_1;" (assignment_expression "piVar4 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (piVar4 < (int *)param_1[1]) {\n    do {\n      iVar2 = *piVar4;\n      piVar5 = piVar4;\n      if (iVar2 != 0) {\n        while( true ) {\n          cVar1 = (*param_2)(iVar2,param_3);\n          if (cVar1 == '\0') {\n            return iVar3;\n          }\n          piVar5 = (int *)piVar5[1];\n          iVar3 = iVar3 + 1;\n          if (piVar5 == (int *)0x0) break;\n          iVar2 = *piVar5;\n        }\n      }\n      piVar4 = piVar4 + 2;\n    } while (piVar4 < (int *)param_1[1]);\n  }" if (parenthesized_expression "(piVar4 < (int *)param_1[1])" ( (binary_expression "piVar4 < (int *)param_1[1]" identifier < (cast_expression "(int *)param_1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    do {\n      iVar2 = *piVar4;\n      piVar5 = piVar4;\n      if (iVar2 != 0) {\n        while( true ) {\n          cVar1 = (*param_2)(iVar2,param_3);\n          if (cVar1 == '\0') {\n            return iVar3;\n          }\n          piVar5 = (int *)piVar5[1];\n          iVar3 = iVar3 + 1;\n          if (piVar5 == (int *)0x0) break;\n          iVar2 = *piVar5;\n        }\n      }\n      piVar4 = piVar4 + 2;\n    } while (piVar4 < (int *)param_1[1]);\n  }" { (do_statement "do {\n      iVar2 = *piVar4;\n      piVar5 = piVar4;\n      if (iVar2 != 0) {\n        while( true ) {\n          cVar1 = (*param_2)(iVar2,param_3);\n          if (cVar1 == '\0') {\n            return iVar3;\n          }\n          piVar5 = (int *)piVar5[1];\n          iVar3 = iVar3 + 1;\n          if (piVar5 == (int *)0x0) break;\n          iVar2 = *piVar5;\n        }\n      }\n      piVar4 = piVar4 + 2;\n    } while (piVar4 < (int *)param_1[1]);" do (compound_statement "{\n      iVar2 = *piVar4;\n      piVar5 = piVar4;\n      if (iVar2 != 0) {\n        while( true ) {\n          cVar1 = (*param_2)(iVar2,param_3);\n          if (cVar1 == '\0') {\n            return iVar3;\n          }\n          piVar5 = (int *)piVar5[1];\n          iVar3 = iVar3 + 1;\n          if (piVar5 == (int *)0x0) break;\n          iVar2 = *piVar5;\n        }\n      }\n      piVar4 = piVar4 + 2;\n    }" { (expression_statement "iVar2 = *piVar4;" (assignment_expression "iVar2 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "piVar5 = piVar4;" (assignment_expression "piVar5 = piVar4" identifier = identifier) ;) (if_statement "if (iVar2 != 0) {\n        while( true ) {\n          cVar1 = (*param_2)(iVar2,param_3);\n          if (cVar1 == '\0') {\n            return iVar3;\n          }\n          piVar5 = (int *)piVar5[1];\n          iVar3 = iVar3 + 1;\n          if (piVar5 == (int *)0x0) break;\n          iVar2 = *piVar5;\n        }\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        while( true ) {\n          cVar1 = (*param_2)(iVar2,param_3);\n          if (cVar1 == '\0') {\n            return iVar3;\n          }\n          piVar5 = (int *)piVar5[1];\n          iVar3 = iVar3 + 1;\n          if (piVar5 == (int *)0x0) break;\n          iVar2 = *piVar5;\n        }\n      }" { (while_statement "while( true ) {\n          cVar1 = (*param_2)(iVar2,param_3);\n          if (cVar1 == '\0') {\n            return iVar3;\n          }\n          piVar5 = (int *)piVar5[1];\n          iVar3 = iVar3 + 1;\n          if (piVar5 == (int *)0x0) break;\n          iVar2 = *piVar5;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          cVar1 = (*param_2)(iVar2,param_3);\n          if (cVar1 == '\0') {\n            return iVar3;\n          }\n          piVar5 = (int *)piVar5[1];\n          iVar3 = iVar3 + 1;\n          if (piVar5 == (int *)0x0) break;\n          iVar2 = *piVar5;\n        }" { (expression_statement "cVar1 = (*param_2)(iVar2,param_3);" (assignment_expression "cVar1 = (*param_2)(iVar2,param_3)" identifier = (call_expression "(*param_2)(iVar2,param_3)" (parenthesized_expression "(*param_2)" ( (pointer_expression "*param_2" * identifier) )) (argument_list "(iVar2,param_3)" ( identifier , identifier )))) ;) (if_statement "if (cVar1 == '\0') {\n            return iVar3;\n          }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            return iVar3;\n          }" { (return_statement "return iVar3;" return identifier ;) })) (expression_statement "piVar5 = (int *)piVar5[1];" (assignment_expression "piVar5 = (int *)piVar5[1]" identifier = (cast_expression "(int *)piVar5[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar5[1]" identifier [ number_literal ]))) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (if_statement "if (piVar5 == (int *)0x0) break;" 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)) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = *piVar5;" (assignment_expression "iVar2 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) })) })) (expression_statement "piVar4 = piVar4 + 2;" (assignment_expression "piVar4 = piVar4 + 2" identifier = (binary_expression "piVar4 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar4 < (int *)param_1[1])" ( (binary_expression "piVar4 < (int *)param_1[1]" identifier < (cast_expression "(int *)param_1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) ;) })) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nsize_t hash_do_for_each(Hash_table *table,Hash_processor processor,void *processor_data)\n\n{\n  _Bool _Var1;\n  void *pvVar2;\n  size_t sVar3;\n  hash_entry *phVar4;\n  hash_entry *phVar5;\n  \n  sVar3 = 0;\n  phVar4 = table->bucket;\n  if (phVar4 < table->bucket_limit) {\n    do {\n      pvVar2 = phVar4->data;\n      phVar5 = phVar4;\n      if (pvVar2 != (void *)0x0) {\n        while( true ) {\n          _Var1 = (*processor)(pvVar2,processor_data);\n          if (!_Var1) {\n            return sVar3;\n          }\n          phVar5 = phVar5->next;\n          sVar3 = sVar3 + 1;\n          if (phVar5 == (hash_entry *)0x0) break;\n          pvVar2 = phVar5->data;\n        }\n      }\n      phVar4 = phVar4 + 1;\n    } while (phVar4 < table->bucket_limit);\n  }\n  return sVar3;\n}\n\n" comment (function_definition "size_t hash_do_for_each(Hash_table *table,Hash_processor processor,void *processor_data)\n\n{\n  _Bool _Var1;\n  void *pvVar2;\n  size_t sVar3;\n  hash_entry *phVar4;\n  hash_entry *phVar5;\n  \n  sVar3 = 0;\n  phVar4 = table->bucket;\n  if (phVar4 < table->bucket_limit) {\n    do {\n      pvVar2 = phVar4->data;\n      phVar5 = phVar4;\n      if (pvVar2 != (void *)0x0) {\n        while( true ) {\n          _Var1 = (*processor)(pvVar2,processor_data);\n          if (!_Var1) {\n            return sVar3;\n          }\n          phVar5 = phVar5->next;\n          sVar3 = sVar3 + 1;\n          if (phVar5 == (hash_entry *)0x0) break;\n          pvVar2 = phVar5->data;\n        }\n      }\n      phVar4 = phVar4 + 1;\n    } while (phVar4 < table->bucket_limit);\n  }\n  return sVar3;\n}" primitive_type (function_declarator "hash_do_for_each(Hash_table *table,Hash_processor processor,void *processor_data)" identifier (parameter_list "(Hash_table *table,Hash_processor processor,void *processor_data)" ( (parameter_declaration "Hash_table *table" type_identifier (pointer_declarator "*table" * identifier)) , (parameter_declaration "Hash_processor processor" type_identifier identifier) , (parameter_declaration "void *processor_data" primitive_type (pointer_declarator "*processor_data" * identifier)) ))) (compound_statement "{\n  _Bool _Var1;\n  void *pvVar2;\n  size_t sVar3;\n  hash_entry *phVar4;\n  hash_entry *phVar5;\n  \n  sVar3 = 0;\n  phVar4 = table->bucket;\n  if (phVar4 < table->bucket_limit) {\n    do {\n      pvVar2 = phVar4->data;\n      phVar5 = phVar4;\n      if (pvVar2 != (void *)0x0) {\n        while( true ) {\n          _Var1 = (*processor)(pvVar2,processor_data);\n          if (!_Var1) {\n            return sVar3;\n          }\n          phVar5 = phVar5->next;\n          sVar3 = sVar3 + 1;\n          if (phVar5 == (hash_entry *)0x0) break;\n          pvVar2 = phVar5->data;\n        }\n      }\n      phVar4 = phVar4 + 1;\n    } while (phVar4 < table->bucket_limit);\n  }\n  return sVar3;\n}" { (declaration "_Bool _Var1;" type_identifier identifier ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "hash_entry *phVar4;" type_identifier (pointer_declarator "*phVar4" * identifier) ;) (declaration "hash_entry *phVar5;" type_identifier (pointer_declarator "*phVar5" * identifier) ;) (expression_statement "sVar3 = 0;" (assignment_expression "sVar3 = 0" identifier = number_literal) ;) (expression_statement "phVar4 = table->bucket;" (assignment_expression "phVar4 = table->bucket" identifier = (field_expression "table->bucket" identifier -> field_identifier)) ;) (if_statement "if (phVar4 < table->bucket_limit) {\n    do {\n      pvVar2 = phVar4->data;\n      phVar5 = phVar4;\n      if (pvVar2 != (void *)0x0) {\n        while( true ) {\n          _Var1 = (*processor)(pvVar2,processor_data);\n          if (!_Var1) {\n            return sVar3;\n          }\n          phVar5 = phVar5->next;\n          sVar3 = sVar3 + 1;\n          if (phVar5 == (hash_entry *)0x0) break;\n          pvVar2 = phVar5->data;\n        }\n      }\n      phVar4 = phVar4 + 1;\n    } while (phVar4 < table->bucket_limit);\n  }" if (parenthesized_expression "(phVar4 < table->bucket_limit)" ( (binary_expression "phVar4 < table->bucket_limit" identifier < (field_expression "table->bucket_limit" identifier -> field_identifier)) )) (compound_statement "{\n    do {\n      pvVar2 = phVar4->data;\n      phVar5 = phVar4;\n      if (pvVar2 != (void *)0x0) {\n        while( true ) {\n          _Var1 = (*processor)(pvVar2,processor_data);\n          if (!_Var1) {\n            return sVar3;\n          }\n          phVar5 = phVar5->next;\n          sVar3 = sVar3 + 1;\n          if (phVar5 == (hash_entry *)0x0) break;\n          pvVar2 = phVar5->data;\n        }\n      }\n      phVar4 = phVar4 + 1;\n    } while (phVar4 < table->bucket_limit);\n  }" { (do_statement "do {\n      pvVar2 = phVar4->data;\n      phVar5 = phVar4;\n      if (pvVar2 != (void *)0x0) {\n        while( true ) {\n          _Var1 = (*processor)(pvVar2,processor_data);\n          if (!_Var1) {\n            return sVar3;\n          }\n          phVar5 = phVar5->next;\n          sVar3 = sVar3 + 1;\n          if (phVar5 == (hash_entry *)0x0) break;\n          pvVar2 = phVar5->data;\n        }\n      }\n      phVar4 = phVar4 + 1;\n    } while (phVar4 < table->bucket_limit);" do (compound_statement "{\n      pvVar2 = phVar4->data;\n      phVar5 = phVar4;\n      if (pvVar2 != (void *)0x0) {\n        while( true ) {\n          _Var1 = (*processor)(pvVar2,processor_data);\n          if (!_Var1) {\n            return sVar3;\n          }\n          phVar5 = phVar5->next;\n          sVar3 = sVar3 + 1;\n          if (phVar5 == (hash_entry *)0x0) break;\n          pvVar2 = phVar5->data;\n        }\n      }\n      phVar4 = phVar4 + 1;\n    }" { (expression_statement "pvVar2 = phVar4->data;" (assignment_expression "pvVar2 = phVar4->data" identifier = (field_expression "phVar4->data" identifier -> field_identifier)) ;) (expression_statement "phVar5 = phVar4;" (assignment_expression "phVar5 = phVar4" identifier = identifier) ;) (if_statement "if (pvVar2 != (void *)0x0) {\n        while( true ) {\n          _Var1 = (*processor)(pvVar2,processor_data);\n          if (!_Var1) {\n            return sVar3;\n          }\n          phVar5 = phVar5->next;\n          sVar3 = sVar3 + 1;\n          if (phVar5 == (hash_entry *)0x0) break;\n          pvVar2 = phVar5->data;\n        }\n      }" if (parenthesized_expression "(pvVar2 != (void *)0x0)" ( (binary_expression "pvVar2 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        while( true ) {\n          _Var1 = (*processor)(pvVar2,processor_data);\n          if (!_Var1) {\n            return sVar3;\n          }\n          phVar5 = phVar5->next;\n          sVar3 = sVar3 + 1;\n          if (phVar5 == (hash_entry *)0x0) break;\n          pvVar2 = phVar5->data;\n        }\n      }" { (while_statement "while( true ) {\n          _Var1 = (*processor)(pvVar2,processor_data);\n          if (!_Var1) {\n            return sVar3;\n          }\n          phVar5 = phVar5->next;\n          sVar3 = sVar3 + 1;\n          if (phVar5 == (hash_entry *)0x0) break;\n          pvVar2 = phVar5->data;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          _Var1 = (*processor)(pvVar2,processor_data);\n          if (!_Var1) {\n            return sVar3;\n          }\n          phVar5 = phVar5->next;\n          sVar3 = sVar3 + 1;\n          if (phVar5 == (hash_entry *)0x0) break;\n          pvVar2 = phVar5->data;\n        }" { (expression_statement "_Var1 = (*processor)(pvVar2,processor_data);" (assignment_expression "_Var1 = (*processor)(pvVar2,processor_data)" identifier = (call_expression "(*processor)(pvVar2,processor_data)" (parenthesized_expression "(*processor)" ( (pointer_expression "*processor" * identifier) )) (argument_list "(pvVar2,processor_data)" ( identifier , identifier )))) ;) (if_statement "if (!_Var1) {\n            return sVar3;\n          }" if (parenthesized_expression "(!_Var1)" ( (unary_expression "!_Var1" ! identifier) )) (compound_statement "{\n            return sVar3;\n          }" { (return_statement "return sVar3;" return identifier ;) })) (expression_statement "phVar5 = phVar5->next;" (assignment_expression "phVar5 = phVar5->next" identifier = (field_expression "phVar5->next" identifier -> field_identifier)) ;) (expression_statement "sVar3 = sVar3 + 1;" (assignment_expression "sVar3 = sVar3 + 1" identifier = (binary_expression "sVar3 + 1" identifier + number_literal)) ;) (if_statement "if (phVar5 == (hash_entry *)0x0) break;" 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)) )) (break_statement "break;" break ;)) (expression_statement "pvVar2 = phVar5->data;" (assignment_expression "pvVar2 = phVar5->data" identifier = (field_expression "phVar5->data" identifier -> field_identifier)) ;) })) })) (expression_statement "phVar4 = phVar4 + 1;" (assignment_expression "phVar4 = phVar4 + 1" identifier = (binary_expression "phVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(phVar4 < table->bucket_limit)" ( (binary_expression "phVar4 < table->bucket_limit" identifier < (field_expression "table->bucket_limit" identifier -> field_identifier)) )) ;) })) (return_statement "return sVar3;" return identifier ;) })))
(translation_unit "int FUN_000160c0(uint *param_1,code *param_2,undefined4 param_3)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int *piVar5;\n  \n  iVar3 = 0;\n  piVar4 = (int *)*param_1;\n  if (piVar4 < (int *)param_1[1]) {\n    do {\n      iVar2 = *piVar4;\n      piVar5 = piVar4;\n      if (iVar2 != 0) {\n        while( true ) {\n          cVar1 = (*param_2)(iVar2,param_3);\n          if (cVar1 == '\0') {\n            return iVar3;\n          }\n          piVar5 = (int *)piVar5[1];\n          iVar3 = iVar3 + 1;\n          if (piVar5 == (int *)0x0) break;\n          iVar2 = *piVar5;\n        }\n      }\n      piVar4 = piVar4 + 2;\n    } while (piVar4 < (int *)param_1[1]);\n  }\n  return iVar3;\n}\n\n" (function_definition "int FUN_000160c0(uint *param_1,code *param_2,undefined4 param_3)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int *piVar5;\n  \n  iVar3 = 0;\n  piVar4 = (int *)*param_1;\n  if (piVar4 < (int *)param_1[1]) {\n    do {\n      iVar2 = *piVar4;\n      piVar5 = piVar4;\n      if (iVar2 != 0) {\n        while( true ) {\n          cVar1 = (*param_2)(iVar2,param_3);\n          if (cVar1 == '\0') {\n            return iVar3;\n          }\n          piVar5 = (int *)piVar5[1];\n          iVar3 = iVar3 + 1;\n          if (piVar5 == (int *)0x0) break;\n          iVar2 = *piVar5;\n        }\n      }\n      piVar4 = piVar4 + 2;\n    } while (piVar4 < (int *)param_1[1]);\n  }\n  return iVar3;\n}" primitive_type (function_declarator "FUN_000160c0(uint *param_1,code *param_2,undefined4 param_3)" identifier (parameter_list "(uint *param_1,code *param_2,undefined4 param_3)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "code *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int *piVar5;\n  \n  iVar3 = 0;\n  piVar4 = (int *)*param_1;\n  if (piVar4 < (int *)param_1[1]) {\n    do {\n      iVar2 = *piVar4;\n      piVar5 = piVar4;\n      if (iVar2 != 0) {\n        while( true ) {\n          cVar1 = (*param_2)(iVar2,param_3);\n          if (cVar1 == '\0') {\n            return iVar3;\n          }\n          piVar5 = (int *)piVar5[1];\n          iVar3 = iVar3 + 1;\n          if (piVar5 == (int *)0x0) break;\n          iVar2 = *piVar5;\n        }\n      }\n      piVar4 = piVar4 + 2;\n    } while (piVar4 < (int *)param_1[1]);\n  }\n  return iVar3;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "piVar4 = (int *)*param_1;" (assignment_expression "piVar4 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (piVar4 < (int *)param_1[1]) {\n    do {\n      iVar2 = *piVar4;\n      piVar5 = piVar4;\n      if (iVar2 != 0) {\n        while( true ) {\n          cVar1 = (*param_2)(iVar2,param_3);\n          if (cVar1 == '\0') {\n            return iVar3;\n          }\n          piVar5 = (int *)piVar5[1];\n          iVar3 = iVar3 + 1;\n          if (piVar5 == (int *)0x0) break;\n          iVar2 = *piVar5;\n        }\n      }\n      piVar4 = piVar4 + 2;\n    } while (piVar4 < (int *)param_1[1]);\n  }" if (parenthesized_expression "(piVar4 < (int *)param_1[1])" ( (binary_expression "piVar4 < (int *)param_1[1]" identifier < (cast_expression "(int *)param_1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    do {\n      iVar2 = *piVar4;\n      piVar5 = piVar4;\n      if (iVar2 != 0) {\n        while( true ) {\n          cVar1 = (*param_2)(iVar2,param_3);\n          if (cVar1 == '\0') {\n            return iVar3;\n          }\n          piVar5 = (int *)piVar5[1];\n          iVar3 = iVar3 + 1;\n          if (piVar5 == (int *)0x0) break;\n          iVar2 = *piVar5;\n        }\n      }\n      piVar4 = piVar4 + 2;\n    } while (piVar4 < (int *)param_1[1]);\n  }" { (do_statement "do {\n      iVar2 = *piVar4;\n      piVar5 = piVar4;\n      if (iVar2 != 0) {\n        while( true ) {\n          cVar1 = (*param_2)(iVar2,param_3);\n          if (cVar1 == '\0') {\n            return iVar3;\n          }\n          piVar5 = (int *)piVar5[1];\n          iVar3 = iVar3 + 1;\n          if (piVar5 == (int *)0x0) break;\n          iVar2 = *piVar5;\n        }\n      }\n      piVar4 = piVar4 + 2;\n    } while (piVar4 < (int *)param_1[1]);" do (compound_statement "{\n      iVar2 = *piVar4;\n      piVar5 = piVar4;\n      if (iVar2 != 0) {\n        while( true ) {\n          cVar1 = (*param_2)(iVar2,param_3);\n          if (cVar1 == '\0') {\n            return iVar3;\n          }\n          piVar5 = (int *)piVar5[1];\n          iVar3 = iVar3 + 1;\n          if (piVar5 == (int *)0x0) break;\n          iVar2 = *piVar5;\n        }\n      }\n      piVar4 = piVar4 + 2;\n    }" { (expression_statement "iVar2 = *piVar4;" (assignment_expression "iVar2 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "piVar5 = piVar4;" (assignment_expression "piVar5 = piVar4" identifier = identifier) ;) (if_statement "if (iVar2 != 0) {\n        while( true ) {\n          cVar1 = (*param_2)(iVar2,param_3);\n          if (cVar1 == '\0') {\n            return iVar3;\n          }\n          piVar5 = (int *)piVar5[1];\n          iVar3 = iVar3 + 1;\n          if (piVar5 == (int *)0x0) break;\n          iVar2 = *piVar5;\n        }\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        while( true ) {\n          cVar1 = (*param_2)(iVar2,param_3);\n          if (cVar1 == '\0') {\n            return iVar3;\n          }\n          piVar5 = (int *)piVar5[1];\n          iVar3 = iVar3 + 1;\n          if (piVar5 == (int *)0x0) break;\n          iVar2 = *piVar5;\n        }\n      }" { (while_statement "while( true ) {\n          cVar1 = (*param_2)(iVar2,param_3);\n          if (cVar1 == '\0') {\n            return iVar3;\n          }\n          piVar5 = (int *)piVar5[1];\n          iVar3 = iVar3 + 1;\n          if (piVar5 == (int *)0x0) break;\n          iVar2 = *piVar5;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          cVar1 = (*param_2)(iVar2,param_3);\n          if (cVar1 == '\0') {\n            return iVar3;\n          }\n          piVar5 = (int *)piVar5[1];\n          iVar3 = iVar3 + 1;\n          if (piVar5 == (int *)0x0) break;\n          iVar2 = *piVar5;\n        }" { (expression_statement "cVar1 = (*param_2)(iVar2,param_3);" (assignment_expression "cVar1 = (*param_2)(iVar2,param_3)" identifier = (call_expression "(*param_2)(iVar2,param_3)" (parenthesized_expression "(*param_2)" ( (pointer_expression "*param_2" * identifier) )) (argument_list "(iVar2,param_3)" ( identifier , identifier )))) ;) (if_statement "if (cVar1 == '\0') {\n            return iVar3;\n          }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            return iVar3;\n          }" { (return_statement "return iVar3;" return identifier ;) })) (expression_statement "piVar5 = (int *)piVar5[1];" (assignment_expression "piVar5 = (int *)piVar5[1]" identifier = (cast_expression "(int *)piVar5[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar5[1]" identifier [ number_literal ]))) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (if_statement "if (piVar5 == (int *)0x0) break;" 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)) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = *piVar5;" (assignment_expression "iVar2 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) })) })) (expression_statement "piVar4 = piVar4 + 2;" (assignment_expression "piVar4 = piVar4 + 2" identifier = (binary_expression "piVar4 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar4 < (int *)param_1[1])" ( (binary_expression "piVar4 < (int *)param_1[1]" identifier < (cast_expression "(int *)param_1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) ;) })) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_000160c0(uint *param_1,code *param_2,undefined4 param_3)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int *piVar5;\n  \n  iVar3 = 0;\n  piVar4 = (int *)*param_1;\n  if (piVar4 < (int *)param_1[1]) {\n    do {\n      iVar2 = *piVar4;\n      piVar5 = piVar4;\n      if (iVar2 != 0) {\n        while( true ) {\n          cVar1 = (*param_2)(iVar2,param_3);\n          if (cVar1 == '\0') {\n            return iVar3;\n          }\n          piVar5 = (int *)piVar5[1];\n          iVar3 = iVar3 + 1;\n          if (piVar5 == (int *)0x0) break;\n          iVar2 = *piVar5;\n        }\n      }\n      piVar4 = piVar4 + 2;\n    } while (piVar4 < (int *)param_1[1]);\n  }\n  return iVar3;\n}" (primitive_type "int") (function_declarator "FUN_000160c0(uint *param_1,code *param_2,undefined4 param_3)" (identifier "FUN_000160c0") (parameter_list "(uint *param_1,code *param_2,undefined4 param_3)" (( "(") (parameter_declaration "uint *param_1" (type_identifier "uint") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "code *param_2" (type_identifier "code") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int *piVar5;\n  \n  iVar3 = 0;\n  piVar4 = (int *)*param_1;\n  if (piVar4 < (int *)param_1[1]) {\n    do {\n      iVar2 = *piVar4;\n      piVar5 = piVar4;\n      if (iVar2 != 0) {\n        while( true ) {\n          cVar1 = (*param_2)(iVar2,param_3);\n          if (cVar1 == '\0') {\n            return iVar3;\n          }\n          piVar5 = (int *)piVar5[1];\n          iVar3 = iVar3 + 1;\n          if (piVar5 == (int *)0x0) break;\n          iVar2 = *piVar5;\n        }\n      }\n      piVar4 = piVar4 + 2;\n    } while (piVar4 < (int *)param_1[1]);\n  }\n  return iVar3;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar4 = (int *)*param_1;" (assignment_expression "piVar4 = (int *)*param_1" (identifier "piVar4") (= "=") (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if (piVar4 < (int *)param_1[1]) {\n    do {\n      iVar2 = *piVar4;\n      piVar5 = piVar4;\n      if (iVar2 != 0) {\n        while( true ) {\n          cVar1 = (*param_2)(iVar2,param_3);\n          if (cVar1 == '\0') {\n            return iVar3;\n          }\n          piVar5 = (int *)piVar5[1];\n          iVar3 = iVar3 + 1;\n          if (piVar5 == (int *)0x0) break;\n          iVar2 = *piVar5;\n        }\n      }\n      piVar4 = piVar4 + 2;\n    } while (piVar4 < (int *)param_1[1]);\n  }" (if "if") (parenthesized_expression "(piVar4 < (int *)param_1[1])" (( "(") (binary_expression "piVar4 < (int *)param_1[1]" (identifier "piVar4") (< "<") (cast_expression "(int *)param_1[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) () ")")) (compound_statement "{\n    do {\n      iVar2 = *piVar4;\n      piVar5 = piVar4;\n      if (iVar2 != 0) {\n        while( true ) {\n          cVar1 = (*param_2)(iVar2,param_3);\n          if (cVar1 == '\0') {\n            return iVar3;\n          }\n          piVar5 = (int *)piVar5[1];\n          iVar3 = iVar3 + 1;\n          if (piVar5 == (int *)0x0) break;\n          iVar2 = *piVar5;\n        }\n      }\n      piVar4 = piVar4 + 2;\n    } while (piVar4 < (int *)param_1[1]);\n  }" ({ "{") (do_statement "do {\n      iVar2 = *piVar4;\n      piVar5 = piVar4;\n      if (iVar2 != 0) {\n        while( true ) {\n          cVar1 = (*param_2)(iVar2,param_3);\n          if (cVar1 == '\0') {\n            return iVar3;\n          }\n          piVar5 = (int *)piVar5[1];\n          iVar3 = iVar3 + 1;\n          if (piVar5 == (int *)0x0) break;\n          iVar2 = *piVar5;\n        }\n      }\n      piVar4 = piVar4 + 2;\n    } while (piVar4 < (int *)param_1[1]);" (do "do") (compound_statement "{\n      iVar2 = *piVar4;\n      piVar5 = piVar4;\n      if (iVar2 != 0) {\n        while( true ) {\n          cVar1 = (*param_2)(iVar2,param_3);\n          if (cVar1 == '\0') {\n            return iVar3;\n          }\n          piVar5 = (int *)piVar5[1];\n          iVar3 = iVar3 + 1;\n          if (piVar5 == (int *)0x0) break;\n          iVar2 = *piVar5;\n        }\n      }\n      piVar4 = piVar4 + 2;\n    }" ({ "{") (expression_statement "iVar2 = *piVar4;" (assignment_expression "iVar2 = *piVar4" (identifier "iVar2") (= "=") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (; ";")) (expression_statement "piVar5 = piVar4;" (assignment_expression "piVar5 = piVar4" (identifier "piVar5") (= "=") (identifier "piVar4")) (; ";")) (if_statement "if (iVar2 != 0) {\n        while( true ) {\n          cVar1 = (*param_2)(iVar2,param_3);\n          if (cVar1 == '\0') {\n            return iVar3;\n          }\n          piVar5 = (int *)piVar5[1];\n          iVar3 = iVar3 + 1;\n          if (piVar5 == (int *)0x0) break;\n          iVar2 = *piVar5;\n        }\n      }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        while( true ) {\n          cVar1 = (*param_2)(iVar2,param_3);\n          if (cVar1 == '\0') {\n            return iVar3;\n          }\n          piVar5 = (int *)piVar5[1];\n          iVar3 = iVar3 + 1;\n          if (piVar5 == (int *)0x0) break;\n          iVar2 = *piVar5;\n        }\n      }" ({ "{") (while_statement "while( true ) {\n          cVar1 = (*param_2)(iVar2,param_3);\n          if (cVar1 == '\0') {\n            return iVar3;\n          }\n          piVar5 = (int *)piVar5[1];\n          iVar3 = iVar3 + 1;\n          if (piVar5 == (int *)0x0) break;\n          iVar2 = *piVar5;\n        }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n          cVar1 = (*param_2)(iVar2,param_3);\n          if (cVar1 == '\0') {\n            return iVar3;\n          }\n          piVar5 = (int *)piVar5[1];\n          iVar3 = iVar3 + 1;\n          if (piVar5 == (int *)0x0) break;\n          iVar2 = *piVar5;\n        }" ({ "{") (expression_statement "cVar1 = (*param_2)(iVar2,param_3);" (assignment_expression "cVar1 = (*param_2)(iVar2,param_3)" (identifier "cVar1") (= "=") (call_expression "(*param_2)(iVar2,param_3)" (parenthesized_expression "(*param_2)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) () ")")) (argument_list "(iVar2,param_3)" (( "(") (identifier "iVar2") (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (cVar1 == '\0') {\n            return iVar3;\n          }" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n            return iVar3;\n          }" ({ "{") (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}"))) (expression_statement "piVar5 = (int *)piVar5[1];" (assignment_expression "piVar5 = (int *)piVar5[1]" (identifier "piVar5") (= "=") (cast_expression "(int *)piVar5[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (piVar5 == (int *)0x0) break;" (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"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar2 = *piVar5;" (assignment_expression "iVar2 = *piVar5" (identifier "iVar2") (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "piVar4 = piVar4 + 2;" (assignment_expression "piVar4 = piVar4 + 2" (identifier "piVar4") (= "=") (binary_expression "piVar4 + 2" (identifier "piVar4") (+ "+") (number_literal "2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar4 < (int *)param_1[1])" (( "(") (binary_expression "piVar4 < (int *)param_1[1]" (identifier "piVar4") (< "<") (cast_expression "(int *)param_1[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) () ")")) (; ";")) (} "}"))) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

size_t function_1(type_1 *table,type_2 processor,void *processor_data)

{
  type_3 _Var1;
  void *var_2;
  size_t var_3;
  type_4 *var_1;
  type_4 *var_4;
  
  var_3 = 0;
  var_1 = table->bucket;
  if (var_1 < table->bucket_limit) {
    do {
      var_2 = var_1->data;
      var_4 = var_1;
      if (var_2 != (void *)0x0) {
        while( true ) {
          _Var1 = (*processor)(var_2,processor_data);
          if (!_Var1) {
            return var_3;
          }
          var_4 = var_4->next;
          var_3 = var_3 + 1;
          if (var_4 == (type_4 *)0x0) break;
          var_2 = var_4->data;
        }
      }
      var_1 = var_1 + 1;
    } while (var_1 < table->bucket_limit);
  }
  return var_3;
}


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

int MASKED(uint *param_1,code *param_2,undefined4 param_3)

{
  char cVar1;
  int iVar2;
  int iVar3;
  int *piVar4;
  int *piVar5;
  
  iVar3 = 0;
  piVar4 = (int *)*param_1;
  if (piVar4 < (int *)param_1[1]) {
    do {
      iVar2 = *piVar4;
      piVar5 = piVar4;
      if (iVar2 != 0) {
        while( true ) {
          cVar1 = (*param_2)(iVar2,param_3);
          if (cVar1 == '\0') {
            return iVar3;
          }
          piVar5 = (int *)piVar5[1];
          iVar3 = iVar3 + 1;
          if (piVar5 == (int *)0x0) break;
          iVar2 = *piVar5;
        }
      }
      piVar4 = piVar4 + 2;
    } while (piVar4 < (int *)param_1[1]);
  }
  return iVar3;
}

