
void gldelf_x86_64_check_needed(lang_input_statement_type *s)

{
  int iVar1;
  ulong uVar2;
  char *pcVar3;
  long lVar4;
  
  if ((global_found != (lang_input_statement_type *)0x0) &&
     (uVar2 = bfd_elf_get_dyn_lib_class(global_found->the_bfd), (uVar2 & 1) == 0)) {
    return;
  }
  pcVar3 = s->filename;
  if ((pcVar3 != (char *)0x0) && (s->the_bfd != (bfd *)0x0)) {
    if (global_found != (lang_input_statement_type *)0x0) {
      uVar2 = bfd_elf_get_dyn_lib_class();
      if ((uVar2 & 1) != 0) {
        return;
      }
      pcVar3 = s->filename;
    }
    iVar1 = filename_cmp(pcVar3,global_needed->name);
    if (iVar1 == 0) {
      global_found = s;
      return;
    }
    if ((((undefined1  [16])((undefined1  [16])s->flags & (undefined1  [16])0x4) !=
          (undefined1  [16])0x0) && (pcVar3 = strrchr(s->filename,0x2f), pcVar3 != (char *)0x0)) &&
       (iVar1 = filename_cmp(pcVar3 + 1,global_needed->name), iVar1 == 0)) {
      global_found = s;
      return;
    }
    lVar4 = bfd_elf_get_dt_soname(s->the_bfd);
    if ((lVar4 != 0) && (iVar1 = filename_cmp(lVar4,global_needed->name), iVar1 == 0)) {
      global_found = s;
      return;
    }
  }
  return;
}



void FUN_00133be0(long param_1)

{
  int iVar1;
  ulong uVar2;
  char *pcVar3;
  long lVar4;
  
  if ((DAT_002b5218 != 0) &&
     (uVar2 = bfd_elf_get_dyn_lib_class(*(undefined8 *)(DAT_002b5218 + 0x20)), (uVar2 & 1) == 0)) {
    return;
  }
  lVar4 = *(long *)(param_1 + 0x10);
  if ((lVar4 != 0) && (*(long *)(param_1 + 0x20) != 0)) {
    if (DAT_002b5218 != 0) {
      uVar2 = bfd_elf_get_dyn_lib_class();
      if ((uVar2 & 1) != 0) {
        return;
      }
      lVar4 = *(long *)(param_1 + 0x10);
    }
    iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10));
    if (iVar1 == 0) {
      DAT_002b5218 = param_1;
      return;
    }
    if ((((*(byte *)(param_1 + 0x48) & 4) != 0) &&
        (pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f), pcVar3 != (char *)0x0)) &&
       (iVar1 = filename_cmp(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)) {
      DAT_002b5218 = param_1;
      return;
    }
    lVar4 = bfd_elf_get_dt_soname(*(undefined8 *)(param_1 + 0x20));
    if ((lVar4 != 0) &&
       (iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)) {
      DAT_002b5218 = param_1;
      return;
    }
  }
  return;
}


