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

void ldfile_open_file(lang_input_statement_type *entry)

{
  search_arch **ppsVar1;
  undefined1 *puVar2;
  byte bVar3;
  int iVar4;
  bfd_boolean bVar5;
  char *pcVar6;
  char *pcVar7;
  search_arch *psVar8;
  char *pcVar9;
  
  if (entry->the_bfd != (bfd *)0x0) {
    return;
  }
  bVar3 = *(byte *)&entry->flags;
  if ((bVar3 & 4) == 0) {
    bVar5 = ldfile_try_open_bfd(entry->filename,entry);
    if (bVar5 != 0) {
      return;
    }
    iVar4 = filename_cmp(entry->filename,entry->local_sym_name);
    if (iVar4 != 0) {
      pcVar7 = entry->local_sym_name;
      pcVar9 = entry->filename;
      pcVar6 = "%P: cannot find %s (%s): %E\n";
      goto LAB_00035c05;
    }
    pcVar9 = entry->local_sym_name;
    pcVar6 = "%P: cannot find %s: %E\n";
  }
  else {
    psVar8 = search_arch_head;
    if (search_arch_head != (search_arch_type *)0x0) {
      do {
        bVar5 = ldfile_open_file_search(psVar8->name,entry,"lib",".a");
        if ((bVar5 != 0) ||
           (iVar4 = ldemul_find_potential_libraries(psVar8->name,entry), iVar4 != 0)) {
          *(byte *)&entry->flags = *(byte *)&entry->flags & 0xfb;
          return;
        }
        ppsVar1 = &psVar8->next;
        psVar8 = *ppsVar1;
      } while (*ppsVar1 != (search_arch *)0x0);
      bVar3 = *(byte *)&entry->flags;
    }
    pcVar9 = entry->local_sym_name;
    if ((((bVar3 & 8) != 0) && (ld_sysroot != (char *)0x0)) && (*pcVar9 == '/')) {
      pcVar6 = "%P: cannot find %s inside %s\n";
      pcVar7 = ld_sysroot;
LAB_00035c05:
      pcVar6 = (char *)dcgettext(0,pcVar6,5);
      einfo(pcVar6,pcVar9,pcVar7);
      goto LAB_00035baf;
    }
    pcVar6 = "%P: cannot find %s\n";
  }
  pcVar6 = (char *)dcgettext(0,pcVar6,5);
  einfo(pcVar6,pcVar9);
LAB_00035baf:
  puVar2 = &(entry->flags).field_0x1;
  *puVar2 = *puVar2 | 8;
  input_flags._1_1_ = input_flags._1_1_ | 8;
  return;
}



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

void FUN_00035ae0(int param_1)

