
/* WARNING: Unknown calling convention */

curl_hash_element * Curl_hash_next_element(curl_hash_iterator *iter)

{
  curl_llist *pcVar1;
  curl_llist_element *pcVar2;
  curl_hash *h;
  int iVar3;
  int iVar4;
  int iVar5;
  
  if (iter->current_element != (curl_llist_element *)0x0) {
    pcVar2 = iter->current_element->next;
    iter->current_element = pcVar2;
    if (pcVar2 != (curl_llist_element *)0x0) goto LAB_00047830;
  }
  iVar3 = iter->slot_index;
  iVar5 = iter->hash->slots;
  if (iVar5 <= iVar3) {
    return (curl_hash_element *)0x0;
  }
  pcVar1 = iter->hash->table + iVar3;
  pcVar2 = pcVar1->head;
  if (pcVar2 == (curl_llist_element *)0x0) {
    do {
      iVar4 = iVar3;
      iVar3 = iVar4 + 1;
      pcVar1 = pcVar1 + 1;
      if (iVar3 == iVar5) {
        return (curl_hash_element *)0x0;
      }
      pcVar2 = pcVar1->head;
    } while (pcVar2 == (curl_llist_element *)0x0);
    iter->current_element = pcVar2;
    iter->slot_index = iVar4 + 2;
    if (pcVar2 == (curl_llist_element *)0x0) {
      return (curl_hash_element *)0x0;
    }
  }
  else {
    iter->current_element = pcVar2;
    iter->slot_index = iVar3 + 1;
  }
LAB_00047830:
  return (curl_hash_element *)pcVar2->ptr;
}



undefined4 FUN_00047818(undefined4 *param_1)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  
  if (param_1[2] != 0) {
    puVar2 = *(undefined4 **)(param_1[2] + 8);
    param_1[2] = puVar2;
    if (puVar2 != (undefined4 *)0x0) goto LAB_00047830;
  }
  iVar3 = param_1[1];
  iVar5 = ((int *)*param_1)[4];
  if (iVar5 <= iVar3) {
    return 0;
  }
  puVar1 = (undefined4 *)(*(int *)*param_1 + iVar3 * 0x10);
  puVar2 = (undefined4 *)*puVar1;
  if (puVar2 == (undefined4 *)0x0) {
    do {
      iVar4 = iVar3;
      iVar3 = iVar4 + 1;
      puVar1 = puVar1 + 4;
      if (iVar3 == iVar5) {
        return 0;
      }
      puVar2 = (undefined4 *)*puVar1;
    } while (puVar2 == (undefined4 *)0x0);
    param_1[2] = puVar2;
    param_1[1] = iVar4 + 2;
    if (puVar2 == (undefined4 *)0x0) {
      return 0;
    }
  }
  else {
    param_1[2] = puVar2;
    param_1[1] = iVar3 + 1;
  }
LAB_00047830:
  return *puVar2;
}


