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

{
  hash_entry *phVar1;
  hash_entry *phVar2;
  _Bool _Var3;
  size_t sVar4;
  hash_entry *phVar5;
  
  phVar5 = table->bucket;
  if (phVar5 < table->bucket_limit) {
    sVar4 = 0;
    do {
      phVar1 = phVar5;
      phVar2 = (hash_entry *)phVar5->data;
      while (phVar2 != (hash_entry *)0x0) {
        _Var3 = (*processor)(phVar1->data,processor_data);
        if (!_Var3) {
          return sVar4;
        }
        sVar4 = sVar4 + 1;
        phVar1 = phVar1->next;
        phVar2 = phVar1;
      }
      phVar5 = phVar5 + 1;
    } while (phVar5 < table->bucket_limit);
  }
  else {
    sVar4 = 0;
  }
  return sVar4;
}



long FUN_00108f92(undefined8 *param_1,code *param_2,undefined8 param_3)

{
  ulong *puVar1;
  ulong *puVar2;
  char cVar3;
  long lVar4;
  ulong *puVar5;
  
  puVar5 = (ulong *)*param_1;
  if (puVar5 < (ulong)param_1[1]) {
    lVar4 = 0;
    do {
      puVar1 = puVar5;
      puVar2 = (ulong *)*puVar5;
      while (puVar2 != (ulong *)0x0) {
        cVar3 = (*param_2)(*puVar1,param_3);
        if (cVar3 == '\0') {
          return lVar4;
        }
        lVar4 = lVar4 + 1;
        puVar1 = (ulong *)puVar1[1];
        puVar2 = puVar1;
      }
      puVar5 = puVar5 + 2;
    } while (puVar5 < (ulong *)param_1[1]);
  }
  else {
    lVar4 = 0;
  }
  return lVar4;
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x8
MOV R14,qword ptr [RDI]
CMP R14,qword ptr [RDI + 0x8]
JNC 0x00108fe8
MOV R13,RDX
MOV R12,RSI
MOV R15,RDI
MOV EBP,0x0
JMP 0x00108fc3
ADD R14,0x10
CMP qword ptr [R15 + 0x8],R14
JBE 0x00108fed
CMP qword ptr [R14],0x0
JZ 0x00108fb9
MOV RBX,R14
MOV RSI,R13
MOV RDI,qword ptr [RBX]
CALL R12
TEST AL,AL
JZ 0x00108fed
ADD RBP,0x1
MOV RBX,qword ptr [RBX + 0x8]
TEST RBX,RBX
JNZ 0x00108fcc
JMP 0x00108fb9
MOV EBP,0x0
MOV RAX,RBP
ADD RSP,0x8
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
(translation_unit "long FUN_00108f92(undefined8 *param_1,code *param_2,undefined8 param_3)\n\n{\n  ulong *puVar1;\n  ulong *puVar2;\n  char cVar3;\n  long lVar4;\n  ulong *puVar5;\n  \n  puVar5 = (ulong *)*param_1;\n  if (puVar5 < (ulong)param_1[1]) {\n    lVar4 = 0;\n    do {\n      puVar1 = puVar5;\n      puVar2 = (ulong *)*puVar5;\n      while (puVar2 != (ulong *)0x0) {\n        cVar3 = (*param_2)(*puVar1,param_3);\n        if (cVar3 == '\0') {\n          return lVar4;\n        }\n        lVar4 = lVar4 + 1;\n        puVar1 = (ulong *)puVar1[1];\n        puVar2 = puVar1;\n      }\n      puVar5 = puVar5 + 2;\n    } while (puVar5 < (ulong *)param_1[1]);\n  }\n  else {\n    lVar4 = 0;\n  }\n  return lVar4;\n}\n\n" (function_definition "long FUN_00108f92(undefined8 *param_1,code *param_2,undefined8 param_3)\n\n{\n  ulong *puVar1;\n  ulong *puVar2;\n  char cVar3;\n  long lVar4;\n  ulong *puVar5;\n  \n  puVar5 = (ulong *)*param_1;\n  if (puVar5 < (ulong)param_1[1]) {\n    lVar4 = 0;\n    do {\n      puVar1 = puVar5;\n      puVar2 = (ulong *)*puVar5;\n      while (puVar2 != (ulong *)0x0) {\n        cVar3 = (*param_2)(*puVar1,param_3);\n        if (cVar3 == '\0') {\n          return lVar4;\n        }\n        lVar4 = lVar4 + 1;\n        puVar1 = (ulong *)puVar1[1];\n        puVar2 = puVar1;\n      }\n      puVar5 = puVar5 + 2;\n    } while (puVar5 < (ulong *)param_1[1]);\n  }\n  else {\n    lVar4 = 0;\n  }\n  return lVar4;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_00108f92(undefined8 *param_1,code *param_2,undefined8 param_3)" identifier (parameter_list "(undefined8 *param_1,code *param_2,undefined8 param_3)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "code *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined8 param_3" type_identifier identifier) ))) (compound_statement "{\n  ulong *puVar1;\n  ulong *puVar2;\n  char cVar3;\n  long lVar4;\n  ulong *puVar5;\n  \n  puVar5 = (ulong *)*param_1;\n  if (puVar5 < (ulong)param_1[1]) {\n    lVar4 = 0;\n    do {\n      puVar1 = puVar5;\n      puVar2 = (ulong *)*puVar5;\n      while (puVar2 != (ulong *)0x0) {\n        cVar3 = (*param_2)(*puVar1,param_3);\n        if (cVar3 == '\0') {\n          return lVar4;\n        }\n        lVar4 = lVar4 + 1;\n        puVar1 = (ulong *)puVar1[1];\n        puVar2 = puVar1;\n      }\n      puVar5 = puVar5 + 2;\n    } while (puVar5 < (ulong *)param_1[1]);\n  }\n  else {\n    lVar4 = 0;\n  }\n  return lVar4;\n}" { (declaration "ulong *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "ulong *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (expression_statement "puVar5 = (ulong *)*param_1;" (assignment_expression "puVar5 = (ulong *)*param_1" identifier = (cast_expression "(ulong *)*param_1" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (puVar5 < (ulong)param_1[1]) {\n    lVar4 = 0;\n    do {\n      puVar1 = puVar5;\n      puVar2 = (ulong *)*puVar5;\n      while (puVar2 != (ulong *)0x0) {\n        cVar3 = (*param_2)(*puVar1,param_3);\n        if (cVar3 == '\0') {\n          return lVar4;\n        }\n        lVar4 = lVar4 + 1;\n        puVar1 = (ulong *)puVar1[1];\n        puVar2 = puVar1;\n      }\n      puVar5 = puVar5 + 2;\n    } while (puVar5 < (ulong *)param_1[1]);\n  }\n  else {\n    lVar4 = 0;\n  }" if (parenthesized_expression "(puVar5 < (ulong)param_1[1])" ( (binary_expression "puVar5 < (ulong)param_1[1]" identifier < (cast_expression "(ulong)param_1[1]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    lVar4 = 0;\n    do {\n      puVar1 = puVar5;\n      puVar2 = (ulong *)*puVar5;\n      while (puVar2 != (ulong *)0x0) {\n        cVar3 = (*param_2)(*puVar1,param_3);\n        if (cVar3 == '\0') {\n          return lVar4;\n        }\n        lVar4 = lVar4 + 1;\n        puVar1 = (ulong *)puVar1[1];\n        puVar2 = puVar1;\n      }\n      puVar5 = puVar5 + 2;\n    } while (puVar5 < (ulong *)param_1[1]);\n  }" { (expression_statement "lVar4 = 0;" (assignment_expression "lVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n      puVar1 = puVar5;\n      puVar2 = (ulong *)*puVar5;\n      while (puVar2 != (ulong *)0x0) {\n        cVar3 = (*param_2)(*puVar1,param_3);\n        if (cVar3 == '\0') {\n          return lVar4;\n        }\n        lVar4 = lVar4 + 1;\n        puVar1 = (ulong *)puVar1[1];\n        puVar2 = puVar1;\n      }\n      puVar5 = puVar5 + 2;\n    } while (puVar5 < (ulong *)param_1[1]);" do (compound_statement "{\n      puVar1 = puVar5;\n      puVar2 = (ulong *)*puVar5;\n      while (puVar2 != (ulong *)0x0) {\n        cVar3 = (*param_2)(*puVar1,param_3);\n        if (cVar3 == '\0') {\n          return lVar4;\n        }\n        lVar4 = lVar4 + 1;\n        puVar1 = (ulong *)puVar1[1];\n        puVar2 = puVar1;\n      }\n      puVar5 = puVar5 + 2;\n    }" { (expression_statement "puVar1 = puVar5;" (assignment_expression "puVar1 = puVar5" identifier = identifier) ;) (expression_statement "puVar2 = (ulong *)*puVar5;" (assignment_expression "puVar2 = (ulong *)*puVar5" identifier = (cast_expression "(ulong *)*puVar5" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier))) ;) (while_statement "while (puVar2 != (ulong *)0x0) {\n        cVar3 = (*param_2)(*puVar1,param_3);\n        if (cVar3 == '\0') {\n          return lVar4;\n        }\n        lVar4 = lVar4 + 1;\n        puVar1 = (ulong *)puVar1[1];\n        puVar2 = puVar1;\n      }" while (parenthesized_expression "(puVar2 != (ulong *)0x0)" ( (binary_expression "puVar2 != (ulong *)0x0" identifier != (cast_expression "(ulong *)0x0" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        cVar3 = (*param_2)(*puVar1,param_3);\n        if (cVar3 == '\0') {\n          return lVar4;\n        }\n        lVar4 = lVar4 + 1;\n        puVar1 = (ulong *)puVar1[1];\n        puVar2 = puVar1;\n      }" { (expression_statement "cVar3 = (*param_2)(*puVar1,param_3);" (assignment_expression "cVar3 = (*param_2)(*puVar1,param_3)" identifier = (call_expression "(*param_2)(*puVar1,param_3)" (parenthesized_expression "(*param_2)" ( (pointer_expression "*param_2" * identifier) )) (argument_list "(*puVar1,param_3)" ( (pointer_expression "*puVar1" * identifier) , identifier )))) ;) (if_statement "if (cVar3 == '\0') {\n          return lVar4;\n        }" if (parenthesized_expression "(cVar3 == '\0')" ( (binary_expression "cVar3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          return lVar4;\n        }" { (return_statement "return lVar4;" return identifier ;) })) (expression_statement "lVar4 = lVar4 + 1;" (assignment_expression "lVar4 = lVar4 + 1" identifier = (binary_expression "lVar4 + 1" identifier + number_literal)) ;) (expression_statement "puVar1 = (ulong *)puVar1[1];" (assignment_expression "puVar1 = (ulong *)puVar1[1]" identifier = (cast_expression "(ulong *)puVar1[1]" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[1]" identifier [ number_literal ]))) ;) (expression_statement "puVar2 = puVar1;" (assignment_expression "puVar2 = puVar1" identifier = identifier) ;) })) (expression_statement "puVar5 = puVar5 + 2;" (assignment_expression "puVar5 = puVar5 + 2" identifier = (binary_expression "puVar5 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar5 < (ulong *)param_1[1])" ( (binary_expression "puVar5 < (ulong *)param_1[1]" identifier < (cast_expression "(ulong *)param_1[1]" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) ;) }) (else_clause "else {\n    lVar4 = 0;\n  }" else (compound_statement "{\n    lVar4 = 0;\n  }" { (expression_statement "lVar4 = 0;" (assignment_expression "lVar4 = 0" identifier = number_literal) ;) }))) (return_statement "return lVar4;" return identifier ;) })))
(translation_unit "size_t hash_do_for_each(Hash_table *table,Hash_processor processor,void *processor_data)\n\n{\n  hash_entry *phVar1;\n  hash_entry *phVar2;\n  _Bool _Var3;\n  size_t sVar4;\n  hash_entry *phVar5;\n  \n  phVar5 = table->bucket;\n  if (phVar5 < table->bucket_limit) {\n    sVar4 = 0;\n    do {\n      phVar1 = phVar5;\n      phVar2 = (hash_entry *)phVar5->data;\n      while (phVar2 != (hash_entry *)0x0) {\n        _Var3 = (*processor)(phVar1->data,processor_data);\n        if (!_Var3) {\n          return sVar4;\n        }\n        sVar4 = sVar4 + 1;\n        phVar1 = phVar1->next;\n        phVar2 = phVar1;\n      }\n      phVar5 = phVar5 + 1;\n    } while (phVar5 < table->bucket_limit);\n  }\n  else {\n    sVar4 = 0;\n  }\n  return sVar4;\n}\n\n" (function_definition "size_t hash_do_for_each(Hash_table *table,Hash_processor processor,void *processor_data)\n\n{\n  hash_entry *phVar1;\n  hash_entry *phVar2;\n  _Bool _Var3;\n  size_t sVar4;\n  hash_entry *phVar5;\n  \n  phVar5 = table->bucket;\n  if (phVar5 < table->bucket_limit) {\n    sVar4 = 0;\n    do {\n      phVar1 = phVar5;\n      phVar2 = (hash_entry *)phVar5->data;\n      while (phVar2 != (hash_entry *)0x0) {\n        _Var3 = (*processor)(phVar1->data,processor_data);\n        if (!_Var3) {\n          return sVar4;\n        }\n        sVar4 = sVar4 + 1;\n        phVar1 = phVar1->next;\n        phVar2 = phVar1;\n      }\n      phVar5 = phVar5 + 1;\n    } while (phVar5 < table->bucket_limit);\n  }\n  else {\n    sVar4 = 0;\n  }\n  return sVar4;\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  hash_entry *phVar1;\n  hash_entry *phVar2;\n  _Bool _Var3;\n  size_t sVar4;\n  hash_entry *phVar5;\n  \n  phVar5 = table->bucket;\n  if (phVar5 < table->bucket_limit) {\n    sVar4 = 0;\n    do {\n      phVar1 = phVar5;\n      phVar2 = (hash_entry *)phVar5->data;\n      while (phVar2 != (hash_entry *)0x0) {\n        _Var3 = (*processor)(phVar1->data,processor_data);\n        if (!_Var3) {\n          return sVar4;\n        }\n        sVar4 = sVar4 + 1;\n        phVar1 = phVar1->next;\n        phVar2 = phVar1;\n      }\n      phVar5 = phVar5 + 1;\n    } while (phVar5 < table->bucket_limit);\n  }\n  else {\n    sVar4 = 0;\n  }\n  return sVar4;\n}" { (declaration "hash_entry *phVar1;" type_identifier (pointer_declarator "*phVar1" * identifier) ;) (declaration "hash_entry *phVar2;" type_identifier (pointer_declarator "*phVar2" * identifier) ;) (declaration "_Bool _Var3;" type_identifier identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "hash_entry *phVar5;" type_identifier (pointer_declarator "*phVar5" * identifier) ;) (expression_statement "phVar5 = table->bucket;" (assignment_expression "phVar5 = table->bucket" identifier = (field_expression "table->bucket" identifier -> field_identifier)) ;) (if_statement "if (phVar5 < table->bucket_limit) {\n    sVar4 = 0;\n    do {\n      phVar1 = phVar5;\n      phVar2 = (hash_entry *)phVar5->data;\n      while (phVar2 != (hash_entry *)0x0) {\n        _Var3 = (*processor)(phVar1->data,processor_data);\n        if (!_Var3) {\n          return sVar4;\n        }\n        sVar4 = sVar4 + 1;\n        phVar1 = phVar1->next;\n        phVar2 = phVar1;\n      }\n      phVar5 = phVar5 + 1;\n    } while (phVar5 < table->bucket_limit);\n  }\n  else {\n    sVar4 = 0;\n  }" if (parenthesized_expression "(phVar5 < table->bucket_limit)" ( (binary_expression "phVar5 < table->bucket_limit" identifier < (field_expression "table->bucket_limit" identifier -> field_identifier)) )) (compound_statement "{\n    sVar4 = 0;\n    do {\n      phVar1 = phVar5;\n      phVar2 = (hash_entry *)phVar5->data;\n      while (phVar2 != (hash_entry *)0x0) {\n        _Var3 = (*processor)(phVar1->data,processor_data);\n        if (!_Var3) {\n          return sVar4;\n        }\n        sVar4 = sVar4 + 1;\n        phVar1 = phVar1->next;\n        phVar2 = phVar1;\n      }\n      phVar5 = phVar5 + 1;\n    } while (phVar5 < table->bucket_limit);\n  }" { (expression_statement "sVar4 = 0;" (assignment_expression "sVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n      phVar1 = phVar5;\n      phVar2 = (hash_entry *)phVar5->data;\n      while (phVar2 != (hash_entry *)0x0) {\n        _Var3 = (*processor)(phVar1->data,processor_data);\n        if (!_Var3) {\n          return sVar4;\n        }\n        sVar4 = sVar4 + 1;\n        phVar1 = phVar1->next;\n        phVar2 = phVar1;\n      }\n      phVar5 = phVar5 + 1;\n    } while (phVar5 < table->bucket_limit);" do (compound_statement "{\n      phVar1 = phVar5;\n      phVar2 = (hash_entry *)phVar5->data;\n      while (phVar2 != (hash_entry *)0x0) {\n        _Var3 = (*processor)(phVar1->data,processor_data);\n        if (!_Var3) {\n          return sVar4;\n        }\n        sVar4 = sVar4 + 1;\n        phVar1 = phVar1->next;\n        phVar2 = phVar1;\n      }\n      phVar5 = phVar5 + 1;\n    }" { (expression_statement "phVar1 = phVar5;" (assignment_expression "phVar1 = phVar5" identifier = identifier) ;) (expression_statement "phVar2 = (hash_entry *)phVar5->data;" (assignment_expression "phVar2 = (hash_entry *)phVar5->data" identifier = (cast_expression "(hash_entry *)phVar5->data" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "phVar5->data" identifier -> field_identifier))) ;) (while_statement "while (phVar2 != (hash_entry *)0x0) {\n        _Var3 = (*processor)(phVar1->data,processor_data);\n        if (!_Var3) {\n          return sVar4;\n        }\n        sVar4 = sVar4 + 1;\n        phVar1 = phVar1->next;\n        phVar2 = phVar1;\n      }" while (parenthesized_expression "(phVar2 != (hash_entry *)0x0)" ( (binary_expression "phVar2 != (hash_entry *)0x0" identifier != (cast_expression "(hash_entry *)0x0" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        _Var3 = (*processor)(phVar1->data,processor_data);\n        if (!_Var3) {\n          return sVar4;\n        }\n        sVar4 = sVar4 + 1;\n        phVar1 = phVar1->next;\n        phVar2 = phVar1;\n      }" { (expression_statement "_Var3 = (*processor)(phVar1->data,processor_data);" (assignment_expression "_Var3 = (*processor)(phVar1->data,processor_data)" identifier = (call_expression "(*processor)(phVar1->data,processor_data)" (parenthesized_expression "(*processor)" ( (pointer_expression "*processor" * identifier) )) (argument_list "(phVar1->data,processor_data)" ( (field_expression "phVar1->data" identifier -> field_identifier) , identifier )))) ;) (if_statement "if (!_Var3) {\n          return sVar4;\n        }" if (parenthesized_expression "(!_Var3)" ( (unary_expression "!_Var3" ! identifier) )) (compound_statement "{\n          return sVar4;\n        }" { (return_statement "return sVar4;" return identifier ;) })) (expression_statement "sVar4 = sVar4 + 1;" (assignment_expression "sVar4 = sVar4 + 1" identifier = (binary_expression "sVar4 + 1" identifier + number_literal)) ;) (expression_statement "phVar1 = phVar1->next;" (assignment_expression "phVar1 = phVar1->next" identifier = (field_expression "phVar1->next" identifier -> field_identifier)) ;) (expression_statement "phVar2 = phVar1;" (assignment_expression "phVar2 = phVar1" identifier = identifier) ;) })) (expression_statement "phVar5 = phVar5 + 1;" (assignment_expression "phVar5 = phVar5 + 1" identifier = (binary_expression "phVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(phVar5 < table->bucket_limit)" ( (binary_expression "phVar5 < table->bucket_limit" identifier < (field_expression "table->bucket_limit" identifier -> field_identifier)) )) ;) }) (else_clause "else {\n    sVar4 = 0;\n  }" else (compound_statement "{\n    sVar4 = 0;\n  }" { (expression_statement "sVar4 = 0;" (assignment_expression "sVar4 = 0" identifier = number_literal) ;) }))) (return_statement "return sVar4;" return identifier ;) })))
(translation_unit "long FUN_00108f92(undefined8 *param_1,code *param_2,undefined8 param_3)\n\n{\n  ulong *puVar1;\n  ulong *puVar2;\n  char cVar3;\n  long lVar4;\n  ulong *puVar5;\n  \n  puVar5 = (ulong *)*param_1;\n  if (puVar5 < (ulong)param_1[1]) {\n    lVar4 = 0;\n    do {\n      puVar1 = puVar5;\n      puVar2 = (ulong *)*puVar5;\n      while (puVar2 != (ulong *)0x0) {\n        cVar3 = (*param_2)(*puVar1,param_3);\n        if (cVar3 == '\0') {\n          return lVar4;\n        }\n        lVar4 = lVar4 + 1;\n        puVar1 = (ulong *)puVar1[1];\n        puVar2 = puVar1;\n      }\n      puVar5 = puVar5 + 2;\n    } while (puVar5 < (ulong *)param_1[1]);\n  }\n  else {\n    lVar4 = 0;\n  }\n  return lVar4;\n}\n\n" (function_definition "long FUN_00108f92(undefined8 *param_1,code *param_2,undefined8 param_3)\n\n{\n  ulong *puVar1;\n  ulong *puVar2;\n  char cVar3;\n  long lVar4;\n  ulong *puVar5;\n  \n  puVar5 = (ulong *)*param_1;\n  if (puVar5 < (ulong)param_1[1]) {\n    lVar4 = 0;\n    do {\n      puVar1 = puVar5;\n      puVar2 = (ulong *)*puVar5;\n      while (puVar2 != (ulong *)0x0) {\n        cVar3 = (*param_2)(*puVar1,param_3);\n        if (cVar3 == '\0') {\n          return lVar4;\n        }\n        lVar4 = lVar4 + 1;\n        puVar1 = (ulong *)puVar1[1];\n        puVar2 = puVar1;\n      }\n      puVar5 = puVar5 + 2;\n    } while (puVar5 < (ulong *)param_1[1]);\n  }\n  else {\n    lVar4 = 0;\n  }\n  return lVar4;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_00108f92(undefined8 *param_1,code *param_2,undefined8 param_3)" identifier (parameter_list "(undefined8 *param_1,code *param_2,undefined8 param_3)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "code *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined8 param_3" type_identifier identifier) ))) (compound_statement "{\n  ulong *puVar1;\n  ulong *puVar2;\n  char cVar3;\n  long lVar4;\n  ulong *puVar5;\n  \n  puVar5 = (ulong *)*param_1;\n  if (puVar5 < (ulong)param_1[1]) {\n    lVar4 = 0;\n    do {\n      puVar1 = puVar5;\n      puVar2 = (ulong *)*puVar5;\n      while (puVar2 != (ulong *)0x0) {\n        cVar3 = (*param_2)(*puVar1,param_3);\n        if (cVar3 == '\0') {\n          return lVar4;\n        }\n        lVar4 = lVar4 + 1;\n        puVar1 = (ulong *)puVar1[1];\n        puVar2 = puVar1;\n      }\n      puVar5 = puVar5 + 2;\n    } while (puVar5 < (ulong *)param_1[1]);\n  }\n  else {\n    lVar4 = 0;\n  }\n  return lVar4;\n}" { (declaration "ulong *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "ulong *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (expression_statement "puVar5 = (ulong *)*param_1;" (assignment_expression "puVar5 = (ulong *)*param_1" identifier = (cast_expression "(ulong *)*param_1" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (puVar5 < (ulong)param_1[1]) {\n    lVar4 = 0;\n    do {\n      puVar1 = puVar5;\n      puVar2 = (ulong *)*puVar5;\n      while (puVar2 != (ulong *)0x0) {\n        cVar3 = (*param_2)(*puVar1,param_3);\n        if (cVar3 == '\0') {\n          return lVar4;\n        }\n        lVar4 = lVar4 + 1;\n        puVar1 = (ulong *)puVar1[1];\n        puVar2 = puVar1;\n      }\n      puVar5 = puVar5 + 2;\n    } while (puVar5 < (ulong *)param_1[1]);\n  }\n  else {\n    lVar4 = 0;\n  }" if (parenthesized_expression "(puVar5 < (ulong)param_1[1])" ( (binary_expression "puVar5 < (ulong)param_1[1]" identifier < (cast_expression "(ulong)param_1[1]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    lVar4 = 0;\n    do {\n      puVar1 = puVar5;\n      puVar2 = (ulong *)*puVar5;\n      while (puVar2 != (ulong *)0x0) {\n        cVar3 = (*param_2)(*puVar1,param_3);\n        if (cVar3 == '\0') {\n          return lVar4;\n        }\n        lVar4 = lVar4 + 1;\n        puVar1 = (ulong *)puVar1[1];\n        puVar2 = puVar1;\n      }\n      puVar5 = puVar5 + 2;\n    } while (puVar5 < (ulong *)param_1[1]);\n  }" { (expression_statement "lVar4 = 0;" (assignment_expression "lVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n      puVar1 = puVar5;\n      puVar2 = (ulong *)*puVar5;\n      while (puVar2 != (ulong *)0x0) {\n        cVar3 = (*param_2)(*puVar1,param_3);\n        if (cVar3 == '\0') {\n          return lVar4;\n        }\n        lVar4 = lVar4 + 1;\n        puVar1 = (ulong *)puVar1[1];\n        puVar2 = puVar1;\n      }\n      puVar5 = puVar5 + 2;\n    } while (puVar5 < (ulong *)param_1[1]);" do (compound_statement "{\n      puVar1 = puVar5;\n      puVar2 = (ulong *)*puVar5;\n      while (puVar2 != (ulong *)0x0) {\n        cVar3 = (*param_2)(*puVar1,param_3);\n        if (cVar3 == '\0') {\n          return lVar4;\n        }\n        lVar4 = lVar4 + 1;\n        puVar1 = (ulong *)puVar1[1];\n        puVar2 = puVar1;\n      }\n      puVar5 = puVar5 + 2;\n    }" { (expression_statement "puVar1 = puVar5;" (assignment_expression "puVar1 = puVar5" identifier = identifier) ;) (expression_statement "puVar2 = (ulong *)*puVar5;" (assignment_expression "puVar2 = (ulong *)*puVar5" identifier = (cast_expression "(ulong *)*puVar5" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier))) ;) (while_statement "while (puVar2 != (ulong *)0x0) {\n        cVar3 = (*param_2)(*puVar1,param_3);\n        if (cVar3 == '\0') {\n          return lVar4;\n        }\n        lVar4 = lVar4 + 1;\n        puVar1 = (ulong *)puVar1[1];\n        puVar2 = puVar1;\n      }" while (parenthesized_expression "(puVar2 != (ulong *)0x0)" ( (binary_expression "puVar2 != (ulong *)0x0" identifier != (cast_expression "(ulong *)0x0" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        cVar3 = (*param_2)(*puVar1,param_3);\n        if (cVar3 == '\0') {\n          return lVar4;\n        }\n        lVar4 = lVar4 + 1;\n        puVar1 = (ulong *)puVar1[1];\n        puVar2 = puVar1;\n      }" { (expression_statement "cVar3 = (*param_2)(*puVar1,param_3);" (assignment_expression "cVar3 = (*param_2)(*puVar1,param_3)" identifier = (call_expression "(*param_2)(*puVar1,param_3)" (parenthesized_expression "(*param_2)" ( (pointer_expression "*param_2" * identifier) )) (argument_list "(*puVar1,param_3)" ( (pointer_expression "*puVar1" * identifier) , identifier )))) ;) (if_statement "if (cVar3 == '\0') {\n          return lVar4;\n        }" if (parenthesized_expression "(cVar3 == '\0')" ( (binary_expression "cVar3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          return lVar4;\n        }" { (return_statement "return lVar4;" return identifier ;) })) (expression_statement "lVar4 = lVar4 + 1;" (assignment_expression "lVar4 = lVar4 + 1" identifier = (binary_expression "lVar4 + 1" identifier + number_literal)) ;) (expression_statement "puVar1 = (ulong *)puVar1[1];" (assignment_expression "puVar1 = (ulong *)puVar1[1]" identifier = (cast_expression "(ulong *)puVar1[1]" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[1]" identifier [ number_literal ]))) ;) (expression_statement "puVar2 = puVar1;" (assignment_expression "puVar2 = puVar1" identifier = identifier) ;) })) (expression_statement "puVar5 = puVar5 + 2;" (assignment_expression "puVar5 = puVar5 + 2" identifier = (binary_expression "puVar5 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar5 < (ulong *)param_1[1])" ( (binary_expression "puVar5 < (ulong *)param_1[1]" identifier < (cast_expression "(ulong *)param_1[1]" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) ;) }) (else_clause "else {\n    lVar4 = 0;\n  }" else (compound_statement "{\n    lVar4 = 0;\n  }" { (expression_statement "lVar4 = 0;" (assignment_expression "lVar4 = 0" identifier = number_literal) ;) }))) (return_statement "return lVar4;" return identifier ;) })))
(translation_unit (function_definition (sized_type_specifier long) (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 (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (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) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (pointer_expression * 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 = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = 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 ]))) )) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "long FUN_00108f92(undefined8 *param_1,code *param_2,undefined8 param_3)\n\n{\n  ulong *puVar1;\n  ulong *puVar2;\n  char cVar3;\n  long lVar4;\n  ulong *puVar5;\n  \n  puVar5 = (ulong *)*param_1;\n  if (puVar5 < (ulong)param_1[1]) {\n    lVar4 = 0;\n    do {\n      puVar1 = puVar5;\n      puVar2 = (ulong *)*puVar5;\n      while (puVar2 != (ulong *)0x0) {\n        cVar3 = (*param_2)(*puVar1,param_3);\n        if (cVar3 == '\0') {\n          return lVar4;\n        }\n        lVar4 = lVar4 + 1;\n        puVar1 = (ulong *)puVar1[1];\n        puVar2 = puVar1;\n      }\n      puVar5 = puVar5 + 2;\n    } while (puVar5 < (ulong *)param_1[1]);\n  }\n  else {\n    lVar4 = 0;\n  }\n  return lVar4;\n}" (sized_type_specifier "long" (long "long")) (function_declarator "FUN_00108f92(undefined8 *param_1,code *param_2,undefined8 param_3)" (identifier "FUN_00108f92") (parameter_list "(undefined8 *param_1,code *param_2,undefined8 param_3)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "code *param_2" (type_identifier "code") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) () ")"))) (compound_statement "{\n  ulong *puVar1;\n  ulong *puVar2;\n  char cVar3;\n  long lVar4;\n  ulong *puVar5;\n  \n  puVar5 = (ulong *)*param_1;\n  if (puVar5 < (ulong)param_1[1]) {\n    lVar4 = 0;\n    do {\n      puVar1 = puVar5;\n      puVar2 = (ulong *)*puVar5;\n      while (puVar2 != (ulong *)0x0) {\n        cVar3 = (*param_2)(*puVar1,param_3);\n        if (cVar3 == '\0') {\n          return lVar4;\n        }\n        lVar4 = lVar4 + 1;\n        puVar1 = (ulong *)puVar1[1];\n        puVar2 = puVar1;\n      }\n      puVar5 = puVar5 + 2;\n    } while (puVar5 < (ulong *)param_1[1]);\n  }\n  else {\n    lVar4 = 0;\n  }\n  return lVar4;\n}" ({ "{") (declaration "ulong *puVar1;" (type_identifier "ulong") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "ulong *puVar2;" (type_identifier "ulong") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "char cVar3;" (primitive_type "char") (identifier "cVar3") (; ";")) (declaration "long lVar4;" (sized_type_specifier "long" (long "long")) (identifier "lVar4") (; ";")) (declaration "ulong *puVar5;" (type_identifier "ulong") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (expression_statement "puVar5 = (ulong *)*param_1;" (assignment_expression "puVar5 = (ulong *)*param_1" (identifier "puVar5") (= "=") (cast_expression "(ulong *)*param_1" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if (puVar5 < (ulong)param_1[1]) {\n    lVar4 = 0;\n    do {\n      puVar1 = puVar5;\n      puVar2 = (ulong *)*puVar5;\n      while (puVar2 != (ulong *)0x0) {\n        cVar3 = (*param_2)(*puVar1,param_3);\n        if (cVar3 == '\0') {\n          return lVar4;\n        }\n        lVar4 = lVar4 + 1;\n        puVar1 = (ulong *)puVar1[1];\n        puVar2 = puVar1;\n      }\n      puVar5 = puVar5 + 2;\n    } while (puVar5 < (ulong *)param_1[1]);\n  }\n  else {\n    lVar4 = 0;\n  }" (if "if") (parenthesized_expression "(puVar5 < (ulong)param_1[1])" (( "(") (binary_expression "puVar5 < (ulong)param_1[1]" (identifier "puVar5") (< "<") (cast_expression "(ulong)param_1[1]" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) () ")")) (compound_statement "{\n    lVar4 = 0;\n    do {\n      puVar1 = puVar5;\n      puVar2 = (ulong *)*puVar5;\n      while (puVar2 != (ulong *)0x0) {\n        cVar3 = (*param_2)(*puVar1,param_3);\n        if (cVar3 == '\0') {\n          return lVar4;\n        }\n        lVar4 = lVar4 + 1;\n        puVar1 = (ulong *)puVar1[1];\n        puVar2 = puVar1;\n      }\n      puVar5 = puVar5 + 2;\n    } while (puVar5 < (ulong *)param_1[1]);\n  }" ({ "{") (expression_statement "lVar4 = 0;" (assignment_expression "lVar4 = 0" (identifier "lVar4") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      puVar1 = puVar5;\n      puVar2 = (ulong *)*puVar5;\n      while (puVar2 != (ulong *)0x0) {\n        cVar3 = (*param_2)(*puVar1,param_3);\n        if (cVar3 == '\0') {\n          return lVar4;\n        }\n        lVar4 = lVar4 + 1;\n        puVar1 = (ulong *)puVar1[1];\n        puVar2 = puVar1;\n      }\n      puVar5 = puVar5 + 2;\n    } while (puVar5 < (ulong *)param_1[1]);" (do "do") (compound_statement "{\n      puVar1 = puVar5;\n      puVar2 = (ulong *)*puVar5;\n      while (puVar2 != (ulong *)0x0) {\n        cVar3 = (*param_2)(*puVar1,param_3);\n        if (cVar3 == '\0') {\n          return lVar4;\n        }\n        lVar4 = lVar4 + 1;\n        puVar1 = (ulong *)puVar1[1];\n        puVar2 = puVar1;\n      }\n      puVar5 = puVar5 + 2;\n    }" ({ "{") (expression_statement "puVar1 = puVar5;" (assignment_expression "puVar1 = puVar5" (identifier "puVar1") (= "=") (identifier "puVar5")) (; ";")) (expression_statement "puVar2 = (ulong *)*puVar5;" (assignment_expression "puVar2 = (ulong *)*puVar5" (identifier "puVar2") (= "=") (cast_expression "(ulong *)*puVar5" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar5" (* "*") (identifier "puVar5")))) (; ";")) (while_statement "while (puVar2 != (ulong *)0x0) {\n        cVar3 = (*param_2)(*puVar1,param_3);\n        if (cVar3 == '\0') {\n          return lVar4;\n        }\n        lVar4 = lVar4 + 1;\n        puVar1 = (ulong *)puVar1[1];\n        puVar2 = puVar1;\n      }" (while "while") (parenthesized_expression "(puVar2 != (ulong *)0x0)" (( "(") (binary_expression "puVar2 != (ulong *)0x0" (identifier "puVar2") (!= "!=") (cast_expression "(ulong *)0x0" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        cVar3 = (*param_2)(*puVar1,param_3);\n        if (cVar3 == '\0') {\n          return lVar4;\n        }\n        lVar4 = lVar4 + 1;\n        puVar1 = (ulong *)puVar1[1];\n        puVar2 = puVar1;\n      }" ({ "{") (expression_statement "cVar3 = (*param_2)(*puVar1,param_3);" (assignment_expression "cVar3 = (*param_2)(*puVar1,param_3)" (identifier "cVar3") (= "=") (call_expression "(*param_2)(*puVar1,param_3)" (parenthesized_expression "(*param_2)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) () ")")) (argument_list "(*puVar1,param_3)" (( "(") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (cVar3 == '\0') {\n          return lVar4;\n        }" (if "if") (parenthesized_expression "(cVar3 == '\0')" (( "(") (binary_expression "cVar3 == '\0'" (identifier "cVar3") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          return lVar4;\n        }" ({ "{") (return_statement "return lVar4;" (return "return") (identifier "lVar4") (; ";")) (} "}"))) (expression_statement "lVar4 = lVar4 + 1;" (assignment_expression "lVar4 = lVar4 + 1" (identifier "lVar4") (= "=") (binary_expression "lVar4 + 1" (identifier "lVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar1 = (ulong *)puVar1[1];" (assignment_expression "puVar1 = (ulong *)puVar1[1]" (identifier "puVar1") (= "=") (cast_expression "(ulong *)puVar1[1]" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "puVar2 = puVar1;" (assignment_expression "puVar2 = puVar1" (identifier "puVar2") (= "=") (identifier "puVar1")) (; ";")) (} "}"))) (expression_statement "puVar5 = puVar5 + 2;" (assignment_expression "puVar5 = puVar5 + 2" (identifier "puVar5") (= "=") (binary_expression "puVar5 + 2" (identifier "puVar5") (+ "+") (number_literal "2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar5 < (ulong *)param_1[1])" (( "(") (binary_expression "puVar5 < (ulong *)param_1[1]" (identifier "puVar5") (< "<") (cast_expression "(ulong *)param_1[1]" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) () ")")) (; ";")) (} "}")) (else_clause "else {\n    lVar4 = 0;\n  }" (else "else") (compound_statement "{\n    lVar4 = 0;\n  }" ({ "{") (expression_statement "lVar4 = 0;" (assignment_expression "lVar4 = 0" (identifier "lVar4") (= "=") (number_literal "0")) (; ";")) (} "}")))) (return_statement "return lVar4;" (return "return") (identifier "lVar4") (; ";")) (} "}")))

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

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


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

long MASKED(undefined8 *param_1,code *param_2,undefined8 param_3)

{
  ulong *puVar1;
  ulong *puVar2;
  char cVar3;
  long lVar4;
  ulong *puVar5;
  
  puVar5 = (ulong *)*param_1;
  if (puVar5 < (ulong)param_1[1]) {
    lVar4 = 0;
    do {
      puVar1 = puVar5;
      puVar2 = (ulong *)*puVar5;
      while (puVar2 != (ulong *)0x0) {
        cVar3 = (*param_2)(*puVar1,param_3);
        if (cVar3 == '\0') {
          return lVar4;
        }
        lVar4 = lVar4 + 1;
        puVar1 = (ulong *)puVar1[1];
        puVar2 = puVar1;
      }
      puVar5 = puVar5 + 2;
    } while (puVar5 < (ulong *)param_1[1]);
  }
  else {
    lVar4 = 0;
  }
  return lVar4;
}

