
size_t hash_get_max_bucket_length(Hash_table *table)

{
  uint uVar1;
  hash_entry *phVar2;
  uint uVar3;
  hash_entry *phVar4;
  hash_entry *phVar5;
  
  phVar4 = table->bucket;
  phVar5 = table->bucket_limit;
  if (phVar5 <= phVar4) {
    return 0;
  }
  uVar1 = 0;
  do {
    while (phVar4->data == (void *)0x0) {
      phVar4 = phVar4 + 1;
      if (phVar5 <= phVar4) {
        return uVar1;
      }
    }
    uVar3 = 1;
    for (phVar2 = phVar4->next; phVar2 != (hash_entry *)0x0; phVar2 = phVar2->next) {
      uVar3 = uVar3 + 1;
    }
    phVar4 = phVar4 + 1;
    if (uVar1 < uVar3) {
      uVar1 = uVar3;
    }
  } while (phVar4 < phVar5);
  return uVar1;
}



uint hash_get_max_bucket_length(undefined4 *param_1)

{
  uint uVar1;
  int iVar2;
  uint uVar3;
  int *piVar4;
  int *piVar5;
  
  piVar4 = (int *)*param_1;
  piVar5 = (int *)param_1[1];
  if (piVar5 <= piVar4) {
    return 0;
  }
  uVar1 = 0;
  do {
    while (*piVar4 == 0) {
      piVar4 = piVar4 + 2;
      if (piVar5 <= piVar4) {
        return uVar1;
      }
    }
    uVar3 = 1;
    for (iVar2 = piVar4[1]; iVar2 != 0; iVar2 = *(int *)(iVar2 + 4)) {
      uVar3 = uVar3 + 1;
    }
    piVar4 = piVar4 + 2;
    if (uVar1 < uVar3) {
      uVar1 = uVar3;
    }
  } while (piVar4 < piVar5);
  return uVar1;
}