{
  undefined4 *puVar1;
  byte bVar2;
  int iVar3;
  undefined4 uVar4;
  char *pcVar5;
  undefined4 *puVar6;
  char *pcVar7;
  
  if (*(int *)(param_1 + 0x10) != 0) {
    return;
  }
  bVar2 = *(byte *)(param_1 + 0x24);
  if ((bVar2 & 4) == 0) {
    iVar3 = FUN_00035320(*(undefined4 *)(param_1 + 8),param_1);
    if (iVar3 != 0) {
      return;
    }
    iVar3 = filename_cmp(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc));
    if (iVar3 != 0) {
      iVar3 = *(int *)(param_1 + 0xc);
      pcVar7 = *(char **)(param_1 + 8);
      pcVar5 = "%P: cannot find %s (%s): %E\n";
      goto LAB_00035c05;
    }
    pcVar7 = *(char **)(param_1 + 0xc);
    pcVar5 = "%P: cannot find %s: %E\n";
  }
  else {
    puVar6 = DAT_001cf884;
    if (DAT_001cf884 != (undefined4 *)0x0) {
      do {
        iVar3 = FUN_00035960(*puVar6,param_1,"lib",".a");
        if ((iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)) {
          *(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;
          return;
        }
        puVar1 = puVar6 + 1;
        puVar6 = (undefined4 *)*puVar1;
      } while ((undefined4 *)*puVar1 != (undefined4 *)0x0);
      bVar2 = *(byte *)(param_1 + 0x24);
    }
    pcVar7 = *(char **)(param_1 + 0xc);
    if ((((bVar2 & 8) != 0) && (DAT_001d047c != 0)) && (*pcVar7 == '/')) {
      pcVar5 = "%P: cannot find %s inside %s\n";
      iVar3 = DAT_001d047c;
LAB_00035c05:
      uVar4 = dcgettext(0,pcVar5,5);
      FUN_00034d20(uVar4,pcVar7,iVar3);
      goto LAB_00035baf;
    }
    pcVar5 = "%P: cannot find %s\n";
  }
  uVar4 = dcgettext(0,pcVar5,5);
  FUN_00034d20(uVar4,pcVar7);
LAB_00035baf:
  *(byte *)(param_1 + 0x25) = *(byte *)(param_1 + 0x25) | 8;
  DAT_001d0391 = DAT_001d0391 | 8;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00017b80
ADD EBX,0x198517
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x30]
MOV EDI,dword ptr [ESI + 0x10]
TEST EDI,EDI
JZ 0x00035b08
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOVZX EAX,byte ptr [ESI + 0x24]
TEST AL,0x4
JZ 0x00035bc8
MOV EDI,dword ptr [EBX + 0x1884]
TEST EDI,EDI
JZ 0x00035b74
LEA EAX,[EBX + 0xfffc5060]
LEA EBP,[EBX + 0xfffc5026]
MOV dword ptr [ESP + 0xc],EAX
JMP 0x00035b49
SUB ESP,0x8
PUSH ESI
PUSH dword ptr [EDI]
CALL 0x00033cb0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00035b5d
MOV EDI,dword ptr [EDI + 0x4]
TEST EDI,EDI
JZ 0x00035b70
PUSH EBP
PUSH dword ptr [ESP + 0x10]
PUSH ESI
PUSH dword ptr [EDI]
CALL 0x00035960
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00035b30
AND byte ptr [ESI + 0x24],0xfb
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOVZX EAX,byte ptr [ESI + 0x24]
MOV EDI,dword ptr [ESI + 0xc]
TEST AL,0x8
JZ 0x00035b90
LEA EAX,[EBX + 0x247c]
MOV EBP,dword ptr [EAX]
TEST EBP,EBP
JZ 0x00035b90
CMP byte ptr [EDI],0x2f
JZ 0x00035c33
SUB ESP,0x4
LEA EAX,[EBX + 0xffeafcce]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00016310
POP EDX
POP ECX
PUSH EDI
PUSH EAX
CALL 0x00034d20
ADD ESP,0x10
LEA EAX,[EBX + 0x2390]
OR byte ptr [ESI + 0x25],0x8
OR byte ptr [EAX + 0x1],0x8
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH ESI
PUSH dword ptr [ESI + 0x8]
CALL 0x00035320
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00035afd
SUB ESP,0x8
PUSH dword ptr [ESI + 0xc]
PUSH dword ptr [ESI + 0x8]
CALL 0x00016230
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00035c20
SUB ESP,0x4
MOV EBP,dword ptr [ESI + 0xc]
MOV EDI,dword ptr [ESI + 0x8]
LEA EAX,[EBX + 0xffeafc7b]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00016310
ADD ESP,0xc
PUSH EBP
PUSH EDI
PUSH EAX
CALL 0x00034d20
ADD ESP,0x10
JMP 0x00035baf
SUB ESP,0x4
MOV EDI,dword ptr [ESI + 0xc]
LEA EAX,[EBX + 0xffeafc98]
PUSH 0x5
JMP 0x00035b9b
SUB ESP,0x4
LEA EAX,[EBX + 0xffeafcb0]
PUSH 0x5
JMP 0x00035c05
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00035ae0(int param_1)\n\n{\n  undefined4 *puVar1;\n  byte bVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  undefined4 *puVar6;\n  char *pcVar7;\n  \n  if (*(int *)(param_1 + 0x10) != 0) {\n    return;\n  }\n  bVar2 = *(byte *)(param_1 + 0x24);\n  if ((bVar2 & 4) == 0) {\n    iVar3 = FUN_00035320(*(undefined4 *)(param_1 + 8),param_1);\n    if (iVar3 != 0) {\n      return;\n    }\n    iVar3 = filename_cmp(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc));\n    if (iVar3 != 0) {\n      iVar3 = *(int *)(param_1 + 0xc);\n      pcVar7 = *(char **)(param_1 + 8);\n      pcVar5 = "%P: cannot find %s (%s): %E\n";\n      goto LAB_00035c05;\n    }\n    pcVar7 = *(char **)(param_1 + 0xc);\n    pcVar5 = "%P: cannot find %s: %E\n";\n  }\n  else {\n    puVar6 = DAT_001cf884;\n    if (DAT_001cf884 != (undefined4 *)0x0) {\n      do {\n        iVar3 = FUN_00035960(*puVar6,param_1,"lib",".a");\n        if ((iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)) {\n          *(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;\n          return;\n        }\n        puVar1 = puVar6 + 1;\n        puVar6 = (undefined4 *)*puVar1;\n      } while ((undefined4 *)*puVar1 != (undefined4 *)0x0);\n      bVar2 = *(byte *)(param_1 + 0x24);\n    }\n    pcVar7 = *(char **)(param_1 + 0xc);\n    if ((((bVar2 & 8) != 0) && (DAT_001d047c != 0)) && (*pcVar7 == '/')) {\n      pcVar5 = "%P: cannot find %s inside %s\n";\n      iVar3 = DAT_001d047c;\nLAB_00035c05:\n      uVar4 = dcgettext(0,pcVar5,5);\n      FUN_00034d20(uVar4,pcVar7,iVar3);\n      goto LAB_00035baf;\n    }\n    pcVar5 = "%P: cannot find %s\n";\n  }\n  uVar4 = dcgettext(0,pcVar5,5);\n  FUN_00034d20(uVar4,pcVar7);\nLAB_00035baf:\n  *(byte *)(param_1 + 0x25) = *(byte *)(param_1 + 0x25) | 8;\n  DAT_001d0391 = DAT_001d0391 | 8;\n  return;\n}\n\n" comment (function_definition "void FUN_00035ae0(int param_1)\n\n{\n  undefined4 *puVar1;\n  byte bVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  undefined4 *puVar6;\n  char *pcVar7;\n  \n  if (*(int *)(param_1 + 0x10) != 0) {\n    return;\n  }\n  bVar2 = *(byte *)(param_1 + 0x24);\n  if ((bVar2 & 4) == 0) {\n    iVar3 = FUN_00035320(*(undefined4 *)(param_1 + 8),param_1);\n    if (iVar3 != 0) {\n      return;\n    }\n    iVar3 = filename_cmp(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc));\n    if (iVar3 != 0) {\n      iVar3 = *(int *)(param_1 + 0xc);\n      pcVar7 = *(char **)(param_1 + 8);\n      pcVar5 = "%P: cannot find %s (%s): %E\n";\n      goto LAB_00035c05;\n    }\n    pcVar7 = *(char **)(param_1 + 0xc);\n    pcVar5 = "%P: cannot find %s: %E\n";\n  }\n  else {\n    puVar6 = DAT_001cf884;\n    if (DAT_001cf884 != (undefined4 *)0x0) {\n      do {\n        iVar3 = FUN_00035960(*puVar6,param_1,"lib",".a");\n        if ((iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)) {\n          *(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;\n          return;\n        }\n        puVar1 = puVar6 + 1;\n        puVar6 = (undefined4 *)*puVar1;\n      } while ((undefined4 *)*puVar1 != (undefined4 *)0x0);\n      bVar2 = *(byte *)(param_1 + 0x24);\n    }\n    pcVar7 = *(char **)(param_1 + 0xc);\n    if ((((bVar2 & 8) != 0) && (DAT_001d047c != 0)) && (*pcVar7 == '/')) {\n      pcVar5 = "%P: cannot find %s inside %s\n";\n      iVar3 = DAT_001d047c;\nLAB_00035c05:\n      uVar4 = dcgettext(0,pcVar5,5);\n      FUN_00034d20(uVar4,pcVar7,iVar3);\n      goto LAB_00035baf;\n    }\n    pcVar5 = "%P: cannot find %s\n";\n  }\n  uVar4 = dcgettext(0,pcVar5,5);\n  FUN_00034d20(uVar4,pcVar7);\nLAB_00035baf:\n  *(byte *)(param_1 + 0x25) = *(byte *)(param_1 + 0x25) | 8;\n  DAT_001d0391 = DAT_001d0391 | 8;\n  return;\n}" primitive_type (function_declarator "FUN_00035ae0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  byte bVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  undefined4 *puVar6;\n  char *pcVar7;\n  \n  if (*(int *)(param_1 + 0x10) != 0) {\n    return;\n  }\n  bVar2 = *(byte *)(param_1 + 0x24);\n  if ((bVar2 & 4) == 0) {\n    iVar3 = FUN_00035320(*(undefined4 *)(param_1 + 8),param_1);\n    if (iVar3 != 0) {\n      return;\n    }\n    iVar3 = filename_cmp(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc));\n    if (iVar3 != 0) {\n      iVar3 = *(int *)(param_1 + 0xc);\n      pcVar7 = *(char **)(param_1 + 8);\n      pcVar5 = "%P: cannot find %s (%s): %E\n";\n      goto LAB_00035c05;\n    }\n    pcVar7 = *(char **)(param_1 + 0xc);\n    pcVar5 = "%P: cannot find %s: %E\n";\n  }\n  else {\n    puVar6 = DAT_001cf884;\n    if (DAT_001cf884 != (undefined4 *)0x0) {\n      do {\n        iVar3 = FUN_00035960(*puVar6,param_1,"lib",".a");\n        if ((iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)) {\n          *(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;\n          return;\n        }\n        puVar1 = puVar6 + 1;\n        puVar6 = (undefined4 *)*puVar1;\n      } while ((undefined4 *)*puVar1 != (undefined4 *)0x0);\n      bVar2 = *(byte *)(param_1 + 0x24);\n    }\n    pcVar7 = *(char **)(param_1 + 0xc);\n    if ((((bVar2 & 8) != 0) && (DAT_001d047c != 0)) && (*pcVar7 == '/')) {\n      pcVar5 = "%P: cannot find %s inside %s\n";\n      iVar3 = DAT_001d047c;\nLAB_00035c05:\n      uVar4 = dcgettext(0,pcVar5,5);\n      FUN_00034d20(uVar4,pcVar7,iVar3);\n      goto LAB_00035baf;\n    }\n    pcVar5 = "%P: cannot find %s\n";\n  }\n  uVar4 = dcgettext(0,pcVar5,5);\n  FUN_00034d20(uVar4,pcVar7);\nLAB_00035baf:\n  *(byte *)(param_1 + 0x25) = *(byte *)(param_1 + 0x25) | 8;\n  DAT_001d0391 = DAT_001d0391 | 8;\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (if_statement "if (*(int *)(param_1 + 0x10) != 0) {\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x10) != 0)" ( (binary_expression "*(int *)(param_1 + 0x10) != 0" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "bVar2 = *(byte *)(param_1 + 0x24);" (assignment_expression "bVar2 = *(byte *)(param_1 + 0x24)" identifier = (pointer_expression "*(byte *)(param_1 + 0x24)" * (cast_expression "(byte *)(param_1 + 0x24)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (if_statement "if ((bVar2 & 4) == 0) {\n    iVar3 = FUN_00035320(*(undefined4 *)(param_1 + 8),param_1);\n    if (iVar3 != 0) {\n      return;\n    }\n    iVar3 = filename_cmp(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc));\n    if (iVar3 != 0) {\n      iVar3 = *(int *)(param_1 + 0xc);\n      pcVar7 = *(char **)(param_1 + 8);\n      pcVar5 = "%P: cannot find %s (%s): %E\n";\n      goto LAB_00035c05;\n    }\n    pcVar7 = *(char **)(param_1 + 0xc);\n    pcVar5 = "%P: cannot find %s: %E\n";\n  }\n  else {\n    puVar6 = DAT_001cf884;\n    if (DAT_001cf884 != (undefined4 *)0x0) {\n      do {\n        iVar3 = FUN_00035960(*puVar6,param_1,"lib",".a");\n        if ((iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)) {\n          *(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;\n          return;\n        }\n        puVar1 = puVar6 + 1;\n        puVar6 = (undefined4 *)*puVar1;\n      } while ((undefined4 *)*puVar1 != (undefined4 *)0x0);\n      bVar2 = *(byte *)(param_1 + 0x24);\n    }\n    pcVar7 = *(char **)(param_1 + 0xc);\n    if ((((bVar2 & 8) != 0) && (DAT_001d047c != 0)) && (*pcVar7 == '/')) {\n      pcVar5 = "%P: cannot find %s inside %s\n";\n      iVar3 = DAT_001d047c;\nLAB_00035c05:\n      uVar4 = dcgettext(0,pcVar5,5);\n      FUN_00034d20(uVar4,pcVar7,iVar3);\n      goto LAB_00035baf;\n    }\n    pcVar5 = "%P: cannot find %s\n";\n  }" if (parenthesized_expression "((bVar2 & 4) == 0)" ( (binary_expression "(bVar2 & 4) == 0" (parenthesized_expression "(bVar2 & 4)" ( (binary_expression "bVar2 & 4" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    iVar3 = FUN_00035320(*(undefined4 *)(param_1 + 8),param_1);\n    if (iVar3 != 0) {\n      return;\n    }\n    iVar3 = filename_cmp(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc));\n    if (iVar3 != 0) {\n      iVar3 = *(int *)(param_1 + 0xc);\n      pcVar7 = *(char **)(param_1 + 8);\n      pcVar5 = "%P: cannot find %s (%s): %E\n";\n      goto LAB_00035c05;\n    }\n    pcVar7 = *(char **)(param_1 + 0xc);\n    pcVar5 = "%P: cannot find %s: %E\n";\n  }" { (expression_statement "iVar3 = FUN_00035320(*(undefined4 *)(param_1 + 8),param_1);" (assignment_expression "iVar3 = FUN_00035320(*(undefined4 *)(param_1 + 8),param_1)" identifier = (call_expression "FUN_00035320(*(undefined4 *)(param_1 + 8),param_1)" identifier (argument_list "(*(undefined4 *)(param_1 + 8),param_1)" ( (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n      return;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "iVar3 = filename_cmp(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc));" (assignment_expression "iVar3 = filename_cmp(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc))" identifier = (call_expression "filename_cmp(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc))" identifier (argument_list "(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar3 != 0) {\n      iVar3 = *(int *)(param_1 + 0xc);\n      pcVar7 = *(char **)(param_1 + 8);\n      pcVar5 = "%P: cannot find %s (%s): %E\n";\n      goto LAB_00035c05;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar3 = *(int *)(param_1 + 0xc);\n      pcVar7 = *(char **)(param_1 + 8);\n      pcVar5 = "%P: cannot find %s (%s): %E\n";\n      goto LAB_00035c05;\n    }" { (expression_statement "iVar3 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar3 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "pcVar7 = *(char **)(param_1 + 8);" (assignment_expression "pcVar7 = *(char **)(param_1 + 8)" identifier = (pointer_expression "*(char **)(param_1 + 8)" * (cast_expression "(char **)(param_1 + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "pcVar5 = "%P: cannot find %s (%s): %E\n";" (assignment_expression "pcVar5 = "%P: cannot find %s (%s): %E\n"" identifier = (string_literal ""%P: cannot find %s (%s): %E\n"" " string_content escape_sequence ")) ;) (goto_statement "goto LAB_00035c05;" goto statement_identifier ;) })) (expression_statement "pcVar7 = *(char **)(param_1 + 0xc);" (assignment_expression "pcVar7 = *(char **)(param_1 + 0xc)" identifier = (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "pcVar5 = "%P: cannot find %s: %E\n";" (assignment_expression "pcVar5 = "%P: cannot find %s: %E\n"" identifier = (string_literal ""%P: cannot find %s: %E\n"" " string_content escape_sequence ")) ;) }) (else_clause "else {\n    puVar6 = DAT_001cf884;\n    if (DAT_001cf884 != (undefined4 *)0x0) {\n      do {\n        iVar3 = FUN_00035960(*puVar6,param_1,"lib",".a");\n        if ((iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)) {\n          *(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;\n          return;\n        }\n        puVar1 = puVar6 + 1;\n        puVar6 = (undefined4 *)*puVar1;\n      } while ((undefined4 *)*puVar1 != (undefined4 *)0x0);\n      bVar2 = *(byte *)(param_1 + 0x24);\n    }\n    pcVar7 = *(char **)(param_1 + 0xc);\n    if ((((bVar2 & 8) != 0) && (DAT_001d047c != 0)) && (*pcVar7 == '/')) {\n      pcVar5 = "%P: cannot find %s inside %s\n";\n      iVar3 = DAT_001d047c;\nLAB_00035c05:\n      uVar4 = dcgettext(0,pcVar5,5);\n      FUN_00034d20(uVar4,pcVar7,iVar3);\n      goto LAB_00035baf;\n    }\n    pcVar5 = "%P: cannot find %s\n";\n  }" else (compound_statement "{\n    puVar6 = DAT_001cf884;\n    if (DAT_001cf884 != (undefined4 *)0x0) {\n      do {\n        iVar3 = FUN_00035960(*puVar6,param_1,"lib",".a");\n        if ((iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)) {\n          *(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;\n          return;\n        }\n        puVar1 = puVar6 + 1;\n        puVar6 = (undefined4 *)*puVar1;\n      } while ((undefined4 *)*puVar1 != (undefined4 *)0x0);\n      bVar2 = *(byte *)(param_1 + 0x24);\n    }\n    pcVar7 = *(char **)(param_1 + 0xc);\n    if ((((bVar2 & 8) != 0) && (DAT_001d047c != 0)) && (*pcVar7 == '/')) {\n      pcVar5 = "%P: cannot find %s inside %s\n";\n      iVar3 = DAT_001d047c;\nLAB_00035c05:\n      uVar4 = dcgettext(0,pcVar5,5);\n      FUN_00034d20(uVar4,pcVar7,iVar3);\n      goto LAB_00035baf;\n    }\n    pcVar5 = "%P: cannot find %s\n";\n  }" { (expression_statement "puVar6 = DAT_001cf884;" (assignment_expression "puVar6 = DAT_001cf884" identifier = identifier) ;) (if_statement "if (DAT_001cf884 != (undefined4 *)0x0) {\n      do {\n        iVar3 = FUN_00035960(*puVar6,param_1,"lib",".a");\n        if ((iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)) {\n          *(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;\n          return;\n        }\n        puVar1 = puVar6 + 1;\n        puVar6 = (undefined4 *)*puVar1;\n      } while ((undefined4 *)*puVar1 != (undefined4 *)0x0);\n      bVar2 = *(byte *)(param_1 + 0x24);\n    }" if (parenthesized_expression "(DAT_001cf884 != (undefined4 *)0x0)" ( (binary_expression "DAT_001cf884 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      do {\n        iVar3 = FUN_00035960(*puVar6,param_1,"lib",".a");\n        if ((iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)) {\n          *(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;\n          return;\n        }\n        puVar1 = puVar6 + 1;\n        puVar6 = (undefined4 *)*puVar1;\n      } while ((undefined4 *)*puVar1 != (undefined4 *)0x0);\n      bVar2 = *(byte *)(param_1 + 0x24);\n    }" { (do_statement "do {\n        iVar3 = FUN_00035960(*puVar6,param_1,"lib",".a");\n        if ((iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)) {\n          *(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;\n          return;\n        }\n        puVar1 = puVar6 + 1;\n        puVar6 = (undefined4 *)*puVar1;\n      } while ((undefined4 *)*puVar1 != (undefined4 *)0x0);" do (compound_statement "{\n        iVar3 = FUN_00035960(*puVar6,param_1,"lib",".a");\n        if ((iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)) {\n          *(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;\n          return;\n        }\n        puVar1 = puVar6 + 1;\n        puVar6 = (undefined4 *)*puVar1;\n      }" { (expression_statement "iVar3 = FUN_00035960(*puVar6,param_1,"lib",".a");" (assignment_expression "iVar3 = FUN_00035960(*puVar6,param_1,"lib",".a")" identifier = (call_expression "FUN_00035960(*puVar6,param_1,"lib",".a")" identifier (argument_list "(*puVar6,param_1,"lib",".a")" ( (pointer_expression "*puVar6" * identifier) , identifier , (string_literal ""lib"" " string_content ") , (string_literal "".a"" " string_content ") )))) ;) (if_statement "if ((iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)) {\n          *(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;\n          return;\n        }" if (parenthesized_expression "((iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0))" ( (binary_expression "(iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)" (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) || (parenthesized_expression "(iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)" ( (comma_expression "iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0" (assignment_expression "iVar3 = FUN_00033cb0(*puVar6,param_1)" identifier = (call_expression "FUN_00033cb0(*puVar6,param_1)" identifier (argument_list "(*puVar6,param_1)" ( (pointer_expression "*puVar6" * identifier) , identifier )))) , (binary_expression "iVar3 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n          *(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;\n          return;\n        }" { (expression_statement "*(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;" (assignment_expression "*(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb" (pointer_expression "*(byte *)(param_1 + 0x24)" * (cast_expression "(byte *)(param_1 + 0x24)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = (binary_expression "*(byte *)(param_1 + 0x24) & 0xfb" (pointer_expression "*(byte *)(param_1 + 0x24)" * (cast_expression "(byte *)(param_1 + 0x24)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) & number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "puVar1 = puVar6 + 1;" (assignment_expression "puVar1 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) (expression_statement "puVar6 = (undefined4 *)*puVar1;" (assignment_expression "puVar6 = (undefined4 *)*puVar1" identifier = (cast_expression "(undefined4 *)*puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) }) while (parenthesized_expression "((undefined4 *)*puVar1 != (undefined4 *)0x0)" ( (binary_expression "(undefined4 *)*puVar1 != (undefined4 *)0x0" (cast_expression "(undefined4 *)*puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier)) != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "bVar2 = *(byte *)(param_1 + 0x24);" (assignment_expression "bVar2 = *(byte *)(param_1 + 0x24)" identifier = (pointer_expression "*(byte *)(param_1 + 0x24)" * (cast_expression "(byte *)(param_1 + 0x24)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) })) (expression_statement "pcVar7 = *(char **)(param_1 + 0xc);" (assignment_expression "pcVar7 = *(char **)(param_1 + 0xc)" identifier = (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if ((((bVar2 & 8) != 0) && (DAT_001d047c != 0)) && (*pcVar7 == '/')) {\n      pcVar5 = "%P: cannot find %s inside %s\n";\n      iVar3 = DAT_001d047c;\nLAB_00035c05:\n      uVar4 = dcgettext(0,pcVar5,5);\n      FUN_00034d20(uVar4,pcVar7,iVar3);\n      goto LAB_00035baf;\n    }" if (parenthesized_expression "((((bVar2 & 8) != 0) && (DAT_001d047c != 0)) && (*pcVar7 == '/'))" ( (binary_expression "(((bVar2 & 8) != 0) && (DAT_001d047c != 0)) && (*pcVar7 == '/')" (parenthesized_expression "(((bVar2 & 8) != 0) && (DAT_001d047c != 0))" ( (binary_expression "((bVar2 & 8) != 0) && (DAT_001d047c != 0)" (parenthesized_expression "((bVar2 & 8) != 0)" ( (binary_expression "(bVar2 & 8) != 0" (parenthesized_expression "(bVar2 & 8)" ( (binary_expression "bVar2 & 8" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(DAT_001d047c != 0)" ( (binary_expression "DAT_001d047c != 0" identifier != number_literal) ))) )) && (parenthesized_expression "(*pcVar7 == '/')" ( (binary_expression "*pcVar7 == '/'" (pointer_expression "*pcVar7" * identifier) == (char_literal "'/'" ' character ')) ))) )) (compound_statement "{\n      pcVar5 = "%P: cannot find %s inside %s\n";\n      iVar3 = DAT_001d047c;\nLAB_00035c05:\n      uVar4 = dcgettext(0,pcVar5,5);\n      FUN_00034d20(uVar4,pcVar7,iVar3);\n      goto LAB_00035baf;\n    }" { (expression_statement "pcVar5 = "%P: cannot find %s inside %s\n";" (assignment_expression "pcVar5 = "%P: cannot find %s inside %s\n"" identifier = (string_literal ""%P: cannot find %s inside %s\n"" " string_content escape_sequence ")) ;) (expression_statement "iVar3 = DAT_001d047c;" (assignment_expression "iVar3 = DAT_001d047c" identifier = identifier) ;) (labeled_statement "LAB_00035c05:\n      uVar4 = dcgettext(0,pcVar5,5);" statement_identifier : (expression_statement "uVar4 = dcgettext(0,pcVar5,5);" (assignment_expression "uVar4 = dcgettext(0,pcVar5,5)" identifier = (call_expression "dcgettext(0,pcVar5,5)" identifier (argument_list "(0,pcVar5,5)" ( number_literal , identifier , number_literal )))) ;)) (expression_statement "FUN_00034d20(uVar4,pcVar7,iVar3);" (call_expression "FUN_00034d20(uVar4,pcVar7,iVar3)" identifier (argument_list "(uVar4,pcVar7,iVar3)" ( identifier , identifier , identifier ))) ;) (goto_statement "goto LAB_00035baf;" goto statement_identifier ;) })) (expression_statement "pcVar5 = "%P: cannot find %s\n";" (assignment_expression "pcVar5 = "%P: cannot find %s\n"" identifier = (string_literal ""%P: cannot find %s\n"" " string_content escape_sequence ")) ;) }))) (expression_statement "uVar4 = dcgettext(0,pcVar5,5);" (assignment_expression "uVar4 = dcgettext(0,pcVar5,5)" identifier = (call_expression "dcgettext(0,pcVar5,5)" identifier (argument_list "(0,pcVar5,5)" ( number_literal , identifier , number_literal )))) ;) (expression_statement "FUN_00034d20(uVar4,pcVar7);" (call_expression "FUN_00034d20(uVar4,pcVar7)" identifier (argument_list "(uVar4,pcVar7)" ( identifier , identifier ))) ;) (labeled_statement "LAB_00035baf:\n  *(byte *)(param_1 + 0x25) = *(byte *)(param_1 + 0x25) | 8;" statement_identifier : (expression_statement "*(byte *)(param_1 + 0x25) = *(byte *)(param_1 + 0x25) | 8;" (assignment_expression "*(byte *)(param_1 + 0x25) = *(byte *)(param_1 + 0x25) | 8" (pointer_expression "*(byte *)(param_1 + 0x25)" * (cast_expression "(byte *)(param_1 + 0x25)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x25)" ( (binary_expression "param_1 + 0x25" identifier + number_literal) )))) = (binary_expression "*(byte *)(param_1 + 0x25) | 8" (pointer_expression "*(byte *)(param_1 + 0x25)" * (cast_expression "(byte *)(param_1 + 0x25)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x25)" ( (binary_expression "param_1 + 0x25" identifier + number_literal) )))) | number_literal)) ;)) (expression_statement "DAT_001d0391 = DAT_001d0391 | 8;" (assignment_expression "DAT_001d0391 = DAT_001d0391 | 8" identifier = (binary_expression "DAT_001d0391 | 8" identifier | number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid ldfile_open_file(lang_input_statement_type *entry)\n\n{\n  search_arch **ppsVar1;\n  undefined1 *puVar2;\n  byte bVar3;\n  int iVar4;\n  bfd_boolean bVar5;\n  char *pcVar6;\n  char *pcVar7;\n  search_arch *psVar8;\n  char *pcVar9;\n  \n  if (entry->the_bfd != (bfd *)0x0) {\n    return;\n  }\n  bVar3 = *(byte *)&entry->flags;\n  if ((bVar3 & 4) == 0) {\n    bVar5 = ldfile_try_open_bfd(entry->filename,entry);\n    if (bVar5 != 0) {\n      return;\n    }\n    iVar4 = filename_cmp(entry->filename,entry->local_sym_name);\n    if (iVar4 != 0) {\n      pcVar7 = entry->local_sym_name;\n      pcVar9 = entry->filename;\n      pcVar6 = "%P: cannot find %s (%s): %E\n";\n      goto LAB_00035c05;\n    }\n    pcVar9 = entry->local_sym_name;\n    pcVar6 = "%P: cannot find %s: %E\n";\n  }\n  else {\n    psVar8 = search_arch_head;\n    if (search_arch_head != (search_arch_type *)0x0) {\n      do {\n        bVar5 = ldfile_open_file_search(psVar8->name,entry,"lib",".a");\n        if ((bVar5 != 0) ||\n           (iVar4 = ldemul_find_potential_libraries(psVar8->name,entry), iVar4 != 0)) {\n          *(byte *)&entry->flags = *(byte *)&entry->flags & 0xfb;\n          return;\n        }\n        ppsVar1 = &psVar8->next;\n        psVar8 = *ppsVar1;\n      } while (*ppsVar1 != (search_arch *)0x0);\n      bVar3 = *(byte *)&entry->flags;\n    }\n    pcVar9 = entry->local_sym_name;\n    if ((((bVar3 & 8) != 0) && (ld_sysroot != (char *)0x0)) && (*pcVar9 == '/')) {\n      pcVar6 = "%P: cannot find %s inside %s\n";\n      pcVar7 = ld_sysroot;\nLAB_00035c05:\n      pcVar6 = (char *)dcgettext(0,pcVar6,5);\n      einfo(pcVar6,pcVar9,pcVar7);\n      goto LAB_00035baf;\n    }\n    pcVar6 = "%P: cannot find %s\n";\n  }\n  pcVar6 = (char *)dcgettext(0,pcVar6,5);\n  einfo(pcVar6,pcVar9);\nLAB_00035baf:\n  puVar2 = &(entry->flags).field_0x1;\n  *puVar2 = *puVar2 | 8;\n  input_flags._1_1_ = input_flags._1_1_ | 8;\n  return;\n}\n\n" comment (function_definition "void ldfile_open_file(lang_input_statement_type *entry)\n\n{\n  search_arch **ppsVar1;\n  undefined1 *puVar2;\n  byte bVar3;\n  int iVar4;\n  bfd_boolean bVar5;\n  char *pcVar6;\n  char *pcVar7;\n  search_arch *psVar8;\n  char *pcVar9;\n  \n  if (entry->the_bfd != (bfd *)0x0) {\n    return;\n  }\n  bVar3 = *(byte *)&entry->flags;\n  if ((bVar3 & 4) == 0) {\n    bVar5 = ldfile_try_open_bfd(entry->filename,entry);\n    if (bVar5 != 0) {\n      return;\n    }\n    iVar4 = filename_cmp(entry->filename,entry->local_sym_name);\n    if (iVar4 != 0) {\n      pcVar7 = entry->local_sym_name;\n      pcVar9 = entry->filename;\n      pcVar6 = "%P: cannot find %s (%s): %E\n";\n      goto LAB_00035c05;\n    }\n    pcVar9 = entry->local_sym_name;\n    pcVar6 = "%P: cannot find %s: %E\n";\n  }\n  else {\n    psVar8 = search_arch_head;\n    if (search_arch_head != (search_arch_type *)0x0) {\n      do {\n        bVar5 = ldfile_open_file_search(psVar8->name,entry,"lib",".a");\n        if ((bVar5 != 0) ||\n           (iVar4 = ldemul_find_potential_libraries(psVar8->name,entry), iVar4 != 0)) {\n          *(byte *)&entry->flags = *(byte *)&entry->flags & 0xfb;\n          return;\n        }\n        ppsVar1 = &psVar8->next;\n        psVar8 = *ppsVar1;\n      } while (*ppsVar1 != (search_arch *)0x0);\n      bVar3 = *(byte *)&entry->flags;\n    }\n    pcVar9 = entry->local_sym_name;\n    if ((((bVar3 & 8) != 0) && (ld_sysroot != (char *)0x0)) && (*pcVar9 == '/')) {\n      pcVar6 = "%P: cannot find %s inside %s\n";\n      pcVar7 = ld_sysroot;\nLAB_00035c05:\n      pcVar6 = (char *)dcgettext(0,pcVar6,5);\n      einfo(pcVar6,pcVar9,pcVar7);\n      goto LAB_00035baf;\n    }\n    pcVar6 = "%P: cannot find %s\n";\n  }\n  pcVar6 = (char *)dcgettext(0,pcVar6,5);\n  einfo(pcVar6,pcVar9);\nLAB_00035baf:\n  puVar2 = &(entry->flags).field_0x1;\n  *puVar2 = *puVar2 | 8;\n  input_flags._1_1_ = input_flags._1_1_ | 8;\n  return;\n}" primitive_type (function_declarator "ldfile_open_file(lang_input_statement_type *entry)" identifier (parameter_list "(lang_input_statement_type *entry)" ( (parameter_declaration "lang_input_statement_type *entry" type_identifier (pointer_declarator "*entry" * identifier)) ))) (compound_statement "{\n  search_arch **ppsVar1;\n  undefined1 *puVar2;\n  byte bVar3;\n  int iVar4;\n  bfd_boolean bVar5;\n  char *pcVar6;\n  char *pcVar7;\n  search_arch *psVar8;\n  char *pcVar9;\n  \n  if (entry->the_bfd != (bfd *)0x0) {\n    return;\n  }\n  bVar3 = *(byte *)&entry->flags;\n  if ((bVar3 & 4) == 0) {\n    bVar5 = ldfile_try_open_bfd(entry->filename,entry);\n    if (bVar5 != 0) {\n      return;\n    }\n    iVar4 = filename_cmp(entry->filename,entry->local_sym_name);\n    if (iVar4 != 0) {\n      pcVar7 = entry->local_sym_name;\n      pcVar9 = entry->filename;\n      pcVar6 = "%P: cannot find %s (%s): %E\n";\n      goto LAB_00035c05;\n    }\n    pcVar9 = entry->local_sym_name;\n    pcVar6 = "%P: cannot find %s: %E\n";\n  }\n  else {\n    psVar8 = search_arch_head;\n    if (search_arch_head != (search_arch_type *)0x0) {\n      do {\n        bVar5 = ldfile_open_file_search(psVar8->name,entry,"lib",".a");\n        if ((bVar5 != 0) ||\n           (iVar4 = ldemul_find_potential_libraries(psVar8->name,entry), iVar4 != 0)) {\n          *(byte *)&entry->flags = *(byte *)&entry->flags & 0xfb;\n          return;\n        }\n        ppsVar1 = &psVar8->next;\n        psVar8 = *ppsVar1;\n      } while (*ppsVar1 != (search_arch *)0x0);\n      bVar3 = *(byte *)&entry->flags;\n    }\n    pcVar9 = entry->local_sym_name;\n    if ((((bVar3 & 8) != 0) && (ld_sysroot != (char *)0x0)) && (*pcVar9 == '/')) {\n      pcVar6 = "%P: cannot find %s inside %s\n";\n      pcVar7 = ld_sysroot;\nLAB_00035c05:\n      pcVar6 = (char *)dcgettext(0,pcVar6,5);\n      einfo(pcVar6,pcVar9,pcVar7);\n      goto LAB_00035baf;\n    }\n    pcVar6 = "%P: cannot find %s\n";\n  }\n  pcVar6 = (char *)dcgettext(0,pcVar6,5);\n  einfo(pcVar6,pcVar9);\nLAB_00035baf:\n  puVar2 = &(entry->flags).field_0x1;\n  *puVar2 = *puVar2 | 8;\n  input_flags._1_1_ = input_flags._1_1_ | 8;\n  return;\n}" { (declaration "search_arch **ppsVar1;" type_identifier (pointer_declarator "**ppsVar1" * (pointer_declarator "*ppsVar1" * identifier)) ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "bfd_boolean bVar5;" type_identifier identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "search_arch *psVar8;" type_identifier (pointer_declarator "*psVar8" * identifier) ;) (declaration "char *pcVar9;" primitive_type (pointer_declarator "*pcVar9" * identifier) ;) (if_statement "if (entry->the_bfd != (bfd *)0x0) {\n    return;\n  }" if (parenthesized_expression "(entry->the_bfd != (bfd *)0x0)" ( (binary_expression "entry->the_bfd != (bfd *)0x0" (field_expression "entry->the_bfd" identifier -> field_identifier) != (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "bVar3 = *(byte *)&entry->flags;" (assignment_expression "bVar3 = *(byte *)&entry->flags" identifier = (pointer_expression "*(byte *)&entry->flags" * (cast_expression "(byte *)&entry->flags" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&entry->flags" & (field_expression "entry->flags" identifier -> field_identifier))))) ;) (if_statement "if ((bVar3 & 4) == 0) {\n    bVar5 = ldfile_try_open_bfd(entry->filename,entry);\n    if (bVar5 != 0) {\n      return;\n    }\n    iVar4 = filename_cmp(entry->filename,entry->local_sym_name);\n    if (iVar4 != 0) {\n      pcVar7 = entry->local_sym_name;\n      pcVar9 = entry->filename;\n      pcVar6 = "%P: cannot find %s (%s): %E\n";\n      goto LAB_00035c05;\n    }\n    pcVar9 = entry->local_sym_name;\n    pcVar6 = "%P: cannot find %s: %E\n";\n  }\n  else {\n    psVar8 = search_arch_head;\n    if (search_arch_head != (search_arch_type *)0x0) {\n      do {\n        bVar5 = ldfile_open_file_search(psVar8->name,entry,"lib",".a");\n        if ((bVar5 != 0) ||\n           (iVar4 = ldemul_find_potential_libraries(psVar8->name,entry), iVar4 != 0)) {\n          *(byte *)&entry->flags = *(byte *)&entry->flags & 0xfb;\n          return;\n        }\n        ppsVar1 = &psVar8->next;\n        psVar8 = *ppsVar1;\n      } while (*ppsVar1 != (search_arch *)0x0);\n      bVar3 = *(byte *)&entry->flags;\n    }\n    pcVar9 = entry->local_sym_name;\n    if ((((bVar3 & 8) != 0) && (ld_sysroot != (char *)0x0)) && (*pcVar9 == '/')) {\n      pcVar6 = "%P: cannot find %s inside %s\n";\n      pcVar7 = ld_sysroot;\nLAB_00035c05:\n      pcVar6 = (char *)dcgettext(0,pcVar6,5);\n      einfo(pcVar6,pcVar9,pcVar7);\n      goto LAB_00035baf;\n    }\n    pcVar6 = "%P: cannot find %s\n";\n  }" if (parenthesized_expression "((bVar3 & 4) == 0)" ( (binary_expression "(bVar3 & 4) == 0" (parenthesized_expression "(bVar3 & 4)" ( (binary_expression "bVar3 & 4" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    bVar5 = ldfile_try_open_bfd(entry->filename,entry);\n    if (bVar5 != 0) {\n      return;\n    }\n    iVar4 = filename_cmp(entry->filename,entry->local_sym_name);\n    if (iVar4 != 0) {\n      pcVar7 = entry->local_sym_name;\n      pcVar9 = entry->filename;\n      pcVar6 = "%P: cannot find %s (%s): %E\n";\n      goto LAB_00035c05;\n    }\n    pcVar9 = entry->local_sym_name;\n    pcVar6 = "%P: cannot find %s: %E\n";\n  }" { (expression_statement "bVar5 = ldfile_try_open_bfd(entry->filename,entry);" (assignment_expression "bVar5 = ldfile_try_open_bfd(entry->filename,entry)" identifier = (call_expression "ldfile_try_open_bfd(entry->filename,entry)" identifier (argument_list "(entry->filename,entry)" ( (field_expression "entry->filename" identifier -> field_identifier) , identifier )))) ;) (if_statement "if (bVar5 != 0) {\n      return;\n    }" if (parenthesized_expression "(bVar5 != 0)" ( (binary_expression "bVar5 != 0" identifier != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "iVar4 = filename_cmp(entry->filename,entry->local_sym_name);" (assignment_expression "iVar4 = filename_cmp(entry->filename,entry->local_sym_name)" identifier = (call_expression "filename_cmp(entry->filename,entry->local_sym_name)" identifier (argument_list "(entry->filename,entry->local_sym_name)" ( (field_expression "entry->filename" identifier -> field_identifier) , (field_expression "entry->local_sym_name" identifier -> field_identifier) )))) ;) (if_statement "if (iVar4 != 0) {\n      pcVar7 = entry->local_sym_name;\n      pcVar9 = entry->filename;\n      pcVar6 = "%P: cannot find %s (%s): %E\n";\n      goto LAB_00035c05;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      pcVar7 = entry->local_sym_name;\n      pcVar9 = entry->filename;\n      pcVar6 = "%P: cannot find %s (%s): %E\n";\n      goto LAB_00035c05;\n    }" { (expression_statement "pcVar7 = entry->local_sym_name;" (assignment_expression "pcVar7 = entry->local_sym_name" identifier = (field_expression "entry->local_sym_name" identifier -> field_identifier)) ;) (expression_statement "pcVar9 = entry->filename;" (assignment_expression "pcVar9 = entry->filename" identifier = (field_expression "entry->filename" identifier -> field_identifier)) ;) (expression_statement "pcVar6 = "%P: cannot find %s (%s): %E\n";" (assignment_expression "pcVar6 = "%P: cannot find %s (%s): %E\n"" identifier = (string_literal ""%P: cannot find %s (%s): %E\n"" " string_content escape_sequence ")) ;) (goto_statement "goto LAB_00035c05;" goto statement_identifier ;) })) (expression_statement "pcVar9 = entry->local_sym_name;" (assignment_expression "pcVar9 = entry->local_sym_name" identifier = (field_expression "entry->local_sym_name" identifier -> field_identifier)) ;) (expression_statement "pcVar6 = "%P: cannot find %s: %E\n";" (assignment_expression "pcVar6 = "%P: cannot find %s: %E\n"" identifier = (string_literal ""%P: cannot find %s: %E\n"" " string_content escape_sequence ")) ;) }) (else_clause "else {\n    psVar8 = search_arch_head;\n    if (search_arch_head != (search_arch_type *)0x0) {\n      do {\n        bVar5 = ldfile_open_file_search(psVar8->name,entry,"lib",".a");\n        if ((bVar5 != 0) ||\n           (iVar4 = ldemul_find_potential_libraries(psVar8->name,entry), iVar4 != 0)) {\n          *(byte *)&entry->flags = *(byte *)&entry->flags & 0xfb;\n          return;\n        }\n        ppsVar1 = &psVar8->next;\n        psVar8 = *ppsVar1;\n      } while (*ppsVar1 != (search_arch *)0x0);\n      bVar3 = *(byte *)&entry->flags;\n    }\n    pcVar9 = entry->local_sym_name;\n    if ((((bVar3 & 8) != 0) && (ld_sysroot != (char *)0x0)) && (*pcVar9 == '/')) {\n      pcVar6 = "%P: cannot find %s inside %s\n";\n      pcVar7 = ld_sysroot;\nLAB_00035c05:\n      pcVar6 = (char *)dcgettext(0,pcVar6,5);\n      einfo(pcVar6,pcVar9,pcVar7);\n      goto LAB_00035baf;\n    }\n    pcVar6 = "%P: cannot find %s\n";\n  }" else (compound_statement "{\n    psVar8 = search_arch_head;\n    if (search_arch_head != (search_arch_type *)0x0) {\n      do {\n        bVar5 = ldfile_open_file_search(psVar8->name,entry,"lib",".a");\n        if ((bVar5 != 0) ||\n           (iVar4 = ldemul_find_potential_libraries(psVar8->name,entry), iVar4 != 0)) {\n          *(byte *)&entry->flags = *(byte *)&entry->flags & 0xfb;\n          return;\n        }\n        ppsVar1 = &psVar8->next;\n        psVar8 = *ppsVar1;\n      } while (*ppsVar1 != (search_arch *)0x0);\n      bVar3 = *(byte *)&entry->flags;\n    }\n    pcVar9 = entry->local_sym_name;\n    if ((((bVar3 & 8) != 0) && (ld_sysroot != (char *)0x0)) && (*pcVar9 == '/')) {\n      pcVar6 = "%P: cannot find %s inside %s\n";\n      pcVar7 = ld_sysroot;\nLAB_00035c05:\n      pcVar6 = (char *)dcgettext(0,pcVar6,5);\n      einfo(pcVar6,pcVar9,pcVar7);\n      goto LAB_00035baf;\n    }\n    pcVar6 = "%P: cannot find %s\n";\n  }" { (expression_statement "psVar8 = search_arch_head;" (assignment_expression "psVar8 = search_arch_head" identifier = identifier) ;) (if_statement "if (search_arch_head != (search_arch_type *)0x0) {\n      do {\n        bVar5 = ldfile_open_file_search(psVar8->name,entry,"lib",".a");\n        if ((bVar5 != 0) ||\n           (iVar4 = ldemul_find_potential_libraries(psVar8->name,entry), iVar4 != 0)) {\n          *(byte *)&entry->flags = *(byte *)&entry->flags & 0xfb;\n          return;\n        }\n        ppsVar1 = &psVar8->next;\n        psVar8 = *ppsVar1;\n      } while (*ppsVar1 != (search_arch *)0x0);\n      bVar3 = *(byte *)&entry->flags;\n    }" if (parenthesized_expression "(search_arch_head != (search_arch_type *)0x0)" ( (binary_expression "search_arch_head != (search_arch_type *)0x0" identifier != (cast_expression "(search_arch_type *)0x0" ( (type_descriptor "search_arch_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      do {\n        bVar5 = ldfile_open_file_search(psVar8->name,entry,"lib",".a");\n        if ((bVar5 != 0) ||\n           (iVar4 = ldemul_find_potential_libraries(psVar8->name,entry), iVar4 != 0)) {\n          *(byte *)&entry->flags = *(byte *)&entry->flags & 0xfb;\n          return;\n        }\n        ppsVar1 = &psVar8->next;\n        psVar8 = *ppsVar1;\n      } while (*ppsVar1 != (search_arch *)0x0);\n      bVar3 = *(byte *)&entry->flags;\n    }" { (do_statement "do {\n        bVar5 = ldfile_open_file_search(psVar8->name,entry,"lib",".a");\n        if ((bVar5 != 0) ||\n           (iVar4 = ldemul_find_potential_libraries(psVar8->name,entry), iVar4 != 0)) {\n          *(byte *)&entry->flags = *(byte *)&entry->flags & 0xfb;\n          return;\n        }\n        ppsVar1 = &psVar8->next;\n        psVar8 = *ppsVar1;\n      } while (*ppsVar1 != (search_arch *)0x0);" do (compound_statement "{\n        bVar5 = ldfile_open_file_search(psVar8->name,entry,"lib",".a");\n        if ((bVar5 != 0) ||\n           (iVar4 = ldemul_find_potential_libraries(psVar8->name,entry), iVar4 != 0)) {\n          *(byte *)&entry->flags = *(byte *)&entry->flags & 0xfb;\n          return;\n        }\n        ppsVar1 = &psVar8->next;\n        psVar8 = *ppsVar1;\n      }" { (expression_statement "bVar5 = ldfile_open_file_search(psVar8->name,entry,"lib",".a");" (assignment_expression "bVar5 = ldfile_open_file_search(psVar8->name,entry,"lib",".a")" identifier = (call_expression "ldfile_open_file_search(psVar8->name,entry,"lib",".a")" identifier (argument_list "(psVar8->name,entry,"lib",".a")" ( (field_expression "psVar8->name" identifier -> field_identifier) , identifier , (string_literal ""lib"" " string_content ") , (string_literal "".a"" " string_content ") )))) ;) (if_statement "if ((bVar5 != 0) ||\n           (iVar4 = ldemul_find_potential_libraries(psVar8->name,entry), iVar4 != 0)) {\n          *(byte *)&entry->flags = *(byte *)&entry->flags & 0xfb;\n          return;\n        }" if (parenthesized_expression "((bVar5 != 0) ||\n           (iVar4 = ldemul_find_potential_libraries(psVar8->name,entry), iVar4 != 0))" ( (binary_expression "(bVar5 != 0) ||\n           (iVar4 = ldemul_find_potential_libraries(psVar8->name,entry), iVar4 != 0)" (parenthesized_expression "(bVar5 != 0)" ( (binary_expression "bVar5 != 0" identifier != number_literal) )) || (parenthesized_expression "(iVar4 = ldemul_find_potential_libraries(psVar8->name,entry), iVar4 != 0)" ( (comma_expression "iVar4 = ldemul_find_potential_libraries(psVar8->name,entry), iVar4 != 0" (assignment_expression "iVar4 = ldemul_find_potential_libraries(psVar8->name,entry)" identifier = (call_expression "ldemul_find_potential_libraries(psVar8->name,entry)" identifier (argument_list "(psVar8->name,entry)" ( (field_expression "psVar8->name" identifier -> field_identifier) , identifier )))) , (binary_expression "iVar4 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n          *(byte *)&entry->flags = *(byte *)&entry->flags & 0xfb;\n          return;\n        }" { (expression_statement "*(byte *)&entry->flags = *(byte *)&entry->flags & 0xfb;" (assignment_expression "*(byte *)&entry->flags = *(byte *)&entry->flags & 0xfb" (pointer_expression "*(byte *)&entry->flags" * (cast_expression "(byte *)&entry->flags" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&entry->flags" & (field_expression "entry->flags" identifier -> field_identifier)))) = (binary_expression "*(byte *)&entry->flags & 0xfb" (pointer_expression "*(byte *)&entry->flags" * (cast_expression "(byte *)&entry->flags" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&entry->flags" & (field_expression "entry->flags" identifier -> field_identifier)))) & number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "ppsVar1 = &psVar8->next;" (assignment_expression "ppsVar1 = &psVar8->next" identifier = (pointer_expression "&psVar8->next" & (field_expression "psVar8->next" identifier -> field_identifier))) ;) (expression_statement "psVar8 = *ppsVar1;" (assignment_expression "psVar8 = *ppsVar1" identifier = (pointer_expression "*ppsVar1" * identifier)) ;) }) while (parenthesized_expression "(*ppsVar1 != (search_arch *)0x0)" ( (binary_expression "*ppsVar1 != (search_arch *)0x0" (pointer_expression "*ppsVar1" * identifier) != (cast_expression "(search_arch *)0x0" ( (type_descriptor "search_arch *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "bVar3 = *(byte *)&entry->flags;" (assignment_expression "bVar3 = *(byte *)&entry->flags" identifier = (pointer_expression "*(byte *)&entry->flags" * (cast_expression "(byte *)&entry->flags" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&entry->flags" & (field_expression "entry->flags" identifier -> field_identifier))))) ;) })) (expression_statement "pcVar9 = entry->local_sym_name;" (assignment_expression "pcVar9 = entry->local_sym_name" identifier = (field_expression "entry->local_sym_name" identifier -> field_identifier)) ;) (if_statement "if ((((bVar3 & 8) != 0) && (ld_sysroot != (char *)0x0)) && (*pcVar9 == '/')) {\n      pcVar6 = "%P: cannot find %s inside %s\n";\n      pcVar7 = ld_sysroot;\nLAB_00035c05:\n      pcVar6 = (char *)dcgettext(0,pcVar6,5);\n      einfo(pcVar6,pcVar9,pcVar7);\n      goto LAB_00035baf;\n    }" if (parenthesized_expression "((((bVar3 & 8) != 0) && (ld_sysroot != (char *)0x0)) && (*pcVar9 == '/'))" ( (binary_expression "(((bVar3 & 8) != 0) && (ld_sysroot != (char *)0x0)) && (*pcVar9 == '/')" (parenthesized_expression "(((bVar3 & 8) != 0) && (ld_sysroot != (char *)0x0))" ( (binary_expression "((bVar3 & 8) != 0) && (ld_sysroot != (char *)0x0)" (parenthesized_expression "((bVar3 & 8) != 0)" ( (binary_expression "(bVar3 & 8) != 0" (parenthesized_expression "(bVar3 & 8)" ( (binary_expression "bVar3 & 8" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(ld_sysroot != (char *)0x0)" ( (binary_expression "ld_sysroot != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) && (parenthesized_expression "(*pcVar9 == '/')" ( (binary_expression "*pcVar9 == '/'" (pointer_expression "*pcVar9" * identifier) == (char_literal "'/'" ' character ')) ))) )) (compound_statement "{\n      pcVar6 = "%P: cannot find %s inside %s\n";\n      pcVar7 = ld_sysroot;\nLAB_00035c05:\n      pcVar6 = (char *)dcgettext(0,pcVar6,5);\n      einfo(pcVar6,pcVar9,pcVar7);\n      goto LAB_00035baf;\n    }" { (expression_statement "pcVar6 = "%P: cannot find %s inside %s\n";" (assignment_expression "pcVar6 = "%P: cannot find %s inside %s\n"" identifier = (string_literal ""%P: cannot find %s inside %s\n"" " string_content escape_sequence ")) ;) (expression_statement "pcVar7 = ld_sysroot;" (assignment_expression "pcVar7 = ld_sysroot" identifier = identifier) ;) (labeled_statement "LAB_00035c05:\n      pcVar6 = (char *)dcgettext(0,pcVar6,5);" statement_identifier : (expression_statement "pcVar6 = (char *)dcgettext(0,pcVar6,5);" (assignment_expression "pcVar6 = (char *)dcgettext(0,pcVar6,5)" identifier = (cast_expression "(char *)dcgettext(0,pcVar6,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,pcVar6,5)" identifier (argument_list "(0,pcVar6,5)" ( number_literal , identifier , number_literal ))))) ;)) (expression_statement "einfo(pcVar6,pcVar9,pcVar7);" (call_expression "einfo(pcVar6,pcVar9,pcVar7)" identifier (argument_list "(pcVar6,pcVar9,pcVar7)" ( identifier , identifier , identifier ))) ;) (goto_statement "goto LAB_00035baf;" goto statement_identifier ;) })) (expression_statement "pcVar6 = "%P: cannot find %s\n";" (assignment_expression "pcVar6 = "%P: cannot find %s\n"" identifier = (string_literal ""%P: cannot find %s\n"" " string_content escape_sequence ")) ;) }))) (expression_statement "pcVar6 = (char *)dcgettext(0,pcVar6,5);" (assignment_expression "pcVar6 = (char *)dcgettext(0,pcVar6,5)" identifier = (cast_expression "(char *)dcgettext(0,pcVar6,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,pcVar6,5)" identifier (argument_list "(0,pcVar6,5)" ( number_literal , identifier , number_literal ))))) ;) (expression_statement "einfo(pcVar6,pcVar9);" (call_expression "einfo(pcVar6,pcVar9)" identifier (argument_list "(pcVar6,pcVar9)" ( identifier , identifier ))) ;) (labeled_statement "LAB_00035baf:\n  puVar2 = &(entry->flags).field_0x1;" statement_identifier : (expression_statement "puVar2 = &(entry->flags).field_0x1;" (assignment_expression "puVar2 = &(entry->flags).field_0x1" identifier = (pointer_expression "&(entry->flags).field_0x1" & (field_expression "(entry->flags).field_0x1" (parenthesized_expression "(entry->flags)" ( (field_expression "entry->flags" identifier -> field_identifier) )) . field_identifier))) ;)) (expression_statement "*puVar2 = *puVar2 | 8;" (assignment_expression "*puVar2 = *puVar2 | 8" (pointer_expression "*puVar2" * identifier) = (binary_expression "*puVar2 | 8" (pointer_expression "*puVar2" * identifier) | number_literal)) ;) (expression_statement "input_flags._1_1_ = input_flags._1_1_ | 8;" (assignment_expression "input_flags._1_1_ = input_flags._1_1_ | 8" (field_expression "input_flags._1_1_" identifier . field_identifier) = (binary_expression "input_flags._1_1_ | 8" (field_expression "input_flags._1_1_" identifier . field_identifier) | number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00035ae0(int param_1)\n\n{\n  undefined4 *puVar1;\n  byte bVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  undefined4 *puVar6;\n  char *pcVar7;\n  \n  if (*(int *)(param_1 + 0x10) != 0) {\n    return;\n  }\n  bVar2 = *(byte *)(param_1 + 0x24);\n  if ((bVar2 & 4) == 0) {\n    iVar3 = FUN_00035320(*(undefined4 *)(param_1 + 8),param_1);\n    if (iVar3 != 0) {\n      return;\n    }\n    iVar3 = filename_cmp(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc));\n    if (iVar3 != 0) {\n      iVar3 = *(int *)(param_1 + 0xc);\n      pcVar7 = *(char **)(param_1 + 8);\n      pcVar5 = "%P: cannot find %s (%s): %E\n";\n      goto LAB_00035c05;\n    }\n    pcVar7 = *(char **)(param_1 + 0xc);\n    pcVar5 = "%P: cannot find %s: %E\n";\n  }\n  else {\n    puVar6 = DAT_001cf884;\n    if (DAT_001cf884 != (undefined4 *)0x0) {\n      do {\n        iVar3 = FUN_00035960(*puVar6,param_1,"lib",".a");\n        if ((iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)) {\n          *(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;\n          return;\n        }\n        puVar1 = puVar6 + 1;\n        puVar6 = (undefined4 *)*puVar1;\n      } while ((undefined4 *)*puVar1 != (undefined4 *)0x0);\n      bVar2 = *(byte *)(param_1 + 0x24);\n    }\n    pcVar7 = *(char **)(param_1 + 0xc);\n    if ((((bVar2 & 8) != 0) && (DAT_001d047c != 0)) && (*pcVar7 == '/')) {\n      pcVar5 = "%P: cannot find %s inside %s\n";\n      iVar3 = DAT_001d047c;\nLAB_00035c05:\n      uVar4 = dcgettext(0,pcVar5,5);\n      FUN_00034d20(uVar4,pcVar7,iVar3);\n      goto LAB_00035baf;\n    }\n    pcVar5 = "%P: cannot find %s\n";\n  }\n  uVar4 = dcgettext(0,pcVar5,5);\n  FUN_00034d20(uVar4,pcVar7);\nLAB_00035baf:\n  *(byte *)(param_1 + 0x25) = *(byte *)(param_1 + 0x25) | 8;\n  DAT_001d0391 = DAT_001d0391 | 8;\n  return;\n}\n\n" (function_definition "void FUN_00035ae0(int param_1)\n\n{\n  undefined4 *puVar1;\n  byte bVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  undefined4 *puVar6;\n  char *pcVar7;\n  \n  if (*(int *)(param_1 + 0x10) != 0) {\n    return;\n  }\n  bVar2 = *(byte *)(param_1 + 0x24);\n  if ((bVar2 & 4) == 0) {\n    iVar3 = FUN_00035320(*(undefined4 *)(param_1 + 8),param_1);\n    if (iVar3 != 0) {\n      return;\n    }\n    iVar3 = filename_cmp(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc));\n    if (iVar3 != 0) {\n      iVar3 = *(int *)(param_1 + 0xc);\n      pcVar7 = *(char **)(param_1 + 8);\n      pcVar5 = "%P: cannot find %s (%s): %E\n";\n      goto LAB_00035c05;\n    }\n    pcVar7 = *(char **)(param_1 + 0xc);\n    pcVar5 = "%P: cannot find %s: %E\n";\n  }\n  else {\n    puVar6 = DAT_001cf884;\n    if (DAT_001cf884 != (undefined4 *)0x0) {\n      do {\n        iVar3 = FUN_00035960(*puVar6,param_1,"lib",".a");\n        if ((iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)) {\n          *(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;\n          return;\n        }\n        puVar1 = puVar6 + 1;\n        puVar6 = (undefined4 *)*puVar1;\n      } while ((undefined4 *)*puVar1 != (undefined4 *)0x0);\n      bVar2 = *(byte *)(param_1 + 0x24);\n    }\n    pcVar7 = *(char **)(param_1 + 0xc);\n    if ((((bVar2 & 8) != 0) && (DAT_001d047c != 0)) && (*pcVar7 == '/')) {\n      pcVar5 = "%P: cannot find %s inside %s\n";\n      iVar3 = DAT_001d047c;\nLAB_00035c05:\n      uVar4 = dcgettext(0,pcVar5,5);\n      FUN_00034d20(uVar4,pcVar7,iVar3);\n      goto LAB_00035baf;\n    }\n    pcVar5 = "%P: cannot find %s\n";\n  }\n  uVar4 = dcgettext(0,pcVar5,5);\n  FUN_00034d20(uVar4,pcVar7);\nLAB_00035baf:\n  *(byte *)(param_1 + 0x25) = *(byte *)(param_1 + 0x25) | 8;\n  DAT_001d0391 = DAT_001d0391 | 8;\n  return;\n}" primitive_type (function_declarator "FUN_00035ae0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  byte bVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  undefined4 *puVar6;\n  char *pcVar7;\n  \n  if (*(int *)(param_1 + 0x10) != 0) {\n    return;\n  }\n  bVar2 = *(byte *)(param_1 + 0x24);\n  if ((bVar2 & 4) == 0) {\n    iVar3 = FUN_00035320(*(undefined4 *)(param_1 + 8),param_1);\n    if (iVar3 != 0) {\n      return;\n    }\n    iVar3 = filename_cmp(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc));\n    if (iVar3 != 0) {\n      iVar3 = *(int *)(param_1 + 0xc);\n      pcVar7 = *(char **)(param_1 + 8);\n      pcVar5 = "%P: cannot find %s (%s): %E\n";\n      goto LAB_00035c05;\n    }\n    pcVar7 = *(char **)(param_1 + 0xc);\n    pcVar5 = "%P: cannot find %s: %E\n";\n  }\n  else {\n    puVar6 = DAT_001cf884;\n    if (DAT_001cf884 != (undefined4 *)0x0) {\n      do {\n        iVar3 = FUN_00035960(*puVar6,param_1,"lib",".a");\n        if ((iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)) {\n          *(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;\n          return;\n        }\n        puVar1 = puVar6 + 1;\n        puVar6 = (undefined4 *)*puVar1;\n      } while ((undefined4 *)*puVar1 != (undefined4 *)0x0);\n      bVar2 = *(byte *)(param_1 + 0x24);\n    }\n    pcVar7 = *(char **)(param_1 + 0xc);\n    if ((((bVar2 & 8) != 0) && (DAT_001d047c != 0)) && (*pcVar7 == '/')) {\n      pcVar5 = "%P: cannot find %s inside %s\n";\n      iVar3 = DAT_001d047c;\nLAB_00035c05:\n      uVar4 = dcgettext(0,pcVar5,5);\n      FUN_00034d20(uVar4,pcVar7,iVar3);\n      goto LAB_00035baf;\n    }\n    pcVar5 = "%P: cannot find %s\n";\n  }\n  uVar4 = dcgettext(0,pcVar5,5);\n  FUN_00034d20(uVar4,pcVar7);\nLAB_00035baf:\n  *(byte *)(param_1 + 0x25) = *(byte *)(param_1 + 0x25) | 8;\n  DAT_001d0391 = DAT_001d0391 | 8;\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (if_statement "if (*(int *)(param_1 + 0x10) != 0) {\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x10) != 0)" ( (binary_expression "*(int *)(param_1 + 0x10) != 0" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "bVar2 = *(byte *)(param_1 + 0x24);" (assignment_expression "bVar2 = *(byte *)(param_1 + 0x24)" identifier = (pointer_expression "*(byte *)(param_1 + 0x24)" * (cast_expression "(byte *)(param_1 + 0x24)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (if_statement "if ((bVar2 & 4) == 0) {\n    iVar3 = FUN_00035320(*(undefined4 *)(param_1 + 8),param_1);\n    if (iVar3 != 0) {\n      return;\n    }\n    iVar3 = filename_cmp(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc));\n    if (iVar3 != 0) {\n      iVar3 = *(int *)(param_1 + 0xc);\n      pcVar7 = *(char **)(param_1 + 8);\n      pcVar5 = "%P: cannot find %s (%s): %E\n";\n      goto LAB_00035c05;\n    }\n    pcVar7 = *(char **)(param_1 + 0xc);\n    pcVar5 = "%P: cannot find %s: %E\n";\n  }\n  else {\n    puVar6 = DAT_001cf884;\n    if (DAT_001cf884 != (undefined4 *)0x0) {\n      do {\n        iVar3 = FUN_00035960(*puVar6,param_1,"lib",".a");\n        if ((iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)) {\n          *(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;\n          return;\n        }\n        puVar1 = puVar6 + 1;\n        puVar6 = (undefined4 *)*puVar1;\n      } while ((undefined4 *)*puVar1 != (undefined4 *)0x0);\n      bVar2 = *(byte *)(param_1 + 0x24);\n    }\n    pcVar7 = *(char **)(param_1 + 0xc);\n    if ((((bVar2 & 8) != 0) && (DAT_001d047c != 0)) && (*pcVar7 == '/')) {\n      pcVar5 = "%P: cannot find %s inside %s\n";\n      iVar3 = DAT_001d047c;\nLAB_00035c05:\n      uVar4 = dcgettext(0,pcVar5,5);\n      FUN_00034d20(uVar4,pcVar7,iVar3);\n      goto LAB_00035baf;\n    }\n    pcVar5 = "%P: cannot find %s\n";\n  }" if (parenthesized_expression "((bVar2 & 4) == 0)" ( (binary_expression "(bVar2 & 4) == 0" (parenthesized_expression "(bVar2 & 4)" ( (binary_expression "bVar2 & 4" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    iVar3 = FUN_00035320(*(undefined4 *)(param_1 + 8),param_1);\n    if (iVar3 != 0) {\n      return;\n    }\n    iVar3 = filename_cmp(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc));\n    if (iVar3 != 0) {\n      iVar3 = *(int *)(param_1 + 0xc);\n      pcVar7 = *(char **)(param_1 + 8);\n      pcVar5 = "%P: cannot find %s (%s): %E\n";\n      goto LAB_00035c05;\n    }\n    pcVar7 = *(char **)(param_1 + 0xc);\n    pcVar5 = "%P: cannot find %s: %E\n";\n  }" { (expression_statement "iVar3 = FUN_00035320(*(undefined4 *)(param_1 + 8),param_1);" (assignment_expression "iVar3 = FUN_00035320(*(undefined4 *)(param_1 + 8),param_1)" identifier = (call_expression "FUN_00035320(*(undefined4 *)(param_1 + 8),param_1)" identifier (argument_list "(*(undefined4 *)(param_1 + 8),param_1)" ( (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n      return;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "iVar3 = filename_cmp(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc));" (assignment_expression "iVar3 = filename_cmp(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc))" identifier = (call_expression "filename_cmp(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc))" identifier (argument_list "(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar3 != 0) {\n      iVar3 = *(int *)(param_1 + 0xc);\n      pcVar7 = *(char **)(param_1 + 8);\n      pcVar5 = "%P: cannot find %s (%s): %E\n";\n      goto LAB_00035c05;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar3 = *(int *)(param_1 + 0xc);\n      pcVar7 = *(char **)(param_1 + 8);\n      pcVar5 = "%P: cannot find %s (%s): %E\n";\n      goto LAB_00035c05;\n    }" { (expression_statement "iVar3 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar3 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "pcVar7 = *(char **)(param_1 + 8);" (assignment_expression "pcVar7 = *(char **)(param_1 + 8)" identifier = (pointer_expression "*(char **)(param_1 + 8)" * (cast_expression "(char **)(param_1 + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "pcVar5 = "%P: cannot find %s (%s): %E\n";" (assignment_expression "pcVar5 = "%P: cannot find %s (%s): %E\n"" identifier = (string_literal ""%P: cannot find %s (%s): %E\n"" " string_content escape_sequence ")) ;) (goto_statement "goto LAB_00035c05;" goto statement_identifier ;) })) (expression_statement "pcVar7 = *(char **)(param_1 + 0xc);" (assignment_expression "pcVar7 = *(char **)(param_1 + 0xc)" identifier = (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "pcVar5 = "%P: cannot find %s: %E\n";" (assignment_expression "pcVar5 = "%P: cannot find %s: %E\n"" identifier = (string_literal ""%P: cannot find %s: %E\n"" " string_content escape_sequence ")) ;) }) (else_clause "else {\n    puVar6 = DAT_001cf884;\n    if (DAT_001cf884 != (undefined4 *)0x0) {\n      do {\n        iVar3 = FUN_00035960(*puVar6,param_1,"lib",".a");\n        if ((iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)) {\n          *(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;\n          return;\n        }\n        puVar1 = puVar6 + 1;\n        puVar6 = (undefined4 *)*puVar1;\n      } while ((undefined4 *)*puVar1 != (undefined4 *)0x0);\n      bVar2 = *(byte *)(param_1 + 0x24);\n    }\n    pcVar7 = *(char **)(param_1 + 0xc);\n    if ((((bVar2 & 8) != 0) && (DAT_001d047c != 0)) && (*pcVar7 == '/')) {\n      pcVar5 = "%P: cannot find %s inside %s\n";\n      iVar3 = DAT_001d047c;\nLAB_00035c05:\n      uVar4 = dcgettext(0,pcVar5,5);\n      FUN_00034d20(uVar4,pcVar7,iVar3);\n      goto LAB_00035baf;\n    }\n    pcVar5 = "%P: cannot find %s\n";\n  }" else (compound_statement "{\n    puVar6 = DAT_001cf884;\n    if (DAT_001cf884 != (undefined4 *)0x0) {\n      do {\n        iVar3 = FUN_00035960(*puVar6,param_1,"lib",".a");\n        if ((iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)) {\n          *(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;\n          return;\n        }\n        puVar1 = puVar6 + 1;\n        puVar6 = (undefined4 *)*puVar1;\n      } while ((undefined4 *)*puVar1 != (undefined4 *)0x0);\n      bVar2 = *(byte *)(param_1 + 0x24);\n    }\n    pcVar7 = *(char **)(param_1 + 0xc);\n    if ((((bVar2 & 8) != 0) && (DAT_001d047c != 0)) && (*pcVar7 == '/')) {\n      pcVar5 = "%P: cannot find %s inside %s\n";\n      iVar3 = DAT_001d047c;\nLAB_00035c05:\n      uVar4 = dcgettext(0,pcVar5,5);\n      FUN_00034d20(uVar4,pcVar7,iVar3);\n      goto LAB_00035baf;\n    }\n    pcVar5 = "%P: cannot find %s\n";\n  }" { (expression_statement "puVar6 = DAT_001cf884;" (assignment_expression "puVar6 = DAT_001cf884" identifier = identifier) ;) (if_statement "if (DAT_001cf884 != (undefined4 *)0x0) {\n      do {\n        iVar3 = FUN_00035960(*puVar6,param_1,"lib",".a");\n        if ((iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)) {\n          *(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;\n          return;\n        }\n        puVar1 = puVar6 + 1;\n        puVar6 = (undefined4 *)*puVar1;\n      } while ((undefined4 *)*puVar1 != (undefined4 *)0x0);\n      bVar2 = *(byte *)(param_1 + 0x24);\n    }" if (parenthesized_expression "(DAT_001cf884 != (undefined4 *)0x0)" ( (binary_expression "DAT_001cf884 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      do {\n        iVar3 = FUN_00035960(*puVar6,param_1,"lib",".a");\n        if ((iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)) {\n          *(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;\n          return;\n        }\n        puVar1 = puVar6 + 1;\n        puVar6 = (undefined4 *)*puVar1;\n      } while ((undefined4 *)*puVar1 != (undefined4 *)0x0);\n      bVar2 = *(byte *)(param_1 + 0x24);\n    }" { (do_statement "do {\n        iVar3 = FUN_00035960(*puVar6,param_1,"lib",".a");\n        if ((iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)) {\n          *(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;\n          return;\n        }\n        puVar1 = puVar6 + 1;\n        puVar6 = (undefined4 *)*puVar1;\n      } while ((undefined4 *)*puVar1 != (undefined4 *)0x0);" do (compound_statement "{\n        iVar3 = FUN_00035960(*puVar6,param_1,"lib",".a");\n        if ((iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)) {\n          *(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;\n          return;\n        }\n        puVar1 = puVar6 + 1;\n        puVar6 = (undefined4 *)*puVar1;\n      }" { (expression_statement "iVar3 = FUN_00035960(*puVar6,param_1,"lib",".a");" (assignment_expression "iVar3 = FUN_00035960(*puVar6,param_1,"lib",".a")" identifier = (call_expression "FUN_00035960(*puVar6,param_1,"lib",".a")" identifier (argument_list "(*puVar6,param_1,"lib",".a")" ( (pointer_expression "*puVar6" * identifier) , identifier , (string_literal ""lib"" " string_content ") , (string_literal "".a"" " string_content ") )))) ;) (if_statement "if ((iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)) {\n          *(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;\n          return;\n        }" if (parenthesized_expression "((iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0))" ( (binary_expression "(iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)" (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) || (parenthesized_expression "(iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)" ( (comma_expression "iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0" (assignment_expression "iVar3 = FUN_00033cb0(*puVar6,param_1)" identifier = (call_expression "FUN_00033cb0(*puVar6,param_1)" identifier (argument_list "(*puVar6,param_1)" ( (pointer_expression "*puVar6" * identifier) , identifier )))) , (binary_expression "iVar3 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n          *(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;\n          return;\n        }" { (expression_statement "*(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;" (assignment_expression "*(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb" (pointer_expression "*(byte *)(param_1 + 0x24)" * (cast_expression "(byte *)(param_1 + 0x24)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = (binary_expression "*(byte *)(param_1 + 0x24) & 0xfb" (pointer_expression "*(byte *)(param_1 + 0x24)" * (cast_expression "(byte *)(param_1 + 0x24)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) & number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "puVar1 = puVar6 + 1;" (assignment_expression "puVar1 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) (expression_statement "puVar6 = (undefined4 *)*puVar1;" (assignment_expression "puVar6 = (undefined4 *)*puVar1" identifier = (cast_expression "(undefined4 *)*puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) }) while (parenthesized_expression "((undefined4 *)*puVar1 != (undefined4 *)0x0)" ( (binary_expression "(undefined4 *)*puVar1 != (undefined4 *)0x0" (cast_expression "(undefined4 *)*puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier)) != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "bVar2 = *(byte *)(param_1 + 0x24);" (assignment_expression "bVar2 = *(byte *)(param_1 + 0x24)" identifier = (pointer_expression "*(byte *)(param_1 + 0x24)" * (cast_expression "(byte *)(param_1 + 0x24)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) })) (expression_statement "pcVar7 = *(char **)(param_1 + 0xc);" (assignment_expression "pcVar7 = *(char **)(param_1 + 0xc)" identifier = (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if ((((bVar2 & 8) != 0) && (DAT_001d047c != 0)) && (*pcVar7 == '/')) {\n      pcVar5 = "%P: cannot find %s inside %s\n";\n      iVar3 = DAT_001d047c;\nLAB_00035c05:\n      uVar4 = dcgettext(0,pcVar5,5);\n      FUN_00034d20(uVar4,pcVar7,iVar3);\n      goto LAB_00035baf;\n    }" if (parenthesized_expression "((((bVar2 & 8) != 0) && (DAT_001d047c != 0)) && (*pcVar7 == '/'))" ( (binary_expression "(((bVar2 & 8) != 0) && (DAT_001d047c != 0)) && (*pcVar7 == '/')" (parenthesized_expression "(((bVar2 & 8) != 0) && (DAT_001d047c != 0))" ( (binary_expression "((bVar2 & 8) != 0) && (DAT_001d047c != 0)" (parenthesized_expression "((bVar2 & 8) != 0)" ( (binary_expression "(bVar2 & 8) != 0" (parenthesized_expression "(bVar2 & 8)" ( (binary_expression "bVar2 & 8" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(DAT_001d047c != 0)" ( (binary_expression "DAT_001d047c != 0" identifier != number_literal) ))) )) && (parenthesized_expression "(*pcVar7 == '/')" ( (binary_expression "*pcVar7 == '/'" (pointer_expression "*pcVar7" * identifier) == (char_literal "'/'" ' character ')) ))) )) (compound_statement "{\n      pcVar5 = "%P: cannot find %s inside %s\n";\n      iVar3 = DAT_001d047c;\nLAB_00035c05:\n      uVar4 = dcgettext(0,pcVar5,5);\n      FUN_00034d20(uVar4,pcVar7,iVar3);\n      goto LAB_00035baf;\n    }" { (expression_statement "pcVar5 = "%P: cannot find %s inside %s\n";" (assignment_expression "pcVar5 = "%P: cannot find %s inside %s\n"" identifier = (string_literal ""%P: cannot find %s inside %s\n"" " string_content escape_sequence ")) ;) (expression_statement "iVar3 = DAT_001d047c;" (assignment_expression "iVar3 = DAT_001d047c" identifier = identifier) ;) (labeled_statement "LAB_00035c05:\n      uVar4 = dcgettext(0,pcVar5,5);" statement_identifier : (expression_statement "uVar4 = dcgettext(0,pcVar5,5);" (assignment_expression "uVar4 = dcgettext(0,pcVar5,5)" identifier = (call_expression "dcgettext(0,pcVar5,5)" identifier (argument_list "(0,pcVar5,5)" ( number_literal , identifier , number_literal )))) ;)) (expression_statement "FUN_00034d20(uVar4,pcVar7,iVar3);" (call_expression "FUN_00034d20(uVar4,pcVar7,iVar3)" identifier (argument_list "(uVar4,pcVar7,iVar3)" ( identifier , identifier , identifier ))) ;) (goto_statement "goto LAB_00035baf;" goto statement_identifier ;) })) (expression_statement "pcVar5 = "%P: cannot find %s\n";" (assignment_expression "pcVar5 = "%P: cannot find %s\n"" identifier = (string_literal ""%P: cannot find %s\n"" " string_content escape_sequence ")) ;) }))) (expression_statement "uVar4 = dcgettext(0,pcVar5,5);" (assignment_expression "uVar4 = dcgettext(0,pcVar5,5)" identifier = (call_expression "dcgettext(0,pcVar5,5)" identifier (argument_list "(0,pcVar5,5)" ( number_literal , identifier , number_literal )))) ;) (expression_statement "FUN_00034d20(uVar4,pcVar7);" (call_expression "FUN_00034d20(uVar4,pcVar7)" identifier (argument_list "(uVar4,pcVar7)" ( identifier , identifier ))) ;) (labeled_statement "LAB_00035baf:\n  *(byte *)(param_1 + 0x25) = *(byte *)(param_1 + 0x25) | 8;" statement_identifier : (expression_statement "*(byte *)(param_1 + 0x25) = *(byte *)(param_1 + 0x25) | 8;" (assignment_expression "*(byte *)(param_1 + 0x25) = *(byte *)(param_1 + 0x25) | 8" (pointer_expression "*(byte *)(param_1 + 0x25)" * (cast_expression "(byte *)(param_1 + 0x25)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x25)" ( (binary_expression "param_1 + 0x25" identifier + number_literal) )))) = (binary_expression "*(byte *)(param_1 + 0x25) | 8" (pointer_expression "*(byte *)(param_1 + 0x25)" * (cast_expression "(byte *)(param_1 + 0x25)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x25)" ( (binary_expression "param_1 + 0x25" identifier + number_literal) )))) | number_literal)) ;)) (expression_statement "DAT_001d0391 = DAT_001d0391 | 8;" (assignment_expression "DAT_001d0391 = DAT_001d0391 | 8" identifier = (binary_expression "DAT_001d0391 | 8" identifier | number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (return_statement return ;) })) (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 (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (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 )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (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 { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content escape_sequence ")) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content escape_sequence ")) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT , (string_literal " string_content ") , (string_literal " string_content ") )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT)) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content escape_sequence ")) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , LIT )))) ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (string_literal " string_content escape_sequence ")) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) (return_statement return ;) })))
(function_definition "void FUN_00035ae0(int param_1)\n\n{\n  undefined4 *puVar1;\n  byte bVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  undefined4 *puVar6;\n  char *pcVar7;\n  \n  if (*(int *)(param_1 + 0x10) != 0) {\n    return;\n  }\n  bVar2 = *(byte *)(param_1 + 0x24);\n  if ((bVar2 & 4) == 0) {\n    iVar3 = FUN_00035320(*(undefined4 *)(param_1 + 8),param_1);\n    if (iVar3 != 0) {\n      return;\n    }\n    iVar3 = filename_cmp(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc));\n    if (iVar3 != 0) {\n      iVar3 = *(int *)(param_1 + 0xc);\n      pcVar7 = *(char **)(param_1 + 8);\n      pcVar5 = "%P: cannot find %s (%s): %E\n";\n      goto LAB_00035c05;\n    }\n    pcVar7 = *(char **)(param_1 + 0xc);\n    pcVar5 = "%P: cannot find %s: %E\n";\n  }\n  else {\n    puVar6 = DAT_001cf884;\n    if (DAT_001cf884 != (undefined4 *)0x0) {\n      do {\n        iVar3 = FUN_00035960(*puVar6,param_1,"lib",".a");\n        if ((iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)) {\n          *(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;\n          return;\n        }\n        puVar1 = puVar6 + 1;\n        puVar6 = (undefined4 *)*puVar1;\n      } while ((undefined4 *)*puVar1 != (undefined4 *)0x0);\n      bVar2 = *(byte *)(param_1 + 0x24);\n    }\n    pcVar7 = *(char **)(param_1 + 0xc);\n    if ((((bVar2 & 8) != 0) && (DAT_001d047c != 0)) && (*pcVar7 == '/')) {\n      pcVar5 = "%P: cannot find %s inside %s\n";\n      iVar3 = DAT_001d047c;\nLAB_00035c05:\n      uVar4 = dcgettext(0,pcVar5,5);\n      FUN_00034d20(uVar4,pcVar7,iVar3);\n      goto LAB_00035baf;\n    }\n    pcVar5 = "%P: cannot find %s\n";\n  }\n  uVar4 = dcgettext(0,pcVar5,5);\n  FUN_00034d20(uVar4,pcVar7);\nLAB_00035baf:\n  *(byte *)(param_1 + 0x25) = *(byte *)(param_1 + 0x25) | 8;\n  DAT_001d0391 = DAT_001d0391 | 8;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00035ae0(int param_1)" (identifier "FUN_00035ae0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  byte bVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  undefined4 *puVar6;\n  char *pcVar7;\n  \n  if (*(int *)(param_1 + 0x10) != 0) {\n    return;\n  }\n  bVar2 = *(byte *)(param_1 + 0x24);\n  if ((bVar2 & 4) == 0) {\n    iVar3 = FUN_00035320(*(undefined4 *)(param_1 + 8),param_1);\n    if (iVar3 != 0) {\n      return;\n    }\n    iVar3 = filename_cmp(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc));\n    if (iVar3 != 0) {\n      iVar3 = *(int *)(param_1 + 0xc);\n      pcVar7 = *(char **)(param_1 + 8);\n      pcVar5 = "%P: cannot find %s (%s): %E\n";\n      goto LAB_00035c05;\n    }\n    pcVar7 = *(char **)(param_1 + 0xc);\n    pcVar5 = "%P: cannot find %s: %E\n";\n  }\n  else {\n    puVar6 = DAT_001cf884;\n    if (DAT_001cf884 != (undefined4 *)0x0) {\n      do {\n        iVar3 = FUN_00035960(*puVar6,param_1,"lib",".a");\n        if ((iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)) {\n          *(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;\n          return;\n        }\n        puVar1 = puVar6 + 1;\n        puVar6 = (undefined4 *)*puVar1;\n      } while ((undefined4 *)*puVar1 != (undefined4 *)0x0);\n      bVar2 = *(byte *)(param_1 + 0x24);\n    }\n    pcVar7 = *(char **)(param_1 + 0xc);\n    if ((((bVar2 & 8) != 0) && (DAT_001d047c != 0)) && (*pcVar7 == '/')) {\n      pcVar5 = "%P: cannot find %s inside %s\n";\n      iVar3 = DAT_001d047c;\nLAB_00035c05:\n      uVar4 = dcgettext(0,pcVar5,5);\n      FUN_00034d20(uVar4,pcVar7,iVar3);\n      goto LAB_00035baf;\n    }\n    pcVar5 = "%P: cannot find %s\n";\n  }\n  uVar4 = dcgettext(0,pcVar5,5);\n  FUN_00034d20(uVar4,pcVar7);\nLAB_00035baf:\n  *(byte *)(param_1 + 0x25) = *(byte *)(param_1 + 0x25) | 8;\n  DAT_001d0391 = DAT_001d0391 | 8;\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "byte bVar2;" (type_identifier "byte") (identifier "bVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "undefined4 *puVar6;" (type_identifier "undefined4") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "char *pcVar7;" (primitive_type "char") (pointer_declarator "*pcVar7" (* "*") (identifier "pcVar7")) (; ";")) (if_statement "if (*(int *)(param_1 + 0x10) != 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x10) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x10) != 0" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "bVar2 = *(byte *)(param_1 + 0x24);" (assignment_expression "bVar2 = *(byte *)(param_1 + 0x24)" (identifier "bVar2") (= "=") (pointer_expression "*(byte *)(param_1 + 0x24)" (* "*") (cast_expression "(byte *)(param_1 + 0x24)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (if_statement "if ((bVar2 & 4) == 0) {\n    iVar3 = FUN_00035320(*(undefined4 *)(param_1 + 8),param_1);\n    if (iVar3 != 0) {\n      return;\n    }\n    iVar3 = filename_cmp(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc));\n    if (iVar3 != 0) {\n      iVar3 = *(int *)(param_1 + 0xc);\n      pcVar7 = *(char **)(param_1 + 8);\n      pcVar5 = "%P: cannot find %s (%s): %E\n";\n      goto LAB_00035c05;\n    }\n    pcVar7 = *(char **)(param_1 + 0xc);\n    pcVar5 = "%P: cannot find %s: %E\n";\n  }\n  else {\n    puVar6 = DAT_001cf884;\n    if (DAT_001cf884 != (undefined4 *)0x0) {\n      do {\n        iVar3 = FUN_00035960(*puVar6,param_1,"lib",".a");\n        if ((iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)) {\n          *(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;\n          return;\n        }\n        puVar1 = puVar6 + 1;\n        puVar6 = (undefined4 *)*puVar1;\n      } while ((undefined4 *)*puVar1 != (undefined4 *)0x0);\n      bVar2 = *(byte *)(param_1 + 0x24);\n    }\n    pcVar7 = *(char **)(param_1 + 0xc);\n    if ((((bVar2 & 8) != 0) && (DAT_001d047c != 0)) && (*pcVar7 == '/')) {\n      pcVar5 = "%P: cannot find %s inside %s\n";\n      iVar3 = DAT_001d047c;\nLAB_00035c05:\n      uVar4 = dcgettext(0,pcVar5,5);\n      FUN_00034d20(uVar4,pcVar7,iVar3);\n      goto LAB_00035baf;\n    }\n    pcVar5 = "%P: cannot find %s\n";\n  }" (if "if") (parenthesized_expression "((bVar2 & 4) == 0)" (( "(") (binary_expression "(bVar2 & 4) == 0" (parenthesized_expression "(bVar2 & 4)" (( "(") (binary_expression "bVar2 & 4" (identifier "bVar2") (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar3 = FUN_00035320(*(undefined4 *)(param_1 + 8),param_1);\n    if (iVar3 != 0) {\n      return;\n    }\n    iVar3 = filename_cmp(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc));\n    if (iVar3 != 0) {\n      iVar3 = *(int *)(param_1 + 0xc);\n      pcVar7 = *(char **)(param_1 + 8);\n      pcVar5 = "%P: cannot find %s (%s): %E\n";\n      goto LAB_00035c05;\n    }\n    pcVar7 = *(char **)(param_1 + 0xc);\n    pcVar5 = "%P: cannot find %s: %E\n";\n  }" ({ "{") (expression_statement "iVar3 = FUN_00035320(*(undefined4 *)(param_1 + 8),param_1);" (assignment_expression "iVar3 = FUN_00035320(*(undefined4 *)(param_1 + 8),param_1)" (identifier "iVar3") (= "=") (call_expression "FUN_00035320(*(undefined4 *)(param_1 + 8),param_1)" (identifier "FUN_00035320") (argument_list "(*(undefined4 *)(param_1 + 8),param_1)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (, ",") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n      return;\n    }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar3 = filename_cmp(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc));" (assignment_expression "iVar3 = filename_cmp(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc))" (identifier "iVar3") (= "=") (call_expression "filename_cmp(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc))" (identifier "filename_cmp") (argument_list "(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n      iVar3 = *(int *)(param_1 + 0xc);\n      pcVar7 = *(char **)(param_1 + 8);\n      pcVar5 = "%P: cannot find %s (%s): %E\n";\n      goto LAB_00035c05;\n    }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar3 = *(int *)(param_1 + 0xc);\n      pcVar7 = *(char **)(param_1 + 8);\n      pcVar5 = "%P: cannot find %s (%s): %E\n";\n      goto LAB_00035c05;\n    }" ({ "{") (expression_statement "iVar3 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar3 = *(int *)(param_1 + 0xc)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "pcVar7 = *(char **)(param_1 + 8);" (assignment_expression "pcVar7 = *(char **)(param_1 + 8)" (identifier "pcVar7") (= "=") (pointer_expression "*(char **)(param_1 + 8)" (* "*") (cast_expression "(char **)(param_1 + 8)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "pcVar5 = "%P: cannot find %s (%s): %E\n";" (assignment_expression "pcVar5 = "%P: cannot find %s (%s): %E\n"" (identifier "pcVar5") (= "=") (string_literal ""%P: cannot find %s (%s): %E\n"" (" """) (string_content "%P: cannot find %s (%s): %E") (escape_sequence "\n") (" """))) (; ";")) (goto_statement "goto LAB_00035c05;" (goto "goto") (statement_identifier "LAB_00035c05") (; ";")) (} "}"))) (expression_statement "pcVar7 = *(char **)(param_1 + 0xc);" (assignment_expression "pcVar7 = *(char **)(param_1 + 0xc)" (identifier "pcVar7") (= "=") (pointer_expression "*(char **)(param_1 + 0xc)" (* "*") (cast_expression "(char **)(param_1 + 0xc)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "pcVar5 = "%P: cannot find %s: %E\n";" (assignment_expression "pcVar5 = "%P: cannot find %s: %E\n"" (identifier "pcVar5") (= "=") (string_literal ""%P: cannot find %s: %E\n"" (" """) (string_content "%P: cannot find %s: %E") (escape_sequence "\n") (" """))) (; ";")) (} "}")) (else_clause "else {\n    puVar6 = DAT_001cf884;\n    if (DAT_001cf884 != (undefined4 *)0x0) {\n      do {\n        iVar3 = FUN_00035960(*puVar6,param_1,"lib",".a");\n        if ((iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)) {\n          *(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;\n          return;\n        }\n        puVar1 = puVar6 + 1;\n        puVar6 = (undefined4 *)*puVar1;\n      } while ((undefined4 *)*puVar1 != (undefined4 *)0x0);\n      bVar2 = *(byte *)(param_1 + 0x24);\n    }\n    pcVar7 = *(char **)(param_1 + 0xc);\n    if ((((bVar2 & 8) != 0) && (DAT_001d047c != 0)) && (*pcVar7 == '/')) {\n      pcVar5 = "%P: cannot find %s inside %s\n";\n      iVar3 = DAT_001d047c;\nLAB_00035c05:\n      uVar4 = dcgettext(0,pcVar5,5);\n      FUN_00034d20(uVar4,pcVar7,iVar3);\n      goto LAB_00035baf;\n    }\n    pcVar5 = "%P: cannot find %s\n";\n  }" (else "else") (compound_statement "{\n    puVar6 = DAT_001cf884;\n    if (DAT_001cf884 != (undefined4 *)0x0) {\n      do {\n        iVar3 = FUN_00035960(*puVar6,param_1,"lib",".a");\n        if ((iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)) {\n          *(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;\n          return;\n        }\n        puVar1 = puVar6 + 1;\n        puVar6 = (undefined4 *)*puVar1;\n      } while ((undefined4 *)*puVar1 != (undefined4 *)0x0);\n      bVar2 = *(byte *)(param_1 + 0x24);\n    }\n    pcVar7 = *(char **)(param_1 + 0xc);\n    if ((((bVar2 & 8) != 0) && (DAT_001d047c != 0)) && (*pcVar7 == '/')) {\n      pcVar5 = "%P: cannot find %s inside %s\n";\n      iVar3 = DAT_001d047c;\nLAB_00035c05:\n      uVar4 = dcgettext(0,pcVar5,5);\n      FUN_00034d20(uVar4,pcVar7,iVar3);\n      goto LAB_00035baf;\n    }\n    pcVar5 = "%P: cannot find %s\n";\n  }" ({ "{") (expression_statement "puVar6 = DAT_001cf884;" (assignment_expression "puVar6 = DAT_001cf884" (identifier "puVar6") (= "=") (identifier "DAT_001cf884")) (; ";")) (if_statement "if (DAT_001cf884 != (undefined4 *)0x0) {\n      do {\n        iVar3 = FUN_00035960(*puVar6,param_1,"lib",".a");\n        if ((iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)) {\n          *(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;\n          return;\n        }\n        puVar1 = puVar6 + 1;\n        puVar6 = (undefined4 *)*puVar1;\n      } while ((undefined4 *)*puVar1 != (undefined4 *)0x0);\n      bVar2 = *(byte *)(param_1 + 0x24);\n    }" (if "if") (parenthesized_expression "(DAT_001cf884 != (undefined4 *)0x0)" (( "(") (binary_expression "DAT_001cf884 != (undefined4 *)0x0" (identifier "DAT_001cf884") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      do {\n        iVar3 = FUN_00035960(*puVar6,param_1,"lib",".a");\n        if ((iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)) {\n          *(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;\n          return;\n        }\n        puVar1 = puVar6 + 1;\n        puVar6 = (undefined4 *)*puVar1;\n      } while ((undefined4 *)*puVar1 != (undefined4 *)0x0);\n      bVar2 = *(byte *)(param_1 + 0x24);\n    }" ({ "{") (do_statement "do {\n        iVar3 = FUN_00035960(*puVar6,param_1,"lib",".a");\n        if ((iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)) {\n          *(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;\n          return;\n        }\n        puVar1 = puVar6 + 1;\n        puVar6 = (undefined4 *)*puVar1;\n      } while ((undefined4 *)*puVar1 != (undefined4 *)0x0);" (do "do") (compound_statement "{\n        iVar3 = FUN_00035960(*puVar6,param_1,"lib",".a");\n        if ((iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)) {\n          *(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;\n          return;\n        }\n        puVar1 = puVar6 + 1;\n        puVar6 = (undefined4 *)*puVar1;\n      }" ({ "{") (expression_statement "iVar3 = FUN_00035960(*puVar6,param_1,"lib",".a");" (assignment_expression "iVar3 = FUN_00035960(*puVar6,param_1,"lib",".a")" (identifier "iVar3") (= "=") (call_expression "FUN_00035960(*puVar6,param_1,"lib",".a")" (identifier "FUN_00035960") (argument_list "(*puVar6,param_1,"lib",".a")" (( "(") (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (, ",") (identifier "param_1") (, ",") (string_literal ""lib"" (" """) (string_content "lib") (" """)) (, ",") (string_literal "".a"" (" """) (string_content ".a") (" """)) () ")")))) (; ";")) (if_statement "if ((iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)) {\n          *(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;\n          return;\n        }" (if "if") (parenthesized_expression "((iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0))" (( "(") (binary_expression "(iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)" (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)" (( "(") (comma_expression "iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0" (assignment_expression "iVar3 = FUN_00033cb0(*puVar6,param_1)" (identifier "iVar3") (= "=") (call_expression "FUN_00033cb0(*puVar6,param_1)" (identifier "FUN_00033cb0") (argument_list "(*puVar6,param_1)" (( "(") (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (, ",") (identifier "param_1") () ")")))) (, ",") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n          *(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;\n          return;\n        }" ({ "{") (expression_statement "*(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;" (assignment_expression "*(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb" (pointer_expression "*(byte *)(param_1 + 0x24)" (* "*") (cast_expression "(byte *)(param_1 + 0x24)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (binary_expression "*(byte *)(param_1 + 0x24) & 0xfb" (pointer_expression "*(byte *)(param_1 + 0x24)" (* "*") (cast_expression "(byte *)(param_1 + 0x24)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (& "&") (number_literal "0xfb"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "puVar1 = puVar6 + 1;" (assignment_expression "puVar1 = puVar6 + 1" (identifier "puVar1") (= "=") (binary_expression "puVar6 + 1" (identifier "puVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar6 = (undefined4 *)*puVar1;" (assignment_expression "puVar6 = (undefined4 *)*puVar1" (identifier "puVar6") (= "=") (cast_expression "(undefined4 *)*puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((undefined4 *)*puVar1 != (undefined4 *)0x0)" (( "(") (binary_expression "(undefined4 *)*puVar1 != (undefined4 *)0x0" (cast_expression "(undefined4 *)*puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (expression_statement "bVar2 = *(byte *)(param_1 + 0x24);" (assignment_expression "bVar2 = *(byte *)(param_1 + 0x24)" (identifier "bVar2") (= "=") (pointer_expression "*(byte *)(param_1 + 0x24)" (* "*") (cast_expression "(byte *)(param_1 + 0x24)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (} "}"))) (expression_statement "pcVar7 = *(char **)(param_1 + 0xc);" (assignment_expression "pcVar7 = *(char **)(param_1 + 0xc)" (identifier "pcVar7") (= "=") (pointer_expression "*(char **)(param_1 + 0xc)" (* "*") (cast_expression "(char **)(param_1 + 0xc)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if ((((bVar2 & 8) != 0) && (DAT_001d047c != 0)) && (*pcVar7 == '/')) {\n      pcVar5 = "%P: cannot find %s inside %s\n";\n      iVar3 = DAT_001d047c;\nLAB_00035c05:\n      uVar4 = dcgettext(0,pcVar5,5);\n      FUN_00034d20(uVar4,pcVar7,iVar3);\n      goto LAB_00035baf;\n    }" (if "if") (parenthesized_expression "((((bVar2 & 8) != 0) && (DAT_001d047c != 0)) && (*pcVar7 == '/'))" (( "(") (binary_expression "(((bVar2 & 8) != 0) && (DAT_001d047c != 0)) && (*pcVar7 == '/')" (parenthesized_expression "(((bVar2 & 8) != 0) && (DAT_001d047c != 0))" (( "(") (binary_expression "((bVar2 & 8) != 0) && (DAT_001d047c != 0)" (parenthesized_expression "((bVar2 & 8) != 0)" (( "(") (binary_expression "(bVar2 & 8) != 0" (parenthesized_expression "(bVar2 & 8)" (( "(") (binary_expression "bVar2 & 8" (identifier "bVar2") (& "&") (number_literal "8")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(DAT_001d047c != 0)" (( "(") (binary_expression "DAT_001d047c != 0" (identifier "DAT_001d047c") (!= "!=") (number_literal "0")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(*pcVar7 == '/')" (( "(") (binary_expression "*pcVar7 == '/'" (pointer_expression "*pcVar7" (* "*") (identifier "pcVar7")) (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")"))) () ")")) (compound_statement "{\n      pcVar5 = "%P: cannot find %s inside %s\n";\n      iVar3 = DAT_001d047c;\nLAB_00035c05:\n      uVar4 = dcgettext(0,pcVar5,5);\n      FUN_00034d20(uVar4,pcVar7,iVar3);\n      goto LAB_00035baf;\n    }" ({ "{") (expression_statement "pcVar5 = "%P: cannot find %s inside %s\n";" (assignment_expression "pcVar5 = "%P: cannot find %s inside %s\n"" (identifier "pcVar5") (= "=") (string_literal ""%P: cannot find %s inside %s\n"" (" """) (string_content "%P: cannot find %s inside %s") (escape_sequence "\n") (" """))) (; ";")) (expression_statement "iVar3 = DAT_001d047c;" (assignment_expression "iVar3 = DAT_001d047c" (identifier "iVar3") (= "=") (identifier "DAT_001d047c")) (; ";")) (labeled_statement "LAB_00035c05:\n      uVar4 = dcgettext(0,pcVar5,5);" (statement_identifier "LAB_00035c05") (: ":") (expression_statement "uVar4 = dcgettext(0,pcVar5,5);" (assignment_expression "uVar4 = dcgettext(0,pcVar5,5)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,pcVar5,5)" (identifier "dcgettext") (argument_list "(0,pcVar5,5)" (( "(") (number_literal "0") (, ",") (identifier "pcVar5") (, ",") (number_literal "5") () ")")))) (; ";"))) (expression_statement "FUN_00034d20(uVar4,pcVar7,iVar3);" (call_expression "FUN_00034d20(uVar4,pcVar7,iVar3)" (identifier "FUN_00034d20") (argument_list "(uVar4,pcVar7,iVar3)" (( "(") (identifier "uVar4") (, ",") (identifier "pcVar7") (, ",") (identifier "iVar3") () ")"))) (; ";")) (goto_statement "goto LAB_00035baf;" (goto "goto") (statement_identifier "LAB_00035baf") (; ";")) (} "}"))) (expression_statement "pcVar5 = "%P: cannot find %s\n";" (assignment_expression "pcVar5 = "%P: cannot find %s\n"" (identifier "pcVar5") (= "=") (string_literal ""%P: cannot find %s\n"" (" """) (string_content "%P: cannot find %s") (escape_sequence "\n") (" """))) (; ";")) (} "}")))) (expression_statement "uVar4 = dcgettext(0,pcVar5,5);" (assignment_expression "uVar4 = dcgettext(0,pcVar5,5)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,pcVar5,5)" (identifier "dcgettext") (argument_list "(0,pcVar5,5)" (( "(") (number_literal "0") (, ",") (identifier "pcVar5") (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00034d20(uVar4,pcVar7);" (call_expression "FUN_00034d20(uVar4,pcVar7)" (identifier "FUN_00034d20") (argument_list "(uVar4,pcVar7)" (( "(") (identifier "uVar4") (, ",") (identifier "pcVar7") () ")"))) (; ";")) (labeled_statement "LAB_00035baf:\n  *(byte *)(param_1 + 0x25) = *(byte *)(param_1 + 0x25) | 8;" (statement_identifier "LAB_00035baf") (: ":") (expression_statement "*(byte *)(param_1 + 0x25) = *(byte *)(param_1 + 0x25) | 8;" (assignment_expression "*(byte *)(param_1 + 0x25) = *(byte *)(param_1 + 0x25) | 8" (pointer_expression "*(byte *)(param_1 + 0x25)" (* "*") (cast_expression "(byte *)(param_1 + 0x25)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x25)" (( "(") (binary_expression "param_1 + 0x25" (identifier "param_1") (+ "+") (number_literal "0x25")) () ")")))) (= "=") (binary_expression "*(byte *)(param_1 + 0x25) | 8" (pointer_expression "*(byte *)(param_1 + 0x25)" (* "*") (cast_expression "(byte *)(param_1 + 0x25)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x25)" (( "(") (binary_expression "param_1 + 0x25" (identifier "param_1") (+ "+") (number_literal "0x25")) () ")")))) (| "|") (number_literal "8"))) (; ";"))) (expression_statement "DAT_001d0391 = DAT_001d0391 | 8;" (assignment_expression "DAT_001d0391 = DAT_001d0391 | 8" (identifier "DAT_001d0391") (= "=") (binary_expression "DAT_001d0391 | 8" (identifier "DAT_001d0391") (| "|") (number_literal "8"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *entry)

{
  type_2 **ppsVar1;
  type_3 *puVar2;
  type_4 var_1;
  int var_5;
  type_5 var_3;
  char *pcVar6;
  char *pcVar7;
  type_2 *psVar8;
  char *pcVar9;
  
  if (entry->the_bfd != (type_6 *)0x0) {
    return;
  }
  var_1 = *(type_4 *)&entry->flags;
  if ((var_1 & 4) == 0) {
    var_3 = var_2(entry->filename,entry);
    if (var_3 != 0) {
      return;
    }
    var_5 = var_4(entry->filename,entry->local_sym_name);
    if (var_5 != 0) {
      pcVar7 = entry->local_sym_name;
      pcVar9 = entry->filename;
      pcVar6 = "%P: cannot find %s (%s): %E\n";
      goto LAB_00035c05;
    }
    pcVar9 = entry->local_sym_name;
    pcVar6 = "%P: cannot find %s: %E\n";
  }
  else {
    psVar8 = var_6;
    if (var_6 != (type_7 *)0x0) {
      do {
        var_3 = var_7(psVar8->name,entry,"lib",".a");
        if ((var_3 != 0) ||
           (var_5 = var_8(psVar8->name,entry), var_5 != 0)) {
          *(type_4 *)&entry->flags = *(type_4 *)&entry->flags & 0xfb;
          return;
        }
        ppsVar1 = &psVar8->next;
        psVar8 = *ppsVar1;
      } while (*ppsVar1 != (type_2 *)0x0);
      var_1 = *(type_4 *)&entry->flags;
    }
    pcVar9 = entry->local_sym_name;
    if ((((var_1 & 8) != 0) && (var_9 != (char *)0x0)) && (*pcVar9 == '/')) {
      pcVar6 = "%P: cannot find %s inside %s\n";
      pcVar7 = var_9;
LAB_00035c05:
      pcVar6 = (char *)var_10(0,pcVar6,5);
      var_11(pcVar6,pcVar9,pcVar7);
      goto LAB_00035baf;
    }
    pcVar6 = "%P: cannot find %s\n";
  }
  pcVar6 = (char *)var_10(0,pcVar6,5);
  var_11(pcVar6,pcVar9);
LAB_00035baf:
  puVar2 = &(entry->flags).field_0x1;
  *puVar2 = *puVar2 | 8;
  input_flags._1_1_ = input_flags._1_1_ | 8;
  return;
}


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

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

void MASKED(int param_1)

{
  undefined4 *puVar1;
  byte bVar2;
  int iVar3;
  undefined4 uVar4;
  char *pcVar5;
  undefined4 *puVar6;
  char *pcVar7;
  
  if (*(int *)(param_1 + 0x10) != 0) {
    return;
  }
  bVar2 = *(byte *)(param_1 + 0x24);
  if ((bVar2 & 4) == 0) {
    iVar3 = FUN_00035320(*(undefined4 *)(param_1 + 8),param_1);
    if (iVar3 != 0) {
      return;
    }
    iVar3 = filename_cmp(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc));
    if (iVar3 != 0) {
      iVar3 = *(int *)(param_1 + 0xc);
      pcVar7 = *(char **)(param_1 + 8);
      pcVar5 = "%P: cannot find %s (%s): %E\n";
      goto LAB_00035c05;
    }
    pcVar7 = *(char **)(param_1 + 0xc);
    pcVar5 = "%P: cannot find %s: %E\n";
  }
  else {
    puVar6 = DAT_001cf884;
    if (DAT_001cf884 != (undefined4 *)0x0) {
      do {
        iVar3 = FUN_00035960(*puVar6,param_1,"lib",".a");
        if ((iVar3 != 0) || (iVar3 = FUN_00033cb0(*puVar6,param_1), iVar3 != 0)) {
          *(byte *)(param_1 + 0x24) = *(byte *)(param_1 + 0x24) & 0xfb;
          return;
        }
        puVar1 = puVar6 + 1;
        puVar6 = (undefined4 *)*puVar1;
      } while ((undefined4 *)*puVar1 != (undefined4 *)0x0);
      bVar2 = *(byte *)(param_1 + 0x24);
    }
    pcVar7 = *(char **)(param_1 + 0xc);
    if ((((bVar2 & 8) != 0) && (DAT_001d047c != 0)) && (*pcVar7 == '/')) {
      pcVar5 = "%P: cannot find %s inside %s\n";
      iVar3 = DAT_001d047c;
LAB_00035c05:
      uVar4 = dcgettext(0,pcVar5,5);
      FUN_00034d20(uVar4,pcVar7,iVar3);
      goto LAB_00035baf;
    }
    pcVar5 = "%P: cannot find %s\n";
  }
  uVar4 = dcgettext(0,pcVar5,5);
  FUN_00034d20(uVar4,pcVar7);
LAB_00035baf:
  *(byte *)(param_1 + 0x25) = *(byte *)(param_1 + 0x25) | 8;
  DAT_001d0391 = DAT_001d0391 | 8;
  return;
}

