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

void gldelf32lppc_stat_needed(lang_input_statement_type *s)

{
  bfd *pbVar1;
  uint uVar2;
  int iVar3;
  char *pcVar4;
  char *pcVar5;
  int iVar6;
  stat st;
  
  if ((global_found == (lang_input_statement_type *)0x0) && (s->the_bfd != (bfd *)0x0)) {
    uVar2 = bfd_elf_get_dyn_lib_class(s->the_bfd);
    if ((uVar2 & 1) == 0) {
      iVar3 = bfd_stat(s->the_bfd,&st);
      if (iVar3 == 0) {
        if (((st.st_dev._4_4_ == global_stat.st_dev._4_4_ &&
              (int)st.st_dev == (int)global_stat.st_dev) &&
            ((int)global_stat.st_ino == (int)st.st_ino &&
             global_stat.st_ino._4_4_ == st.st_ino._4_4_)) &&
           ((int)st.st_ino != 0 || st.st_ino._4_4_ != 0)) {
          global_found = s;
          return;
        }
        pcVar5 = global_needed->name;
        pcVar4 = strchr(pcVar5,0x2f);
        if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {
          iVar3 = bfd_elf_get_dt_soname(s->the_bfd);
          if (iVar3 == 0) {
            iVar3 = lbasename(s->filename);
          }
          iVar6 = filename_ncmp(iVar3,global_needed->name,pcVar5 + (4 - (int)global_needed->name));
          if (iVar6 == 0) {
            pbVar1 = global_needed->by;
            pcVar5 = global_needed->name;
            pcVar4 = (char *)dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5)
            ;
            einfo(pcVar4,pcVar5,pbVar1,iVar3);
          }
        }
      }
      else {
        pbVar1 = s->the_bfd;
        pcVar5 = (char *)dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);
        einfo(pcVar5,pbVar1);
      }
    }
  }
  return;
}



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

void FUN_0004c8d0(int param_1)

