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

lang_input_statement_type * __regparm3 lookup_name(char *name)

{
  int iVar1;
  lang_statement_union *entry;
  bfd_boolean bVar2;
  
  entry = input_file_chain.head;
  if (input_file_chain.head != (lang_statement_union *)0x0) {
    do {
      if (((entry->wild_statement).filenames_sorted != 0) &&
         (iVar1 = filename_cmp((entry->wild_statement).filenames_sorted,name), iVar1 == 0))
      goto LAB_00027d7d;
      entry = (lang_statement_union *)(entry->wild_statement).children.tail;
    } while (entry != (lang_statement_union *)0x0);
  }
  entry = (lang_statement_union *)
          new_afile(name,lang_input_file_is_search_file_enum,default_target,0);
LAB_00027d7d:
  if (((uint)(entry->wild_statement).walk_wild_section_handler & 0x600) == 0x400) {
    bVar2 = load_symbols(&entry->input_statement,(lang_statement_list_type *)0x0);
    if (bVar2 == 0) {
      entry = (lang_statement_union *)0x0;
    }
    return (lang_input_statement_type *)entry;
  }
  return (lang_input_statement_type *)entry;
}



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

int __regparm3 FUN_00027d20(undefined4 param_1)

{
  int *piVar1;
  int iVar2;
  int iVar3;
  
  iVar3 = DAT_001d0384;
  if (DAT_001d0384 != 0) {
    do {
      if ((*(int *)(iVar3 + 0xc) != 0) &&
         (iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1), iVar2 == 0)) goto LAB_00027d7d;
      piVar1 = (int *)(iVar3 + 0x1c);
      iVar3 = *piVar1;
    } while (*piVar1 != 0);
  }
  iVar3 = FUN_00023b40(0);
LAB_00027d7d:
  if ((*(byte *)(iVar3 + 0x25) & 6) == 4) {
    iVar2 = FUN_00027760(iVar3,0);
    if (iVar2 == 0) {
      iVar3 = 0;
    }
    return iVar3;
  }
  return iVar3;
}