lw v0,0x8(a0)
beq v0,zero,0x00047838
_lw a2,0x0(a0)
lw a1,0x8(v0)
beq a1,zero,0x00047838
_sw a1,0x8(a0)
jr ra
_lw v0,0x0(a1)
lw a3,0x4(a0)
lw t0,0x10(a2)
slt v0,a3,t0
beq v0,zero,0x000478a0
_sll v1,a3,0x4
lw v0,0x0(a2)
addu v1,v0,v1
lw v0,0x0(v1)
bne v0,zero,0x000478a8
_nop
addiu a2,a3,0x1
beq a2,t0,0x00047898
_addiu v1,v1,0x10
lw a1,0x0(v1)
bne a1,zero,0x00047880
_nop
b 0x00047860
_or a3,a2,zero
sw a1,0x8(a0)
addiu a3,a3,0x2
bne a1,zero,0x00047830
_sw a3,0x4(a0)
jr ra
_or v0,a1,zero
jr ra
_nop
jr ra
_or v0,zero,zero
sw v0,0x8(a0)
addiu a3,a3,0x1
sw a3,0x4(a0)
b 0x00047830
_or a1,v0,zero
(translation_unit "undefined4 FUN_00047818(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  if (param_1[2] != 0) {\n    puVar2 = *(undefined4 **)(param_1[2] + 8);\n    param_1[2] = puVar2;\n    if (puVar2 != (undefined4 *)0x0) goto LAB_00047830;\n  }\n  iVar3 = param_1[1];\n  iVar5 = ((int *)*param_1)[4];\n  if (iVar5 <= iVar3) {\n    return 0;\n  }\n  puVar1 = (undefined4 *)(*(int *)*param_1 + iVar3 * 0x10);\n  puVar2 = (undefined4 *)*puVar1;\n  if (puVar2 == (undefined4 *)0x0) {\n    do {\n      iVar4 = iVar3;\n      iVar3 = iVar4 + 1;\n      puVar1 = puVar1 + 4;\n      if (iVar3 == iVar5) {\n        return 0;\n      }\n      puVar2 = (undefined4 *)*puVar1;\n    } while (puVar2 == (undefined4 *)0x0);\n    param_1[2] = puVar2;\n    param_1[1] = iVar4 + 2;\n    if (puVar2 == (undefined4 *)0x0) {\n      return 0;\n    }\n  }\n  else {\n    param_1[2] = puVar2;\n    param_1[1] = iVar3 + 1;\n  }\nLAB_00047830:\n  return *puVar2;\n}\n\n" (function_definition "undefined4 FUN_00047818(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  if (param_1[2] != 0) {\n    puVar2 = *(undefined4 **)(param_1[2] + 8);\n    param_1[2] = puVar2;\n    if (puVar2 != (undefined4 *)0x0) goto LAB_00047830;\n  }\n  iVar3 = param_1[1];\n  iVar5 = ((int *)*param_1)[4];\n  if (iVar5 <= iVar3) {\n    return 0;\n  }\n  puVar1 = (undefined4 *)(*(int *)*param_1 + iVar3 * 0x10);\n  puVar2 = (undefined4 *)*puVar1;\n  if (puVar2 == (undefined4 *)0x0) {\n    do {\n      iVar4 = iVar3;\n      iVar3 = iVar4 + 1;\n      puVar1 = puVar1 + 4;\n      if (iVar3 == iVar5) {\n        return 0;\n      }\n      puVar2 = (undefined4 *)*puVar1;\n    } while (puVar2 == (undefined4 *)0x0);\n    param_1[2] = puVar2;\n    param_1[1] = iVar4 + 2;\n    if (puVar2 == (undefined4 *)0x0) {\n      return 0;\n    }\n  }\n  else {\n    param_1[2] = puVar2;\n    param_1[1] = iVar3 + 1;\n  }\nLAB_00047830:\n  return *puVar2;\n}" type_identifier (function_declarator "FUN_00047818(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  if (param_1[2] != 0) {\n    puVar2 = *(undefined4 **)(param_1[2] + 8);\n    param_1[2] = puVar2;\n    if (puVar2 != (undefined4 *)0x0) goto LAB_00047830;\n  }\n  iVar3 = param_1[1];\n  iVar5 = ((int *)*param_1)[4];\n  if (iVar5 <= iVar3) {\n    return 0;\n  }\n  puVar1 = (undefined4 *)(*(int *)*param_1 + iVar3 * 0x10);\n  puVar2 = (undefined4 *)*puVar1;\n  if (puVar2 == (undefined4 *)0x0) {\n    do {\n      iVar4 = iVar3;\n      iVar3 = iVar4 + 1;\n      puVar1 = puVar1 + 4;\n      if (iVar3 == iVar5) {\n        return 0;\n      }\n      puVar2 = (undefined4 *)*puVar1;\n    } while (puVar2 == (undefined4 *)0x0);\n    param_1[2] = puVar2;\n    param_1[1] = iVar4 + 2;\n    if (puVar2 == (undefined4 *)0x0) {\n      return 0;\n    }\n  }\n  else {\n    param_1[2] = puVar2;\n    param_1[1] = iVar3 + 1;\n  }\nLAB_00047830:\n  return *puVar2;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (if_statement "if (param_1[2] != 0) {\n    puVar2 = *(undefined4 **)(param_1[2] + 8);\n    param_1[2] = puVar2;\n    if (puVar2 != (undefined4 *)0x0) goto LAB_00047830;\n  }" if (parenthesized_expression "(param_1[2] != 0)" ( (binary_expression "param_1[2] != 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    puVar2 = *(undefined4 **)(param_1[2] + 8);\n    param_1[2] = puVar2;\n    if (puVar2 != (undefined4 *)0x0) goto LAB_00047830;\n  }" { (expression_statement "puVar2 = *(undefined4 **)(param_1[2] + 8);" (assignment_expression "puVar2 = *(undefined4 **)(param_1[2] + 8)" identifier = (pointer_expression "*(undefined4 **)(param_1[2] + 8)" * (cast_expression "(undefined4 **)(param_1[2] + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1[2] + 8)" ( (binary_expression "param_1[2] + 8" (subscript_expression "param_1[2]" identifier [ number_literal ]) + number_literal) ))))) ;) (expression_statement "param_1[2] = puVar2;" (assignment_expression "param_1[2] = puVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (puVar2 != (undefined4 *)0x0) goto LAB_00047830;" if (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" ( (binary_expression "puVar2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00047830;" goto statement_identifier ;)) })) (expression_statement "iVar3 = param_1[1];" (assignment_expression "iVar3 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "iVar5 = ((int *)*param_1)[4];" (assignment_expression "iVar5 = ((int *)*param_1)[4]" identifier = (subscript_expression "((int *)*param_1)[4]" (parenthesized_expression "((int *)*param_1)" ( (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) )) [ number_literal ])) ;) (if_statement "if (iVar5 <= iVar3) {\n    return 0;\n  }" if (parenthesized_expression "(iVar5 <= iVar3)" ( (binary_expression "iVar5 <= iVar3" identifier <= identifier) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "puVar1 = (undefined4 *)(*(int *)*param_1 + iVar3 * 0x10);" (assignment_expression "puVar1 = (undefined4 *)(*(int *)*param_1 + iVar3 * 0x10)" identifier = (cast_expression "(undefined4 *)(*(int *)*param_1 + iVar3 * 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)*param_1 + iVar3 * 0x10)" ( (binary_expression "*(int *)*param_1 + iVar3 * 0x10" (pointer_expression "*(int *)*param_1" * (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) + (binary_expression "iVar3 * 0x10" identifier * number_literal)) )))) ;) (expression_statement "puVar2 = (undefined4 *)*puVar1;" (assignment_expression "puVar2 = (undefined4 *)*puVar1" identifier = (cast_expression "(undefined4 *)*puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n    do {\n      iVar4 = iVar3;\n      iVar3 = iVar4 + 1;\n      puVar1 = puVar1 + 4;\n      if (iVar3 == iVar5) {\n        return 0;\n      }\n      puVar2 = (undefined4 *)*puVar1;\n    } while (puVar2 == (undefined4 *)0x0);\n    param_1[2] = puVar2;\n    param_1[1] = iVar4 + 2;\n    if (puVar2 == (undefined4 *)0x0) {\n      return 0;\n    }\n  }\n  else {\n    param_1[2] = puVar2;\n    param_1[1] = iVar3 + 1;\n  }" if (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" ( (binary_expression "puVar2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      iVar4 = iVar3;\n      iVar3 = iVar4 + 1;\n      puVar1 = puVar1 + 4;\n      if (iVar3 == iVar5) {\n        return 0;\n      }\n      puVar2 = (undefined4 *)*puVar1;\n    } while (puVar2 == (undefined4 *)0x0);\n    param_1[2] = puVar2;\n    param_1[1] = iVar4 + 2;\n    if (puVar2 == (undefined4 *)0x0) {\n      return 0;\n    }\n  }" { (do_statement "do {\n      iVar4 = iVar3;\n      iVar3 = iVar4 + 1;\n      puVar1 = puVar1 + 4;\n      if (iVar3 == iVar5) {\n        return 0;\n      }\n      puVar2 = (undefined4 *)*puVar1;\n    } while (puVar2 == (undefined4 *)0x0);" do (compound_statement "{\n      iVar4 = iVar3;\n      iVar3 = iVar4 + 1;\n      puVar1 = puVar1 + 4;\n      if (iVar3 == iVar5) {\n        return 0;\n      }\n      puVar2 = (undefined4 *)*puVar1;\n    }" { (expression_statement "iVar4 = iVar3;" (assignment_expression "iVar4 = iVar3" identifier = identifier) ;) (expression_statement "iVar3 = iVar4 + 1;" (assignment_expression "iVar3 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "puVar1 = puVar1 + 4;" (assignment_expression "puVar1 = puVar1 + 4" identifier = (binary_expression "puVar1 + 4" identifier + number_literal)) ;) (if_statement "if (iVar3 == iVar5) {\n        return 0;\n      }" if (parenthesized_expression "(iVar3 == iVar5)" ( (binary_expression "iVar3 == iVar5" identifier == identifier) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "puVar2 = (undefined4 *)*puVar1;" (assignment_expression "puVar2 = (undefined4 *)*puVar1" identifier = (cast_expression "(undefined4 *)*puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) }) while (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" ( (binary_expression "puVar2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "param_1[2] = puVar2;" (assignment_expression "param_1[2] = puVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[1] = iVar4 + 2;" (assignment_expression "param_1[1] = iVar4 + 2" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar4 + 2" identifier + number_literal)) ;) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" ( (binary_expression "puVar2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    param_1[2] = puVar2;\n    param_1[1] = iVar3 + 1;\n  }" else (compound_statement "{\n    param_1[2] = puVar2;\n    param_1[1] = iVar3 + 1;\n  }" { (expression_statement "param_1[2] = puVar2;" (assignment_expression "param_1[2] = puVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[1] = iVar3 + 1;" (assignment_expression "param_1[1] = iVar3 + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }))) (labeled_statement "LAB_00047830:\n  return *puVar2;" statement_identifier : (return_statement "return *puVar2;" return (pointer_expression "*puVar2" * identifier) ;)) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\ncurl_hash_element * Curl_hash_next_element(curl_hash_iterator *iter)\n\n{\n  curl_llist *pcVar1;\n  curl_llist_element *pcVar2;\n  curl_hash *h;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  if (iter->current_element != (curl_llist_element *)0x0) {\n    pcVar2 = iter->current_element->next;\n    iter->current_element = pcVar2;\n    if (pcVar2 != (curl_llist_element *)0x0) goto LAB_00047830;\n  }\n  iVar3 = iter->slot_index;\n  iVar5 = iter->hash->slots;\n  if (iVar5 <= iVar3) {\n    return (curl_hash_element *)0x0;\n  }\n  pcVar1 = iter->hash->table + iVar3;\n  pcVar2 = pcVar1->head;\n  if (pcVar2 == (curl_llist_element *)0x0) {\n    do {\n      iVar4 = iVar3;\n      iVar3 = iVar4 + 1;\n      pcVar1 = pcVar1 + 1;\n      if (iVar3 == iVar5) {\n        return (curl_hash_element *)0x0;\n      }\n      pcVar2 = pcVar1->head;\n    } while (pcVar2 == (curl_llist_element *)0x0);\n    iter->current_element = pcVar2;\n    iter->slot_index = iVar4 + 2;\n    if (pcVar2 == (curl_llist_element *)0x0) {\n      return (curl_hash_element *)0x0;\n    }\n  }\n  else {\n    iter->current_element = pcVar2;\n    iter->slot_index = iVar3 + 1;\n  }\nLAB_00047830:\n  return (curl_hash_element *)pcVar2->ptr;\n}\n\n" comment (function_definition "curl_hash_element * Curl_hash_next_element(curl_hash_iterator *iter)\n\n{\n  curl_llist *pcVar1;\n  curl_llist_element *pcVar2;\n  curl_hash *h;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  if (iter->current_element != (curl_llist_element *)0x0) {\n    pcVar2 = iter->current_element->next;\n    iter->current_element = pcVar2;\n    if (pcVar2 != (curl_llist_element *)0x0) goto LAB_00047830;\n  }\n  iVar3 = iter->slot_index;\n  iVar5 = iter->hash->slots;\n  if (iVar5 <= iVar3) {\n    return (curl_hash_element *)0x0;\n  }\n  pcVar1 = iter->hash->table + iVar3;\n  pcVar2 = pcVar1->head;\n  if (pcVar2 == (curl_llist_element *)0x0) {\n    do {\n      iVar4 = iVar3;\n      iVar3 = iVar4 + 1;\n      pcVar1 = pcVar1 + 1;\n      if (iVar3 == iVar5) {\n        return (curl_hash_element *)0x0;\n      }\n      pcVar2 = pcVar1->head;\n    } while (pcVar2 == (curl_llist_element *)0x0);\n    iter->current_element = pcVar2;\n    iter->slot_index = iVar4 + 2;\n    if (pcVar2 == (curl_llist_element *)0x0) {\n      return (curl_hash_element *)0x0;\n    }\n  }\n  else {\n    iter->current_element = pcVar2;\n    iter->slot_index = iVar3 + 1;\n  }\nLAB_00047830:\n  return (curl_hash_element *)pcVar2->ptr;\n}" type_identifier (pointer_declarator "* Curl_hash_next_element(curl_hash_iterator *iter)" * (function_declarator "Curl_hash_next_element(curl_hash_iterator *iter)" identifier (parameter_list "(curl_hash_iterator *iter)" ( (parameter_declaration "curl_hash_iterator *iter" type_identifier (pointer_declarator "*iter" * identifier)) )))) (compound_statement "{\n  curl_llist *pcVar1;\n  curl_llist_element *pcVar2;\n  curl_hash *h;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  if (iter->current_element != (curl_llist_element *)0x0) {\n    pcVar2 = iter->current_element->next;\n    iter->current_element = pcVar2;\n    if (pcVar2 != (curl_llist_element *)0x0) goto LAB_00047830;\n  }\n  iVar3 = iter->slot_index;\n  iVar5 = iter->hash->slots;\n  if (iVar5 <= iVar3) {\n    return (curl_hash_element *)0x0;\n  }\n  pcVar1 = iter->hash->table + iVar3;\n  pcVar2 = pcVar1->head;\n  if (pcVar2 == (curl_llist_element *)0x0) {\n    do {\n      iVar4 = iVar3;\n      iVar3 = iVar4 + 1;\n      pcVar1 = pcVar1 + 1;\n      if (iVar3 == iVar5) {\n        return (curl_hash_element *)0x0;\n      }\n      pcVar2 = pcVar1->head;\n    } while (pcVar2 == (curl_llist_element *)0x0);\n    iter->current_element = pcVar2;\n    iter->slot_index = iVar4 + 2;\n    if (pcVar2 == (curl_llist_element *)0x0) {\n      return (curl_hash_element *)0x0;\n    }\n  }\n  else {\n    iter->current_element = pcVar2;\n    iter->slot_index = iVar3 + 1;\n  }\nLAB_00047830:\n  return (curl_hash_element *)pcVar2->ptr;\n}" { (declaration "curl_llist *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "curl_llist_element *pcVar2;" type_identifier (pointer_declarator "*pcVar2" * identifier) ;) (declaration "curl_hash *h;" type_identifier (pointer_declarator "*h" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (if_statement "if (iter->current_element != (curl_llist_element *)0x0) {\n    pcVar2 = iter->current_element->next;\n    iter->current_element = pcVar2;\n    if (pcVar2 != (curl_llist_element *)0x0) goto LAB_00047830;\n  }" if (parenthesized_expression "(iter->current_element != (curl_llist_element *)0x0)" ( (binary_expression "iter->current_element != (curl_llist_element *)0x0" (field_expression "iter->current_element" identifier -> field_identifier) != (cast_expression "(curl_llist_element *)0x0" ( (type_descriptor "curl_llist_element *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar2 = iter->current_element->next;\n    iter->current_element = pcVar2;\n    if (pcVar2 != (curl_llist_element *)0x0) goto LAB_00047830;\n  }" { (expression_statement "pcVar2 = iter->current_element->next;" (assignment_expression "pcVar2 = iter->current_element->next" identifier = (field_expression "iter->current_element->next" (field_expression "iter->current_element" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "iter->current_element = pcVar2;" (assignment_expression "iter->current_element = pcVar2" (field_expression "iter->current_element" identifier -> field_identifier) = identifier) ;) (if_statement "if (pcVar2 != (curl_llist_element *)0x0) goto LAB_00047830;" if (parenthesized_expression "(pcVar2 != (curl_llist_element *)0x0)" ( (binary_expression "pcVar2 != (curl_llist_element *)0x0" identifier != (cast_expression "(curl_llist_element *)0x0" ( (type_descriptor "curl_llist_element *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00047830;" goto statement_identifier ;)) })) (expression_statement "iVar3 = iter->slot_index;" (assignment_expression "iVar3 = iter->slot_index" identifier = (field_expression "iter->slot_index" identifier -> field_identifier)) ;) (expression_statement "iVar5 = iter->hash->slots;" (assignment_expression "iVar5 = iter->hash->slots" identifier = (field_expression "iter->hash->slots" (field_expression "iter->hash" identifier -> field_identifier) -> field_identifier)) ;) (if_statement "if (iVar5 <= iVar3) {\n    return (curl_hash_element *)0x0;\n  }" if (parenthesized_expression "(iVar5 <= iVar3)" ( (binary_expression "iVar5 <= iVar3" identifier <= identifier) )) (compound_statement "{\n    return (curl_hash_element *)0x0;\n  }" { (return_statement "return (curl_hash_element *)0x0;" return (cast_expression "(curl_hash_element *)0x0" ( (type_descriptor "curl_hash_element *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "pcVar1 = iter->hash->table + iVar3;" (assignment_expression "pcVar1 = iter->hash->table + iVar3" identifier = (binary_expression "iter->hash->table + iVar3" (field_expression "iter->hash->table" (field_expression "iter->hash" identifier -> field_identifier) -> field_identifier) + identifier)) ;) (expression_statement "pcVar2 = pcVar1->head;" (assignment_expression "pcVar2 = pcVar1->head" identifier = (field_expression "pcVar1->head" identifier -> field_identifier)) ;) (if_statement "if (pcVar2 == (curl_llist_element *)0x0) {\n    do {\n      iVar4 = iVar3;\n      iVar3 = iVar4 + 1;\n      pcVar1 = pcVar1 + 1;\n      if (iVar3 == iVar5) {\n        return (curl_hash_element *)0x0;\n      }\n      pcVar2 = pcVar1->head;\n    } while (pcVar2 == (curl_llist_element *)0x0);\n    iter->current_element = pcVar2;\n    iter->slot_index = iVar4 + 2;\n    if (pcVar2 == (curl_llist_element *)0x0) {\n      return (curl_hash_element *)0x0;\n    }\n  }\n  else {\n    iter->current_element = pcVar2;\n    iter->slot_index = iVar3 + 1;\n  }" if (parenthesized_expression "(pcVar2 == (curl_llist_element *)0x0)" ( (binary_expression "pcVar2 == (curl_llist_element *)0x0" identifier == (cast_expression "(curl_llist_element *)0x0" ( (type_descriptor "curl_llist_element *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      iVar4 = iVar3;\n      iVar3 = iVar4 + 1;\n      pcVar1 = pcVar1 + 1;\n      if (iVar3 == iVar5) {\n        return (curl_hash_element *)0x0;\n      }\n      pcVar2 = pcVar1->head;\n    } while (pcVar2 == (curl_llist_element *)0x0);\n    iter->current_element = pcVar2;\n    iter->slot_index = iVar4 + 2;\n    if (pcVar2 == (curl_llist_element *)0x0) {\n      return (curl_hash_element *)0x0;\n    }\n  }" { (do_statement "do {\n      iVar4 = iVar3;\n      iVar3 = iVar4 + 1;\n      pcVar1 = pcVar1 + 1;\n      if (iVar3 == iVar5) {\n        return (curl_hash_element *)0x0;\n      }\n      pcVar2 = pcVar1->head;\n    } while (pcVar2 == (curl_llist_element *)0x0);" do (compound_statement "{\n      iVar4 = iVar3;\n      iVar3 = iVar4 + 1;\n      pcVar1 = pcVar1 + 1;\n      if (iVar3 == iVar5) {\n        return (curl_hash_element *)0x0;\n      }\n      pcVar2 = pcVar1->head;\n    }" { (expression_statement "iVar4 = iVar3;" (assignment_expression "iVar4 = iVar3" identifier = identifier) ;) (expression_statement "iVar3 = iVar4 + 1;" (assignment_expression "iVar3 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "pcVar1 = pcVar1 + 1;" (assignment_expression "pcVar1 = pcVar1 + 1" identifier = (binary_expression "pcVar1 + 1" identifier + number_literal)) ;) (if_statement "if (iVar3 == iVar5) {\n        return (curl_hash_element *)0x0;\n      }" if (parenthesized_expression "(iVar3 == iVar5)" ( (binary_expression "iVar3 == iVar5" identifier == identifier) )) (compound_statement "{\n        return (curl_hash_element *)0x0;\n      }" { (return_statement "return (curl_hash_element *)0x0;" return (cast_expression "(curl_hash_element *)0x0" ( (type_descriptor "curl_hash_element *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "pcVar2 = pcVar1->head;" (assignment_expression "pcVar2 = pcVar1->head" identifier = (field_expression "pcVar1->head" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(pcVar2 == (curl_llist_element *)0x0)" ( (binary_expression "pcVar2 == (curl_llist_element *)0x0" identifier == (cast_expression "(curl_llist_element *)0x0" ( (type_descriptor "curl_llist_element *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "iter->current_element = pcVar2;" (assignment_expression "iter->current_element = pcVar2" (field_expression "iter->current_element" identifier -> field_identifier) = identifier) ;) (expression_statement "iter->slot_index = iVar4 + 2;" (assignment_expression "iter->slot_index = iVar4 + 2" (field_expression "iter->slot_index" identifier -> field_identifier) = (binary_expression "iVar4 + 2" identifier + number_literal)) ;) (if_statement "if (pcVar2 == (curl_llist_element *)0x0) {\n      return (curl_hash_element *)0x0;\n    }" if (parenthesized_expression "(pcVar2 == (curl_llist_element *)0x0)" ( (binary_expression "pcVar2 == (curl_llist_element *)0x0" identifier == (cast_expression "(curl_llist_element *)0x0" ( (type_descriptor "curl_llist_element *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return (curl_hash_element *)0x0;\n    }" { (return_statement "return (curl_hash_element *)0x0;" return (cast_expression "(curl_hash_element *)0x0" ( (type_descriptor "curl_hash_element *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) }) (else_clause "else {\n    iter->current_element = pcVar2;\n    iter->slot_index = iVar3 + 1;\n  }" else (compound_statement "{\n    iter->current_element = pcVar2;\n    iter->slot_index = iVar3 + 1;\n  }" { (expression_statement "iter->current_element = pcVar2;" (assignment_expression "iter->current_element = pcVar2" (field_expression "iter->current_element" identifier -> field_identifier) = identifier) ;) (expression_statement "iter->slot_index = iVar3 + 1;" (assignment_expression "iter->slot_index = iVar3 + 1" (field_expression "iter->slot_index" identifier -> field_identifier) = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }))) (labeled_statement "LAB_00047830:\n  return (curl_hash_element *)pcVar2->ptr;" statement_identifier : (return_statement "return (curl_hash_element *)pcVar2->ptr;" return (cast_expression "(curl_hash_element *)pcVar2->ptr" ( (type_descriptor "curl_hash_element *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pcVar2->ptr" identifier -> field_identifier)) ;)) })))
(translation_unit "undefined4 FUN_00047818(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  if (param_1[2] != 0) {\n    puVar2 = *(undefined4 **)(param_1[2] + 8);\n    param_1[2] = puVar2;\n    if (puVar2 != (undefined4 *)0x0) goto LAB_00047830;\n  }\n  iVar3 = param_1[1];\n  iVar5 = ((int *)*param_1)[4];\n  if (iVar5 <= iVar3) {\n    return 0;\n  }\n  puVar1 = (undefined4 *)(*(int *)*param_1 + iVar3 * 0x10);\n  puVar2 = (undefined4 *)*puVar1;\n  if (puVar2 == (undefined4 *)0x0) {\n    do {\n      iVar4 = iVar3;\n      iVar3 = iVar4 + 1;\n      puVar1 = puVar1 + 4;\n      if (iVar3 == iVar5) {\n        return 0;\n      }\n      puVar2 = (undefined4 *)*puVar1;\n    } while (puVar2 == (undefined4 *)0x0);\n    param_1[2] = puVar2;\n    param_1[1] = iVar4 + 2;\n    if (puVar2 == (undefined4 *)0x0) {\n      return 0;\n    }\n  }\n  else {\n    param_1[2] = puVar2;\n    param_1[1] = iVar3 + 1;\n  }\nLAB_00047830:\n  return *puVar2;\n}\n\n" (function_definition "undefined4 FUN_00047818(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  if (param_1[2] != 0) {\n    puVar2 = *(undefined4 **)(param_1[2] + 8);\n    param_1[2] = puVar2;\n    if (puVar2 != (undefined4 *)0x0) goto LAB_00047830;\n  }\n  iVar3 = param_1[1];\n  iVar5 = ((int *)*param_1)[4];\n  if (iVar5 <= iVar3) {\n    return 0;\n  }\n  puVar1 = (undefined4 *)(*(int *)*param_1 + iVar3 * 0x10);\n  puVar2 = (undefined4 *)*puVar1;\n  if (puVar2 == (undefined4 *)0x0) {\n    do {\n      iVar4 = iVar3;\n      iVar3 = iVar4 + 1;\n      puVar1 = puVar1 + 4;\n      if (iVar3 == iVar5) {\n        return 0;\n      }\n      puVar2 = (undefined4 *)*puVar1;\n    } while (puVar2 == (undefined4 *)0x0);\n    param_1[2] = puVar2;\n    param_1[1] = iVar4 + 2;\n    if (puVar2 == (undefined4 *)0x0) {\n      return 0;\n    }\n  }\n  else {\n    param_1[2] = puVar2;\n    param_1[1] = iVar3 + 1;\n  }\nLAB_00047830:\n  return *puVar2;\n}" type_identifier (function_declarator "FUN_00047818(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  if (param_1[2] != 0) {\n    puVar2 = *(undefined4 **)(param_1[2] + 8);\n    param_1[2] = puVar2;\n    if (puVar2 != (undefined4 *)0x0) goto LAB_00047830;\n  }\n  iVar3 = param_1[1];\n  iVar5 = ((int *)*param_1)[4];\n  if (iVar5 <= iVar3) {\n    return 0;\n  }\n  puVar1 = (undefined4 *)(*(int *)*param_1 + iVar3 * 0x10);\n  puVar2 = (undefined4 *)*puVar1;\n  if (puVar2 == (undefined4 *)0x0) {\n    do {\n      iVar4 = iVar3;\n      iVar3 = iVar4 + 1;\n      puVar1 = puVar1 + 4;\n      if (iVar3 == iVar5) {\n        return 0;\n      }\n      puVar2 = (undefined4 *)*puVar1;\n    } while (puVar2 == (undefined4 *)0x0);\n    param_1[2] = puVar2;\n    param_1[1] = iVar4 + 2;\n    if (puVar2 == (undefined4 *)0x0) {\n      return 0;\n    }\n  }\n  else {\n    param_1[2] = puVar2;\n    param_1[1] = iVar3 + 1;\n  }\nLAB_00047830:\n  return *puVar2;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (if_statement "if (param_1[2] != 0) {\n    puVar2 = *(undefined4 **)(param_1[2] + 8);\n    param_1[2] = puVar2;\n    if (puVar2 != (undefined4 *)0x0) goto LAB_00047830;\n  }" if (parenthesized_expression "(param_1[2] != 0)" ( (binary_expression "param_1[2] != 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    puVar2 = *(undefined4 **)(param_1[2] + 8);\n    param_1[2] = puVar2;\n    if (puVar2 != (undefined4 *)0x0) goto LAB_00047830;\n  }" { (expression_statement "puVar2 = *(undefined4 **)(param_1[2] + 8);" (assignment_expression "puVar2 = *(undefined4 **)(param_1[2] + 8)" identifier = (pointer_expression "*(undefined4 **)(param_1[2] + 8)" * (cast_expression "(undefined4 **)(param_1[2] + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1[2] + 8)" ( (binary_expression "param_1[2] + 8" (subscript_expression "param_1[2]" identifier [ number_literal ]) + number_literal) ))))) ;) (expression_statement "param_1[2] = puVar2;" (assignment_expression "param_1[2] = puVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (puVar2 != (undefined4 *)0x0) goto LAB_00047830;" if (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" ( (binary_expression "puVar2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00047830;" goto statement_identifier ;)) })) (expression_statement "iVar3 = param_1[1];" (assignment_expression "iVar3 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "iVar5 = ((int *)*param_1)[4];" (assignment_expression "iVar5 = ((int *)*param_1)[4]" identifier = (subscript_expression "((int *)*param_1)[4]" (parenthesized_expression "((int *)*param_1)" ( (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) )) [ number_literal ])) ;) (if_statement "if (iVar5 <= iVar3) {\n    return 0;\n  }" if (parenthesized_expression "(iVar5 <= iVar3)" ( (binary_expression "iVar5 <= iVar3" identifier <= identifier) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "puVar1 = (undefined4 *)(*(int *)*param_1 + iVar3 * 0x10);" (assignment_expression "puVar1 = (undefined4 *)(*(int *)*param_1 + iVar3 * 0x10)" identifier = (cast_expression "(undefined4 *)(*(int *)*param_1 + iVar3 * 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)*param_1 + iVar3 * 0x10)" ( (binary_expression "*(int *)*param_1 + iVar3 * 0x10" (pointer_expression "*(int *)*param_1" * (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) + (binary_expression "iVar3 * 0x10" identifier * number_literal)) )))) ;) (expression_statement "puVar2 = (undefined4 *)*puVar1;" (assignment_expression "puVar2 = (undefined4 *)*puVar1" identifier = (cast_expression "(undefined4 *)*puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n    do {\n      iVar4 = iVar3;\n      iVar3 = iVar4 + 1;\n      puVar1 = puVar1 + 4;\n      if (iVar3 == iVar5) {\n        return 0;\n      }\n      puVar2 = (undefined4 *)*puVar1;\n    } while (puVar2 == (undefined4 *)0x0);\n    param_1[2] = puVar2;\n    param_1[1] = iVar4 + 2;\n    if (puVar2 == (undefined4 *)0x0) {\n      return 0;\n    }\n  }\n  else {\n    param_1[2] = puVar2;\n    param_1[1] = iVar3 + 1;\n  }" if (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" ( (binary_expression "puVar2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      iVar4 = iVar3;\n      iVar3 = iVar4 + 1;\n      puVar1 = puVar1 + 4;\n      if (iVar3 == iVar5) {\n        return 0;\n      }\n      puVar2 = (undefined4 *)*puVar1;\n    } while (puVar2 == (undefined4 *)0x0);\n    param_1[2] = puVar2;\n    param_1[1] = iVar4 + 2;\n    if (puVar2 == (undefined4 *)0x0) {\n      return 0;\n    }\n  }" { (do_statement "do {\n      iVar4 = iVar3;\n      iVar3 = iVar4 + 1;\n      puVar1 = puVar1 + 4;\n      if (iVar3 == iVar5) {\n        return 0;\n      }\n      puVar2 = (undefined4 *)*puVar1;\n    } while (puVar2 == (undefined4 *)0x0);" do (compound_statement "{\n      iVar4 = iVar3;\n      iVar3 = iVar4 + 1;\n      puVar1 = puVar1 + 4;\n      if (iVar3 == iVar5) {\n        return 0;\n      }\n      puVar2 = (undefined4 *)*puVar1;\n    }" { (expression_statement "iVar4 = iVar3;" (assignment_expression "iVar4 = iVar3" identifier = identifier) ;) (expression_statement "iVar3 = iVar4 + 1;" (assignment_expression "iVar3 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "puVar1 = puVar1 + 4;" (assignment_expression "puVar1 = puVar1 + 4" identifier = (binary_expression "puVar1 + 4" identifier + number_literal)) ;) (if_statement "if (iVar3 == iVar5) {\n        return 0;\n      }" if (parenthesized_expression "(iVar3 == iVar5)" ( (binary_expression "iVar3 == iVar5" identifier == identifier) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "puVar2 = (undefined4 *)*puVar1;" (assignment_expression "puVar2 = (undefined4 *)*puVar1" identifier = (cast_expression "(undefined4 *)*puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) }) while (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" ( (binary_expression "puVar2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "param_1[2] = puVar2;" (assignment_expression "param_1[2] = puVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[1] = iVar4 + 2;" (assignment_expression "param_1[1] = iVar4 + 2" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar4 + 2" identifier + number_literal)) ;) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" ( (binary_expression "puVar2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    param_1[2] = puVar2;\n    param_1[1] = iVar3 + 1;\n  }" else (compound_statement "{\n    param_1[2] = puVar2;\n    param_1[1] = iVar3 + 1;\n  }" { (expression_statement "param_1[2] = puVar2;" (assignment_expression "param_1[2] = puVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[1] = iVar3 + 1;" (assignment_expression "param_1[1] = iVar3 + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }))) (labeled_statement "LAB_00047830:\n  return *puVar2;" statement_identifier : (return_statement "return *puVar2;" return (pointer_expression "*puVar2" * identifier) ;)) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression (parenthesized_expression ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) )) [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (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 { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }) while (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) }))) (labeled_statement statement_identifier : (return_statement return (pointer_expression * IDENT) ;)) })))
(function_definition "undefined4 FUN_00047818(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  if (param_1[2] != 0) {\n    puVar2 = *(undefined4 **)(param_1[2] + 8);\n    param_1[2] = puVar2;\n    if (puVar2 != (undefined4 *)0x0) goto LAB_00047830;\n  }\n  iVar3 = param_1[1];\n  iVar5 = ((int *)*param_1)[4];\n  if (iVar5 <= iVar3) {\n    return 0;\n  }\n  puVar1 = (undefined4 *)(*(int *)*param_1 + iVar3 * 0x10);\n  puVar2 = (undefined4 *)*puVar1;\n  if (puVar2 == (undefined4 *)0x0) {\n    do {\n      iVar4 = iVar3;\n      iVar3 = iVar4 + 1;\n      puVar1 = puVar1 + 4;\n      if (iVar3 == iVar5) {\n        return 0;\n      }\n      puVar2 = (undefined4 *)*puVar1;\n    } while (puVar2 == (undefined4 *)0x0);\n    param_1[2] = puVar2;\n    param_1[1] = iVar4 + 2;\n    if (puVar2 == (undefined4 *)0x0) {\n      return 0;\n    }\n  }\n  else {\n    param_1[2] = puVar2;\n    param_1[1] = iVar3 + 1;\n  }\nLAB_00047830:\n  return *puVar2;\n}" (type_identifier "undefined4") (function_declarator "FUN_00047818(undefined4 *param_1)" (identifier "FUN_00047818") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  if (param_1[2] != 0) {\n    puVar2 = *(undefined4 **)(param_1[2] + 8);\n    param_1[2] = puVar2;\n    if (puVar2 != (undefined4 *)0x0) goto LAB_00047830;\n  }\n  iVar3 = param_1[1];\n  iVar5 = ((int *)*param_1)[4];\n  if (iVar5 <= iVar3) {\n    return 0;\n  }\n  puVar1 = (undefined4 *)(*(int *)*param_1 + iVar3 * 0x10);\n  puVar2 = (undefined4 *)*puVar1;\n  if (puVar2 == (undefined4 *)0x0) {\n    do {\n      iVar4 = iVar3;\n      iVar3 = iVar4 + 1;\n      puVar1 = puVar1 + 4;\n      if (iVar3 == iVar5) {\n        return 0;\n      }\n      puVar2 = (undefined4 *)*puVar1;\n    } while (puVar2 == (undefined4 *)0x0);\n    param_1[2] = puVar2;\n    param_1[1] = iVar4 + 2;\n    if (puVar2 == (undefined4 *)0x0) {\n      return 0;\n    }\n  }\n  else {\n    param_1[2] = puVar2;\n    param_1[1] = iVar3 + 1;\n  }\nLAB_00047830:\n  return *puVar2;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (if_statement "if (param_1[2] != 0) {\n    puVar2 = *(undefined4 **)(param_1[2] + 8);\n    param_1[2] = puVar2;\n    if (puVar2 != (undefined4 *)0x0) goto LAB_00047830;\n  }" (if "if") (parenthesized_expression "(param_1[2] != 0)" (( "(") (binary_expression "param_1[2] != 0" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    puVar2 = *(undefined4 **)(param_1[2] + 8);\n    param_1[2] = puVar2;\n    if (puVar2 != (undefined4 *)0x0) goto LAB_00047830;\n  }" ({ "{") (expression_statement "puVar2 = *(undefined4 **)(param_1[2] + 8);" (assignment_expression "puVar2 = *(undefined4 **)(param_1[2] + 8)" (identifier "puVar2") (= "=") (pointer_expression "*(undefined4 **)(param_1[2] + 8)" (* "*") (cast_expression "(undefined4 **)(param_1[2] + 8)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1[2] + 8)" (( "(") (binary_expression "param_1[2] + 8" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "param_1[2] = puVar2;" (assignment_expression "param_1[2] = puVar2" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "puVar2")) (; ";")) (if_statement "if (puVar2 != (undefined4 *)0x0) goto LAB_00047830;" (if "if") (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar2 != (undefined4 *)0x0" (identifier "puVar2") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_00047830;" (goto "goto") (statement_identifier "LAB_00047830") (; ";"))) (} "}"))) (expression_statement "iVar3 = param_1[1];" (assignment_expression "iVar3 = param_1[1]" (identifier "iVar3") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "iVar5 = ((int *)*param_1)[4];" (assignment_expression "iVar5 = ((int *)*param_1)[4]" (identifier "iVar5") (= "=") (subscript_expression "((int *)*param_1)[4]" (parenthesized_expression "((int *)*param_1)" (( "(") (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")")) ([ "[") (number_literal "4") (] "]"))) (; ";")) (if_statement "if (iVar5 <= iVar3) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar5 <= iVar3)" (( "(") (binary_expression "iVar5 <= iVar3" (identifier "iVar5") (<= "<=") (identifier "iVar3")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "puVar1 = (undefined4 *)(*(int *)*param_1 + iVar3 * 0x10);" (assignment_expression "puVar1 = (undefined4 *)(*(int *)*param_1 + iVar3 * 0x10)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)(*(int *)*param_1 + iVar3 * 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)*param_1 + iVar3 * 0x10)" (( "(") (binary_expression "*(int *)*param_1 + iVar3 * 0x10" (pointer_expression "*(int *)*param_1" (* "*") (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (+ "+") (binary_expression "iVar3 * 0x10" (identifier "iVar3") (* "*") (number_literal "0x10"))) () ")")))) (; ";")) (expression_statement "puVar2 = (undefined4 *)*puVar1;" (assignment_expression "puVar2 = (undefined4 *)*puVar1" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)*puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) (; ";")) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n    do {\n      iVar4 = iVar3;\n      iVar3 = iVar4 + 1;\n      puVar1 = puVar1 + 4;\n      if (iVar3 == iVar5) {\n        return 0;\n      }\n      puVar2 = (undefined4 *)*puVar1;\n    } while (puVar2 == (undefined4 *)0x0);\n    param_1[2] = puVar2;\n    param_1[1] = iVar4 + 2;\n    if (puVar2 == (undefined4 *)0x0) {\n      return 0;\n    }\n  }\n  else {\n    param_1[2] = puVar2;\n    param_1[1] = iVar3 + 1;\n  }" (if "if") (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar2 == (undefined4 *)0x0" (identifier "puVar2") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    do {\n      iVar4 = iVar3;\n      iVar3 = iVar4 + 1;\n      puVar1 = puVar1 + 4;\n      if (iVar3 == iVar5) {\n        return 0;\n      }\n      puVar2 = (undefined4 *)*puVar1;\n    } while (puVar2 == (undefined4 *)0x0);\n    param_1[2] = puVar2;\n    param_1[1] = iVar4 + 2;\n    if (puVar2 == (undefined4 *)0x0) {\n      return 0;\n    }\n  }" ({ "{") (do_statement "do {\n      iVar4 = iVar3;\n      iVar3 = iVar4 + 1;\n      puVar1 = puVar1 + 4;\n      if (iVar3 == iVar5) {\n        return 0;\n      }\n      puVar2 = (undefined4 *)*puVar1;\n    } while (puVar2 == (undefined4 *)0x0);" (do "do") (compound_statement "{\n      iVar4 = iVar3;\n      iVar3 = iVar4 + 1;\n      puVar1 = puVar1 + 4;\n      if (iVar3 == iVar5) {\n        return 0;\n      }\n      puVar2 = (undefined4 *)*puVar1;\n    }" ({ "{") (expression_statement "iVar4 = iVar3;" (assignment_expression "iVar4 = iVar3" (identifier "iVar4") (= "=") (identifier "iVar3")) (; ";")) (expression_statement "iVar3 = iVar4 + 1;" (assignment_expression "iVar3 = iVar4 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar1 = puVar1 + 4;" (assignment_expression "puVar1 = puVar1 + 4" (identifier "puVar1") (= "=") (binary_expression "puVar1 + 4" (identifier "puVar1") (+ "+") (number_literal "4"))) (; ";")) (if_statement "if (iVar3 == iVar5) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(iVar3 == iVar5)" (( "(") (binary_expression "iVar3 == iVar5" (identifier "iVar3") (== "==") (identifier "iVar5")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "puVar2 = (undefined4 *)*puVar1;" (assignment_expression "puVar2 = (undefined4 *)*puVar1" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)*puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar2 == (undefined4 *)0x0" (identifier "puVar2") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (expression_statement "param_1[2] = puVar2;" (assignment_expression "param_1[2] = puVar2" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "puVar2")) (; ";")) (expression_statement "param_1[1] = iVar4 + 2;" (assignment_expression "param_1[1] = iVar4 + 2" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar4 + 2" (identifier "iVar4") (+ "+") (number_literal "2"))) (; ";")) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar2 == (undefined4 *)0x0" (identifier "puVar2") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    param_1[2] = puVar2;\n    param_1[1] = iVar3 + 1;\n  }" (else "else") (compound_statement "{\n    param_1[2] = puVar2;\n    param_1[1] = iVar3 + 1;\n  }" ({ "{") (expression_statement "param_1[2] = puVar2;" (assignment_expression "param_1[2] = puVar2" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "puVar2")) (; ";")) (expression_statement "param_1[1] = iVar3 + 1;" (assignment_expression "param_1[1] = iVar3 + 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (labeled_statement "LAB_00047830:\n  return *puVar2;" (statement_identifier "LAB_00047830") (: ":") (return_statement "return *puVar2;" (return "return") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (; ";"))) (} "}")))

/* WARNING: Unknown calling convention */

type_1 * function_1(type_2 *iter)

{
  type_3 *var_5;
  type_4 *var_1;
  type_5 *h;
  int var_3;
  int var_4;
  int var_2;
  
  if (iter->current_element != (type_4 *)0x0) {
    var_1 = iter->current_element->next;
    iter->current_element = var_1;
    if (var_1 != (type_4 *)0x0) goto LAB_00047830;
  }
  var_3 = iter->slot_index;
  var_2 = iter->hash->slots;
  if (var_2 <= var_3) {
    return (type_1 *)0x0;
  }
  var_5 = iter->hash->table + var_3;
  var_1 = var_5->head;
  if (var_1 == (type_4 *)0x0) {
    do {
      var_4 = var_3;
      var_3 = var_4 + 1;
      var_5 = var_5 + 1;
      if (var_3 == var_2) {
        return (type_1 *)0x0;
      }
      var_1 = var_5->head;
    } while (var_1 == (type_4 *)0x0);
    iter->current_element = var_1;
    iter->slot_index = var_4 + 2;
    if (var_1 == (type_4 *)0x0) {
      return (type_1 *)0x0;
    }
  }
  else {
    iter->current_element = var_1;
    iter->slot_index = var_3 + 1;
  }
LAB_00047830:
  return (type_1 *)var_1->ptr;
}


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

undefined4 MASKED(undefined4 *param_1)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  
  if (param_1[2] != 0) {
    puVar2 = *(undefined4 **)(param_1[2] + 8);
    param_1[2] = puVar2;
    if (puVar2 != (undefined4 *)0x0) goto LAB_00047830;
  }
  iVar3 = param_1[1];
  iVar5 = ((int *)*param_1)[4];
  if (iVar5 <= iVar3) {
    return 0;
  }
  puVar1 = (undefined4 *)(*(int *)*param_1 + iVar3 * 0x10);
  puVar2 = (undefined4 *)*puVar1;
  if (puVar2 == (undefined4 *)0x0) {
    do {
      iVar4 = iVar3;
      iVar3 = iVar4 + 1;
      puVar1 = puVar1 + 4;
      if (iVar3 == iVar5) {
        return 0;
      }
      puVar2 = (undefined4 *)*puVar1;
    } while (puVar2 == (undefined4 *)0x0);
    param_1[2] = puVar2;
    param_1[1] = iVar4 + 2;
    if (puVar2 == (undefined4 *)0x0) {
      return 0;
    }
  }
  else {
    param_1[2] = puVar2;
    param_1[1] = iVar3 + 1;
  }
LAB_00047830:
  return *puVar2;
}

