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

void gldelf_l1om_check_needed(lang_input_statement_type *s)

{
  uint uVar1;
  int iVar2;
  char *pcVar3;
  
  if ((global_found != (lang_input_statement_type *)0x0) &&
     (uVar1 = bfd_elf_get_dyn_lib_class(global_found->the_bfd), (uVar1 & 1) == 0)) {
    return;
  }
  pcVar3 = s->filename;
  if ((pcVar3 != (char *)0x0) && (s->the_bfd != (bfd *)0x0)) {
    if (global_found != (lang_input_statement_type *)0x0) {
      uVar1 = bfd_elf_get_dyn_lib_class(s->the_bfd);
      if ((uVar1 & 1) != 0) {
        return;
      }
      pcVar3 = s->filename;
    }
    iVar2 = filename_cmp(pcVar3,global_needed->name);
    if (iVar2 == 0) {
      global_found = s;
      return;
    }
    if (((((ulonglong)s->flags & 4) != 0) &&
        (pcVar3 = strrchr(s->filename,0x2f), pcVar3 != (char *)0x0)) &&
       (iVar2 = filename_cmp(pcVar3 + 1,global_needed->name), iVar2 == 0)) {
      global_found = s;
      return;
    }
    iVar2 = bfd_elf_get_dt_soname(s->the_bfd);
    if ((iVar2 != 0) && (iVar2 = filename_cmp(iVar2,global_needed->name), iVar2 == 0)) {
      global_found = s;
      return;
    }
  }
  return;
}



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

void FUN_0004c650(int param_1)

