
void gldelf_k1om_vercheck(lang_input_statement_type *s)

{
  bfd *pbVar1;
  char *__s;
  bfd_link_needed_list *pbVar2;
  int iVar3;
  long lVar4;
  char *pcVar5;
  
  if (((global_vercheck_failed != 0) || (pbVar1 = s->the_bfd, pbVar1 == (bfd *)0x0)) ||
     ((pbVar1->field_0x45 & 8) == 0)) {
    return;
  }
  lVar4 = bfd_elf_get_dt_soname(pbVar1);
  pbVar2 = global_vercheck_needed;
  if (lVar4 == 0) {
    lVar4 = lbasename(s->the_bfd->filename);
    pbVar2 = global_vercheck_needed;
  }
  do {
    if (pbVar2 == (bfd_link_needed_list *)0x0) {
      return;
    }
    iVar3 = filename_cmp(lVar4,pbVar2->name);
    if (iVar3 != 0) {
      __s = pbVar2->name;
      pcVar5 = strchr(__s,0x2f);
      if (((pcVar5 == (char *)0x0) && (pcVar5 = strstr(__s,".so."), pcVar5 != (char *)0x0)) &&
         (iVar3 = filename_ncmp(lVar4,__s,pcVar5 + (4 - (long)__s)), iVar3 == 0)) {
        global_vercheck_failed = 1;
        return;
      }
    }
    pbVar2 = pbVar2->next;
  } while( true );
}



void FUN_00143f90(long param_1)

{
  char *__s;
  undefined8 *puVar1;
  int iVar2;
  long lVar3;
  char *pcVar4;
  
  if (((DAT_002b5588 != 0) || (lVar3 = *(long *)(param_1 + 0x20), lVar3 == 0)) ||
     ((*(byte *)(lVar3 + 0x45) & 8) == 0)) {
    return;
  }
  lVar3 = bfd_elf_get_dt_soname(lVar3);
  puVar1 = DAT_002b5590;
  if (lVar3 == 0) {
    lVar3 = lbasename(**(undefined8 **)(param_1 + 0x20));
    puVar1 = DAT_002b5590;
  }
  do {
    if (puVar1 == (undefined8 *)0x0) {
      return;
    }
    iVar2 = filename_cmp(lVar3,puVar1[2]);
    if (iVar2 != 0) {
      __s = (char *)puVar1[2];
      pcVar4 = strchr(__s,0x2f);
      if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&
         (iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s)), iVar2 == 0)) {
        DAT_002b5588 = 1;
        return;
      }
    }
    puVar1 = (undefined8 *)*puVar1;
  } while( true );
}


