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

{
  undefined3 extraout_var;
  hash_entry *phVar1;
  _Bool _Var2;
  void *pvVar3;
  hash_entry *phVar4;
  size_t sVar5;
  hash_entry *phVar6;
  
  phVar1 = table->bucket_limit;
  phVar6 = table->bucket;
  if (phVar6 < phVar1) {
    sVar5 = 0;
    do {
      pvVar3 = phVar6->data;
      phVar4 = phVar6;
      if (pvVar3 != (void *)0x0) {
        while( true ) {
          _Var2 = (*processor)(pvVar3,processor_data);
          if (CONCAT31(extraout_var,_Var2) == 0) {
            return sVar5;
          }
          phVar4 = phVar4->next;
          sVar5 = sVar5 + 1;
          if (phVar4 == (hash_entry *)0x0) break;
          pvVar3 = phVar4->data;
        }
        phVar1 = table->bucket_limit;
      }
      phVar6 = phVar6 + 1;
    } while (phVar6 < phVar1);
  }
  else {
    sVar5 = 0;
  }
  return sVar5;
}



int FUN_00020b28(undefined4 *param_1,code *param_2,undefined4 param_3)

{
  int *piVar1;
  int iVar2;
  int *piVar3;
  int iVar4;
  int *piVar5;
  
  piVar1 = (int *)param_1[1];
  piVar5 = (int *)*param_1;
  if (piVar5 < piVar1) {
    iVar4 = 0;
    do {
      iVar2 = *piVar5;
      piVar3 = piVar5;
      if (iVar2 != 0) {
        while( true ) {
          iVar2 = (*param_2)(iVar2,param_3);
          if (iVar2 == 0) {
            return iVar4;
          }
          piVar3 = (int *)piVar3[1];
          iVar4 = iVar4 + 1;
          if (piVar3 == (int *)0x0) break;
          iVar2 = *piVar3;
        }
        piVar1 = (int *)param_1[1];
      }
      piVar5 = piVar5 + 2;
    } while (piVar5 < piVar1);
  }
  else {
    iVar4 = 0;
  }
  return iVar4;
}