{
  undefined4 uVar1;
  uint uVar2;
  int iVar3;
  char *pcVar4;
  char *pcVar5;
  int iVar6;
  undefined4 uVar7;
  undefined4 uVar8;
  int local_7c;
  int local_78;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x4c8d9;
  if ((DAT_001c0a00 == 0) && (*(int *)(param_1 + 0x10) != 0)) {
    uVar2 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));
    if ((uVar2 & 1) == 0) {
      iVar3 = bfd_stat(*(undefined4 *)(param_1 + 0x10),&local_7c);
      if (iVar3 == 0) {
        if (((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&
            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)) &&
           (local_24 != 0 || local_20 != 0)) {
          DAT_001c0a00 = param_1;
          return;
        }
        pcVar5 = *(char **)(DAT_001c0a80 + 8);
        pcVar4 = strchr(pcVar5,0x2f);
        if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {
          iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));
          if (iVar3 == 0) {
            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));
          }
          iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),
                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)));
          if (iVar6 == 0) {
            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);
            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);
            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);
            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);
          }
        }
      }
      else {
        uVar1 = *(undefined4 *)(param_1 + 0x10);
        uVar8 = dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);
        FUN_00034d60(uVar8,uVar1);
      }
    }
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00017bc0
ADD EBX,0x172727
SUB ESP,0x6c
MOV ESI,dword ptr [EBX + 0x1a00]
TEST ESI,ESI
JZ 0x0004c8f8
ADD ESP,0x6c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0x80]
MOV EAX,dword ptr [EAX + 0x10]
TEST EAX,EAX
JZ 0x0004c8ec
SUB ESP,0xc
PUSH EAX
CALL 0x00016410
ADD ESP,0x10
TEST AL,0x1
JNZ 0x0004c8ec
SUB ESP,0x8
LEA EAX,[ESP + 0x8]
PUSH EAX
MOV EAX,dword ptr [ESP + 0x8c]
PUSH dword ptr [EAX + 0x10]
CALL 0x00016260
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0004ca48
MOV EAX,dword ptr [ESP]
MOV EDX,dword ptr [ESP + 0x4]
XOR EAX,dword ptr [EBX + 0x1a20]
XOR EDX,dword ptr [EBX + 0x1a24]
OR EDX,EAX
JZ 0x0004ca08
MOV EAX,dword ptr [EBX + 0x1a80]
SUB ESP,0x8
MOV ESI,dword ptr [EAX + 0x8]
PUSH 0x2f
PUSH ESI
CALL 0x00016780
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0004c8ec
SUB ESP,0x8
LEA EAX,[EBX + 0xffee673b]
PUSH EAX
PUSH ESI
CALL 0x00016090
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0004c8ec
SUB ESP,0xc
LEA ESI,[EAX + 0x4]
MOV EAX,dword ptr [ESP + 0x8c]
PUSH dword ptr [EAX + 0x10]
CALL 0x00016400
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JZ 0x0004ca76
MOV EAX,dword ptr [EBX + 0x1a80]
SUB ESP,0x4
MOV EDX,dword ptr [EAX + 0x8]
MOV EAX,ESI
SUB EAX,EDX
PUSH EAX
PUSH EDX
PUSH EDI
CALL 0x00016490
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0004c8ec
MOV EAX,dword ptr [EBX + 0x1a80]
SUB ESP,0x4
MOV ESI,dword ptr [EAX + 0x4]
MOV EBP,dword ptr [EAX + 0x8]
LEA EAX,[EBX + 0xffee6228]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00016360
PUSH EDI
PUSH ESI
PUSH EBP
PUSH EAX
CALL 0x00034d60
ADD ESP,0x20
JMP 0x0004c8ec
MOV EDX,dword ptr [ESP + 0x58]
MOV EAX,dword ptr [ESP + 0x5c]
MOV ESI,dword ptr [EBX + 0x1a78]
MOV ECX,dword ptr [EBX + 0x1a7c]
XOR ESI,EDX
XOR ECX,EAX
OR ESI,ECX
JNZ 0x0004c953
OR EDX,EAX
JZ 0x0004c953
MOV EAX,dword ptr [ESP + 0x80]
MOV dword ptr [EBX + 0x1a00],EAX
JMP 0x0004c8ec
MOV EAX,dword ptr [ESP + 0x80]
SUB ESP,0x4
MOV ESI,dword ptr [EAX + 0x10]
LEA EAX,[EBX + 0xffee671d]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00016360
POP EDX
POP ECX
PUSH ESI
PUSH EAX
CALL 0x00034d60
ADD ESP,0x10
JMP 0x0004c8ec
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x8c]
PUSH dword ptr [EAX + 0x8]
CALL 0x00016600
ADD ESP,0x10
MOV EDI,EAX
JMP 0x0004c9af
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0004c8d0(int param_1)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  int iVar3;\n  char *pcVar4;\n  char *pcVar5;\n  int iVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  int local_7c;\n  int local_78;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4c8d9;\n  if ((DAT_001c0a00 == 0) && (*(int *)(param_1 + 0x10) != 0)) {\n    uVar2 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));\n    if ((uVar2 & 1) == 0) {\n      iVar3 = bfd_stat(*(undefined4 *)(param_1 + 0x10),&local_7c);\n      if (iVar3 == 0) {\n        if (((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)) &&\n           (local_24 != 0 || local_20 != 0)) {\n          DAT_001c0a00 = param_1;\n          return;\n        }\n        pcVar5 = *(char **)(DAT_001c0a80 + 8);\n        pcVar4 = strchr(pcVar5,0x2f);\n        if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n          if (iVar3 == 0) {\n            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));\n          }\n          iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)));\n          if (iVar6 == 0) {\n            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);\n            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);\n            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);\n            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);\n          }\n        }\n      }\n      else {\n        uVar1 = *(undefined4 *)(param_1 + 0x10);\n        uVar8 = dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        FUN_00034d60(uVar8,uVar1);\n      }\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_0004c8d0(int param_1)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  int iVar3;\n  char *pcVar4;\n  char *pcVar5;\n  int iVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  int local_7c;\n  int local_78;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4c8d9;\n  if ((DAT_001c0a00 == 0) && (*(int *)(param_1 + 0x10) != 0)) {\n    uVar2 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));\n    if ((uVar2 & 1) == 0) {\n      iVar3 = bfd_stat(*(undefined4 *)(param_1 + 0x10),&local_7c);\n      if (iVar3 == 0) {\n        if (((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)) &&\n           (local_24 != 0 || local_20 != 0)) {\n          DAT_001c0a00 = param_1;\n          return;\n        }\n        pcVar5 = *(char **)(DAT_001c0a80 + 8);\n        pcVar4 = strchr(pcVar5,0x2f);\n        if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n          if (iVar3 == 0) {\n            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));\n          }\n          iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)));\n          if (iVar6 == 0) {\n            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);\n            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);\n            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);\n            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);\n          }\n        }\n      }\n      else {\n        uVar1 = *(undefined4 *)(param_1 + 0x10);\n        uVar8 = dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        FUN_00034d60(uVar8,uVar1);\n      }\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0004c8d0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  uint uVar2;\n  int iVar3;\n  char *pcVar4;\n  char *pcVar5;\n  int iVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  int local_7c;\n  int local_78;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4c8d9;\n  if ((DAT_001c0a00 == 0) && (*(int *)(param_1 + 0x10) != 0)) {\n    uVar2 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));\n    if ((uVar2 & 1) == 0) {\n      iVar3 = bfd_stat(*(undefined4 *)(param_1 + 0x10),&local_7c);\n      if (iVar3 == 0) {\n        if (((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)) &&\n           (local_24 != 0 || local_20 != 0)) {\n          DAT_001c0a00 = param_1;\n          return;\n        }\n        pcVar5 = *(char **)(DAT_001c0a80 + 8);\n        pcVar4 = strchr(pcVar5,0x2f);\n        if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n          if (iVar3 == 0) {\n            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));\n          }\n          iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)));\n          if (iVar6 == 0) {\n            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);\n            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);\n            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);\n            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);\n          }\n        }\n      }\n      else {\n        uVar1 = *(undefined4 *)(param_1 + 0x10);\n        uVar8 = dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        FUN_00034d60(uVar8,uVar1);\n      }\n    }\n  }\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "int local_7c;" primitive_type identifier ;) (declaration "int local_78;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x4c8d9;" (assignment_expression "uStack_14 = 0x4c8d9" identifier = number_literal) ;) (if_statement "if ((DAT_001c0a00 == 0) && (*(int *)(param_1 + 0x10) != 0)) {\n    uVar2 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));\n    if ((uVar2 & 1) == 0) {\n      iVar3 = bfd_stat(*(undefined4 *)(param_1 + 0x10),&local_7c);\n      if (iVar3 == 0) {\n        if (((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)) &&\n           (local_24 != 0 || local_20 != 0)) {\n          DAT_001c0a00 = param_1;\n          return;\n        }\n        pcVar5 = *(char **)(DAT_001c0a80 + 8);\n        pcVar4 = strchr(pcVar5,0x2f);\n        if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n          if (iVar3 == 0) {\n            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));\n          }\n          iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)));\n          if (iVar6 == 0) {\n            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);\n            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);\n            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);\n            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);\n          }\n        }\n      }\n      else {\n        uVar1 = *(undefined4 *)(param_1 + 0x10);\n        uVar8 = dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        FUN_00034d60(uVar8,uVar1);\n      }\n    }\n  }" if (parenthesized_expression "((DAT_001c0a00 == 0) && (*(int *)(param_1 + 0x10) != 0))" ( (binary_expression "(DAT_001c0a00 == 0) && (*(int *)(param_1 + 0x10) != 0)" (parenthesized_expression "(DAT_001c0a00 == 0)" ( (binary_expression "DAT_001c0a00 == 0" identifier == number_literal) )) && (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    uVar2 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));\n    if ((uVar2 & 1) == 0) {\n      iVar3 = bfd_stat(*(undefined4 *)(param_1 + 0x10),&local_7c);\n      if (iVar3 == 0) {\n        if (((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)) &&\n           (local_24 != 0 || local_20 != 0)) {\n          DAT_001c0a00 = param_1;\n          return;\n        }\n        pcVar5 = *(char **)(DAT_001c0a80 + 8);\n        pcVar4 = strchr(pcVar5,0x2f);\n        if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n          if (iVar3 == 0) {\n            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));\n          }\n          iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)));\n          if (iVar6 == 0) {\n            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);\n            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);\n            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);\n            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);\n          }\n        }\n      }\n      else {\n        uVar1 = *(undefined4 *)(param_1 + 0x10);\n        uVar8 = dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        FUN_00034d60(uVar8,uVar1);\n      }\n    }\n  }" { (expression_statement "uVar2 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));" (assignment_expression "uVar2 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10))" identifier = (call_expression "bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10))" identifier (argument_list "(*(int *)(param_1 + 0x10))" ( (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) )))) )))) ;) (if_statement "if ((uVar2 & 1) == 0) {\n      iVar3 = bfd_stat(*(undefined4 *)(param_1 + 0x10),&local_7c);\n      if (iVar3 == 0) {\n        if (((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)) &&\n           (local_24 != 0 || local_20 != 0)) {\n          DAT_001c0a00 = param_1;\n          return;\n        }\n        pcVar5 = *(char **)(DAT_001c0a80 + 8);\n        pcVar4 = strchr(pcVar5,0x2f);\n        if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n          if (iVar3 == 0) {\n            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));\n          }\n          iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)));\n          if (iVar6 == 0) {\n            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);\n            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);\n            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);\n            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);\n          }\n        }\n      }\n      else {\n        uVar1 = *(undefined4 *)(param_1 + 0x10);\n        uVar8 = dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        FUN_00034d60(uVar8,uVar1);\n      }\n    }" if (parenthesized_expression "((uVar2 & 1) == 0)" ( (binary_expression "(uVar2 & 1) == 0" (parenthesized_expression "(uVar2 & 1)" ( (binary_expression "uVar2 & 1" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      iVar3 = bfd_stat(*(undefined4 *)(param_1 + 0x10),&local_7c);\n      if (iVar3 == 0) {\n        if (((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)) &&\n           (local_24 != 0 || local_20 != 0)) {\n          DAT_001c0a00 = param_1;\n          return;\n        }\n        pcVar5 = *(char **)(DAT_001c0a80 + 8);\n        pcVar4 = strchr(pcVar5,0x2f);\n        if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n          if (iVar3 == 0) {\n            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));\n          }\n          iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)));\n          if (iVar6 == 0) {\n            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);\n            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);\n            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);\n            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);\n          }\n        }\n      }\n      else {\n        uVar1 = *(undefined4 *)(param_1 + 0x10);\n        uVar8 = dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        FUN_00034d60(uVar8,uVar1);\n      }\n    }" { (expression_statement "iVar3 = bfd_stat(*(undefined4 *)(param_1 + 0x10),&local_7c);" (assignment_expression "iVar3 = bfd_stat(*(undefined4 *)(param_1 + 0x10),&local_7c)" identifier = (call_expression "bfd_stat(*(undefined4 *)(param_1 + 0x10),&local_7c)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x10),&local_7c)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , (pointer_expression "&local_7c" & identifier) )))) ;) (if_statement "if (iVar3 == 0) {\n        if (((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)) &&\n           (local_24 != 0 || local_20 != 0)) {\n          DAT_001c0a00 = param_1;\n          return;\n        }\n        pcVar5 = *(char **)(DAT_001c0a80 + 8);\n        pcVar4 = strchr(pcVar5,0x2f);\n        if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n          if (iVar3 == 0) {\n            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));\n          }\n          iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)));\n          if (iVar6 == 0) {\n            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);\n            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);\n            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);\n            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);\n          }\n        }\n      }\n      else {\n        uVar1 = *(undefined4 *)(param_1 + 0x10);\n        uVar8 = dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        FUN_00034d60(uVar8,uVar1);\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        if (((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)) &&\n           (local_24 != 0 || local_20 != 0)) {\n          DAT_001c0a00 = param_1;\n          return;\n        }\n        pcVar5 = *(char **)(DAT_001c0a80 + 8);\n        pcVar4 = strchr(pcVar5,0x2f);\n        if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n          if (iVar3 == 0) {\n            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));\n          }\n          iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)));\n          if (iVar6 == 0) {\n            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);\n            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);\n            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);\n            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);\n          }\n        }\n      }" { (if_statement "if (((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)) &&\n           (local_24 != 0 || local_20 != 0)) {\n          DAT_001c0a00 = param_1;\n          return;\n        }" if (parenthesized_expression "(((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)) &&\n           (local_24 != 0 || local_20 != 0))" ( (binary_expression "((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)) &&\n           (local_24 != 0 || local_20 != 0)" (parenthesized_expression "((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20))" ( (binary_expression "(local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)" (parenthesized_expression "(local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20)" ( (binary_expression "local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20" (binary_expression "local_78 == DAT_001c0a24" identifier == identifier) && (binary_expression "local_7c == DAT_001c0a20" identifier == identifier)) )) && (parenthesized_expression "(DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)" ( (binary_expression "DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20" (binary_expression "DAT_001c0a78 == local_24" identifier == identifier) && (binary_expression "DAT_001c0a7c == local_20" identifier == identifier)) ))) )) && (parenthesized_expression "(local_24 != 0 || local_20 != 0)" ( (binary_expression "local_24 != 0 || local_20 != 0" (binary_expression "local_24 != 0" identifier != number_literal) || (binary_expression "local_20 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n          DAT_001c0a00 = param_1;\n          return;\n        }" { (expression_statement "DAT_001c0a00 = param_1;" (assignment_expression "DAT_001c0a00 = param_1" identifier = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "pcVar5 = *(char **)(DAT_001c0a80 + 8);" (assignment_expression "pcVar5 = *(char **)(DAT_001c0a80 + 8)" identifier = (pointer_expression "*(char **)(DAT_001c0a80 + 8)" * (cast_expression "(char **)(DAT_001c0a80 + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_001c0a80 + 8)" ( (binary_expression "DAT_001c0a80 + 8" identifier + number_literal) ))))) ;) (expression_statement "pcVar4 = strchr(pcVar5,0x2f);" (assignment_expression "pcVar4 = strchr(pcVar5,0x2f)" identifier = (call_expression "strchr(pcVar5,0x2f)" identifier (argument_list "(pcVar5,0x2f)" ( identifier , number_literal )))) ;) (if_statement "if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n          if (iVar3 == 0) {\n            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));\n          }\n          iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)));\n          if (iVar6 == 0) {\n            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);\n            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);\n            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);\n            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);\n          }\n        }" if (parenthesized_expression "((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0))" ( (binary_expression "(pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)" (parenthesized_expression "(pcVar4 == (char *)0x0)" ( (binary_expression "pcVar4 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)" ( (comma_expression "pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0" (assignment_expression "pcVar5 = strstr(pcVar5,".so.")" identifier = (call_expression "strstr(pcVar5,".so.")" identifier (argument_list "(pcVar5,".so.")" ( identifier , (string_literal "".so."" " string_content ") )))) , (binary_expression "pcVar5 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n          iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n          if (iVar3 == 0) {\n            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));\n          }\n          iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)));\n          if (iVar6 == 0) {\n            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);\n            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);\n            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);\n            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);\n          }\n        }" { (expression_statement "iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));" (assignment_expression "iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10))" identifier = (call_expression "bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x10))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar3 == 0) {\n            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));\n          }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));\n          }" { (expression_statement "iVar3 = lbasename(*(undefined4 *)(param_1 + 8));" (assignment_expression "iVar3 = lbasename(*(undefined4 *)(param_1 + 8))" identifier = (call_expression "lbasename(*(undefined4 *)(param_1 + 8))" identifier (argument_list "(*(undefined4 *)(param_1 + 8))" ( (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) )))) )))) ;) })) (expression_statement "iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)));" (assignment_expression "iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)))" identifier = (call_expression "filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)))" identifier (argument_list "(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)))" ( identifier , (pointer_expression "*(int *)(DAT_001c0a80 + 8)" * (cast_expression "(int *)(DAT_001c0a80 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c0a80 + 8)" ( (binary_expression "DAT_001c0a80 + 8" identifier + number_literal) )))) , (binary_expression "pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8))" identifier + (parenthesized_expression "(4 - *(int *)(DAT_001c0a80 + 8))" ( (binary_expression "4 - *(int *)(DAT_001c0a80 + 8)" number_literal - (pointer_expression "*(int *)(DAT_001c0a80 + 8)" * (cast_expression "(int *)(DAT_001c0a80 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c0a80 + 8)" ( (binary_expression "DAT_001c0a80 + 8" identifier + number_literal) ))))) ))) )))) ;) (if_statement "if (iVar6 == 0) {\n            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);\n            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);\n            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);\n            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);\n          }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);\n            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);\n            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);\n            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);\n          }" { (expression_statement "uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);" (assignment_expression "uVar1 = *(undefined4 *)(DAT_001c0a80 + 4)" identifier = (pointer_expression "*(undefined4 *)(DAT_001c0a80 + 4)" * (cast_expression "(undefined4 *)(DAT_001c0a80 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c0a80 + 4)" ( (binary_expression "DAT_001c0a80 + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);" (assignment_expression "uVar8 = *(undefined4 *)(DAT_001c0a80 + 8)" identifier = (pointer_expression "*(undefined4 *)(DAT_001c0a80 + 8)" * (cast_expression "(undefined4 *)(DAT_001c0a80 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c0a80 + 8)" ( (binary_expression "DAT_001c0a80 + 8" identifier + number_literal) ))))) ;) (expression_statement "uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);" (assignment_expression "uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5)" identifier = (call_expression "dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5)" identifier (argument_list "(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5)" ( number_literal , (string_literal ""%P: warning: %s, needed by %pB, may conflict with %s\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00034d60(uVar7,uVar8,uVar1,iVar3);" (call_expression "FUN_00034d60(uVar7,uVar8,uVar1,iVar3)" identifier (argument_list "(uVar7,uVar8,uVar1,iVar3)" ( identifier , identifier , identifier , identifier ))) ;) })) })) }) (else_clause "else {\n        uVar1 = *(undefined4 *)(param_1 + 0x10);\n        uVar8 = dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        FUN_00034d60(uVar8,uVar1);\n      }" else (compound_statement "{\n        uVar1 = *(undefined4 *)(param_1 + 0x10);\n        uVar8 = dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        FUN_00034d60(uVar8,uVar1);\n      }" { (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x10);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 0x10)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "uVar8 = dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);" (assignment_expression "uVar8 = dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5)" identifier = (call_expression "dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5)" identifier (argument_list "(0,"%P: %pB: bfd_stat failed: %E\n",5)" ( number_literal , (string_literal ""%P: %pB: bfd_stat failed: %E\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00034d60(uVar8,uVar1);" (call_expression "FUN_00034d60(uVar8,uVar1)" identifier (argument_list "(uVar8,uVar1)" ( identifier , identifier ))) ;) }))) })) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid gldelf32lppc_stat_needed(lang_input_statement_type *s)\n\n{\n  bfd *pbVar1;\n  uint uVar2;\n  int iVar3;\n  char *pcVar4;\n  char *pcVar5;\n  int iVar6;\n  stat st;\n  \n  if ((global_found == (lang_input_statement_type *)0x0) && (s->the_bfd != (bfd *)0x0)) {\n    uVar2 = bfd_elf_get_dyn_lib_class(s->the_bfd);\n    if ((uVar2 & 1) == 0) {\n      iVar3 = bfd_stat(s->the_bfd,&st);\n      if (iVar3 == 0) {\n        if (((st.st_dev._4_4_ == global_stat.st_dev._4_4_ &&\n              (int)st.st_dev == (int)global_stat.st_dev) &&\n            ((int)global_stat.st_ino == (int)st.st_ino &&\n             global_stat.st_ino._4_4_ == st.st_ino._4_4_)) &&\n           ((int)st.st_ino != 0 || st.st_ino._4_4_ != 0)) {\n          global_found = s;\n          return;\n        }\n        pcVar5 = global_needed->name;\n        pcVar4 = strchr(pcVar5,0x2f);\n        if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(s->the_bfd);\n          if (iVar3 == 0) {\n            iVar3 = lbasename(s->filename);\n          }\n          iVar6 = filename_ncmp(iVar3,global_needed->name,pcVar5 + (4 - (int)global_needed->name));\n          if (iVar6 == 0) {\n            pbVar1 = global_needed->by;\n            pcVar5 = global_needed->name;\n            pcVar4 = (char *)dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5)\n            ;\n            einfo(pcVar4,pcVar5,pbVar1,iVar3);\n          }\n        }\n      }\n      else {\n        pbVar1 = s->the_bfd;\n        pcVar5 = (char *)dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        einfo(pcVar5,pbVar1);\n      }\n    }\n  }\n  return;\n}\n\n" comment comment (function_definition "void gldelf32lppc_stat_needed(lang_input_statement_type *s)\n\n{\n  bfd *pbVar1;\n  uint uVar2;\n  int iVar3;\n  char *pcVar4;\n  char *pcVar5;\n  int iVar6;\n  stat st;\n  \n  if ((global_found == (lang_input_statement_type *)0x0) && (s->the_bfd != (bfd *)0x0)) {\n    uVar2 = bfd_elf_get_dyn_lib_class(s->the_bfd);\n    if ((uVar2 & 1) == 0) {\n      iVar3 = bfd_stat(s->the_bfd,&st);\n      if (iVar3 == 0) {\n        if (((st.st_dev._4_4_ == global_stat.st_dev._4_4_ &&\n              (int)st.st_dev == (int)global_stat.st_dev) &&\n            ((int)global_stat.st_ino == (int)st.st_ino &&\n             global_stat.st_ino._4_4_ == st.st_ino._4_4_)) &&\n           ((int)st.st_ino != 0 || st.st_ino._4_4_ != 0)) {\n          global_found = s;\n          return;\n        }\n        pcVar5 = global_needed->name;\n        pcVar4 = strchr(pcVar5,0x2f);\n        if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(s->the_bfd);\n          if (iVar3 == 0) {\n            iVar3 = lbasename(s->filename);\n          }\n          iVar6 = filename_ncmp(iVar3,global_needed->name,pcVar5 + (4 - (int)global_needed->name));\n          if (iVar6 == 0) {\n            pbVar1 = global_needed->by;\n            pcVar5 = global_needed->name;\n            pcVar4 = (char *)dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5)\n            ;\n            einfo(pcVar4,pcVar5,pbVar1,iVar3);\n          }\n        }\n      }\n      else {\n        pbVar1 = s->the_bfd;\n        pcVar5 = (char *)dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        einfo(pcVar5,pbVar1);\n      }\n    }\n  }\n  return;\n}" primitive_type (function_declarator "gldelf32lppc_stat_needed(lang_input_statement_type *s)" identifier (parameter_list "(lang_input_statement_type *s)" ( (parameter_declaration "lang_input_statement_type *s" type_identifier (pointer_declarator "*s" * identifier)) ))) (compound_statement "{\n  bfd *pbVar1;\n  uint uVar2;\n  int iVar3;\n  char *pcVar4;\n  char *pcVar5;\n  int iVar6;\n  stat st;\n  \n  if ((global_found == (lang_input_statement_type *)0x0) && (s->the_bfd != (bfd *)0x0)) {\n    uVar2 = bfd_elf_get_dyn_lib_class(s->the_bfd);\n    if ((uVar2 & 1) == 0) {\n      iVar3 = bfd_stat(s->the_bfd,&st);\n      if (iVar3 == 0) {\n        if (((st.st_dev._4_4_ == global_stat.st_dev._4_4_ &&\n              (int)st.st_dev == (int)global_stat.st_dev) &&\n            ((int)global_stat.st_ino == (int)st.st_ino &&\n             global_stat.st_ino._4_4_ == st.st_ino._4_4_)) &&\n           ((int)st.st_ino != 0 || st.st_ino._4_4_ != 0)) {\n          global_found = s;\n          return;\n        }\n        pcVar5 = global_needed->name;\n        pcVar4 = strchr(pcVar5,0x2f);\n        if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(s->the_bfd);\n          if (iVar3 == 0) {\n            iVar3 = lbasename(s->filename);\n          }\n          iVar6 = filename_ncmp(iVar3,global_needed->name,pcVar5 + (4 - (int)global_needed->name));\n          if (iVar6 == 0) {\n            pbVar1 = global_needed->by;\n            pcVar5 = global_needed->name;\n            pcVar4 = (char *)dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5)\n            ;\n            einfo(pcVar4,pcVar5,pbVar1,iVar3);\n          }\n        }\n      }\n      else {\n        pbVar1 = s->the_bfd;\n        pcVar5 = (char *)dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        einfo(pcVar5,pbVar1);\n      }\n    }\n  }\n  return;\n}" { (declaration "bfd *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "stat st;" type_identifier identifier ;) (if_statement "if ((global_found == (lang_input_statement_type *)0x0) && (s->the_bfd != (bfd *)0x0)) {\n    uVar2 = bfd_elf_get_dyn_lib_class(s->the_bfd);\n    if ((uVar2 & 1) == 0) {\n      iVar3 = bfd_stat(s->the_bfd,&st);\n      if (iVar3 == 0) {\n        if (((st.st_dev._4_4_ == global_stat.st_dev._4_4_ &&\n              (int)st.st_dev == (int)global_stat.st_dev) &&\n            ((int)global_stat.st_ino == (int)st.st_ino &&\n             global_stat.st_ino._4_4_ == st.st_ino._4_4_)) &&\n           ((int)st.st_ino != 0 || st.st_ino._4_4_ != 0)) {\n          global_found = s;\n          return;\n        }\n        pcVar5 = global_needed->name;\n        pcVar4 = strchr(pcVar5,0x2f);\n        if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(s->the_bfd);\n          if (iVar3 == 0) {\n            iVar3 = lbasename(s->filename);\n          }\n          iVar6 = filename_ncmp(iVar3,global_needed->name,pcVar5 + (4 - (int)global_needed->name));\n          if (iVar6 == 0) {\n            pbVar1 = global_needed->by;\n            pcVar5 = global_needed->name;\n            pcVar4 = (char *)dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5)\n            ;\n            einfo(pcVar4,pcVar5,pbVar1,iVar3);\n          }\n        }\n      }\n      else {\n        pbVar1 = s->the_bfd;\n        pcVar5 = (char *)dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        einfo(pcVar5,pbVar1);\n      }\n    }\n  }" if (parenthesized_expression "((global_found == (lang_input_statement_type *)0x0) && (s->the_bfd != (bfd *)0x0))" ( (binary_expression "(global_found == (lang_input_statement_type *)0x0) && (s->the_bfd != (bfd *)0x0)" (parenthesized_expression "(global_found == (lang_input_statement_type *)0x0)" ( (binary_expression "global_found == (lang_input_statement_type *)0x0" identifier == (cast_expression "(lang_input_statement_type *)0x0" ( (type_descriptor "lang_input_statement_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(s->the_bfd != (bfd *)0x0)" ( (binary_expression "s->the_bfd != (bfd *)0x0" (field_expression "s->the_bfd" identifier -> field_identifier) != (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    uVar2 = bfd_elf_get_dyn_lib_class(s->the_bfd);\n    if ((uVar2 & 1) == 0) {\n      iVar3 = bfd_stat(s->the_bfd,&st);\n      if (iVar3 == 0) {\n        if (((st.st_dev._4_4_ == global_stat.st_dev._4_4_ &&\n              (int)st.st_dev == (int)global_stat.st_dev) &&\n            ((int)global_stat.st_ino == (int)st.st_ino &&\n             global_stat.st_ino._4_4_ == st.st_ino._4_4_)) &&\n           ((int)st.st_ino != 0 || st.st_ino._4_4_ != 0)) {\n          global_found = s;\n          return;\n        }\n        pcVar5 = global_needed->name;\n        pcVar4 = strchr(pcVar5,0x2f);\n        if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(s->the_bfd);\n          if (iVar3 == 0) {\n            iVar3 = lbasename(s->filename);\n          }\n          iVar6 = filename_ncmp(iVar3,global_needed->name,pcVar5 + (4 - (int)global_needed->name));\n          if (iVar6 == 0) {\n            pbVar1 = global_needed->by;\n            pcVar5 = global_needed->name;\n            pcVar4 = (char *)dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5)\n            ;\n            einfo(pcVar4,pcVar5,pbVar1,iVar3);\n          }\n        }\n      }\n      else {\n        pbVar1 = s->the_bfd;\n        pcVar5 = (char *)dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        einfo(pcVar5,pbVar1);\n      }\n    }\n  }" { (expression_statement "uVar2 = bfd_elf_get_dyn_lib_class(s->the_bfd);" (assignment_expression "uVar2 = bfd_elf_get_dyn_lib_class(s->the_bfd)" identifier = (call_expression "bfd_elf_get_dyn_lib_class(s->the_bfd)" identifier (argument_list "(s->the_bfd)" ( (field_expression "s->the_bfd" identifier -> field_identifier) )))) ;) (if_statement "if ((uVar2 & 1) == 0) {\n      iVar3 = bfd_stat(s->the_bfd,&st);\n      if (iVar3 == 0) {\n        if (((st.st_dev._4_4_ == global_stat.st_dev._4_4_ &&\n              (int)st.st_dev == (int)global_stat.st_dev) &&\n            ((int)global_stat.st_ino == (int)st.st_ino &&\n             global_stat.st_ino._4_4_ == st.st_ino._4_4_)) &&\n           ((int)st.st_ino != 0 || st.st_ino._4_4_ != 0)) {\n          global_found = s;\n          return;\n        }\n        pcVar5 = global_needed->name;\n        pcVar4 = strchr(pcVar5,0x2f);\n        if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(s->the_bfd);\n          if (iVar3 == 0) {\n            iVar3 = lbasename(s->filename);\n          }\n          iVar6 = filename_ncmp(iVar3,global_needed->name,pcVar5 + (4 - (int)global_needed->name));\n          if (iVar6 == 0) {\n            pbVar1 = global_needed->by;\n            pcVar5 = global_needed->name;\n            pcVar4 = (char *)dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5)\n            ;\n            einfo(pcVar4,pcVar5,pbVar1,iVar3);\n          }\n        }\n      }\n      else {\n        pbVar1 = s->the_bfd;\n        pcVar5 = (char *)dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        einfo(pcVar5,pbVar1);\n      }\n    }" if (parenthesized_expression "((uVar2 & 1) == 0)" ( (binary_expression "(uVar2 & 1) == 0" (parenthesized_expression "(uVar2 & 1)" ( (binary_expression "uVar2 & 1" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      iVar3 = bfd_stat(s->the_bfd,&st);\n      if (iVar3 == 0) {\n        if (((st.st_dev._4_4_ == global_stat.st_dev._4_4_ &&\n              (int)st.st_dev == (int)global_stat.st_dev) &&\n            ((int)global_stat.st_ino == (int)st.st_ino &&\n             global_stat.st_ino._4_4_ == st.st_ino._4_4_)) &&\n           ((int)st.st_ino != 0 || st.st_ino._4_4_ != 0)) {\n          global_found = s;\n          return;\n        }\n        pcVar5 = global_needed->name;\n        pcVar4 = strchr(pcVar5,0x2f);\n        if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(s->the_bfd);\n          if (iVar3 == 0) {\n            iVar3 = lbasename(s->filename);\n          }\n          iVar6 = filename_ncmp(iVar3,global_needed->name,pcVar5 + (4 - (int)global_needed->name));\n          if (iVar6 == 0) {\n            pbVar1 = global_needed->by;\n            pcVar5 = global_needed->name;\n            pcVar4 = (char *)dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5)\n            ;\n            einfo(pcVar4,pcVar5,pbVar1,iVar3);\n          }\n        }\n      }\n      else {\n        pbVar1 = s->the_bfd;\n        pcVar5 = (char *)dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        einfo(pcVar5,pbVar1);\n      }\n    }" { (expression_statement "iVar3 = bfd_stat(s->the_bfd,&st);" (assignment_expression "iVar3 = bfd_stat(s->the_bfd,&st)" identifier = (call_expression "bfd_stat(s->the_bfd,&st)" identifier (argument_list "(s->the_bfd,&st)" ( (field_expression "s->the_bfd" identifier -> field_identifier) , (pointer_expression "&st" & identifier) )))) ;) (if_statement "if (iVar3 == 0) {\n        if (((st.st_dev._4_4_ == global_stat.st_dev._4_4_ &&\n              (int)st.st_dev == (int)global_stat.st_dev) &&\n            ((int)global_stat.st_ino == (int)st.st_ino &&\n             global_stat.st_ino._4_4_ == st.st_ino._4_4_)) &&\n           ((int)st.st_ino != 0 || st.st_ino._4_4_ != 0)) {\n          global_found = s;\n          return;\n        }\n        pcVar5 = global_needed->name;\n        pcVar4 = strchr(pcVar5,0x2f);\n        if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(s->the_bfd);\n          if (iVar3 == 0) {\n            iVar3 = lbasename(s->filename);\n          }\n          iVar6 = filename_ncmp(iVar3,global_needed->name,pcVar5 + (4 - (int)global_needed->name));\n          if (iVar6 == 0) {\n            pbVar1 = global_needed->by;\n            pcVar5 = global_needed->name;\n            pcVar4 = (char *)dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5)\n            ;\n            einfo(pcVar4,pcVar5,pbVar1,iVar3);\n          }\n        }\n      }\n      else {\n        pbVar1 = s->the_bfd;\n        pcVar5 = (char *)dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        einfo(pcVar5,pbVar1);\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        if (((st.st_dev._4_4_ == global_stat.st_dev._4_4_ &&\n              (int)st.st_dev == (int)global_stat.st_dev) &&\n            ((int)global_stat.st_ino == (int)st.st_ino &&\n             global_stat.st_ino._4_4_ == st.st_ino._4_4_)) &&\n           ((int)st.st_ino != 0 || st.st_ino._4_4_ != 0)) {\n          global_found = s;\n          return;\n        }\n        pcVar5 = global_needed->name;\n        pcVar4 = strchr(pcVar5,0x2f);\n        if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(s->the_bfd);\n          if (iVar3 == 0) {\n            iVar3 = lbasename(s->filename);\n          }\n          iVar6 = filename_ncmp(iVar3,global_needed->name,pcVar5 + (4 - (int)global_needed->name));\n          if (iVar6 == 0) {\n            pbVar1 = global_needed->by;\n            pcVar5 = global_needed->name;\n            pcVar4 = (char *)dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5)\n            ;\n            einfo(pcVar4,pcVar5,pbVar1,iVar3);\n          }\n        }\n      }" { (if_statement "if (((st.st_dev._4_4_ == global_stat.st_dev._4_4_ &&\n              (int)st.st_dev == (int)global_stat.st_dev) &&\n            ((int)global_stat.st_ino == (int)st.st_ino &&\n             global_stat.st_ino._4_4_ == st.st_ino._4_4_)) &&\n           ((int)st.st_ino != 0 || st.st_ino._4_4_ != 0)) {\n          global_found = s;\n          return;\n        }" if (parenthesized_expression "(((st.st_dev._4_4_ == global_stat.st_dev._4_4_ &&\n              (int)st.st_dev == (int)global_stat.st_dev) &&\n            ((int)global_stat.st_ino == (int)st.st_ino &&\n             global_stat.st_ino._4_4_ == st.st_ino._4_4_)) &&\n           ((int)st.st_ino != 0 || st.st_ino._4_4_ != 0))" ( (binary_expression "((st.st_dev._4_4_ == global_stat.st_dev._4_4_ &&\n              (int)st.st_dev == (int)global_stat.st_dev) &&\n            ((int)global_stat.st_ino == (int)st.st_ino &&\n             global_stat.st_ino._4_4_ == st.st_ino._4_4_)) &&\n           ((int)st.st_ino != 0 || st.st_ino._4_4_ != 0)" (parenthesized_expression "((st.st_dev._4_4_ == global_stat.st_dev._4_4_ &&\n              (int)st.st_dev == (int)global_stat.st_dev) &&\n            ((int)global_stat.st_ino == (int)st.st_ino &&\n             global_stat.st_ino._4_4_ == st.st_ino._4_4_))" ( (binary_expression "(st.st_dev._4_4_ == global_stat.st_dev._4_4_ &&\n              (int)st.st_dev == (int)global_stat.st_dev) &&\n            ((int)global_stat.st_ino == (int)st.st_ino &&\n             global_stat.st_ino._4_4_ == st.st_ino._4_4_)" (parenthesized_expression "(st.st_dev._4_4_ == global_stat.st_dev._4_4_ &&\n              (int)st.st_dev == (int)global_stat.st_dev)" ( (binary_expression "st.st_dev._4_4_ == global_stat.st_dev._4_4_ &&\n              (int)st.st_dev == (int)global_stat.st_dev" (binary_expression "st.st_dev._4_4_ == global_stat.st_dev._4_4_" (field_expression "st.st_dev._4_4_" (field_expression "st.st_dev" identifier . field_identifier) . field_identifier) == (field_expression "global_stat.st_dev._4_4_" (field_expression "global_stat.st_dev" identifier . field_identifier) . field_identifier)) && (binary_expression "(int)st.st_dev == (int)global_stat.st_dev" (cast_expression "(int)st.st_dev" ( (type_descriptor "int" primitive_type) ) (field_expression "st.st_dev" identifier . field_identifier)) == (cast_expression "(int)global_stat.st_dev" ( (type_descriptor "int" primitive_type) ) (field_expression "global_stat.st_dev" identifier . field_identifier)))) )) && (parenthesized_expression "((int)global_stat.st_ino == (int)st.st_ino &&\n             global_stat.st_ino._4_4_ == st.st_ino._4_4_)" ( (binary_expression "(int)global_stat.st_ino == (int)st.st_ino &&\n             global_stat.st_ino._4_4_ == st.st_ino._4_4_" (binary_expression "(int)global_stat.st_ino == (int)st.st_ino" (cast_expression "(int)global_stat.st_ino" ( (type_descriptor "int" primitive_type) ) (field_expression "global_stat.st_ino" identifier . field_identifier)) == (cast_expression "(int)st.st_ino" ( (type_descriptor "int" primitive_type) ) (field_expression "st.st_ino" identifier . field_identifier))) && (binary_expression "global_stat.st_ino._4_4_ == st.st_ino._4_4_" (field_expression "global_stat.st_ino._4_4_" (field_expression "global_stat.st_ino" identifier . field_identifier) . field_identifier) == (field_expression "st.st_ino._4_4_" (field_expression "st.st_ino" identifier . field_identifier) . field_identifier))) ))) )) && (parenthesized_expression "((int)st.st_ino != 0 || st.st_ino._4_4_ != 0)" ( (binary_expression "(int)st.st_ino != 0 || st.st_ino._4_4_ != 0" (binary_expression "(int)st.st_ino != 0" (cast_expression "(int)st.st_ino" ( (type_descriptor "int" primitive_type) ) (field_expression "st.st_ino" identifier . field_identifier)) != number_literal) || (binary_expression "st.st_ino._4_4_ != 0" (field_expression "st.st_ino._4_4_" (field_expression "st.st_ino" identifier . field_identifier) . field_identifier) != number_literal)) ))) )) (compound_statement "{\n          global_found = s;\n          return;\n        }" { (expression_statement "global_found = s;" (assignment_expression "global_found = s" identifier = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "pcVar5 = global_needed->name;" (assignment_expression "pcVar5 = global_needed->name" identifier = (field_expression "global_needed->name" identifier -> field_identifier)) ;) (expression_statement "pcVar4 = strchr(pcVar5,0x2f);" (assignment_expression "pcVar4 = strchr(pcVar5,0x2f)" identifier = (call_expression "strchr(pcVar5,0x2f)" identifier (argument_list "(pcVar5,0x2f)" ( identifier , number_literal )))) ;) (if_statement "if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(s->the_bfd);\n          if (iVar3 == 0) {\n            iVar3 = lbasename(s->filename);\n          }\n          iVar6 = filename_ncmp(iVar3,global_needed->name,pcVar5 + (4 - (int)global_needed->name));\n          if (iVar6 == 0) {\n            pbVar1 = global_needed->by;\n            pcVar5 = global_needed->name;\n            pcVar4 = (char *)dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5)\n            ;\n            einfo(pcVar4,pcVar5,pbVar1,iVar3);\n          }\n        }" if (parenthesized_expression "((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0))" ( (binary_expression "(pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)" (parenthesized_expression "(pcVar4 == (char *)0x0)" ( (binary_expression "pcVar4 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)" ( (comma_expression "pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0" (assignment_expression "pcVar5 = strstr(pcVar5,".so.")" identifier = (call_expression "strstr(pcVar5,".so.")" identifier (argument_list "(pcVar5,".so.")" ( identifier , (string_literal "".so."" " string_content ") )))) , (binary_expression "pcVar5 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n          iVar3 = bfd_elf_get_dt_soname(s->the_bfd);\n          if (iVar3 == 0) {\n            iVar3 = lbasename(s->filename);\n          }\n          iVar6 = filename_ncmp(iVar3,global_needed->name,pcVar5 + (4 - (int)global_needed->name));\n          if (iVar6 == 0) {\n            pbVar1 = global_needed->by;\n            pcVar5 = global_needed->name;\n            pcVar4 = (char *)dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5)\n            ;\n            einfo(pcVar4,pcVar5,pbVar1,iVar3);\n          }\n        }" { (expression_statement "iVar3 = bfd_elf_get_dt_soname(s->the_bfd);" (assignment_expression "iVar3 = bfd_elf_get_dt_soname(s->the_bfd)" identifier = (call_expression "bfd_elf_get_dt_soname(s->the_bfd)" identifier (argument_list "(s->the_bfd)" ( (field_expression "s->the_bfd" identifier -> field_identifier) )))) ;) (if_statement "if (iVar3 == 0) {\n            iVar3 = lbasename(s->filename);\n          }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n            iVar3 = lbasename(s->filename);\n          }" { (expression_statement "iVar3 = lbasename(s->filename);" (assignment_expression "iVar3 = lbasename(s->filename)" identifier = (call_expression "lbasename(s->filename)" identifier (argument_list "(s->filename)" ( (field_expression "s->filename" identifier -> field_identifier) )))) ;) })) (expression_statement "iVar6 = filename_ncmp(iVar3,global_needed->name,pcVar5 + (4 - (int)global_needed->name));" (assignment_expression "iVar6 = filename_ncmp(iVar3,global_needed->name,pcVar5 + (4 - (int)global_needed->name))" identifier = (call_expression "filename_ncmp(iVar3,global_needed->name,pcVar5 + (4 - (int)global_needed->name))" identifier (argument_list "(iVar3,global_needed->name,pcVar5 + (4 - (int)global_needed->name))" ( identifier , (field_expression "global_needed->name" identifier -> field_identifier) , (binary_expression "pcVar5 + (4 - (int)global_needed->name)" identifier + (parenthesized_expression "(4 - (int)global_needed->name)" ( (binary_expression "4 - (int)global_needed->name" number_literal - (cast_expression "(int)global_needed->name" ( (type_descriptor "int" primitive_type) ) (field_expression "global_needed->name" identifier -> field_identifier))) ))) )))) ;) (if_statement "if (iVar6 == 0) {\n            pbVar1 = global_needed->by;\n            pcVar5 = global_needed->name;\n            pcVar4 = (char *)dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5)\n            ;\n            einfo(pcVar4,pcVar5,pbVar1,iVar3);\n          }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n            pbVar1 = global_needed->by;\n            pcVar5 = global_needed->name;\n            pcVar4 = (char *)dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5)\n            ;\n            einfo(pcVar4,pcVar5,pbVar1,iVar3);\n          }" { (expression_statement "pbVar1 = global_needed->by;" (assignment_expression "pbVar1 = global_needed->by" identifier = (field_expression "global_needed->by" identifier -> field_identifier)) ;) (expression_statement "pcVar5 = global_needed->name;" (assignment_expression "pcVar5 = global_needed->name" identifier = (field_expression "global_needed->name" identifier -> field_identifier)) ;) (expression_statement "pcVar4 = (char *)dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5)\n            ;" (assignment_expression "pcVar4 = (char *)dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5)" identifier (argument_list "(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5)" ( number_literal , (string_literal ""%P: warning: %s, needed by %pB, may conflict with %s\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "einfo(pcVar4,pcVar5,pbVar1,iVar3);" (call_expression "einfo(pcVar4,pcVar5,pbVar1,iVar3)" identifier (argument_list "(pcVar4,pcVar5,pbVar1,iVar3)" ( identifier , identifier , identifier , identifier ))) ;) })) })) }) (else_clause "else {\n        pbVar1 = s->the_bfd;\n        pcVar5 = (char *)dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        einfo(pcVar5,pbVar1);\n      }" else (compound_statement "{\n        pbVar1 = s->the_bfd;\n        pcVar5 = (char *)dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        einfo(pcVar5,pbVar1);\n      }" { (expression_statement "pbVar1 = s->the_bfd;" (assignment_expression "pbVar1 = s->the_bfd" identifier = (field_expression "s->the_bfd" identifier -> field_identifier)) ;) (expression_statement "pcVar5 = (char *)dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);" (assignment_expression "pcVar5 = (char *)dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5)" identifier (argument_list "(0,"%P: %pB: bfd_stat failed: %E\n",5)" ( number_literal , (string_literal ""%P: %pB: bfd_stat failed: %E\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "einfo(pcVar5,pbVar1);" (call_expression "einfo(pcVar5,pbVar1)" identifier (argument_list "(pcVar5,pbVar1)" ( identifier , identifier ))) ;) }))) })) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0004c8d0(int param_1)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  int iVar3;\n  char *pcVar4;\n  char *pcVar5;\n  int iVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  int local_7c;\n  int local_78;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4c8d9;\n  if ((DAT_001c0a00 == 0) && (*(int *)(param_1 + 0x10) != 0)) {\n    uVar2 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));\n    if ((uVar2 & 1) == 0) {\n      iVar3 = bfd_stat(*(undefined4 *)(param_1 + 0x10),&local_7c);\n      if (iVar3 == 0) {\n        if (((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)) &&\n           (local_24 != 0 || local_20 != 0)) {\n          DAT_001c0a00 = param_1;\n          return;\n        }\n        pcVar5 = *(char **)(DAT_001c0a80 + 8);\n        pcVar4 = strchr(pcVar5,0x2f);\n        if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n          if (iVar3 == 0) {\n            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));\n          }\n          iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)));\n          if (iVar6 == 0) {\n            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);\n            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);\n            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);\n            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);\n          }\n        }\n      }\n      else {\n        uVar1 = *(undefined4 *)(param_1 + 0x10);\n        uVar8 = dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        FUN_00034d60(uVar8,uVar1);\n      }\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_0004c8d0(int param_1)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  int iVar3;\n  char *pcVar4;\n  char *pcVar5;\n  int iVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  int local_7c;\n  int local_78;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4c8d9;\n  if ((DAT_001c0a00 == 0) && (*(int *)(param_1 + 0x10) != 0)) {\n    uVar2 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));\n    if ((uVar2 & 1) == 0) {\n      iVar3 = bfd_stat(*(undefined4 *)(param_1 + 0x10),&local_7c);\n      if (iVar3 == 0) {\n        if (((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)) &&\n           (local_24 != 0 || local_20 != 0)) {\n          DAT_001c0a00 = param_1;\n          return;\n        }\n        pcVar5 = *(char **)(DAT_001c0a80 + 8);\n        pcVar4 = strchr(pcVar5,0x2f);\n        if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n          if (iVar3 == 0) {\n            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));\n          }\n          iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)));\n          if (iVar6 == 0) {\n            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);\n            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);\n            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);\n            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);\n          }\n        }\n      }\n      else {\n        uVar1 = *(undefined4 *)(param_1 + 0x10);\n        uVar8 = dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        FUN_00034d60(uVar8,uVar1);\n      }\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0004c8d0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  uint uVar2;\n  int iVar3;\n  char *pcVar4;\n  char *pcVar5;\n  int iVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  int local_7c;\n  int local_78;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4c8d9;\n  if ((DAT_001c0a00 == 0) && (*(int *)(param_1 + 0x10) != 0)) {\n    uVar2 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));\n    if ((uVar2 & 1) == 0) {\n      iVar3 = bfd_stat(*(undefined4 *)(param_1 + 0x10),&local_7c);\n      if (iVar3 == 0) {\n        if (((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)) &&\n           (local_24 != 0 || local_20 != 0)) {\n          DAT_001c0a00 = param_1;\n          return;\n        }\n        pcVar5 = *(char **)(DAT_001c0a80 + 8);\n        pcVar4 = strchr(pcVar5,0x2f);\n        if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n          if (iVar3 == 0) {\n            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));\n          }\n          iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)));\n          if (iVar6 == 0) {\n            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);\n            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);\n            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);\n            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);\n          }\n        }\n      }\n      else {\n        uVar1 = *(undefined4 *)(param_1 + 0x10);\n        uVar8 = dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        FUN_00034d60(uVar8,uVar1);\n      }\n    }\n  }\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "int local_7c;" primitive_type identifier ;) (declaration "int local_78;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x4c8d9;" (assignment_expression "uStack_14 = 0x4c8d9" identifier = number_literal) ;) (if_statement "if ((DAT_001c0a00 == 0) && (*(int *)(param_1 + 0x10) != 0)) {\n    uVar2 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));\n    if ((uVar2 & 1) == 0) {\n      iVar3 = bfd_stat(*(undefined4 *)(param_1 + 0x10),&local_7c);\n      if (iVar3 == 0) {\n        if (((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)) &&\n           (local_24 != 0 || local_20 != 0)) {\n          DAT_001c0a00 = param_1;\n          return;\n        }\n        pcVar5 = *(char **)(DAT_001c0a80 + 8);\n        pcVar4 = strchr(pcVar5,0x2f);\n        if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n          if (iVar3 == 0) {\n            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));\n          }\n          iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)));\n          if (iVar6 == 0) {\n            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);\n            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);\n            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);\n            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);\n          }\n        }\n      }\n      else {\n        uVar1 = *(undefined4 *)(param_1 + 0x10);\n        uVar8 = dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        FUN_00034d60(uVar8,uVar1);\n      }\n    }\n  }" if (parenthesized_expression "((DAT_001c0a00 == 0) && (*(int *)(param_1 + 0x10) != 0))" ( (binary_expression "(DAT_001c0a00 == 0) && (*(int *)(param_1 + 0x10) != 0)" (parenthesized_expression "(DAT_001c0a00 == 0)" ( (binary_expression "DAT_001c0a00 == 0" identifier == number_literal) )) && (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    uVar2 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));\n    if ((uVar2 & 1) == 0) {\n      iVar3 = bfd_stat(*(undefined4 *)(param_1 + 0x10),&local_7c);\n      if (iVar3 == 0) {\n        if (((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)) &&\n           (local_24 != 0 || local_20 != 0)) {\n          DAT_001c0a00 = param_1;\n          return;\n        }\n        pcVar5 = *(char **)(DAT_001c0a80 + 8);\n        pcVar4 = strchr(pcVar5,0x2f);\n        if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n          if (iVar3 == 0) {\n            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));\n          }\n          iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)));\n          if (iVar6 == 0) {\n            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);\n            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);\n            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);\n            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);\n          }\n        }\n      }\n      else {\n        uVar1 = *(undefined4 *)(param_1 + 0x10);\n        uVar8 = dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        FUN_00034d60(uVar8,uVar1);\n      }\n    }\n  }" { (expression_statement "uVar2 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));" (assignment_expression "uVar2 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10))" identifier = (call_expression "bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10))" identifier (argument_list "(*(int *)(param_1 + 0x10))" ( (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) )))) )))) ;) (if_statement "if ((uVar2 & 1) == 0) {\n      iVar3 = bfd_stat(*(undefined4 *)(param_1 + 0x10),&local_7c);\n      if (iVar3 == 0) {\n        if (((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)) &&\n           (local_24 != 0 || local_20 != 0)) {\n          DAT_001c0a00 = param_1;\n          return;\n        }\n        pcVar5 = *(char **)(DAT_001c0a80 + 8);\n        pcVar4 = strchr(pcVar5,0x2f);\n        if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n          if (iVar3 == 0) {\n            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));\n          }\n          iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)));\n          if (iVar6 == 0) {\n            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);\n            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);\n            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);\n            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);\n          }\n        }\n      }\n      else {\n        uVar1 = *(undefined4 *)(param_1 + 0x10);\n        uVar8 = dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        FUN_00034d60(uVar8,uVar1);\n      }\n    }" if (parenthesized_expression "((uVar2 & 1) == 0)" ( (binary_expression "(uVar2 & 1) == 0" (parenthesized_expression "(uVar2 & 1)" ( (binary_expression "uVar2 & 1" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      iVar3 = bfd_stat(*(undefined4 *)(param_1 + 0x10),&local_7c);\n      if (iVar3 == 0) {\n        if (((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)) &&\n           (local_24 != 0 || local_20 != 0)) {\n          DAT_001c0a00 = param_1;\n          return;\n        }\n        pcVar5 = *(char **)(DAT_001c0a80 + 8);\n        pcVar4 = strchr(pcVar5,0x2f);\n        if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n          if (iVar3 == 0) {\n            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));\n          }\n          iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)));\n          if (iVar6 == 0) {\n            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);\n            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);\n            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);\n            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);\n          }\n        }\n      }\n      else {\n        uVar1 = *(undefined4 *)(param_1 + 0x10);\n        uVar8 = dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        FUN_00034d60(uVar8,uVar1);\n      }\n    }" { (expression_statement "iVar3 = bfd_stat(*(undefined4 *)(param_1 + 0x10),&local_7c);" (assignment_expression "iVar3 = bfd_stat(*(undefined4 *)(param_1 + 0x10),&local_7c)" identifier = (call_expression "bfd_stat(*(undefined4 *)(param_1 + 0x10),&local_7c)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x10),&local_7c)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , (pointer_expression "&local_7c" & identifier) )))) ;) (if_statement "if (iVar3 == 0) {\n        if (((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)) &&\n           (local_24 != 0 || local_20 != 0)) {\n          DAT_001c0a00 = param_1;\n          return;\n        }\n        pcVar5 = *(char **)(DAT_001c0a80 + 8);\n        pcVar4 = strchr(pcVar5,0x2f);\n        if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n          if (iVar3 == 0) {\n            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));\n          }\n          iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)));\n          if (iVar6 == 0) {\n            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);\n            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);\n            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);\n            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);\n          }\n        }\n      }\n      else {\n        uVar1 = *(undefined4 *)(param_1 + 0x10);\n        uVar8 = dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        FUN_00034d60(uVar8,uVar1);\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        if (((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)) &&\n           (local_24 != 0 || local_20 != 0)) {\n          DAT_001c0a00 = param_1;\n          return;\n        }\n        pcVar5 = *(char **)(DAT_001c0a80 + 8);\n        pcVar4 = strchr(pcVar5,0x2f);\n        if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n          if (iVar3 == 0) {\n            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));\n          }\n          iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)));\n          if (iVar6 == 0) {\n            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);\n            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);\n            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);\n            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);\n          }\n        }\n      }" { (if_statement "if (((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)) &&\n           (local_24 != 0 || local_20 != 0)) {\n          DAT_001c0a00 = param_1;\n          return;\n        }" if (parenthesized_expression "(((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)) &&\n           (local_24 != 0 || local_20 != 0))" ( (binary_expression "((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)) &&\n           (local_24 != 0 || local_20 != 0)" (parenthesized_expression "((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20))" ( (binary_expression "(local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)" (parenthesized_expression "(local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20)" ( (binary_expression "local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20" (binary_expression "local_78 == DAT_001c0a24" identifier == identifier) && (binary_expression "local_7c == DAT_001c0a20" identifier == identifier)) )) && (parenthesized_expression "(DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)" ( (binary_expression "DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20" (binary_expression "DAT_001c0a78 == local_24" identifier == identifier) && (binary_expression "DAT_001c0a7c == local_20" identifier == identifier)) ))) )) && (parenthesized_expression "(local_24 != 0 || local_20 != 0)" ( (binary_expression "local_24 != 0 || local_20 != 0" (binary_expression "local_24 != 0" identifier != number_literal) || (binary_expression "local_20 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n          DAT_001c0a00 = param_1;\n          return;\n        }" { (expression_statement "DAT_001c0a00 = param_1;" (assignment_expression "DAT_001c0a00 = param_1" identifier = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "pcVar5 = *(char **)(DAT_001c0a80 + 8);" (assignment_expression "pcVar5 = *(char **)(DAT_001c0a80 + 8)" identifier = (pointer_expression "*(char **)(DAT_001c0a80 + 8)" * (cast_expression "(char **)(DAT_001c0a80 + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_001c0a80 + 8)" ( (binary_expression "DAT_001c0a80 + 8" identifier + number_literal) ))))) ;) (expression_statement "pcVar4 = strchr(pcVar5,0x2f);" (assignment_expression "pcVar4 = strchr(pcVar5,0x2f)" identifier = (call_expression "strchr(pcVar5,0x2f)" identifier (argument_list "(pcVar5,0x2f)" ( identifier , number_literal )))) ;) (if_statement "if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n          if (iVar3 == 0) {\n            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));\n          }\n          iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)));\n          if (iVar6 == 0) {\n            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);\n            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);\n            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);\n            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);\n          }\n        }" if (parenthesized_expression "((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0))" ( (binary_expression "(pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)" (parenthesized_expression "(pcVar4 == (char *)0x0)" ( (binary_expression "pcVar4 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)" ( (comma_expression "pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0" (assignment_expression "pcVar5 = strstr(pcVar5,".so.")" identifier = (call_expression "strstr(pcVar5,".so.")" identifier (argument_list "(pcVar5,".so.")" ( identifier , (string_literal "".so."" " string_content ") )))) , (binary_expression "pcVar5 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n          iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n          if (iVar3 == 0) {\n            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));\n          }\n          iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)));\n          if (iVar6 == 0) {\n            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);\n            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);\n            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);\n            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);\n          }\n        }" { (expression_statement "iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));" (assignment_expression "iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10))" identifier = (call_expression "bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x10))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar3 == 0) {\n            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));\n          }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));\n          }" { (expression_statement "iVar3 = lbasename(*(undefined4 *)(param_1 + 8));" (assignment_expression "iVar3 = lbasename(*(undefined4 *)(param_1 + 8))" identifier = (call_expression "lbasename(*(undefined4 *)(param_1 + 8))" identifier (argument_list "(*(undefined4 *)(param_1 + 8))" ( (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) )))) )))) ;) })) (expression_statement "iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)));" (assignment_expression "iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)))" identifier = (call_expression "filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)))" identifier (argument_list "(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)))" ( identifier , (pointer_expression "*(int *)(DAT_001c0a80 + 8)" * (cast_expression "(int *)(DAT_001c0a80 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c0a80 + 8)" ( (binary_expression "DAT_001c0a80 + 8" identifier + number_literal) )))) , (binary_expression "pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8))" identifier + (parenthesized_expression "(4 - *(int *)(DAT_001c0a80 + 8))" ( (binary_expression "4 - *(int *)(DAT_001c0a80 + 8)" number_literal - (pointer_expression "*(int *)(DAT_001c0a80 + 8)" * (cast_expression "(int *)(DAT_001c0a80 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c0a80 + 8)" ( (binary_expression "DAT_001c0a80 + 8" identifier + number_literal) ))))) ))) )))) ;) (if_statement "if (iVar6 == 0) {\n            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);\n            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);\n            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);\n            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);\n          }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);\n            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);\n            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);\n            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);\n          }" { (expression_statement "uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);" (assignment_expression "uVar1 = *(undefined4 *)(DAT_001c0a80 + 4)" identifier = (pointer_expression "*(undefined4 *)(DAT_001c0a80 + 4)" * (cast_expression "(undefined4 *)(DAT_001c0a80 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c0a80 + 4)" ( (binary_expression "DAT_001c0a80 + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);" (assignment_expression "uVar8 = *(undefined4 *)(DAT_001c0a80 + 8)" identifier = (pointer_expression "*(undefined4 *)(DAT_001c0a80 + 8)" * (cast_expression "(undefined4 *)(DAT_001c0a80 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c0a80 + 8)" ( (binary_expression "DAT_001c0a80 + 8" identifier + number_literal) ))))) ;) (expression_statement "uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);" (assignment_expression "uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5)" identifier = (call_expression "dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5)" identifier (argument_list "(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5)" ( number_literal , (string_literal ""%P: warning: %s, needed by %pB, may conflict with %s\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00034d60(uVar7,uVar8,uVar1,iVar3);" (call_expression "FUN_00034d60(uVar7,uVar8,uVar1,iVar3)" identifier (argument_list "(uVar7,uVar8,uVar1,iVar3)" ( identifier , identifier , identifier , identifier ))) ;) })) })) }) (else_clause "else {\n        uVar1 = *(undefined4 *)(param_1 + 0x10);\n        uVar8 = dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        FUN_00034d60(uVar8,uVar1);\n      }" else (compound_statement "{\n        uVar1 = *(undefined4 *)(param_1 + 0x10);\n        uVar8 = dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        FUN_00034d60(uVar8,uVar1);\n      }" { (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x10);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 0x10)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "uVar8 = dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);" (assignment_expression "uVar8 = dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5)" identifier = (call_expression "dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5)" identifier (argument_list "(0,"%P: %pB: bfd_stat failed: %E\n",5)" ( number_literal , (string_literal ""%P: %pB: bfd_stat failed: %E\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00034d60(uVar8,uVar1);" (call_expression "FUN_00034d60(uVar8,uVar1)" identifier (argument_list "(uVar8,uVar1)" ( identifier , identifier ))) ;) }))) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (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) )))) )))) ;) (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) )))) , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT == IDENT) && (binary_expression IDENT == IDENT)) )) && (parenthesized_expression ( (binary_expression (binary_expression IDENT == IDENT) && (binary_expression IDENT == IDENT)) ))) )) && (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) || (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (return_statement return ;) })) (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 = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") )))) , (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == 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) )))) )))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (binary_expression IDENT + (parenthesized_expression ( (binary_expression 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 *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) })) })) }) (else_clause else (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 = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) }))) })) })) (return_statement return ;) })))
(function_definition "void FUN_0004c8d0(int param_1)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  int iVar3;\n  char *pcVar4;\n  char *pcVar5;\n  int iVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  int local_7c;\n  int local_78;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4c8d9;\n  if ((DAT_001c0a00 == 0) && (*(int *)(param_1 + 0x10) != 0)) {\n    uVar2 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));\n    if ((uVar2 & 1) == 0) {\n      iVar3 = bfd_stat(*(undefined4 *)(param_1 + 0x10),&local_7c);\n      if (iVar3 == 0) {\n        if (((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)) &&\n           (local_24 != 0 || local_20 != 0)) {\n          DAT_001c0a00 = param_1;\n          return;\n        }\n        pcVar5 = *(char **)(DAT_001c0a80 + 8);\n        pcVar4 = strchr(pcVar5,0x2f);\n        if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n          if (iVar3 == 0) {\n            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));\n          }\n          iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)));\n          if (iVar6 == 0) {\n            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);\n            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);\n            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);\n            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);\n          }\n        }\n      }\n      else {\n        uVar1 = *(undefined4 *)(param_1 + 0x10);\n        uVar8 = dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        FUN_00034d60(uVar8,uVar1);\n      }\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0004c8d0(int param_1)" (identifier "FUN_0004c8d0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  uint uVar2;\n  int iVar3;\n  char *pcVar4;\n  char *pcVar5;\n  int iVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  int local_7c;\n  int local_78;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4c8d9;\n  if ((DAT_001c0a00 == 0) && (*(int *)(param_1 + 0x10) != 0)) {\n    uVar2 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));\n    if ((uVar2 & 1) == 0) {\n      iVar3 = bfd_stat(*(undefined4 *)(param_1 + 0x10),&local_7c);\n      if (iVar3 == 0) {\n        if (((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)) &&\n           (local_24 != 0 || local_20 != 0)) {\n          DAT_001c0a00 = param_1;\n          return;\n        }\n        pcVar5 = *(char **)(DAT_001c0a80 + 8);\n        pcVar4 = strchr(pcVar5,0x2f);\n        if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n          if (iVar3 == 0) {\n            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));\n          }\n          iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)));\n          if (iVar6 == 0) {\n            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);\n            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);\n            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);\n            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);\n          }\n        }\n      }\n      else {\n        uVar1 = *(undefined4 *)(param_1 + 0x10);\n        uVar8 = dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        FUN_00034d60(uVar8,uVar1);\n      }\n    }\n  }\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "undefined4 uVar8;" (type_identifier "undefined4") (identifier "uVar8") (; ";")) (declaration "int local_7c;" (primitive_type "int") (identifier "local_7c") (; ";")) (declaration "int local_78;" (primitive_type "int") (identifier "local_78") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x4c8d9;" (assignment_expression "uStack_14 = 0x4c8d9" (identifier "uStack_14") (= "=") (number_literal "0x4c8d9")) (; ";")) (if_statement "if ((DAT_001c0a00 == 0) && (*(int *)(param_1 + 0x10) != 0)) {\n    uVar2 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));\n    if ((uVar2 & 1) == 0) {\n      iVar3 = bfd_stat(*(undefined4 *)(param_1 + 0x10),&local_7c);\n      if (iVar3 == 0) {\n        if (((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)) &&\n           (local_24 != 0 || local_20 != 0)) {\n          DAT_001c0a00 = param_1;\n          return;\n        }\n        pcVar5 = *(char **)(DAT_001c0a80 + 8);\n        pcVar4 = strchr(pcVar5,0x2f);\n        if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n          if (iVar3 == 0) {\n            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));\n          }\n          iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)));\n          if (iVar6 == 0) {\n            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);\n            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);\n            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);\n            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);\n          }\n        }\n      }\n      else {\n        uVar1 = *(undefined4 *)(param_1 + 0x10);\n        uVar8 = dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        FUN_00034d60(uVar8,uVar1);\n      }\n    }\n  }" (if "if") (parenthesized_expression "((DAT_001c0a00 == 0) && (*(int *)(param_1 + 0x10) != 0))" (( "(") (binary_expression "(DAT_001c0a00 == 0) && (*(int *)(param_1 + 0x10) != 0)" (parenthesized_expression "(DAT_001c0a00 == 0)" (( "(") (binary_expression "DAT_001c0a00 == 0" (identifier "DAT_001c0a00") (== "==") (number_literal "0")) () ")")) (&& "&&") (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    uVar2 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));\n    if ((uVar2 & 1) == 0) {\n      iVar3 = bfd_stat(*(undefined4 *)(param_1 + 0x10),&local_7c);\n      if (iVar3 == 0) {\n        if (((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)) &&\n           (local_24 != 0 || local_20 != 0)) {\n          DAT_001c0a00 = param_1;\n          return;\n        }\n        pcVar5 = *(char **)(DAT_001c0a80 + 8);\n        pcVar4 = strchr(pcVar5,0x2f);\n        if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n          if (iVar3 == 0) {\n            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));\n          }\n          iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)));\n          if (iVar6 == 0) {\n            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);\n            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);\n            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);\n            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);\n          }\n        }\n      }\n      else {\n        uVar1 = *(undefined4 *)(param_1 + 0x10);\n        uVar8 = dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        FUN_00034d60(uVar8,uVar1);\n      }\n    }\n  }" ({ "{") (expression_statement "uVar2 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));" (assignment_expression "uVar2 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10))" (identifier "uVar2") (= "=") (call_expression "bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10))" (identifier "bfd_elf_get_dyn_lib_class") (argument_list "(*(int *)(param_1 + 0x10))" (( "(") (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")) () ")")))) () ")")))) (; ";")) (if_statement "if ((uVar2 & 1) == 0) {\n      iVar3 = bfd_stat(*(undefined4 *)(param_1 + 0x10),&local_7c);\n      if (iVar3 == 0) {\n        if (((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)) &&\n           (local_24 != 0 || local_20 != 0)) {\n          DAT_001c0a00 = param_1;\n          return;\n        }\n        pcVar5 = *(char **)(DAT_001c0a80 + 8);\n        pcVar4 = strchr(pcVar5,0x2f);\n        if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n          if (iVar3 == 0) {\n            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));\n          }\n          iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)));\n          if (iVar6 == 0) {\n            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);\n            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);\n            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);\n            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);\n          }\n        }\n      }\n      else {\n        uVar1 = *(undefined4 *)(param_1 + 0x10);\n        uVar8 = dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        FUN_00034d60(uVar8,uVar1);\n      }\n    }" (if "if") (parenthesized_expression "((uVar2 & 1) == 0)" (( "(") (binary_expression "(uVar2 & 1) == 0" (parenthesized_expression "(uVar2 & 1)" (( "(") (binary_expression "uVar2 & 1" (identifier "uVar2") (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar3 = bfd_stat(*(undefined4 *)(param_1 + 0x10),&local_7c);\n      if (iVar3 == 0) {\n        if (((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)) &&\n           (local_24 != 0 || local_20 != 0)) {\n          DAT_001c0a00 = param_1;\n          return;\n        }\n        pcVar5 = *(char **)(DAT_001c0a80 + 8);\n        pcVar4 = strchr(pcVar5,0x2f);\n        if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n          if (iVar3 == 0) {\n            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));\n          }\n          iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)));\n          if (iVar6 == 0) {\n            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);\n            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);\n            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);\n            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);\n          }\n        }\n      }\n      else {\n        uVar1 = *(undefined4 *)(param_1 + 0x10);\n        uVar8 = dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        FUN_00034d60(uVar8,uVar1);\n      }\n    }" ({ "{") (expression_statement "iVar3 = bfd_stat(*(undefined4 *)(param_1 + 0x10),&local_7c);" (assignment_expression "iVar3 = bfd_stat(*(undefined4 *)(param_1 + 0x10),&local_7c)" (identifier "iVar3") (= "=") (call_expression "bfd_stat(*(undefined4 *)(param_1 + 0x10),&local_7c)" (identifier "bfd_stat") (argument_list "(*(undefined4 *)(param_1 + 0x10),&local_7c)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (pointer_expression "&local_7c" (& "&") (identifier "local_7c")) () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n        if (((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)) &&\n           (local_24 != 0 || local_20 != 0)) {\n          DAT_001c0a00 = param_1;\n          return;\n        }\n        pcVar5 = *(char **)(DAT_001c0a80 + 8);\n        pcVar4 = strchr(pcVar5,0x2f);\n        if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n          if (iVar3 == 0) {\n            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));\n          }\n          iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)));\n          if (iVar6 == 0) {\n            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);\n            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);\n            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);\n            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);\n          }\n        }\n      }\n      else {\n        uVar1 = *(undefined4 *)(param_1 + 0x10);\n        uVar8 = dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        FUN_00034d60(uVar8,uVar1);\n      }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        if (((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)) &&\n           (local_24 != 0 || local_20 != 0)) {\n          DAT_001c0a00 = param_1;\n          return;\n        }\n        pcVar5 = *(char **)(DAT_001c0a80 + 8);\n        pcVar4 = strchr(pcVar5,0x2f);\n        if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n          if (iVar3 == 0) {\n            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));\n          }\n          iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)));\n          if (iVar6 == 0) {\n            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);\n            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);\n            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);\n            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);\n          }\n        }\n      }" ({ "{") (if_statement "if (((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)) &&\n           (local_24 != 0 || local_20 != 0)) {\n          DAT_001c0a00 = param_1;\n          return;\n        }" (if "if") (parenthesized_expression "(((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)) &&\n           (local_24 != 0 || local_20 != 0))" (( "(") (binary_expression "((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)) &&\n           (local_24 != 0 || local_20 != 0)" (parenthesized_expression "((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20))" (( "(") (binary_expression "(local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&\n            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)" (parenthesized_expression "(local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20)" (( "(") (binary_expression "local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20" (binary_expression "local_78 == DAT_001c0a24" (identifier "local_78") (== "==") (identifier "DAT_001c0a24")) (&& "&&") (binary_expression "local_7c == DAT_001c0a20" (identifier "local_7c") (== "==") (identifier "DAT_001c0a20"))) () ")")) (&& "&&") (parenthesized_expression "(DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)" (( "(") (binary_expression "DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20" (binary_expression "DAT_001c0a78 == local_24" (identifier "DAT_001c0a78") (== "==") (identifier "local_24")) (&& "&&") (binary_expression "DAT_001c0a7c == local_20" (identifier "DAT_001c0a7c") (== "==") (identifier "local_20"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(local_24 != 0 || local_20 != 0)" (( "(") (binary_expression "local_24 != 0 || local_20 != 0" (binary_expression "local_24 != 0" (identifier "local_24") (!= "!=") (number_literal "0")) (|| "||") (binary_expression "local_20 != 0" (identifier "local_20") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n          DAT_001c0a00 = param_1;\n          return;\n        }" ({ "{") (expression_statement "DAT_001c0a00 = param_1;" (assignment_expression "DAT_001c0a00 = param_1" (identifier "DAT_001c0a00") (= "=") (identifier "param_1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "pcVar5 = *(char **)(DAT_001c0a80 + 8);" (assignment_expression "pcVar5 = *(char **)(DAT_001c0a80 + 8)" (identifier "pcVar5") (= "=") (pointer_expression "*(char **)(DAT_001c0a80 + 8)" (* "*") (cast_expression "(char **)(DAT_001c0a80 + 8)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(DAT_001c0a80 + 8)" (( "(") (binary_expression "DAT_001c0a80 + 8" (identifier "DAT_001c0a80") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "pcVar4 = strchr(pcVar5,0x2f);" (assignment_expression "pcVar4 = strchr(pcVar5,0x2f)" (identifier "pcVar4") (= "=") (call_expression "strchr(pcVar5,0x2f)" (identifier "strchr") (argument_list "(pcVar5,0x2f)" (( "(") (identifier "pcVar5") (, ",") (number_literal "0x2f") () ")")))) (; ";")) (if_statement "if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {\n          iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n          if (iVar3 == 0) {\n            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));\n          }\n          iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)));\n          if (iVar6 == 0) {\n            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);\n            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);\n            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);\n            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);\n          }\n        }" (if "if") (parenthesized_expression "((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0))" (( "(") (binary_expression "(pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)" (parenthesized_expression "(pcVar4 == (char *)0x0)" (( "(") (binary_expression "pcVar4 == (char *)0x0" (identifier "pcVar4") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)" (( "(") (comma_expression "pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0" (assignment_expression "pcVar5 = strstr(pcVar5,".so.")" (identifier "pcVar5") (= "=") (call_expression "strstr(pcVar5,".so.")" (identifier "strstr") (argument_list "(pcVar5,".so.")" (( "(") (identifier "pcVar5") (, ",") (string_literal "".so."" (" """) (string_content ".so.") (" """)) () ")")))) (, ",") (binary_expression "pcVar5 != (char *)0x0" (identifier "pcVar5") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n          iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n          if (iVar3 == 0) {\n            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));\n          }\n          iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)));\n          if (iVar6 == 0) {\n            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);\n            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);\n            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);\n            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);\n          }\n        }" ({ "{") (expression_statement "iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));" (assignment_expression "iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10))" (identifier "iVar3") (= "=") (call_expression "bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10))" (identifier "bfd_elf_get_dt_soname") (argument_list "(*(undefined4 *)(param_1 + 0x10))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));\n          }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));\n          }" ({ "{") (expression_statement "iVar3 = lbasename(*(undefined4 *)(param_1 + 8));" (assignment_expression "iVar3 = lbasename(*(undefined4 *)(param_1 + 8))" (identifier "iVar3") (= "=") (call_expression "lbasename(*(undefined4 *)(param_1 + 8))" (identifier "lbasename") (argument_list "(*(undefined4 *)(param_1 + 8))" (( "(") (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")) () ")")))) () ")")))) (; ";")) (} "}"))) (expression_statement "iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)));" (assignment_expression "iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)))" (identifier "iVar6") (= "=") (call_expression "filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)))" (identifier "filename_ncmp") (argument_list "(iVar3,*(int *)(DAT_001c0a80 + 8),\n                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)))" (( "(") (identifier "iVar3") (, ",") (pointer_expression "*(int *)(DAT_001c0a80 + 8)" (* "*") (cast_expression "(int *)(DAT_001c0a80 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_001c0a80 + 8)" (( "(") (binary_expression "DAT_001c0a80 + 8" (identifier "DAT_001c0a80") (+ "+") (number_literal "8")) () ")")))) (, ",") (binary_expression "pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8))" (identifier "pcVar5") (+ "+") (parenthesized_expression "(4 - *(int *)(DAT_001c0a80 + 8))" (( "(") (binary_expression "4 - *(int *)(DAT_001c0a80 + 8)" (number_literal "4") (- "-") (pointer_expression "*(int *)(DAT_001c0a80 + 8)" (* "*") (cast_expression "(int *)(DAT_001c0a80 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_001c0a80 + 8)" (( "(") (binary_expression "DAT_001c0a80 + 8" (identifier "DAT_001c0a80") (+ "+") (number_literal "8")) () ")"))))) () ")"))) () ")")))) (; ";")) (if_statement "if (iVar6 == 0) {\n            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);\n            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);\n            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);\n            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);\n          }" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);\n            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);\n            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);\n            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);\n          }" ({ "{") (expression_statement "uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);" (assignment_expression "uVar1 = *(undefined4 *)(DAT_001c0a80 + 4)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)(DAT_001c0a80 + 4)" (* "*") (cast_expression "(undefined4 *)(DAT_001c0a80 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_001c0a80 + 4)" (( "(") (binary_expression "DAT_001c0a80 + 4" (identifier "DAT_001c0a80") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);" (assignment_expression "uVar8 = *(undefined4 *)(DAT_001c0a80 + 8)" (identifier "uVar8") (= "=") (pointer_expression "*(undefined4 *)(DAT_001c0a80 + 8)" (* "*") (cast_expression "(undefined4 *)(DAT_001c0a80 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_001c0a80 + 8)" (( "(") (binary_expression "DAT_001c0a80 + 8" (identifier "DAT_001c0a80") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);" (assignment_expression "uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5)" (identifier "uVar7") (= "=") (call_expression "dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5)" (identifier "dcgettext") (argument_list "(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""%P: warning: %s, needed by %pB, may conflict with %s\n"" (" """) (string_content "%P: warning: %s, needed by %pB, may conflict with %s") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00034d60(uVar7,uVar8,uVar1,iVar3);" (call_expression "FUN_00034d60(uVar7,uVar8,uVar1,iVar3)" (identifier "FUN_00034d60") (argument_list "(uVar7,uVar8,uVar1,iVar3)" (( "(") (identifier "uVar7") (, ",") (identifier "uVar8") (, ",") (identifier "uVar1") (, ",") (identifier "iVar3") () ")"))) (; ";")) (} "}"))) (} "}"))) (} "}")) (else_clause "else {\n        uVar1 = *(undefined4 *)(param_1 + 0x10);\n        uVar8 = dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        FUN_00034d60(uVar8,uVar1);\n      }" (else "else") (compound_statement "{\n        uVar1 = *(undefined4 *)(param_1 + 0x10);\n        uVar8 = dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);\n        FUN_00034d60(uVar8,uVar1);\n      }" ({ "{") (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x10);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 0x10)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "uVar8 = dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);" (assignment_expression "uVar8 = dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5)" (identifier "uVar8") (= "=") (call_expression "dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5)" (identifier "dcgettext") (argument_list "(0,"%P: %pB: bfd_stat failed: %E\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""%P: %pB: bfd_stat failed: %E\n"" (" """) (string_content "%P: %pB: bfd_stat failed: %E") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00034d60(uVar8,uVar1);" (call_expression "FUN_00034d60(uVar8,uVar1)" (identifier "FUN_00034d60") (argument_list "(uVar8,uVar1)" (( "(") (identifier "uVar8") (, ",") (identifier "uVar1") () ")"))) (; ";")) (} "}")))) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *s)

{
  type_2 *pbVar1;
  type_3 var_3;
  int var_5;
  char *var_7;
  char *var_9;
  int var_13;
  type_4 st;
  
  if ((var_1 == (type_1 *)0x0) && (s->the_bfd != (type_2 *)0x0)) {
    var_3 = var_2(s->the_bfd);
    if ((var_3 & 1) == 0) {
      var_5 = var_4(s->the_bfd,&st);
      if (var_5 == 0) {
        if (((st.st_dev._4_4_ == global_stat.st_dev._4_4_ &&
              (int)st.st_dev == (int)global_stat.st_dev) &&
            ((int)global_stat.st_ino == (int)st.st_ino &&
             global_stat.st_ino._4_4_ == st.st_ino._4_4_)) &&
           ((int)st.st_ino != 0 || st.st_ino._4_4_ != 0)) {
          var_1 = s;
          return;
        }
        var_9 = global_needed->name;
        var_7 = var_6(var_9,0x2f);
        if ((var_7 == (char *)0x0) && (var_9 = var_8(var_9,".so."), var_9 != (char *)0x0)) {
          var_5 = var_10(s->the_bfd);
          if (var_5 == 0) {
            var_5 = var_11(s->filename);
          }
          var_13 = var_12(var_5,global_needed->name,var_9 + (4 - (int)global_needed->name));
          if (var_13 == 0) {
            pbVar1 = global_needed->by;
            var_9 = global_needed->name;
            var_7 = (char *)var_14(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5)
            ;
            var_15(var_7,var_9,pbVar1,var_5);
          }
        }
      }
      else {
        pbVar1 = s->the_bfd;
        var_9 = (char *)var_14(0,"%P: %pB: bfd_stat failed: %E\n",5);
        var_15(var_9,pbVar1);
      }
    }
  }
  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: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (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 (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (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))))) (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (identifier)))) right: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (identifier)))))) right: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (return_statement))) (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: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content))))) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) 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))))))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (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))))) (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (number_literal) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content) (escape_sequence)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier))))))))) alternative: (else_clause (compound_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))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content) (escape_sequence)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))))))))) (return_statement))))

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

void MASKED(int param_1)

{
  undefined4 uVar1;
  uint uVar2;
  int iVar3;
  char *pcVar4;
  char *pcVar5;
  int iVar6;
  undefined4 uVar7;
  undefined4 uVar8;
  int local_7c;
  int local_78;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x4c8d9;
  if ((DAT_001c0a00 == 0) && (*(int *)(param_1 + 0x10) != 0)) {
    uVar2 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));
    if ((uVar2 & 1) == 0) {
      iVar3 = bfd_stat(*(undefined4 *)(param_1 + 0x10),&local_7c);
      if (iVar3 == 0) {
        if (((local_78 == DAT_001c0a24 && local_7c == DAT_001c0a20) &&
            (DAT_001c0a78 == local_24 && DAT_001c0a7c == local_20)) &&
           (local_24 != 0 || local_20 != 0)) {
          DAT_001c0a00 = param_1;
          return;
        }
        pcVar5 = *(char **)(DAT_001c0a80 + 8);
        pcVar4 = strchr(pcVar5,0x2f);
        if ((pcVar4 == (char *)0x0) && (pcVar5 = strstr(pcVar5,".so."), pcVar5 != (char *)0x0)) {
          iVar3 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));
          if (iVar3 == 0) {
            iVar3 = lbasename(*(undefined4 *)(param_1 + 8));
          }
          iVar6 = filename_ncmp(iVar3,*(int *)(DAT_001c0a80 + 8),
                                pcVar5 + (4 - *(int *)(DAT_001c0a80 + 8)));
          if (iVar6 == 0) {
            uVar1 = *(undefined4 *)(DAT_001c0a80 + 4);
            uVar8 = *(undefined4 *)(DAT_001c0a80 + 8);
            uVar7 = dcgettext(0,"%P: warning: %s, needed by %pB, may conflict with %s\n",5);
            FUN_00034d60(uVar7,uVar8,uVar1,iVar3);
          }
        }
      }
      else {
        uVar1 = *(undefined4 *)(param_1 + 0x10);
        uVar8 = dcgettext(0,"%P: %pB: bfd_stat failed: %E\n",5);
        FUN_00034d60(uVar8,uVar1);
      }
    }
  }
  return;
}