{
  uint uVar1;
  int iVar2;
  char *pcVar3;
  
  if ((DAT_001cfc80 != 0) &&
     (uVar1 = bfd_elf_get_dyn_lib_class(*(undefined4 *)(DAT_001cfc80 + 0x10)), (uVar1 & 1) == 0)) {
    return;
  }
  iVar2 = *(int *)(param_1 + 8);
  if ((iVar2 != 0) && (*(int *)(param_1 + 0x10) != 0)) {
    if (DAT_001cfc80 != 0) {
      uVar1 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));
      if ((uVar1 & 1) != 0) {
        return;
      }
      iVar2 = *(int *)(param_1 + 8);
    }
    iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8));
    if (iVar2 == 0) {
      DAT_001cfc80 = param_1;
      return;
    }
    if ((((*(byte *)(param_1 + 0x24) & 4) != 0) &&
        (pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f), pcVar3 != (char *)0x0)) &&
       (iVar2 = filename_cmp(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0)) {
      DAT_001cfc80 = param_1;
      return;
    }
    iVar2 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));
    if ((iVar2 != 0) && (iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0))
    {
      DAT_001cfc80 = param_1;
      return;
    }
  }
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00017b80
ADD EBX,0x1819a9
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [EBX + 0x1c80]
TEST EAX,EAX
JZ 0x0004c684
SUB ESP,0xc
PUSH dword ptr [EAX + 0x10]
CALL 0x000163c0
ADD ESP,0x10
TEST AL,0x1
JZ 0x0004c731
MOV EAX,dword ptr [ESI + 0x8]
TEST EAX,EAX
JZ 0x0004c731
MOV EDX,dword ptr [ESI + 0x10]
TEST EDX,EDX
JZ 0x0004c731
MOV ECX,dword ptr [EBX + 0x1c80]
TEST ECX,ECX
JZ 0x0004c6b7
SUB ESP,0xc
PUSH EDX
CALL 0x000163c0
ADD ESP,0x10
TEST AL,0x1
JNZ 0x0004c731
MOV EAX,dword ptr [ESI + 0x8]
MOV EDX,dword ptr [EBX + 0x1d00]
SUB ESP,0x8
PUSH dword ptr [EDX + 0x8]
PUSH EAX
CALL 0x00016230
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0004c740
TEST byte ptr [ESI + 0x24],0x4
JZ 0x0004c706
SUB ESP,0x8
PUSH 0x2f
PUSH dword ptr [ESI + 0x8]
CALL 0x00016a40
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0004c706
MOV EDX,dword ptr [EBX + 0x1d00]
SUB ESP,0x8
ADD EAX,0x1
PUSH dword ptr [EDX + 0x8]
PUSH EAX
CALL 0x00016230
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0004c740
SUB ESP,0xc
PUSH dword ptr [ESI + 0x10]
CALL 0x000163b0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0004c731
MOV EDX,dword ptr [EBX + 0x1d00]
SUB ESP,0x8
PUSH dword ptr [EDX + 0x8]
PUSH EAX
CALL 0x00016230
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0004c740
ADD ESP,0x4
POP EBX
POP ESI
RET
MOV dword ptr [EBX + 0x1c80],ESI
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0004c650(int param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  if ((DAT_001cfc80 != 0) &&\n     (uVar1 = bfd_elf_get_dyn_lib_class(*(undefined4 *)(DAT_001cfc80 + 0x10)), (uVar1 & 1) == 0)) {\n    return;\n  }\n  iVar2 = *(int *)(param_1 + 8);\n  if ((iVar2 != 0) && (*(int *)(param_1 + 0x10) != 0)) {\n    if (DAT_001cfc80 != 0) {\n      uVar1 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));\n      if ((uVar1 & 1) != 0) {\n        return;\n      }\n      iVar2 = *(int *)(param_1 + 8);\n    }\n    iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8));\n    if (iVar2 == 0) {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n    if ((((*(byte *)(param_1 + 0x24) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar2 = filename_cmp(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0)) {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n    iVar2 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n    if ((iVar2 != 0) && (iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0))\n    {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_0004c650(int param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  if ((DAT_001cfc80 != 0) &&\n     (uVar1 = bfd_elf_get_dyn_lib_class(*(undefined4 *)(DAT_001cfc80 + 0x10)), (uVar1 & 1) == 0)) {\n    return;\n  }\n  iVar2 = *(int *)(param_1 + 8);\n  if ((iVar2 != 0) && (*(int *)(param_1 + 0x10) != 0)) {\n    if (DAT_001cfc80 != 0) {\n      uVar1 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));\n      if ((uVar1 & 1) != 0) {\n        return;\n      }\n      iVar2 = *(int *)(param_1 + 8);\n    }\n    iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8));\n    if (iVar2 == 0) {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n    if ((((*(byte *)(param_1 + 0x24) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar2 = filename_cmp(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0)) {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n    iVar2 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n    if ((iVar2 != 0) && (iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0))\n    {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0004c650(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  if ((DAT_001cfc80 != 0) &&\n     (uVar1 = bfd_elf_get_dyn_lib_class(*(undefined4 *)(DAT_001cfc80 + 0x10)), (uVar1 & 1) == 0)) {\n    return;\n  }\n  iVar2 = *(int *)(param_1 + 8);\n  if ((iVar2 != 0) && (*(int *)(param_1 + 0x10) != 0)) {\n    if (DAT_001cfc80 != 0) {\n      uVar1 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));\n      if ((uVar1 & 1) != 0) {\n        return;\n      }\n      iVar2 = *(int *)(param_1 + 8);\n    }\n    iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8));\n    if (iVar2 == 0) {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n    if ((((*(byte *)(param_1 + 0x24) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar2 = filename_cmp(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0)) {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n    iVar2 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n    if ((iVar2 != 0) && (iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0))\n    {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (if_statement "if ((DAT_001cfc80 != 0) &&\n     (uVar1 = bfd_elf_get_dyn_lib_class(*(undefined4 *)(DAT_001cfc80 + 0x10)), (uVar1 & 1) == 0)) {\n    return;\n  }" if (parenthesized_expression "((DAT_001cfc80 != 0) &&\n     (uVar1 = bfd_elf_get_dyn_lib_class(*(undefined4 *)(DAT_001cfc80 + 0x10)), (uVar1 & 1) == 0))" ( (binary_expression "(DAT_001cfc80 != 0) &&\n     (uVar1 = bfd_elf_get_dyn_lib_class(*(undefined4 *)(DAT_001cfc80 + 0x10)), (uVar1 & 1) == 0)" (parenthesized_expression "(DAT_001cfc80 != 0)" ( (binary_expression "DAT_001cfc80 != 0" identifier != number_literal) )) && (parenthesized_expression "(uVar1 = bfd_elf_get_dyn_lib_class(*(undefined4 *)(DAT_001cfc80 + 0x10)), (uVar1 & 1) == 0)" ( (comma_expression "uVar1 = bfd_elf_get_dyn_lib_class(*(undefined4 *)(DAT_001cfc80 + 0x10)), (uVar1 & 1) == 0" (assignment_expression "uVar1 = bfd_elf_get_dyn_lib_class(*(undefined4 *)(DAT_001cfc80 + 0x10))" identifier = (call_expression "bfd_elf_get_dyn_lib_class(*(undefined4 *)(DAT_001cfc80 + 0x10))" identifier (argument_list "(*(undefined4 *)(DAT_001cfc80 + 0x10))" ( (pointer_expression "*(undefined4 *)(DAT_001cfc80 + 0x10)" * (cast_expression "(undefined4 *)(DAT_001cfc80 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001cfc80 + 0x10)" ( (binary_expression "DAT_001cfc80 + 0x10" identifier + number_literal) )))) )))) , (binary_expression "(uVar1 & 1) == 0" (parenthesized_expression "(uVar1 & 1)" ( (binary_expression "uVar1 & 1" identifier & number_literal) )) == number_literal)) ))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "iVar2 = *(int *)(param_1 + 8);" (assignment_expression "iVar2 = *(int *)(param_1 + 8)" identifier = (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (if_statement "if ((iVar2 != 0) && (*(int *)(param_1 + 0x10) != 0)) {\n    if (DAT_001cfc80 != 0) {\n      uVar1 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));\n      if ((uVar1 & 1) != 0) {\n        return;\n      }\n      iVar2 = *(int *)(param_1 + 8);\n    }\n    iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8));\n    if (iVar2 == 0) {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n    if ((((*(byte *)(param_1 + 0x24) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar2 = filename_cmp(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0)) {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n    iVar2 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n    if ((iVar2 != 0) && (iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0))\n    {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n  }" if (parenthesized_expression "((iVar2 != 0) && (*(int *)(param_1 + 0x10) != 0))" ( (binary_expression "(iVar2 != 0) && (*(int *)(param_1 + 0x10) != 0)" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 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    if (DAT_001cfc80 != 0) {\n      uVar1 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));\n      if ((uVar1 & 1) != 0) {\n        return;\n      }\n      iVar2 = *(int *)(param_1 + 8);\n    }\n    iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8));\n    if (iVar2 == 0) {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n    if ((((*(byte *)(param_1 + 0x24) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar2 = filename_cmp(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0)) {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n    iVar2 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n    if ((iVar2 != 0) && (iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0))\n    {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n  }" { (if_statement "if (DAT_001cfc80 != 0) {\n      uVar1 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));\n      if ((uVar1 & 1) != 0) {\n        return;\n      }\n      iVar2 = *(int *)(param_1 + 8);\n    }" if (parenthesized_expression "(DAT_001cfc80 != 0)" ( (binary_expression "DAT_001cfc80 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar1 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));\n      if ((uVar1 & 1) != 0) {\n        return;\n      }\n      iVar2 = *(int *)(param_1 + 8);\n    }" { (expression_statement "uVar1 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));" (assignment_expression "uVar1 = 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 ((uVar1 & 1) != 0) {\n        return;\n      }" if (parenthesized_expression "((uVar1 & 1) != 0)" ( (binary_expression "(uVar1 & 1) != 0" (parenthesized_expression "(uVar1 & 1)" ( (binary_expression "uVar1 & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "iVar2 = *(int *)(param_1 + 8);" (assignment_expression "iVar2 = *(int *)(param_1 + 8)" identifier = (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) })) (expression_statement "iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8));" (assignment_expression "iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8))" identifier = (call_expression "filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8))" identifier (argument_list "(iVar2,*(undefined4 *)(DAT_001cfd00 + 8))" ( identifier , (pointer_expression "*(undefined4 *)(DAT_001cfd00 + 8)" * (cast_expression "(undefined4 *)(DAT_001cfd00 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001cfd00 + 8)" ( (binary_expression "DAT_001cfd00 + 8" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar2 == 0) {\n      DAT_001cfc80 = param_1;\n      return;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      DAT_001cfc80 = param_1;\n      return;\n    }" { (expression_statement "DAT_001cfc80 = param_1;" (assignment_expression "DAT_001cfc80 = param_1" identifier = identifier) ;) (return_statement "return;" return ;) })) (if_statement "if ((((*(byte *)(param_1 + 0x24) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar2 = filename_cmp(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0)) {\n      DAT_001cfc80 = param_1;\n      return;\n    }" if (parenthesized_expression "((((*(byte *)(param_1 + 0x24) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar2 = filename_cmp(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0))" ( (binary_expression "(((*(byte *)(param_1 + 0x24) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar2 = filename_cmp(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0)" (parenthesized_expression "(((*(byte *)(param_1 + 0x24) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f), pcVar3 != (char *)0x0))" ( (binary_expression "((*(byte *)(param_1 + 0x24) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f), pcVar3 != (char *)0x0)" (parenthesized_expression "((*(byte *)(param_1 + 0x24) & 4) != 0)" ( (binary_expression "(*(byte *)(param_1 + 0x24) & 4) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0x24) & 4)" ( (binary_expression "*(byte *)(param_1 + 0x24) & 4" (pointer_expression "*(byte *)(param_1 + 0x24)" * (cast_expression "(byte *)(param_1 + 0x24)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) & number_literal) )) != number_literal) )) && (parenthesized_expression "(pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f), pcVar3 != (char *)0x0)" ( (comma_expression "pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f), pcVar3 != (char *)0x0" (assignment_expression "pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f)" identifier = (call_expression "strrchr(*(char **)(param_1 + 8),0x2f)" identifier (argument_list "(*(char **)(param_1 + 8),0x2f)" ( (pointer_expression "*(char **)(param_1 + 8)" * (cast_expression "(char **)(param_1 + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , number_literal )))) , (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) && (parenthesized_expression "(iVar2 = filename_cmp(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0)" ( (comma_expression "iVar2 = filename_cmp(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0" (assignment_expression "iVar2 = filename_cmp(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8))" identifier = (call_expression "filename_cmp(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8))" identifier (argument_list "(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8))" ( (binary_expression "pcVar3 + 1" identifier + number_literal) , (pointer_expression "*(undefined4 *)(DAT_001cfd00 + 8)" * (cast_expression "(undefined4 *)(DAT_001cfd00 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001cfd00 + 8)" ( (binary_expression "DAT_001cfd00 + 8" identifier + number_literal) )))) )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      DAT_001cfc80 = param_1;\n      return;\n    }" { (expression_statement "DAT_001cfc80 = param_1;" (assignment_expression "DAT_001cfc80 = param_1" identifier = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "iVar2 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));" (assignment_expression "iVar2 = 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 ((iVar2 != 0) && (iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0))\n    {\n      DAT_001cfc80 = param_1;\n      return;\n    }" if (parenthesized_expression "((iVar2 != 0) && (iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0))" ( (binary_expression "(iVar2 != 0) && (iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0)" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0)" ( (comma_expression "iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0" (assignment_expression "iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8))" identifier = (call_expression "filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8))" identifier (argument_list "(iVar2,*(undefined4 *)(DAT_001cfd00 + 8))" ( identifier , (pointer_expression "*(undefined4 *)(DAT_001cfd00 + 8)" * (cast_expression "(undefined4 *)(DAT_001cfd00 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001cfd00 + 8)" ( (binary_expression "DAT_001cfd00 + 8" identifier + number_literal) )))) )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      DAT_001cfc80 = param_1;\n      return;\n    }" { (expression_statement "DAT_001cfc80 = param_1;" (assignment_expression "DAT_001cfc80 = param_1" identifier = identifier) ;) (return_statement "return;" return ;) })) })) (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 gldelf_l1om_check_needed(lang_input_statement_type *s)\n\n{\n  uint uVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  if ((global_found != (lang_input_statement_type *)0x0) &&\n     (uVar1 = bfd_elf_get_dyn_lib_class(global_found->the_bfd), (uVar1 & 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      uVar1 = bfd_elf_get_dyn_lib_class(s->the_bfd);\n      if ((uVar1 & 1) != 0) {\n        return;\n      }\n      pcVar3 = s->filename;\n    }\n    iVar2 = filename_cmp(pcVar3,global_needed->name);\n    if (iVar2 == 0) {\n      global_found = s;\n      return;\n    }\n    if (((((ulonglong)s->flags & 4) != 0) &&\n        (pcVar3 = strrchr(s->filename,0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar2 = filename_cmp(pcVar3 + 1,global_needed->name), iVar2 == 0)) {\n      global_found = s;\n      return;\n    }\n    iVar2 = bfd_elf_get_dt_soname(s->the_bfd);\n    if ((iVar2 != 0) && (iVar2 = filename_cmp(iVar2,global_needed->name), iVar2 == 0)) {\n      global_found = s;\n      return;\n    }\n  }\n  return;\n}\n\n" comment comment (function_definition "void gldelf_l1om_check_needed(lang_input_statement_type *s)\n\n{\n  uint uVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  if ((global_found != (lang_input_statement_type *)0x0) &&\n     (uVar1 = bfd_elf_get_dyn_lib_class(global_found->the_bfd), (uVar1 & 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      uVar1 = bfd_elf_get_dyn_lib_class(s->the_bfd);\n      if ((uVar1 & 1) != 0) {\n        return;\n      }\n      pcVar3 = s->filename;\n    }\n    iVar2 = filename_cmp(pcVar3,global_needed->name);\n    if (iVar2 == 0) {\n      global_found = s;\n      return;\n    }\n    if (((((ulonglong)s->flags & 4) != 0) &&\n        (pcVar3 = strrchr(s->filename,0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar2 = filename_cmp(pcVar3 + 1,global_needed->name), iVar2 == 0)) {\n      global_found = s;\n      return;\n    }\n    iVar2 = bfd_elf_get_dt_soname(s->the_bfd);\n    if ((iVar2 != 0) && (iVar2 = filename_cmp(iVar2,global_needed->name), iVar2 == 0)) {\n      global_found = s;\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "gldelf_l1om_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  uint uVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  if ((global_found != (lang_input_statement_type *)0x0) &&\n     (uVar1 = bfd_elf_get_dyn_lib_class(global_found->the_bfd), (uVar1 & 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      uVar1 = bfd_elf_get_dyn_lib_class(s->the_bfd);\n      if ((uVar1 & 1) != 0) {\n        return;\n      }\n      pcVar3 = s->filename;\n    }\n    iVar2 = filename_cmp(pcVar3,global_needed->name);\n    if (iVar2 == 0) {\n      global_found = s;\n      return;\n    }\n    if (((((ulonglong)s->flags & 4) != 0) &&\n        (pcVar3 = strrchr(s->filename,0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar2 = filename_cmp(pcVar3 + 1,global_needed->name), iVar2 == 0)) {\n      global_found = s;\n      return;\n    }\n    iVar2 = bfd_elf_get_dt_soname(s->the_bfd);\n    if ((iVar2 != 0) && (iVar2 = filename_cmp(iVar2,global_needed->name), iVar2 == 0)) {\n      global_found = s;\n      return;\n    }\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (if_statement "if ((global_found != (lang_input_statement_type *)0x0) &&\n     (uVar1 = bfd_elf_get_dyn_lib_class(global_found->the_bfd), (uVar1 & 1) == 0)) {\n    return;\n  }" if (parenthesized_expression "((global_found != (lang_input_statement_type *)0x0) &&\n     (uVar1 = bfd_elf_get_dyn_lib_class(global_found->the_bfd), (uVar1 & 1) == 0))" ( (binary_expression "(global_found != (lang_input_statement_type *)0x0) &&\n     (uVar1 = bfd_elf_get_dyn_lib_class(global_found->the_bfd), (uVar1 & 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 "(uVar1 = bfd_elf_get_dyn_lib_class(global_found->the_bfd), (uVar1 & 1) == 0)" ( (comma_expression "uVar1 = bfd_elf_get_dyn_lib_class(global_found->the_bfd), (uVar1 & 1) == 0" (assignment_expression "uVar1 = 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 "(uVar1 & 1) == 0" (parenthesized_expression "(uVar1 & 1)" ( (binary_expression "uVar1 & 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      uVar1 = bfd_elf_get_dyn_lib_class(s->the_bfd);\n      if ((uVar1 & 1) != 0) {\n        return;\n      }\n      pcVar3 = s->filename;\n    }\n    iVar2 = filename_cmp(pcVar3,global_needed->name);\n    if (iVar2 == 0) {\n      global_found = s;\n      return;\n    }\n    if (((((ulonglong)s->flags & 4) != 0) &&\n        (pcVar3 = strrchr(s->filename,0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar2 = filename_cmp(pcVar3 + 1,global_needed->name), iVar2 == 0)) {\n      global_found = s;\n      return;\n    }\n    iVar2 = bfd_elf_get_dt_soname(s->the_bfd);\n    if ((iVar2 != 0) && (iVar2 = filename_cmp(iVar2,global_needed->name), iVar2 == 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      uVar1 = bfd_elf_get_dyn_lib_class(s->the_bfd);\n      if ((uVar1 & 1) != 0) {\n        return;\n      }\n      pcVar3 = s->filename;\n    }\n    iVar2 = filename_cmp(pcVar3,global_needed->name);\n    if (iVar2 == 0) {\n      global_found = s;\n      return;\n    }\n    if (((((ulonglong)s->flags & 4) != 0) &&\n        (pcVar3 = strrchr(s->filename,0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar2 = filename_cmp(pcVar3 + 1,global_needed->name), iVar2 == 0)) {\n      global_found = s;\n      return;\n    }\n    iVar2 = bfd_elf_get_dt_soname(s->the_bfd);\n    if ((iVar2 != 0) && (iVar2 = filename_cmp(iVar2,global_needed->name), iVar2 == 0)) {\n      global_found = s;\n      return;\n    }\n  }" { (if_statement "if (global_found != (lang_input_statement_type *)0x0) {\n      uVar1 = bfd_elf_get_dyn_lib_class(s->the_bfd);\n      if ((uVar1 & 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      uVar1 = bfd_elf_get_dyn_lib_class(s->the_bfd);\n      if ((uVar1 & 1) != 0) {\n        return;\n      }\n      pcVar3 = s->filename;\n    }" { (expression_statement "uVar1 = bfd_elf_get_dyn_lib_class(s->the_bfd);" (assignment_expression "uVar1 = 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 ((uVar1 & 1) != 0) {\n        return;\n      }" if (parenthesized_expression "((uVar1 & 1) != 0)" ( (binary_expression "(uVar1 & 1) != 0" (parenthesized_expression "(uVar1 & 1)" ( (binary_expression "uVar1 & 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 "iVar2 = filename_cmp(pcVar3,global_needed->name);" (assignment_expression "iVar2 = 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 (iVar2 == 0) {\n      global_found = s;\n      return;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 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 (((((ulonglong)s->flags & 4) != 0) &&\n        (pcVar3 = strrchr(s->filename,0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar2 = filename_cmp(pcVar3 + 1,global_needed->name), iVar2 == 0)) {\n      global_found = s;\n      return;\n    }" if (parenthesized_expression "(((((ulonglong)s->flags & 4) != 0) &&\n        (pcVar3 = strrchr(s->filename,0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar2 = filename_cmp(pcVar3 + 1,global_needed->name), iVar2 == 0))" ( (binary_expression "((((ulonglong)s->flags & 4) != 0) &&\n        (pcVar3 = strrchr(s->filename,0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar2 = filename_cmp(pcVar3 + 1,global_needed->name), iVar2 == 0)" (parenthesized_expression "((((ulonglong)s->flags & 4) != 0) &&\n        (pcVar3 = strrchr(s->filename,0x2f), pcVar3 != (char *)0x0))" ( (binary_expression "(((ulonglong)s->flags & 4) != 0) &&\n        (pcVar3 = strrchr(s->filename,0x2f), pcVar3 != (char *)0x0)" (parenthesized_expression "(((ulonglong)s->flags & 4) != 0)" ( (binary_expression "((ulonglong)s->flags & 4) != 0" (parenthesized_expression "((ulonglong)s->flags & 4)" ( (binary_expression "(ulonglong)s->flags & 4" (cast_expression "(ulonglong)s->flags" ( (type_descriptor "ulonglong" type_identifier) ) (field_expression "s->flags" identifier -> field_identifier)) & 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 "(iVar2 = filename_cmp(pcVar3 + 1,global_needed->name), iVar2 == 0)" ( (comma_expression "iVar2 = filename_cmp(pcVar3 + 1,global_needed->name), iVar2 == 0" (assignment_expression "iVar2 = 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 "iVar2 == 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 "iVar2 = bfd_elf_get_dt_soname(s->the_bfd);" (assignment_expression "iVar2 = 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 ((iVar2 != 0) && (iVar2 = filename_cmp(iVar2,global_needed->name), iVar2 == 0)) {\n      global_found = s;\n      return;\n    }" if (parenthesized_expression "((iVar2 != 0) && (iVar2 = filename_cmp(iVar2,global_needed->name), iVar2 == 0))" ( (binary_expression "(iVar2 != 0) && (iVar2 = filename_cmp(iVar2,global_needed->name), iVar2 == 0)" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar2 = filename_cmp(iVar2,global_needed->name), iVar2 == 0)" ( (comma_expression "iVar2 = filename_cmp(iVar2,global_needed->name), iVar2 == 0" (assignment_expression "iVar2 = filename_cmp(iVar2,global_needed->name)" identifier = (call_expression "filename_cmp(iVar2,global_needed->name)" identifier (argument_list "(iVar2,global_needed->name)" ( identifier , (field_expression "global_needed->name" identifier -> field_identifier) )))) , (binary_expression "iVar2 == 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_0004c650(int param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  if ((DAT_001cfc80 != 0) &&\n     (uVar1 = bfd_elf_get_dyn_lib_class(*(undefined4 *)(DAT_001cfc80 + 0x10)), (uVar1 & 1) == 0)) {\n    return;\n  }\n  iVar2 = *(int *)(param_1 + 8);\n  if ((iVar2 != 0) && (*(int *)(param_1 + 0x10) != 0)) {\n    if (DAT_001cfc80 != 0) {\n      uVar1 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));\n      if ((uVar1 & 1) != 0) {\n        return;\n      }\n      iVar2 = *(int *)(param_1 + 8);\n    }\n    iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8));\n    if (iVar2 == 0) {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n    if ((((*(byte *)(param_1 + 0x24) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar2 = filename_cmp(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0)) {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n    iVar2 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n    if ((iVar2 != 0) && (iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0))\n    {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_0004c650(int param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  if ((DAT_001cfc80 != 0) &&\n     (uVar1 = bfd_elf_get_dyn_lib_class(*(undefined4 *)(DAT_001cfc80 + 0x10)), (uVar1 & 1) == 0)) {\n    return;\n  }\n  iVar2 = *(int *)(param_1 + 8);\n  if ((iVar2 != 0) && (*(int *)(param_1 + 0x10) != 0)) {\n    if (DAT_001cfc80 != 0) {\n      uVar1 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));\n      if ((uVar1 & 1) != 0) {\n        return;\n      }\n      iVar2 = *(int *)(param_1 + 8);\n    }\n    iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8));\n    if (iVar2 == 0) {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n    if ((((*(byte *)(param_1 + 0x24) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar2 = filename_cmp(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0)) {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n    iVar2 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n    if ((iVar2 != 0) && (iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0))\n    {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0004c650(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  if ((DAT_001cfc80 != 0) &&\n     (uVar1 = bfd_elf_get_dyn_lib_class(*(undefined4 *)(DAT_001cfc80 + 0x10)), (uVar1 & 1) == 0)) {\n    return;\n  }\n  iVar2 = *(int *)(param_1 + 8);\n  if ((iVar2 != 0) && (*(int *)(param_1 + 0x10) != 0)) {\n    if (DAT_001cfc80 != 0) {\n      uVar1 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));\n      if ((uVar1 & 1) != 0) {\n        return;\n      }\n      iVar2 = *(int *)(param_1 + 8);\n    }\n    iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8));\n    if (iVar2 == 0) {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n    if ((((*(byte *)(param_1 + 0x24) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar2 = filename_cmp(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0)) {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n    iVar2 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n    if ((iVar2 != 0) && (iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0))\n    {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (if_statement "if ((DAT_001cfc80 != 0) &&\n     (uVar1 = bfd_elf_get_dyn_lib_class(*(undefined4 *)(DAT_001cfc80 + 0x10)), (uVar1 & 1) == 0)) {\n    return;\n  }" if (parenthesized_expression "((DAT_001cfc80 != 0) &&\n     (uVar1 = bfd_elf_get_dyn_lib_class(*(undefined4 *)(DAT_001cfc80 + 0x10)), (uVar1 & 1) == 0))" ( (binary_expression "(DAT_001cfc80 != 0) &&\n     (uVar1 = bfd_elf_get_dyn_lib_class(*(undefined4 *)(DAT_001cfc80 + 0x10)), (uVar1 & 1) == 0)" (parenthesized_expression "(DAT_001cfc80 != 0)" ( (binary_expression "DAT_001cfc80 != 0" identifier != number_literal) )) && (parenthesized_expression "(uVar1 = bfd_elf_get_dyn_lib_class(*(undefined4 *)(DAT_001cfc80 + 0x10)), (uVar1 & 1) == 0)" ( (comma_expression "uVar1 = bfd_elf_get_dyn_lib_class(*(undefined4 *)(DAT_001cfc80 + 0x10)), (uVar1 & 1) == 0" (assignment_expression "uVar1 = bfd_elf_get_dyn_lib_class(*(undefined4 *)(DAT_001cfc80 + 0x10))" identifier = (call_expression "bfd_elf_get_dyn_lib_class(*(undefined4 *)(DAT_001cfc80 + 0x10))" identifier (argument_list "(*(undefined4 *)(DAT_001cfc80 + 0x10))" ( (pointer_expression "*(undefined4 *)(DAT_001cfc80 + 0x10)" * (cast_expression "(undefined4 *)(DAT_001cfc80 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001cfc80 + 0x10)" ( (binary_expression "DAT_001cfc80 + 0x10" identifier + number_literal) )))) )))) , (binary_expression "(uVar1 & 1) == 0" (parenthesized_expression "(uVar1 & 1)" ( (binary_expression "uVar1 & 1" identifier & number_literal) )) == number_literal)) ))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "iVar2 = *(int *)(param_1 + 8);" (assignment_expression "iVar2 = *(int *)(param_1 + 8)" identifier = (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (if_statement "if ((iVar2 != 0) && (*(int *)(param_1 + 0x10) != 0)) {\n    if (DAT_001cfc80 != 0) {\n      uVar1 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));\n      if ((uVar1 & 1) != 0) {\n        return;\n      }\n      iVar2 = *(int *)(param_1 + 8);\n    }\n    iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8));\n    if (iVar2 == 0) {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n    if ((((*(byte *)(param_1 + 0x24) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar2 = filename_cmp(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0)) {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n    iVar2 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n    if ((iVar2 != 0) && (iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0))\n    {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n  }" if (parenthesized_expression "((iVar2 != 0) && (*(int *)(param_1 + 0x10) != 0))" ( (binary_expression "(iVar2 != 0) && (*(int *)(param_1 + 0x10) != 0)" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 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    if (DAT_001cfc80 != 0) {\n      uVar1 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));\n      if ((uVar1 & 1) != 0) {\n        return;\n      }\n      iVar2 = *(int *)(param_1 + 8);\n    }\n    iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8));\n    if (iVar2 == 0) {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n    if ((((*(byte *)(param_1 + 0x24) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar2 = filename_cmp(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0)) {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n    iVar2 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n    if ((iVar2 != 0) && (iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0))\n    {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n  }" { (if_statement "if (DAT_001cfc80 != 0) {\n      uVar1 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));\n      if ((uVar1 & 1) != 0) {\n        return;\n      }\n      iVar2 = *(int *)(param_1 + 8);\n    }" if (parenthesized_expression "(DAT_001cfc80 != 0)" ( (binary_expression "DAT_001cfc80 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar1 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));\n      if ((uVar1 & 1) != 0) {\n        return;\n      }\n      iVar2 = *(int *)(param_1 + 8);\n    }" { (expression_statement "uVar1 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));" (assignment_expression "uVar1 = 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 ((uVar1 & 1) != 0) {\n        return;\n      }" if (parenthesized_expression "((uVar1 & 1) != 0)" ( (binary_expression "(uVar1 & 1) != 0" (parenthesized_expression "(uVar1 & 1)" ( (binary_expression "uVar1 & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "iVar2 = *(int *)(param_1 + 8);" (assignment_expression "iVar2 = *(int *)(param_1 + 8)" identifier = (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) })) (expression_statement "iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8));" (assignment_expression "iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8))" identifier = (call_expression "filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8))" identifier (argument_list "(iVar2,*(undefined4 *)(DAT_001cfd00 + 8))" ( identifier , (pointer_expression "*(undefined4 *)(DAT_001cfd00 + 8)" * (cast_expression "(undefined4 *)(DAT_001cfd00 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001cfd00 + 8)" ( (binary_expression "DAT_001cfd00 + 8" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar2 == 0) {\n      DAT_001cfc80 = param_1;\n      return;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      DAT_001cfc80 = param_1;\n      return;\n    }" { (expression_statement "DAT_001cfc80 = param_1;" (assignment_expression "DAT_001cfc80 = param_1" identifier = identifier) ;) (return_statement "return;" return ;) })) (if_statement "if ((((*(byte *)(param_1 + 0x24) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar2 = filename_cmp(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0)) {\n      DAT_001cfc80 = param_1;\n      return;\n    }" if (parenthesized_expression "((((*(byte *)(param_1 + 0x24) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar2 = filename_cmp(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0))" ( (binary_expression "(((*(byte *)(param_1 + 0x24) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar2 = filename_cmp(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0)" (parenthesized_expression "(((*(byte *)(param_1 + 0x24) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f), pcVar3 != (char *)0x0))" ( (binary_expression "((*(byte *)(param_1 + 0x24) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f), pcVar3 != (char *)0x0)" (parenthesized_expression "((*(byte *)(param_1 + 0x24) & 4) != 0)" ( (binary_expression "(*(byte *)(param_1 + 0x24) & 4) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0x24) & 4)" ( (binary_expression "*(byte *)(param_1 + 0x24) & 4" (pointer_expression "*(byte *)(param_1 + 0x24)" * (cast_expression "(byte *)(param_1 + 0x24)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) & number_literal) )) != number_literal) )) && (parenthesized_expression "(pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f), pcVar3 != (char *)0x0)" ( (comma_expression "pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f), pcVar3 != (char *)0x0" (assignment_expression "pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f)" identifier = (call_expression "strrchr(*(char **)(param_1 + 8),0x2f)" identifier (argument_list "(*(char **)(param_1 + 8),0x2f)" ( (pointer_expression "*(char **)(param_1 + 8)" * (cast_expression "(char **)(param_1 + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , number_literal )))) , (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) && (parenthesized_expression "(iVar2 = filename_cmp(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0)" ( (comma_expression "iVar2 = filename_cmp(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0" (assignment_expression "iVar2 = filename_cmp(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8))" identifier = (call_expression "filename_cmp(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8))" identifier (argument_list "(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8))" ( (binary_expression "pcVar3 + 1" identifier + number_literal) , (pointer_expression "*(undefined4 *)(DAT_001cfd00 + 8)" * (cast_expression "(undefined4 *)(DAT_001cfd00 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001cfd00 + 8)" ( (binary_expression "DAT_001cfd00 + 8" identifier + number_literal) )))) )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      DAT_001cfc80 = param_1;\n      return;\n    }" { (expression_statement "DAT_001cfc80 = param_1;" (assignment_expression "DAT_001cfc80 = param_1" identifier = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "iVar2 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));" (assignment_expression "iVar2 = 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 ((iVar2 != 0) && (iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0))\n    {\n      DAT_001cfc80 = param_1;\n      return;\n    }" if (parenthesized_expression "((iVar2 != 0) && (iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0))" ( (binary_expression "(iVar2 != 0) && (iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0)" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0)" ( (comma_expression "iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0" (assignment_expression "iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8))" identifier = (call_expression "filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8))" identifier (argument_list "(iVar2,*(undefined4 *)(DAT_001cfd00 + 8))" ( identifier , (pointer_expression "*(undefined4 *)(DAT_001cfd00 + 8)" * (cast_expression "(undefined4 *)(DAT_001cfd00 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001cfd00 + 8)" ( (binary_expression "DAT_001cfd00 + 8" identifier + number_literal) )))) )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      DAT_001cfc80 = param_1;\n      return;\n    }" { (expression_statement "DAT_001cfc80 = param_1;" (assignment_expression "DAT_001cfc80 = param_1" identifier = identifier) ;) (return_statement "return;" return ;) })) })) (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 (pointer_declarator * 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 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 ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (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 ( (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 { (return_statement return ;) })) (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 ( 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_0004c650(int param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  if ((DAT_001cfc80 != 0) &&\n     (uVar1 = bfd_elf_get_dyn_lib_class(*(undefined4 *)(DAT_001cfc80 + 0x10)), (uVar1 & 1) == 0)) {\n    return;\n  }\n  iVar2 = *(int *)(param_1 + 8);\n  if ((iVar2 != 0) && (*(int *)(param_1 + 0x10) != 0)) {\n    if (DAT_001cfc80 != 0) {\n      uVar1 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));\n      if ((uVar1 & 1) != 0) {\n        return;\n      }\n      iVar2 = *(int *)(param_1 + 8);\n    }\n    iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8));\n    if (iVar2 == 0) {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n    if ((((*(byte *)(param_1 + 0x24) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar2 = filename_cmp(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0)) {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n    iVar2 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n    if ((iVar2 != 0) && (iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0))\n    {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0004c650(int param_1)" (identifier "FUN_0004c650") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  if ((DAT_001cfc80 != 0) &&\n     (uVar1 = bfd_elf_get_dyn_lib_class(*(undefined4 *)(DAT_001cfc80 + 0x10)), (uVar1 & 1) == 0)) {\n    return;\n  }\n  iVar2 = *(int *)(param_1 + 8);\n  if ((iVar2 != 0) && (*(int *)(param_1 + 0x10) != 0)) {\n    if (DAT_001cfc80 != 0) {\n      uVar1 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));\n      if ((uVar1 & 1) != 0) {\n        return;\n      }\n      iVar2 = *(int *)(param_1 + 8);\n    }\n    iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8));\n    if (iVar2 == 0) {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n    if ((((*(byte *)(param_1 + 0x24) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar2 = filename_cmp(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0)) {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n    iVar2 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n    if ((iVar2 != 0) && (iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0))\n    {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n  }\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (if_statement "if ((DAT_001cfc80 != 0) &&\n     (uVar1 = bfd_elf_get_dyn_lib_class(*(undefined4 *)(DAT_001cfc80 + 0x10)), (uVar1 & 1) == 0)) {\n    return;\n  }" (if "if") (parenthesized_expression "((DAT_001cfc80 != 0) &&\n     (uVar1 = bfd_elf_get_dyn_lib_class(*(undefined4 *)(DAT_001cfc80 + 0x10)), (uVar1 & 1) == 0))" (( "(") (binary_expression "(DAT_001cfc80 != 0) &&\n     (uVar1 = bfd_elf_get_dyn_lib_class(*(undefined4 *)(DAT_001cfc80 + 0x10)), (uVar1 & 1) == 0)" (parenthesized_expression "(DAT_001cfc80 != 0)" (( "(") (binary_expression "DAT_001cfc80 != 0" (identifier "DAT_001cfc80") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(uVar1 = bfd_elf_get_dyn_lib_class(*(undefined4 *)(DAT_001cfc80 + 0x10)), (uVar1 & 1) == 0)" (( "(") (comma_expression "uVar1 = bfd_elf_get_dyn_lib_class(*(undefined4 *)(DAT_001cfc80 + 0x10)), (uVar1 & 1) == 0" (assignment_expression "uVar1 = bfd_elf_get_dyn_lib_class(*(undefined4 *)(DAT_001cfc80 + 0x10))" (identifier "uVar1") (= "=") (call_expression "bfd_elf_get_dyn_lib_class(*(undefined4 *)(DAT_001cfc80 + 0x10))" (identifier "bfd_elf_get_dyn_lib_class") (argument_list "(*(undefined4 *)(DAT_001cfc80 + 0x10))" (( "(") (pointer_expression "*(undefined4 *)(DAT_001cfc80 + 0x10)" (* "*") (cast_expression "(undefined4 *)(DAT_001cfc80 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_001cfc80 + 0x10)" (( "(") (binary_expression "DAT_001cfc80 + 0x10" (identifier "DAT_001cfc80") (+ "+") (number_literal "0x10")) () ")")))) () ")")))) (, ",") (binary_expression "(uVar1 & 1) == 0" (parenthesized_expression "(uVar1 & 1)" (( "(") (binary_expression "uVar1 & 1" (identifier "uVar1") (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar2 = *(int *)(param_1 + 8);" (assignment_expression "iVar2 = *(int *)(param_1 + 8)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if ((iVar2 != 0) && (*(int *)(param_1 + 0x10) != 0)) {\n    if (DAT_001cfc80 != 0) {\n      uVar1 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));\n      if ((uVar1 & 1) != 0) {\n        return;\n      }\n      iVar2 = *(int *)(param_1 + 8);\n    }\n    iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8));\n    if (iVar2 == 0) {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n    if ((((*(byte *)(param_1 + 0x24) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar2 = filename_cmp(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0)) {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n    iVar2 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n    if ((iVar2 != 0) && (iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0))\n    {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n  }" (if "if") (parenthesized_expression "((iVar2 != 0) && (*(int *)(param_1 + 0x10) != 0))" (( "(") (binary_expression "(iVar2 != 0) && (*(int *)(param_1 + 0x10) != 0)" (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (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    if (DAT_001cfc80 != 0) {\n      uVar1 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));\n      if ((uVar1 & 1) != 0) {\n        return;\n      }\n      iVar2 = *(int *)(param_1 + 8);\n    }\n    iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8));\n    if (iVar2 == 0) {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n    if ((((*(byte *)(param_1 + 0x24) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar2 = filename_cmp(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0)) {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n    iVar2 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));\n    if ((iVar2 != 0) && (iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0))\n    {\n      DAT_001cfc80 = param_1;\n      return;\n    }\n  }" ({ "{") (if_statement "if (DAT_001cfc80 != 0) {\n      uVar1 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));\n      if ((uVar1 & 1) != 0) {\n        return;\n      }\n      iVar2 = *(int *)(param_1 + 8);\n    }" (if "if") (parenthesized_expression "(DAT_001cfc80 != 0)" (( "(") (binary_expression "DAT_001cfc80 != 0" (identifier "DAT_001cfc80") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar1 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));\n      if ((uVar1 & 1) != 0) {\n        return;\n      }\n      iVar2 = *(int *)(param_1 + 8);\n    }" ({ "{") (expression_statement "uVar1 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));" (assignment_expression "uVar1 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10))" (identifier "uVar1") (= "=") (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 ((uVar1 & 1) != 0) {\n        return;\n      }" (if "if") (parenthesized_expression "((uVar1 & 1) != 0)" (( "(") (binary_expression "(uVar1 & 1) != 0" (parenthesized_expression "(uVar1 & 1)" (( "(") (binary_expression "uVar1 & 1" (identifier "uVar1") (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar2 = *(int *)(param_1 + 8);" (assignment_expression "iVar2 = *(int *)(param_1 + 8)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (} "}"))) (expression_statement "iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8));" (assignment_expression "iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8))" (identifier "iVar2") (= "=") (call_expression "filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8))" (identifier "filename_cmp") (argument_list "(iVar2,*(undefined4 *)(DAT_001cfd00 + 8))" (( "(") (identifier "iVar2") (, ",") (pointer_expression "*(undefined4 *)(DAT_001cfd00 + 8)" (* "*") (cast_expression "(undefined4 *)(DAT_001cfd00 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_001cfd00 + 8)" (( "(") (binary_expression "DAT_001cfd00 + 8" (identifier "DAT_001cfd00") (+ "+") (number_literal "8")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      DAT_001cfc80 = param_1;\n      return;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      DAT_001cfc80 = param_1;\n      return;\n    }" ({ "{") (expression_statement "DAT_001cfc80 = param_1;" (assignment_expression "DAT_001cfc80 = param_1" (identifier "DAT_001cfc80") (= "=") (identifier "param_1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if ((((*(byte *)(param_1 + 0x24) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar2 = filename_cmp(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0)) {\n      DAT_001cfc80 = param_1;\n      return;\n    }" (if "if") (parenthesized_expression "((((*(byte *)(param_1 + 0x24) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar2 = filename_cmp(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0))" (( "(") (binary_expression "(((*(byte *)(param_1 + 0x24) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f), pcVar3 != (char *)0x0)) &&\n       (iVar2 = filename_cmp(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0)" (parenthesized_expression "(((*(byte *)(param_1 + 0x24) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f), pcVar3 != (char *)0x0))" (( "(") (binary_expression "((*(byte *)(param_1 + 0x24) & 4) != 0) &&\n        (pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f), pcVar3 != (char *)0x0)" (parenthesized_expression "((*(byte *)(param_1 + 0x24) & 4) != 0)" (( "(") (binary_expression "(*(byte *)(param_1 + 0x24) & 4) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0x24) & 4)" (( "(") (binary_expression "*(byte *)(param_1 + 0x24) & 4" (pointer_expression "*(byte *)(param_1 + 0x24)" (* "*") (cast_expression "(byte *)(param_1 + 0x24)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f), pcVar3 != (char *)0x0)" (( "(") (comma_expression "pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f), pcVar3 != (char *)0x0" (assignment_expression "pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f)" (identifier "pcVar3") (= "=") (call_expression "strrchr(*(char **)(param_1 + 8),0x2f)" (identifier "strrchr") (argument_list "(*(char **)(param_1 + 8),0x2f)" (( "(") (pointer_expression "*(char **)(param_1 + 8)" (* "*") (cast_expression "(char **)(param_1 + 8)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (, ",") (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 "(iVar2 = filename_cmp(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0)" (( "(") (comma_expression "iVar2 = filename_cmp(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0" (assignment_expression "iVar2 = filename_cmp(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8))" (identifier "iVar2") (= "=") (call_expression "filename_cmp(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8))" (identifier "filename_cmp") (argument_list "(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8))" (( "(") (binary_expression "pcVar3 + 1" (identifier "pcVar3") (+ "+") (number_literal "1")) (, ",") (pointer_expression "*(undefined4 *)(DAT_001cfd00 + 8)" (* "*") (cast_expression "(undefined4 *)(DAT_001cfd00 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_001cfd00 + 8)" (( "(") (binary_expression "DAT_001cfd00 + 8" (identifier "DAT_001cfd00") (+ "+") (number_literal "8")) () ")")))) () ")")))) (, ",") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      DAT_001cfc80 = param_1;\n      return;\n    }" ({ "{") (expression_statement "DAT_001cfc80 = param_1;" (assignment_expression "DAT_001cfc80 = param_1" (identifier "DAT_001cfc80") (= "=") (identifier "param_1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar2 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));" (assignment_expression "iVar2 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10))" (identifier "iVar2") (= "=") (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 ((iVar2 != 0) && (iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0))\n    {\n      DAT_001cfc80 = param_1;\n      return;\n    }" (if "if") (parenthesized_expression "((iVar2 != 0) && (iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0))" (( "(") (binary_expression "(iVar2 != 0) && (iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0)" (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0)" (( "(") (comma_expression "iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0" (assignment_expression "iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8))" (identifier "iVar2") (= "=") (call_expression "filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8))" (identifier "filename_cmp") (argument_list "(iVar2,*(undefined4 *)(DAT_001cfd00 + 8))" (( "(") (identifier "iVar2") (, ",") (pointer_expression "*(undefined4 *)(DAT_001cfd00 + 8)" (* "*") (cast_expression "(undefined4 *)(DAT_001cfd00 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_001cfd00 + 8)" (( "(") (binary_expression "DAT_001cfd00 + 8" (identifier "DAT_001cfd00") (+ "+") (number_literal "8")) () ")")))) () ")")))) (, ",") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      DAT_001cfc80 = param_1;\n      return;\n    }" ({ "{") (expression_statement "DAT_001cfc80 = param_1;" (assignment_expression "DAT_001cfc80 = param_1" (identifier "DAT_001cfc80") (= "=") (identifier "param_1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (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 var_3;
  int var_6;
  char *var_4;
  
  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(s->the_bfd);
      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)s->flags & 4) != 0) &&
        (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_6 = var_8(s->the_bfd);
    if ((var_6 != 0) && (var_6 = var_5(var_6,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: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator 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: (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: (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 (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: (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 (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (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))))

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

void MASKED(int param_1)

{
  uint uVar1;
  int iVar2;
  char *pcVar3;
  
  if ((DAT_001cfc80 != 0) &&
     (uVar1 = bfd_elf_get_dyn_lib_class(*(undefined4 *)(DAT_001cfc80 + 0x10)), (uVar1 & 1) == 0)) {
    return;
  }
  iVar2 = *(int *)(param_1 + 8);
  if ((iVar2 != 0) && (*(int *)(param_1 + 0x10) != 0)) {
    if (DAT_001cfc80 != 0) {
      uVar1 = bfd_elf_get_dyn_lib_class(*(int *)(param_1 + 0x10));
      if ((uVar1 & 1) != 0) {
        return;
      }
      iVar2 = *(int *)(param_1 + 8);
    }
    iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8));
    if (iVar2 == 0) {
      DAT_001cfc80 = param_1;
      return;
    }
    if ((((*(byte *)(param_1 + 0x24) & 4) != 0) &&
        (pcVar3 = strrchr(*(char **)(param_1 + 8),0x2f), pcVar3 != (char *)0x0)) &&
       (iVar2 = filename_cmp(pcVar3 + 1,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0)) {
      DAT_001cfc80 = param_1;
      return;
    }
    iVar2 = bfd_elf_get_dt_soname(*(undefined4 *)(param_1 + 0x10));
    if ((iVar2 != 0) && (iVar2 = filename_cmp(iVar2,*(undefined4 *)(DAT_001cfd00 + 8)), iVar2 == 0))
    {
      DAT_001cfc80 = param_1;
      return;
    }
  }
  return;
}