PUSH EDI
MOV EDI,EAX
PUSH ESI
PUSH EBX
CALL 0x00017b80
ADD EBX,0x1a62d6
LEA EAX,[EBX + 0x2384]
MOV ESI,dword ptr [EAX]
TEST ESI,ESI
JZ 0x00027d5f
LEA ESI,[ESI]
MOV EAX,dword ptr [ESI + 0xc]
TEST EAX,EAX
JZ 0x00027d58
SUB ESP,0x8
PUSH EDI
PUSH EAX
CALL 0x00016230
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00027d7d
MOV ESI,dword ptr [ESI + 0x1c]
TEST ESI,ESI
JNZ 0x00027d40
SUB ESP,0xc
LEA EAX,[EBX + 0x2554]
MOV EDX,0x4
PUSH 0x0
MOV ECX,dword ptr [EAX]
MOV EAX,EDI
CALL 0x00023b40
ADD ESP,0x10
MOV ESI,EAX
MOVZX EAX,byte ptr [ESI + 0x25]
AND EAX,0x6
CMP AL,0x4
JZ 0x00027d90
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0x8
PUSH 0x0
PUSH ESI
CALL 0x00027760
ADD ESP,0x10
TEST EAX,EAX
MOV EAX,0x0
POP EBX
CMOVZ ESI,EAX
MOV EAX,ESI
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 FUN_00027d20(undefined4 param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = DAT_001d0384;\n  if (DAT_001d0384 != 0) {\n    do {\n      if ((*(int *)(iVar3 + 0xc) != 0) &&\n         (iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1), iVar2 == 0)) goto LAB_00027d7d;\n      piVar1 = (int *)(iVar3 + 0x1c);\n      iVar3 = *piVar1;\n    } while (*piVar1 != 0);\n  }\n  iVar3 = FUN_00023b40(0);\nLAB_00027d7d:\n  if ((*(byte *)(iVar3 + 0x25) & 6) == 4) {\n    iVar2 = FUN_00027760(iVar3,0);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    return iVar3;\n  }\n  return iVar3;\n}\n\n" comment (function_definition "int __regparm3 FUN_00027d20(undefined4 param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = DAT_001d0384;\n  if (DAT_001d0384 != 0) {\n    do {\n      if ((*(int *)(iVar3 + 0xc) != 0) &&\n         (iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1), iVar2 == 0)) goto LAB_00027d7d;\n      piVar1 = (int *)(iVar3 + 0x1c);\n      iVar3 = *piVar1;\n    } while (*piVar1 != 0);\n  }\n  iVar3 = FUN_00023b40(0);\nLAB_00027d7d:\n  if ((*(byte *)(iVar3 + 0x25) & 6) == 4) {\n    iVar2 = FUN_00027760(iVar3,0);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    return iVar3;\n  }\n  return iVar3;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00027d20(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = DAT_001d0384;\n  if (DAT_001d0384 != 0) {\n    do {\n      if ((*(int *)(iVar3 + 0xc) != 0) &&\n         (iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1), iVar2 == 0)) goto LAB_00027d7d;\n      piVar1 = (int *)(iVar3 + 0x1c);\n      iVar3 = *piVar1;\n    } while (*piVar1 != 0);\n  }\n  iVar3 = FUN_00023b40(0);\nLAB_00027d7d:\n  if ((*(byte *)(iVar3 + 0x25) & 6) == 4) {\n    iVar2 = FUN_00027760(iVar3,0);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    return iVar3;\n  }\n  return iVar3;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar3 = DAT_001d0384;" (assignment_expression "iVar3 = DAT_001d0384" identifier = identifier) ;) (if_statement "if (DAT_001d0384 != 0) {\n    do {\n      if ((*(int *)(iVar3 + 0xc) != 0) &&\n         (iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1), iVar2 == 0)) goto LAB_00027d7d;\n      piVar1 = (int *)(iVar3 + 0x1c);\n      iVar3 = *piVar1;\n    } while (*piVar1 != 0);\n  }" if (parenthesized_expression "(DAT_001d0384 != 0)" ( (binary_expression "DAT_001d0384 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      if ((*(int *)(iVar3 + 0xc) != 0) &&\n         (iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1), iVar2 == 0)) goto LAB_00027d7d;\n      piVar1 = (int *)(iVar3 + 0x1c);\n      iVar3 = *piVar1;\n    } while (*piVar1 != 0);\n  }" { (do_statement "do {\n      if ((*(int *)(iVar3 + 0xc) != 0) &&\n         (iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1), iVar2 == 0)) goto LAB_00027d7d;\n      piVar1 = (int *)(iVar3 + 0x1c);\n      iVar3 = *piVar1;\n    } while (*piVar1 != 0);" do (compound_statement "{\n      if ((*(int *)(iVar3 + 0xc) != 0) &&\n         (iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1), iVar2 == 0)) goto LAB_00027d7d;\n      piVar1 = (int *)(iVar3 + 0x1c);\n      iVar3 = *piVar1;\n    }" { (if_statement "if ((*(int *)(iVar3 + 0xc) != 0) &&\n         (iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1), iVar2 == 0)) goto LAB_00027d7d;" if (parenthesized_expression "((*(int *)(iVar3 + 0xc) != 0) &&\n         (iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1), iVar2 == 0))" ( (binary_expression "(*(int *)(iVar3 + 0xc) != 0) &&\n         (iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1), iVar2 == 0)" (parenthesized_expression "(*(int *)(iVar3 + 0xc) != 0)" ( (binary_expression "*(int *)(iVar3 + 0xc) != 0" (pointer_expression "*(int *)(iVar3 + 0xc)" * (cast_expression "(int *)(iVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1), iVar2 == 0)" ( (comma_expression "iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1), iVar2 == 0" (assignment_expression "iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1)" identifier = (call_expression "filename_cmp(*(int *)(iVar3 + 0xc),param_1)" identifier (argument_list "(*(int *)(iVar3 + 0xc),param_1)" ( (pointer_expression "*(int *)(iVar3 + 0xc)" * (cast_expression "(int *)(iVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) , identifier )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) (goto_statement "goto LAB_00027d7d;" goto statement_identifier ;)) (expression_statement "piVar1 = (int *)(iVar3 + 0x1c);" (assignment_expression "piVar1 = (int *)(iVar3 + 0x1c)" identifier = (cast_expression "(int *)(iVar3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) )))) ;) (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) }) while (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) ;) })) (expression_statement "iVar3 = FUN_00023b40(0);" (assignment_expression "iVar3 = FUN_00023b40(0)" identifier = (call_expression "FUN_00023b40(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (labeled_statement "LAB_00027d7d:\n  if ((*(byte *)(iVar3 + 0x25) & 6) == 4) {\n    iVar2 = FUN_00027760(iVar3,0);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    return iVar3;\n  }" statement_identifier : (if_statement "if ((*(byte *)(iVar3 + 0x25) & 6) == 4) {\n    iVar2 = FUN_00027760(iVar3,0);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    return iVar3;\n  }" if (parenthesized_expression "((*(byte *)(iVar3 + 0x25) & 6) == 4)" ( (binary_expression "(*(byte *)(iVar3 + 0x25) & 6) == 4" (parenthesized_expression "(*(byte *)(iVar3 + 0x25) & 6)" ( (binary_expression "*(byte *)(iVar3 + 0x25) & 6" (pointer_expression "*(byte *)(iVar3 + 0x25)" * (cast_expression "(byte *)(iVar3 + 0x25)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x25)" ( (binary_expression "iVar3 + 0x25" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    iVar2 = FUN_00027760(iVar3,0);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    return iVar3;\n  }" { (expression_statement "iVar2 = FUN_00027760(iVar3,0);" (assignment_expression "iVar2 = FUN_00027760(iVar3,0)" identifier = (call_expression "FUN_00027760(iVar3,0)" identifier (argument_list "(iVar3,0)" ( identifier , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n      iVar3 = 0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar3 = 0;\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) })) (return_statement "return iVar3;" return identifier ;) }))) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nlang_input_statement_type * __regparm3 lookup_name(char *name)\n\n{\n  int iVar1;\n  lang_statement_union *entry;\n  bfd_boolean bVar2;\n  \n  entry = input_file_chain.head;\n  if (input_file_chain.head != (lang_statement_union *)0x0) {\n    do {\n      if (((entry->wild_statement).filenames_sorted != 0) &&\n         (iVar1 = filename_cmp((entry->wild_statement).filenames_sorted,name), iVar1 == 0))\n      goto LAB_00027d7d;\n      entry = (lang_statement_union *)(entry->wild_statement).children.tail;\n    } while (entry != (lang_statement_union *)0x0);\n  }\n  entry = (lang_statement_union *)\n          new_afile(name,lang_input_file_is_search_file_enum,default_target,0);\nLAB_00027d7d:\n  if (((uint)(entry->wild_statement).walk_wild_section_handler & 0x600) == 0x400) {\n    bVar2 = load_symbols(&entry->input_statement,(lang_statement_list_type *)0x0);\n    if (bVar2 == 0) {\n      entry = (lang_statement_union *)0x0;\n    }\n    return (lang_input_statement_type *)entry;\n  }\n  return (lang_input_statement_type *)entry;\n}\n\n" comment (ERROR "lang_input_statement_type * __regparm3 lookup_name(char *name)" (binary_expression "lang_input_statement_type * __regparm3 lookup_name(char *name)" identifier * (ERROR "__regparm3" identifier) (call_expression "lookup_name(char *name)" identifier (argument_list "(char *name)" ( (binary_expression "char *name" identifier * identifier) ))))) (compound_statement "{\n  int iVar1;\n  lang_statement_union *entry;\n  bfd_boolean bVar2;\n  \n  entry = input_file_chain.head;\n  if (input_file_chain.head != (lang_statement_union *)0x0) {\n    do {\n      if (((entry->wild_statement).filenames_sorted != 0) &&\n         (iVar1 = filename_cmp((entry->wild_statement).filenames_sorted,name), iVar1 == 0))\n      goto LAB_00027d7d;\n      entry = (lang_statement_union *)(entry->wild_statement).children.tail;\n    } while (entry != (lang_statement_union *)0x0);\n  }\n  entry = (lang_statement_union *)\n          new_afile(name,lang_input_file_is_search_file_enum,default_target,0);\nLAB_00027d7d:\n  if (((uint)(entry->wild_statement).walk_wild_section_handler & 0x600) == 0x400) {\n    bVar2 = load_symbols(&entry->input_statement,(lang_statement_list_type *)0x0);\n    if (bVar2 == 0) {\n      entry = (lang_statement_union *)0x0;\n    }\n    return (lang_input_statement_type *)entry;\n  }\n  return (lang_input_statement_type *)entry;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "lang_statement_union *entry;" type_identifier (pointer_declarator "*entry" * identifier) ;) (declaration "bfd_boolean bVar2;" type_identifier identifier ;) (expression_statement "entry = input_file_chain.head;" (assignment_expression "entry = input_file_chain.head" identifier = (field_expression "input_file_chain.head" identifier . field_identifier)) ;) (if_statement "if (input_file_chain.head != (lang_statement_union *)0x0) {\n    do {\n      if (((entry->wild_statement).filenames_sorted != 0) &&\n         (iVar1 = filename_cmp((entry->wild_statement).filenames_sorted,name), iVar1 == 0))\n      goto LAB_00027d7d;\n      entry = (lang_statement_union *)(entry->wild_statement).children.tail;\n    } while (entry != (lang_statement_union *)0x0);\n  }" if (parenthesized_expression "(input_file_chain.head != (lang_statement_union *)0x0)" ( (binary_expression "input_file_chain.head != (lang_statement_union *)0x0" (field_expression "input_file_chain.head" identifier . field_identifier) != (cast_expression "(lang_statement_union *)0x0" ( (type_descriptor "lang_statement_union *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      if (((entry->wild_statement).filenames_sorted != 0) &&\n         (iVar1 = filename_cmp((entry->wild_statement).filenames_sorted,name), iVar1 == 0))\n      goto LAB_00027d7d;\n      entry = (lang_statement_union *)(entry->wild_statement).children.tail;\n    } while (entry != (lang_statement_union *)0x0);\n  }" { (do_statement "do {\n      if (((entry->wild_statement).filenames_sorted != 0) &&\n         (iVar1 = filename_cmp((entry->wild_statement).filenames_sorted,name), iVar1 == 0))\n      goto LAB_00027d7d;\n      entry = (lang_statement_union *)(entry->wild_statement).children.tail;\n    } while (entry != (lang_statement_union *)0x0);" do (compound_statement "{\n      if (((entry->wild_statement).filenames_sorted != 0) &&\n         (iVar1 = filename_cmp((entry->wild_statement).filenames_sorted,name), iVar1 == 0))\n      goto LAB_00027d7d;\n      entry = (lang_statement_union *)(entry->wild_statement).children.tail;\n    }" { (if_statement "if (((entry->wild_statement).filenames_sorted != 0) &&\n         (iVar1 = filename_cmp((entry->wild_statement).filenames_sorted,name), iVar1 == 0))\n      goto LAB_00027d7d;" if (parenthesized_expression "(((entry->wild_statement).filenames_sorted != 0) &&\n         (iVar1 = filename_cmp((entry->wild_statement).filenames_sorted,name), iVar1 == 0))" ( (binary_expression "((entry->wild_statement).filenames_sorted != 0) &&\n         (iVar1 = filename_cmp((entry->wild_statement).filenames_sorted,name), iVar1 == 0)" (parenthesized_expression "((entry->wild_statement).filenames_sorted != 0)" ( (binary_expression "(entry->wild_statement).filenames_sorted != 0" (field_expression "(entry->wild_statement).filenames_sorted" (parenthesized_expression "(entry->wild_statement)" ( (field_expression "entry->wild_statement" identifier -> field_identifier) )) . field_identifier) != number_literal) )) && (parenthesized_expression "(iVar1 = filename_cmp((entry->wild_statement).filenames_sorted,name), iVar1 == 0)" ( (comma_expression "iVar1 = filename_cmp((entry->wild_statement).filenames_sorted,name), iVar1 == 0" (assignment_expression "iVar1 = filename_cmp((entry->wild_statement).filenames_sorted,name)" identifier = (call_expression "filename_cmp((entry->wild_statement).filenames_sorted,name)" identifier (argument_list "((entry->wild_statement).filenames_sorted,name)" ( (field_expression "(entry->wild_statement).filenames_sorted" (parenthesized_expression "(entry->wild_statement)" ( (field_expression "entry->wild_statement" identifier -> field_identifier) )) . field_identifier) , identifier )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (goto_statement "goto LAB_00027d7d;" goto statement_identifier ;)) (expression_statement "entry = (lang_statement_union *)(entry->wild_statement).children.tail;" (assignment_expression "entry = (lang_statement_union *)(entry->wild_statement).children.tail" identifier = (cast_expression "(lang_statement_union *)(entry->wild_statement).children.tail" ( (type_descriptor "lang_statement_union *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(entry->wild_statement).children.tail" (field_expression "(entry->wild_statement).children" (parenthesized_expression "(entry->wild_statement)" ( (field_expression "entry->wild_statement" identifier -> field_identifier) )) . field_identifier) . field_identifier))) ;) }) while (parenthesized_expression "(entry != (lang_statement_union *)0x0)" ( (binary_expression "entry != (lang_statement_union *)0x0" identifier != (cast_expression "(lang_statement_union *)0x0" ( (type_descriptor "lang_statement_union *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "entry = (lang_statement_union *)\n          new_afile(name,lang_input_file_is_search_file_enum,default_target,0);" (assignment_expression "entry = (lang_statement_union *)\n          new_afile(name,lang_input_file_is_search_file_enum,default_target,0)" identifier = (cast_expression "(lang_statement_union *)\n          new_afile(name,lang_input_file_is_search_file_enum,default_target,0)" ( (type_descriptor "lang_statement_union *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "new_afile(name,lang_input_file_is_search_file_enum,default_target,0)" identifier (argument_list "(name,lang_input_file_is_search_file_enum,default_target,0)" ( identifier , identifier , identifier , number_literal ))))) ;) (labeled_statement "LAB_00027d7d:\n  if (((uint)(entry->wild_statement).walk_wild_section_handler & 0x600) == 0x400) {\n    bVar2 = load_symbols(&entry->input_statement,(lang_statement_list_type *)0x0);\n    if (bVar2 == 0) {\n      entry = (lang_statement_union *)0x0;\n    }\n    return (lang_input_statement_type *)entry;\n  }" statement_identifier : (if_statement "if (((uint)(entry->wild_statement).walk_wild_section_handler & 0x600) == 0x400) {\n    bVar2 = load_symbols(&entry->input_statement,(lang_statement_list_type *)0x0);\n    if (bVar2 == 0) {\n      entry = (lang_statement_union *)0x0;\n    }\n    return (lang_input_statement_type *)entry;\n  }" if (parenthesized_expression "(((uint)(entry->wild_statement).walk_wild_section_handler & 0x600) == 0x400)" ( (binary_expression "((uint)(entry->wild_statement).walk_wild_section_handler & 0x600) == 0x400" (parenthesized_expression "((uint)(entry->wild_statement).walk_wild_section_handler & 0x600)" ( (binary_expression "(uint)(entry->wild_statement).walk_wild_section_handler & 0x600" (field_expression "(uint)(entry->wild_statement).walk_wild_section_handler" (call_expression "(uint)(entry->wild_statement)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(entry->wild_statement)" ( (field_expression "entry->wild_statement" identifier -> field_identifier) ))) . field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    bVar2 = load_symbols(&entry->input_statement,(lang_statement_list_type *)0x0);\n    if (bVar2 == 0) {\n      entry = (lang_statement_union *)0x0;\n    }\n    return (lang_input_statement_type *)entry;\n  }" { (expression_statement "bVar2 = load_symbols(&entry->input_statement,(lang_statement_list_type *)0x0);" (assignment_expression "bVar2 = load_symbols(&entry->input_statement,(lang_statement_list_type *)0x0)" identifier = (call_expression "load_symbols(&entry->input_statement,(lang_statement_list_type *)0x0)" identifier (argument_list "(&entry->input_statement,(lang_statement_list_type *)0x0)" ( (pointer_expression "&entry->input_statement" & (field_expression "entry->input_statement" identifier -> field_identifier)) , (cast_expression "(lang_statement_list_type *)0x0" ( (type_descriptor "lang_statement_list_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (if_statement "if (bVar2 == 0) {\n      entry = (lang_statement_union *)0x0;\n    }" if (parenthesized_expression "(bVar2 == 0)" ( (binary_expression "bVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      entry = (lang_statement_union *)0x0;\n    }" { (expression_statement "entry = (lang_statement_union *)0x0;" (assignment_expression "entry = (lang_statement_union *)0x0" identifier = (cast_expression "(lang_statement_union *)0x0" ( (type_descriptor "lang_statement_union *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (return_statement "return (lang_input_statement_type *)entry;" return (cast_expression "(lang_input_statement_type *)entry" ( (type_descriptor "lang_input_statement_type *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ;) }))) (return_statement "return (lang_input_statement_type *)entry;" return (cast_expression "(lang_input_statement_type *)entry" ( (type_descriptor "lang_input_statement_type *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ;) }))
(translation_unit "int __regparm3 FUN_00027d20(undefined4 param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = DAT_001d0384;\n  if (DAT_001d0384 != 0) {\n    do {\n      if ((*(int *)(iVar3 + 0xc) != 0) &&\n         (iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1), iVar2 == 0)) goto LAB_00027d7d;\n      piVar1 = (int *)(iVar3 + 0x1c);\n      iVar3 = *piVar1;\n    } while (*piVar1 != 0);\n  }\n  iVar3 = FUN_00023b40(0);\nLAB_00027d7d:\n  if ((*(byte *)(iVar3 + 0x25) & 6) == 4) {\n    iVar2 = FUN_00027760(iVar3,0);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    return iVar3;\n  }\n  return iVar3;\n}\n\n" (function_definition "int __regparm3 FUN_00027d20(undefined4 param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = DAT_001d0384;\n  if (DAT_001d0384 != 0) {\n    do {\n      if ((*(int *)(iVar3 + 0xc) != 0) &&\n         (iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1), iVar2 == 0)) goto LAB_00027d7d;\n      piVar1 = (int *)(iVar3 + 0x1c);\n      iVar3 = *piVar1;\n    } while (*piVar1 != 0);\n  }\n  iVar3 = FUN_00023b40(0);\nLAB_00027d7d:\n  if ((*(byte *)(iVar3 + 0x25) & 6) == 4) {\n    iVar2 = FUN_00027760(iVar3,0);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    return iVar3;\n  }\n  return iVar3;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00027d20(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = DAT_001d0384;\n  if (DAT_001d0384 != 0) {\n    do {\n      if ((*(int *)(iVar3 + 0xc) != 0) &&\n         (iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1), iVar2 == 0)) goto LAB_00027d7d;\n      piVar1 = (int *)(iVar3 + 0x1c);\n      iVar3 = *piVar1;\n    } while (*piVar1 != 0);\n  }\n  iVar3 = FUN_00023b40(0);\nLAB_00027d7d:\n  if ((*(byte *)(iVar3 + 0x25) & 6) == 4) {\n    iVar2 = FUN_00027760(iVar3,0);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    return iVar3;\n  }\n  return iVar3;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar3 = DAT_001d0384;" (assignment_expression "iVar3 = DAT_001d0384" identifier = identifier) ;) (if_statement "if (DAT_001d0384 != 0) {\n    do {\n      if ((*(int *)(iVar3 + 0xc) != 0) &&\n         (iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1), iVar2 == 0)) goto LAB_00027d7d;\n      piVar1 = (int *)(iVar3 + 0x1c);\n      iVar3 = *piVar1;\n    } while (*piVar1 != 0);\n  }" if (parenthesized_expression "(DAT_001d0384 != 0)" ( (binary_expression "DAT_001d0384 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      if ((*(int *)(iVar3 + 0xc) != 0) &&\n         (iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1), iVar2 == 0)) goto LAB_00027d7d;\n      piVar1 = (int *)(iVar3 + 0x1c);\n      iVar3 = *piVar1;\n    } while (*piVar1 != 0);\n  }" { (do_statement "do {\n      if ((*(int *)(iVar3 + 0xc) != 0) &&\n         (iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1), iVar2 == 0)) goto LAB_00027d7d;\n      piVar1 = (int *)(iVar3 + 0x1c);\n      iVar3 = *piVar1;\n    } while (*piVar1 != 0);" do (compound_statement "{\n      if ((*(int *)(iVar3 + 0xc) != 0) &&\n         (iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1), iVar2 == 0)) goto LAB_00027d7d;\n      piVar1 = (int *)(iVar3 + 0x1c);\n      iVar3 = *piVar1;\n    }" { (if_statement "if ((*(int *)(iVar3 + 0xc) != 0) &&\n         (iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1), iVar2 == 0)) goto LAB_00027d7d;" if (parenthesized_expression "((*(int *)(iVar3 + 0xc) != 0) &&\n         (iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1), iVar2 == 0))" ( (binary_expression "(*(int *)(iVar3 + 0xc) != 0) &&\n         (iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1), iVar2 == 0)" (parenthesized_expression "(*(int *)(iVar3 + 0xc) != 0)" ( (binary_expression "*(int *)(iVar3 + 0xc) != 0" (pointer_expression "*(int *)(iVar3 + 0xc)" * (cast_expression "(int *)(iVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1), iVar2 == 0)" ( (comma_expression "iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1), iVar2 == 0" (assignment_expression "iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1)" identifier = (call_expression "filename_cmp(*(int *)(iVar3 + 0xc),param_1)" identifier (argument_list "(*(int *)(iVar3 + 0xc),param_1)" ( (pointer_expression "*(int *)(iVar3 + 0xc)" * (cast_expression "(int *)(iVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) , identifier )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) (goto_statement "goto LAB_00027d7d;" goto statement_identifier ;)) (expression_statement "piVar1 = (int *)(iVar3 + 0x1c);" (assignment_expression "piVar1 = (int *)(iVar3 + 0x1c)" identifier = (cast_expression "(int *)(iVar3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) )))) ;) (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) }) while (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) ;) })) (expression_statement "iVar3 = FUN_00023b40(0);" (assignment_expression "iVar3 = FUN_00023b40(0)" identifier = (call_expression "FUN_00023b40(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (labeled_statement "LAB_00027d7d:\n  if ((*(byte *)(iVar3 + 0x25) & 6) == 4) {\n    iVar2 = FUN_00027760(iVar3,0);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    return iVar3;\n  }" statement_identifier : (if_statement "if ((*(byte *)(iVar3 + 0x25) & 6) == 4) {\n    iVar2 = FUN_00027760(iVar3,0);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    return iVar3;\n  }" if (parenthesized_expression "((*(byte *)(iVar3 + 0x25) & 6) == 4)" ( (binary_expression "(*(byte *)(iVar3 + 0x25) & 6) == 4" (parenthesized_expression "(*(byte *)(iVar3 + 0x25) & 6)" ( (binary_expression "*(byte *)(iVar3 + 0x25) & 6" (pointer_expression "*(byte *)(iVar3 + 0x25)" * (cast_expression "(byte *)(iVar3 + 0x25)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x25)" ( (binary_expression "iVar3 + 0x25" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    iVar2 = FUN_00027760(iVar3,0);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    return iVar3;\n  }" { (expression_statement "iVar2 = FUN_00027760(iVar3,0);" (assignment_expression "iVar2 = FUN_00027760(iVar3,0)" identifier = (call_expression "FUN_00027760(iVar3,0)" identifier (argument_list "(iVar3,0)" ( identifier , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n      iVar3 = 0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar3 = 0;\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) })) (return_statement "return iVar3;" return identifier ;) }))) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT )))) , (binary_expression IDENT == LIT)) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) }))) (return_statement return IDENT ;) })))
(function_definition "int __regparm3 FUN_00027d20(undefined4 param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = DAT_001d0384;\n  if (DAT_001d0384 != 0) {\n    do {\n      if ((*(int *)(iVar3 + 0xc) != 0) &&\n         (iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1), iVar2 == 0)) goto LAB_00027d7d;\n      piVar1 = (int *)(iVar3 + 0x1c);\n      iVar3 = *piVar1;\n    } while (*piVar1 != 0);\n  }\n  iVar3 = FUN_00023b40(0);\nLAB_00027d7d:\n  if ((*(byte *)(iVar3 + 0x25) & 6) == 4) {\n    iVar2 = FUN_00027760(iVar3,0);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    return iVar3;\n  }\n  return iVar3;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00027d20(undefined4 param_1)" (identifier "FUN_00027d20") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = DAT_001d0384;\n  if (DAT_001d0384 != 0) {\n    do {\n      if ((*(int *)(iVar3 + 0xc) != 0) &&\n         (iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1), iVar2 == 0)) goto LAB_00027d7d;\n      piVar1 = (int *)(iVar3 + 0x1c);\n      iVar3 = *piVar1;\n    } while (*piVar1 != 0);\n  }\n  iVar3 = FUN_00023b40(0);\nLAB_00027d7d:\n  if ((*(byte *)(iVar3 + 0x25) & 6) == 4) {\n    iVar2 = FUN_00027760(iVar3,0);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    return iVar3;\n  }\n  return iVar3;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "iVar3 = DAT_001d0384;" (assignment_expression "iVar3 = DAT_001d0384" (identifier "iVar3") (= "=") (identifier "DAT_001d0384")) (; ";")) (if_statement "if (DAT_001d0384 != 0) {\n    do {\n      if ((*(int *)(iVar3 + 0xc) != 0) &&\n         (iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1), iVar2 == 0)) goto LAB_00027d7d;\n      piVar1 = (int *)(iVar3 + 0x1c);\n      iVar3 = *piVar1;\n    } while (*piVar1 != 0);\n  }" (if "if") (parenthesized_expression "(DAT_001d0384 != 0)" (( "(") (binary_expression "DAT_001d0384 != 0" (identifier "DAT_001d0384") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    do {\n      if ((*(int *)(iVar3 + 0xc) != 0) &&\n         (iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1), iVar2 == 0)) goto LAB_00027d7d;\n      piVar1 = (int *)(iVar3 + 0x1c);\n      iVar3 = *piVar1;\n    } while (*piVar1 != 0);\n  }" ({ "{") (do_statement "do {\n      if ((*(int *)(iVar3 + 0xc) != 0) &&\n         (iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1), iVar2 == 0)) goto LAB_00027d7d;\n      piVar1 = (int *)(iVar3 + 0x1c);\n      iVar3 = *piVar1;\n    } while (*piVar1 != 0);" (do "do") (compound_statement "{\n      if ((*(int *)(iVar3 + 0xc) != 0) &&\n         (iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1), iVar2 == 0)) goto LAB_00027d7d;\n      piVar1 = (int *)(iVar3 + 0x1c);\n      iVar3 = *piVar1;\n    }" ({ "{") (if_statement "if ((*(int *)(iVar3 + 0xc) != 0) &&\n         (iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1), iVar2 == 0)) goto LAB_00027d7d;" (if "if") (parenthesized_expression "((*(int *)(iVar3 + 0xc) != 0) &&\n         (iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1), iVar2 == 0))" (( "(") (binary_expression "(*(int *)(iVar3 + 0xc) != 0) &&\n         (iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1), iVar2 == 0)" (parenthesized_expression "(*(int *)(iVar3 + 0xc) != 0)" (( "(") (binary_expression "*(int *)(iVar3 + 0xc) != 0" (pointer_expression "*(int *)(iVar3 + 0xc)" (* "*") (cast_expression "(int *)(iVar3 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0xc)" (( "(") (binary_expression "iVar3 + 0xc" (identifier "iVar3") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1), iVar2 == 0)" (( "(") (comma_expression "iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1), iVar2 == 0" (assignment_expression "iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1)" (identifier "iVar2") (= "=") (call_expression "filename_cmp(*(int *)(iVar3 + 0xc),param_1)" (identifier "filename_cmp") (argument_list "(*(int *)(iVar3 + 0xc),param_1)" (( "(") (pointer_expression "*(int *)(iVar3 + 0xc)" (* "*") (cast_expression "(int *)(iVar3 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0xc)" (( "(") (binary_expression "iVar3 + 0xc" (identifier "iVar3") (+ "+") (number_literal "0xc")) () ")")))) (, ",") (identifier "param_1") () ")")))) (, ",") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0"))) () ")"))) () ")")) (goto_statement "goto LAB_00027d7d;" (goto "goto") (statement_identifier "LAB_00027d7d") (; ";"))) (expression_statement "piVar1 = (int *)(iVar3 + 0x1c);" (assignment_expression "piVar1 = (int *)(iVar3 + 0x1c)" (identifier "piVar1") (= "=") (cast_expression "(int *)(iVar3 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x1c)" (( "(") (binary_expression "iVar3 + 0x1c" (identifier "iVar3") (+ "+") (number_literal "0x1c")) () ")")))) (; ";")) (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" (identifier "iVar3") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*piVar1 != 0)" (( "(") (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (expression_statement "iVar3 = FUN_00023b40(0);" (assignment_expression "iVar3 = FUN_00023b40(0)" (identifier "iVar3") (= "=") (call_expression "FUN_00023b40(0)" (identifier "FUN_00023b40") (argument_list "(0)" (( "(") (number_literal "0") () ")")))) (; ";")) (labeled_statement "LAB_00027d7d:\n  if ((*(byte *)(iVar3 + 0x25) & 6) == 4) {\n    iVar2 = FUN_00027760(iVar3,0);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    return iVar3;\n  }" (statement_identifier "LAB_00027d7d") (: ":") (if_statement "if ((*(byte *)(iVar3 + 0x25) & 6) == 4) {\n    iVar2 = FUN_00027760(iVar3,0);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    return iVar3;\n  }" (if "if") (parenthesized_expression "((*(byte *)(iVar3 + 0x25) & 6) == 4)" (( "(") (binary_expression "(*(byte *)(iVar3 + 0x25) & 6) == 4" (parenthesized_expression "(*(byte *)(iVar3 + 0x25) & 6)" (( "(") (binary_expression "*(byte *)(iVar3 + 0x25) & 6" (pointer_expression "*(byte *)(iVar3 + 0x25)" (* "*") (cast_expression "(byte *)(iVar3 + 0x25)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x25)" (( "(") (binary_expression "iVar3 + 0x25" (identifier "iVar3") (+ "+") (number_literal "0x25")) () ")")))) (& "&") (number_literal "6")) () ")")) (== "==") (number_literal "4")) () ")")) (compound_statement "{\n    iVar2 = FUN_00027760(iVar3,0);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    return iVar3;\n  }" ({ "{") (expression_statement "iVar2 = FUN_00027760(iVar3,0);" (assignment_expression "iVar2 = FUN_00027760(iVar3,0)" (identifier "iVar2") (= "=") (call_expression "FUN_00027760(iVar3,0)" (identifier "FUN_00027760") (argument_list "(iVar3,0)" (( "(") (identifier "iVar3") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      iVar3 = 0;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar3 = 0;\n    }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}")))) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}")))

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

type_4 * __regparm3 lookup_name(char *name)

{
  int var_2;
  type_1 *var_3;
  type_2 var_6;
  
  var_3 = input_file_chain.head;
  if (input_file_chain.head != (type_1 *)0x0) {
    do {
      if (((var_3->wild_statement).filenames_sorted != 0) &&
         (var_2 = var_1((var_3->wild_statement).filenames_sorted,name), var_2 == 0))
      goto LAB_00027d7d;
      var_3 = (type_1 *)(var_3->wild_statement).children.tail;
    } while (var_3 != (type_1 *)0x0);
  }
  var_3 = (type_1 *)
          var_4(name,lang_input_file_is_search_file_enum,default_target,0);
LAB_00027d7d:
  if (((uint)(var_3->wild_statement).walk_wild_section_handler & 0x600) == 0x400) {
    var_6 = var_5(&var_3->input_statement,(type_3 *)0x0);
    if (var_6 == 0) {
      var_3 = (type_1 *)0x0;
    }
    return (type_4 *)var_3;
  }
  return (type_4 *)var_3;
}


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

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

int __regparm3 MASKED(undefined4 param_1)

{
  int *piVar1;
  int iVar2;
  int iVar3;
  
  iVar3 = DAT_001d0384;
  if (DAT_001d0384 != 0) {
    do {
      if ((*(int *)(iVar3 + 0xc) != 0) &&
         (iVar2 = filename_cmp(*(int *)(iVar3 + 0xc),param_1), iVar2 == 0)) goto LAB_00027d7d;
      piVar1 = (int *)(iVar3 + 0x1c);
      iVar3 = *piVar1;
    } while (*piVar1 != 0);
  }
  iVar3 = FUN_00023b40(0);
LAB_00027d7d:
  if ((*(byte *)(iVar3 + 0x25) & 6) == 4) {
    iVar2 = FUN_00027760(iVar3,0);
    if (iVar2 == 0) {
      iVar3 = 0;
    }
    return iVar3;
  }
  return iVar3;
}

