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

char * lang_get_output_target(void)

{
  char *pcVar1;
  int iVar2;
  lang_statement_union *entry;
  
  pcVar1 = output_target;
  if ((output_target != (char *)0x0) ||
     (((current_target != (char *)0x0 && (pcVar1 = current_target, current_target != default_target)
       ) || (pcVar1 = default_target, entry = file_chain.head,
            file_chain.head == (lang_statement_union *)0x0)))) {
    return pcVar1;
  }
  do {
    if (((entry->header).type == lang_input_statement_enum) &&
       (((uint)(entry->wild_statement).walk_wild_section_handler & 0x400) != 0)) {
      ldfile_open_file(&entry->input_statement);
      if (((entry->wild_statement).section_list == (wildcard_list *)0x0) ||
         (iVar2 = bfd_check_format((entry->wild_statement).section_list,1), iVar2 == 0))
      goto LAB_00024238;
      pcVar1 = ((entry->input_statement).the_bfd)->xvec->name;
      if (pcVar1 != (char *)0x0) {
        return pcVar1;
      }
      entry = (entry->wild_statement).children.head;
    }
    else {
LAB_00024238:
      entry = (entry->wild_statement).children.head;
    }
    if (entry == (lang_statement_union *)0x0) {
      return default_target;
    }
  } while( true );
}



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

int FUN_000241f0(void)