lw a1,0x0(a0)
lw a2,0x4(a0)
sltu v0,a1,a2
beq v0,zero,0x0001b4d0
_nop
b 0x0001b48c
_or v0,zero,zero
addiu a1,a1,0x8
sltu v1,a1,a2
beq v1,zero,0x0001b4c8
_nop
lw v1,0x0(a1)
beq v1,zero,0x0001b47c
_nop
lw v1,0x4(a1)
beq v1,zero,0x0001b4b0
_li a0,0x1
lw v1,0x4(v1)
bne v1,zero,0x0001b4a4
_addiu a0,a0,0x1
addiu a1,a1,0x8
sltu v1,v0,a0
movn v0,a0,v1
sltu v1,a1,a2
bne v1,zero,0x0001b48c
_nop
jr ra
_nop
jr ra
_or v0,zero,zero
(translation_unit "uint hash_get_max_bucket_length(undefined4 *param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  int *piVar4;\n  int *piVar5;\n  \n  piVar4 = (int *)*param_1;\n  piVar5 = (int *)param_1[1];\n  if (piVar5 <= piVar4) {\n    return 0;\n  }\n  uVar1 = 0;\n  do {\n    while (*piVar4 == 0) {\n      piVar4 = piVar4 + 2;\n      if (piVar5 <= piVar4) {\n        return uVar1;\n      }\n    }\n    uVar3 = 1;\n    for (iVar2 = piVar4[1]; iVar2 != 0; iVar2 = *(int *)(iVar2 + 4)) {\n      uVar3 = uVar3 + 1;\n    }\n    piVar4 = piVar4 + 2;\n    if (uVar1 < uVar3) {\n      uVar1 = uVar3;\n    }\n  } while (piVar4 < piVar5);\n  return uVar1;\n}\n\n" (function_definition "uint hash_get_max_bucket_length(undefined4 *param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  int *piVar4;\n  int *piVar5;\n  \n  piVar4 = (int *)*param_1;\n  piVar5 = (int *)param_1[1];\n  if (piVar5 <= piVar4) {\n    return 0;\n  }\n  uVar1 = 0;\n  do {\n    while (*piVar4 == 0) {\n      piVar4 = piVar4 + 2;\n      if (piVar5 <= piVar4) {\n        return uVar1;\n      }\n    }\n    uVar3 = 1;\n    for (iVar2 = piVar4[1]; iVar2 != 0; iVar2 = *(int *)(iVar2 + 4)) {\n      uVar3 = uVar3 + 1;\n    }\n    piVar4 = piVar4 + 2;\n    if (uVar1 < uVar3) {\n      uVar1 = uVar3;\n    }\n  } while (piVar4 < piVar5);\n  return uVar1;\n}" type_identifier (function_declarator "hash_get_max_bucket_length(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  int *piVar4;\n  int *piVar5;\n  \n  piVar4 = (int *)*param_1;\n  piVar5 = (int *)param_1[1];\n  if (piVar5 <= piVar4) {\n    return 0;\n  }\n  uVar1 = 0;\n  do {\n    while (*piVar4 == 0) {\n      piVar4 = piVar4 + 2;\n      if (piVar5 <= piVar4) {\n        return uVar1;\n      }\n    }\n    uVar3 = 1;\n    for (iVar2 = piVar4[1]; iVar2 != 0; iVar2 = *(int *)(iVar2 + 4)) {\n      uVar3 = uVar3 + 1;\n    }\n    piVar4 = piVar4 + 2;\n    if (uVar1 < uVar3) {\n      uVar1 = uVar3;\n    }\n  } while (piVar4 < piVar5);\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (expression_statement "piVar4 = (int *)*param_1;" (assignment_expression "piVar4 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "piVar5 = (int *)param_1[1];" (assignment_expression "piVar5 = (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 ]))) ;) (if_statement "if (piVar5 <= piVar4) {\n    return 0;\n  }" if (parenthesized_expression "(piVar5 <= piVar4)" ( (binary_expression "piVar5 <= piVar4" identifier <= identifier) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n    while (*piVar4 == 0) {\n      piVar4 = piVar4 + 2;\n      if (piVar5 <= piVar4) {\n        return uVar1;\n      }\n    }\n    uVar3 = 1;\n    for (iVar2 = piVar4[1]; iVar2 != 0; iVar2 = *(int *)(iVar2 + 4)) {\n      uVar3 = uVar3 + 1;\n    }\n    piVar4 = piVar4 + 2;\n    if (uVar1 < uVar3) {\n      uVar1 = uVar3;\n    }\n  } while (piVar4 < piVar5);" do (compound_statement "{\n    while (*piVar4 == 0) {\n      piVar4 = piVar4 + 2;\n      if (piVar5 <= piVar4) {\n        return uVar1;\n      }\n    }\n    uVar3 = 1;\n    for (iVar2 = piVar4[1]; iVar2 != 0; iVar2 = *(int *)(iVar2 + 4)) {\n      uVar3 = uVar3 + 1;\n    }\n    piVar4 = piVar4 + 2;\n    if (uVar1 < uVar3) {\n      uVar1 = uVar3;\n    }\n  }" { (while_statement "while (*piVar4 == 0) {\n      piVar4 = piVar4 + 2;\n      if (piVar5 <= piVar4) {\n        return uVar1;\n      }\n    }" while (parenthesized_expression "(*piVar4 == 0)" ( (binary_expression "*piVar4 == 0" (pointer_expression "*piVar4" * identifier) == number_literal) )) (compound_statement "{\n      piVar4 = piVar4 + 2;\n      if (piVar5 <= piVar4) {\n        return uVar1;\n      }\n    }" { (expression_statement "piVar4 = piVar4 + 2;" (assignment_expression "piVar4 = piVar4 + 2" identifier = (binary_expression "piVar4 + 2" identifier + number_literal)) ;) (if_statement "if (piVar5 <= piVar4) {\n        return uVar1;\n      }" if (parenthesized_expression "(piVar5 <= piVar4)" ( (binary_expression "piVar5 <= piVar4" identifier <= identifier) )) (compound_statement "{\n        return uVar1;\n      }" { (return_statement "return uVar1;" return identifier ;) })) })) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) (for_statement "for (iVar2 = piVar4[1]; iVar2 != 0; iVar2 = *(int *)(iVar2 + 4)) {\n      uVar3 = uVar3 + 1;\n    }" for ( (assignment_expression "iVar2 = piVar4[1]" identifier = (subscript_expression "piVar4[1]" identifier [ number_literal ])) ; (binary_expression "iVar2 != 0" identifier != number_literal) ; (assignment_expression "iVar2 = *(int *)(iVar2 + 4)" identifier = (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) ))))) ) (compound_statement "{\n      uVar3 = uVar3 + 1;\n    }" { (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) })) (expression_statement "piVar4 = piVar4 + 2;" (assignment_expression "piVar4 = piVar4 + 2" identifier = (binary_expression "piVar4 + 2" identifier + number_literal)) ;) (if_statement "if (uVar1 < uVar3) {\n      uVar1 = uVar3;\n    }" if (parenthesized_expression "(uVar1 < uVar3)" ( (binary_expression "uVar1 < uVar3" identifier < identifier) )) (compound_statement "{\n      uVar1 = uVar3;\n    }" { (expression_statement "uVar1 = uVar3;" (assignment_expression "uVar1 = uVar3" identifier = identifier) ;) })) }) while (parenthesized_expression "(piVar4 < piVar5)" ( (binary_expression "piVar4 < piVar5" identifier < identifier) )) ;) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "size_t hash_get_max_bucket_length(Hash_table *table)\n\n{\n  uint uVar1;\n  hash_entry *phVar2;\n  uint uVar3;\n  hash_entry *phVar4;\n  hash_entry *phVar5;\n  \n  phVar4 = table->bucket;\n  phVar5 = table->bucket_limit;\n  if (phVar5 <= phVar4) {\n    return 0;\n  }\n  uVar1 = 0;\n  do {\n    while (phVar4->data == (void *)0x0) {\n      phVar4 = phVar4 + 1;\n      if (phVar5 <= phVar4) {\n        return uVar1;\n      }\n    }\n    uVar3 = 1;\n    for (phVar2 = phVar4->next; phVar2 != (hash_entry *)0x0; phVar2 = phVar2->next) {\n      uVar3 = uVar3 + 1;\n    }\n    phVar4 = phVar4 + 1;\n    if (uVar1 < uVar3) {\n      uVar1 = uVar3;\n    }\n  } while (phVar4 < phVar5);\n  return uVar1;\n}\n\n" (function_definition "size_t hash_get_max_bucket_length(Hash_table *table)\n\n{\n  uint uVar1;\n  hash_entry *phVar2;\n  uint uVar3;\n  hash_entry *phVar4;\n  hash_entry *phVar5;\n  \n  phVar4 = table->bucket;\n  phVar5 = table->bucket_limit;\n  if (phVar5 <= phVar4) {\n    return 0;\n  }\n  uVar1 = 0;\n  do {\n    while (phVar4->data == (void *)0x0) {\n      phVar4 = phVar4 + 1;\n      if (phVar5 <= phVar4) {\n        return uVar1;\n      }\n    }\n    uVar3 = 1;\n    for (phVar2 = phVar4->next; phVar2 != (hash_entry *)0x0; phVar2 = phVar2->next) {\n      uVar3 = uVar3 + 1;\n    }\n    phVar4 = phVar4 + 1;\n    if (uVar1 < uVar3) {\n      uVar1 = uVar3;\n    }\n  } while (phVar4 < phVar5);\n  return uVar1;\n}" primitive_type (function_declarator "hash_get_max_bucket_length(Hash_table *table)" identifier (parameter_list "(Hash_table *table)" ( (parameter_declaration "Hash_table *table" type_identifier (pointer_declarator "*table" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  hash_entry *phVar2;\n  uint uVar3;\n  hash_entry *phVar4;\n  hash_entry *phVar5;\n  \n  phVar4 = table->bucket;\n  phVar5 = table->bucket_limit;\n  if (phVar5 <= phVar4) {\n    return 0;\n  }\n  uVar1 = 0;\n  do {\n    while (phVar4->data == (void *)0x0) {\n      phVar4 = phVar4 + 1;\n      if (phVar5 <= phVar4) {\n        return uVar1;\n      }\n    }\n    uVar3 = 1;\n    for (phVar2 = phVar4->next; phVar2 != (hash_entry *)0x0; phVar2 = phVar2->next) {\n      uVar3 = uVar3 + 1;\n    }\n    phVar4 = phVar4 + 1;\n    if (uVar1 < uVar3) {\n      uVar1 = uVar3;\n    }\n  } while (phVar4 < phVar5);\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "hash_entry *phVar2;" type_identifier (pointer_declarator "*phVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "hash_entry *phVar4;" type_identifier (pointer_declarator "*phVar4" * identifier) ;) (declaration "hash_entry *phVar5;" type_identifier (pointer_declarator "*phVar5" * identifier) ;) (expression_statement "phVar4 = table->bucket;" (assignment_expression "phVar4 = table->bucket" identifier = (field_expression "table->bucket" identifier -> field_identifier)) ;) (expression_statement "phVar5 = table->bucket_limit;" (assignment_expression "phVar5 = table->bucket_limit" identifier = (field_expression "table->bucket_limit" identifier -> field_identifier)) ;) (if_statement "if (phVar5 <= phVar4) {\n    return 0;\n  }" if (parenthesized_expression "(phVar5 <= phVar4)" ( (binary_expression "phVar5 <= phVar4" identifier <= identifier) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n    while (phVar4->data == (void *)0x0) {\n      phVar4 = phVar4 + 1;\n      if (phVar5 <= phVar4) {\n        return uVar1;\n      }\n    }\n    uVar3 = 1;\n    for (phVar2 = phVar4->next; phVar2 != (hash_entry *)0x0; phVar2 = phVar2->next) {\n      uVar3 = uVar3 + 1;\n    }\n    phVar4 = phVar4 + 1;\n    if (uVar1 < uVar3) {\n      uVar1 = uVar3;\n    }\n  } while (phVar4 < phVar5);" do (compound_statement "{\n    while (phVar4->data == (void *)0x0) {\n      phVar4 = phVar4 + 1;\n      if (phVar5 <= phVar4) {\n        return uVar1;\n      }\n    }\n    uVar3 = 1;\n    for (phVar2 = phVar4->next; phVar2 != (hash_entry *)0x0; phVar2 = phVar2->next) {\n      uVar3 = uVar3 + 1;\n    }\n    phVar4 = phVar4 + 1;\n    if (uVar1 < uVar3) {\n      uVar1 = uVar3;\n    }\n  }" { (while_statement "while (phVar4->data == (void *)0x0) {\n      phVar4 = phVar4 + 1;\n      if (phVar5 <= phVar4) {\n        return uVar1;\n      }\n    }" while (parenthesized_expression "(phVar4->data == (void *)0x0)" ( (binary_expression "phVar4->data == (void *)0x0" (field_expression "phVar4->data" identifier -> field_identifier) == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      phVar4 = phVar4 + 1;\n      if (phVar5 <= phVar4) {\n        return uVar1;\n      }\n    }" { (expression_statement "phVar4 = phVar4 + 1;" (assignment_expression "phVar4 = phVar4 + 1" identifier = (binary_expression "phVar4 + 1" identifier + number_literal)) ;) (if_statement "if (phVar5 <= phVar4) {\n        return uVar1;\n      }" if (parenthesized_expression "(phVar5 <= phVar4)" ( (binary_expression "phVar5 <= phVar4" identifier <= identifier) )) (compound_statement "{\n        return uVar1;\n      }" { (return_statement "return uVar1;" return identifier ;) })) })) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) (for_statement "for (phVar2 = phVar4->next; phVar2 != (hash_entry *)0x0; phVar2 = phVar2->next) {\n      uVar3 = uVar3 + 1;\n    }" for ( (assignment_expression "phVar2 = phVar4->next" identifier = (field_expression "phVar4->next" identifier -> field_identifier)) ; (binary_expression "phVar2 != (hash_entry *)0x0" identifier != (cast_expression "(hash_entry *)0x0" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "phVar2 = phVar2->next" identifier = (field_expression "phVar2->next" identifier -> field_identifier)) ) (compound_statement "{\n      uVar3 = uVar3 + 1;\n    }" { (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) })) (expression_statement "phVar4 = phVar4 + 1;" (assignment_expression "phVar4 = phVar4 + 1" identifier = (binary_expression "phVar4 + 1" identifier + number_literal)) ;) (if_statement "if (uVar1 < uVar3) {\n      uVar1 = uVar3;\n    }" if (parenthesized_expression "(uVar1 < uVar3)" ( (binary_expression "uVar1 < uVar3" identifier < identifier) )) (compound_statement "{\n      uVar1 = uVar3;\n    }" { (expression_statement "uVar1 = uVar3;" (assignment_expression "uVar1 = uVar3" identifier = identifier) ;) })) }) while (parenthesized_expression "(phVar4 < phVar5)" ( (binary_expression "phVar4 < phVar5" identifier < identifier) )) ;) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "uint hash_get_max_bucket_length(undefined4 *param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  int *piVar4;\n  int *piVar5;\n  \n  piVar4 = (int *)*param_1;\n  piVar5 = (int *)param_1[1];\n  if (piVar5 <= piVar4) {\n    return 0;\n  }\n  uVar1 = 0;\n  do {\n    while (*piVar4 == 0) {\n      piVar4 = piVar4 + 2;\n      if (piVar5 <= piVar4) {\n        return uVar1;\n      }\n    }\n    uVar3 = 1;\n    for (iVar2 = piVar4[1]; iVar2 != 0; iVar2 = *(int *)(iVar2 + 4)) {\n      uVar3 = uVar3 + 1;\n    }\n    piVar4 = piVar4 + 2;\n    if (uVar1 < uVar3) {\n      uVar1 = uVar3;\n    }\n  } while (piVar4 < piVar5);\n  return uVar1;\n}\n\n" (function_definition "uint hash_get_max_bucket_length(undefined4 *param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  int *piVar4;\n  int *piVar5;\n  \n  piVar4 = (int *)*param_1;\n  piVar5 = (int *)param_1[1];\n  if (piVar5 <= piVar4) {\n    return 0;\n  }\n  uVar1 = 0;\n  do {\n    while (*piVar4 == 0) {\n      piVar4 = piVar4 + 2;\n      if (piVar5 <= piVar4) {\n        return uVar1;\n      }\n    }\n    uVar3 = 1;\n    for (iVar2 = piVar4[1]; iVar2 != 0; iVar2 = *(int *)(iVar2 + 4)) {\n      uVar3 = uVar3 + 1;\n    }\n    piVar4 = piVar4 + 2;\n    if (uVar1 < uVar3) {\n      uVar1 = uVar3;\n    }\n  } while (piVar4 < piVar5);\n  return uVar1;\n}" type_identifier (function_declarator "hash_get_max_bucket_length(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  int *piVar4;\n  int *piVar5;\n  \n  piVar4 = (int *)*param_1;\n  piVar5 = (int *)param_1[1];\n  if (piVar5 <= piVar4) {\n    return 0;\n  }\n  uVar1 = 0;\n  do {\n    while (*piVar4 == 0) {\n      piVar4 = piVar4 + 2;\n      if (piVar5 <= piVar4) {\n        return uVar1;\n      }\n    }\n    uVar3 = 1;\n    for (iVar2 = piVar4[1]; iVar2 != 0; iVar2 = *(int *)(iVar2 + 4)) {\n      uVar3 = uVar3 + 1;\n    }\n    piVar4 = piVar4 + 2;\n    if (uVar1 < uVar3) {\n      uVar1 = uVar3;\n    }\n  } while (piVar4 < piVar5);\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (expression_statement "piVar4 = (int *)*param_1;" (assignment_expression "piVar4 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "piVar5 = (int *)param_1[1];" (assignment_expression "piVar5 = (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 ]))) ;) (if_statement "if (piVar5 <= piVar4) {\n    return 0;\n  }" if (parenthesized_expression "(piVar5 <= piVar4)" ( (binary_expression "piVar5 <= piVar4" identifier <= identifier) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n    while (*piVar4 == 0) {\n      piVar4 = piVar4 + 2;\n      if (piVar5 <= piVar4) {\n        return uVar1;\n      }\n    }\n    uVar3 = 1;\n    for (iVar2 = piVar4[1]; iVar2 != 0; iVar2 = *(int *)(iVar2 + 4)) {\n      uVar3 = uVar3 + 1;\n    }\n    piVar4 = piVar4 + 2;\n    if (uVar1 < uVar3) {\n      uVar1 = uVar3;\n    }\n  } while (piVar4 < piVar5);" do (compound_statement "{\n    while (*piVar4 == 0) {\n      piVar4 = piVar4 + 2;\n      if (piVar5 <= piVar4) {\n        return uVar1;\n      }\n    }\n    uVar3 = 1;\n    for (iVar2 = piVar4[1]; iVar2 != 0; iVar2 = *(int *)(iVar2 + 4)) {\n      uVar3 = uVar3 + 1;\n    }\n    piVar4 = piVar4 + 2;\n    if (uVar1 < uVar3) {\n      uVar1 = uVar3;\n    }\n  }" { (while_statement "while (*piVar4 == 0) {\n      piVar4 = piVar4 + 2;\n      if (piVar5 <= piVar4) {\n        return uVar1;\n      }\n    }" while (parenthesized_expression "(*piVar4 == 0)" ( (binary_expression "*piVar4 == 0" (pointer_expression "*piVar4" * identifier) == number_literal) )) (compound_statement "{\n      piVar4 = piVar4 + 2;\n      if (piVar5 <= piVar4) {\n        return uVar1;\n      }\n    }" { (expression_statement "piVar4 = piVar4 + 2;" (assignment_expression "piVar4 = piVar4 + 2" identifier = (binary_expression "piVar4 + 2" identifier + number_literal)) ;) (if_statement "if (piVar5 <= piVar4) {\n        return uVar1;\n      }" if (parenthesized_expression "(piVar5 <= piVar4)" ( (binary_expression "piVar5 <= piVar4" identifier <= identifier) )) (compound_statement "{\n        return uVar1;\n      }" { (return_statement "return uVar1;" return identifier ;) })) })) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) (for_statement "for (iVar2 = piVar4[1]; iVar2 != 0; iVar2 = *(int *)(iVar2 + 4)) {\n      uVar3 = uVar3 + 1;\n    }" for ( (assignment_expression "iVar2 = piVar4[1]" identifier = (subscript_expression "piVar4[1]" identifier [ number_literal ])) ; (binary_expression "iVar2 != 0" identifier != number_literal) ; (assignment_expression "iVar2 = *(int *)(iVar2 + 4)" identifier = (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) ))))) ) (compound_statement "{\n      uVar3 = uVar3 + 1;\n    }" { (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) })) (expression_statement "piVar4 = piVar4 + 2;" (assignment_expression "piVar4 = piVar4 + 2" identifier = (binary_expression "piVar4 + 2" identifier + number_literal)) ;) (if_statement "if (uVar1 < uVar3) {\n      uVar1 = uVar3;\n    }" if (parenthesized_expression "(uVar1 < uVar3)" ( (binary_expression "uVar1 < uVar3" identifier < identifier) )) (compound_statement "{\n      uVar1 = uVar3;\n    }" { (expression_statement "uVar1 = uVar3;" (assignment_expression "uVar1 = uVar3" identifier = identifier) ;) })) }) while (parenthesized_expression "(piVar4 < piVar5)" ( (binary_expression "piVar4 < piVar5" identifier < identifier) )) ;) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (return_statement return IDENT ;) })) })) (expression_statement (assignment_expression IDENT = LIT) ;) (for_statement for ( (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) (return_statement return IDENT ;) })))
(function_definition "uint hash_get_max_bucket_length(undefined4 *param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  int *piVar4;\n  int *piVar5;\n  \n  piVar4 = (int *)*param_1;\n  piVar5 = (int *)param_1[1];\n  if (piVar5 <= piVar4) {\n    return 0;\n  }\n  uVar1 = 0;\n  do {\n    while (*piVar4 == 0) {\n      piVar4 = piVar4 + 2;\n      if (piVar5 <= piVar4) {\n        return uVar1;\n      }\n    }\n    uVar3 = 1;\n    for (iVar2 = piVar4[1]; iVar2 != 0; iVar2 = *(int *)(iVar2 + 4)) {\n      uVar3 = uVar3 + 1;\n    }\n    piVar4 = piVar4 + 2;\n    if (uVar1 < uVar3) {\n      uVar1 = uVar3;\n    }\n  } while (piVar4 < piVar5);\n  return uVar1;\n}" (type_identifier "uint") (function_declarator "hash_get_max_bucket_length(undefined4 *param_1)" (identifier "hash_get_max_bucket_length") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  int *piVar4;\n  int *piVar5;\n  \n  piVar4 = (int *)*param_1;\n  piVar5 = (int *)param_1[1];\n  if (piVar5 <= piVar4) {\n    return 0;\n  }\n  uVar1 = 0;\n  do {\n    while (*piVar4 == 0) {\n      piVar4 = piVar4 + 2;\n      if (piVar5 <= piVar4) {\n        return uVar1;\n      }\n    }\n    uVar3 = 1;\n    for (iVar2 = piVar4[1]; iVar2 != 0; iVar2 = *(int *)(iVar2 + 4)) {\n      uVar3 = uVar3 + 1;\n    }\n    piVar4 = piVar4 + 2;\n    if (uVar1 < uVar3) {\n      uVar1 = uVar3;\n    }\n  } while (piVar4 < piVar5);\n  return uVar1;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (expression_statement "piVar4 = (int *)*param_1;" (assignment_expression "piVar4 = (int *)*param_1" (identifier "piVar4") (= "=") (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "piVar5 = (int *)param_1[1];" (assignment_expression "piVar5 = (int *)param_1[1]" (identifier "piVar5") (= "=") (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") (] "]")))) (; ";")) (if_statement "if (piVar5 <= piVar4) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(piVar5 <= piVar4)" (( "(") (binary_expression "piVar5 <= piVar4" (identifier "piVar5") (<= "<=") (identifier "piVar4")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    while (*piVar4 == 0) {\n      piVar4 = piVar4 + 2;\n      if (piVar5 <= piVar4) {\n        return uVar1;\n      }\n    }\n    uVar3 = 1;\n    for (iVar2 = piVar4[1]; iVar2 != 0; iVar2 = *(int *)(iVar2 + 4)) {\n      uVar3 = uVar3 + 1;\n    }\n    piVar4 = piVar4 + 2;\n    if (uVar1 < uVar3) {\n      uVar1 = uVar3;\n    }\n  } while (piVar4 < piVar5);" (do "do") (compound_statement "{\n    while (*piVar4 == 0) {\n      piVar4 = piVar4 + 2;\n      if (piVar5 <= piVar4) {\n        return uVar1;\n      }\n    }\n    uVar3 = 1;\n    for (iVar2 = piVar4[1]; iVar2 != 0; iVar2 = *(int *)(iVar2 + 4)) {\n      uVar3 = uVar3 + 1;\n    }\n    piVar4 = piVar4 + 2;\n    if (uVar1 < uVar3) {\n      uVar1 = uVar3;\n    }\n  }" ({ "{") (while_statement "while (*piVar4 == 0) {\n      piVar4 = piVar4 + 2;\n      if (piVar5 <= piVar4) {\n        return uVar1;\n      }\n    }" (while "while") (parenthesized_expression "(*piVar4 == 0)" (( "(") (binary_expression "*piVar4 == 0" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      piVar4 = piVar4 + 2;\n      if (piVar5 <= piVar4) {\n        return uVar1;\n      }\n    }" ({ "{") (expression_statement "piVar4 = piVar4 + 2;" (assignment_expression "piVar4 = piVar4 + 2" (identifier "piVar4") (= "=") (binary_expression "piVar4 + 2" (identifier "piVar4") (+ "+") (number_literal "2"))) (; ";")) (if_statement "if (piVar5 <= piVar4) {\n        return uVar1;\n      }" (if "if") (parenthesized_expression "(piVar5 <= piVar4)" (( "(") (binary_expression "piVar5 <= piVar4" (identifier "piVar5") (<= "<=") (identifier "piVar4")) () ")")) (compound_statement "{\n        return uVar1;\n      }" ({ "{") (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (} "}"))) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" (identifier "uVar3") (= "=") (number_literal "1")) (; ";")) (for_statement "for (iVar2 = piVar4[1]; iVar2 != 0; iVar2 = *(int *)(iVar2 + 4)) {\n      uVar3 = uVar3 + 1;\n    }" (for "for") (( "(") (assignment_expression "iVar2 = piVar4[1]" (identifier "iVar2") (= "=") (subscript_expression "piVar4[1]" (identifier "piVar4") ([ "[") (number_literal "1") (] "]"))) (; ";") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar2 = *(int *)(iVar2 + 4)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(iVar2 + 4)" (* "*") (cast_expression "(int *)(iVar2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")"))))) () ")") (compound_statement "{\n      uVar3 = uVar3 + 1;\n    }" ({ "{") (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" (identifier "uVar3") (= "=") (binary_expression "uVar3 + 1" (identifier "uVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "piVar4 = piVar4 + 2;" (assignment_expression "piVar4 = piVar4 + 2" (identifier "piVar4") (= "=") (binary_expression "piVar4 + 2" (identifier "piVar4") (+ "+") (number_literal "2"))) (; ";")) (if_statement "if (uVar1 < uVar3) {\n      uVar1 = uVar3;\n    }" (if "if") (parenthesized_expression "(uVar1 < uVar3)" (( "(") (binary_expression "uVar1 < uVar3" (identifier "uVar1") (< "<") (identifier "uVar3")) () ")")) (compound_statement "{\n      uVar1 = uVar3;\n    }" ({ "{") (expression_statement "uVar1 = uVar3;" (assignment_expression "uVar1 = uVar3" (identifier "uVar1") (= "=") (identifier "uVar3")) (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(piVar4 < piVar5)" (( "(") (binary_expression "piVar4 < piVar5" (identifier "piVar4") (< "<") (identifier "piVar5")) () ")")) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (for_statement initializer: (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))) condition: (binary_expression left: (identifier) right: (number_literal)) update: (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (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: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier)))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (return_statement (identifier)))))

uint MASKED(undefined4 *param_1)

{
  uint uVar1;
  int iVar2;
  uint uVar3;
  int *piVar4;
  int *piVar5;
  
  piVar4 = (int *)*param_1;
  piVar5 = (int *)param_1[1];
  if (piVar5 <= piVar4) {
    return 0;
  }
  uVar1 = 0;
  do {
    while (*piVar4 == 0) {
      piVar4 = piVar4 + 2;
      if (piVar5 <= piVar4) {
        return uVar1;
      }
    }
    uVar3 = 1;
    for (iVar2 = piVar4[1]; iVar2 != 0; iVar2 = *(int *)(iVar2 + 4)) {
      uVar3 = uVar3 + 1;
    }
    piVar4 = piVar4 + 2;
    if (uVar1 < uVar3) {
      uVar1 = uVar3;
    }
  } while (piVar4 < piVar5);
  return uVar1;
}