MOV RAX,qword ptr [0x002b5218]
PUSH RBX
MOV RBX,RDI
TEST RAX,RAX
JZ 0x00133c01
MOV RDI,qword ptr [RAX + 0x20]
CALL 0x0010d3f0
TEST AL,0x1
JZ 0x00133c9f
MOV RAX,qword ptr [RBX + 0x10]
TEST RAX,RAX
JZ 0x00133c9f
MOV RDI,qword ptr [RBX + 0x20]
TEST RDI,RDI
JZ 0x00133c9f
CMP qword ptr [0x002b5218],0x0
JZ 0x00133c32
CALL 0x0010d3f0
TEST AL,0x1
JNZ 0x00133c9f
MOV RAX,qword ptr [RBX + 0x10]
MOV RDX,qword ptr [0x002b52b0]
MOV RDI,RAX
MOV RSI,qword ptr [RDX + 0x10]
CALL 0x0010d260
TEST EAX,EAX
JZ 0x00133ca8
TEST byte ptr [RBX + 0x48],0x4
JZ 0x00133c7a
MOV RDI,qword ptr [RBX + 0x10]
MOV ESI,0x2f
CALL 0x0010d410
TEST RAX,RAX
JZ 0x00133c7a
MOV RDX,qword ptr [0x002b52b0]
LEA RDI,[RAX + 0x1]
MOV RSI,qword ptr [RDX + 0x10]
CALL 0x0010d260
TEST EAX,EAX
JZ 0x00133ca8
MOV RDI,qword ptr [RBX + 0x20]
CALL 0x0010d3d0
TEST RAX,RAX
JZ 0x00133c9f
MOV RDX,qword ptr [0x002b52b0]
MOV RDI,RAX
MOV RSI,qword ptr [RDX + 0x10]
CALL 0x0010d260
TEST EAX,EAX
JZ 0x00133ca8
POP RBX
RET
MOV qword ptr [0x002b5218],RBX
POP RBX
RET
(translation_unit "void FUN_00133be0(long param_1)\n\n{\n  int iVar1;\n  ulong uVar2;\n  char *pcVar3;\n  long lVar4;\n  \n  if ((DAT_002b5218 != 0) &&\n     (uVar2 = bfd_elf_get_dyn_lib_class(*(undefined8 *)(DAT_002b5218 + 0x20)), (uVar2 & 1) == 0)) {\n    return;\n  }\n  lVar4 = *(long *)(param_1 + 0x10);\n  if ((lVar4 != 0) && (*(long *)(param_1 + 0x20) != 0)) {\n    if (DAT_002b5218 != 0) {\n      uVar2 = bfd_elf_get_dyn_lib_class();\n      if ((uVar2 & 1) != 0) {\n        return;\n      }\n      lVar4 = *(long *)(param_1 + 0x10);\n    }\n    iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10));\n    if (iVar1 == 0) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n    if ((((*(byte *)(param_1 + 0x48) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar1 = filename_cmp(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n    lVar4 = bfd_elf_get_dt_soname(*(undefined8 *)(param_1 + 0x20));\n    if ((lVar4 != 0) &&\n       (iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_00133be0(long param_1)\n\n{\n  int iVar1;\n  ulong uVar2;\n  char *pcVar3;\n  long lVar4;\n  \n  if ((DAT_002b5218 != 0) &&\n     (uVar2 = bfd_elf_get_dyn_lib_class(*(undefined8 *)(DAT_002b5218 + 0x20)), (uVar2 & 1) == 0)) {\n    return;\n  }\n  lVar4 = *(long *)(param_1 + 0x10);\n  if ((lVar4 != 0) && (*(long *)(param_1 + 0x20) != 0)) {\n    if (DAT_002b5218 != 0) {\n      uVar2 = bfd_elf_get_dyn_lib_class();\n      if ((uVar2 & 1) != 0) {\n        return;\n      }\n      lVar4 = *(long *)(param_1 + 0x10);\n    }\n    iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10));\n    if (iVar1 == 0) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n    if ((((*(byte *)(param_1 + 0x48) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar1 = filename_cmp(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n    lVar4 = bfd_elf_get_dt_soname(*(undefined8 *)(param_1 + 0x20));\n    if ((lVar4 != 0) &&\n       (iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00133be0(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  int iVar1;\n  ulong uVar2;\n  char *pcVar3;\n  long lVar4;\n  \n  if ((DAT_002b5218 != 0) &&\n     (uVar2 = bfd_elf_get_dyn_lib_class(*(undefined8 *)(DAT_002b5218 + 0x20)), (uVar2 & 1) == 0)) {\n    return;\n  }\n  lVar4 = *(long *)(param_1 + 0x10);\n  if ((lVar4 != 0) && (*(long *)(param_1 + 0x20) != 0)) {\n    if (DAT_002b5218 != 0) {\n      uVar2 = bfd_elf_get_dyn_lib_class();\n      if ((uVar2 & 1) != 0) {\n        return;\n      }\n      lVar4 = *(long *)(param_1 + 0x10);\n    }\n    iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10));\n    if (iVar1 == 0) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n    if ((((*(byte *)(param_1 + 0x48) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar1 = filename_cmp(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n    lVar4 = bfd_elf_get_dt_soname(*(undefined8 *)(param_1 + 0x20));\n    if ((lVar4 != 0) &&\n       (iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (if_statement "if ((DAT_002b5218 != 0) &&\n     (uVar2 = bfd_elf_get_dyn_lib_class(*(undefined8 *)(DAT_002b5218 + 0x20)), (uVar2 & 1) == 0)) {\n    return;\n  }" if (parenthesized_expression "((DAT_002b5218 != 0) &&\n     (uVar2 = bfd_elf_get_dyn_lib_class(*(undefined8 *)(DAT_002b5218 + 0x20)), (uVar2 & 1) == 0))" ( (binary_expression "(DAT_002b5218 != 0) &&\n     (uVar2 = bfd_elf_get_dyn_lib_class(*(undefined8 *)(DAT_002b5218 + 0x20)), (uVar2 & 1) == 0)" (parenthesized_expression "(DAT_002b5218 != 0)" ( (binary_expression "DAT_002b5218 != 0" identifier != number_literal) )) && (parenthesized_expression "(uVar2 = bfd_elf_get_dyn_lib_class(*(undefined8 *)(DAT_002b5218 + 0x20)), (uVar2 & 1) == 0)" ( (comma_expression "uVar2 = bfd_elf_get_dyn_lib_class(*(undefined8 *)(DAT_002b5218 + 0x20)), (uVar2 & 1) == 0" (assignment_expression "uVar2 = bfd_elf_get_dyn_lib_class(*(undefined8 *)(DAT_002b5218 + 0x20))" identifier = (call_expression "bfd_elf_get_dyn_lib_class(*(undefined8 *)(DAT_002b5218 + 0x20))" identifier (argument_list "(*(undefined8 *)(DAT_002b5218 + 0x20))" ( (pointer_expression "*(undefined8 *)(DAT_002b5218 + 0x20)" * (cast_expression "(undefined8 *)(DAT_002b5218 + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_002b5218 + 0x20)" ( (binary_expression "DAT_002b5218 + 0x20" identifier + number_literal) )))) )))) , (binary_expression "(uVar2 & 1) == 0" (parenthesized_expression "(uVar2 & 1)" ( (binary_expression "uVar2 & 1" identifier & number_literal) )) == number_literal)) ))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "lVar4 = *(long *)(param_1 + 0x10);" (assignment_expression "lVar4 = *(long *)(param_1 + 0x10)" identifier = (pointer_expression "*(long *)(param_1 + 0x10)" * (cast_expression "(long *)(param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (if_statement "if ((lVar4 != 0) && (*(long *)(param_1 + 0x20) != 0)) {\n    if (DAT_002b5218 != 0) {\n      uVar2 = bfd_elf_get_dyn_lib_class();\n      if ((uVar2 & 1) != 0) {\n        return;\n      }\n      lVar4 = *(long *)(param_1 + 0x10);\n    }\n    iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10));\n    if (iVar1 == 0) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n    if ((((*(byte *)(param_1 + 0x48) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar1 = filename_cmp(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n    lVar4 = bfd_elf_get_dt_soname(*(undefined8 *)(param_1 + 0x20));\n    if ((lVar4 != 0) &&\n       (iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n  }" if (parenthesized_expression "((lVar4 != 0) && (*(long *)(param_1 + 0x20) != 0))" ( (binary_expression "(lVar4 != 0) && (*(long *)(param_1 + 0x20) != 0)" (parenthesized_expression "(lVar4 != 0)" ( (binary_expression "lVar4 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(long *)(param_1 + 0x20) != 0)" ( (binary_expression "*(long *)(param_1 + 0x20) != 0" (pointer_expression "*(long *)(param_1 + 0x20)" * (cast_expression "(long *)(param_1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    if (DAT_002b5218 != 0) {\n      uVar2 = bfd_elf_get_dyn_lib_class();\n      if ((uVar2 & 1) != 0) {\n        return;\n      }\n      lVar4 = *(long *)(param_1 + 0x10);\n    }\n    iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10));\n    if (iVar1 == 0) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n    if ((((*(byte *)(param_1 + 0x48) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar1 = filename_cmp(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n    lVar4 = bfd_elf_get_dt_soname(*(undefined8 *)(param_1 + 0x20));\n    if ((lVar4 != 0) &&\n       (iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n  }" { (if_statement "if (DAT_002b5218 != 0) {\n      uVar2 = bfd_elf_get_dyn_lib_class();\n      if ((uVar2 & 1) != 0) {\n        return;\n      }\n      lVar4 = *(long *)(param_1 + 0x10);\n    }" if (parenthesized_expression "(DAT_002b5218 != 0)" ( (binary_expression "DAT_002b5218 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar2 = bfd_elf_get_dyn_lib_class();\n      if ((uVar2 & 1) != 0) {\n        return;\n      }\n      lVar4 = *(long *)(param_1 + 0x10);\n    }" { (expression_statement "uVar2 = bfd_elf_get_dyn_lib_class();" (assignment_expression "uVar2 = bfd_elf_get_dyn_lib_class()" identifier = (call_expression "bfd_elf_get_dyn_lib_class()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((uVar2 & 1) != 0) {\n        return;\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        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "lVar4 = *(long *)(param_1 + 0x10);" (assignment_expression "lVar4 = *(long *)(param_1 + 0x10)" identifier = (pointer_expression "*(long *)(param_1 + 0x10)" * (cast_expression "(long *)(param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) })) (expression_statement "iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10));" (assignment_expression "iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10))" identifier = (call_expression "filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10))" identifier (argument_list "(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10))" ( identifier , (pointer_expression "*(undefined8 *)(DAT_002b52b0 + 0x10)" * (cast_expression "(undefined8 *)(DAT_002b52b0 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_002b52b0 + 0x10)" ( (binary_expression "DAT_002b52b0 + 0x10" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar1 == 0) {\n      DAT_002b5218 = param_1;\n      return;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      DAT_002b5218 = param_1;\n      return;\n    }" { (expression_statement "DAT_002b5218 = param_1;" (assignment_expression "DAT_002b5218 = param_1" identifier = identifier) ;) (return_statement "return;" return ;) })) (if_statement "if ((((*(byte *)(param_1 + 0x48) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar1 = filename_cmp(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)) {\n      DAT_002b5218 = param_1;\n      return;\n    }" if (parenthesized_expression "((((*(byte *)(param_1 + 0x48) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar1 = filename_cmp(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0))" ( (binary_expression "(((*(byte *)(param_1 + 0x48) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar1 = filename_cmp(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)" (parenthesized_expression "(((*(byte *)(param_1 + 0x48) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f), pcVar3 != (char *)0x0))" ( (binary_expression "((*(byte *)(param_1 + 0x48) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f), pcVar3 != (char *)0x0)" (parenthesized_expression "((*(byte *)(param_1 + 0x48) & 4) != 0)" ( (binary_expression "(*(byte *)(param_1 + 0x48) & 4) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0x48) & 4)" ( (binary_expression "*(byte *)(param_1 + 0x48) & 4" (pointer_expression "*(byte *)(param_1 + 0x48)" * (cast_expression "(byte *)(param_1 + 0x48)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) & number_literal) )) != number_literal) )) && (parenthesized_expression "(pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f), pcVar3 != (char *)0x0)" ( (comma_expression "pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f), pcVar3 != (char *)0x0" (assignment_expression "pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f)" identifier = (call_expression "strrchr(*(char **)(param_1 + 0x10),0x2f)" identifier (argument_list "(*(char **)(param_1 + 0x10),0x2f)" ( (pointer_expression "*(char **)(param_1 + 0x10)" * (cast_expression "(char **)(param_1 + 0x10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , number_literal )))) , (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) && (parenthesized_expression "(iVar1 = filename_cmp(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)" ( (comma_expression "iVar1 = filename_cmp(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0" (assignment_expression "iVar1 = filename_cmp(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10))" identifier = (call_expression "filename_cmp(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10))" identifier (argument_list "(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10))" ( (binary_expression "pcVar3 + 1" identifier + number_literal) , (pointer_expression "*(undefined8 *)(DAT_002b52b0 + 0x10)" * (cast_expression "(undefined8 *)(DAT_002b52b0 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_002b52b0 + 0x10)" ( (binary_expression "DAT_002b52b0 + 0x10" identifier + number_literal) )))) )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      DAT_002b5218 = param_1;\n      return;\n    }" { (expression_statement "DAT_002b5218 = param_1;" (assignment_expression "DAT_002b5218 = param_1" identifier = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "lVar4 = bfd_elf_get_dt_soname(*(undefined8 *)(param_1 + 0x20));" (assignment_expression "lVar4 = bfd_elf_get_dt_soname(*(undefined8 *)(param_1 + 0x20))" identifier = (call_expression "bfd_elf_get_dt_soname(*(undefined8 *)(param_1 + 0x20))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x20))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x20)" * (cast_expression "(undefined8 *)(param_1 + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) )))) ;) (if_statement "if ((lVar4 != 0) &&\n       (iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)) {\n      DAT_002b5218 = param_1;\n      return;\n    }" if (parenthesized_expression "((lVar4 != 0) &&\n       (iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0))" ( (binary_expression "(lVar4 != 0) &&\n       (iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)" (parenthesized_expression "(lVar4 != 0)" ( (binary_expression "lVar4 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)" ( (comma_expression "iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0" (assignment_expression "iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10))" identifier = (call_expression "filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10))" identifier (argument_list "(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10))" ( identifier , (pointer_expression "*(undefined8 *)(DAT_002b52b0 + 0x10)" * (cast_expression "(undefined8 *)(DAT_002b52b0 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_002b52b0 + 0x10)" ( (binary_expression "DAT_002b52b0 + 0x10" identifier + number_literal) )))) )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      DAT_002b5218 = param_1;\n      return;\n    }" { (expression_statement "DAT_002b5218 = param_1;" (assignment_expression "DAT_002b5218 = param_1" identifier = identifier) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void gldelf_x86_64_check_needed(lang_input_statement_type *s)\n\n{\n  int iVar1;\n  ulong uVar2;\n  char *pcVar3;\n  long lVar4;\n  \n  if ((global_found != (lang_input_statement_type *)0x0) &&\n     (uVar2 = bfd_elf_get_dyn_lib_class(global_found->the_bfd), (uVar2 & 1) == 0)) {\n    return;\n  }\n  pcVar3 = s->filename;\n  if ((pcVar3 != (char *)0x0) && (s->the_bfd != (bfd *)0x0)) {\n    if (global_found != (lang_input_statement_type *)0x0) {\n      uVar2 = bfd_elf_get_dyn_lib_class();\n      if ((uVar2 & 1) != 0) {\n        return;\n      }\n      pcVar3 = s->filename;\n    }\n    iVar1 = filename_cmp(pcVar3,global_needed->name);\n    if (iVar1 == 0) {\n      global_found = s;\n      return;\n    }\n    if ((((undefined1  [16])((undefined1  [16])s->flags & (undefined1  [16])0x4) !=\n          (undefined1  [16])0x0) && (pcVar3 = strrchr(s->filename,0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar1 = filename_cmp(pcVar3 + 1,global_needed->name), iVar1 == 0)) {\n      global_found = s;\n      return;\n    }\n    lVar4 = bfd_elf_get_dt_soname(s->the_bfd);\n    if ((lVar4 != 0) && (iVar1 = filename_cmp(lVar4,global_needed->name), iVar1 == 0)) {\n      global_found = s;\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void gldelf_x86_64_check_needed(lang_input_statement_type *s)\n\n{\n  int iVar1;\n  ulong uVar2;\n  char *pcVar3;\n  long lVar4;\n  \n  if ((global_found != (lang_input_statement_type *)0x0) &&\n     (uVar2 = bfd_elf_get_dyn_lib_class(global_found->the_bfd), (uVar2 & 1) == 0)) {\n    return;\n  }\n  pcVar3 = s->filename;\n  if ((pcVar3 != (char *)0x0) && (s->the_bfd != (bfd *)0x0)) {\n    if (global_found != (lang_input_statement_type *)0x0) {\n      uVar2 = bfd_elf_get_dyn_lib_class();\n      if ((uVar2 & 1) != 0) {\n        return;\n      }\n      pcVar3 = s->filename;\n    }\n    iVar1 = filename_cmp(pcVar3,global_needed->name);\n    if (iVar1 == 0) {\n      global_found = s;\n      return;\n    }\n    if ((((undefined1  [16])((undefined1  [16])s->flags & (undefined1  [16])0x4) !=\n          (undefined1  [16])0x0) && (pcVar3 = strrchr(s->filename,0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar1 = filename_cmp(pcVar3 + 1,global_needed->name), iVar1 == 0)) {\n      global_found = s;\n      return;\n    }\n    lVar4 = bfd_elf_get_dt_soname(s->the_bfd);\n    if ((lVar4 != 0) && (iVar1 = filename_cmp(lVar4,global_needed->name), iVar1 == 0)) {\n      global_found = s;\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "gldelf_x86_64_check_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  int iVar1;\n  ulong uVar2;\n  char *pcVar3;\n  long lVar4;\n  \n  if ((global_found != (lang_input_statement_type *)0x0) &&\n     (uVar2 = bfd_elf_get_dyn_lib_class(global_found->the_bfd), (uVar2 & 1) == 0)) {\n    return;\n  }\n  pcVar3 = s->filename;\n  if ((pcVar3 != (char *)0x0) && (s->the_bfd != (bfd *)0x0)) {\n    if (global_found != (lang_input_statement_type *)0x0) {\n      uVar2 = bfd_elf_get_dyn_lib_class();\n      if ((uVar2 & 1) != 0) {\n        return;\n      }\n      pcVar3 = s->filename;\n    }\n    iVar1 = filename_cmp(pcVar3,global_needed->name);\n    if (iVar1 == 0) {\n      global_found = s;\n      return;\n    }\n    if ((((undefined1  [16])((undefined1  [16])s->flags & (undefined1  [16])0x4) !=\n          (undefined1  [16])0x0) && (pcVar3 = strrchr(s->filename,0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar1 = filename_cmp(pcVar3 + 1,global_needed->name), iVar1 == 0)) {\n      global_found = s;\n      return;\n    }\n    lVar4 = bfd_elf_get_dt_soname(s->the_bfd);\n    if ((lVar4 != 0) && (iVar1 = filename_cmp(lVar4,global_needed->name), iVar1 == 0)) {\n      global_found = s;\n      return;\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (if_statement "if ((global_found != (lang_input_statement_type *)0x0) &&\n     (uVar2 = bfd_elf_get_dyn_lib_class(global_found->the_bfd), (uVar2 & 1) == 0)) {\n    return;\n  }" if (parenthesized_expression "((global_found != (lang_input_statement_type *)0x0) &&\n     (uVar2 = bfd_elf_get_dyn_lib_class(global_found->the_bfd), (uVar2 & 1) == 0))" ( (binary_expression "(global_found != (lang_input_statement_type *)0x0) &&\n     (uVar2 = bfd_elf_get_dyn_lib_class(global_found->the_bfd), (uVar2 & 1) == 0)" (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 "(uVar2 = bfd_elf_get_dyn_lib_class(global_found->the_bfd), (uVar2 & 1) == 0)" ( (comma_expression "uVar2 = bfd_elf_get_dyn_lib_class(global_found->the_bfd), (uVar2 & 1) == 0" (assignment_expression "uVar2 = bfd_elf_get_dyn_lib_class(global_found->the_bfd)" identifier = (call_expression "bfd_elf_get_dyn_lib_class(global_found->the_bfd)" identifier (argument_list "(global_found->the_bfd)" ( (field_expression "global_found->the_bfd" identifier -> field_identifier) )))) , (binary_expression "(uVar2 & 1) == 0" (parenthesized_expression "(uVar2 & 1)" ( (binary_expression "uVar2 & 1" identifier & number_literal) )) == number_literal)) ))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "pcVar3 = s->filename;" (assignment_expression "pcVar3 = s->filename" identifier = (field_expression "s->filename" identifier -> field_identifier)) ;) (if_statement "if ((pcVar3 != (char *)0x0) && (s->the_bfd != (bfd *)0x0)) {\n    if (global_found != (lang_input_statement_type *)0x0) {\n      uVar2 = bfd_elf_get_dyn_lib_class();\n      if ((uVar2 & 1) != 0) {\n        return;\n      }\n      pcVar3 = s->filename;\n    }\n    iVar1 = filename_cmp(pcVar3,global_needed->name);\n    if (iVar1 == 0) {\n      global_found = s;\n      return;\n    }\n    if ((((undefined1  [16])((undefined1  [16])s->flags & (undefined1  [16])0x4) !=\n          (undefined1  [16])0x0) && (pcVar3 = strrchr(s->filename,0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar1 = filename_cmp(pcVar3 + 1,global_needed->name), iVar1 == 0)) {\n      global_found = s;\n      return;\n    }\n    lVar4 = bfd_elf_get_dt_soname(s->the_bfd);\n    if ((lVar4 != 0) && (iVar1 = filename_cmp(lVar4,global_needed->name), iVar1 == 0)) {\n      global_found = s;\n      return;\n    }\n  }" if (parenthesized_expression "((pcVar3 != (char *)0x0) && (s->the_bfd != (bfd *)0x0))" ( (binary_expression "(pcVar3 != (char *)0x0) && (s->the_bfd != (bfd *)0x0)" (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (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    if (global_found != (lang_input_statement_type *)0x0) {\n      uVar2 = bfd_elf_get_dyn_lib_class();\n      if ((uVar2 & 1) != 0) {\n        return;\n      }\n      pcVar3 = s->filename;\n    }\n    iVar1 = filename_cmp(pcVar3,global_needed->name);\n    if (iVar1 == 0) {\n      global_found = s;\n      return;\n    }\n    if ((((undefined1  [16])((undefined1  [16])s->flags & (undefined1  [16])0x4) !=\n          (undefined1  [16])0x0) && (pcVar3 = strrchr(s->filename,0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar1 = filename_cmp(pcVar3 + 1,global_needed->name), iVar1 == 0)) {\n      global_found = s;\n      return;\n    }\n    lVar4 = bfd_elf_get_dt_soname(s->the_bfd);\n    if ((lVar4 != 0) && (iVar1 = filename_cmp(lVar4,global_needed->name), iVar1 == 0)) {\n      global_found = s;\n      return;\n    }\n  }" { (if_statement "if (global_found != (lang_input_statement_type *)0x0) {\n      uVar2 = bfd_elf_get_dyn_lib_class();\n      if ((uVar2 & 1) != 0) {\n        return;\n      }\n      pcVar3 = s->filename;\n    }" if (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)) )) (compound_statement "{\n      uVar2 = bfd_elf_get_dyn_lib_class();\n      if ((uVar2 & 1) != 0) {\n        return;\n      }\n      pcVar3 = s->filename;\n    }" { (expression_statement "uVar2 = bfd_elf_get_dyn_lib_class();" (assignment_expression "uVar2 = bfd_elf_get_dyn_lib_class()" identifier = (call_expression "bfd_elf_get_dyn_lib_class()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((uVar2 & 1) != 0) {\n        return;\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        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "pcVar3 = s->filename;" (assignment_expression "pcVar3 = s->filename" identifier = (field_expression "s->filename" identifier -> field_identifier)) ;) })) (expression_statement "iVar1 = filename_cmp(pcVar3,global_needed->name);" (assignment_expression "iVar1 = filename_cmp(pcVar3,global_needed->name)" identifier = (call_expression "filename_cmp(pcVar3,global_needed->name)" identifier (argument_list "(pcVar3,global_needed->name)" ( identifier , (field_expression "global_needed->name" identifier -> field_identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n      global_found = s;\n      return;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" 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 ;) })) (if_statement "if ((((undefined1  [16])((undefined1  [16])s->flags & (undefined1  [16])0x4) !=\n          (undefined1  [16])0x0) && (pcVar3 = strrchr(s->filename,0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar1 = filename_cmp(pcVar3 + 1,global_needed->name), iVar1 == 0)) {\n      global_found = s;\n      return;\n    }" if (parenthesized_expression "((((undefined1  [16])((undefined1  [16])s->flags & (undefined1  [16])0x4) !=\n          (undefined1  [16])0x0) && (pcVar3 = strrchr(s->filename,0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar1 = filename_cmp(pcVar3 + 1,global_needed->name), iVar1 == 0))" ( (binary_expression "(((undefined1  [16])((undefined1  [16])s->flags & (undefined1  [16])0x4) !=\n          (undefined1  [16])0x0) && (pcVar3 = strrchr(s->filename,0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar1 = filename_cmp(pcVar3 + 1,global_needed->name), iVar1 == 0)" (parenthesized_expression "(((undefined1  [16])((undefined1  [16])s->flags & (undefined1  [16])0x4) !=\n          (undefined1  [16])0x0) && (pcVar3 = strrchr(s->filename,0x2f), pcVar3 != (char *)0x0))" ( (binary_expression "((undefined1  [16])((undefined1  [16])s->flags & (undefined1  [16])0x4) !=\n          (undefined1  [16])0x0) && (pcVar3 = strrchr(s->filename,0x2f), pcVar3 != (char *)0x0)" (parenthesized_expression "((undefined1  [16])((undefined1  [16])s->flags & (undefined1  [16])0x4) !=\n          (undefined1  [16])0x0)" ( (binary_expression "(undefined1  [16])((undefined1  [16])s->flags & (undefined1  [16])0x4) !=\n          (undefined1  [16])0x0" (call_expression "(undefined1  [16])((undefined1  [16])s->flags & (undefined1  [16])0x4)" (parenthesized_expression "(undefined1  [16])" ( (subscript_expression "undefined1  [16]" identifier [ number_literal ]) )) (argument_list "((undefined1  [16])s->flags & (undefined1  [16])0x4)" ( (binary_expression "(undefined1  [16])s->flags & (undefined1  [16])0x4" (cast_expression "(undefined1  [16])s->flags" ( (type_descriptor "undefined1  [16]" type_identifier (abstract_array_declarator "[16]" [ number_literal ])) ) (field_expression "s->flags" identifier -> field_identifier)) & (cast_expression "(undefined1  [16])0x4" ( (type_descriptor "undefined1  [16]" type_identifier (abstract_array_declarator "[16]" [ number_literal ])) ) number_literal)) ))) != (cast_expression "(undefined1  [16])0x0" ( (type_descriptor "undefined1  [16]" type_identifier (abstract_array_declarator "[16]" [ number_literal ])) ) number_literal)) )) && (parenthesized_expression "(pcVar3 = strrchr(s->filename,0x2f), pcVar3 != (char *)0x0)" ( (comma_expression "pcVar3 = strrchr(s->filename,0x2f), pcVar3 != (char *)0x0" (assignment_expression "pcVar3 = strrchr(s->filename,0x2f)" identifier = (call_expression "strrchr(s->filename,0x2f)" identifier (argument_list "(s->filename,0x2f)" ( (field_expression "s->filename" identifier -> field_identifier) , number_literal )))) , (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) && (parenthesized_expression "(iVar1 = filename_cmp(pcVar3 + 1,global_needed->name), iVar1 == 0)" ( (comma_expression "iVar1 = filename_cmp(pcVar3 + 1,global_needed->name), iVar1 == 0" (assignment_expression "iVar1 = filename_cmp(pcVar3 + 1,global_needed->name)" identifier = (call_expression "filename_cmp(pcVar3 + 1,global_needed->name)" identifier (argument_list "(pcVar3 + 1,global_needed->name)" ( (binary_expression "pcVar3 + 1" identifier + number_literal) , (field_expression "global_needed->name" identifier -> field_identifier) )))) , (binary_expression "iVar1 == 0" 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 "lVar4 = bfd_elf_get_dt_soname(s->the_bfd);" (assignment_expression "lVar4 = 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 ((lVar4 != 0) && (iVar1 = filename_cmp(lVar4,global_needed->name), iVar1 == 0)) {\n      global_found = s;\n      return;\n    }" if (parenthesized_expression "((lVar4 != 0) && (iVar1 = filename_cmp(lVar4,global_needed->name), iVar1 == 0))" ( (binary_expression "(lVar4 != 0) && (iVar1 = filename_cmp(lVar4,global_needed->name), iVar1 == 0)" (parenthesized_expression "(lVar4 != 0)" ( (binary_expression "lVar4 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 = filename_cmp(lVar4,global_needed->name), iVar1 == 0)" ( (comma_expression "iVar1 = filename_cmp(lVar4,global_needed->name), iVar1 == 0" (assignment_expression "iVar1 = filename_cmp(lVar4,global_needed->name)" identifier = (call_expression "filename_cmp(lVar4,global_needed->name)" identifier (argument_list "(lVar4,global_needed->name)" ( identifier , (field_expression "global_needed->name" identifier -> field_identifier) )))) , (binary_expression "iVar1 == 0" 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 ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00133be0(long param_1)\n\n{\n  int iVar1;\n  ulong uVar2;\n  char *pcVar3;\n  long lVar4;\n  \n  if ((DAT_002b5218 != 0) &&\n     (uVar2 = bfd_elf_get_dyn_lib_class(*(undefined8 *)(DAT_002b5218 + 0x20)), (uVar2 & 1) == 0)) {\n    return;\n  }\n  lVar4 = *(long *)(param_1 + 0x10);\n  if ((lVar4 != 0) && (*(long *)(param_1 + 0x20) != 0)) {\n    if (DAT_002b5218 != 0) {\n      uVar2 = bfd_elf_get_dyn_lib_class();\n      if ((uVar2 & 1) != 0) {\n        return;\n      }\n      lVar4 = *(long *)(param_1 + 0x10);\n    }\n    iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10));\n    if (iVar1 == 0) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n    if ((((*(byte *)(param_1 + 0x48) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar1 = filename_cmp(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n    lVar4 = bfd_elf_get_dt_soname(*(undefined8 *)(param_1 + 0x20));\n    if ((lVar4 != 0) &&\n       (iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_00133be0(long param_1)\n\n{\n  int iVar1;\n  ulong uVar2;\n  char *pcVar3;\n  long lVar4;\n  \n  if ((DAT_002b5218 != 0) &&\n     (uVar2 = bfd_elf_get_dyn_lib_class(*(undefined8 *)(DAT_002b5218 + 0x20)), (uVar2 & 1) == 0)) {\n    return;\n  }\n  lVar4 = *(long *)(param_1 + 0x10);\n  if ((lVar4 != 0) && (*(long *)(param_1 + 0x20) != 0)) {\n    if (DAT_002b5218 != 0) {\n      uVar2 = bfd_elf_get_dyn_lib_class();\n      if ((uVar2 & 1) != 0) {\n        return;\n      }\n      lVar4 = *(long *)(param_1 + 0x10);\n    }\n    iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10));\n    if (iVar1 == 0) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n    if ((((*(byte *)(param_1 + 0x48) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar1 = filename_cmp(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n    lVar4 = bfd_elf_get_dt_soname(*(undefined8 *)(param_1 + 0x20));\n    if ((lVar4 != 0) &&\n       (iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00133be0(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  int iVar1;\n  ulong uVar2;\n  char *pcVar3;\n  long lVar4;\n  \n  if ((DAT_002b5218 != 0) &&\n     (uVar2 = bfd_elf_get_dyn_lib_class(*(undefined8 *)(DAT_002b5218 + 0x20)), (uVar2 & 1) == 0)) {\n    return;\n  }\n  lVar4 = *(long *)(param_1 + 0x10);\n  if ((lVar4 != 0) && (*(long *)(param_1 + 0x20) != 0)) {\n    if (DAT_002b5218 != 0) {\n      uVar2 = bfd_elf_get_dyn_lib_class();\n      if ((uVar2 & 1) != 0) {\n        return;\n      }\n      lVar4 = *(long *)(param_1 + 0x10);\n    }\n    iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10));\n    if (iVar1 == 0) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n    if ((((*(byte *)(param_1 + 0x48) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar1 = filename_cmp(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n    lVar4 = bfd_elf_get_dt_soname(*(undefined8 *)(param_1 + 0x20));\n    if ((lVar4 != 0) &&\n       (iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (if_statement "if ((DAT_002b5218 != 0) &&\n     (uVar2 = bfd_elf_get_dyn_lib_class(*(undefined8 *)(DAT_002b5218 + 0x20)), (uVar2 & 1) == 0)) {\n    return;\n  }" if (parenthesized_expression "((DAT_002b5218 != 0) &&\n     (uVar2 = bfd_elf_get_dyn_lib_class(*(undefined8 *)(DAT_002b5218 + 0x20)), (uVar2 & 1) == 0))" ( (binary_expression "(DAT_002b5218 != 0) &&\n     (uVar2 = bfd_elf_get_dyn_lib_class(*(undefined8 *)(DAT_002b5218 + 0x20)), (uVar2 & 1) == 0)" (parenthesized_expression "(DAT_002b5218 != 0)" ( (binary_expression "DAT_002b5218 != 0" identifier != number_literal) )) && (parenthesized_expression "(uVar2 = bfd_elf_get_dyn_lib_class(*(undefined8 *)(DAT_002b5218 + 0x20)), (uVar2 & 1) == 0)" ( (comma_expression "uVar2 = bfd_elf_get_dyn_lib_class(*(undefined8 *)(DAT_002b5218 + 0x20)), (uVar2 & 1) == 0" (assignment_expression "uVar2 = bfd_elf_get_dyn_lib_class(*(undefined8 *)(DAT_002b5218 + 0x20))" identifier = (call_expression "bfd_elf_get_dyn_lib_class(*(undefined8 *)(DAT_002b5218 + 0x20))" identifier (argument_list "(*(undefined8 *)(DAT_002b5218 + 0x20))" ( (pointer_expression "*(undefined8 *)(DAT_002b5218 + 0x20)" * (cast_expression "(undefined8 *)(DAT_002b5218 + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_002b5218 + 0x20)" ( (binary_expression "DAT_002b5218 + 0x20" identifier + number_literal) )))) )))) , (binary_expression "(uVar2 & 1) == 0" (parenthesized_expression "(uVar2 & 1)" ( (binary_expression "uVar2 & 1" identifier & number_literal) )) == number_literal)) ))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "lVar4 = *(long *)(param_1 + 0x10);" (assignment_expression "lVar4 = *(long *)(param_1 + 0x10)" identifier = (pointer_expression "*(long *)(param_1 + 0x10)" * (cast_expression "(long *)(param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (if_statement "if ((lVar4 != 0) && (*(long *)(param_1 + 0x20) != 0)) {\n    if (DAT_002b5218 != 0) {\n      uVar2 = bfd_elf_get_dyn_lib_class();\n      if ((uVar2 & 1) != 0) {\n        return;\n      }\n      lVar4 = *(long *)(param_1 + 0x10);\n    }\n    iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10));\n    if (iVar1 == 0) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n    if ((((*(byte *)(param_1 + 0x48) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar1 = filename_cmp(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n    lVar4 = bfd_elf_get_dt_soname(*(undefined8 *)(param_1 + 0x20));\n    if ((lVar4 != 0) &&\n       (iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n  }" if (parenthesized_expression "((lVar4 != 0) && (*(long *)(param_1 + 0x20) != 0))" ( (binary_expression "(lVar4 != 0) && (*(long *)(param_1 + 0x20) != 0)" (parenthesized_expression "(lVar4 != 0)" ( (binary_expression "lVar4 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(long *)(param_1 + 0x20) != 0)" ( (binary_expression "*(long *)(param_1 + 0x20) != 0" (pointer_expression "*(long *)(param_1 + 0x20)" * (cast_expression "(long *)(param_1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    if (DAT_002b5218 != 0) {\n      uVar2 = bfd_elf_get_dyn_lib_class();\n      if ((uVar2 & 1) != 0) {\n        return;\n      }\n      lVar4 = *(long *)(param_1 + 0x10);\n    }\n    iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10));\n    if (iVar1 == 0) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n    if ((((*(byte *)(param_1 + 0x48) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar1 = filename_cmp(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n    lVar4 = bfd_elf_get_dt_soname(*(undefined8 *)(param_1 + 0x20));\n    if ((lVar4 != 0) &&\n       (iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n  }" { (if_statement "if (DAT_002b5218 != 0) {\n      uVar2 = bfd_elf_get_dyn_lib_class();\n      if ((uVar2 & 1) != 0) {\n        return;\n      }\n      lVar4 = *(long *)(param_1 + 0x10);\n    }" if (parenthesized_expression "(DAT_002b5218 != 0)" ( (binary_expression "DAT_002b5218 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar2 = bfd_elf_get_dyn_lib_class();\n      if ((uVar2 & 1) != 0) {\n        return;\n      }\n      lVar4 = *(long *)(param_1 + 0x10);\n    }" { (expression_statement "uVar2 = bfd_elf_get_dyn_lib_class();" (assignment_expression "uVar2 = bfd_elf_get_dyn_lib_class()" identifier = (call_expression "bfd_elf_get_dyn_lib_class()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((uVar2 & 1) != 0) {\n        return;\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        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "lVar4 = *(long *)(param_1 + 0x10);" (assignment_expression "lVar4 = *(long *)(param_1 + 0x10)" identifier = (pointer_expression "*(long *)(param_1 + 0x10)" * (cast_expression "(long *)(param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) })) (expression_statement "iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10));" (assignment_expression "iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10))" identifier = (call_expression "filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10))" identifier (argument_list "(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10))" ( identifier , (pointer_expression "*(undefined8 *)(DAT_002b52b0 + 0x10)" * (cast_expression "(undefined8 *)(DAT_002b52b0 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_002b52b0 + 0x10)" ( (binary_expression "DAT_002b52b0 + 0x10" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar1 == 0) {\n      DAT_002b5218 = param_1;\n      return;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      DAT_002b5218 = param_1;\n      return;\n    }" { (expression_statement "DAT_002b5218 = param_1;" (assignment_expression "DAT_002b5218 = param_1" identifier = identifier) ;) (return_statement "return;" return ;) })) (if_statement "if ((((*(byte *)(param_1 + 0x48) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar1 = filename_cmp(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)) {\n      DAT_002b5218 = param_1;\n      return;\n    }" if (parenthesized_expression "((((*(byte *)(param_1 + 0x48) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar1 = filename_cmp(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0))" ( (binary_expression "(((*(byte *)(param_1 + 0x48) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar1 = filename_cmp(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)" (parenthesized_expression "(((*(byte *)(param_1 + 0x48) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f), pcVar3 != (char *)0x0))" ( (binary_expression "((*(byte *)(param_1 + 0x48) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f), pcVar3 != (char *)0x0)" (parenthesized_expression "((*(byte *)(param_1 + 0x48) & 4) != 0)" ( (binary_expression "(*(byte *)(param_1 + 0x48) & 4) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0x48) & 4)" ( (binary_expression "*(byte *)(param_1 + 0x48) & 4" (pointer_expression "*(byte *)(param_1 + 0x48)" * (cast_expression "(byte *)(param_1 + 0x48)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) & number_literal) )) != number_literal) )) && (parenthesized_expression "(pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f), pcVar3 != (char *)0x0)" ( (comma_expression "pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f), pcVar3 != (char *)0x0" (assignment_expression "pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f)" identifier = (call_expression "strrchr(*(char **)(param_1 + 0x10),0x2f)" identifier (argument_list "(*(char **)(param_1 + 0x10),0x2f)" ( (pointer_expression "*(char **)(param_1 + 0x10)" * (cast_expression "(char **)(param_1 + 0x10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , number_literal )))) , (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) && (parenthesized_expression "(iVar1 = filename_cmp(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)" ( (comma_expression "iVar1 = filename_cmp(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0" (assignment_expression "iVar1 = filename_cmp(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10))" identifier = (call_expression "filename_cmp(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10))" identifier (argument_list "(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10))" ( (binary_expression "pcVar3 + 1" identifier + number_literal) , (pointer_expression "*(undefined8 *)(DAT_002b52b0 + 0x10)" * (cast_expression "(undefined8 *)(DAT_002b52b0 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_002b52b0 + 0x10)" ( (binary_expression "DAT_002b52b0 + 0x10" identifier + number_literal) )))) )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      DAT_002b5218 = param_1;\n      return;\n    }" { (expression_statement "DAT_002b5218 = param_1;" (assignment_expression "DAT_002b5218 = param_1" identifier = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "lVar4 = bfd_elf_get_dt_soname(*(undefined8 *)(param_1 + 0x20));" (assignment_expression "lVar4 = bfd_elf_get_dt_soname(*(undefined8 *)(param_1 + 0x20))" identifier = (call_expression "bfd_elf_get_dt_soname(*(undefined8 *)(param_1 + 0x20))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x20))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x20)" * (cast_expression "(undefined8 *)(param_1 + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) )))) ;) (if_statement "if ((lVar4 != 0) &&\n       (iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)) {\n      DAT_002b5218 = param_1;\n      return;\n    }" if (parenthesized_expression "((lVar4 != 0) &&\n       (iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0))" ( (binary_expression "(lVar4 != 0) &&\n       (iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)" (parenthesized_expression "(lVar4 != 0)" ( (binary_expression "lVar4 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)" ( (comma_expression "iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0" (assignment_expression "iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10))" identifier = (call_expression "filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10))" identifier (argument_list "(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10))" ( identifier , (pointer_expression "*(undefined8 *)(DAT_002b52b0 + 0x10)" * (cast_expression "(undefined8 *)(DAT_002b52b0 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_002b52b0 + 0x10)" ( (binary_expression "DAT_002b52b0 + 0x10" identifier + number_literal) )))) )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      DAT_002b5218 = param_1;\n      return;\n    }" { (expression_statement "DAT_002b5218 = param_1;" (assignment_expression "DAT_002b5218 = param_1" identifier = identifier) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) , (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT)) ))) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (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) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT )))) , (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_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 = (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) )) && (parenthesized_expression ( (comma_expression (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 == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (return_statement return ;) })) })) (return_statement return ;) })))
(function_definition "void FUN_00133be0(long param_1)\n\n{\n  int iVar1;\n  ulong uVar2;\n  char *pcVar3;\n  long lVar4;\n  \n  if ((DAT_002b5218 != 0) &&\n     (uVar2 = bfd_elf_get_dyn_lib_class(*(undefined8 *)(DAT_002b5218 + 0x20)), (uVar2 & 1) == 0)) {\n    return;\n  }\n  lVar4 = *(long *)(param_1 + 0x10);\n  if ((lVar4 != 0) && (*(long *)(param_1 + 0x20) != 0)) {\n    if (DAT_002b5218 != 0) {\n      uVar2 = bfd_elf_get_dyn_lib_class();\n      if ((uVar2 & 1) != 0) {\n        return;\n      }\n      lVar4 = *(long *)(param_1 + 0x10);\n    }\n    iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10));\n    if (iVar1 == 0) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n    if ((((*(byte *)(param_1 + 0x48) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar1 = filename_cmp(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n    lVar4 = bfd_elf_get_dt_soname(*(undefined8 *)(param_1 + 0x20));\n    if ((lVar4 != 0) &&\n       (iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00133be0(long param_1)" (identifier "FUN_00133be0") (parameter_list "(long param_1)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  ulong uVar2;\n  char *pcVar3;\n  long lVar4;\n  \n  if ((DAT_002b5218 != 0) &&\n     (uVar2 = bfd_elf_get_dyn_lib_class(*(undefined8 *)(DAT_002b5218 + 0x20)), (uVar2 & 1) == 0)) {\n    return;\n  }\n  lVar4 = *(long *)(param_1 + 0x10);\n  if ((lVar4 != 0) && (*(long *)(param_1 + 0x20) != 0)) {\n    if (DAT_002b5218 != 0) {\n      uVar2 = bfd_elf_get_dyn_lib_class();\n      if ((uVar2 & 1) != 0) {\n        return;\n      }\n      lVar4 = *(long *)(param_1 + 0x10);\n    }\n    iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10));\n    if (iVar1 == 0) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n    if ((((*(byte *)(param_1 + 0x48) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar1 = filename_cmp(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n    lVar4 = bfd_elf_get_dt_soname(*(undefined8 *)(param_1 + 0x20));\n    if ((lVar4 != 0) &&\n       (iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "ulong uVar2;" (type_identifier "ulong") (identifier "uVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "long lVar4;" (sized_type_specifier "long" (long "long")) (identifier "lVar4") (; ";")) (if_statement "if ((DAT_002b5218 != 0) &&\n     (uVar2 = bfd_elf_get_dyn_lib_class(*(undefined8 *)(DAT_002b5218 + 0x20)), (uVar2 & 1) == 0)) {\n    return;\n  }" (if "if") (parenthesized_expression "((DAT_002b5218 != 0) &&\n     (uVar2 = bfd_elf_get_dyn_lib_class(*(undefined8 *)(DAT_002b5218 + 0x20)), (uVar2 & 1) == 0))" (( "(") (binary_expression "(DAT_002b5218 != 0) &&\n     (uVar2 = bfd_elf_get_dyn_lib_class(*(undefined8 *)(DAT_002b5218 + 0x20)), (uVar2 & 1) == 0)" (parenthesized_expression "(DAT_002b5218 != 0)" (( "(") (binary_expression "DAT_002b5218 != 0" (identifier "DAT_002b5218") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(uVar2 = bfd_elf_get_dyn_lib_class(*(undefined8 *)(DAT_002b5218 + 0x20)), (uVar2 & 1) == 0)" (( "(") (comma_expression "uVar2 = bfd_elf_get_dyn_lib_class(*(undefined8 *)(DAT_002b5218 + 0x20)), (uVar2 & 1) == 0" (assignment_expression "uVar2 = bfd_elf_get_dyn_lib_class(*(undefined8 *)(DAT_002b5218 + 0x20))" (identifier "uVar2") (= "=") (call_expression "bfd_elf_get_dyn_lib_class(*(undefined8 *)(DAT_002b5218 + 0x20))" (identifier "bfd_elf_get_dyn_lib_class") (argument_list "(*(undefined8 *)(DAT_002b5218 + 0x20))" (( "(") (pointer_expression "*(undefined8 *)(DAT_002b5218 + 0x20)" (* "*") (cast_expression "(undefined8 *)(DAT_002b5218 + 0x20)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_002b5218 + 0x20)" (( "(") (binary_expression "DAT_002b5218 + 0x20" (identifier "DAT_002b5218") (+ "+") (number_literal "0x20")) () ")")))) () ")")))) (, ",") (binary_expression "(uVar2 & 1) == 0" (parenthesized_expression "(uVar2 & 1)" (( "(") (binary_expression "uVar2 & 1" (identifier "uVar2") (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "lVar4 = *(long *)(param_1 + 0x10);" (assignment_expression "lVar4 = *(long *)(param_1 + 0x10)" (identifier "lVar4") (= "=") (pointer_expression "*(long *)(param_1 + 0x10)" (* "*") (cast_expression "(long *)(param_1 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (if_statement "if ((lVar4 != 0) && (*(long *)(param_1 + 0x20) != 0)) {\n    if (DAT_002b5218 != 0) {\n      uVar2 = bfd_elf_get_dyn_lib_class();\n      if ((uVar2 & 1) != 0) {\n        return;\n      }\n      lVar4 = *(long *)(param_1 + 0x10);\n    }\n    iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10));\n    if (iVar1 == 0) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n    if ((((*(byte *)(param_1 + 0x48) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar1 = filename_cmp(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n    lVar4 = bfd_elf_get_dt_soname(*(undefined8 *)(param_1 + 0x20));\n    if ((lVar4 != 0) &&\n       (iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n  }" (if "if") (parenthesized_expression "((lVar4 != 0) && (*(long *)(param_1 + 0x20) != 0))" (( "(") (binary_expression "(lVar4 != 0) && (*(long *)(param_1 + 0x20) != 0)" (parenthesized_expression "(lVar4 != 0)" (( "(") (binary_expression "lVar4 != 0" (identifier "lVar4") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(long *)(param_1 + 0x20) != 0)" (( "(") (binary_expression "*(long *)(param_1 + 0x20) != 0" (pointer_expression "*(long *)(param_1 + 0x20)" (* "*") (cast_expression "(long *)(param_1 + 0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    if (DAT_002b5218 != 0) {\n      uVar2 = bfd_elf_get_dyn_lib_class();\n      if ((uVar2 & 1) != 0) {\n        return;\n      }\n      lVar4 = *(long *)(param_1 + 0x10);\n    }\n    iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10));\n    if (iVar1 == 0) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n    if ((((*(byte *)(param_1 + 0x48) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar1 = filename_cmp(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n    lVar4 = bfd_elf_get_dt_soname(*(undefined8 *)(param_1 + 0x20));\n    if ((lVar4 != 0) &&\n       (iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)) {\n      DAT_002b5218 = param_1;\n      return;\n    }\n  }" ({ "{") (if_statement "if (DAT_002b5218 != 0) {\n      uVar2 = bfd_elf_get_dyn_lib_class();\n      if ((uVar2 & 1) != 0) {\n        return;\n      }\n      lVar4 = *(long *)(param_1 + 0x10);\n    }" (if "if") (parenthesized_expression "(DAT_002b5218 != 0)" (( "(") (binary_expression "DAT_002b5218 != 0" (identifier "DAT_002b5218") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar2 = bfd_elf_get_dyn_lib_class();\n      if ((uVar2 & 1) != 0) {\n        return;\n      }\n      lVar4 = *(long *)(param_1 + 0x10);\n    }" ({ "{") (expression_statement "uVar2 = bfd_elf_get_dyn_lib_class();" (assignment_expression "uVar2 = bfd_elf_get_dyn_lib_class()" (identifier "uVar2") (= "=") (call_expression "bfd_elf_get_dyn_lib_class()" (identifier "bfd_elf_get_dyn_lib_class") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((uVar2 & 1) != 0) {\n        return;\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        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "lVar4 = *(long *)(param_1 + 0x10);" (assignment_expression "lVar4 = *(long *)(param_1 + 0x10)" (identifier "lVar4") (= "=") (pointer_expression "*(long *)(param_1 + 0x10)" (* "*") (cast_expression "(long *)(param_1 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (} "}"))) (expression_statement "iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10));" (assignment_expression "iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10))" (identifier "iVar1") (= "=") (call_expression "filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10))" (identifier "filename_cmp") (argument_list "(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10))" (( "(") (identifier "lVar4") (, ",") (pointer_expression "*(undefined8 *)(DAT_002b52b0 + 0x10)" (* "*") (cast_expression "(undefined8 *)(DAT_002b52b0 + 0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_002b52b0 + 0x10)" (( "(") (binary_expression "DAT_002b52b0 + 0x10" (identifier "DAT_002b52b0") (+ "+") (number_literal "0x10")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      DAT_002b5218 = param_1;\n      return;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      DAT_002b5218 = param_1;\n      return;\n    }" ({ "{") (expression_statement "DAT_002b5218 = param_1;" (assignment_expression "DAT_002b5218 = param_1" (identifier "DAT_002b5218") (= "=") (identifier "param_1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if ((((*(byte *)(param_1 + 0x48) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar1 = filename_cmp(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)) {\n      DAT_002b5218 = param_1;\n      return;\n    }" (if "if") (parenthesized_expression "((((*(byte *)(param_1 + 0x48) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar1 = filename_cmp(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0))" (( "(") (binary_expression "(((*(byte *)(param_1 + 0x48) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar1 = filename_cmp(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)" (parenthesized_expression "(((*(byte *)(param_1 + 0x48) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f), pcVar3 != (char *)0x0))" (( "(") (binary_expression "((*(byte *)(param_1 + 0x48) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f), pcVar3 != (char *)0x0)" (parenthesized_expression "((*(byte *)(param_1 + 0x48) & 4) != 0)" (( "(") (binary_expression "(*(byte *)(param_1 + 0x48) & 4) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0x48) & 4)" (( "(") (binary_expression "*(byte *)(param_1 + 0x48) & 4" (pointer_expression "*(byte *)(param_1 + 0x48)" (* "*") (cast_expression "(byte *)(param_1 + 0x48)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")")))) (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f), pcVar3 != (char *)0x0)" (( "(") (comma_expression "pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f), pcVar3 != (char *)0x0" (assignment_expression "pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f)" (identifier "pcVar3") (= "=") (call_expression "strrchr(*(char **)(param_1 + 0x10),0x2f)" (identifier "strrchr") (argument_list "(*(char **)(param_1 + 0x10),0x2f)" (( "(") (pointer_expression "*(char **)(param_1 + 0x10)" (* "*") (cast_expression "(char **)(param_1 + 0x10)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (number_literal "0x2f") () ")")))) (, ",") (binary_expression "pcVar3 != (char *)0x0" (identifier "pcVar3") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = filename_cmp(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)" (( "(") (comma_expression "iVar1 = filename_cmp(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0" (assignment_expression "iVar1 = filename_cmp(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10))" (identifier "iVar1") (= "=") (call_expression "filename_cmp(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10))" (identifier "filename_cmp") (argument_list "(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10))" (( "(") (binary_expression "pcVar3 + 1" (identifier "pcVar3") (+ "+") (number_literal "1")) (, ",") (pointer_expression "*(undefined8 *)(DAT_002b52b0 + 0x10)" (* "*") (cast_expression "(undefined8 *)(DAT_002b52b0 + 0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_002b52b0 + 0x10)" (( "(") (binary_expression "DAT_002b52b0 + 0x10" (identifier "DAT_002b52b0") (+ "+") (number_literal "0x10")) () ")")))) () ")")))) (, ",") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      DAT_002b5218 = param_1;\n      return;\n    }" ({ "{") (expression_statement "DAT_002b5218 = param_1;" (assignment_expression "DAT_002b5218 = param_1" (identifier "DAT_002b5218") (= "=") (identifier "param_1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "lVar4 = bfd_elf_get_dt_soname(*(undefined8 *)(param_1 + 0x20));" (assignment_expression "lVar4 = bfd_elf_get_dt_soname(*(undefined8 *)(param_1 + 0x20))" (identifier "lVar4") (= "=") (call_expression "bfd_elf_get_dt_soname(*(undefined8 *)(param_1 + 0x20))" (identifier "bfd_elf_get_dt_soname") (argument_list "(*(undefined8 *)(param_1 + 0x20))" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x20)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x20)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) () ")")))) (; ";")) (if_statement "if ((lVar4 != 0) &&\n       (iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)) {\n      DAT_002b5218 = param_1;\n      return;\n    }" (if "if") (parenthesized_expression "((lVar4 != 0) &&\n       (iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0))" (( "(") (binary_expression "(lVar4 != 0) &&\n       (iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)" (parenthesized_expression "(lVar4 != 0)" (( "(") (binary_expression "lVar4 != 0" (identifier "lVar4") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)" (( "(") (comma_expression "iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0" (assignment_expression "iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10))" (identifier "iVar1") (= "=") (call_expression "filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10))" (identifier "filename_cmp") (argument_list "(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10))" (( "(") (identifier "lVar4") (, ",") (pointer_expression "*(undefined8 *)(DAT_002b52b0 + 0x10)" (* "*") (cast_expression "(undefined8 *)(DAT_002b52b0 + 0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_002b52b0 + 0x10)" (( "(") (binary_expression "DAT_002b52b0 + 0x10" (identifier "DAT_002b52b0") (+ "+") (number_literal "0x10")) () ")")))) () ")")))) (, ",") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      DAT_002b5218 = param_1;\n      return;\n    }" ({ "{") (expression_statement "DAT_002b5218 = param_1;" (assignment_expression "DAT_002b5218 = param_1" (identifier "DAT_002b5218") (= "=") (identifier "param_1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *s)

{
  int var_6;
  type_2 var_3;
  char *var_4;
  long var_9;
  
  if ((var_1 != (type_1 *)0x0) &&
     (var_3 = var_2(var_1->the_bfd), (var_3 & 1) == 0)) {
    return;
  }
  var_4 = s->filename;
  if ((var_4 != (char *)0x0) && (s->the_bfd != (type_3 *)0x0)) {
    if (var_1 != (type_1 *)0x0) {
      var_3 = var_2();
      if ((var_3 & 1) != 0) {
        return;
      }
      var_4 = s->filename;
    }
    var_6 = var_5(var_4,global_needed->name);
    if (var_6 == 0) {
      var_1 = s;
      return;
    }
    if ((((type_4  [16])((type_4  [16])s->flags & (type_4  [16])0x4) !=
          (type_4  [16])0x0) && (var_4 = var_7(s->filename,0x2f), var_4 != (char *)0x0)) &&
       (var_6 = var_5(var_4 + 1,global_needed->name), var_6 == 0)) {
      var_1 = s;
      return;
    }
    var_9 = var_8(s->the_bfd);
    if ((var_9 != 0) && (var_6 = var_5(var_9,global_needed->name), var_6 == 0)) {
      var_1 = s;
      return;
    }
  }
  return;
}


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

void MASKED(long param_1)

{
  int iVar1;
  ulong uVar2;
  char *pcVar3;
  long lVar4;
  
  if ((DAT_002b5218 != 0) &&
     (uVar2 = bfd_elf_get_dyn_lib_class(*(undefined8 *)(DAT_002b5218 + 0x20)), (uVar2 & 1) == 0)) {
    return;
  }
  lVar4 = *(long *)(param_1 + 0x10);
  if ((lVar4 != 0) && (*(long *)(param_1 + 0x20) != 0)) {
    if (DAT_002b5218 != 0) {
      uVar2 = bfd_elf_get_dyn_lib_class();
      if ((uVar2 & 1) != 0) {
        return;
      }
      lVar4 = *(long *)(param_1 + 0x10);
    }
    iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10));
    if (iVar1 == 0) {
      DAT_002b5218 = param_1;
      return;
    }
    if ((((*(byte *)(param_1 + 0x48) & 4) != 0) &&
        (pcVar3 = strrchr(*(char **)(param_1 + 0x10),0x2f), pcVar3 != (char *)0x0)) &&
       (iVar1 = filename_cmp(pcVar3 + 1,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)) {
      DAT_002b5218 = param_1;
      return;
    }
    lVar4 = bfd_elf_get_dt_soname(*(undefined8 *)(param_1 + 0x20));
    if ((lVar4 != 0) &&
       (iVar1 = filename_cmp(lVar4,*(undefined8 *)(DAT_002b52b0 + 0x10)), iVar1 == 0)) {
      DAT_002b5218 = param_1;
      return;
    }
  }
  return;
}