{
  int iVar1;
  int iVar2;
  
  iVar1 = DAT_0008cbbc;
  if ((DAT_0008cbbc != 0) ||
     (((DAT_0008c830 != 0 && (iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68)) ||
      (iVar1 = DAT_0008cd68, iVar2 = DAT_0008c77c, DAT_0008c77c == 0)))) {
    return iVar1;
  }
  do {
    if ((*(int *)(iVar2 + 4) == 2) && ((*(byte *)(iVar2 + 0x25) & 4) != 0)) {
      FUN_000324c0(iVar2);
      if ((*(int *)(iVar2 + 0x10) == 0) ||
         (iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1), iVar1 == 0)) goto LAB_00024238;
      iVar1 = **(int **)(*(int *)(iVar2 + 0x10) + 4);
      if (iVar1 != 0) {
        return iVar1;
      }
      iVar2 = *(int *)(iVar2 + 0x18);
    }
    else {
LAB_00024238:
      iVar2 = *(int *)(iVar2 + 0x18);
    }
    if (iVar2 == 0) {
      return DAT_0008cd68;
    }
  } while( true );
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00015a20
ADD EBX,0x67e08
LEA EAX,[EBX + 0xbbc]
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JZ 0x00024210
POP EBX
POP ESI
POP EDI
RET
LEA EDI,[EBX + 0xd68]
MOV EAX,dword ptr [EBX + 0x830]
MOV EDX,dword ptr [EDI]
TEST EAX,EAX
JZ 0x00024226
CMP EAX,EDX
JNZ 0x0002420a
MOV ESI,dword ptr [EBX + 0x77c]
TEST ESI,ESI
JNZ 0x0002423f
JMP 0x00024290
MOV ESI,dword ptr [ESI + 0x18]
TEST ESI,ESI
JZ 0x00024283
CMP dword ptr [ESI + 0x4],0x2
JNZ 0x00024238
TEST byte ptr [ESI + 0x25],0x4
JZ 0x00024238
SUB ESP,0xc
PUSH ESI
CALL 0x000324c0
MOV EAX,dword ptr [ESI + 0x10]
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00024238
SUB ESP,0x8
PUSH 0x1
PUSH EAX
CALL 0x00014a60
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00024238
MOV EAX,dword ptr [ESI + 0x10]
MOV EAX,dword ptr [EAX + 0x4]
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JNZ 0x0002420a
MOV ESI,dword ptr [ESI + 0x18]
TEST ESI,ESI
JNZ 0x0002423f
MOV EAX,dword ptr [EDI]
POP EBX
POP ESI
POP EDI
RET
MOV EAX,EDX
JMP 0x0002420a
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_000241f0(void)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = DAT_0008cbbc;\n  if ((DAT_0008cbbc != 0) ||\n     (((DAT_0008c830 != 0 && (iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68)) ||\n      (iVar1 = DAT_0008cd68, iVar2 = DAT_0008c77c, DAT_0008c77c == 0)))) {\n    return iVar1;\n  }\n  do {\n    if ((*(int *)(iVar2 + 4) == 2) && ((*(byte *)(iVar2 + 0x25) & 4) != 0)) {\n      FUN_000324c0(iVar2);\n      if ((*(int *)(iVar2 + 0x10) == 0) ||\n         (iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1), iVar1 == 0)) goto LAB_00024238;\n      iVar1 = **(int **)(*(int *)(iVar2 + 0x10) + 4);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }\n    else {\nLAB_00024238:\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }\n    if (iVar2 == 0) {\n      return DAT_0008cd68;\n    }\n  } while( true );\n}\n\n" comment (function_definition "int FUN_000241f0(void)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = DAT_0008cbbc;\n  if ((DAT_0008cbbc != 0) ||\n     (((DAT_0008c830 != 0 && (iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68)) ||\n      (iVar1 = DAT_0008cd68, iVar2 = DAT_0008c77c, DAT_0008c77c == 0)))) {\n    return iVar1;\n  }\n  do {\n    if ((*(int *)(iVar2 + 4) == 2) && ((*(byte *)(iVar2 + 0x25) & 4) != 0)) {\n      FUN_000324c0(iVar2);\n      if ((*(int *)(iVar2 + 0x10) == 0) ||\n         (iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1), iVar1 == 0)) goto LAB_00024238;\n      iVar1 = **(int **)(*(int *)(iVar2 + 0x10) + 4);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }\n    else {\nLAB_00024238:\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }\n    if (iVar2 == 0) {\n      return DAT_0008cd68;\n    }\n  } while( true );\n}" primitive_type (function_declarator "FUN_000241f0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = DAT_0008cbbc;\n  if ((DAT_0008cbbc != 0) ||\n     (((DAT_0008c830 != 0 && (iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68)) ||\n      (iVar1 = DAT_0008cd68, iVar2 = DAT_0008c77c, DAT_0008c77c == 0)))) {\n    return iVar1;\n  }\n  do {\n    if ((*(int *)(iVar2 + 4) == 2) && ((*(byte *)(iVar2 + 0x25) & 4) != 0)) {\n      FUN_000324c0(iVar2);\n      if ((*(int *)(iVar2 + 0x10) == 0) ||\n         (iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1), iVar1 == 0)) goto LAB_00024238;\n      iVar1 = **(int **)(*(int *)(iVar2 + 0x10) + 4);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }\n    else {\nLAB_00024238:\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }\n    if (iVar2 == 0) {\n      return DAT_0008cd68;\n    }\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar1 = DAT_0008cbbc;" (assignment_expression "iVar1 = DAT_0008cbbc" identifier = identifier) ;) (if_statement "if ((DAT_0008cbbc != 0) ||\n     (((DAT_0008c830 != 0 && (iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68)) ||\n      (iVar1 = DAT_0008cd68, iVar2 = DAT_0008c77c, DAT_0008c77c == 0)))) {\n    return iVar1;\n  }" if (parenthesized_expression "((DAT_0008cbbc != 0) ||\n     (((DAT_0008c830 != 0 && (iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68)) ||\n      (iVar1 = DAT_0008cd68, iVar2 = DAT_0008c77c, DAT_0008c77c == 0))))" ( (binary_expression "(DAT_0008cbbc != 0) ||\n     (((DAT_0008c830 != 0 && (iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68)) ||\n      (iVar1 = DAT_0008cd68, iVar2 = DAT_0008c77c, DAT_0008c77c == 0)))" (parenthesized_expression "(DAT_0008cbbc != 0)" ( (binary_expression "DAT_0008cbbc != 0" identifier != number_literal) )) || (parenthesized_expression "(((DAT_0008c830 != 0 && (iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68)) ||\n      (iVar1 = DAT_0008cd68, iVar2 = DAT_0008c77c, DAT_0008c77c == 0)))" ( (parenthesized_expression "((DAT_0008c830 != 0 && (iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68)) ||\n      (iVar1 = DAT_0008cd68, iVar2 = DAT_0008c77c, DAT_0008c77c == 0))" ( (binary_expression "(DAT_0008c830 != 0 && (iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68)) ||\n      (iVar1 = DAT_0008cd68, iVar2 = DAT_0008c77c, DAT_0008c77c == 0)" (parenthesized_expression "(DAT_0008c830 != 0 && (iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68))" ( (binary_expression "DAT_0008c830 != 0 && (iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68)" (binary_expression "DAT_0008c830 != 0" identifier != number_literal) && (parenthesized_expression "(iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68)" ( (comma_expression "iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68" (assignment_expression "iVar1 = DAT_0008c830" identifier = identifier) , (binary_expression "DAT_0008c830 != DAT_0008cd68" identifier != identifier)) ))) )) || (parenthesized_expression "(iVar1 = DAT_0008cd68, iVar2 = DAT_0008c77c, DAT_0008c77c == 0)" ( (comma_expression "iVar1 = DAT_0008cd68, iVar2 = DAT_0008c77c, DAT_0008c77c == 0" (assignment_expression "iVar1 = DAT_0008cd68" identifier = identifier) , (comma_expression "iVar2 = DAT_0008c77c, DAT_0008c77c == 0" (assignment_expression "iVar2 = DAT_0008c77c" identifier = identifier) , (binary_expression "DAT_0008c77c == 0" identifier == number_literal))) ))) )) ))) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) (do_statement "do {\n    if ((*(int *)(iVar2 + 4) == 2) && ((*(byte *)(iVar2 + 0x25) & 4) != 0)) {\n      FUN_000324c0(iVar2);\n      if ((*(int *)(iVar2 + 0x10) == 0) ||\n         (iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1), iVar1 == 0)) goto LAB_00024238;\n      iVar1 = **(int **)(*(int *)(iVar2 + 0x10) + 4);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }\n    else {\nLAB_00024238:\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }\n    if (iVar2 == 0) {\n      return DAT_0008cd68;\n    }\n  } while( true );" do (compound_statement "{\n    if ((*(int *)(iVar2 + 4) == 2) && ((*(byte *)(iVar2 + 0x25) & 4) != 0)) {\n      FUN_000324c0(iVar2);\n      if ((*(int *)(iVar2 + 0x10) == 0) ||\n         (iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1), iVar1 == 0)) goto LAB_00024238;\n      iVar1 = **(int **)(*(int *)(iVar2 + 0x10) + 4);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }\n    else {\nLAB_00024238:\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }\n    if (iVar2 == 0) {\n      return DAT_0008cd68;\n    }\n  }" { (if_statement "if ((*(int *)(iVar2 + 4) == 2) && ((*(byte *)(iVar2 + 0x25) & 4) != 0)) {\n      FUN_000324c0(iVar2);\n      if ((*(int *)(iVar2 + 0x10) == 0) ||\n         (iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1), iVar1 == 0)) goto LAB_00024238;\n      iVar1 = **(int **)(*(int *)(iVar2 + 0x10) + 4);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }\n    else {\nLAB_00024238:\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }" if (parenthesized_expression "((*(int *)(iVar2 + 4) == 2) && ((*(byte *)(iVar2 + 0x25) & 4) != 0))" ( (binary_expression "(*(int *)(iVar2 + 4) == 2) && ((*(byte *)(iVar2 + 0x25) & 4) != 0)" (parenthesized_expression "(*(int *)(iVar2 + 4) == 2)" ( (binary_expression "*(int *)(iVar2 + 4) == 2" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) == number_literal) )) && (parenthesized_expression "((*(byte *)(iVar2 + 0x25) & 4) != 0)" ( (binary_expression "(*(byte *)(iVar2 + 0x25) & 4) != 0" (parenthesized_expression "(*(byte *)(iVar2 + 0x25) & 4)" ( (binary_expression "*(byte *)(iVar2 + 0x25) & 4" (pointer_expression "*(byte *)(iVar2 + 0x25)" * (cast_expression "(byte *)(iVar2 + 0x25)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x25)" ( (binary_expression "iVar2 + 0x25" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n      FUN_000324c0(iVar2);\n      if ((*(int *)(iVar2 + 0x10) == 0) ||\n         (iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1), iVar1 == 0)) goto LAB_00024238;\n      iVar1 = **(int **)(*(int *)(iVar2 + 0x10) + 4);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }" { (expression_statement "FUN_000324c0(iVar2);" (call_expression "FUN_000324c0(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (if_statement "if ((*(int *)(iVar2 + 0x10) == 0) ||\n         (iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1), iVar1 == 0)) goto LAB_00024238;" if (parenthesized_expression "((*(int *)(iVar2 + 0x10) == 0) ||\n         (iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1), iVar1 == 0))" ( (binary_expression "(*(int *)(iVar2 + 0x10) == 0) ||\n         (iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1), iVar1 == 0)" (parenthesized_expression "(*(int *)(iVar2 + 0x10) == 0)" ( (binary_expression "*(int *)(iVar2 + 0x10) == 0" (pointer_expression "*(int *)(iVar2 + 0x10)" * (cast_expression "(int *)(iVar2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) == number_literal) )) || (parenthesized_expression "(iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1), iVar1 == 0)" ( (comma_expression "iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1), iVar1 == 0" (assignment_expression "iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1)" identifier = (call_expression "bfd_check_format(*(int *)(iVar2 + 0x10),1)" identifier (argument_list "(*(int *)(iVar2 + 0x10),1)" ( (pointer_expression "*(int *)(iVar2 + 0x10)" * (cast_expression "(int *)(iVar2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) , number_literal )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (goto_statement "goto LAB_00024238;" goto statement_identifier ;)) (expression_statement "iVar1 = **(int **)(*(int *)(iVar2 + 0x10) + 4);" (assignment_expression "iVar1 = **(int **)(*(int *)(iVar2 + 0x10) + 4)" identifier = (pointer_expression "**(int **)(*(int *)(iVar2 + 0x10) + 4)" * (pointer_expression "*(int **)(*(int *)(iVar2 + 0x10) + 4)" * (cast_expression "(int **)(*(int *)(iVar2 + 0x10) + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(iVar2 + 0x10) + 4)" ( (binary_expression "*(int *)(iVar2 + 0x10) + 4" (pointer_expression "*(int *)(iVar2 + 0x10)" * (cast_expression "(int *)(iVar2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) + number_literal) )))))) ;) (if_statement "if (iVar1 != 0) {\n        return iVar1;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        return iVar1;\n      }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "iVar2 = *(int *)(iVar2 + 0x18);" (assignment_expression "iVar2 = *(int *)(iVar2 + 0x18)" identifier = (pointer_expression "*(int *)(iVar2 + 0x18)" * (cast_expression "(int *)(iVar2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) ))))) ;) }) (else_clause "else {\nLAB_00024238:\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }" else (compound_statement "{\nLAB_00024238:\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }" { (labeled_statement "LAB_00024238:\n      iVar2 = *(int *)(iVar2 + 0x18);" statement_identifier : (expression_statement "iVar2 = *(int *)(iVar2 + 0x18);" (assignment_expression "iVar2 = *(int *)(iVar2 + 0x18)" identifier = (pointer_expression "*(int *)(iVar2 + 0x18)" * (cast_expression "(int *)(iVar2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) ))))) ;)) }))) (if_statement "if (iVar2 == 0) {\n      return DAT_0008cd68;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return DAT_0008cd68;\n    }" { (return_statement "return DAT_0008cd68;" return identifier ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nchar * lang_get_output_target(void)\n\n{\n  char *pcVar1;\n  int iVar2;\n  lang_statement_union *entry;\n  \n  pcVar1 = output_target;\n  if ((output_target != (char *)0x0) ||\n     (((current_target != (char *)0x0 && (pcVar1 = current_target, current_target != default_target)\n       ) || (pcVar1 = default_target, entry = file_chain.head,\n            file_chain.head == (lang_statement_union *)0x0)))) {\n    return pcVar1;\n  }\n  do {\n    if (((entry->header).type == lang_input_statement_enum) &&\n       (((uint)(entry->wild_statement).walk_wild_section_handler & 0x400) != 0)) {\n      ldfile_open_file(&entry->input_statement);\n      if (((entry->wild_statement).section_list == (wildcard_list *)0x0) ||\n         (iVar2 = bfd_check_format((entry->wild_statement).section_list,1), iVar2 == 0))\n      goto LAB_00024238;\n      pcVar1 = ((entry->input_statement).the_bfd)->xvec->name;\n      if (pcVar1 != (char *)0x0) {\n        return pcVar1;\n      }\n      entry = (entry->wild_statement).children.head;\n    }\n    else {\nLAB_00024238:\n      entry = (entry->wild_statement).children.head;\n    }\n    if (entry == (lang_statement_union *)0x0) {\n      return default_target;\n    }\n  } while( true );\n}\n\n" comment comment (function_definition "char * lang_get_output_target(void)\n\n{\n  char *pcVar1;\n  int iVar2;\n  lang_statement_union *entry;\n  \n  pcVar1 = output_target;\n  if ((output_target != (char *)0x0) ||\n     (((current_target != (char *)0x0 && (pcVar1 = current_target, current_target != default_target)\n       ) || (pcVar1 = default_target, entry = file_chain.head,\n            file_chain.head == (lang_statement_union *)0x0)))) {\n    return pcVar1;\n  }\n  do {\n    if (((entry->header).type == lang_input_statement_enum) &&\n       (((uint)(entry->wild_statement).walk_wild_section_handler & 0x400) != 0)) {\n      ldfile_open_file(&entry->input_statement);\n      if (((entry->wild_statement).section_list == (wildcard_list *)0x0) ||\n         (iVar2 = bfd_check_format((entry->wild_statement).section_list,1), iVar2 == 0))\n      goto LAB_00024238;\n      pcVar1 = ((entry->input_statement).the_bfd)->xvec->name;\n      if (pcVar1 != (char *)0x0) {\n        return pcVar1;\n      }\n      entry = (entry->wild_statement).children.head;\n    }\n    else {\nLAB_00024238:\n      entry = (entry->wild_statement).children.head;\n    }\n    if (entry == (lang_statement_union *)0x0) {\n      return default_target;\n    }\n  } while( true );\n}" primitive_type (pointer_declarator "* lang_get_output_target(void)" * (function_declarator "lang_get_output_target(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  lang_statement_union *entry;\n  \n  pcVar1 = output_target;\n  if ((output_target != (char *)0x0) ||\n     (((current_target != (char *)0x0 && (pcVar1 = current_target, current_target != default_target)\n       ) || (pcVar1 = default_target, entry = file_chain.head,\n            file_chain.head == (lang_statement_union *)0x0)))) {\n    return pcVar1;\n  }\n  do {\n    if (((entry->header).type == lang_input_statement_enum) &&\n       (((uint)(entry->wild_statement).walk_wild_section_handler & 0x400) != 0)) {\n      ldfile_open_file(&entry->input_statement);\n      if (((entry->wild_statement).section_list == (wildcard_list *)0x0) ||\n         (iVar2 = bfd_check_format((entry->wild_statement).section_list,1), iVar2 == 0))\n      goto LAB_00024238;\n      pcVar1 = ((entry->input_statement).the_bfd)->xvec->name;\n      if (pcVar1 != (char *)0x0) {\n        return pcVar1;\n      }\n      entry = (entry->wild_statement).children.head;\n    }\n    else {\nLAB_00024238:\n      entry = (entry->wild_statement).children.head;\n    }\n    if (entry == (lang_statement_union *)0x0) {\n      return default_target;\n    }\n  } while( true );\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "lang_statement_union *entry;" type_identifier (pointer_declarator "*entry" * identifier) ;) (expression_statement "pcVar1 = output_target;" (assignment_expression "pcVar1 = output_target" identifier = identifier) ;) (if_statement "if ((output_target != (char *)0x0) ||\n     (((current_target != (char *)0x0 && (pcVar1 = current_target, current_target != default_target)\n       ) || (pcVar1 = default_target, entry = file_chain.head,\n            file_chain.head == (lang_statement_union *)0x0)))) {\n    return pcVar1;\n  }" if (parenthesized_expression "((output_target != (char *)0x0) ||\n     (((current_target != (char *)0x0 && (pcVar1 = current_target, current_target != default_target)\n       ) || (pcVar1 = default_target, entry = file_chain.head,\n            file_chain.head == (lang_statement_union *)0x0))))" ( (binary_expression "(output_target != (char *)0x0) ||\n     (((current_target != (char *)0x0 && (pcVar1 = current_target, current_target != default_target)\n       ) || (pcVar1 = default_target, entry = file_chain.head,\n            file_chain.head == (lang_statement_union *)0x0)))" (parenthesized_expression "(output_target != (char *)0x0)" ( (binary_expression "output_target != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(((current_target != (char *)0x0 && (pcVar1 = current_target, current_target != default_target)\n       ) || (pcVar1 = default_target, entry = file_chain.head,\n            file_chain.head == (lang_statement_union *)0x0)))" ( (parenthesized_expression "((current_target != (char *)0x0 && (pcVar1 = current_target, current_target != default_target)\n       ) || (pcVar1 = default_target, entry = file_chain.head,\n            file_chain.head == (lang_statement_union *)0x0))" ( (binary_expression "(current_target != (char *)0x0 && (pcVar1 = current_target, current_target != default_target)\n       ) || (pcVar1 = default_target, entry = file_chain.head,\n            file_chain.head == (lang_statement_union *)0x0)" (parenthesized_expression "(current_target != (char *)0x0 && (pcVar1 = current_target, current_target != default_target)\n       )" ( (binary_expression "current_target != (char *)0x0 && (pcVar1 = current_target, current_target != default_target)" (binary_expression "current_target != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) && (parenthesized_expression "(pcVar1 = current_target, current_target != default_target)" ( (comma_expression "pcVar1 = current_target, current_target != default_target" (assignment_expression "pcVar1 = current_target" identifier = identifier) , (binary_expression "current_target != default_target" identifier != identifier)) ))) )) || (parenthesized_expression "(pcVar1 = default_target, entry = file_chain.head,\n            file_chain.head == (lang_statement_union *)0x0)" ( (comma_expression "pcVar1 = default_target, entry = file_chain.head,\n            file_chain.head == (lang_statement_union *)0x0" (assignment_expression "pcVar1 = default_target" identifier = identifier) , (comma_expression "entry = file_chain.head,\n            file_chain.head == (lang_statement_union *)0x0" (assignment_expression "entry = file_chain.head" identifier = (field_expression "file_chain.head" identifier . field_identifier)) , (binary_expression "file_chain.head == (lang_statement_union *)0x0" (field_expression "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    return pcVar1;\n  }" { (return_statement "return pcVar1;" return identifier ;) })) (do_statement "do {\n    if (((entry->header).type == lang_input_statement_enum) &&\n       (((uint)(entry->wild_statement).walk_wild_section_handler & 0x400) != 0)) {\n      ldfile_open_file(&entry->input_statement);\n      if (((entry->wild_statement).section_list == (wildcard_list *)0x0) ||\n         (iVar2 = bfd_check_format((entry->wild_statement).section_list,1), iVar2 == 0))\n      goto LAB_00024238;\n      pcVar1 = ((entry->input_statement).the_bfd)->xvec->name;\n      if (pcVar1 != (char *)0x0) {\n        return pcVar1;\n      }\n      entry = (entry->wild_statement).children.head;\n    }\n    else {\nLAB_00024238:\n      entry = (entry->wild_statement).children.head;\n    }\n    if (entry == (lang_statement_union *)0x0) {\n      return default_target;\n    }\n  } while( true );" do (compound_statement "{\n    if (((entry->header).type == lang_input_statement_enum) &&\n       (((uint)(entry->wild_statement).walk_wild_section_handler & 0x400) != 0)) {\n      ldfile_open_file(&entry->input_statement);\n      if (((entry->wild_statement).section_list == (wildcard_list *)0x0) ||\n         (iVar2 = bfd_check_format((entry->wild_statement).section_list,1), iVar2 == 0))\n      goto LAB_00024238;\n      pcVar1 = ((entry->input_statement).the_bfd)->xvec->name;\n      if (pcVar1 != (char *)0x0) {\n        return pcVar1;\n      }\n      entry = (entry->wild_statement).children.head;\n    }\n    else {\nLAB_00024238:\n      entry = (entry->wild_statement).children.head;\n    }\n    if (entry == (lang_statement_union *)0x0) {\n      return default_target;\n    }\n  }" { (if_statement "if (((entry->header).type == lang_input_statement_enum) &&\n       (((uint)(entry->wild_statement).walk_wild_section_handler & 0x400) != 0)) {\n      ldfile_open_file(&entry->input_statement);\n      if (((entry->wild_statement).section_list == (wildcard_list *)0x0) ||\n         (iVar2 = bfd_check_format((entry->wild_statement).section_list,1), iVar2 == 0))\n      goto LAB_00024238;\n      pcVar1 = ((entry->input_statement).the_bfd)->xvec->name;\n      if (pcVar1 != (char *)0x0) {\n        return pcVar1;\n      }\n      entry = (entry->wild_statement).children.head;\n    }\n    else {\nLAB_00024238:\n      entry = (entry->wild_statement).children.head;\n    }" if (parenthesized_expression "(((entry->header).type == lang_input_statement_enum) &&\n       (((uint)(entry->wild_statement).walk_wild_section_handler & 0x400) != 0))" ( (binary_expression "((entry->header).type == lang_input_statement_enum) &&\n       (((uint)(entry->wild_statement).walk_wild_section_handler & 0x400) != 0)" (parenthesized_expression "((entry->header).type == lang_input_statement_enum)" ( (binary_expression "(entry->header).type == lang_input_statement_enum" (field_expression "(entry->header).type" (parenthesized_expression "(entry->header)" ( (field_expression "entry->header" identifier -> field_identifier) )) . field_identifier) == identifier) )) && (parenthesized_expression "(((uint)(entry->wild_statement).walk_wild_section_handler & 0x400) != 0)" ( (binary_expression "((uint)(entry->wild_statement).walk_wild_section_handler & 0x400) != 0" (parenthesized_expression "((uint)(entry->wild_statement).walk_wild_section_handler & 0x400)" ( (binary_expression "(uint)(entry->wild_statement).walk_wild_section_handler & 0x400" (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      ldfile_open_file(&entry->input_statement);\n      if (((entry->wild_statement).section_list == (wildcard_list *)0x0) ||\n         (iVar2 = bfd_check_format((entry->wild_statement).section_list,1), iVar2 == 0))\n      goto LAB_00024238;\n      pcVar1 = ((entry->input_statement).the_bfd)->xvec->name;\n      if (pcVar1 != (char *)0x0) {\n        return pcVar1;\n      }\n      entry = (entry->wild_statement).children.head;\n    }" { (expression_statement "ldfile_open_file(&entry->input_statement);" (call_expression "ldfile_open_file(&entry->input_statement)" identifier (argument_list "(&entry->input_statement)" ( (pointer_expression "&entry->input_statement" & (field_expression "entry->input_statement" identifier -> field_identifier)) ))) ;) (if_statement "if (((entry->wild_statement).section_list == (wildcard_list *)0x0) ||\n         (iVar2 = bfd_check_format((entry->wild_statement).section_list,1), iVar2 == 0))\n      goto LAB_00024238;" if (parenthesized_expression "(((entry->wild_statement).section_list == (wildcard_list *)0x0) ||\n         (iVar2 = bfd_check_format((entry->wild_statement).section_list,1), iVar2 == 0))" ( (binary_expression "((entry->wild_statement).section_list == (wildcard_list *)0x0) ||\n         (iVar2 = bfd_check_format((entry->wild_statement).section_list,1), iVar2 == 0)" (parenthesized_expression "((entry->wild_statement).section_list == (wildcard_list *)0x0)" ( (binary_expression "(entry->wild_statement).section_list == (wildcard_list *)0x0" (field_expression "(entry->wild_statement).section_list" (parenthesized_expression "(entry->wild_statement)" ( (field_expression "entry->wild_statement" identifier -> field_identifier) )) . field_identifier) == (cast_expression "(wildcard_list *)0x0" ( (type_descriptor "wildcard_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(iVar2 = bfd_check_format((entry->wild_statement).section_list,1), iVar2 == 0)" ( (comma_expression "iVar2 = bfd_check_format((entry->wild_statement).section_list,1), iVar2 == 0" (assignment_expression "iVar2 = bfd_check_format((entry->wild_statement).section_list,1)" identifier = (call_expression "bfd_check_format((entry->wild_statement).section_list,1)" identifier (argument_list "((entry->wild_statement).section_list,1)" ( (field_expression "(entry->wild_statement).section_list" (parenthesized_expression "(entry->wild_statement)" ( (field_expression "entry->wild_statement" identifier -> field_identifier) )) . field_identifier) , number_literal )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) (goto_statement "goto LAB_00024238;" goto statement_identifier ;)) (expression_statement "pcVar1 = ((entry->input_statement).the_bfd)->xvec->name;" (assignment_expression "pcVar1 = ((entry->input_statement).the_bfd)->xvec->name" identifier = (field_expression "((entry->input_statement).the_bfd)->xvec->name" (field_expression "((entry->input_statement).the_bfd)->xvec" (parenthesized_expression "((entry->input_statement).the_bfd)" ( (field_expression "(entry->input_statement).the_bfd" (parenthesized_expression "(entry->input_statement)" ( (field_expression "entry->input_statement" identifier -> field_identifier) )) . field_identifier) )) -> field_identifier) -> field_identifier)) ;) (if_statement "if (pcVar1 != (char *)0x0) {\n        return pcVar1;\n      }" if (parenthesized_expression "(pcVar1 != (char *)0x0)" ( (binary_expression "pcVar1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return pcVar1;\n      }" { (return_statement "return pcVar1;" return identifier ;) })) (expression_statement "entry = (entry->wild_statement).children.head;" (assignment_expression "entry = (entry->wild_statement).children.head" identifier = (field_expression "(entry->wild_statement).children.head" (field_expression "(entry->wild_statement).children" (parenthesized_expression "(entry->wild_statement)" ( (field_expression "entry->wild_statement" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) }) (else_clause "else {\nLAB_00024238:\n      entry = (entry->wild_statement).children.head;\n    }" else (compound_statement "{\nLAB_00024238:\n      entry = (entry->wild_statement).children.head;\n    }" { (labeled_statement "LAB_00024238:\n      entry = (entry->wild_statement).children.head;" statement_identifier : (expression_statement "entry = (entry->wild_statement).children.head;" (assignment_expression "entry = (entry->wild_statement).children.head" identifier = (field_expression "(entry->wild_statement).children.head" (field_expression "(entry->wild_statement).children" (parenthesized_expression "(entry->wild_statement)" ( (field_expression "entry->wild_statement" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;)) }))) (if_statement "if (entry == (lang_statement_union *)0x0) {\n      return default_target;\n    }" if (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)) )) (compound_statement "{\n      return default_target;\n    }" { (return_statement "return default_target;" return identifier ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "int FUN_000241f0(void)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = DAT_0008cbbc;\n  if ((DAT_0008cbbc != 0) ||\n     (((DAT_0008c830 != 0 && (iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68)) ||\n      (iVar1 = DAT_0008cd68, iVar2 = DAT_0008c77c, DAT_0008c77c == 0)))) {\n    return iVar1;\n  }\n  do {\n    if ((*(int *)(iVar2 + 4) == 2) && ((*(byte *)(iVar2 + 0x25) & 4) != 0)) {\n      FUN_000324c0(iVar2);\n      if ((*(int *)(iVar2 + 0x10) == 0) ||\n         (iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1), iVar1 == 0)) goto LAB_00024238;\n      iVar1 = **(int **)(*(int *)(iVar2 + 0x10) + 4);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }\n    else {\nLAB_00024238:\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }\n    if (iVar2 == 0) {\n      return DAT_0008cd68;\n    }\n  } while( true );\n}\n\n" (function_definition "int FUN_000241f0(void)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = DAT_0008cbbc;\n  if ((DAT_0008cbbc != 0) ||\n     (((DAT_0008c830 != 0 && (iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68)) ||\n      (iVar1 = DAT_0008cd68, iVar2 = DAT_0008c77c, DAT_0008c77c == 0)))) {\n    return iVar1;\n  }\n  do {\n    if ((*(int *)(iVar2 + 4) == 2) && ((*(byte *)(iVar2 + 0x25) & 4) != 0)) {\n      FUN_000324c0(iVar2);\n      if ((*(int *)(iVar2 + 0x10) == 0) ||\n         (iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1), iVar1 == 0)) goto LAB_00024238;\n      iVar1 = **(int **)(*(int *)(iVar2 + 0x10) + 4);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }\n    else {\nLAB_00024238:\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }\n    if (iVar2 == 0) {\n      return DAT_0008cd68;\n    }\n  } while( true );\n}" primitive_type (function_declarator "FUN_000241f0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = DAT_0008cbbc;\n  if ((DAT_0008cbbc != 0) ||\n     (((DAT_0008c830 != 0 && (iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68)) ||\n      (iVar1 = DAT_0008cd68, iVar2 = DAT_0008c77c, DAT_0008c77c == 0)))) {\n    return iVar1;\n  }\n  do {\n    if ((*(int *)(iVar2 + 4) == 2) && ((*(byte *)(iVar2 + 0x25) & 4) != 0)) {\n      FUN_000324c0(iVar2);\n      if ((*(int *)(iVar2 + 0x10) == 0) ||\n         (iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1), iVar1 == 0)) goto LAB_00024238;\n      iVar1 = **(int **)(*(int *)(iVar2 + 0x10) + 4);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }\n    else {\nLAB_00024238:\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }\n    if (iVar2 == 0) {\n      return DAT_0008cd68;\n    }\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar1 = DAT_0008cbbc;" (assignment_expression "iVar1 = DAT_0008cbbc" identifier = identifier) ;) (if_statement "if ((DAT_0008cbbc != 0) ||\n     (((DAT_0008c830 != 0 && (iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68)) ||\n      (iVar1 = DAT_0008cd68, iVar2 = DAT_0008c77c, DAT_0008c77c == 0)))) {\n    return iVar1;\n  }" if (parenthesized_expression "((DAT_0008cbbc != 0) ||\n     (((DAT_0008c830 != 0 && (iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68)) ||\n      (iVar1 = DAT_0008cd68, iVar2 = DAT_0008c77c, DAT_0008c77c == 0))))" ( (binary_expression "(DAT_0008cbbc != 0) ||\n     (((DAT_0008c830 != 0 && (iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68)) ||\n      (iVar1 = DAT_0008cd68, iVar2 = DAT_0008c77c, DAT_0008c77c == 0)))" (parenthesized_expression "(DAT_0008cbbc != 0)" ( (binary_expression "DAT_0008cbbc != 0" identifier != number_literal) )) || (parenthesized_expression "(((DAT_0008c830 != 0 && (iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68)) ||\n      (iVar1 = DAT_0008cd68, iVar2 = DAT_0008c77c, DAT_0008c77c == 0)))" ( (parenthesized_expression "((DAT_0008c830 != 0 && (iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68)) ||\n      (iVar1 = DAT_0008cd68, iVar2 = DAT_0008c77c, DAT_0008c77c == 0))" ( (binary_expression "(DAT_0008c830 != 0 && (iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68)) ||\n      (iVar1 = DAT_0008cd68, iVar2 = DAT_0008c77c, DAT_0008c77c == 0)" (parenthesized_expression "(DAT_0008c830 != 0 && (iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68))" ( (binary_expression "DAT_0008c830 != 0 && (iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68)" (binary_expression "DAT_0008c830 != 0" identifier != number_literal) && (parenthesized_expression "(iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68)" ( (comma_expression "iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68" (assignment_expression "iVar1 = DAT_0008c830" identifier = identifier) , (binary_expression "DAT_0008c830 != DAT_0008cd68" identifier != identifier)) ))) )) || (parenthesized_expression "(iVar1 = DAT_0008cd68, iVar2 = DAT_0008c77c, DAT_0008c77c == 0)" ( (comma_expression "iVar1 = DAT_0008cd68, iVar2 = DAT_0008c77c, DAT_0008c77c == 0" (assignment_expression "iVar1 = DAT_0008cd68" identifier = identifier) , (comma_expression "iVar2 = DAT_0008c77c, DAT_0008c77c == 0" (assignment_expression "iVar2 = DAT_0008c77c" identifier = identifier) , (binary_expression "DAT_0008c77c == 0" identifier == number_literal))) ))) )) ))) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) (do_statement "do {\n    if ((*(int *)(iVar2 + 4) == 2) && ((*(byte *)(iVar2 + 0x25) & 4) != 0)) {\n      FUN_000324c0(iVar2);\n      if ((*(int *)(iVar2 + 0x10) == 0) ||\n         (iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1), iVar1 == 0)) goto LAB_00024238;\n      iVar1 = **(int **)(*(int *)(iVar2 + 0x10) + 4);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }\n    else {\nLAB_00024238:\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }\n    if (iVar2 == 0) {\n      return DAT_0008cd68;\n    }\n  } while( true );" do (compound_statement "{\n    if ((*(int *)(iVar2 + 4) == 2) && ((*(byte *)(iVar2 + 0x25) & 4) != 0)) {\n      FUN_000324c0(iVar2);\n      if ((*(int *)(iVar2 + 0x10) == 0) ||\n         (iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1), iVar1 == 0)) goto LAB_00024238;\n      iVar1 = **(int **)(*(int *)(iVar2 + 0x10) + 4);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }\n    else {\nLAB_00024238:\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }\n    if (iVar2 == 0) {\n      return DAT_0008cd68;\n    }\n  }" { (if_statement "if ((*(int *)(iVar2 + 4) == 2) && ((*(byte *)(iVar2 + 0x25) & 4) != 0)) {\n      FUN_000324c0(iVar2);\n      if ((*(int *)(iVar2 + 0x10) == 0) ||\n         (iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1), iVar1 == 0)) goto LAB_00024238;\n      iVar1 = **(int **)(*(int *)(iVar2 + 0x10) + 4);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }\n    else {\nLAB_00024238:\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }" if (parenthesized_expression "((*(int *)(iVar2 + 4) == 2) && ((*(byte *)(iVar2 + 0x25) & 4) != 0))" ( (binary_expression "(*(int *)(iVar2 + 4) == 2) && ((*(byte *)(iVar2 + 0x25) & 4) != 0)" (parenthesized_expression "(*(int *)(iVar2 + 4) == 2)" ( (binary_expression "*(int *)(iVar2 + 4) == 2" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) == number_literal) )) && (parenthesized_expression "((*(byte *)(iVar2 + 0x25) & 4) != 0)" ( (binary_expression "(*(byte *)(iVar2 + 0x25) & 4) != 0" (parenthesized_expression "(*(byte *)(iVar2 + 0x25) & 4)" ( (binary_expression "*(byte *)(iVar2 + 0x25) & 4" (pointer_expression "*(byte *)(iVar2 + 0x25)" * (cast_expression "(byte *)(iVar2 + 0x25)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x25)" ( (binary_expression "iVar2 + 0x25" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n      FUN_000324c0(iVar2);\n      if ((*(int *)(iVar2 + 0x10) == 0) ||\n         (iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1), iVar1 == 0)) goto LAB_00024238;\n      iVar1 = **(int **)(*(int *)(iVar2 + 0x10) + 4);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }" { (expression_statement "FUN_000324c0(iVar2);" (call_expression "FUN_000324c0(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (if_statement "if ((*(int *)(iVar2 + 0x10) == 0) ||\n         (iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1), iVar1 == 0)) goto LAB_00024238;" if (parenthesized_expression "((*(int *)(iVar2 + 0x10) == 0) ||\n         (iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1), iVar1 == 0))" ( (binary_expression "(*(int *)(iVar2 + 0x10) == 0) ||\n         (iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1), iVar1 == 0)" (parenthesized_expression "(*(int *)(iVar2 + 0x10) == 0)" ( (binary_expression "*(int *)(iVar2 + 0x10) == 0" (pointer_expression "*(int *)(iVar2 + 0x10)" * (cast_expression "(int *)(iVar2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) == number_literal) )) || (parenthesized_expression "(iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1), iVar1 == 0)" ( (comma_expression "iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1), iVar1 == 0" (assignment_expression "iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1)" identifier = (call_expression "bfd_check_format(*(int *)(iVar2 + 0x10),1)" identifier (argument_list "(*(int *)(iVar2 + 0x10),1)" ( (pointer_expression "*(int *)(iVar2 + 0x10)" * (cast_expression "(int *)(iVar2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) , number_literal )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (goto_statement "goto LAB_00024238;" goto statement_identifier ;)) (expression_statement "iVar1 = **(int **)(*(int *)(iVar2 + 0x10) + 4);" (assignment_expression "iVar1 = **(int **)(*(int *)(iVar2 + 0x10) + 4)" identifier = (pointer_expression "**(int **)(*(int *)(iVar2 + 0x10) + 4)" * (pointer_expression "*(int **)(*(int *)(iVar2 + 0x10) + 4)" * (cast_expression "(int **)(*(int *)(iVar2 + 0x10) + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(iVar2 + 0x10) + 4)" ( (binary_expression "*(int *)(iVar2 + 0x10) + 4" (pointer_expression "*(int *)(iVar2 + 0x10)" * (cast_expression "(int *)(iVar2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) + number_literal) )))))) ;) (if_statement "if (iVar1 != 0) {\n        return iVar1;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        return iVar1;\n      }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "iVar2 = *(int *)(iVar2 + 0x18);" (assignment_expression "iVar2 = *(int *)(iVar2 + 0x18)" identifier = (pointer_expression "*(int *)(iVar2 + 0x18)" * (cast_expression "(int *)(iVar2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) ))))) ;) }) (else_clause "else {\nLAB_00024238:\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }" else (compound_statement "{\nLAB_00024238:\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }" { (labeled_statement "LAB_00024238:\n      iVar2 = *(int *)(iVar2 + 0x18);" statement_identifier : (expression_statement "iVar2 = *(int *)(iVar2 + 0x18);" (assignment_expression "iVar2 = *(int *)(iVar2 + 0x18)" identifier = (pointer_expression "*(int *)(iVar2 + 0x18)" * (cast_expression "(int *)(iVar2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) ))))) ;)) }))) (if_statement "if (iVar2 == 0) {\n      return DAT_0008cd68;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return DAT_0008cd68;\n    }" { (return_statement "return DAT_0008cd68;" return identifier ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT != IDENT)) ))) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT == LIT))) ))) )) ))) )) (compound_statement { (return_statement return IDENT ;) })) (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 ( (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 (call_expression IDENT (argument_list ( IDENT ))) ;) (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) )))) , LIT )))) , (binary_expression IDENT == LIT)) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;)) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "int FUN_000241f0(void)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = DAT_0008cbbc;\n  if ((DAT_0008cbbc != 0) ||\n     (((DAT_0008c830 != 0 && (iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68)) ||\n      (iVar1 = DAT_0008cd68, iVar2 = DAT_0008c77c, DAT_0008c77c == 0)))) {\n    return iVar1;\n  }\n  do {\n    if ((*(int *)(iVar2 + 4) == 2) && ((*(byte *)(iVar2 + 0x25) & 4) != 0)) {\n      FUN_000324c0(iVar2);\n      if ((*(int *)(iVar2 + 0x10) == 0) ||\n         (iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1), iVar1 == 0)) goto LAB_00024238;\n      iVar1 = **(int **)(*(int *)(iVar2 + 0x10) + 4);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }\n    else {\nLAB_00024238:\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }\n    if (iVar2 == 0) {\n      return DAT_0008cd68;\n    }\n  } while( true );\n}" (primitive_type "int") (function_declarator "FUN_000241f0(void)" (identifier "FUN_000241f0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = DAT_0008cbbc;\n  if ((DAT_0008cbbc != 0) ||\n     (((DAT_0008c830 != 0 && (iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68)) ||\n      (iVar1 = DAT_0008cd68, iVar2 = DAT_0008c77c, DAT_0008c77c == 0)))) {\n    return iVar1;\n  }\n  do {\n    if ((*(int *)(iVar2 + 4) == 2) && ((*(byte *)(iVar2 + 0x25) & 4) != 0)) {\n      FUN_000324c0(iVar2);\n      if ((*(int *)(iVar2 + 0x10) == 0) ||\n         (iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1), iVar1 == 0)) goto LAB_00024238;\n      iVar1 = **(int **)(*(int *)(iVar2 + 0x10) + 4);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }\n    else {\nLAB_00024238:\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }\n    if (iVar2 == 0) {\n      return DAT_0008cd68;\n    }\n  } while( true );\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar1 = DAT_0008cbbc;" (assignment_expression "iVar1 = DAT_0008cbbc" (identifier "iVar1") (= "=") (identifier "DAT_0008cbbc")) (; ";")) (if_statement "if ((DAT_0008cbbc != 0) ||\n     (((DAT_0008c830 != 0 && (iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68)) ||\n      (iVar1 = DAT_0008cd68, iVar2 = DAT_0008c77c, DAT_0008c77c == 0)))) {\n    return iVar1;\n  }" (if "if") (parenthesized_expression "((DAT_0008cbbc != 0) ||\n     (((DAT_0008c830 != 0 && (iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68)) ||\n      (iVar1 = DAT_0008cd68, iVar2 = DAT_0008c77c, DAT_0008c77c == 0))))" (( "(") (binary_expression "(DAT_0008cbbc != 0) ||\n     (((DAT_0008c830 != 0 && (iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68)) ||\n      (iVar1 = DAT_0008cd68, iVar2 = DAT_0008c77c, DAT_0008c77c == 0)))" (parenthesized_expression "(DAT_0008cbbc != 0)" (( "(") (binary_expression "DAT_0008cbbc != 0" (identifier "DAT_0008cbbc") (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(((DAT_0008c830 != 0 && (iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68)) ||\n      (iVar1 = DAT_0008cd68, iVar2 = DAT_0008c77c, DAT_0008c77c == 0)))" (( "(") (parenthesized_expression "((DAT_0008c830 != 0 && (iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68)) ||\n      (iVar1 = DAT_0008cd68, iVar2 = DAT_0008c77c, DAT_0008c77c == 0))" (( "(") (binary_expression "(DAT_0008c830 != 0 && (iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68)) ||\n      (iVar1 = DAT_0008cd68, iVar2 = DAT_0008c77c, DAT_0008c77c == 0)" (parenthesized_expression "(DAT_0008c830 != 0 && (iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68))" (( "(") (binary_expression "DAT_0008c830 != 0 && (iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68)" (binary_expression "DAT_0008c830 != 0" (identifier "DAT_0008c830") (!= "!=") (number_literal "0")) (&& "&&") (parenthesized_expression "(iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68)" (( "(") (comma_expression "iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68" (assignment_expression "iVar1 = DAT_0008c830" (identifier "iVar1") (= "=") (identifier "DAT_0008c830")) (, ",") (binary_expression "DAT_0008c830 != DAT_0008cd68" (identifier "DAT_0008c830") (!= "!=") (identifier "DAT_0008cd68"))) () ")"))) () ")")) (|| "||") (parenthesized_expression "(iVar1 = DAT_0008cd68, iVar2 = DAT_0008c77c, DAT_0008c77c == 0)" (( "(") (comma_expression "iVar1 = DAT_0008cd68, iVar2 = DAT_0008c77c, DAT_0008c77c == 0" (assignment_expression "iVar1 = DAT_0008cd68" (identifier "iVar1") (= "=") (identifier "DAT_0008cd68")) (, ",") (comma_expression "iVar2 = DAT_0008c77c, DAT_0008c77c == 0" (assignment_expression "iVar2 = DAT_0008c77c" (identifier "iVar2") (= "=") (identifier "DAT_0008c77c")) (, ",") (binary_expression "DAT_0008c77c == 0" (identifier "DAT_0008c77c") (== "==") (number_literal "0")))) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n    return iVar1;\n  }" ({ "{") (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (do_statement "do {\n    if ((*(int *)(iVar2 + 4) == 2) && ((*(byte *)(iVar2 + 0x25) & 4) != 0)) {\n      FUN_000324c0(iVar2);\n      if ((*(int *)(iVar2 + 0x10) == 0) ||\n         (iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1), iVar1 == 0)) goto LAB_00024238;\n      iVar1 = **(int **)(*(int *)(iVar2 + 0x10) + 4);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }\n    else {\nLAB_00024238:\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }\n    if (iVar2 == 0) {\n      return DAT_0008cd68;\n    }\n  } while( true );" (do "do") (compound_statement "{\n    if ((*(int *)(iVar2 + 4) == 2) && ((*(byte *)(iVar2 + 0x25) & 4) != 0)) {\n      FUN_000324c0(iVar2);\n      if ((*(int *)(iVar2 + 0x10) == 0) ||\n         (iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1), iVar1 == 0)) goto LAB_00024238;\n      iVar1 = **(int **)(*(int *)(iVar2 + 0x10) + 4);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }\n    else {\nLAB_00024238:\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }\n    if (iVar2 == 0) {\n      return DAT_0008cd68;\n    }\n  }" ({ "{") (if_statement "if ((*(int *)(iVar2 + 4) == 2) && ((*(byte *)(iVar2 + 0x25) & 4) != 0)) {\n      FUN_000324c0(iVar2);\n      if ((*(int *)(iVar2 + 0x10) == 0) ||\n         (iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1), iVar1 == 0)) goto LAB_00024238;\n      iVar1 = **(int **)(*(int *)(iVar2 + 0x10) + 4);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }\n    else {\nLAB_00024238:\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }" (if "if") (parenthesized_expression "((*(int *)(iVar2 + 4) == 2) && ((*(byte *)(iVar2 + 0x25) & 4) != 0))" (( "(") (binary_expression "(*(int *)(iVar2 + 4) == 2) && ((*(byte *)(iVar2 + 0x25) & 4) != 0)" (parenthesized_expression "(*(int *)(iVar2 + 4) == 2)" (( "(") (binary_expression "*(int *)(iVar2 + 4) == 2" (pointer_expression "*(int *)(iVar2 + 4)" (* "*") (cast_expression "(int *)(iVar2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")")))) (== "==") (number_literal "2")) () ")")) (&& "&&") (parenthesized_expression "((*(byte *)(iVar2 + 0x25) & 4) != 0)" (( "(") (binary_expression "(*(byte *)(iVar2 + 0x25) & 4) != 0" (parenthesized_expression "(*(byte *)(iVar2 + 0x25) & 4)" (( "(") (binary_expression "*(byte *)(iVar2 + 0x25) & 4" (pointer_expression "*(byte *)(iVar2 + 0x25)" (* "*") (cast_expression "(byte *)(iVar2 + 0x25)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x25)" (( "(") (binary_expression "iVar2 + 0x25" (identifier "iVar2") (+ "+") (number_literal "0x25")) () ")")))) (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      FUN_000324c0(iVar2);\n      if ((*(int *)(iVar2 + 0x10) == 0) ||\n         (iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1), iVar1 == 0)) goto LAB_00024238;\n      iVar1 = **(int **)(*(int *)(iVar2 + 0x10) + 4);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }" ({ "{") (expression_statement "FUN_000324c0(iVar2);" (call_expression "FUN_000324c0(iVar2)" (identifier "FUN_000324c0") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (if_statement "if ((*(int *)(iVar2 + 0x10) == 0) ||\n         (iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1), iVar1 == 0)) goto LAB_00024238;" (if "if") (parenthesized_expression "((*(int *)(iVar2 + 0x10) == 0) ||\n         (iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1), iVar1 == 0))" (( "(") (binary_expression "(*(int *)(iVar2 + 0x10) == 0) ||\n         (iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1), iVar1 == 0)" (parenthesized_expression "(*(int *)(iVar2 + 0x10) == 0)" (( "(") (binary_expression "*(int *)(iVar2 + 0x10) == 0" (pointer_expression "*(int *)(iVar2 + 0x10)" (* "*") (cast_expression "(int *)(iVar2 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x10)" (( "(") (binary_expression "iVar2 + 0x10" (identifier "iVar2") (+ "+") (number_literal "0x10")) () ")")))) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1), iVar1 == 0)" (( "(") (comma_expression "iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1), iVar1 == 0" (assignment_expression "iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1)" (identifier "iVar1") (= "=") (call_expression "bfd_check_format(*(int *)(iVar2 + 0x10),1)" (identifier "bfd_check_format") (argument_list "(*(int *)(iVar2 + 0x10),1)" (( "(") (pointer_expression "*(int *)(iVar2 + 0x10)" (* "*") (cast_expression "(int *)(iVar2 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x10)" (( "(") (binary_expression "iVar2 + 0x10" (identifier "iVar2") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (number_literal "1") () ")")))) (, ",") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0"))) () ")"))) () ")")) (goto_statement "goto LAB_00024238;" (goto "goto") (statement_identifier "LAB_00024238") (; ";"))) (expression_statement "iVar1 = **(int **)(*(int *)(iVar2 + 0x10) + 4);" (assignment_expression "iVar1 = **(int **)(*(int *)(iVar2 + 0x10) + 4)" (identifier "iVar1") (= "=") (pointer_expression "**(int **)(*(int *)(iVar2 + 0x10) + 4)" (* "*") (pointer_expression "*(int **)(*(int *)(iVar2 + 0x10) + 4)" (* "*") (cast_expression "(int **)(*(int *)(iVar2 + 0x10) + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(iVar2 + 0x10) + 4)" (( "(") (binary_expression "*(int *)(iVar2 + 0x10) + 4" (pointer_expression "*(int *)(iVar2 + 0x10)" (* "*") (cast_expression "(int *)(iVar2 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x10)" (( "(") (binary_expression "iVar2 + 0x10" (identifier "iVar2") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (number_literal "4")) () ")")))))) (; ";")) (if_statement "if (iVar1 != 0) {\n        return iVar1;\n      }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        return iVar1;\n      }" ({ "{") (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (expression_statement "iVar2 = *(int *)(iVar2 + 0x18);" (assignment_expression "iVar2 = *(int *)(iVar2 + 0x18)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(iVar2 + 0x18)" (* "*") (cast_expression "(int *)(iVar2 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x18)" (( "(") (binary_expression "iVar2 + 0x18" (identifier "iVar2") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\nLAB_00024238:\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }" (else "else") (compound_statement "{\nLAB_00024238:\n      iVar2 = *(int *)(iVar2 + 0x18);\n    }" ({ "{") (labeled_statement "LAB_00024238:\n      iVar2 = *(int *)(iVar2 + 0x18);" (statement_identifier "LAB_00024238") (: ":") (expression_statement "iVar2 = *(int *)(iVar2 + 0x18);" (assignment_expression "iVar2 = *(int *)(iVar2 + 0x18)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(iVar2 + 0x18)" (* "*") (cast_expression "(int *)(iVar2 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x18)" (( "(") (binary_expression "iVar2 + 0x18" (identifier "iVar2") (+ "+") (number_literal "0x18")) () ")"))))) (; ";"))) (} "}")))) (if_statement "if (iVar2 == 0) {\n      return DAT_0008cd68;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return DAT_0008cd68;\n    }" ({ "{") (return_statement "return DAT_0008cd68;" (return "return") (identifier "DAT_0008cd68") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

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

char * function_1(void)

{
  char *var_8;
  int var_7;
  type_1 *var_9;
  
  var_8 = var_1;
  if ((var_1 != (char *)0x0) ||
     (((var_2 != (char *)0x0 && (var_8 = var_2, var_2 != var_3)
       ) || (var_8 = var_3, var_9 = file_chain.head,
            file_chain.head == (type_1 *)0x0)))) {
    return var_8;
  }
  do {
    if (((var_9->header).type == var_4) &&
       (((uint)(var_9->wild_statement).walk_wild_section_handler & 0x400) != 0)) {
      var_5(&var_9->input_statement);
      if (((var_9->wild_statement).section_list == (type_2 *)0x0) ||
         (var_7 = var_6((var_9->wild_statement).section_list,1), var_7 == 0))
      goto LAB_00024238;
      var_8 = ((var_9->input_statement).the_bfd)->xvec->name;
      if (var_8 != (char *)0x0) {
        return var_8;
      }
      var_9 = (var_9->wild_statement).children.head;
    }
    else {
LAB_00024238:
      var_9 = (var_9->wild_statement).children.head;
    }
    if (var_9 == (type_1 *)0x0) {
      return var_3;
    }
  } while( true );
}


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

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

int MASKED(void)

{
  int iVar1;
  int iVar2;
  
  iVar1 = DAT_0008cbbc;
  if ((DAT_0008cbbc != 0) ||
     (((DAT_0008c830 != 0 && (iVar1 = DAT_0008c830, DAT_0008c830 != DAT_0008cd68)) ||
      (iVar1 = DAT_0008cd68, iVar2 = DAT_0008c77c, DAT_0008c77c == 0)))) {
    return iVar1;
  }
  do {
    if ((*(int *)(iVar2 + 4) == 2) && ((*(byte *)(iVar2 + 0x25) & 4) != 0)) {
      FUN_000324c0(iVar2);
      if ((*(int *)(iVar2 + 0x10) == 0) ||
         (iVar1 = bfd_check_format(*(int *)(iVar2 + 0x10),1), iVar1 == 0)) goto LAB_00024238;
      iVar1 = **(int **)(*(int *)(iVar2 + 0x10) + 4);
      if (iVar1 != 0) {
        return iVar1;
      }
      iVar2 = *(int *)(iVar2 + 0x18);
    }
    else {
LAB_00024238:
      iVar2 = *(int *)(iVar2 + 0x18);
    }
    if (iVar2 == 0) {
      return DAT_0008cd68;
    }
  } while( true );
}