addiu sp,sp,-0x38
lw v0,0x4(a0)
sw s4,0x2c(sp)
sw ra,0x34(sp)
sw s5,0x30(sp)
sw s3,0x28(sp)
sw s2,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
lw s4,0x0(a0)
sltu v1,s4,v0
beq v1,zero,0x00020bd8
_or s3,a2,zero
or s1,zero,zero
or s2,a1,zero
or s5,a0,zero
lw a0,0x0(s4)
bne a0,zero,0x00020bb0
_or s0,s4,zero
addiu s4,s4,0x8
sltu v1,s4,v0
bne v1,zero,0x00020b68
_nop
lw ra,0x34(sp)
or v0,s1,zero
lw s5,0x30(sp)
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x38
lw a0,0x0(s0)
or t9,s2,zero
jalr t9
_or a1,s3,zero
beq v0,zero,0x00020b84
_nop
lw s0,0x4(s0)
bne s0,zero,0x00020bac
_addiu s1,s1,0x1
b 0x00020b74
_lw v0,0x4(s5)
b 0x00020b84
_or s1,zero,zero
(translation_unit "int FUN_00020b28(undefined4 *param_1,code *param_2,undefined4 param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar1 = (int *)param_1[1];\n  piVar5 = (int *)*param_1;\n  if (piVar5 < piVar1) {\n    iVar4 = 0;\n    do {\n      iVar2 = *piVar5;\n      piVar3 = piVar5;\n      if (iVar2 != 0) {\n        while( true ) {\n          iVar2 = (*param_2)(iVar2,param_3);\n          if (iVar2 == 0) {\n            return iVar4;\n          }\n          piVar3 = (int *)piVar3[1];\n          iVar4 = iVar4 + 1;\n          if (piVar3 == (int *)0x0) break;\n          iVar2 = *piVar3;\n        }\n        piVar1 = (int *)param_1[1];\n      }\n      piVar5 = piVar5 + 2;\n    } while (piVar5 < piVar1);\n  }\n  else {\n    iVar4 = 0;\n  }\n  return iVar4;\n}\n\n" (function_definition "int FUN_00020b28(undefined4 *param_1,code *param_2,undefined4 param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar1 = (int *)param_1[1];\n  piVar5 = (int *)*param_1;\n  if (piVar5 < piVar1) {\n    iVar4 = 0;\n    do {\n      iVar2 = *piVar5;\n      piVar3 = piVar5;\n      if (iVar2 != 0) {\n        while( true ) {\n          iVar2 = (*param_2)(iVar2,param_3);\n          if (iVar2 == 0) {\n            return iVar4;\n          }\n          piVar3 = (int *)piVar3[1];\n          iVar4 = iVar4 + 1;\n          if (piVar3 == (int *)0x0) break;\n          iVar2 = *piVar3;\n        }\n        piVar1 = (int *)param_1[1];\n      }\n      piVar5 = piVar5 + 2;\n    } while (piVar5 < piVar1);\n  }\n  else {\n    iVar4 = 0;\n  }\n  return iVar4;\n}" primitive_type (function_declarator "FUN_00020b28(undefined4 *param_1,code *param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 *param_1,code *param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 *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  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar1 = (int *)param_1[1];\n  piVar5 = (int *)*param_1;\n  if (piVar5 < piVar1) {\n    iVar4 = 0;\n    do {\n      iVar2 = *piVar5;\n      piVar3 = piVar5;\n      if (iVar2 != 0) {\n        while( true ) {\n          iVar2 = (*param_2)(iVar2,param_3);\n          if (iVar2 == 0) {\n            return iVar4;\n          }\n          piVar3 = (int *)piVar3[1];\n          iVar4 = iVar4 + 1;\n          if (piVar3 == (int *)0x0) break;\n          iVar2 = *piVar3;\n        }\n        piVar1 = (int *)param_1[1];\n      }\n      piVar5 = piVar5 + 2;\n    } while (piVar5 < piVar1);\n  }\n  else {\n    iVar4 = 0;\n  }\n  return iVar4;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (expression_statement "piVar1 = (int *)param_1[1];" (assignment_expression "piVar1 = (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 ]))) ;) (expression_statement "piVar5 = (int *)*param_1;" (assignment_expression "piVar5 = (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 (piVar5 < piVar1) {\n    iVar4 = 0;\n    do {\n      iVar2 = *piVar5;\n      piVar3 = piVar5;\n      if (iVar2 != 0) {\n        while( true ) {\n          iVar2 = (*param_2)(iVar2,param_3);\n          if (iVar2 == 0) {\n            return iVar4;\n          }\n          piVar3 = (int *)piVar3[1];\n          iVar4 = iVar4 + 1;\n          if (piVar3 == (int *)0x0) break;\n          iVar2 = *piVar3;\n        }\n        piVar1 = (int *)param_1[1];\n      }\n      piVar5 = piVar5 + 2;\n    } while (piVar5 < piVar1);\n  }\n  else {\n    iVar4 = 0;\n  }" if (parenthesized_expression "(piVar5 < piVar1)" ( (binary_expression "piVar5 < piVar1" identifier < identifier) )) (compound_statement "{\n    iVar4 = 0;\n    do {\n      iVar2 = *piVar5;\n      piVar3 = piVar5;\n      if (iVar2 != 0) {\n        while( true ) {\n          iVar2 = (*param_2)(iVar2,param_3);\n          if (iVar2 == 0) {\n            return iVar4;\n          }\n          piVar3 = (int *)piVar3[1];\n          iVar4 = iVar4 + 1;\n          if (piVar3 == (int *)0x0) break;\n          iVar2 = *piVar3;\n        }\n        piVar1 = (int *)param_1[1];\n      }\n      piVar5 = piVar5 + 2;\n    } while (piVar5 < piVar1);\n  }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar2 = *piVar5;\n      piVar3 = piVar5;\n      if (iVar2 != 0) {\n        while( true ) {\n          iVar2 = (*param_2)(iVar2,param_3);\n          if (iVar2 == 0) {\n            return iVar4;\n          }\n          piVar3 = (int *)piVar3[1];\n          iVar4 = iVar4 + 1;\n          if (piVar3 == (int *)0x0) break;\n          iVar2 = *piVar3;\n        }\n        piVar1 = (int *)param_1[1];\n      }\n      piVar5 = piVar5 + 2;\n    } while (piVar5 < piVar1);" do (compound_statement "{\n      iVar2 = *piVar5;\n      piVar3 = piVar5;\n      if (iVar2 != 0) {\n        while( true ) {\n          iVar2 = (*param_2)(iVar2,param_3);\n          if (iVar2 == 0) {\n            return iVar4;\n          }\n          piVar3 = (int *)piVar3[1];\n          iVar4 = iVar4 + 1;\n          if (piVar3 == (int *)0x0) break;\n          iVar2 = *piVar3;\n        }\n        piVar1 = (int *)param_1[1];\n      }\n      piVar5 = piVar5 + 2;\n    }" { (expression_statement "iVar2 = *piVar5;" (assignment_expression "iVar2 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "piVar3 = piVar5;" (assignment_expression "piVar3 = piVar5" identifier = identifier) ;) (if_statement "if (iVar2 != 0) {\n        while( true ) {\n          iVar2 = (*param_2)(iVar2,param_3);\n          if (iVar2 == 0) {\n            return iVar4;\n          }\n          piVar3 = (int *)piVar3[1];\n          iVar4 = iVar4 + 1;\n          if (piVar3 == (int *)0x0) break;\n          iVar2 = *piVar3;\n        }\n        piVar1 = (int *)param_1[1];\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        while( true ) {\n          iVar2 = (*param_2)(iVar2,param_3);\n          if (iVar2 == 0) {\n            return iVar4;\n          }\n          piVar3 = (int *)piVar3[1];\n          iVar4 = iVar4 + 1;\n          if (piVar3 == (int *)0x0) break;\n          iVar2 = *piVar3;\n        }\n        piVar1 = (int *)param_1[1];\n      }" { (while_statement "while( true ) {\n          iVar2 = (*param_2)(iVar2,param_3);\n          if (iVar2 == 0) {\n            return iVar4;\n          }\n          piVar3 = (int *)piVar3[1];\n          iVar4 = iVar4 + 1;\n          if (piVar3 == (int *)0x0) break;\n          iVar2 = *piVar3;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          iVar2 = (*param_2)(iVar2,param_3);\n          if (iVar2 == 0) {\n            return iVar4;\n          }\n          piVar3 = (int *)piVar3[1];\n          iVar4 = iVar4 + 1;\n          if (piVar3 == (int *)0x0) break;\n          iVar2 = *piVar3;\n        }" { (expression_statement "iVar2 = (*param_2)(iVar2,param_3);" (assignment_expression "iVar2 = (*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 (iVar2 == 0) {\n            return iVar4;\n          }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n            return iVar4;\n          }" { (return_statement "return iVar4;" return identifier ;) })) (expression_statement "piVar3 = (int *)piVar3[1];" (assignment_expression "piVar3 = (int *)piVar3[1]" identifier = (cast_expression "(int *)piVar3[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[1]" identifier [ number_literal ]))) ;) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (if_statement "if (piVar3 == (int *)0x0) break;" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = *piVar3;" (assignment_expression "iVar2 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) })) (expression_statement "piVar1 = (int *)param_1[1];" (assignment_expression "piVar1 = (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 ]))) ;) })) (expression_statement "piVar5 = piVar5 + 2;" (assignment_expression "piVar5 = piVar5 + 2" identifier = (binary_expression "piVar5 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar5 < piVar1)" ( (binary_expression "piVar5 < piVar1" identifier < identifier) )) ;) }) (else_clause "else {\n    iVar4 = 0;\n  }" else (compound_statement "{\n    iVar4 = 0;\n  }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) }))) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "size_t hash_do_for_each(Hash_table *table,Hash_processor processor,void *processor_data)\n\n{\n  undefined3 extraout_var;\n  hash_entry *phVar1;\n  _Bool _Var2;\n  void *pvVar3;\n  hash_entry *phVar4;\n  size_t sVar5;\n  hash_entry *phVar6;\n  \n  phVar1 = table->bucket_limit;\n  phVar6 = table->bucket;\n  if (phVar6 < phVar1) {\n    sVar5 = 0;\n    do {\n      pvVar3 = phVar6->data;\n      phVar4 = phVar6;\n      if (pvVar3 != (void *)0x0) {\n        while( true ) {\n          _Var2 = (*processor)(pvVar3,processor_data);\n          if (CONCAT31(extraout_var,_Var2) == 0) {\n            return sVar5;\n          }\n          phVar4 = phVar4->next;\n          sVar5 = sVar5 + 1;\n          if (phVar4 == (hash_entry *)0x0) break;\n          pvVar3 = phVar4->data;\n        }\n        phVar1 = table->bucket_limit;\n      }\n      phVar6 = phVar6 + 1;\n    } while (phVar6 < phVar1);\n  }\n  else {\n    sVar5 = 0;\n  }\n  return sVar5;\n}\n\n" (function_definition "size_t hash_do_for_each(Hash_table *table,Hash_processor processor,void *processor_data)\n\n{\n  undefined3 extraout_var;\n  hash_entry *phVar1;\n  _Bool _Var2;\n  void *pvVar3;\n  hash_entry *phVar4;\n  size_t sVar5;\n  hash_entry *phVar6;\n  \n  phVar1 = table->bucket_limit;\n  phVar6 = table->bucket;\n  if (phVar6 < phVar1) {\n    sVar5 = 0;\n    do {\n      pvVar3 = phVar6->data;\n      phVar4 = phVar6;\n      if (pvVar3 != (void *)0x0) {\n        while( true ) {\n          _Var2 = (*processor)(pvVar3,processor_data);\n          if (CONCAT31(extraout_var,_Var2) == 0) {\n            return sVar5;\n          }\n          phVar4 = phVar4->next;\n          sVar5 = sVar5 + 1;\n          if (phVar4 == (hash_entry *)0x0) break;\n          pvVar3 = phVar4->data;\n        }\n        phVar1 = table->bucket_limit;\n      }\n      phVar6 = phVar6 + 1;\n    } while (phVar6 < phVar1);\n  }\n  else {\n    sVar5 = 0;\n  }\n  return sVar5;\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  undefined3 extraout_var;\n  hash_entry *phVar1;\n  _Bool _Var2;\n  void *pvVar3;\n  hash_entry *phVar4;\n  size_t sVar5;\n  hash_entry *phVar6;\n  \n  phVar1 = table->bucket_limit;\n  phVar6 = table->bucket;\n  if (phVar6 < phVar1) {\n    sVar5 = 0;\n    do {\n      pvVar3 = phVar6->data;\n      phVar4 = phVar6;\n      if (pvVar3 != (void *)0x0) {\n        while( true ) {\n          _Var2 = (*processor)(pvVar3,processor_data);\n          if (CONCAT31(extraout_var,_Var2) == 0) {\n            return sVar5;\n          }\n          phVar4 = phVar4->next;\n          sVar5 = sVar5 + 1;\n          if (phVar4 == (hash_entry *)0x0) break;\n          pvVar3 = phVar4->data;\n        }\n        phVar1 = table->bucket_limit;\n      }\n      phVar6 = phVar6 + 1;\n    } while (phVar6 < phVar1);\n  }\n  else {\n    sVar5 = 0;\n  }\n  return sVar5;\n}" { (declaration "undefined3 extraout_var;" type_identifier identifier ;) (declaration "hash_entry *phVar1;" type_identifier (pointer_declarator "*phVar1" * identifier) ;) (declaration "_Bool _Var2;" type_identifier identifier ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (declaration "hash_entry *phVar4;" type_identifier (pointer_declarator "*phVar4" * identifier) ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "hash_entry *phVar6;" type_identifier (pointer_declarator "*phVar6" * identifier) ;) (expression_statement "phVar1 = table->bucket_limit;" (assignment_expression "phVar1 = table->bucket_limit" identifier = (field_expression "table->bucket_limit" identifier -> field_identifier)) ;) (expression_statement "phVar6 = table->bucket;" (assignment_expression "phVar6 = table->bucket" identifier = (field_expression "table->bucket" identifier -> field_identifier)) ;) (if_statement "if (phVar6 < phVar1) {\n    sVar5 = 0;\n    do {\n      pvVar3 = phVar6->data;\n      phVar4 = phVar6;\n      if (pvVar3 != (void *)0x0) {\n        while( true ) {\n          _Var2 = (*processor)(pvVar3,processor_data);\n          if (CONCAT31(extraout_var,_Var2) == 0) {\n            return sVar5;\n          }\n          phVar4 = phVar4->next;\n          sVar5 = sVar5 + 1;\n          if (phVar4 == (hash_entry *)0x0) break;\n          pvVar3 = phVar4->data;\n        }\n        phVar1 = table->bucket_limit;\n      }\n      phVar6 = phVar6 + 1;\n    } while (phVar6 < phVar1);\n  }\n  else {\n    sVar5 = 0;\n  }" if (parenthesized_expression "(phVar6 < phVar1)" ( (binary_expression "phVar6 < phVar1" identifier < identifier) )) (compound_statement "{\n    sVar5 = 0;\n    do {\n      pvVar3 = phVar6->data;\n      phVar4 = phVar6;\n      if (pvVar3 != (void *)0x0) {\n        while( true ) {\n          _Var2 = (*processor)(pvVar3,processor_data);\n          if (CONCAT31(extraout_var,_Var2) == 0) {\n            return sVar5;\n          }\n          phVar4 = phVar4->next;\n          sVar5 = sVar5 + 1;\n          if (phVar4 == (hash_entry *)0x0) break;\n          pvVar3 = phVar4->data;\n        }\n        phVar1 = table->bucket_limit;\n      }\n      phVar6 = phVar6 + 1;\n    } while (phVar6 < phVar1);\n  }" { (expression_statement "sVar5 = 0;" (assignment_expression "sVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n      pvVar3 = phVar6->data;\n      phVar4 = phVar6;\n      if (pvVar3 != (void *)0x0) {\n        while( true ) {\n          _Var2 = (*processor)(pvVar3,processor_data);\n          if (CONCAT31(extraout_var,_Var2) == 0) {\n            return sVar5;\n          }\n          phVar4 = phVar4->next;\n          sVar5 = sVar5 + 1;\n          if (phVar4 == (hash_entry *)0x0) break;\n          pvVar3 = phVar4->data;\n        }\n        phVar1 = table->bucket_limit;\n      }\n      phVar6 = phVar6 + 1;\n    } while (phVar6 < phVar1);" do (compound_statement "{\n      pvVar3 = phVar6->data;\n      phVar4 = phVar6;\n      if (pvVar3 != (void *)0x0) {\n        while( true ) {\n          _Var2 = (*processor)(pvVar3,processor_data);\n          if (CONCAT31(extraout_var,_Var2) == 0) {\n            return sVar5;\n          }\n          phVar4 = phVar4->next;\n          sVar5 = sVar5 + 1;\n          if (phVar4 == (hash_entry *)0x0) break;\n          pvVar3 = phVar4->data;\n        }\n        phVar1 = table->bucket_limit;\n      }\n      phVar6 = phVar6 + 1;\n    }" { (expression_statement "pvVar3 = phVar6->data;" (assignment_expression "pvVar3 = phVar6->data" identifier = (field_expression "phVar6->data" identifier -> field_identifier)) ;) (expression_statement "phVar4 = phVar6;" (assignment_expression "phVar4 = phVar6" identifier = identifier) ;) (if_statement "if (pvVar3 != (void *)0x0) {\n        while( true ) {\n          _Var2 = (*processor)(pvVar3,processor_data);\n          if (CONCAT31(extraout_var,_Var2) == 0) {\n            return sVar5;\n          }\n          phVar4 = phVar4->next;\n          sVar5 = sVar5 + 1;\n          if (phVar4 == (hash_entry *)0x0) break;\n          pvVar3 = phVar4->data;\n        }\n        phVar1 = table->bucket_limit;\n      }" if (parenthesized_expression "(pvVar3 != (void *)0x0)" ( (binary_expression "pvVar3 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        while( true ) {\n          _Var2 = (*processor)(pvVar3,processor_data);\n          if (CONCAT31(extraout_var,_Var2) == 0) {\n            return sVar5;\n          }\n          phVar4 = phVar4->next;\n          sVar5 = sVar5 + 1;\n          if (phVar4 == (hash_entry *)0x0) break;\n          pvVar3 = phVar4->data;\n        }\n        phVar1 = table->bucket_limit;\n      }" { (while_statement "while( true ) {\n          _Var2 = (*processor)(pvVar3,processor_data);\n          if (CONCAT31(extraout_var,_Var2) == 0) {\n            return sVar5;\n          }\n          phVar4 = phVar4->next;\n          sVar5 = sVar5 + 1;\n          if (phVar4 == (hash_entry *)0x0) break;\n          pvVar3 = phVar4->data;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          _Var2 = (*processor)(pvVar3,processor_data);\n          if (CONCAT31(extraout_var,_Var2) == 0) {\n            return sVar5;\n          }\n          phVar4 = phVar4->next;\n          sVar5 = sVar5 + 1;\n          if (phVar4 == (hash_entry *)0x0) break;\n          pvVar3 = phVar4->data;\n        }" { (expression_statement "_Var2 = (*processor)(pvVar3,processor_data);" (assignment_expression "_Var2 = (*processor)(pvVar3,processor_data)" identifier = (call_expression "(*processor)(pvVar3,processor_data)" (parenthesized_expression "(*processor)" ( (pointer_expression "*processor" * identifier) )) (argument_list "(pvVar3,processor_data)" ( identifier , identifier )))) ;) (if_statement "if (CONCAT31(extraout_var,_Var2) == 0) {\n            return sVar5;\n          }" if (parenthesized_expression "(CONCAT31(extraout_var,_Var2) == 0)" ( (binary_expression "CONCAT31(extraout_var,_Var2) == 0" (call_expression "CONCAT31(extraout_var,_Var2)" identifier (argument_list "(extraout_var,_Var2)" ( identifier , identifier ))) == number_literal) )) (compound_statement "{\n            return sVar5;\n          }" { (return_statement "return sVar5;" return identifier ;) })) (expression_statement "phVar4 = phVar4->next;" (assignment_expression "phVar4 = phVar4->next" identifier = (field_expression "phVar4->next" identifier -> field_identifier)) ;) (expression_statement "sVar5 = sVar5 + 1;" (assignment_expression "sVar5 = sVar5 + 1" identifier = (binary_expression "sVar5 + 1" identifier + number_literal)) ;) (if_statement "if (phVar4 == (hash_entry *)0x0) break;" if (parenthesized_expression "(phVar4 == (hash_entry *)0x0)" ( (binary_expression "phVar4 == (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 "pvVar3 = phVar4->data;" (assignment_expression "pvVar3 = phVar4->data" identifier = (field_expression "phVar4->data" identifier -> field_identifier)) ;) })) (expression_statement "phVar1 = table->bucket_limit;" (assignment_expression "phVar1 = table->bucket_limit" identifier = (field_expression "table->bucket_limit" identifier -> field_identifier)) ;) })) (expression_statement "phVar6 = phVar6 + 1;" (assignment_expression "phVar6 = phVar6 + 1" identifier = (binary_expression "phVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(phVar6 < phVar1)" ( (binary_expression "phVar6 < phVar1" identifier < identifier) )) ;) }) (else_clause "else {\n    sVar5 = 0;\n  }" else (compound_statement "{\n    sVar5 = 0;\n  }" { (expression_statement "sVar5 = 0;" (assignment_expression "sVar5 = 0" identifier = number_literal) ;) }))) (return_statement "return sVar5;" return identifier ;) })))
(translation_unit "int FUN_00020b28(undefined4 *param_1,code *param_2,undefined4 param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar1 = (int *)param_1[1];\n  piVar5 = (int *)*param_1;\n  if (piVar5 < piVar1) {\n    iVar4 = 0;\n    do {\n      iVar2 = *piVar5;\n      piVar3 = piVar5;\n      if (iVar2 != 0) {\n        while( true ) {\n          iVar2 = (*param_2)(iVar2,param_3);\n          if (iVar2 == 0) {\n            return iVar4;\n          }\n          piVar3 = (int *)piVar3[1];\n          iVar4 = iVar4 + 1;\n          if (piVar3 == (int *)0x0) break;\n          iVar2 = *piVar3;\n        }\n        piVar1 = (int *)param_1[1];\n      }\n      piVar5 = piVar5 + 2;\n    } while (piVar5 < piVar1);\n  }\n  else {\n    iVar4 = 0;\n  }\n  return iVar4;\n}\n\n" (function_definition "int FUN_00020b28(undefined4 *param_1,code *param_2,undefined4 param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar1 = (int *)param_1[1];\n  piVar5 = (int *)*param_1;\n  if (piVar5 < piVar1) {\n    iVar4 = 0;\n    do {\n      iVar2 = *piVar5;\n      piVar3 = piVar5;\n      if (iVar2 != 0) {\n        while( true ) {\n          iVar2 = (*param_2)(iVar2,param_3);\n          if (iVar2 == 0) {\n            return iVar4;\n          }\n          piVar3 = (int *)piVar3[1];\n          iVar4 = iVar4 + 1;\n          if (piVar3 == (int *)0x0) break;\n          iVar2 = *piVar3;\n        }\n        piVar1 = (int *)param_1[1];\n      }\n      piVar5 = piVar5 + 2;\n    } while (piVar5 < piVar1);\n  }\n  else {\n    iVar4 = 0;\n  }\n  return iVar4;\n}" primitive_type (function_declarator "FUN_00020b28(undefined4 *param_1,code *param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 *param_1,code *param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 *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  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar1 = (int *)param_1[1];\n  piVar5 = (int *)*param_1;\n  if (piVar5 < piVar1) {\n    iVar4 = 0;\n    do {\n      iVar2 = *piVar5;\n      piVar3 = piVar5;\n      if (iVar2 != 0) {\n        while( true ) {\n          iVar2 = (*param_2)(iVar2,param_3);\n          if (iVar2 == 0) {\n            return iVar4;\n          }\n          piVar3 = (int *)piVar3[1];\n          iVar4 = iVar4 + 1;\n          if (piVar3 == (int *)0x0) break;\n          iVar2 = *piVar3;\n        }\n        piVar1 = (int *)param_1[1];\n      }\n      piVar5 = piVar5 + 2;\n    } while (piVar5 < piVar1);\n  }\n  else {\n    iVar4 = 0;\n  }\n  return iVar4;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (expression_statement "piVar1 = (int *)param_1[1];" (assignment_expression "piVar1 = (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 ]))) ;) (expression_statement "piVar5 = (int *)*param_1;" (assignment_expression "piVar5 = (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 (piVar5 < piVar1) {\n    iVar4 = 0;\n    do {\n      iVar2 = *piVar5;\n      piVar3 = piVar5;\n      if (iVar2 != 0) {\n        while( true ) {\n          iVar2 = (*param_2)(iVar2,param_3);\n          if (iVar2 == 0) {\n            return iVar4;\n          }\n          piVar3 = (int *)piVar3[1];\n          iVar4 = iVar4 + 1;\n          if (piVar3 == (int *)0x0) break;\n          iVar2 = *piVar3;\n        }\n        piVar1 = (int *)param_1[1];\n      }\n      piVar5 = piVar5 + 2;\n    } while (piVar5 < piVar1);\n  }\n  else {\n    iVar4 = 0;\n  }" if (parenthesized_expression "(piVar5 < piVar1)" ( (binary_expression "piVar5 < piVar1" identifier < identifier) )) (compound_statement "{\n    iVar4 = 0;\n    do {\n      iVar2 = *piVar5;\n      piVar3 = piVar5;\n      if (iVar2 != 0) {\n        while( true ) {\n          iVar2 = (*param_2)(iVar2,param_3);\n          if (iVar2 == 0) {\n            return iVar4;\n          }\n          piVar3 = (int *)piVar3[1];\n          iVar4 = iVar4 + 1;\n          if (piVar3 == (int *)0x0) break;\n          iVar2 = *piVar3;\n        }\n        piVar1 = (int *)param_1[1];\n      }\n      piVar5 = piVar5 + 2;\n    } while (piVar5 < piVar1);\n  }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar2 = *piVar5;\n      piVar3 = piVar5;\n      if (iVar2 != 0) {\n        while( true ) {\n          iVar2 = (*param_2)(iVar2,param_3);\n          if (iVar2 == 0) {\n            return iVar4;\n          }\n          piVar3 = (int *)piVar3[1];\n          iVar4 = iVar4 + 1;\n          if (piVar3 == (int *)0x0) break;\n          iVar2 = *piVar3;\n        }\n        piVar1 = (int *)param_1[1];\n      }\n      piVar5 = piVar5 + 2;\n    } while (piVar5 < piVar1);" do (compound_statement "{\n      iVar2 = *piVar5;\n      piVar3 = piVar5;\n      if (iVar2 != 0) {\n        while( true ) {\n          iVar2 = (*param_2)(iVar2,param_3);\n          if (iVar2 == 0) {\n            return iVar4;\n          }\n          piVar3 = (int *)piVar3[1];\n          iVar4 = iVar4 + 1;\n          if (piVar3 == (int *)0x0) break;\n          iVar2 = *piVar3;\n        }\n        piVar1 = (int *)param_1[1];\n      }\n      piVar5 = piVar5 + 2;\n    }" { (expression_statement "iVar2 = *piVar5;" (assignment_expression "iVar2 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "piVar3 = piVar5;" (assignment_expression "piVar3 = piVar5" identifier = identifier) ;) (if_statement "if (iVar2 != 0) {\n        while( true ) {\n          iVar2 = (*param_2)(iVar2,param_3);\n          if (iVar2 == 0) {\n            return iVar4;\n          }\n          piVar3 = (int *)piVar3[1];\n          iVar4 = iVar4 + 1;\n          if (piVar3 == (int *)0x0) break;\n          iVar2 = *piVar3;\n        }\n        piVar1 = (int *)param_1[1];\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        while( true ) {\n          iVar2 = (*param_2)(iVar2,param_3);\n          if (iVar2 == 0) {\n            return iVar4;\n          }\n          piVar3 = (int *)piVar3[1];\n          iVar4 = iVar4 + 1;\n          if (piVar3 == (int *)0x0) break;\n          iVar2 = *piVar3;\n        }\n        piVar1 = (int *)param_1[1];\n      }" { (while_statement "while( true ) {\n          iVar2 = (*param_2)(iVar2,param_3);\n          if (iVar2 == 0) {\n            return iVar4;\n          }\n          piVar3 = (int *)piVar3[1];\n          iVar4 = iVar4 + 1;\n          if (piVar3 == (int *)0x0) break;\n          iVar2 = *piVar3;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          iVar2 = (*param_2)(iVar2,param_3);\n          if (iVar2 == 0) {\n            return iVar4;\n          }\n          piVar3 = (int *)piVar3[1];\n          iVar4 = iVar4 + 1;\n          if (piVar3 == (int *)0x0) break;\n          iVar2 = *piVar3;\n        }" { (expression_statement "iVar2 = (*param_2)(iVar2,param_3);" (assignment_expression "iVar2 = (*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 (iVar2 == 0) {\n            return iVar4;\n          }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n            return iVar4;\n          }" { (return_statement "return iVar4;" return identifier ;) })) (expression_statement "piVar3 = (int *)piVar3[1];" (assignment_expression "piVar3 = (int *)piVar3[1]" identifier = (cast_expression "(int *)piVar3[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[1]" identifier [ number_literal ]))) ;) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (if_statement "if (piVar3 == (int *)0x0) break;" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = *piVar3;" (assignment_expression "iVar2 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) })) (expression_statement "piVar1 = (int *)param_1[1];" (assignment_expression "piVar1 = (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 ]))) ;) })) (expression_statement "piVar5 = piVar5 + 2;" (assignment_expression "piVar5 = piVar5 + 2" identifier = (binary_expression "piVar5 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar5 < piVar1)" ( (binary_expression "piVar5 < piVar1" identifier < identifier) )) ;) }) (else_clause "else {\n    iVar4 = 0;\n  }" else (compound_statement "{\n    iVar4 = 0;\n  }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) }))) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_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 < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (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 == LIT) )) (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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int FUN_00020b28(undefined4 *param_1,code *param_2,undefined4 param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar1 = (int *)param_1[1];\n  piVar5 = (int *)*param_1;\n  if (piVar5 < piVar1) {\n    iVar4 = 0;\n    do {\n      iVar2 = *piVar5;\n      piVar3 = piVar5;\n      if (iVar2 != 0) {\n        while( true ) {\n          iVar2 = (*param_2)(iVar2,param_3);\n          if (iVar2 == 0) {\n            return iVar4;\n          }\n          piVar3 = (int *)piVar3[1];\n          iVar4 = iVar4 + 1;\n          if (piVar3 == (int *)0x0) break;\n          iVar2 = *piVar3;\n        }\n        piVar1 = (int *)param_1[1];\n      }\n      piVar5 = piVar5 + 2;\n    } while (piVar5 < piVar1);\n  }\n  else {\n    iVar4 = 0;\n  }\n  return iVar4;\n}" (primitive_type "int") (function_declarator "FUN_00020b28(undefined4 *param_1,code *param_2,undefined4 param_3)" (identifier "FUN_00020b28") (parameter_list "(undefined4 *param_1,code *param_2,undefined4 param_3)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (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  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar1 = (int *)param_1[1];\n  piVar5 = (int *)*param_1;\n  if (piVar5 < piVar1) {\n    iVar4 = 0;\n    do {\n      iVar2 = *piVar5;\n      piVar3 = piVar5;\n      if (iVar2 != 0) {\n        while( true ) {\n          iVar2 = (*param_2)(iVar2,param_3);\n          if (iVar2 == 0) {\n            return iVar4;\n          }\n          piVar3 = (int *)piVar3[1];\n          iVar4 = iVar4 + 1;\n          if (piVar3 == (int *)0x0) break;\n          iVar2 = *piVar3;\n        }\n        piVar1 = (int *)param_1[1];\n      }\n      piVar5 = piVar5 + 2;\n    } while (piVar5 < piVar1);\n  }\n  else {\n    iVar4 = 0;\n  }\n  return iVar4;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (expression_statement "piVar1 = (int *)param_1[1];" (assignment_expression "piVar1 = (int *)param_1[1]" (identifier "piVar1") (= "=") (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") (] "]")))) (; ";")) (expression_statement "piVar5 = (int *)*param_1;" (assignment_expression "piVar5 = (int *)*param_1" (identifier "piVar5") (= "=") (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if (piVar5 < piVar1) {\n    iVar4 = 0;\n    do {\n      iVar2 = *piVar5;\n      piVar3 = piVar5;\n      if (iVar2 != 0) {\n        while( true ) {\n          iVar2 = (*param_2)(iVar2,param_3);\n          if (iVar2 == 0) {\n            return iVar4;\n          }\n          piVar3 = (int *)piVar3[1];\n          iVar4 = iVar4 + 1;\n          if (piVar3 == (int *)0x0) break;\n          iVar2 = *piVar3;\n        }\n        piVar1 = (int *)param_1[1];\n      }\n      piVar5 = piVar5 + 2;\n    } while (piVar5 < piVar1);\n  }\n  else {\n    iVar4 = 0;\n  }" (if "if") (parenthesized_expression "(piVar5 < piVar1)" (( "(") (binary_expression "piVar5 < piVar1" (identifier "piVar5") (< "<") (identifier "piVar1")) () ")")) (compound_statement "{\n    iVar4 = 0;\n    do {\n      iVar2 = *piVar5;\n      piVar3 = piVar5;\n      if (iVar2 != 0) {\n        while( true ) {\n          iVar2 = (*param_2)(iVar2,param_3);\n          if (iVar2 == 0) {\n            return iVar4;\n          }\n          piVar3 = (int *)piVar3[1];\n          iVar4 = iVar4 + 1;\n          if (piVar3 == (int *)0x0) break;\n          iVar2 = *piVar3;\n        }\n        piVar1 = (int *)param_1[1];\n      }\n      piVar5 = piVar5 + 2;\n    } while (piVar5 < piVar1);\n  }" ({ "{") (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      iVar2 = *piVar5;\n      piVar3 = piVar5;\n      if (iVar2 != 0) {\n        while( true ) {\n          iVar2 = (*param_2)(iVar2,param_3);\n          if (iVar2 == 0) {\n            return iVar4;\n          }\n          piVar3 = (int *)piVar3[1];\n          iVar4 = iVar4 + 1;\n          if (piVar3 == (int *)0x0) break;\n          iVar2 = *piVar3;\n        }\n        piVar1 = (int *)param_1[1];\n      }\n      piVar5 = piVar5 + 2;\n    } while (piVar5 < piVar1);" (do "do") (compound_statement "{\n      iVar2 = *piVar5;\n      piVar3 = piVar5;\n      if (iVar2 != 0) {\n        while( true ) {\n          iVar2 = (*param_2)(iVar2,param_3);\n          if (iVar2 == 0) {\n            return iVar4;\n          }\n          piVar3 = (int *)piVar3[1];\n          iVar4 = iVar4 + 1;\n          if (piVar3 == (int *)0x0) break;\n          iVar2 = *piVar3;\n        }\n        piVar1 = (int *)param_1[1];\n      }\n      piVar5 = piVar5 + 2;\n    }" ({ "{") (expression_statement "iVar2 = *piVar5;" (assignment_expression "iVar2 = *piVar5" (identifier "iVar2") (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (expression_statement "piVar3 = piVar5;" (assignment_expression "piVar3 = piVar5" (identifier "piVar3") (= "=") (identifier "piVar5")) (; ";")) (if_statement "if (iVar2 != 0) {\n        while( true ) {\n          iVar2 = (*param_2)(iVar2,param_3);\n          if (iVar2 == 0) {\n            return iVar4;\n          }\n          piVar3 = (int *)piVar3[1];\n          iVar4 = iVar4 + 1;\n          if (piVar3 == (int *)0x0) break;\n          iVar2 = *piVar3;\n        }\n        piVar1 = (int *)param_1[1];\n      }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        while( true ) {\n          iVar2 = (*param_2)(iVar2,param_3);\n          if (iVar2 == 0) {\n            return iVar4;\n          }\n          piVar3 = (int *)piVar3[1];\n          iVar4 = iVar4 + 1;\n          if (piVar3 == (int *)0x0) break;\n          iVar2 = *piVar3;\n        }\n        piVar1 = (int *)param_1[1];\n      }" ({ "{") (while_statement "while( true ) {\n          iVar2 = (*param_2)(iVar2,param_3);\n          if (iVar2 == 0) {\n            return iVar4;\n          }\n          piVar3 = (int *)piVar3[1];\n          iVar4 = iVar4 + 1;\n          if (piVar3 == (int *)0x0) break;\n          iVar2 = *piVar3;\n        }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n          iVar2 = (*param_2)(iVar2,param_3);\n          if (iVar2 == 0) {\n            return iVar4;\n          }\n          piVar3 = (int *)piVar3[1];\n          iVar4 = iVar4 + 1;\n          if (piVar3 == (int *)0x0) break;\n          iVar2 = *piVar3;\n        }" ({ "{") (expression_statement "iVar2 = (*param_2)(iVar2,param_3);" (assignment_expression "iVar2 = (*param_2)(iVar2,param_3)" (identifier "iVar2") (= "=") (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 (iVar2 == 0) {\n            return iVar4;\n          }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            return iVar4;\n          }" ({ "{") (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}"))) (expression_statement "piVar3 = (int *)piVar3[1];" (assignment_expression "piVar3 = (int *)piVar3[1]" (identifier "piVar3") (= "=") (cast_expression "(int *)piVar3[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (piVar3 == (int *)0x0) break;" (if "if") (parenthesized_expression "(piVar3 == (int *)0x0)" (( "(") (binary_expression "piVar3 == (int *)0x0" (identifier "piVar3") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar2 = *piVar3;" (assignment_expression "iVar2 = *piVar3" (identifier "iVar2") (= "=") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (; ";")) (} "}"))) (expression_statement "piVar1 = (int *)param_1[1];" (assignment_expression "piVar1 = (int *)param_1[1]" (identifier "piVar1") (= "=") (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") (] "]")))) (; ";")) (} "}"))) (expression_statement "piVar5 = piVar5 + 2;" (assignment_expression "piVar5 = piVar5 + 2" (identifier "piVar5") (= "=") (binary_expression "piVar5 + 2" (identifier "piVar5") (+ "+") (number_literal "2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar5 < piVar1)" (( "(") (binary_expression "piVar5 < piVar1" (identifier "piVar5") (< "<") (identifier "piVar1")) () ")")) (; ";")) (} "}")) (else_clause "else {\n    iVar4 = 0;\n  }" (else "else") (compound_statement "{\n    iVar4 = 0;\n  }" ({ "{") (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (} "}")))) (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}")))
(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: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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: (number_literal))) 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: (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))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))))

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

{
  int *piVar1;
  int iVar2;
  int *piVar3;
  int iVar4;
  int *piVar5;
  
  piVar1 = (int *)param_1[1];
  piVar5 = (int *)*param_1;
  if (piVar5 < piVar1) {
    iVar4 = 0;
    do {
      iVar2 = *piVar5;
      piVar3 = piVar5;
      if (iVar2 != 0) {
        while( true ) {
          iVar2 = (*param_2)(iVar2,param_3);
          if (iVar2 == 0) {
            return iVar4;
          }
          piVar3 = (int *)piVar3[1];
          iVar4 = iVar4 + 1;
          if (piVar3 == (int *)0x0) break;
          iVar2 = *piVar3;
        }
        piVar1 = (int *)param_1[1];
      }
      piVar5 = piVar5 + 2;
    } while (piVar5 < piVar1);
  }
  else {
    iVar4 = 0;
  }
  return iVar4;
}