MOV EAX,dword ptr [0x002b5588]
TEST EAX,EAX
JNZ 0x00143fa9
MOV RAX,qword ptr [RDI + 0x20]
TEST RAX,RAX
JZ 0x00143fa9
TEST byte ptr [RAX + 0x45],0x8
JNZ 0x00143fb0
RET
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
MOV RBX,RDI
MOV RDI,RAX
SUB RSP,0x8
CALL 0x0010d3d0
MOV R12,RAX
TEST RAX,RAX
JZ 0x00144060
MOV RBX,qword ptr [0x002b5590]
TEST RBX,RBX
JZ 0x0014404e
LEA R13,[0x19ffbc]
JMP 0x00143ff8
MOV RBX,qword ptr [RBX]
TEST RBX,RBX
JZ 0x0014404e
MOV RSI,qword ptr [RBX + 0x10]
MOV RDI,R12
CALL 0x0010d260
TEST EAX,EAX
JZ 0x00143ff0
MOV RBP,qword ptr [RBX + 0x10]
MOV ESI,0x2f
MOV RDI,RBP
CALL 0x0010d3a0
TEST RAX,RAX
JNZ 0x00143ff0
MOV RSI,R13
MOV RDI,RBP
CALL 0x0010dd40
TEST RAX,RAX
JZ 0x00143ff0
LEA RDX,[RAX + 0x4]
MOV RSI,RBP
MOV RDI,R12
SUB RDX,RBP
CALL 0x0010d460
TEST EAX,EAX
JNZ 0x00143ff0
MOV dword ptr [0x002b5588],0x1
ADD RSP,0x8
POP RBX
POP RBP
POP R12
POP R13
RET
MOV RAX,qword ptr [RBX + 0x20]
MOV RDI,qword ptr [RAX]
CALL 0x0010d610
MOV R12,RAX
JMP 0x00143fd1
(translation_unit "void FUN_00143f90(long param_1)\n\n{\n  char *__s;\n  undefined8 *puVar1;\n  int iVar2;\n  long lVar3;\n  char *pcVar4;\n  \n  if (((DAT_002b5588 != 0) || (lVar3 = *(long *)(param_1 + 0x20), lVar3 == 0)) ||\n     ((*(byte *)(lVar3 + 0x45) & 8) == 0)) {\n    return;\n  }\n  lVar3 = bfd_elf_get_dt_soname(lVar3);\n  puVar1 = DAT_002b5590;\n  if (lVar3 == 0) {\n    lVar3 = lbasename(**(undefined8 **)(param_1 + 0x20));\n    puVar1 = DAT_002b5590;\n  }\n  do {\n    if (puVar1 == (undefined8 *)0x0) {\n      return;\n    }\n    iVar2 = filename_cmp(lVar3,puVar1[2]);\n    if (iVar2 != 0) {\n      __s = (char *)puVar1[2];\n      pcVar4 = strchr(__s,0x2f);\n      if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n         (iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s)), iVar2 == 0)) {\n        DAT_002b5588 = 1;\n        return;\n      }\n    }\n    puVar1 = (undefined8 *)*puVar1;\n  } while( true );\n}\n\n" (function_definition "void FUN_00143f90(long param_1)\n\n{\n  char *__s;\n  undefined8 *puVar1;\n  int iVar2;\n  long lVar3;\n  char *pcVar4;\n  \n  if (((DAT_002b5588 != 0) || (lVar3 = *(long *)(param_1 + 0x20), lVar3 == 0)) ||\n     ((*(byte *)(lVar3 + 0x45) & 8) == 0)) {\n    return;\n  }\n  lVar3 = bfd_elf_get_dt_soname(lVar3);\n  puVar1 = DAT_002b5590;\n  if (lVar3 == 0) {\n    lVar3 = lbasename(**(undefined8 **)(param_1 + 0x20));\n    puVar1 = DAT_002b5590;\n  }\n  do {\n    if (puVar1 == (undefined8 *)0x0) {\n      return;\n    }\n    iVar2 = filename_cmp(lVar3,puVar1[2]);\n    if (iVar2 != 0) {\n      __s = (char *)puVar1[2];\n      pcVar4 = strchr(__s,0x2f);\n      if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n         (iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s)), iVar2 == 0)) {\n        DAT_002b5588 = 1;\n        return;\n      }\n    }\n    puVar1 = (undefined8 *)*puVar1;\n  } while( true );\n}" primitive_type (function_declarator "FUN_00143f90(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  char *__s;\n  undefined8 *puVar1;\n  int iVar2;\n  long lVar3;\n  char *pcVar4;\n  \n  if (((DAT_002b5588 != 0) || (lVar3 = *(long *)(param_1 + 0x20), lVar3 == 0)) ||\n     ((*(byte *)(lVar3 + 0x45) & 8) == 0)) {\n    return;\n  }\n  lVar3 = bfd_elf_get_dt_soname(lVar3);\n  puVar1 = DAT_002b5590;\n  if (lVar3 == 0) {\n    lVar3 = lbasename(**(undefined8 **)(param_1 + 0x20));\n    puVar1 = DAT_002b5590;\n  }\n  do {\n    if (puVar1 == (undefined8 *)0x0) {\n      return;\n    }\n    iVar2 = filename_cmp(lVar3,puVar1[2]);\n    if (iVar2 != 0) {\n      __s = (char *)puVar1[2];\n      pcVar4 = strchr(__s,0x2f);\n      if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n         (iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s)), iVar2 == 0)) {\n        DAT_002b5588 = 1;\n        return;\n      }\n    }\n    puVar1 = (undefined8 *)*puVar1;\n  } while( true );\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (if_statement "if (((DAT_002b5588 != 0) || (lVar3 = *(long *)(param_1 + 0x20), lVar3 == 0)) ||\n     ((*(byte *)(lVar3 + 0x45) & 8) == 0)) {\n    return;\n  }" if (parenthesized_expression "(((DAT_002b5588 != 0) || (lVar3 = *(long *)(param_1 + 0x20), lVar3 == 0)) ||\n     ((*(byte *)(lVar3 + 0x45) & 8) == 0))" ( (binary_expression "((DAT_002b5588 != 0) || (lVar3 = *(long *)(param_1 + 0x20), lVar3 == 0)) ||\n     ((*(byte *)(lVar3 + 0x45) & 8) == 0)" (parenthesized_expression "((DAT_002b5588 != 0) || (lVar3 = *(long *)(param_1 + 0x20), lVar3 == 0))" ( (binary_expression "(DAT_002b5588 != 0) || (lVar3 = *(long *)(param_1 + 0x20), lVar3 == 0)" (parenthesized_expression "(DAT_002b5588 != 0)" ( (binary_expression "DAT_002b5588 != 0" identifier != number_literal) )) || (parenthesized_expression "(lVar3 = *(long *)(param_1 + 0x20), lVar3 == 0)" ( (comma_expression "lVar3 = *(long *)(param_1 + 0x20), lVar3 == 0" (assignment_expression "lVar3 = *(long *)(param_1 + 0x20)" identifier = (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) ))))) , (binary_expression "lVar3 == 0" identifier == number_literal)) ))) )) || (parenthesized_expression "((*(byte *)(lVar3 + 0x45) & 8) == 0)" ( (binary_expression "(*(byte *)(lVar3 + 0x45) & 8) == 0" (parenthesized_expression "(*(byte *)(lVar3 + 0x45) & 8)" ( (binary_expression "*(byte *)(lVar3 + 0x45) & 8" (pointer_expression "*(byte *)(lVar3 + 0x45)" * (cast_expression "(byte *)(lVar3 + 0x45)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x45)" ( (binary_expression "lVar3 + 0x45" identifier + number_literal) )))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "lVar3 = bfd_elf_get_dt_soname(lVar3);" (assignment_expression "lVar3 = bfd_elf_get_dt_soname(lVar3)" identifier = (call_expression "bfd_elf_get_dt_soname(lVar3)" identifier (argument_list "(lVar3)" ( identifier )))) ;) (expression_statement "puVar1 = DAT_002b5590;" (assignment_expression "puVar1 = DAT_002b5590" identifier = identifier) ;) (if_statement "if (lVar3 == 0) {\n    lVar3 = lbasename(**(undefined8 **)(param_1 + 0x20));\n    puVar1 = DAT_002b5590;\n  }" if (parenthesized_expression "(lVar3 == 0)" ( (binary_expression "lVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    lVar3 = lbasename(**(undefined8 **)(param_1 + 0x20));\n    puVar1 = DAT_002b5590;\n  }" { (expression_statement "lVar3 = lbasename(**(undefined8 **)(param_1 + 0x20));" (assignment_expression "lVar3 = lbasename(**(undefined8 **)(param_1 + 0x20))" identifier = (call_expression "lbasename(**(undefined8 **)(param_1 + 0x20))" identifier (argument_list "(**(undefined8 **)(param_1 + 0x20))" ( (pointer_expression "**(undefined8 **)(param_1 + 0x20)" * (pointer_expression "*(undefined8 **)(param_1 + 0x20)" * (cast_expression "(undefined8 **)(param_1 + 0x20)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) )))) ;) (expression_statement "puVar1 = DAT_002b5590;" (assignment_expression "puVar1 = DAT_002b5590" identifier = identifier) ;) })) (do_statement "do {\n    if (puVar1 == (undefined8 *)0x0) {\n      return;\n    }\n    iVar2 = filename_cmp(lVar3,puVar1[2]);\n    if (iVar2 != 0) {\n      __s = (char *)puVar1[2];\n      pcVar4 = strchr(__s,0x2f);\n      if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n         (iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s)), iVar2 == 0)) {\n        DAT_002b5588 = 1;\n        return;\n      }\n    }\n    puVar1 = (undefined8 *)*puVar1;\n  } while( true );" do (compound_statement "{\n    if (puVar1 == (undefined8 *)0x0) {\n      return;\n    }\n    iVar2 = filename_cmp(lVar3,puVar1[2]);\n    if (iVar2 != 0) {\n      __s = (char *)puVar1[2];\n      pcVar4 = strchr(__s,0x2f);\n      if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n         (iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s)), iVar2 == 0)) {\n        DAT_002b5588 = 1;\n        return;\n      }\n    }\n    puVar1 = (undefined8 *)*puVar1;\n  }" { (if_statement "if (puVar1 == (undefined8 *)0x0) {\n      return;\n    }" if (parenthesized_expression "(puVar1 == (undefined8 *)0x0)" ( (binary_expression "puVar1 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "iVar2 = filename_cmp(lVar3,puVar1[2]);" (assignment_expression "iVar2 = filename_cmp(lVar3,puVar1[2])" identifier = (call_expression "filename_cmp(lVar3,puVar1[2])" identifier (argument_list "(lVar3,puVar1[2])" ( identifier , (subscript_expression "puVar1[2]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar2 != 0) {\n      __s = (char *)puVar1[2];\n      pcVar4 = strchr(__s,0x2f);\n      if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n         (iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s)), iVar2 == 0)) {\n        DAT_002b5588 = 1;\n        return;\n      }\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      __s = (char *)puVar1[2];\n      pcVar4 = strchr(__s,0x2f);\n      if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n         (iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s)), iVar2 == 0)) {\n        DAT_002b5588 = 1;\n        return;\n      }\n    }" { (expression_statement "__s = (char *)puVar1[2];" (assignment_expression "__s = (char *)puVar1[2]" identifier = (cast_expression "(char *)puVar1[2]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[2]" identifier [ number_literal ]))) ;) (expression_statement "pcVar4 = strchr(__s,0x2f);" (assignment_expression "pcVar4 = strchr(__s,0x2f)" identifier = (call_expression "strchr(__s,0x2f)" identifier (argument_list "(__s,0x2f)" ( identifier , number_literal )))) ;) (if_statement "if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n         (iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s)), iVar2 == 0)) {\n        DAT_002b5588 = 1;\n        return;\n      }" if (parenthesized_expression "(((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n         (iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s)), iVar2 == 0))" ( (binary_expression "((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n         (iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s)), iVar2 == 0)" (parenthesized_expression "((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0))" ( (binary_expression "(pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)" (parenthesized_expression "(pcVar4 == (char *)0x0)" ( (binary_expression "pcVar4 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)" ( (comma_expression "pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0" (assignment_expression "pcVar4 = strstr(__s,".so.")" identifier = (call_expression "strstr(__s,".so.")" identifier (argument_list "(__s,".so.")" ( identifier , (string_literal "".so."" " string_content ") )))) , (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) && (parenthesized_expression "(iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s)), iVar2 == 0)" ( (comma_expression "iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s)), iVar2 == 0" (assignment_expression "iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s))" identifier = (call_expression "filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s))" identifier (argument_list "(lVar3,__s,pcVar4 + (4 - (long)__s))" ( identifier , identifier , (binary_expression "pcVar4 + (4 - (long)__s)" identifier + (parenthesized_expression "(4 - (long)__s)" ( (binary_expression "4 - (long)__s" number_literal - (cast_expression "(long)__s" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n        DAT_002b5588 = 1;\n        return;\n      }" { (expression_statement "DAT_002b5588 = 1;" (assignment_expression "DAT_002b5588 = 1" identifier = number_literal) ;) (return_statement "return;" return ;) })) })) (expression_statement "puVar1 = (undefined8 *)*puVar1;" (assignment_expression "puVar1 = (undefined8 *)*puVar1" identifier = (cast_expression "(undefined8 *)*puVar1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "void gldelf_k1om_vercheck(lang_input_statement_type *s)\n\n{\n  bfd *pbVar1;\n  char *__s;\n  bfd_link_needed_list *pbVar2;\n  int iVar3;\n  long lVar4;\n  char *pcVar5;\n  \n  if (((global_vercheck_failed != 0) || (pbVar1 = s->the_bfd, pbVar1 == (bfd *)0x0)) ||\n     ((pbVar1->field_0x45 & 8) == 0)) {\n    return;\n  }\n  lVar4 = bfd_elf_get_dt_soname(pbVar1);\n  pbVar2 = global_vercheck_needed;\n  if (lVar4 == 0) {\n    lVar4 = lbasename(s->the_bfd->filename);\n    pbVar2 = global_vercheck_needed;\n  }\n  do {\n    if (pbVar2 == (bfd_link_needed_list *)0x0) {\n      return;\n    }\n    iVar3 = filename_cmp(lVar4,pbVar2->name);\n    if (iVar3 != 0) {\n      __s = pbVar2->name;\n      pcVar5 = strchr(__s,0x2f);\n      if (((pcVar5 == (char *)0x0) && (pcVar5 = strstr(__s,".so."), pcVar5 != (char *)0x0)) &&\n         (iVar3 = filename_ncmp(lVar4,__s,pcVar5 + (4 - (long)__s)), iVar3 == 0)) {\n        global_vercheck_failed = 1;\n        return;\n      }\n    }\n    pbVar2 = pbVar2->next;\n  } while( true );\n}\n\n" (function_definition "void gldelf_k1om_vercheck(lang_input_statement_type *s)\n\n{\n  bfd *pbVar1;\n  char *__s;\n  bfd_link_needed_list *pbVar2;\n  int iVar3;\n  long lVar4;\n  char *pcVar5;\n  \n  if (((global_vercheck_failed != 0) || (pbVar1 = s->the_bfd, pbVar1 == (bfd *)0x0)) ||\n     ((pbVar1->field_0x45 & 8) == 0)) {\n    return;\n  }\n  lVar4 = bfd_elf_get_dt_soname(pbVar1);\n  pbVar2 = global_vercheck_needed;\n  if (lVar4 == 0) {\n    lVar4 = lbasename(s->the_bfd->filename);\n    pbVar2 = global_vercheck_needed;\n  }\n  do {\n    if (pbVar2 == (bfd_link_needed_list *)0x0) {\n      return;\n    }\n    iVar3 = filename_cmp(lVar4,pbVar2->name);\n    if (iVar3 != 0) {\n      __s = pbVar2->name;\n      pcVar5 = strchr(__s,0x2f);\n      if (((pcVar5 == (char *)0x0) && (pcVar5 = strstr(__s,".so."), pcVar5 != (char *)0x0)) &&\n         (iVar3 = filename_ncmp(lVar4,__s,pcVar5 + (4 - (long)__s)), iVar3 == 0)) {\n        global_vercheck_failed = 1;\n        return;\n      }\n    }\n    pbVar2 = pbVar2->next;\n  } while( true );\n}" primitive_type (function_declarator "gldelf_k1om_vercheck(lang_input_statement_type *s)" identifier (parameter_list "(lang_input_statement_type *s)" ( (parameter_declaration "lang_input_statement_type *s" type_identifier (pointer_declarator "*s" * identifier)) ))) (compound_statement "{\n  bfd *pbVar1;\n  char *__s;\n  bfd_link_needed_list *pbVar2;\n  int iVar3;\n  long lVar4;\n  char *pcVar5;\n  \n  if (((global_vercheck_failed != 0) || (pbVar1 = s->the_bfd, pbVar1 == (bfd *)0x0)) ||\n     ((pbVar1->field_0x45 & 8) == 0)) {\n    return;\n  }\n  lVar4 = bfd_elf_get_dt_soname(pbVar1);\n  pbVar2 = global_vercheck_needed;\n  if (lVar4 == 0) {\n    lVar4 = lbasename(s->the_bfd->filename);\n    pbVar2 = global_vercheck_needed;\n  }\n  do {\n    if (pbVar2 == (bfd_link_needed_list *)0x0) {\n      return;\n    }\n    iVar3 = filename_cmp(lVar4,pbVar2->name);\n    if (iVar3 != 0) {\n      __s = pbVar2->name;\n      pcVar5 = strchr(__s,0x2f);\n      if (((pcVar5 == (char *)0x0) && (pcVar5 = strstr(__s,".so."), pcVar5 != (char *)0x0)) &&\n         (iVar3 = filename_ncmp(lVar4,__s,pcVar5 + (4 - (long)__s)), iVar3 == 0)) {\n        global_vercheck_failed = 1;\n        return;\n      }\n    }\n    pbVar2 = pbVar2->next;\n  } while( true );\n}" { (declaration "bfd *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "bfd_link_needed_list *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (if_statement "if (((global_vercheck_failed != 0) || (pbVar1 = s->the_bfd, pbVar1 == (bfd *)0x0)) ||\n     ((pbVar1->field_0x45 & 8) == 0)) {\n    return;\n  }" if (parenthesized_expression "(((global_vercheck_failed != 0) || (pbVar1 = s->the_bfd, pbVar1 == (bfd *)0x0)) ||\n     ((pbVar1->field_0x45 & 8) == 0))" ( (binary_expression "((global_vercheck_failed != 0) || (pbVar1 = s->the_bfd, pbVar1 == (bfd *)0x0)) ||\n     ((pbVar1->field_0x45 & 8) == 0)" (parenthesized_expression "((global_vercheck_failed != 0) || (pbVar1 = s->the_bfd, pbVar1 == (bfd *)0x0))" ( (binary_expression "(global_vercheck_failed != 0) || (pbVar1 = s->the_bfd, pbVar1 == (bfd *)0x0)" (parenthesized_expression "(global_vercheck_failed != 0)" ( (binary_expression "global_vercheck_failed != 0" identifier != number_literal) )) || (parenthesized_expression "(pbVar1 = s->the_bfd, pbVar1 == (bfd *)0x0)" ( (comma_expression "pbVar1 = s->the_bfd, pbVar1 == (bfd *)0x0" (assignment_expression "pbVar1 = s->the_bfd" identifier = (field_expression "s->the_bfd" identifier -> field_identifier)) , (binary_expression "pbVar1 == (bfd *)0x0" identifier == (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) || (parenthesized_expression "((pbVar1->field_0x45 & 8) == 0)" ( (binary_expression "(pbVar1->field_0x45 & 8) == 0" (parenthesized_expression "(pbVar1->field_0x45 & 8)" ( (binary_expression "pbVar1->field_0x45 & 8" (field_expression "pbVar1->field_0x45" identifier -> field_identifier) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "lVar4 = bfd_elf_get_dt_soname(pbVar1);" (assignment_expression "lVar4 = bfd_elf_get_dt_soname(pbVar1)" identifier = (call_expression "bfd_elf_get_dt_soname(pbVar1)" identifier (argument_list "(pbVar1)" ( identifier )))) ;) (expression_statement "pbVar2 = global_vercheck_needed;" (assignment_expression "pbVar2 = global_vercheck_needed" identifier = identifier) ;) (if_statement "if (lVar4 == 0) {\n    lVar4 = lbasename(s->the_bfd->filename);\n    pbVar2 = global_vercheck_needed;\n  }" if (parenthesized_expression "(lVar4 == 0)" ( (binary_expression "lVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    lVar4 = lbasename(s->the_bfd->filename);\n    pbVar2 = global_vercheck_needed;\n  }" { (expression_statement "lVar4 = lbasename(s->the_bfd->filename);" (assignment_expression "lVar4 = lbasename(s->the_bfd->filename)" identifier = (call_expression "lbasename(s->the_bfd->filename)" identifier (argument_list "(s->the_bfd->filename)" ( (field_expression "s->the_bfd->filename" (field_expression "s->the_bfd" identifier -> field_identifier) -> field_identifier) )))) ;) (expression_statement "pbVar2 = global_vercheck_needed;" (assignment_expression "pbVar2 = global_vercheck_needed" identifier = identifier) ;) })) (do_statement "do {\n    if (pbVar2 == (bfd_link_needed_list *)0x0) {\n      return;\n    }\n    iVar3 = filename_cmp(lVar4,pbVar2->name);\n    if (iVar3 != 0) {\n      __s = pbVar2->name;\n      pcVar5 = strchr(__s,0x2f);\n      if (((pcVar5 == (char *)0x0) && (pcVar5 = strstr(__s,".so."), pcVar5 != (char *)0x0)) &&\n         (iVar3 = filename_ncmp(lVar4,__s,pcVar5 + (4 - (long)__s)), iVar3 == 0)) {\n        global_vercheck_failed = 1;\n        return;\n      }\n    }\n    pbVar2 = pbVar2->next;\n  } while( true );" do (compound_statement "{\n    if (pbVar2 == (bfd_link_needed_list *)0x0) {\n      return;\n    }\n    iVar3 = filename_cmp(lVar4,pbVar2->name);\n    if (iVar3 != 0) {\n      __s = pbVar2->name;\n      pcVar5 = strchr(__s,0x2f);\n      if (((pcVar5 == (char *)0x0) && (pcVar5 = strstr(__s,".so."), pcVar5 != (char *)0x0)) &&\n         (iVar3 = filename_ncmp(lVar4,__s,pcVar5 + (4 - (long)__s)), iVar3 == 0)) {\n        global_vercheck_failed = 1;\n        return;\n      }\n    }\n    pbVar2 = pbVar2->next;\n  }" { (if_statement "if (pbVar2 == (bfd_link_needed_list *)0x0) {\n      return;\n    }" if (parenthesized_expression "(pbVar2 == (bfd_link_needed_list *)0x0)" ( (binary_expression "pbVar2 == (bfd_link_needed_list *)0x0" identifier == (cast_expression "(bfd_link_needed_list *)0x0" ( (type_descriptor "bfd_link_needed_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "iVar3 = filename_cmp(lVar4,pbVar2->name);" (assignment_expression "iVar3 = filename_cmp(lVar4,pbVar2->name)" identifier = (call_expression "filename_cmp(lVar4,pbVar2->name)" identifier (argument_list "(lVar4,pbVar2->name)" ( identifier , (field_expression "pbVar2->name" identifier -> field_identifier) )))) ;) (if_statement "if (iVar3 != 0) {\n      __s = pbVar2->name;\n      pcVar5 = strchr(__s,0x2f);\n      if (((pcVar5 == (char *)0x0) && (pcVar5 = strstr(__s,".so."), pcVar5 != (char *)0x0)) &&\n         (iVar3 = filename_ncmp(lVar4,__s,pcVar5 + (4 - (long)__s)), iVar3 == 0)) {\n        global_vercheck_failed = 1;\n        return;\n      }\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      __s = pbVar2->name;\n      pcVar5 = strchr(__s,0x2f);\n      if (((pcVar5 == (char *)0x0) && (pcVar5 = strstr(__s,".so."), pcVar5 != (char *)0x0)) &&\n         (iVar3 = filename_ncmp(lVar4,__s,pcVar5 + (4 - (long)__s)), iVar3 == 0)) {\n        global_vercheck_failed = 1;\n        return;\n      }\n    }" { (expression_statement "__s = pbVar2->name;" (assignment_expression "__s = pbVar2->name" identifier = (field_expression "pbVar2->name" identifier -> field_identifier)) ;) (expression_statement "pcVar5 = strchr(__s,0x2f);" (assignment_expression "pcVar5 = strchr(__s,0x2f)" identifier = (call_expression "strchr(__s,0x2f)" identifier (argument_list "(__s,0x2f)" ( identifier , number_literal )))) ;) (if_statement "if (((pcVar5 == (char *)0x0) && (pcVar5 = strstr(__s,".so."), pcVar5 != (char *)0x0)) &&\n         (iVar3 = filename_ncmp(lVar4,__s,pcVar5 + (4 - (long)__s)), iVar3 == 0)) {\n        global_vercheck_failed = 1;\n        return;\n      }" if (parenthesized_expression "(((pcVar5 == (char *)0x0) && (pcVar5 = strstr(__s,".so."), pcVar5 != (char *)0x0)) &&\n         (iVar3 = filename_ncmp(lVar4,__s,pcVar5 + (4 - (long)__s)), iVar3 == 0))" ( (binary_expression "((pcVar5 == (char *)0x0) && (pcVar5 = strstr(__s,".so."), pcVar5 != (char *)0x0)) &&\n         (iVar3 = filename_ncmp(lVar4,__s,pcVar5 + (4 - (long)__s)), iVar3 == 0)" (parenthesized_expression "((pcVar5 == (char *)0x0) && (pcVar5 = strstr(__s,".so."), pcVar5 != (char *)0x0))" ( (binary_expression "(pcVar5 == (char *)0x0) && (pcVar5 = strstr(__s,".so."), pcVar5 != (char *)0x0)" (parenthesized_expression "(pcVar5 == (char *)0x0)" ( (binary_expression "pcVar5 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pcVar5 = strstr(__s,".so."), pcVar5 != (char *)0x0)" ( (comma_expression "pcVar5 = strstr(__s,".so."), pcVar5 != (char *)0x0" (assignment_expression "pcVar5 = strstr(__s,".so.")" identifier = (call_expression "strstr(__s,".so.")" identifier (argument_list "(__s,".so.")" ( identifier , (string_literal "".so."" " string_content ") )))) , (binary_expression "pcVar5 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) && (parenthesized_expression "(iVar3 = filename_ncmp(lVar4,__s,pcVar5 + (4 - (long)__s)), iVar3 == 0)" ( (comma_expression "iVar3 = filename_ncmp(lVar4,__s,pcVar5 + (4 - (long)__s)), iVar3 == 0" (assignment_expression "iVar3 = filename_ncmp(lVar4,__s,pcVar5 + (4 - (long)__s))" identifier = (call_expression "filename_ncmp(lVar4,__s,pcVar5 + (4 - (long)__s))" identifier (argument_list "(lVar4,__s,pcVar5 + (4 - (long)__s))" ( identifier , identifier , (binary_expression "pcVar5 + (4 - (long)__s)" identifier + (parenthesized_expression "(4 - (long)__s)" ( (binary_expression "4 - (long)__s" number_literal - (cast_expression "(long)__s" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n        global_vercheck_failed = 1;\n        return;\n      }" { (expression_statement "global_vercheck_failed = 1;" (assignment_expression "global_vercheck_failed = 1" identifier = number_literal) ;) (return_statement "return;" return ;) })) })) (expression_statement "pbVar2 = pbVar2->next;" (assignment_expression "pbVar2 = pbVar2->next" identifier = (field_expression "pbVar2->next" identifier -> field_identifier)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "void FUN_00143f90(long param_1)\n\n{\n  char *__s;\n  undefined8 *puVar1;\n  int iVar2;\n  long lVar3;\n  char *pcVar4;\n  \n  if (((DAT_002b5588 != 0) || (lVar3 = *(long *)(param_1 + 0x20), lVar3 == 0)) ||\n     ((*(byte *)(lVar3 + 0x45) & 8) == 0)) {\n    return;\n  }\n  lVar3 = bfd_elf_get_dt_soname(lVar3);\n  puVar1 = DAT_002b5590;\n  if (lVar3 == 0) {\n    lVar3 = lbasename(**(undefined8 **)(param_1 + 0x20));\n    puVar1 = DAT_002b5590;\n  }\n  do {\n    if (puVar1 == (undefined8 *)0x0) {\n      return;\n    }\n    iVar2 = filename_cmp(lVar3,puVar1[2]);\n    if (iVar2 != 0) {\n      __s = (char *)puVar1[2];\n      pcVar4 = strchr(__s,0x2f);\n      if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n         (iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s)), iVar2 == 0)) {\n        DAT_002b5588 = 1;\n        return;\n      }\n    }\n    puVar1 = (undefined8 *)*puVar1;\n  } while( true );\n}\n\n" (function_definition "void FUN_00143f90(long param_1)\n\n{\n  char *__s;\n  undefined8 *puVar1;\n  int iVar2;\n  long lVar3;\n  char *pcVar4;\n  \n  if (((DAT_002b5588 != 0) || (lVar3 = *(long *)(param_1 + 0x20), lVar3 == 0)) ||\n     ((*(byte *)(lVar3 + 0x45) & 8) == 0)) {\n    return;\n  }\n  lVar3 = bfd_elf_get_dt_soname(lVar3);\n  puVar1 = DAT_002b5590;\n  if (lVar3 == 0) {\n    lVar3 = lbasename(**(undefined8 **)(param_1 + 0x20));\n    puVar1 = DAT_002b5590;\n  }\n  do {\n    if (puVar1 == (undefined8 *)0x0) {\n      return;\n    }\n    iVar2 = filename_cmp(lVar3,puVar1[2]);\n    if (iVar2 != 0) {\n      __s = (char *)puVar1[2];\n      pcVar4 = strchr(__s,0x2f);\n      if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n         (iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s)), iVar2 == 0)) {\n        DAT_002b5588 = 1;\n        return;\n      }\n    }\n    puVar1 = (undefined8 *)*puVar1;\n  } while( true );\n}" primitive_type (function_declarator "FUN_00143f90(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  char *__s;\n  undefined8 *puVar1;\n  int iVar2;\n  long lVar3;\n  char *pcVar4;\n  \n  if (((DAT_002b5588 != 0) || (lVar3 = *(long *)(param_1 + 0x20), lVar3 == 0)) ||\n     ((*(byte *)(lVar3 + 0x45) & 8) == 0)) {\n    return;\n  }\n  lVar3 = bfd_elf_get_dt_soname(lVar3);\n  puVar1 = DAT_002b5590;\n  if (lVar3 == 0) {\n    lVar3 = lbasename(**(undefined8 **)(param_1 + 0x20));\n    puVar1 = DAT_002b5590;\n  }\n  do {\n    if (puVar1 == (undefined8 *)0x0) {\n      return;\n    }\n    iVar2 = filename_cmp(lVar3,puVar1[2]);\n    if (iVar2 != 0) {\n      __s = (char *)puVar1[2];\n      pcVar4 = strchr(__s,0x2f);\n      if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n         (iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s)), iVar2 == 0)) {\n        DAT_002b5588 = 1;\n        return;\n      }\n    }\n    puVar1 = (undefined8 *)*puVar1;\n  } while( true );\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (if_statement "if (((DAT_002b5588 != 0) || (lVar3 = *(long *)(param_1 + 0x20), lVar3 == 0)) ||\n     ((*(byte *)(lVar3 + 0x45) & 8) == 0)) {\n    return;\n  }" if (parenthesized_expression "(((DAT_002b5588 != 0) || (lVar3 = *(long *)(param_1 + 0x20), lVar3 == 0)) ||\n     ((*(byte *)(lVar3 + 0x45) & 8) == 0))" ( (binary_expression "((DAT_002b5588 != 0) || (lVar3 = *(long *)(param_1 + 0x20), lVar3 == 0)) ||\n     ((*(byte *)(lVar3 + 0x45) & 8) == 0)" (parenthesized_expression "((DAT_002b5588 != 0) || (lVar3 = *(long *)(param_1 + 0x20), lVar3 == 0))" ( (binary_expression "(DAT_002b5588 != 0) || (lVar3 = *(long *)(param_1 + 0x20), lVar3 == 0)" (parenthesized_expression "(DAT_002b5588 != 0)" ( (binary_expression "DAT_002b5588 != 0" identifier != number_literal) )) || (parenthesized_expression "(lVar3 = *(long *)(param_1 + 0x20), lVar3 == 0)" ( (comma_expression "lVar3 = *(long *)(param_1 + 0x20), lVar3 == 0" (assignment_expression "lVar3 = *(long *)(param_1 + 0x20)" identifier = (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) ))))) , (binary_expression "lVar3 == 0" identifier == number_literal)) ))) )) || (parenthesized_expression "((*(byte *)(lVar3 + 0x45) & 8) == 0)" ( (binary_expression "(*(byte *)(lVar3 + 0x45) & 8) == 0" (parenthesized_expression "(*(byte *)(lVar3 + 0x45) & 8)" ( (binary_expression "*(byte *)(lVar3 + 0x45) & 8" (pointer_expression "*(byte *)(lVar3 + 0x45)" * (cast_expression "(byte *)(lVar3 + 0x45)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x45)" ( (binary_expression "lVar3 + 0x45" identifier + number_literal) )))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "lVar3 = bfd_elf_get_dt_soname(lVar3);" (assignment_expression "lVar3 = bfd_elf_get_dt_soname(lVar3)" identifier = (call_expression "bfd_elf_get_dt_soname(lVar3)" identifier (argument_list "(lVar3)" ( identifier )))) ;) (expression_statement "puVar1 = DAT_002b5590;" (assignment_expression "puVar1 = DAT_002b5590" identifier = identifier) ;) (if_statement "if (lVar3 == 0) {\n    lVar3 = lbasename(**(undefined8 **)(param_1 + 0x20));\n    puVar1 = DAT_002b5590;\n  }" if (parenthesized_expression "(lVar3 == 0)" ( (binary_expression "lVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    lVar3 = lbasename(**(undefined8 **)(param_1 + 0x20));\n    puVar1 = DAT_002b5590;\n  }" { (expression_statement "lVar3 = lbasename(**(undefined8 **)(param_1 + 0x20));" (assignment_expression "lVar3 = lbasename(**(undefined8 **)(param_1 + 0x20))" identifier = (call_expression "lbasename(**(undefined8 **)(param_1 + 0x20))" identifier (argument_list "(**(undefined8 **)(param_1 + 0x20))" ( (pointer_expression "**(undefined8 **)(param_1 + 0x20)" * (pointer_expression "*(undefined8 **)(param_1 + 0x20)" * (cast_expression "(undefined8 **)(param_1 + 0x20)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) )))) ;) (expression_statement "puVar1 = DAT_002b5590;" (assignment_expression "puVar1 = DAT_002b5590" identifier = identifier) ;) })) (do_statement "do {\n    if (puVar1 == (undefined8 *)0x0) {\n      return;\n    }\n    iVar2 = filename_cmp(lVar3,puVar1[2]);\n    if (iVar2 != 0) {\n      __s = (char *)puVar1[2];\n      pcVar4 = strchr(__s,0x2f);\n      if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n         (iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s)), iVar2 == 0)) {\n        DAT_002b5588 = 1;\n        return;\n      }\n    }\n    puVar1 = (undefined8 *)*puVar1;\n  } while( true );" do (compound_statement "{\n    if (puVar1 == (undefined8 *)0x0) {\n      return;\n    }\n    iVar2 = filename_cmp(lVar3,puVar1[2]);\n    if (iVar2 != 0) {\n      __s = (char *)puVar1[2];\n      pcVar4 = strchr(__s,0x2f);\n      if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n         (iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s)), iVar2 == 0)) {\n        DAT_002b5588 = 1;\n        return;\n      }\n    }\n    puVar1 = (undefined8 *)*puVar1;\n  }" { (if_statement "if (puVar1 == (undefined8 *)0x0) {\n      return;\n    }" if (parenthesized_expression "(puVar1 == (undefined8 *)0x0)" ( (binary_expression "puVar1 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "iVar2 = filename_cmp(lVar3,puVar1[2]);" (assignment_expression "iVar2 = filename_cmp(lVar3,puVar1[2])" identifier = (call_expression "filename_cmp(lVar3,puVar1[2])" identifier (argument_list "(lVar3,puVar1[2])" ( identifier , (subscript_expression "puVar1[2]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar2 != 0) {\n      __s = (char *)puVar1[2];\n      pcVar4 = strchr(__s,0x2f);\n      if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n         (iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s)), iVar2 == 0)) {\n        DAT_002b5588 = 1;\n        return;\n      }\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      __s = (char *)puVar1[2];\n      pcVar4 = strchr(__s,0x2f);\n      if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n         (iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s)), iVar2 == 0)) {\n        DAT_002b5588 = 1;\n        return;\n      }\n    }" { (expression_statement "__s = (char *)puVar1[2];" (assignment_expression "__s = (char *)puVar1[2]" identifier = (cast_expression "(char *)puVar1[2]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[2]" identifier [ number_literal ]))) ;) (expression_statement "pcVar4 = strchr(__s,0x2f);" (assignment_expression "pcVar4 = strchr(__s,0x2f)" identifier = (call_expression "strchr(__s,0x2f)" identifier (argument_list "(__s,0x2f)" ( identifier , number_literal )))) ;) (if_statement "if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n         (iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s)), iVar2 == 0)) {\n        DAT_002b5588 = 1;\n        return;\n      }" if (parenthesized_expression "(((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n         (iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s)), iVar2 == 0))" ( (binary_expression "((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n         (iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s)), iVar2 == 0)" (parenthesized_expression "((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0))" ( (binary_expression "(pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)" (parenthesized_expression "(pcVar4 == (char *)0x0)" ( (binary_expression "pcVar4 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)" ( (comma_expression "pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0" (assignment_expression "pcVar4 = strstr(__s,".so.")" identifier = (call_expression "strstr(__s,".so.")" identifier (argument_list "(__s,".so.")" ( identifier , (string_literal "".so."" " string_content ") )))) , (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) && (parenthesized_expression "(iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s)), iVar2 == 0)" ( (comma_expression "iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s)), iVar2 == 0" (assignment_expression "iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s))" identifier = (call_expression "filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s))" identifier (argument_list "(lVar3,__s,pcVar4 + (4 - (long)__s))" ( identifier , identifier , (binary_expression "pcVar4 + (4 - (long)__s)" identifier + (parenthesized_expression "(4 - (long)__s)" ( (binary_expression "4 - (long)__s" number_literal - (cast_expression "(long)__s" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n        DAT_002b5588 = 1;\n        return;\n      }" { (expression_statement "DAT_002b5588 = 1;" (assignment_expression "DAT_002b5588 = 1" identifier = number_literal) ;) (return_statement "return;" return ;) })) })) (expression_statement "puVar1 = (undefined8 *)*puVar1;" (assignment_expression "puVar1 = (undefined8 *)*puVar1" identifier = (cast_expression "(undefined8 *)*puVar1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , (binary_expression IDENT == LIT)) ))) )) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) ))) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") )))) , (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression IDENT + (parenthesized_expression ( (binary_expression LIT - (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ))) )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (return_statement return ;) })) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "void FUN_00143f90(long param_1)\n\n{\n  char *__s;\n  undefined8 *puVar1;\n  int iVar2;\n  long lVar3;\n  char *pcVar4;\n  \n  if (((DAT_002b5588 != 0) || (lVar3 = *(long *)(param_1 + 0x20), lVar3 == 0)) ||\n     ((*(byte *)(lVar3 + 0x45) & 8) == 0)) {\n    return;\n  }\n  lVar3 = bfd_elf_get_dt_soname(lVar3);\n  puVar1 = DAT_002b5590;\n  if (lVar3 == 0) {\n    lVar3 = lbasename(**(undefined8 **)(param_1 + 0x20));\n    puVar1 = DAT_002b5590;\n  }\n  do {\n    if (puVar1 == (undefined8 *)0x0) {\n      return;\n    }\n    iVar2 = filename_cmp(lVar3,puVar1[2]);\n    if (iVar2 != 0) {\n      __s = (char *)puVar1[2];\n      pcVar4 = strchr(__s,0x2f);\n      if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n         (iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s)), iVar2 == 0)) {\n        DAT_002b5588 = 1;\n        return;\n      }\n    }\n    puVar1 = (undefined8 *)*puVar1;\n  } while( true );\n}" (primitive_type "void") (function_declarator "FUN_00143f90(long param_1)" (identifier "FUN_00143f90") (parameter_list "(long param_1)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) () ")"))) (compound_statement "{\n  char *__s;\n  undefined8 *puVar1;\n  int iVar2;\n  long lVar3;\n  char *pcVar4;\n  \n  if (((DAT_002b5588 != 0) || (lVar3 = *(long *)(param_1 + 0x20), lVar3 == 0)) ||\n     ((*(byte *)(lVar3 + 0x45) & 8) == 0)) {\n    return;\n  }\n  lVar3 = bfd_elf_get_dt_soname(lVar3);\n  puVar1 = DAT_002b5590;\n  if (lVar3 == 0) {\n    lVar3 = lbasename(**(undefined8 **)(param_1 + 0x20));\n    puVar1 = DAT_002b5590;\n  }\n  do {\n    if (puVar1 == (undefined8 *)0x0) {\n      return;\n    }\n    iVar2 = filename_cmp(lVar3,puVar1[2]);\n    if (iVar2 != 0) {\n      __s = (char *)puVar1[2];\n      pcVar4 = strchr(__s,0x2f);\n      if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n         (iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s)), iVar2 == 0)) {\n        DAT_002b5588 = 1;\n        return;\n      }\n    }\n    puVar1 = (undefined8 *)*puVar1;\n  } while( true );\n}" ({ "{") (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "undefined8 *puVar1;" (type_identifier "undefined8") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (if_statement "if (((DAT_002b5588 != 0) || (lVar3 = *(long *)(param_1 + 0x20), lVar3 == 0)) ||\n     ((*(byte *)(lVar3 + 0x45) & 8) == 0)) {\n    return;\n  }" (if "if") (parenthesized_expression "(((DAT_002b5588 != 0) || (lVar3 = *(long *)(param_1 + 0x20), lVar3 == 0)) ||\n     ((*(byte *)(lVar3 + 0x45) & 8) == 0))" (( "(") (binary_expression "((DAT_002b5588 != 0) || (lVar3 = *(long *)(param_1 + 0x20), lVar3 == 0)) ||\n     ((*(byte *)(lVar3 + 0x45) & 8) == 0)" (parenthesized_expression "((DAT_002b5588 != 0) || (lVar3 = *(long *)(param_1 + 0x20), lVar3 == 0))" (( "(") (binary_expression "(DAT_002b5588 != 0) || (lVar3 = *(long *)(param_1 + 0x20), lVar3 == 0)" (parenthesized_expression "(DAT_002b5588 != 0)" (( "(") (binary_expression "DAT_002b5588 != 0" (identifier "DAT_002b5588") (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(lVar3 = *(long *)(param_1 + 0x20), lVar3 == 0)" (( "(") (comma_expression "lVar3 = *(long *)(param_1 + 0x20), lVar3 == 0" (assignment_expression "lVar3 = *(long *)(param_1 + 0x20)" (identifier "lVar3") (= "=") (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")) () ")"))))) (, ",") (binary_expression "lVar3 == 0" (identifier "lVar3") (== "==") (number_literal "0"))) () ")"))) () ")")) (|| "||") (parenthesized_expression "((*(byte *)(lVar3 + 0x45) & 8) == 0)" (( "(") (binary_expression "(*(byte *)(lVar3 + 0x45) & 8) == 0" (parenthesized_expression "(*(byte *)(lVar3 + 0x45) & 8)" (( "(") (binary_expression "*(byte *)(lVar3 + 0x45) & 8" (pointer_expression "*(byte *)(lVar3 + 0x45)" (* "*") (cast_expression "(byte *)(lVar3 + 0x45)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x45)" (( "(") (binary_expression "lVar3 + 0x45" (identifier "lVar3") (+ "+") (number_literal "0x45")) () ")")))) (& "&") (number_literal "8")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "lVar3 = bfd_elf_get_dt_soname(lVar3);" (assignment_expression "lVar3 = bfd_elf_get_dt_soname(lVar3)" (identifier "lVar3") (= "=") (call_expression "bfd_elf_get_dt_soname(lVar3)" (identifier "bfd_elf_get_dt_soname") (argument_list "(lVar3)" (( "(") (identifier "lVar3") () ")")))) (; ";")) (expression_statement "puVar1 = DAT_002b5590;" (assignment_expression "puVar1 = DAT_002b5590" (identifier "puVar1") (= "=") (identifier "DAT_002b5590")) (; ";")) (if_statement "if (lVar3 == 0) {\n    lVar3 = lbasename(**(undefined8 **)(param_1 + 0x20));\n    puVar1 = DAT_002b5590;\n  }" (if "if") (parenthesized_expression "(lVar3 == 0)" (( "(") (binary_expression "lVar3 == 0" (identifier "lVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    lVar3 = lbasename(**(undefined8 **)(param_1 + 0x20));\n    puVar1 = DAT_002b5590;\n  }" ({ "{") (expression_statement "lVar3 = lbasename(**(undefined8 **)(param_1 + 0x20));" (assignment_expression "lVar3 = lbasename(**(undefined8 **)(param_1 + 0x20))" (identifier "lVar3") (= "=") (call_expression "lbasename(**(undefined8 **)(param_1 + 0x20))" (identifier "lbasename") (argument_list "(**(undefined8 **)(param_1 + 0x20))" (( "(") (pointer_expression "**(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 "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")"))))) () ")")))) (; ";")) (expression_statement "puVar1 = DAT_002b5590;" (assignment_expression "puVar1 = DAT_002b5590" (identifier "puVar1") (= "=") (identifier "DAT_002b5590")) (; ";")) (} "}"))) (do_statement "do {\n    if (puVar1 == (undefined8 *)0x0) {\n      return;\n    }\n    iVar2 = filename_cmp(lVar3,puVar1[2]);\n    if (iVar2 != 0) {\n      __s = (char *)puVar1[2];\n      pcVar4 = strchr(__s,0x2f);\n      if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n         (iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s)), iVar2 == 0)) {\n        DAT_002b5588 = 1;\n        return;\n      }\n    }\n    puVar1 = (undefined8 *)*puVar1;\n  } while( true );" (do "do") (compound_statement "{\n    if (puVar1 == (undefined8 *)0x0) {\n      return;\n    }\n    iVar2 = filename_cmp(lVar3,puVar1[2]);\n    if (iVar2 != 0) {\n      __s = (char *)puVar1[2];\n      pcVar4 = strchr(__s,0x2f);\n      if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n         (iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s)), iVar2 == 0)) {\n        DAT_002b5588 = 1;\n        return;\n      }\n    }\n    puVar1 = (undefined8 *)*puVar1;\n  }" ({ "{") (if_statement "if (puVar1 == (undefined8 *)0x0) {\n      return;\n    }" (if "if") (parenthesized_expression "(puVar1 == (undefined8 *)0x0)" (( "(") (binary_expression "puVar1 == (undefined8 *)0x0" (identifier "puVar1") (== "==") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar2 = filename_cmp(lVar3,puVar1[2]);" (assignment_expression "iVar2 = filename_cmp(lVar3,puVar1[2])" (identifier "iVar2") (= "=") (call_expression "filename_cmp(lVar3,puVar1[2])" (identifier "filename_cmp") (argument_list "(lVar3,puVar1[2])" (( "(") (identifier "lVar3") (, ",") (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n      __s = (char *)puVar1[2];\n      pcVar4 = strchr(__s,0x2f);\n      if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n         (iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s)), iVar2 == 0)) {\n        DAT_002b5588 = 1;\n        return;\n      }\n    }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      __s = (char *)puVar1[2];\n      pcVar4 = strchr(__s,0x2f);\n      if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n         (iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s)), iVar2 == 0)) {\n        DAT_002b5588 = 1;\n        return;\n      }\n    }" ({ "{") (expression_statement "__s = (char *)puVar1[2];" (assignment_expression "__s = (char *)puVar1[2]" (identifier "__s") (= "=") (cast_expression "(char *)puVar1[2]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "pcVar4 = strchr(__s,0x2f);" (assignment_expression "pcVar4 = strchr(__s,0x2f)" (identifier "pcVar4") (= "=") (call_expression "strchr(__s,0x2f)" (identifier "strchr") (argument_list "(__s,0x2f)" (( "(") (identifier "__s") (, ",") (number_literal "0x2f") () ")")))) (; ";")) (if_statement "if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n         (iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s)), iVar2 == 0)) {\n        DAT_002b5588 = 1;\n        return;\n      }" (if "if") (parenthesized_expression "(((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n         (iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s)), iVar2 == 0))" (( "(") (binary_expression "((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n         (iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s)), iVar2 == 0)" (parenthesized_expression "((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0))" (( "(") (binary_expression "(pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)" (parenthesized_expression "(pcVar4 == (char *)0x0)" (( "(") (binary_expression "pcVar4 == (char *)0x0" (identifier "pcVar4") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)" (( "(") (comma_expression "pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0" (assignment_expression "pcVar4 = strstr(__s,".so.")" (identifier "pcVar4") (= "=") (call_expression "strstr(__s,".so.")" (identifier "strstr") (argument_list "(__s,".so.")" (( "(") (identifier "__s") (, ",") (string_literal "".so."" (" """) (string_content ".so.") (" """)) () ")")))) (, ",") (binary_expression "pcVar4 != (char *)0x0" (identifier "pcVar4") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s)), iVar2 == 0)" (( "(") (comma_expression "iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s)), iVar2 == 0" (assignment_expression "iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s))" (identifier "iVar2") (= "=") (call_expression "filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s))" (identifier "filename_ncmp") (argument_list "(lVar3,__s,pcVar4 + (4 - (long)__s))" (( "(") (identifier "lVar3") (, ",") (identifier "__s") (, ",") (binary_expression "pcVar4 + (4 - (long)__s)" (identifier "pcVar4") (+ "+") (parenthesized_expression "(4 - (long)__s)" (( "(") (binary_expression "4 - (long)__s" (number_literal "4") (- "-") (cast_expression "(long)__s" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "__s"))) () ")"))) () ")")))) (, ",") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n        DAT_002b5588 = 1;\n        return;\n      }" ({ "{") (expression_statement "DAT_002b5588 = 1;" (assignment_expression "DAT_002b5588 = 1" (identifier "DAT_002b5588") (= "=") (number_literal "1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (expression_statement "puVar1 = (undefined8 *)*puVar1;" (assignment_expression "puVar1 = (undefined8 *)*puVar1" (identifier "puVar1") (= "=") (cast_expression "(undefined8 *)*puVar1" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

void function_1(type_1 *s)

{
  type_2 *var_2;
  char *__s;
  type_3 *var_6;
  int var_8;
  long var_4;
  char *var_10;
  
  if (((var_1 != 0) || (var_2 = s->the_bfd, var_2 == (type_2 *)0x0)) ||
     ((var_2->field_0x45 & 8) == 0)) {
    return;
  }
  var_4 = var_3(var_2);
  var_6 = global_vercheck_needed;
  if (var_4 == 0) {
    var_4 = var_5(s->the_bfd->filename);
    var_6 = global_vercheck_needed;
  }
  do {
    if (var_6 == (type_3 *)0x0) {
      return;
    }
    var_8 = var_7(var_4,var_6->name);
    if (var_8 != 0) {
      __s = var_6->name;
      var_10 = var_9(__s,0x2f);
      if (((var_10 == (char *)0x0) && (var_10 = var_11(__s,".so."), var_10 != (char *)0x0)) &&
         (var_8 = var_12(var_4,__s,var_10 + (4 - (long)__s)), var_8 == 0)) {
        var_1 = 1;
        return;
      }
    }
    var_6 = var_6->next;
  } while( true );
}


(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: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (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: (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: (binary_expression left: (identifier) right: (number_literal)))))) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal))))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (subscript_expression argument: (identifier) index: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content))))) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)))))))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (return_statement))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))))) condition: (parenthesized_expression (true))))))

void MASKED(long param_1)

{
  char *__s;
  undefined8 *puVar1;
  int iVar2;
  long lVar3;
  char *pcVar4;
  
  if (((DAT_002b5588 != 0) || (lVar3 = *(long *)(param_1 + 0x20), lVar3 == 0)) ||
     ((*(byte *)(lVar3 + 0x45) & 8) == 0)) {
    return;
  }
  lVar3 = bfd_elf_get_dt_soname(lVar3);
  puVar1 = DAT_002b5590;
  if (lVar3 == 0) {
    lVar3 = lbasename(**(undefined8 **)(param_1 + 0x20));
    puVar1 = DAT_002b5590;
  }
  do {
    if (puVar1 == (undefined8 *)0x0) {
      return;
    }
    iVar2 = filename_cmp(lVar3,puVar1[2]);
    if (iVar2 != 0) {
      __s = (char *)puVar1[2];
      pcVar4 = strchr(__s,0x2f);
      if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&
         (iVar2 = filename_ncmp(lVar3,__s,pcVar4 + (4 - (long)__s)), iVar2 == 0)) {
        DAT_002b5588 = 1;
        return;
      }
    }
    puVar1 = (undefined8 *)*puVar1;
  } while( true );
}

