
size_t hash_get_entries(Hash_table *table,void **buffer,size_t buffer_size)

{
  hash_entry *phVar1;
  hash_entry *phVar2;
  size_t sVar3;
  
  phVar2 = table->bucket;
  if (phVar2 < table->bucket_limit) {
    sVar3 = 0;
    do {
      if (phVar2->data != (void *)0x0) {
        if (buffer_size <= sVar3) {
          return sVar3;
        }
        buffer[sVar3] = phVar2->data;
        for (phVar1 = phVar2->next; sVar3 = sVar3 + 1, phVar1 != (hash_entry *)0x0;
            phVar1 = phVar1->next) {
          if (buffer_size == sVar3) {
            return buffer_size;
          }
          buffer[sVar3] = phVar1->data;
        }
      }
      phVar2 = phVar2 + 1;
    } while (phVar2 < table->bucket_limit);
  }
  else {
    sVar3 = 0;
  }
  return sVar3;
}



uint FUN_00018090(uint *param_1,int param_2,uint param_3)

{
  undefined4 *puVar1;
  int *piVar2;
  uint uVar3;
  
  piVar2 = (int *)*param_1;
  if (piVar2 < (int *)param_1[1]) {
    uVar3 = 0;
    do {
      if (*piVar2 != 0) {
        if (param_3 <= uVar3) {
          return uVar3;
        }
        *(int *)(param_2 + uVar3 * 4) = *piVar2;
        uVar3 = uVar3 + 1;
        for (puVar1 = (undefined4 *)piVar2[1]; puVar1 != (undefined4 *)0x0;
            puVar1 = (undefined4 *)puVar1[1]) {
          if (param_3 == uVar3) {
            return param_3;
          }
          uVar3 = uVar3 + 1;
          *(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1;
        }
      }
      piVar2 = piVar2 + 2;
    } while (piVar2 < (int *)param_1[1]);
  }
  else {
    uVar3 = 0;
  }
  return uVar3;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
MOV EDI,dword ptr [ESP + 0x14]
MOV ESI,dword ptr [ESP + 0x18]
MOV EAX,dword ptr [ESP + 0x1c]
MOV EBX,dword ptr [EDI]
CMP dword ptr [EDI + 0x4],EBX
JBE 0x000180f0
XOR EBP,EBP
MOV ECX,dword ptr [EBX]
TEST ECX,ECX
JNZ 0x000180c0
ADD EBX,0x8
CMP dword ptr [EDI + 0x4],EBX
JA 0x000180a9
MOV EAX,EBP
POP EBX
POP ESI
POP EDI
POP EBP
RET
CMP EAX,EBP
JBE 0x000180b7
MOV dword ptr [ESI + EBP*0x4],ECX
MOV ECX,dword ptr [EBX + 0x4]
LEA EDX,[EBP + 0x1]
TEST ECX,ECX
JZ 0x000180ec
LEA ESI,[ESI]
CMP EAX,EDX
JZ 0x000180b9
MOV EBP,dword ptr [ECX]
ADD EDX,0x1
MOV dword ptr [ESI + EDX*0x4 + -0x4],EBP
MOV ECX,dword ptr [ECX + 0x4]
TEST ECX,ECX
JNZ 0x000180d8
MOV EBP,EDX
JMP 0x000180af
XOR EAX,EAX
JMP 0x000180b9
(translation_unit "uint FUN_00018090(uint *param_1,int param_2,uint param_3)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  uint uVar3;\n  \n  piVar2 = (int *)*param_1;\n  if (piVar2 < (int *)param_1[1]) {\n    uVar3 = 0;\n    do {\n      if (*piVar2 != 0) {\n        if (param_3 <= uVar3) {\n          return uVar3;\n        }\n        *(int *)(param_2 + uVar3 * 4) = *piVar2;\n        uVar3 = uVar3 + 1;\n        for (puVar1 = (undefined4 *)piVar2[1]; puVar1 != (undefined4 *)0x0;\n            puVar1 = (undefined4 *)puVar1[1]) {\n          if (param_3 == uVar3) {\n            return param_3;\n          }\n          uVar3 = uVar3 + 1;\n          *(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1;\n        }\n      }\n      piVar2 = piVar2 + 2;\n    } while (piVar2 < (int *)param_1[1]);\n  }\n  else {\n    uVar3 = 0;\n  }\n  return uVar3;\n}\n\n" (function_definition "uint FUN_00018090(uint *param_1,int param_2,uint param_3)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  uint uVar3;\n  \n  piVar2 = (int *)*param_1;\n  if (piVar2 < (int *)param_1[1]) {\n    uVar3 = 0;\n    do {\n      if (*piVar2 != 0) {\n        if (param_3 <= uVar3) {\n          return uVar3;\n        }\n        *(int *)(param_2 + uVar3 * 4) = *piVar2;\n        uVar3 = uVar3 + 1;\n        for (puVar1 = (undefined4 *)piVar2[1]; puVar1 != (undefined4 *)0x0;\n            puVar1 = (undefined4 *)puVar1[1]) {\n          if (param_3 == uVar3) {\n            return param_3;\n          }\n          uVar3 = uVar3 + 1;\n          *(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1;\n        }\n      }\n      piVar2 = piVar2 + 2;\n    } while (piVar2 < (int *)param_1[1]);\n  }\n  else {\n    uVar3 = 0;\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_00018090(uint *param_1,int param_2,uint param_3)" identifier (parameter_list "(uint *param_1,int param_2,uint param_3)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int *piVar2;\n  uint uVar3;\n  \n  piVar2 = (int *)*param_1;\n  if (piVar2 < (int *)param_1[1]) {\n    uVar3 = 0;\n    do {\n      if (*piVar2 != 0) {\n        if (param_3 <= uVar3) {\n          return uVar3;\n        }\n        *(int *)(param_2 + uVar3 * 4) = *piVar2;\n        uVar3 = uVar3 + 1;\n        for (puVar1 = (undefined4 *)piVar2[1]; puVar1 != (undefined4 *)0x0;\n            puVar1 = (undefined4 *)puVar1[1]) {\n          if (param_3 == uVar3) {\n            return param_3;\n          }\n          uVar3 = uVar3 + 1;\n          *(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1;\n        }\n      }\n      piVar2 = piVar2 + 2;\n    } while (piVar2 < (int *)param_1[1]);\n  }\n  else {\n    uVar3 = 0;\n  }\n  return uVar3;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "piVar2 = (int *)*param_1;" (assignment_expression "piVar2 = (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 (piVar2 < (int *)param_1[1]) {\n    uVar3 = 0;\n    do {\n      if (*piVar2 != 0) {\n        if (param_3 <= uVar3) {\n          return uVar3;\n        }\n        *(int *)(param_2 + uVar3 * 4) = *piVar2;\n        uVar3 = uVar3 + 1;\n        for (puVar1 = (undefined4 *)piVar2[1]; puVar1 != (undefined4 *)0x0;\n            puVar1 = (undefined4 *)puVar1[1]) {\n          if (param_3 == uVar3) {\n            return param_3;\n          }\n          uVar3 = uVar3 + 1;\n          *(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1;\n        }\n      }\n      piVar2 = piVar2 + 2;\n    } while (piVar2 < (int *)param_1[1]);\n  }\n  else {\n    uVar3 = 0;\n  }" if (parenthesized_expression "(piVar2 < (int *)param_1[1])" ( (binary_expression "piVar2 < (int *)param_1[1]" identifier < (cast_expression "(int *)param_1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    uVar3 = 0;\n    do {\n      if (*piVar2 != 0) {\n        if (param_3 <= uVar3) {\n          return uVar3;\n        }\n        *(int *)(param_2 + uVar3 * 4) = *piVar2;\n        uVar3 = uVar3 + 1;\n        for (puVar1 = (undefined4 *)piVar2[1]; puVar1 != (undefined4 *)0x0;\n            puVar1 = (undefined4 *)puVar1[1]) {\n          if (param_3 == uVar3) {\n            return param_3;\n          }\n          uVar3 = uVar3 + 1;\n          *(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1;\n        }\n      }\n      piVar2 = piVar2 + 2;\n    } while (piVar2 < (int *)param_1[1]);\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      if (*piVar2 != 0) {\n        if (param_3 <= uVar3) {\n          return uVar3;\n        }\n        *(int *)(param_2 + uVar3 * 4) = *piVar2;\n        uVar3 = uVar3 + 1;\n        for (puVar1 = (undefined4 *)piVar2[1]; puVar1 != (undefined4 *)0x0;\n            puVar1 = (undefined4 *)puVar1[1]) {\n          if (param_3 == uVar3) {\n            return param_3;\n          }\n          uVar3 = uVar3 + 1;\n          *(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1;\n        }\n      }\n      piVar2 = piVar2 + 2;\n    } while (piVar2 < (int *)param_1[1]);" do (compound_statement "{\n      if (*piVar2 != 0) {\n        if (param_3 <= uVar3) {\n          return uVar3;\n        }\n        *(int *)(param_2 + uVar3 * 4) = *piVar2;\n        uVar3 = uVar3 + 1;\n        for (puVar1 = (undefined4 *)piVar2[1]; puVar1 != (undefined4 *)0x0;\n            puVar1 = (undefined4 *)puVar1[1]) {\n          if (param_3 == uVar3) {\n            return param_3;\n          }\n          uVar3 = uVar3 + 1;\n          *(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1;\n        }\n      }\n      piVar2 = piVar2 + 2;\n    }" { (if_statement "if (*piVar2 != 0) {\n        if (param_3 <= uVar3) {\n          return uVar3;\n        }\n        *(int *)(param_2 + uVar3 * 4) = *piVar2;\n        uVar3 = uVar3 + 1;\n        for (puVar1 = (undefined4 *)piVar2[1]; puVar1 != (undefined4 *)0x0;\n            puVar1 = (undefined4 *)puVar1[1]) {\n          if (param_3 == uVar3) {\n            return param_3;\n          }\n          uVar3 = uVar3 + 1;\n          *(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1;\n        }\n      }" if (parenthesized_expression "(*piVar2 != 0)" ( (binary_expression "*piVar2 != 0" (pointer_expression "*piVar2" * identifier) != number_literal) )) (compound_statement "{\n        if (param_3 <= uVar3) {\n          return uVar3;\n        }\n        *(int *)(param_2 + uVar3 * 4) = *piVar2;\n        uVar3 = uVar3 + 1;\n        for (puVar1 = (undefined4 *)piVar2[1]; puVar1 != (undefined4 *)0x0;\n            puVar1 = (undefined4 *)puVar1[1]) {\n          if (param_3 == uVar3) {\n            return param_3;\n          }\n          uVar3 = uVar3 + 1;\n          *(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1;\n        }\n      }" { (if_statement "if (param_3 <= uVar3) {\n          return uVar3;\n        }" if (parenthesized_expression "(param_3 <= uVar3)" ( (binary_expression "param_3 <= uVar3" identifier <= identifier) )) (compound_statement "{\n          return uVar3;\n        }" { (return_statement "return uVar3;" return identifier ;) })) (expression_statement "*(int *)(param_2 + uVar3 * 4) = *piVar2;" (assignment_expression "*(int *)(param_2 + uVar3 * 4) = *piVar2" (pointer_expression "*(int *)(param_2 + uVar3 * 4)" * (cast_expression "(int *)(param_2 + uVar3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + uVar3 * 4)" ( (binary_expression "param_2 + uVar3 * 4" identifier + (binary_expression "uVar3 * 4" identifier * number_literal)) )))) = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) (for_statement "for (puVar1 = (undefined4 *)piVar2[1]; puVar1 != (undefined4 *)0x0;\n            puVar1 = (undefined4 *)puVar1[1]) {\n          if (param_3 == uVar3) {\n            return param_3;\n          }\n          uVar3 = uVar3 + 1;\n          *(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1;\n        }" for ( (assignment_expression "puVar1 = (undefined4 *)piVar2[1]" identifier = (cast_expression "(undefined4 *)piVar2[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[1]" identifier [ number_literal ]))) ; (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "puVar1 = (undefined4 *)puVar1[1]" identifier = (cast_expression "(undefined4 *)puVar1[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[1]" identifier [ number_literal ]))) ) (compound_statement "{\n          if (param_3 == uVar3) {\n            return param_3;\n          }\n          uVar3 = uVar3 + 1;\n          *(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1;\n        }" { (if_statement "if (param_3 == uVar3) {\n            return param_3;\n          }" if (parenthesized_expression "(param_3 == uVar3)" ( (binary_expression "param_3 == uVar3" identifier == identifier) )) (compound_statement "{\n            return param_3;\n          }" { (return_statement "return param_3;" return identifier ;) })) (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1;" (assignment_expression "*(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1" (pointer_expression "*(undefined4 *)(param_2 + -4 + uVar3 * 4)" * (cast_expression "(undefined4 *)(param_2 + -4 + uVar3 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + -4 + uVar3 * 4)" ( (binary_expression "param_2 + -4 + uVar3 * 4" (binary_expression "param_2 + -4" identifier + number_literal) + (binary_expression "uVar3 * 4" identifier * number_literal)) )))) = (pointer_expression "*puVar1" * identifier)) ;) })) })) (expression_statement "piVar2 = piVar2 + 2;" (assignment_expression "piVar2 = piVar2 + 2" identifier = (binary_expression "piVar2 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar2 < (int *)param_1[1])" ( (binary_expression "piVar2 < (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 ]))) )) ;) }) (else_clause "else {\n    uVar3 = 0;\n  }" else (compound_statement "{\n    uVar3 = 0;\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }))) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "size_t hash_get_entries(Hash_table *table,void **buffer,size_t buffer_size)\n\n{\n  hash_entry *phVar1;\n  hash_entry *phVar2;\n  size_t sVar3;\n  \n  phVar2 = table->bucket;\n  if (phVar2 < table->bucket_limit) {\n    sVar3 = 0;\n    do {\n      if (phVar2->data != (void *)0x0) {\n        if (buffer_size <= sVar3) {\n          return sVar3;\n        }\n        buffer[sVar3] = phVar2->data;\n        for (phVar1 = phVar2->next; sVar3 = sVar3 + 1, phVar1 != (hash_entry *)0x0;\n            phVar1 = phVar1->next) {\n          if (buffer_size == sVar3) {\n            return buffer_size;\n          }\n          buffer[sVar3] = phVar1->data;\n        }\n      }\n      phVar2 = phVar2 + 1;\n    } while (phVar2 < table->bucket_limit);\n  }\n  else {\n    sVar3 = 0;\n  }\n  return sVar3;\n}\n\n" (function_definition "size_t hash_get_entries(Hash_table *table,void **buffer,size_t buffer_size)\n\n{\n  hash_entry *phVar1;\n  hash_entry *phVar2;\n  size_t sVar3;\n  \n  phVar2 = table->bucket;\n  if (phVar2 < table->bucket_limit) {\n    sVar3 = 0;\n    do {\n      if (phVar2->data != (void *)0x0) {\n        if (buffer_size <= sVar3) {\n          return sVar3;\n        }\n        buffer[sVar3] = phVar2->data;\n        for (phVar1 = phVar2->next; sVar3 = sVar3 + 1, phVar1 != (hash_entry *)0x0;\n            phVar1 = phVar1->next) {\n          if (buffer_size == sVar3) {\n            return buffer_size;\n          }\n          buffer[sVar3] = phVar1->data;\n        }\n      }\n      phVar2 = phVar2 + 1;\n    } while (phVar2 < table->bucket_limit);\n  }\n  else {\n    sVar3 = 0;\n  }\n  return sVar3;\n}" primitive_type (function_declarator "hash_get_entries(Hash_table *table,void **buffer,size_t buffer_size)" identifier (parameter_list "(Hash_table *table,void **buffer,size_t buffer_size)" ( (parameter_declaration "Hash_table *table" type_identifier (pointer_declarator "*table" * identifier)) , (parameter_declaration "void **buffer" primitive_type (pointer_declarator "**buffer" * (pointer_declarator "*buffer" * identifier))) , (parameter_declaration "size_t buffer_size" primitive_type identifier) ))) (compound_statement "{\n  hash_entry *phVar1;\n  hash_entry *phVar2;\n  size_t sVar3;\n  \n  phVar2 = table->bucket;\n  if (phVar2 < table->bucket_limit) {\n    sVar3 = 0;\n    do {\n      if (phVar2->data != (void *)0x0) {\n        if (buffer_size <= sVar3) {\n          return sVar3;\n        }\n        buffer[sVar3] = phVar2->data;\n        for (phVar1 = phVar2->next; sVar3 = sVar3 + 1, phVar1 != (hash_entry *)0x0;\n            phVar1 = phVar1->next) {\n          if (buffer_size == sVar3) {\n            return buffer_size;\n          }\n          buffer[sVar3] = phVar1->data;\n        }\n      }\n      phVar2 = phVar2 + 1;\n    } while (phVar2 < table->bucket_limit);\n  }\n  else {\n    sVar3 = 0;\n  }\n  return sVar3;\n}" { (declaration "hash_entry *phVar1;" type_identifier (pointer_declarator "*phVar1" * identifier) ;) (declaration "hash_entry *phVar2;" type_identifier (pointer_declarator "*phVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (expression_statement "phVar2 = table->bucket;" (assignment_expression "phVar2 = table->bucket" identifier = (field_expression "table->bucket" identifier -> field_identifier)) ;) (if_statement "if (phVar2 < table->bucket_limit) {\n    sVar3 = 0;\n    do {\n      if (phVar2->data != (void *)0x0) {\n        if (buffer_size <= sVar3) {\n          return sVar3;\n        }\n        buffer[sVar3] = phVar2->data;\n        for (phVar1 = phVar2->next; sVar3 = sVar3 + 1, phVar1 != (hash_entry *)0x0;\n            phVar1 = phVar1->next) {\n          if (buffer_size == sVar3) {\n            return buffer_size;\n          }\n          buffer[sVar3] = phVar1->data;\n        }\n      }\n      phVar2 = phVar2 + 1;\n    } while (phVar2 < table->bucket_limit);\n  }\n  else {\n    sVar3 = 0;\n  }" if (parenthesized_expression "(phVar2 < table->bucket_limit)" ( (binary_expression "phVar2 < table->bucket_limit" identifier < (field_expression "table->bucket_limit" identifier -> field_identifier)) )) (compound_statement "{\n    sVar3 = 0;\n    do {\n      if (phVar2->data != (void *)0x0) {\n        if (buffer_size <= sVar3) {\n          return sVar3;\n        }\n        buffer[sVar3] = phVar2->data;\n        for (phVar1 = phVar2->next; sVar3 = sVar3 + 1, phVar1 != (hash_entry *)0x0;\n            phVar1 = phVar1->next) {\n          if (buffer_size == sVar3) {\n            return buffer_size;\n          }\n          buffer[sVar3] = phVar1->data;\n        }\n      }\n      phVar2 = phVar2 + 1;\n    } while (phVar2 < table->bucket_limit);\n  }" { (expression_statement "sVar3 = 0;" (assignment_expression "sVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      if (phVar2->data != (void *)0x0) {\n        if (buffer_size <= sVar3) {\n          return sVar3;\n        }\n        buffer[sVar3] = phVar2->data;\n        for (phVar1 = phVar2->next; sVar3 = sVar3 + 1, phVar1 != (hash_entry *)0x0;\n            phVar1 = phVar1->next) {\n          if (buffer_size == sVar3) {\n            return buffer_size;\n          }\n          buffer[sVar3] = phVar1->data;\n        }\n      }\n      phVar2 = phVar2 + 1;\n    } while (phVar2 < table->bucket_limit);" do (compound_statement "{\n      if (phVar2->data != (void *)0x0) {\n        if (buffer_size <= sVar3) {\n          return sVar3;\n        }\n        buffer[sVar3] = phVar2->data;\n        for (phVar1 = phVar2->next; sVar3 = sVar3 + 1, phVar1 != (hash_entry *)0x0;\n            phVar1 = phVar1->next) {\n          if (buffer_size == sVar3) {\n            return buffer_size;\n          }\n          buffer[sVar3] = phVar1->data;\n        }\n      }\n      phVar2 = phVar2 + 1;\n    }" { (if_statement "if (phVar2->data != (void *)0x0) {\n        if (buffer_size <= sVar3) {\n          return sVar3;\n        }\n        buffer[sVar3] = phVar2->data;\n        for (phVar1 = phVar2->next; sVar3 = sVar3 + 1, phVar1 != (hash_entry *)0x0;\n            phVar1 = phVar1->next) {\n          if (buffer_size == sVar3) {\n            return buffer_size;\n          }\n          buffer[sVar3] = phVar1->data;\n        }\n      }" if (parenthesized_expression "(phVar2->data != (void *)0x0)" ( (binary_expression "phVar2->data != (void *)0x0" (field_expression "phVar2->data" identifier -> field_identifier) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        if (buffer_size <= sVar3) {\n          return sVar3;\n        }\n        buffer[sVar3] = phVar2->data;\n        for (phVar1 = phVar2->next; sVar3 = sVar3 + 1, phVar1 != (hash_entry *)0x0;\n            phVar1 = phVar1->next) {\n          if (buffer_size == sVar3) {\n            return buffer_size;\n          }\n          buffer[sVar3] = phVar1->data;\n        }\n      }" { (if_statement "if (buffer_size <= sVar3) {\n          return sVar3;\n        }" if (parenthesized_expression "(buffer_size <= sVar3)" ( (binary_expression "buffer_size <= sVar3" identifier <= identifier) )) (compound_statement "{\n          return sVar3;\n        }" { (return_statement "return sVar3;" return identifier ;) })) (expression_statement "buffer[sVar3] = phVar2->data;" (assignment_expression "buffer[sVar3] = phVar2->data" (subscript_expression "buffer[sVar3]" identifier [ identifier ]) = (field_expression "phVar2->data" identifier -> field_identifier)) ;) (for_statement "for (phVar1 = phVar2->next; sVar3 = sVar3 + 1, phVar1 != (hash_entry *)0x0;\n            phVar1 = phVar1->next) {\n          if (buffer_size == sVar3) {\n            return buffer_size;\n          }\n          buffer[sVar3] = phVar1->data;\n        }" for ( (assignment_expression "phVar1 = phVar2->next" identifier = (field_expression "phVar2->next" identifier -> field_identifier)) ; (comma_expression "sVar3 = sVar3 + 1, phVar1 != (hash_entry *)0x0" (assignment_expression "sVar3 = sVar3 + 1" identifier = (binary_expression "sVar3 + 1" identifier + number_literal)) , (binary_expression "phVar1 != (hash_entry *)0x0" identifier != (cast_expression "(hash_entry *)0x0" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ; (assignment_expression "phVar1 = phVar1->next" identifier = (field_expression "phVar1->next" identifier -> field_identifier)) ) (compound_statement "{\n          if (buffer_size == sVar3) {\n            return buffer_size;\n          }\n          buffer[sVar3] = phVar1->data;\n        }" { (if_statement "if (buffer_size == sVar3) {\n            return buffer_size;\n          }" if (parenthesized_expression "(buffer_size == sVar3)" ( (binary_expression "buffer_size == sVar3" identifier == identifier) )) (compound_statement "{\n            return buffer_size;\n          }" { (return_statement "return buffer_size;" return identifier ;) })) (expression_statement "buffer[sVar3] = phVar1->data;" (assignment_expression "buffer[sVar3] = phVar1->data" (subscript_expression "buffer[sVar3]" identifier [ identifier ]) = (field_expression "phVar1->data" identifier -> field_identifier)) ;) })) })) (expression_statement "phVar2 = phVar2 + 1;" (assignment_expression "phVar2 = phVar2 + 1" identifier = (binary_expression "phVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(phVar2 < table->bucket_limit)" ( (binary_expression "phVar2 < table->bucket_limit" identifier < (field_expression "table->bucket_limit" identifier -> field_identifier)) )) ;) }) (else_clause "else {\n    sVar3 = 0;\n  }" else (compound_statement "{\n    sVar3 = 0;\n  }" { (expression_statement "sVar3 = 0;" (assignment_expression "sVar3 = 0" identifier = number_literal) ;) }))) (return_statement "return sVar3;" return identifier ;) })))
(translation_unit "uint FUN_00018090(uint *param_1,int param_2,uint param_3)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  uint uVar3;\n  \n  piVar2 = (int *)*param_1;\n  if (piVar2 < (int *)param_1[1]) {\n    uVar3 = 0;\n    do {\n      if (*piVar2 != 0) {\n        if (param_3 <= uVar3) {\n          return uVar3;\n        }\n        *(int *)(param_2 + uVar3 * 4) = *piVar2;\n        uVar3 = uVar3 + 1;\n        for (puVar1 = (undefined4 *)piVar2[1]; puVar1 != (undefined4 *)0x0;\n            puVar1 = (undefined4 *)puVar1[1]) {\n          if (param_3 == uVar3) {\n            return param_3;\n          }\n          uVar3 = uVar3 + 1;\n          *(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1;\n        }\n      }\n      piVar2 = piVar2 + 2;\n    } while (piVar2 < (int *)param_1[1]);\n  }\n  else {\n    uVar3 = 0;\n  }\n  return uVar3;\n}\n\n" (function_definition "uint FUN_00018090(uint *param_1,int param_2,uint param_3)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  uint uVar3;\n  \n  piVar2 = (int *)*param_1;\n  if (piVar2 < (int *)param_1[1]) {\n    uVar3 = 0;\n    do {\n      if (*piVar2 != 0) {\n        if (param_3 <= uVar3) {\n          return uVar3;\n        }\n        *(int *)(param_2 + uVar3 * 4) = *piVar2;\n        uVar3 = uVar3 + 1;\n        for (puVar1 = (undefined4 *)piVar2[1]; puVar1 != (undefined4 *)0x0;\n            puVar1 = (undefined4 *)puVar1[1]) {\n          if (param_3 == uVar3) {\n            return param_3;\n          }\n          uVar3 = uVar3 + 1;\n          *(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1;\n        }\n      }\n      piVar2 = piVar2 + 2;\n    } while (piVar2 < (int *)param_1[1]);\n  }\n  else {\n    uVar3 = 0;\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_00018090(uint *param_1,int param_2,uint param_3)" identifier (parameter_list "(uint *param_1,int param_2,uint param_3)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int *piVar2;\n  uint uVar3;\n  \n  piVar2 = (int *)*param_1;\n  if (piVar2 < (int *)param_1[1]) {\n    uVar3 = 0;\n    do {\n      if (*piVar2 != 0) {\n        if (param_3 <= uVar3) {\n          return uVar3;\n        }\n        *(int *)(param_2 + uVar3 * 4) = *piVar2;\n        uVar3 = uVar3 + 1;\n        for (puVar1 = (undefined4 *)piVar2[1]; puVar1 != (undefined4 *)0x0;\n            puVar1 = (undefined4 *)puVar1[1]) {\n          if (param_3 == uVar3) {\n            return param_3;\n          }\n          uVar3 = uVar3 + 1;\n          *(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1;\n        }\n      }\n      piVar2 = piVar2 + 2;\n    } while (piVar2 < (int *)param_1[1]);\n  }\n  else {\n    uVar3 = 0;\n  }\n  return uVar3;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "piVar2 = (int *)*param_1;" (assignment_expression "piVar2 = (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 (piVar2 < (int *)param_1[1]) {\n    uVar3 = 0;\n    do {\n      if (*piVar2 != 0) {\n        if (param_3 <= uVar3) {\n          return uVar3;\n        }\n        *(int *)(param_2 + uVar3 * 4) = *piVar2;\n        uVar3 = uVar3 + 1;\n        for (puVar1 = (undefined4 *)piVar2[1]; puVar1 != (undefined4 *)0x0;\n            puVar1 = (undefined4 *)puVar1[1]) {\n          if (param_3 == uVar3) {\n            return param_3;\n          }\n          uVar3 = uVar3 + 1;\n          *(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1;\n        }\n      }\n      piVar2 = piVar2 + 2;\n    } while (piVar2 < (int *)param_1[1]);\n  }\n  else {\n    uVar3 = 0;\n  }" if (parenthesized_expression "(piVar2 < (int *)param_1[1])" ( (binary_expression "piVar2 < (int *)param_1[1]" identifier < (cast_expression "(int *)param_1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    uVar3 = 0;\n    do {\n      if (*piVar2 != 0) {\n        if (param_3 <= uVar3) {\n          return uVar3;\n        }\n        *(int *)(param_2 + uVar3 * 4) = *piVar2;\n        uVar3 = uVar3 + 1;\n        for (puVar1 = (undefined4 *)piVar2[1]; puVar1 != (undefined4 *)0x0;\n            puVar1 = (undefined4 *)puVar1[1]) {\n          if (param_3 == uVar3) {\n            return param_3;\n          }\n          uVar3 = uVar3 + 1;\n          *(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1;\n        }\n      }\n      piVar2 = piVar2 + 2;\n    } while (piVar2 < (int *)param_1[1]);\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      if (*piVar2 != 0) {\n        if (param_3 <= uVar3) {\n          return uVar3;\n        }\n        *(int *)(param_2 + uVar3 * 4) = *piVar2;\n        uVar3 = uVar3 + 1;\n        for (puVar1 = (undefined4 *)piVar2[1]; puVar1 != (undefined4 *)0x0;\n            puVar1 = (undefined4 *)puVar1[1]) {\n          if (param_3 == uVar3) {\n            return param_3;\n          }\n          uVar3 = uVar3 + 1;\n          *(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1;\n        }\n      }\n      piVar2 = piVar2 + 2;\n    } while (piVar2 < (int *)param_1[1]);" do (compound_statement "{\n      if (*piVar2 != 0) {\n        if (param_3 <= uVar3) {\n          return uVar3;\n        }\n        *(int *)(param_2 + uVar3 * 4) = *piVar2;\n        uVar3 = uVar3 + 1;\n        for (puVar1 = (undefined4 *)piVar2[1]; puVar1 != (undefined4 *)0x0;\n            puVar1 = (undefined4 *)puVar1[1]) {\n          if (param_3 == uVar3) {\n            return param_3;\n          }\n          uVar3 = uVar3 + 1;\n          *(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1;\n        }\n      }\n      piVar2 = piVar2 + 2;\n    }" { (if_statement "if (*piVar2 != 0) {\n        if (param_3 <= uVar3) {\n          return uVar3;\n        }\n        *(int *)(param_2 + uVar3 * 4) = *piVar2;\n        uVar3 = uVar3 + 1;\n        for (puVar1 = (undefined4 *)piVar2[1]; puVar1 != (undefined4 *)0x0;\n            puVar1 = (undefined4 *)puVar1[1]) {\n          if (param_3 == uVar3) {\n            return param_3;\n          }\n          uVar3 = uVar3 + 1;\n          *(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1;\n        }\n      }" if (parenthesized_expression "(*piVar2 != 0)" ( (binary_expression "*piVar2 != 0" (pointer_expression "*piVar2" * identifier) != number_literal) )) (compound_statement "{\n        if (param_3 <= uVar3) {\n          return uVar3;\n        }\n        *(int *)(param_2 + uVar3 * 4) = *piVar2;\n        uVar3 = uVar3 + 1;\n        for (puVar1 = (undefined4 *)piVar2[1]; puVar1 != (undefined4 *)0x0;\n            puVar1 = (undefined4 *)puVar1[1]) {\n          if (param_3 == uVar3) {\n            return param_3;\n          }\n          uVar3 = uVar3 + 1;\n          *(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1;\n        }\n      }" { (if_statement "if (param_3 <= uVar3) {\n          return uVar3;\n        }" if (parenthesized_expression "(param_3 <= uVar3)" ( (binary_expression "param_3 <= uVar3" identifier <= identifier) )) (compound_statement "{\n          return uVar3;\n        }" { (return_statement "return uVar3;" return identifier ;) })) (expression_statement "*(int *)(param_2 + uVar3 * 4) = *piVar2;" (assignment_expression "*(int *)(param_2 + uVar3 * 4) = *piVar2" (pointer_expression "*(int *)(param_2 + uVar3 * 4)" * (cast_expression "(int *)(param_2 + uVar3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + uVar3 * 4)" ( (binary_expression "param_2 + uVar3 * 4" identifier + (binary_expression "uVar3 * 4" identifier * number_literal)) )))) = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) (for_statement "for (puVar1 = (undefined4 *)piVar2[1]; puVar1 != (undefined4 *)0x0;\n            puVar1 = (undefined4 *)puVar1[1]) {\n          if (param_3 == uVar3) {\n            return param_3;\n          }\n          uVar3 = uVar3 + 1;\n          *(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1;\n        }" for ( (assignment_expression "puVar1 = (undefined4 *)piVar2[1]" identifier = (cast_expression "(undefined4 *)piVar2[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[1]" identifier [ number_literal ]))) ; (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "puVar1 = (undefined4 *)puVar1[1]" identifier = (cast_expression "(undefined4 *)puVar1[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[1]" identifier [ number_literal ]))) ) (compound_statement "{\n          if (param_3 == uVar3) {\n            return param_3;\n          }\n          uVar3 = uVar3 + 1;\n          *(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1;\n        }" { (if_statement "if (param_3 == uVar3) {\n            return param_3;\n          }" if (parenthesized_expression "(param_3 == uVar3)" ( (binary_expression "param_3 == uVar3" identifier == identifier) )) (compound_statement "{\n            return param_3;\n          }" { (return_statement "return param_3;" return identifier ;) })) (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1;" (assignment_expression "*(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1" (pointer_expression "*(undefined4 *)(param_2 + -4 + uVar3 * 4)" * (cast_expression "(undefined4 *)(param_2 + -4 + uVar3 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + -4 + uVar3 * 4)" ( (binary_expression "param_2 + -4 + uVar3 * 4" (binary_expression "param_2 + -4" identifier + number_literal) + (binary_expression "uVar3 * 4" identifier * number_literal)) )))) = (pointer_expression "*puVar1" * identifier)) ;) })) })) (expression_statement "piVar2 = piVar2 + 2;" (assignment_expression "piVar2 = piVar2 + 2" identifier = (binary_expression "piVar2 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar2 < (int *)param_1[1])" ( (binary_expression "piVar2 < (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 ]))) )) ;) }) (else_clause "else {\n    uVar3 = 0;\n  }" else (compound_statement "{\n    uVar3 = 0;\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }))) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE 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 (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (for_statement for ( (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ; (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ; (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) )))) = (pointer_expression * IDENT)) ;) })) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "uint FUN_00018090(uint *param_1,int param_2,uint param_3)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  uint uVar3;\n  \n  piVar2 = (int *)*param_1;\n  if (piVar2 < (int *)param_1[1]) {\n    uVar3 = 0;\n    do {\n      if (*piVar2 != 0) {\n        if (param_3 <= uVar3) {\n          return uVar3;\n        }\n        *(int *)(param_2 + uVar3 * 4) = *piVar2;\n        uVar3 = uVar3 + 1;\n        for (puVar1 = (undefined4 *)piVar2[1]; puVar1 != (undefined4 *)0x0;\n            puVar1 = (undefined4 *)puVar1[1]) {\n          if (param_3 == uVar3) {\n            return param_3;\n          }\n          uVar3 = uVar3 + 1;\n          *(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1;\n        }\n      }\n      piVar2 = piVar2 + 2;\n    } while (piVar2 < (int *)param_1[1]);\n  }\n  else {\n    uVar3 = 0;\n  }\n  return uVar3;\n}" (type_identifier "uint") (function_declarator "FUN_00018090(uint *param_1,int param_2,uint param_3)" (identifier "FUN_00018090") (parameter_list "(uint *param_1,int param_2,uint param_3)" (( "(") (parameter_declaration "uint *param_1" (type_identifier "uint") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  int *piVar2;\n  uint uVar3;\n  \n  piVar2 = (int *)*param_1;\n  if (piVar2 < (int *)param_1[1]) {\n    uVar3 = 0;\n    do {\n      if (*piVar2 != 0) {\n        if (param_3 <= uVar3) {\n          return uVar3;\n        }\n        *(int *)(param_2 + uVar3 * 4) = *piVar2;\n        uVar3 = uVar3 + 1;\n        for (puVar1 = (undefined4 *)piVar2[1]; puVar1 != (undefined4 *)0x0;\n            puVar1 = (undefined4 *)puVar1[1]) {\n          if (param_3 == uVar3) {\n            return param_3;\n          }\n          uVar3 = uVar3 + 1;\n          *(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1;\n        }\n      }\n      piVar2 = piVar2 + 2;\n    } while (piVar2 < (int *)param_1[1]);\n  }\n  else {\n    uVar3 = 0;\n  }\n  return uVar3;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (expression_statement "piVar2 = (int *)*param_1;" (assignment_expression "piVar2 = (int *)*param_1" (identifier "piVar2") (= "=") (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if (piVar2 < (int *)param_1[1]) {\n    uVar3 = 0;\n    do {\n      if (*piVar2 != 0) {\n        if (param_3 <= uVar3) {\n          return uVar3;\n        }\n        *(int *)(param_2 + uVar3 * 4) = *piVar2;\n        uVar3 = uVar3 + 1;\n        for (puVar1 = (undefined4 *)piVar2[1]; puVar1 != (undefined4 *)0x0;\n            puVar1 = (undefined4 *)puVar1[1]) {\n          if (param_3 == uVar3) {\n            return param_3;\n          }\n          uVar3 = uVar3 + 1;\n          *(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1;\n        }\n      }\n      piVar2 = piVar2 + 2;\n    } while (piVar2 < (int *)param_1[1]);\n  }\n  else {\n    uVar3 = 0;\n  }" (if "if") (parenthesized_expression "(piVar2 < (int *)param_1[1])" (( "(") (binary_expression "piVar2 < (int *)param_1[1]" (identifier "piVar2") (< "<") (cast_expression "(int *)param_1[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) () ")")) (compound_statement "{\n    uVar3 = 0;\n    do {\n      if (*piVar2 != 0) {\n        if (param_3 <= uVar3) {\n          return uVar3;\n        }\n        *(int *)(param_2 + uVar3 * 4) = *piVar2;\n        uVar3 = uVar3 + 1;\n        for (puVar1 = (undefined4 *)piVar2[1]; puVar1 != (undefined4 *)0x0;\n            puVar1 = (undefined4 *)puVar1[1]) {\n          if (param_3 == uVar3) {\n            return param_3;\n          }\n          uVar3 = uVar3 + 1;\n          *(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1;\n        }\n      }\n      piVar2 = piVar2 + 2;\n    } while (piVar2 < (int *)param_1[1]);\n  }" ({ "{") (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      if (*piVar2 != 0) {\n        if (param_3 <= uVar3) {\n          return uVar3;\n        }\n        *(int *)(param_2 + uVar3 * 4) = *piVar2;\n        uVar3 = uVar3 + 1;\n        for (puVar1 = (undefined4 *)piVar2[1]; puVar1 != (undefined4 *)0x0;\n            puVar1 = (undefined4 *)puVar1[1]) {\n          if (param_3 == uVar3) {\n            return param_3;\n          }\n          uVar3 = uVar3 + 1;\n          *(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1;\n        }\n      }\n      piVar2 = piVar2 + 2;\n    } while (piVar2 < (int *)param_1[1]);" (do "do") (compound_statement "{\n      if (*piVar2 != 0) {\n        if (param_3 <= uVar3) {\n          return uVar3;\n        }\n        *(int *)(param_2 + uVar3 * 4) = *piVar2;\n        uVar3 = uVar3 + 1;\n        for (puVar1 = (undefined4 *)piVar2[1]; puVar1 != (undefined4 *)0x0;\n            puVar1 = (undefined4 *)puVar1[1]) {\n          if (param_3 == uVar3) {\n            return param_3;\n          }\n          uVar3 = uVar3 + 1;\n          *(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1;\n        }\n      }\n      piVar2 = piVar2 + 2;\n    }" ({ "{") (if_statement "if (*piVar2 != 0) {\n        if (param_3 <= uVar3) {\n          return uVar3;\n        }\n        *(int *)(param_2 + uVar3 * 4) = *piVar2;\n        uVar3 = uVar3 + 1;\n        for (puVar1 = (undefined4 *)piVar2[1]; puVar1 != (undefined4 *)0x0;\n            puVar1 = (undefined4 *)puVar1[1]) {\n          if (param_3 == uVar3) {\n            return param_3;\n          }\n          uVar3 = uVar3 + 1;\n          *(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1;\n        }\n      }" (if "if") (parenthesized_expression "(*piVar2 != 0)" (( "(") (binary_expression "*piVar2 != 0" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        if (param_3 <= uVar3) {\n          return uVar3;\n        }\n        *(int *)(param_2 + uVar3 * 4) = *piVar2;\n        uVar3 = uVar3 + 1;\n        for (puVar1 = (undefined4 *)piVar2[1]; puVar1 != (undefined4 *)0x0;\n            puVar1 = (undefined4 *)puVar1[1]) {\n          if (param_3 == uVar3) {\n            return param_3;\n          }\n          uVar3 = uVar3 + 1;\n          *(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1;\n        }\n      }" ({ "{") (if_statement "if (param_3 <= uVar3) {\n          return uVar3;\n        }" (if "if") (parenthesized_expression "(param_3 <= uVar3)" (( "(") (binary_expression "param_3 <= uVar3" (identifier "param_3") (<= "<=") (identifier "uVar3")) () ")")) (compound_statement "{\n          return uVar3;\n        }" ({ "{") (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (expression_statement "*(int *)(param_2 + uVar3 * 4) = *piVar2;" (assignment_expression "*(int *)(param_2 + uVar3 * 4) = *piVar2" (pointer_expression "*(int *)(param_2 + uVar3 * 4)" (* "*") (cast_expression "(int *)(param_2 + uVar3 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + uVar3 * 4)" (( "(") (binary_expression "param_2 + uVar3 * 4" (identifier "param_2") (+ "+") (binary_expression "uVar3 * 4" (identifier "uVar3") (* "*") (number_literal "4"))) () ")")))) (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" (identifier "uVar3") (= "=") (binary_expression "uVar3 + 1" (identifier "uVar3") (+ "+") (number_literal "1"))) (; ";")) (for_statement "for (puVar1 = (undefined4 *)piVar2[1]; puVar1 != (undefined4 *)0x0;\n            puVar1 = (undefined4 *)puVar1[1]) {\n          if (param_3 == uVar3) {\n            return param_3;\n          }\n          uVar3 = uVar3 + 1;\n          *(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1;\n        }" (for "for") (( "(") (assignment_expression "puVar1 = (undefined4 *)piVar2[1]" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)piVar2[1]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")))) (; ";") (binary_expression "puVar1 != (undefined4 *)0x0" (identifier "puVar1") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";") (assignment_expression "puVar1 = (undefined4 *)puVar1[1]" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)puVar1[1]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")))) () ")") (compound_statement "{\n          if (param_3 == uVar3) {\n            return param_3;\n          }\n          uVar3 = uVar3 + 1;\n          *(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1;\n        }" ({ "{") (if_statement "if (param_3 == uVar3) {\n            return param_3;\n          }" (if "if") (parenthesized_expression "(param_3 == uVar3)" (( "(") (binary_expression "param_3 == uVar3" (identifier "param_3") (== "==") (identifier "uVar3")) () ")")) (compound_statement "{\n            return param_3;\n          }" ({ "{") (return_statement "return param_3;" (return "return") (identifier "param_3") (; ";")) (} "}"))) (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" (identifier "uVar3") (= "=") (binary_expression "uVar3 + 1" (identifier "uVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1;" (assignment_expression "*(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1" (pointer_expression "*(undefined4 *)(param_2 + -4 + uVar3 * 4)" (* "*") (cast_expression "(undefined4 *)(param_2 + -4 + uVar3 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + -4 + uVar3 * 4)" (( "(") (binary_expression "param_2 + -4 + uVar3 * 4" (binary_expression "param_2 + -4" (identifier "param_2") (+ "+") (number_literal "-4")) (+ "+") (binary_expression "uVar3 * 4" (identifier "uVar3") (* "*") (number_literal "4"))) () ")")))) (= "=") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "piVar2 = piVar2 + 2;" (assignment_expression "piVar2 = piVar2 + 2" (identifier "piVar2") (= "=") (binary_expression "piVar2 + 2" (identifier "piVar2") (+ "+") (number_literal "2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar2 < (int *)param_1[1])" (( "(") (binary_expression "piVar2 < (int *)param_1[1]" (identifier "piVar2") (< "<") (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") (] "]")))) () ")")) (; ";")) (} "}")) (else_clause "else {\n    uVar3 = 0;\n  }" (else "else") (compound_statement "{\n    uVar3 = 0;\n  }" ({ "{") (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (} "}")))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

size_t function_1(type_1 *table,void **buffer,size_t var_2)

{
  type_2 *var_4;
  type_2 *var_1;
  size_t var_3;
  
  var_1 = table->bucket;
  if (var_1 < table->bucket_limit) {
    var_3 = 0;
    do {
      if (var_1->data != (void *)0x0) {
        if (var_2 <= var_3) {
          return var_3;
        }
        buffer[var_3] = var_1->data;
        for (var_4 = var_1->next; var_3 = var_3 + 1, var_4 != (type_2 *)0x0;
            var_4 = var_4->next) {
          if (var_2 == var_3) {
            return var_2;
          }
          buffer[var_3] = var_4->data;
        }
      }
      var_1 = var_1 + 1;
    } while (var_1 < table->bucket_limit);
  }
  else {
    var_3 = 0;
  }
  return var_3;
}


(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))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) 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))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (for_statement initializer: (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)))) condition: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))) update: (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)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) 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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (pointer_expression argument: (identifier)))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))))

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

{
  undefined4 *puVar1;
  int *piVar2;
  uint uVar3;
  
  piVar2 = (int *)*param_1;
  if (piVar2 < (int *)param_1[1]) {
    uVar3 = 0;
    do {
      if (*piVar2 != 0) {
        if (param_3 <= uVar3) {
          return uVar3;
        }
        *(int *)(param_2 + uVar3 * 4) = *piVar2;
        uVar3 = uVar3 + 1;
        for (puVar1 = (undefined4 *)piVar2[1]; puVar1 != (undefined4 *)0x0;
            puVar1 = (undefined4 *)puVar1[1]) {
          if (param_3 == uVar3) {
            return param_3;
          }
          uVar3 = uVar3 + 1;
          *(undefined4 *)(param_2 + -4 + uVar3 * 4) = *puVar1;
        }
      }
      piVar2 = piVar2 + 2;
    } while (piVar2 < (int *)param_1[1]);
  }
  else {
    uVar3 = 0;
  }
  return uVar3;
}

