
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void * hash_get_first(Hash_table *table)

{
  void *pvVar1;
  hash_entry *phVar2;
  
  if (table->n_entries == 0) {
    return (void *)0x0;
  }
  phVar2 = table->bucket;
  if (table->bucket_limit <= phVar2) {
    pvVar1 = (void *)hash_get_first_cold_6(0x14b16);
    return pvVar1;
  }
  do {
    if (phVar2->data != (void *)0x0) {
      return phVar2->data;
    }
    phVar2 = phVar2 + 1;
  } while (phVar2 < table->bucket_limit);
  pvVar1 = (void *)hash_get_first_cold_6(0x14b16);
  return pvVar1;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int FUN_00014b10(uint *param_1)

{
  int iVar1;
  int *piVar2;
  
  if (param_1[4] == 0) {
    return 0;
  }
  piVar2 = (int *)*param_1;
  if ((int *)param_1[1] <= piVar2) {
    iVar1 = FUN_00012665(0x14b16);
    return iVar1;
  }
  do {
    if (*piVar2 != 0) {
      return *piVar2;
    }
    piVar2 = piVar2 + 2;
  } while (piVar2 < (int *)param_1[1]);
  iVar1 = FUN_00012665(0x14b16);
  return iVar1;
}


PUSH EBX
CALL 0x00012a80
ADD EBX,0x144ea
SUB ESP,0x8
MOV EAX,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [EAX + 0x10]
TEST EDX,EDX
JZ 0x00014b58
MOV EDX,dword ptr [EAX]
MOV ECX,dword ptr [EAX + 0x4]
CMP EDX,ECX
JC 0x00014b47
JMP 0x00012665
ADD EDX,0x8
CMP EDX,ECX
JNC 0x00014b5f
MOV EAX,dword ptr [EDX]
TEST EAX,EAX
JZ 0x00014b40
ADD ESP,0x8
POP EBX
RET
ADD ESP,0x8
XOR EAX,EAX
POP EBX
RET
JMP 0x00012665
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_00014b10(uint *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  if (param_1[4] == 0) {\n    return 0;\n  }\n  piVar2 = (int *)*param_1;\n  if ((int *)param_1[1] <= piVar2) {\n    iVar1 = FUN_00012665(0x14b16);\n    return iVar1;\n  }\n  do {\n    if (*piVar2 != 0) {\n      return *piVar2;\n    }\n    piVar2 = piVar2 + 2;\n  } while (piVar2 < (int *)param_1[1]);\n  iVar1 = FUN_00012665(0x14b16);\n  return iVar1;\n}\n\n" comment (function_definition "int FUN_00014b10(uint *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  if (param_1[4] == 0) {\n    return 0;\n  }\n  piVar2 = (int *)*param_1;\n  if ((int *)param_1[1] <= piVar2) {\n    iVar1 = FUN_00012665(0x14b16);\n    return iVar1;\n  }\n  do {\n    if (*piVar2 != 0) {\n      return *piVar2;\n    }\n    piVar2 = piVar2 + 2;\n  } while (piVar2 < (int *)param_1[1]);\n  iVar1 = FUN_00012665(0x14b16);\n  return iVar1;\n}" primitive_type (function_declarator "FUN_00014b10(uint *param_1)" identifier (parameter_list "(uint *param_1)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  \n  if (param_1[4] == 0) {\n    return 0;\n  }\n  piVar2 = (int *)*param_1;\n  if ((int *)param_1[1] <= piVar2) {\n    iVar1 = FUN_00012665(0x14b16);\n    return iVar1;\n  }\n  do {\n    if (*piVar2 != 0) {\n      return *piVar2;\n    }\n    piVar2 = piVar2 + 2;\n  } while (piVar2 < (int *)param_1[1]);\n  iVar1 = FUN_00012665(0x14b16);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (if_statement "if (param_1[4] == 0) {\n    return 0;\n  }" if (parenthesized_expression "(param_1[4] == 0)" ( (binary_expression "param_1[4] == 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (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 ((int *)param_1[1] <= piVar2) {\n    iVar1 = FUN_00012665(0x14b16);\n    return iVar1;\n  }" if (parenthesized_expression "((int *)param_1[1] <= piVar2)" ( (binary_expression "(int *)param_1[1] <= piVar2" (cast_expression "(int *)param_1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) <= identifier) )) (compound_statement "{\n    iVar1 = FUN_00012665(0x14b16);\n    return iVar1;\n  }" { (expression_statement "iVar1 = FUN_00012665(0x14b16);" (assignment_expression "iVar1 = FUN_00012665(0x14b16)" identifier = (call_expression "FUN_00012665(0x14b16)" identifier (argument_list "(0x14b16)" ( number_literal )))) ;) (return_statement "return iVar1;" return identifier ;) })) (do_statement "do {\n    if (*piVar2 != 0) {\n      return *piVar2;\n    }\n    piVar2 = piVar2 + 2;\n  } while (piVar2 < (int *)param_1[1]);" do (compound_statement "{\n    if (*piVar2 != 0) {\n      return *piVar2;\n    }\n    piVar2 = piVar2 + 2;\n  }" { (if_statement "if (*piVar2 != 0) {\n      return *piVar2;\n    }" if (parenthesized_expression "(*piVar2 != 0)" ( (binary_expression "*piVar2 != 0" (pointer_expression "*piVar2" * identifier) != number_literal) )) (compound_statement "{\n      return *piVar2;\n    }" { (return_statement "return *piVar2;" return (pointer_expression "*piVar2" * 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 ]))) )) ;) (expression_statement "iVar1 = FUN_00012665(0x14b16);" (assignment_expression "iVar1 = FUN_00012665(0x14b16)" identifier = (call_expression "FUN_00012665(0x14b16)" identifier (argument_list "(0x14b16)" ( number_literal )))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid * hash_get_first(Hash_table *table)\n\n{\n  void *pvVar1;\n  hash_entry *phVar2;\n  \n  if (table->n_entries == 0) {\n    return (void *)0x0;\n  }\n  phVar2 = table->bucket;\n  if (table->bucket_limit <= phVar2) {\n    pvVar1 = (void *)hash_get_first_cold_6(0x14b16);\n    return pvVar1;\n  }\n  do {\n    if (phVar2->data != (void *)0x0) {\n      return phVar2->data;\n    }\n    phVar2 = phVar2 + 1;\n  } while (phVar2 < table->bucket_limit);\n  pvVar1 = (void *)hash_get_first_cold_6(0x14b16);\n  return pvVar1;\n}\n\n" comment comment (function_definition "void * hash_get_first(Hash_table *table)\n\n{\n  void *pvVar1;\n  hash_entry *phVar2;\n  \n  if (table->n_entries == 0) {\n    return (void *)0x0;\n  }\n  phVar2 = table->bucket;\n  if (table->bucket_limit <= phVar2) {\n    pvVar1 = (void *)hash_get_first_cold_6(0x14b16);\n    return pvVar1;\n  }\n  do {\n    if (phVar2->data != (void *)0x0) {\n      return phVar2->data;\n    }\n    phVar2 = phVar2 + 1;\n  } while (phVar2 < table->bucket_limit);\n  pvVar1 = (void *)hash_get_first_cold_6(0x14b16);\n  return pvVar1;\n}" primitive_type (pointer_declarator "* hash_get_first(Hash_table *table)" * (function_declarator "hash_get_first(Hash_table *table)" identifier (parameter_list "(Hash_table *table)" ( (parameter_declaration "Hash_table *table" type_identifier (pointer_declarator "*table" * identifier)) )))) (compound_statement "{\n  void *pvVar1;\n  hash_entry *phVar2;\n  \n  if (table->n_entries == 0) {\n    return (void *)0x0;\n  }\n  phVar2 = table->bucket;\n  if (table->bucket_limit <= phVar2) {\n    pvVar1 = (void *)hash_get_first_cold_6(0x14b16);\n    return pvVar1;\n  }\n  do {\n    if (phVar2->data != (void *)0x0) {\n      return phVar2->data;\n    }\n    phVar2 = phVar2 + 1;\n  } while (phVar2 < table->bucket_limit);\n  pvVar1 = (void *)hash_get_first_cold_6(0x14b16);\n  return pvVar1;\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "hash_entry *phVar2;" type_identifier (pointer_declarator "*phVar2" * identifier) ;) (if_statement "if (table->n_entries == 0) {\n    return (void *)0x0;\n  }" if (parenthesized_expression "(table->n_entries == 0)" ( (binary_expression "table->n_entries == 0" (field_expression "table->n_entries" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    return (void *)0x0;\n  }" { (return_statement "return (void *)0x0;" return (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "phVar2 = table->bucket;" (assignment_expression "phVar2 = table->bucket" identifier = (field_expression "table->bucket" identifier -> field_identifier)) ;) (if_statement "if (table->bucket_limit <= phVar2) {\n    pvVar1 = (void *)hash_get_first_cold_6(0x14b16);\n    return pvVar1;\n  }" if (parenthesized_expression "(table->bucket_limit <= phVar2)" ( (binary_expression "table->bucket_limit <= phVar2" (field_expression "table->bucket_limit" identifier -> field_identifier) <= identifier) )) (compound_statement "{\n    pvVar1 = (void *)hash_get_first_cold_6(0x14b16);\n    return pvVar1;\n  }" { (expression_statement "pvVar1 = (void *)hash_get_first_cold_6(0x14b16);" (assignment_expression "pvVar1 = (void *)hash_get_first_cold_6(0x14b16)" identifier = (cast_expression "(void *)hash_get_first_cold_6(0x14b16)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "hash_get_first_cold_6(0x14b16)" identifier (argument_list "(0x14b16)" ( number_literal ))))) ;) (return_statement "return pvVar1;" return identifier ;) })) (do_statement "do {\n    if (phVar2->data != (void *)0x0) {\n      return phVar2->data;\n    }\n    phVar2 = phVar2 + 1;\n  } while (phVar2 < table->bucket_limit);" do (compound_statement "{\n    if (phVar2->data != (void *)0x0) {\n      return phVar2->data;\n    }\n    phVar2 = phVar2 + 1;\n  }" { (if_statement "if (phVar2->data != (void *)0x0) {\n      return phVar2->data;\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      return phVar2->data;\n    }" { (return_statement "return phVar2->data;" return (field_expression "phVar2->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)) )) ;) (expression_statement "pvVar1 = (void *)hash_get_first_cold_6(0x14b16);" (assignment_expression "pvVar1 = (void *)hash_get_first_cold_6(0x14b16)" identifier = (cast_expression "(void *)hash_get_first_cold_6(0x14b16)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "hash_get_first_cold_6(0x14b16)" identifier (argument_list "(0x14b16)" ( number_literal ))))) ;) (return_statement "return pvVar1;" return identifier ;) })))
(translation_unit "int FUN_00014b10(uint *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  if (param_1[4] == 0) {\n    return 0;\n  }\n  piVar2 = (int *)*param_1;\n  if ((int *)param_1[1] <= piVar2) {\n    iVar1 = FUN_00012665(0x14b16);\n    return iVar1;\n  }\n  do {\n    if (*piVar2 != 0) {\n      return *piVar2;\n    }\n    piVar2 = piVar2 + 2;\n  } while (piVar2 < (int *)param_1[1]);\n  iVar1 = FUN_00012665(0x14b16);\n  return iVar1;\n}\n\n" (function_definition "int FUN_00014b10(uint *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  if (param_1[4] == 0) {\n    return 0;\n  }\n  piVar2 = (int *)*param_1;\n  if ((int *)param_1[1] <= piVar2) {\n    iVar1 = FUN_00012665(0x14b16);\n    return iVar1;\n  }\n  do {\n    if (*piVar2 != 0) {\n      return *piVar2;\n    }\n    piVar2 = piVar2 + 2;\n  } while (piVar2 < (int *)param_1[1]);\n  iVar1 = FUN_00012665(0x14b16);\n  return iVar1;\n}" primitive_type (function_declarator "FUN_00014b10(uint *param_1)" identifier (parameter_list "(uint *param_1)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  \n  if (param_1[4] == 0) {\n    return 0;\n  }\n  piVar2 = (int *)*param_1;\n  if ((int *)param_1[1] <= piVar2) {\n    iVar1 = FUN_00012665(0x14b16);\n    return iVar1;\n  }\n  do {\n    if (*piVar2 != 0) {\n      return *piVar2;\n    }\n    piVar2 = piVar2 + 2;\n  } while (piVar2 < (int *)param_1[1]);\n  iVar1 = FUN_00012665(0x14b16);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (if_statement "if (param_1[4] == 0) {\n    return 0;\n  }" if (parenthesized_expression "(param_1[4] == 0)" ( (binary_expression "param_1[4] == 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (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 ((int *)param_1[1] <= piVar2) {\n    iVar1 = FUN_00012665(0x14b16);\n    return iVar1;\n  }" if (parenthesized_expression "((int *)param_1[1] <= piVar2)" ( (binary_expression "(int *)param_1[1] <= piVar2" (cast_expression "(int *)param_1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) <= identifier) )) (compound_statement "{\n    iVar1 = FUN_00012665(0x14b16);\n    return iVar1;\n  }" { (expression_statement "iVar1 = FUN_00012665(0x14b16);" (assignment_expression "iVar1 = FUN_00012665(0x14b16)" identifier = (call_expression "FUN_00012665(0x14b16)" identifier (argument_list "(0x14b16)" ( number_literal )))) ;) (return_statement "return iVar1;" return identifier ;) })) (do_statement "do {\n    if (*piVar2 != 0) {\n      return *piVar2;\n    }\n    piVar2 = piVar2 + 2;\n  } while (piVar2 < (int *)param_1[1]);" do (compound_statement "{\n    if (*piVar2 != 0) {\n      return *piVar2;\n    }\n    piVar2 = piVar2 + 2;\n  }" { (if_statement "if (*piVar2 != 0) {\n      return *piVar2;\n    }" if (parenthesized_expression "(*piVar2 != 0)" ( (binary_expression "*piVar2 != 0" (pointer_expression "*piVar2" * identifier) != number_literal) )) (compound_statement "{\n      return *piVar2;\n    }" { (return_statement "return *piVar2;" return (pointer_expression "*piVar2" * 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 ]))) )) ;) (expression_statement "iVar1 = FUN_00012665(0x14b16);" (assignment_expression "iVar1 = FUN_00012665(0x14b16)" identifier = (call_expression "FUN_00012665(0x14b16)" identifier (argument_list "(0x14b16)" ( number_literal )))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (return_statement return IDENT ;) })) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (return_statement return (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 ]))) )) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (return_statement return IDENT ;) })))
(function_definition "int FUN_00014b10(uint *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  if (param_1[4] == 0) {\n    return 0;\n  }\n  piVar2 = (int *)*param_1;\n  if ((int *)param_1[1] <= piVar2) {\n    iVar1 = FUN_00012665(0x14b16);\n    return iVar1;\n  }\n  do {\n    if (*piVar2 != 0) {\n      return *piVar2;\n    }\n    piVar2 = piVar2 + 2;\n  } while (piVar2 < (int *)param_1[1]);\n  iVar1 = FUN_00012665(0x14b16);\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_00014b10(uint *param_1)" (identifier "FUN_00014b10") (parameter_list "(uint *param_1)" (( "(") (parameter_declaration "uint *param_1" (type_identifier "uint") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  \n  if (param_1[4] == 0) {\n    return 0;\n  }\n  piVar2 = (int *)*param_1;\n  if ((int *)param_1[1] <= piVar2) {\n    iVar1 = FUN_00012665(0x14b16);\n    return iVar1;\n  }\n  do {\n    if (*piVar2 != 0) {\n      return *piVar2;\n    }\n    piVar2 = piVar2 + 2;\n  } while (piVar2 < (int *)param_1[1]);\n  iVar1 = FUN_00012665(0x14b16);\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (if_statement "if (param_1[4] == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_1[4] == 0)" (( "(") (binary_expression "param_1[4] == 0" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (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 ((int *)param_1[1] <= piVar2) {\n    iVar1 = FUN_00012665(0x14b16);\n    return iVar1;\n  }" (if "if") (parenthesized_expression "((int *)param_1[1] <= piVar2)" (( "(") (binary_expression "(int *)param_1[1] <= 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") (] "]"))) (<= "<=") (identifier "piVar2")) () ")")) (compound_statement "{\n    iVar1 = FUN_00012665(0x14b16);\n    return iVar1;\n  }" ({ "{") (expression_statement "iVar1 = FUN_00012665(0x14b16);" (assignment_expression "iVar1 = FUN_00012665(0x14b16)" (identifier "iVar1") (= "=") (call_expression "FUN_00012665(0x14b16)" (identifier "FUN_00012665") (argument_list "(0x14b16)" (( "(") (number_literal "0x14b16") () ")")))) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (do_statement "do {\n    if (*piVar2 != 0) {\n      return *piVar2;\n    }\n    piVar2 = piVar2 + 2;\n  } while (piVar2 < (int *)param_1[1]);" (do "do") (compound_statement "{\n    if (*piVar2 != 0) {\n      return *piVar2;\n    }\n    piVar2 = piVar2 + 2;\n  }" ({ "{") (if_statement "if (*piVar2 != 0) {\n      return *piVar2;\n    }" (if "if") (parenthesized_expression "(*piVar2 != 0)" (( "(") (binary_expression "*piVar2 != 0" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return *piVar2;\n    }" ({ "{") (return_statement "return *piVar2;" (return "return") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (} "}"))) (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") (] "]")))) () ")")) (; ";")) (expression_statement "iVar1 = FUN_00012665(0x14b16);" (assignment_expression "iVar1 = FUN_00012665(0x14b16)" (identifier "iVar1") (= "=") (call_expression "FUN_00012665(0x14b16)" (identifier "FUN_00012665") (argument_list "(0x14b16)" (( "(") (number_literal "0x14b16") () ")")))) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void * function_1(type_1 *table)

{
  void *pvVar1;
  type_2 *var_1;
  
  if (table->n_entries == 0) {
    return (void *)0x0;
  }
  var_1 = table->bucket;
  if (table->bucket_limit <= var_1) {
    pvVar1 = (void *)var_2(0x14b16);
    return pvVar1;
  }
  do {
    if (var_1->data != (void *)0x0) {
      return var_1->data;
    }
    var_1 = var_1 + 1;
  } while (var_1 < table->bucket_limit);
  pvVar1 = (void *)var_2(0x14b16);
  return pvVar1;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int MASKED(uint *param_1)

{
  int iVar1;
  int *piVar2;
  
  if (param_1[4] == 0) {
    return 0;
  }
  piVar2 = (int *)*param_1;
  if ((int *)param_1[1] <= piVar2) {
    iVar1 = FUN_00012665(0x14b16);
    return iVar1;
  }
  do {
    if (*piVar2 != 0) {
      return *piVar2;
    }
    piVar2 = piVar2 + 2;
  } while (piVar2 < (int *)param_1[1]);
  iVar1 = FUN_00012665(0x14b16);
  return iVar1;
}

