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

void gldaarch64linux32_vercheck(lang_input_statement_type *s)

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



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

void FUN_0005e1d0(int param_1)

{
  char *__s;
  undefined4 *puVar1;
  int iVar2;
  int iVar3;
  char *pcVar4;
  
  if (((DAT_001c4158 == 0) && (iVar2 = *(int *)(param_1 + 0x10), iVar2 != 0)) &&
     ((*(byte *)(iVar2 + 0x29) & 8) != 0)) {
    iVar2 = bfd_elf_get_dt_soname(iVar2);
    puVar1 = DAT_001c415c;
    if (iVar2 == 0) {
      iVar2 = lbasename(**(undefined4 **)(param_1 + 0x10));
      puVar1 = DAT_001c415c;
    }
    for (; puVar1 != (undefined4 *)0x0; puVar1 = (undefined4 *)*puVar1) {
      iVar3 = filename_cmp(iVar2,puVar1[2]);
      if (iVar3 != 0) {
        __s = (char *)puVar1[2];
        pcVar4 = strchr(__s,0x2f);
        if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&
           (iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0)) {
          DAT_001c4158 = 1;
          return;
        }
      }
    }
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00017c50
ADD EBX,0x163e27
SUB ESP,0x1c
MOV EAX,dword ptr [EBX + 0x2158]
TEST EAX,EAX
JNZ 0x0005e1fd
MOV EAX,dword ptr [ESP + 0x30]
MOV EAX,dword ptr [EAX + 0x10]
TEST EAX,EAX
JZ 0x0005e1fd
TEST byte ptr [EAX + 0x29],0x8
JNZ 0x0005e208
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH EAX
CALL 0x00016420
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JZ 0x0005e2a0
MOV ESI,dword ptr [EBX + 0x215c]
TEST ESI,ESI
JZ 0x0005e1fd
LEA EAX,[EBX + 0xffeed804]
MOV dword ptr [ESP + 0xc],EAX
JMP 0x0005e23e
MOV ESI,dword ptr [ESI]
TEST ESI,ESI
JZ 0x0005e1fd
SUB ESP,0x8
PUSH dword ptr [ESI + 0x8]
PUSH EDI
CALL 0x00016270
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0005e238
MOV EBP,dword ptr [ESI + 0x8]
SUB ESP,0x8
PUSH 0x2f
PUSH EBP
CALL 0x00016840
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0005e238
SUB ESP,0x8
PUSH dword ptr [ESP + 0x14]
PUSH EBP
CALL 0x000160b0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0005e238
ADD EAX,0x4
SUB ESP,0x4
SUB EAX,EBP
PUSH EAX
PUSH EBP
PUSH EDI
CALL 0x000164c0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0005e238
MOV dword ptr [EBX + 0x2158],0x1
JMP 0x0005e1fd
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x3c]
MOV EAX,dword ptr [EAX + 0x10]
PUSH dword ptr [EAX]
CALL 0x00016690
ADD ESP,0x10
MOV EDI,EAX
JMP 0x0005e21e
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0005e1d0(int param_1)\n\n{\n  char *__s;\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  char *pcVar4;\n  \n  if (((DAT_001c4158 == 0) && (iVar2 = *(int *)(param_1 + 0x10), iVar2 != 0)) &&\n     ((*(byte *)(iVar2 + 0x29) & 8) != 0)) {\n    iVar2 = bfd_elf_get_dt_soname(iVar2);\n    puVar1 = DAT_001c415c;\n    if (iVar2 == 0) {\n      iVar2 = lbasename(**(undefined4 **)(param_1 + 0x10));\n      puVar1 = DAT_001c415c;\n    }\n    for (; puVar1 != (undefined4 *)0x0; puVar1 = (undefined4 *)*puVar1) {\n      iVar3 = filename_cmp(iVar2,puVar1[2]);\n      if (iVar3 != 0) {\n        __s = (char *)puVar1[2];\n        pcVar4 = strchr(__s,0x2f);\n        if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n           (iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0)) {\n          DAT_001c4158 = 1;\n          return;\n        }\n      }\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_0005e1d0(int param_1)\n\n{\n  char *__s;\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  char *pcVar4;\n  \n  if (((DAT_001c4158 == 0) && (iVar2 = *(int *)(param_1 + 0x10), iVar2 != 0)) &&\n     ((*(byte *)(iVar2 + 0x29) & 8) != 0)) {\n    iVar2 = bfd_elf_get_dt_soname(iVar2);\n    puVar1 = DAT_001c415c;\n    if (iVar2 == 0) {\n      iVar2 = lbasename(**(undefined4 **)(param_1 + 0x10));\n      puVar1 = DAT_001c415c;\n    }\n    for (; puVar1 != (undefined4 *)0x0; puVar1 = (undefined4 *)*puVar1) {\n      iVar3 = filename_cmp(iVar2,puVar1[2]);\n      if (iVar3 != 0) {\n        __s = (char *)puVar1[2];\n        pcVar4 = strchr(__s,0x2f);\n        if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n           (iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0)) {\n          DAT_001c4158 = 1;\n          return;\n        }\n      }\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0005e1d0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  char *__s;\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  char *pcVar4;\n  \n  if (((DAT_001c4158 == 0) && (iVar2 = *(int *)(param_1 + 0x10), iVar2 != 0)) &&\n     ((*(byte *)(iVar2 + 0x29) & 8) != 0)) {\n    iVar2 = bfd_elf_get_dt_soname(iVar2);\n    puVar1 = DAT_001c415c;\n    if (iVar2 == 0) {\n      iVar2 = lbasename(**(undefined4 **)(param_1 + 0x10));\n      puVar1 = DAT_001c415c;\n    }\n    for (; puVar1 != (undefined4 *)0x0; puVar1 = (undefined4 *)*puVar1) {\n      iVar3 = filename_cmp(iVar2,puVar1[2]);\n      if (iVar3 != 0) {\n        __s = (char *)puVar1[2];\n        pcVar4 = strchr(__s,0x2f);\n        if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n           (iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0)) {\n          DAT_001c4158 = 1;\n          return;\n        }\n      }\n    }\n  }\n  return;\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (if_statement "if (((DAT_001c4158 == 0) && (iVar2 = *(int *)(param_1 + 0x10), iVar2 != 0)) &&\n     ((*(byte *)(iVar2 + 0x29) & 8) != 0)) {\n    iVar2 = bfd_elf_get_dt_soname(iVar2);\n    puVar1 = DAT_001c415c;\n    if (iVar2 == 0) {\n      iVar2 = lbasename(**(undefined4 **)(param_1 + 0x10));\n      puVar1 = DAT_001c415c;\n    }\n    for (; puVar1 != (undefined4 *)0x0; puVar1 = (undefined4 *)*puVar1) {\n      iVar3 = filename_cmp(iVar2,puVar1[2]);\n      if (iVar3 != 0) {\n        __s = (char *)puVar1[2];\n        pcVar4 = strchr(__s,0x2f);\n        if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n           (iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0)) {\n          DAT_001c4158 = 1;\n          return;\n        }\n      }\n    }\n  }" if (parenthesized_expression "(((DAT_001c4158 == 0) && (iVar2 = *(int *)(param_1 + 0x10), iVar2 != 0)) &&\n     ((*(byte *)(iVar2 + 0x29) & 8) != 0))" ( (binary_expression "((DAT_001c4158 == 0) && (iVar2 = *(int *)(param_1 + 0x10), iVar2 != 0)) &&\n     ((*(byte *)(iVar2 + 0x29) & 8) != 0)" (parenthesized_expression "((DAT_001c4158 == 0) && (iVar2 = *(int *)(param_1 + 0x10), iVar2 != 0))" ( (binary_expression "(DAT_001c4158 == 0) && (iVar2 = *(int *)(param_1 + 0x10), iVar2 != 0)" (parenthesized_expression "(DAT_001c4158 == 0)" ( (binary_expression "DAT_001c4158 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar2 = *(int *)(param_1 + 0x10), iVar2 != 0)" ( (comma_expression "iVar2 = *(int *)(param_1 + 0x10), iVar2 != 0" (assignment_expression "iVar2 = *(int *)(param_1 + 0x10)" identifier = (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) ))))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) && (parenthesized_expression "((*(byte *)(iVar2 + 0x29) & 8) != 0)" ( (binary_expression "(*(byte *)(iVar2 + 0x29) & 8) != 0" (parenthesized_expression "(*(byte *)(iVar2 + 0x29) & 8)" ( (binary_expression "*(byte *)(iVar2 + 0x29) & 8" (pointer_expression "*(byte *)(iVar2 + 0x29)" * (cast_expression "(byte *)(iVar2 + 0x29)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x29)" ( (binary_expression "iVar2 + 0x29" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    iVar2 = bfd_elf_get_dt_soname(iVar2);\n    puVar1 = DAT_001c415c;\n    if (iVar2 == 0) {\n      iVar2 = lbasename(**(undefined4 **)(param_1 + 0x10));\n      puVar1 = DAT_001c415c;\n    }\n    for (; puVar1 != (undefined4 *)0x0; puVar1 = (undefined4 *)*puVar1) {\n      iVar3 = filename_cmp(iVar2,puVar1[2]);\n      if (iVar3 != 0) {\n        __s = (char *)puVar1[2];\n        pcVar4 = strchr(__s,0x2f);\n        if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n           (iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0)) {\n          DAT_001c4158 = 1;\n          return;\n        }\n      }\n    }\n  }" { (expression_statement "iVar2 = bfd_elf_get_dt_soname(iVar2);" (assignment_expression "iVar2 = bfd_elf_get_dt_soname(iVar2)" identifier = (call_expression "bfd_elf_get_dt_soname(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;) (expression_statement "puVar1 = DAT_001c415c;" (assignment_expression "puVar1 = DAT_001c415c" identifier = identifier) ;) (if_statement "if (iVar2 == 0) {\n      iVar2 = lbasename(**(undefined4 **)(param_1 + 0x10));\n      puVar1 = DAT_001c415c;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar2 = lbasename(**(undefined4 **)(param_1 + 0x10));\n      puVar1 = DAT_001c415c;\n    }" { (expression_statement "iVar2 = lbasename(**(undefined4 **)(param_1 + 0x10));" (assignment_expression "iVar2 = lbasename(**(undefined4 **)(param_1 + 0x10))" identifier = (call_expression "lbasename(**(undefined4 **)(param_1 + 0x10))" identifier (argument_list "(**(undefined4 **)(param_1 + 0x10))" ( (pointer_expression "**(undefined4 **)(param_1 + 0x10)" * (pointer_expression "*(undefined4 **)(param_1 + 0x10)" * (cast_expression "(undefined4 **)(param_1 + 0x10)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) )))) ;) (expression_statement "puVar1 = DAT_001c415c;" (assignment_expression "puVar1 = DAT_001c415c" identifier = identifier) ;) })) (for_statement "for (; puVar1 != (undefined4 *)0x0; puVar1 = (undefined4 *)*puVar1) {\n      iVar3 = filename_cmp(iVar2,puVar1[2]);\n      if (iVar3 != 0) {\n        __s = (char *)puVar1[2];\n        pcVar4 = strchr(__s,0x2f);\n        if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n           (iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0)) {\n          DAT_001c4158 = 1;\n          return;\n        }\n      }\n    }" for ( ; (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "puVar1 = (undefined4 *)*puVar1" identifier = (cast_expression "(undefined4 *)*puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ) (compound_statement "{\n      iVar3 = filename_cmp(iVar2,puVar1[2]);\n      if (iVar3 != 0) {\n        __s = (char *)puVar1[2];\n        pcVar4 = strchr(__s,0x2f);\n        if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n           (iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0)) {\n          DAT_001c4158 = 1;\n          return;\n        }\n      }\n    }" { (expression_statement "iVar3 = filename_cmp(iVar2,puVar1[2]);" (assignment_expression "iVar3 = filename_cmp(iVar2,puVar1[2])" identifier = (call_expression "filename_cmp(iVar2,puVar1[2])" identifier (argument_list "(iVar2,puVar1[2])" ( identifier , (subscript_expression "puVar1[2]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar3 != 0) {\n        __s = (char *)puVar1[2];\n        pcVar4 = strchr(__s,0x2f);\n        if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n           (iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0)) {\n          DAT_001c4158 = 1;\n          return;\n        }\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 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           (iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0)) {\n          DAT_001c4158 = 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           (iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0)) {\n          DAT_001c4158 = 1;\n          return;\n        }" if (parenthesized_expression "(((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n           (iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0))" ( (binary_expression "((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n           (iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 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 "(iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0)" ( (comma_expression "iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0" (assignment_expression "iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s))" identifier = (call_expression "filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s))" identifier (argument_list "(iVar2,__s,pcVar4 + (4 - (int)__s))" ( identifier , identifier , (binary_expression "pcVar4 + (4 - (int)__s)" identifier + (parenthesized_expression "(4 - (int)__s)" ( (binary_expression "4 - (int)__s" number_literal - (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier)) ))) )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n          DAT_001c4158 = 1;\n          return;\n        }" { (expression_statement "DAT_001c4158 = 1;" (assignment_expression "DAT_001c4158 = 1" identifier = number_literal) ;) (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 gldaarch64linux32_vercheck(lang_input_statement_type *s)\n\n{\n  bfd *pbVar1;\n  char *__s;\n  bfd_link_needed_list *pbVar2;\n  int iVar3;\n  int iVar4;\n  char *pcVar5;\n  \n  if (((global_vercheck_failed == 0) && (pbVar1 = s->the_bfd, pbVar1 != (bfd *)0x0)) &&\n     ((pbVar1->field_0x29 & 8) != 0)) {\n    iVar3 = bfd_elf_get_dt_soname(pbVar1);\n    pbVar2 = global_vercheck_needed;\n    if (iVar3 == 0) {\n      iVar3 = lbasename(s->the_bfd->filename);\n      pbVar2 = global_vercheck_needed;\n    }\n    for (; pbVar2 != (bfd_link_needed_list *)0x0; pbVar2 = pbVar2->next) {\n      iVar4 = filename_cmp(iVar3,pbVar2->name);\n      if (iVar4 != 0) {\n        __s = pbVar2->name;\n        pcVar5 = strchr(__s,0x2f);\n        if (((pcVar5 == (char *)0x0) && (pcVar5 = strstr(__s,".so."), pcVar5 != (char *)0x0)) &&\n           (iVar4 = filename_ncmp(iVar3,__s,pcVar5 + (4 - (int)__s)), iVar4 == 0)) {\n          global_vercheck_failed = 1;\n          return;\n        }\n      }\n    }\n  }\n  return;\n}\n\n" comment comment (function_definition "void gldaarch64linux32_vercheck(lang_input_statement_type *s)\n\n{\n  bfd *pbVar1;\n  char *__s;\n  bfd_link_needed_list *pbVar2;\n  int iVar3;\n  int iVar4;\n  char *pcVar5;\n  \n  if (((global_vercheck_failed == 0) && (pbVar1 = s->the_bfd, pbVar1 != (bfd *)0x0)) &&\n     ((pbVar1->field_0x29 & 8) != 0)) {\n    iVar3 = bfd_elf_get_dt_soname(pbVar1);\n    pbVar2 = global_vercheck_needed;\n    if (iVar3 == 0) {\n      iVar3 = lbasename(s->the_bfd->filename);\n      pbVar2 = global_vercheck_needed;\n    }\n    for (; pbVar2 != (bfd_link_needed_list *)0x0; pbVar2 = pbVar2->next) {\n      iVar4 = filename_cmp(iVar3,pbVar2->name);\n      if (iVar4 != 0) {\n        __s = pbVar2->name;\n        pcVar5 = strchr(__s,0x2f);\n        if (((pcVar5 == (char *)0x0) && (pcVar5 = strstr(__s,".so."), pcVar5 != (char *)0x0)) &&\n           (iVar4 = filename_ncmp(iVar3,__s,pcVar5 + (4 - (int)__s)), iVar4 == 0)) {\n          global_vercheck_failed = 1;\n          return;\n        }\n      }\n    }\n  }\n  return;\n}" primitive_type (function_declarator "gldaarch64linux32_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  int iVar4;\n  char *pcVar5;\n  \n  if (((global_vercheck_failed == 0) && (pbVar1 = s->the_bfd, pbVar1 != (bfd *)0x0)) &&\n     ((pbVar1->field_0x29 & 8) != 0)) {\n    iVar3 = bfd_elf_get_dt_soname(pbVar1);\n    pbVar2 = global_vercheck_needed;\n    if (iVar3 == 0) {\n      iVar3 = lbasename(s->the_bfd->filename);\n      pbVar2 = global_vercheck_needed;\n    }\n    for (; pbVar2 != (bfd_link_needed_list *)0x0; pbVar2 = pbVar2->next) {\n      iVar4 = filename_cmp(iVar3,pbVar2->name);\n      if (iVar4 != 0) {\n        __s = pbVar2->name;\n        pcVar5 = strchr(__s,0x2f);\n        if (((pcVar5 == (char *)0x0) && (pcVar5 = strstr(__s,".so."), pcVar5 != (char *)0x0)) &&\n           (iVar4 = filename_ncmp(iVar3,__s,pcVar5 + (4 - (int)__s)), iVar4 == 0)) {\n          global_vercheck_failed = 1;\n          return;\n        }\n      }\n    }\n  }\n  return;\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 "int iVar4;" primitive_type 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_0x29 & 8) != 0)) {\n    iVar3 = bfd_elf_get_dt_soname(pbVar1);\n    pbVar2 = global_vercheck_needed;\n    if (iVar3 == 0) {\n      iVar3 = lbasename(s->the_bfd->filename);\n      pbVar2 = global_vercheck_needed;\n    }\n    for (; pbVar2 != (bfd_link_needed_list *)0x0; pbVar2 = pbVar2->next) {\n      iVar4 = filename_cmp(iVar3,pbVar2->name);\n      if (iVar4 != 0) {\n        __s = pbVar2->name;\n        pcVar5 = strchr(__s,0x2f);\n        if (((pcVar5 == (char *)0x0) && (pcVar5 = strstr(__s,".so."), pcVar5 != (char *)0x0)) &&\n           (iVar4 = filename_ncmp(iVar3,__s,pcVar5 + (4 - (int)__s)), iVar4 == 0)) {\n          global_vercheck_failed = 1;\n          return;\n        }\n      }\n    }\n  }" if (parenthesized_expression "(((global_vercheck_failed == 0) && (pbVar1 = s->the_bfd, pbVar1 != (bfd *)0x0)) &&\n     ((pbVar1->field_0x29 & 8) != 0))" ( (binary_expression "((global_vercheck_failed == 0) && (pbVar1 = s->the_bfd, pbVar1 != (bfd *)0x0)) &&\n     ((pbVar1->field_0x29 & 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_0x29 & 8) != 0)" ( (binary_expression "(pbVar1->field_0x29 & 8) != 0" (parenthesized_expression "(pbVar1->field_0x29 & 8)" ( (binary_expression "pbVar1->field_0x29 & 8" (field_expression "pbVar1->field_0x29" identifier -> field_identifier) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    iVar3 = bfd_elf_get_dt_soname(pbVar1);\n    pbVar2 = global_vercheck_needed;\n    if (iVar3 == 0) {\n      iVar3 = lbasename(s->the_bfd->filename);\n      pbVar2 = global_vercheck_needed;\n    }\n    for (; pbVar2 != (bfd_link_needed_list *)0x0; pbVar2 = pbVar2->next) {\n      iVar4 = filename_cmp(iVar3,pbVar2->name);\n      if (iVar4 != 0) {\n        __s = pbVar2->name;\n        pcVar5 = strchr(__s,0x2f);\n        if (((pcVar5 == (char *)0x0) && (pcVar5 = strstr(__s,".so."), pcVar5 != (char *)0x0)) &&\n           (iVar4 = filename_ncmp(iVar3,__s,pcVar5 + (4 - (int)__s)), iVar4 == 0)) {\n          global_vercheck_failed = 1;\n          return;\n        }\n      }\n    }\n  }" { (expression_statement "iVar3 = bfd_elf_get_dt_soname(pbVar1);" (assignment_expression "iVar3 = 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 (iVar3 == 0) {\n      iVar3 = lbasename(s->the_bfd->filename);\n      pbVar2 = global_vercheck_needed;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar3 = lbasename(s->the_bfd->filename);\n      pbVar2 = global_vercheck_needed;\n    }" { (expression_statement "iVar3 = lbasename(s->the_bfd->filename);" (assignment_expression "iVar3 = 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) ;) })) (for_statement "for (; pbVar2 != (bfd_link_needed_list *)0x0; pbVar2 = pbVar2->next) {\n      iVar4 = filename_cmp(iVar3,pbVar2->name);\n      if (iVar4 != 0) {\n        __s = pbVar2->name;\n        pcVar5 = strchr(__s,0x2f);\n        if (((pcVar5 == (char *)0x0) && (pcVar5 = strstr(__s,".so."), pcVar5 != (char *)0x0)) &&\n           (iVar4 = filename_ncmp(iVar3,__s,pcVar5 + (4 - (int)__s)), iVar4 == 0)) {\n          global_vercheck_failed = 1;\n          return;\n        }\n      }\n    }" for ( ; (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)) ; (assignment_expression "pbVar2 = pbVar2->next" identifier = (field_expression "pbVar2->next" identifier -> field_identifier)) ) (compound_statement "{\n      iVar4 = filename_cmp(iVar3,pbVar2->name);\n      if (iVar4 != 0) {\n        __s = pbVar2->name;\n        pcVar5 = strchr(__s,0x2f);\n        if (((pcVar5 == (char *)0x0) && (pcVar5 = strstr(__s,".so."), pcVar5 != (char *)0x0)) &&\n           (iVar4 = filename_ncmp(iVar3,__s,pcVar5 + (4 - (int)__s)), iVar4 == 0)) {\n          global_vercheck_failed = 1;\n          return;\n        }\n      }\n    }" { (expression_statement "iVar4 = filename_cmp(iVar3,pbVar2->name);" (assignment_expression "iVar4 = filename_cmp(iVar3,pbVar2->name)" identifier = (call_expression "filename_cmp(iVar3,pbVar2->name)" identifier (argument_list "(iVar3,pbVar2->name)" ( identifier , (field_expression "pbVar2->name" identifier -> field_identifier) )))) ;) (if_statement "if (iVar4 != 0) {\n        __s = pbVar2->name;\n        pcVar5 = strchr(__s,0x2f);\n        if (((pcVar5 == (char *)0x0) && (pcVar5 = strstr(__s,".so."), pcVar5 != (char *)0x0)) &&\n           (iVar4 = filename_ncmp(iVar3,__s,pcVar5 + (4 - (int)__s)), iVar4 == 0)) {\n          global_vercheck_failed = 1;\n          return;\n        }\n      }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 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           (iVar4 = filename_ncmp(iVar3,__s,pcVar5 + (4 - (int)__s)), iVar4 == 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           (iVar4 = filename_ncmp(iVar3,__s,pcVar5 + (4 - (int)__s)), iVar4 == 0)) {\n          global_vercheck_failed = 1;\n          return;\n        }" if (parenthesized_expression "(((pcVar5 == (char *)0x0) && (pcVar5 = strstr(__s,".so."), pcVar5 != (char *)0x0)) &&\n           (iVar4 = filename_ncmp(iVar3,__s,pcVar5 + (4 - (int)__s)), iVar4 == 0))" ( (binary_expression "((pcVar5 == (char *)0x0) && (pcVar5 = strstr(__s,".so."), pcVar5 != (char *)0x0)) &&\n           (iVar4 = filename_ncmp(iVar3,__s,pcVar5 + (4 - (int)__s)), iVar4 == 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 "(iVar4 = filename_ncmp(iVar3,__s,pcVar5 + (4 - (int)__s)), iVar4 == 0)" ( (comma_expression "iVar4 = filename_ncmp(iVar3,__s,pcVar5 + (4 - (int)__s)), iVar4 == 0" (assignment_expression "iVar4 = filename_ncmp(iVar3,__s,pcVar5 + (4 - (int)__s))" identifier = (call_expression "filename_ncmp(iVar3,__s,pcVar5 + (4 - (int)__s))" identifier (argument_list "(iVar3,__s,pcVar5 + (4 - (int)__s))" ( identifier , identifier , (binary_expression "pcVar5 + (4 - (int)__s)" identifier + (parenthesized_expression "(4 - (int)__s)" ( (binary_expression "4 - (int)__s" number_literal - (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier)) ))) )))) , (binary_expression "iVar4 == 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 ;) })) })) })) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0005e1d0(int param_1)\n\n{\n  char *__s;\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  char *pcVar4;\n  \n  if (((DAT_001c4158 == 0) && (iVar2 = *(int *)(param_1 + 0x10), iVar2 != 0)) &&\n     ((*(byte *)(iVar2 + 0x29) & 8) != 0)) {\n    iVar2 = bfd_elf_get_dt_soname(iVar2);\n    puVar1 = DAT_001c415c;\n    if (iVar2 == 0) {\n      iVar2 = lbasename(**(undefined4 **)(param_1 + 0x10));\n      puVar1 = DAT_001c415c;\n    }\n    for (; puVar1 != (undefined4 *)0x0; puVar1 = (undefined4 *)*puVar1) {\n      iVar3 = filename_cmp(iVar2,puVar1[2]);\n      if (iVar3 != 0) {\n        __s = (char *)puVar1[2];\n        pcVar4 = strchr(__s,0x2f);\n        if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n           (iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0)) {\n          DAT_001c4158 = 1;\n          return;\n        }\n      }\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_0005e1d0(int param_1)\n\n{\n  char *__s;\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  char *pcVar4;\n  \n  if (((DAT_001c4158 == 0) && (iVar2 = *(int *)(param_1 + 0x10), iVar2 != 0)) &&\n     ((*(byte *)(iVar2 + 0x29) & 8) != 0)) {\n    iVar2 = bfd_elf_get_dt_soname(iVar2);\n    puVar1 = DAT_001c415c;\n    if (iVar2 == 0) {\n      iVar2 = lbasename(**(undefined4 **)(param_1 + 0x10));\n      puVar1 = DAT_001c415c;\n    }\n    for (; puVar1 != (undefined4 *)0x0; puVar1 = (undefined4 *)*puVar1) {\n      iVar3 = filename_cmp(iVar2,puVar1[2]);\n      if (iVar3 != 0) {\n        __s = (char *)puVar1[2];\n        pcVar4 = strchr(__s,0x2f);\n        if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n           (iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0)) {\n          DAT_001c4158 = 1;\n          return;\n        }\n      }\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0005e1d0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  char *__s;\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  char *pcVar4;\n  \n  if (((DAT_001c4158 == 0) && (iVar2 = *(int *)(param_1 + 0x10), iVar2 != 0)) &&\n     ((*(byte *)(iVar2 + 0x29) & 8) != 0)) {\n    iVar2 = bfd_elf_get_dt_soname(iVar2);\n    puVar1 = DAT_001c415c;\n    if (iVar2 == 0) {\n      iVar2 = lbasename(**(undefined4 **)(param_1 + 0x10));\n      puVar1 = DAT_001c415c;\n    }\n    for (; puVar1 != (undefined4 *)0x0; puVar1 = (undefined4 *)*puVar1) {\n      iVar3 = filename_cmp(iVar2,puVar1[2]);\n      if (iVar3 != 0) {\n        __s = (char *)puVar1[2];\n        pcVar4 = strchr(__s,0x2f);\n        if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n           (iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0)) {\n          DAT_001c4158 = 1;\n          return;\n        }\n      }\n    }\n  }\n  return;\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (if_statement "if (((DAT_001c4158 == 0) && (iVar2 = *(int *)(param_1 + 0x10), iVar2 != 0)) &&\n     ((*(byte *)(iVar2 + 0x29) & 8) != 0)) {\n    iVar2 = bfd_elf_get_dt_soname(iVar2);\n    puVar1 = DAT_001c415c;\n    if (iVar2 == 0) {\n      iVar2 = lbasename(**(undefined4 **)(param_1 + 0x10));\n      puVar1 = DAT_001c415c;\n    }\n    for (; puVar1 != (undefined4 *)0x0; puVar1 = (undefined4 *)*puVar1) {\n      iVar3 = filename_cmp(iVar2,puVar1[2]);\n      if (iVar3 != 0) {\n        __s = (char *)puVar1[2];\n        pcVar4 = strchr(__s,0x2f);\n        if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n           (iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0)) {\n          DAT_001c4158 = 1;\n          return;\n        }\n      }\n    }\n  }" if (parenthesized_expression "(((DAT_001c4158 == 0) && (iVar2 = *(int *)(param_1 + 0x10), iVar2 != 0)) &&\n     ((*(byte *)(iVar2 + 0x29) & 8) != 0))" ( (binary_expression "((DAT_001c4158 == 0) && (iVar2 = *(int *)(param_1 + 0x10), iVar2 != 0)) &&\n     ((*(byte *)(iVar2 + 0x29) & 8) != 0)" (parenthesized_expression "((DAT_001c4158 == 0) && (iVar2 = *(int *)(param_1 + 0x10), iVar2 != 0))" ( (binary_expression "(DAT_001c4158 == 0) && (iVar2 = *(int *)(param_1 + 0x10), iVar2 != 0)" (parenthesized_expression "(DAT_001c4158 == 0)" ( (binary_expression "DAT_001c4158 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar2 = *(int *)(param_1 + 0x10), iVar2 != 0)" ( (comma_expression "iVar2 = *(int *)(param_1 + 0x10), iVar2 != 0" (assignment_expression "iVar2 = *(int *)(param_1 + 0x10)" identifier = (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) ))))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) && (parenthesized_expression "((*(byte *)(iVar2 + 0x29) & 8) != 0)" ( (binary_expression "(*(byte *)(iVar2 + 0x29) & 8) != 0" (parenthesized_expression "(*(byte *)(iVar2 + 0x29) & 8)" ( (binary_expression "*(byte *)(iVar2 + 0x29) & 8" (pointer_expression "*(byte *)(iVar2 + 0x29)" * (cast_expression "(byte *)(iVar2 + 0x29)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x29)" ( (binary_expression "iVar2 + 0x29" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    iVar2 = bfd_elf_get_dt_soname(iVar2);\n    puVar1 = DAT_001c415c;\n    if (iVar2 == 0) {\n      iVar2 = lbasename(**(undefined4 **)(param_1 + 0x10));\n      puVar1 = DAT_001c415c;\n    }\n    for (; puVar1 != (undefined4 *)0x0; puVar1 = (undefined4 *)*puVar1) {\n      iVar3 = filename_cmp(iVar2,puVar1[2]);\n      if (iVar3 != 0) {\n        __s = (char *)puVar1[2];\n        pcVar4 = strchr(__s,0x2f);\n        if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n           (iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0)) {\n          DAT_001c4158 = 1;\n          return;\n        }\n      }\n    }\n  }" { (expression_statement "iVar2 = bfd_elf_get_dt_soname(iVar2);" (assignment_expression "iVar2 = bfd_elf_get_dt_soname(iVar2)" identifier = (call_expression "bfd_elf_get_dt_soname(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;) (expression_statement "puVar1 = DAT_001c415c;" (assignment_expression "puVar1 = DAT_001c415c" identifier = identifier) ;) (if_statement "if (iVar2 == 0) {\n      iVar2 = lbasename(**(undefined4 **)(param_1 + 0x10));\n      puVar1 = DAT_001c415c;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar2 = lbasename(**(undefined4 **)(param_1 + 0x10));\n      puVar1 = DAT_001c415c;\n    }" { (expression_statement "iVar2 = lbasename(**(undefined4 **)(param_1 + 0x10));" (assignment_expression "iVar2 = lbasename(**(undefined4 **)(param_1 + 0x10))" identifier = (call_expression "lbasename(**(undefined4 **)(param_1 + 0x10))" identifier (argument_list "(**(undefined4 **)(param_1 + 0x10))" ( (pointer_expression "**(undefined4 **)(param_1 + 0x10)" * (pointer_expression "*(undefined4 **)(param_1 + 0x10)" * (cast_expression "(undefined4 **)(param_1 + 0x10)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) )))) ;) (expression_statement "puVar1 = DAT_001c415c;" (assignment_expression "puVar1 = DAT_001c415c" identifier = identifier) ;) })) (for_statement "for (; puVar1 != (undefined4 *)0x0; puVar1 = (undefined4 *)*puVar1) {\n      iVar3 = filename_cmp(iVar2,puVar1[2]);\n      if (iVar3 != 0) {\n        __s = (char *)puVar1[2];\n        pcVar4 = strchr(__s,0x2f);\n        if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n           (iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0)) {\n          DAT_001c4158 = 1;\n          return;\n        }\n      }\n    }" for ( ; (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "puVar1 = (undefined4 *)*puVar1" identifier = (cast_expression "(undefined4 *)*puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ) (compound_statement "{\n      iVar3 = filename_cmp(iVar2,puVar1[2]);\n      if (iVar3 != 0) {\n        __s = (char *)puVar1[2];\n        pcVar4 = strchr(__s,0x2f);\n        if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n           (iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0)) {\n          DAT_001c4158 = 1;\n          return;\n        }\n      }\n    }" { (expression_statement "iVar3 = filename_cmp(iVar2,puVar1[2]);" (assignment_expression "iVar3 = filename_cmp(iVar2,puVar1[2])" identifier = (call_expression "filename_cmp(iVar2,puVar1[2])" identifier (argument_list "(iVar2,puVar1[2])" ( identifier , (subscript_expression "puVar1[2]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar3 != 0) {\n        __s = (char *)puVar1[2];\n        pcVar4 = strchr(__s,0x2f);\n        if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n           (iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0)) {\n          DAT_001c4158 = 1;\n          return;\n        }\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 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           (iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0)) {\n          DAT_001c4158 = 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           (iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0)) {\n          DAT_001c4158 = 1;\n          return;\n        }" if (parenthesized_expression "(((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n           (iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0))" ( (binary_expression "((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n           (iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 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 "(iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0)" ( (comma_expression "iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0" (assignment_expression "iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s))" identifier = (call_expression "filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s))" identifier (argument_list "(iVar2,__s,pcVar4 + (4 - (int)__s))" ( identifier , identifier , (binary_expression "pcVar4 + (4 - (int)__s)" identifier + (parenthesized_expression "(4 - (int)__s)" ( (binary_expression "4 - (int)__s" number_literal - (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier)) ))) )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n          DAT_001c4158 = 1;\n          return;\n        }" { (expression_statement "DAT_001c4158 = 1;" (assignment_expression "DAT_001c4158 = 1" identifier = number_literal) ;) (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 (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE 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 TYPE (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 { (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) ;) })) (for_statement for ( ; (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ; (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ) (compound_statement { (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 TYPE) ) IDENT)) ))) )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (return_statement return ;) })) })) })) })) (return_statement return ;) })))
(function_definition "void FUN_0005e1d0(int param_1)\n\n{\n  char *__s;\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  char *pcVar4;\n  \n  if (((DAT_001c4158 == 0) && (iVar2 = *(int *)(param_1 + 0x10), iVar2 != 0)) &&\n     ((*(byte *)(iVar2 + 0x29) & 8) != 0)) {\n    iVar2 = bfd_elf_get_dt_soname(iVar2);\n    puVar1 = DAT_001c415c;\n    if (iVar2 == 0) {\n      iVar2 = lbasename(**(undefined4 **)(param_1 + 0x10));\n      puVar1 = DAT_001c415c;\n    }\n    for (; puVar1 != (undefined4 *)0x0; puVar1 = (undefined4 *)*puVar1) {\n      iVar3 = filename_cmp(iVar2,puVar1[2]);\n      if (iVar3 != 0) {\n        __s = (char *)puVar1[2];\n        pcVar4 = strchr(__s,0x2f);\n        if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n           (iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0)) {\n          DAT_001c4158 = 1;\n          return;\n        }\n      }\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0005e1d0(int param_1)" (identifier "FUN_0005e1d0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  char *__s;\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  char *pcVar4;\n  \n  if (((DAT_001c4158 == 0) && (iVar2 = *(int *)(param_1 + 0x10), iVar2 != 0)) &&\n     ((*(byte *)(iVar2 + 0x29) & 8) != 0)) {\n    iVar2 = bfd_elf_get_dt_soname(iVar2);\n    puVar1 = DAT_001c415c;\n    if (iVar2 == 0) {\n      iVar2 = lbasename(**(undefined4 **)(param_1 + 0x10));\n      puVar1 = DAT_001c415c;\n    }\n    for (; puVar1 != (undefined4 *)0x0; puVar1 = (undefined4 *)*puVar1) {\n      iVar3 = filename_cmp(iVar2,puVar1[2]);\n      if (iVar3 != 0) {\n        __s = (char *)puVar1[2];\n        pcVar4 = strchr(__s,0x2f);\n        if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n           (iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0)) {\n          DAT_001c4158 = 1;\n          return;\n        }\n      }\n    }\n  }\n  return;\n}" ({ "{") (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (if_statement "if (((DAT_001c4158 == 0) && (iVar2 = *(int *)(param_1 + 0x10), iVar2 != 0)) &&\n     ((*(byte *)(iVar2 + 0x29) & 8) != 0)) {\n    iVar2 = bfd_elf_get_dt_soname(iVar2);\n    puVar1 = DAT_001c415c;\n    if (iVar2 == 0) {\n      iVar2 = lbasename(**(undefined4 **)(param_1 + 0x10));\n      puVar1 = DAT_001c415c;\n    }\n    for (; puVar1 != (undefined4 *)0x0; puVar1 = (undefined4 *)*puVar1) {\n      iVar3 = filename_cmp(iVar2,puVar1[2]);\n      if (iVar3 != 0) {\n        __s = (char *)puVar1[2];\n        pcVar4 = strchr(__s,0x2f);\n        if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n           (iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0)) {\n          DAT_001c4158 = 1;\n          return;\n        }\n      }\n    }\n  }" (if "if") (parenthesized_expression "(((DAT_001c4158 == 0) && (iVar2 = *(int *)(param_1 + 0x10), iVar2 != 0)) &&\n     ((*(byte *)(iVar2 + 0x29) & 8) != 0))" (( "(") (binary_expression "((DAT_001c4158 == 0) && (iVar2 = *(int *)(param_1 + 0x10), iVar2 != 0)) &&\n     ((*(byte *)(iVar2 + 0x29) & 8) != 0)" (parenthesized_expression "((DAT_001c4158 == 0) && (iVar2 = *(int *)(param_1 + 0x10), iVar2 != 0))" (( "(") (binary_expression "(DAT_001c4158 == 0) && (iVar2 = *(int *)(param_1 + 0x10), iVar2 != 0)" (parenthesized_expression "(DAT_001c4158 == 0)" (( "(") (binary_expression "DAT_001c4158 == 0" (identifier "DAT_001c4158") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = *(int *)(param_1 + 0x10), iVar2 != 0)" (( "(") (comma_expression "iVar2 = *(int *)(param_1 + 0x10), iVar2 != 0" (assignment_expression "iVar2 = *(int *)(param_1 + 0x10)" (identifier "iVar2") (= "=") (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")) () ")"))))) (, ",") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "((*(byte *)(iVar2 + 0x29) & 8) != 0)" (( "(") (binary_expression "(*(byte *)(iVar2 + 0x29) & 8) != 0" (parenthesized_expression "(*(byte *)(iVar2 + 0x29) & 8)" (( "(") (binary_expression "*(byte *)(iVar2 + 0x29) & 8" (pointer_expression "*(byte *)(iVar2 + 0x29)" (* "*") (cast_expression "(byte *)(iVar2 + 0x29)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x29)" (( "(") (binary_expression "iVar2 + 0x29" (identifier "iVar2") (+ "+") (number_literal "0x29")) () ")")))) (& "&") (number_literal "8")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    iVar2 = bfd_elf_get_dt_soname(iVar2);\n    puVar1 = DAT_001c415c;\n    if (iVar2 == 0) {\n      iVar2 = lbasename(**(undefined4 **)(param_1 + 0x10));\n      puVar1 = DAT_001c415c;\n    }\n    for (; puVar1 != (undefined4 *)0x0; puVar1 = (undefined4 *)*puVar1) {\n      iVar3 = filename_cmp(iVar2,puVar1[2]);\n      if (iVar3 != 0) {\n        __s = (char *)puVar1[2];\n        pcVar4 = strchr(__s,0x2f);\n        if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n           (iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0)) {\n          DAT_001c4158 = 1;\n          return;\n        }\n      }\n    }\n  }" ({ "{") (expression_statement "iVar2 = bfd_elf_get_dt_soname(iVar2);" (assignment_expression "iVar2 = bfd_elf_get_dt_soname(iVar2)" (identifier "iVar2") (= "=") (call_expression "bfd_elf_get_dt_soname(iVar2)" (identifier "bfd_elf_get_dt_soname") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")")))) (; ";")) (expression_statement "puVar1 = DAT_001c415c;" (assignment_expression "puVar1 = DAT_001c415c" (identifier "puVar1") (= "=") (identifier "DAT_001c415c")) (; ";")) (if_statement "if (iVar2 == 0) {\n      iVar2 = lbasename(**(undefined4 **)(param_1 + 0x10));\n      puVar1 = DAT_001c415c;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar2 = lbasename(**(undefined4 **)(param_1 + 0x10));\n      puVar1 = DAT_001c415c;\n    }" ({ "{") (expression_statement "iVar2 = lbasename(**(undefined4 **)(param_1 + 0x10));" (assignment_expression "iVar2 = lbasename(**(undefined4 **)(param_1 + 0x10))" (identifier "iVar2") (= "=") (call_expression "lbasename(**(undefined4 **)(param_1 + 0x10))" (identifier "lbasename") (argument_list "(**(undefined4 **)(param_1 + 0x10))" (( "(") (pointer_expression "**(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 "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) () ")")))) (; ";")) (expression_statement "puVar1 = DAT_001c415c;" (assignment_expression "puVar1 = DAT_001c415c" (identifier "puVar1") (= "=") (identifier "DAT_001c415c")) (; ";")) (} "}"))) (for_statement "for (; puVar1 != (undefined4 *)0x0; puVar1 = (undefined4 *)*puVar1) {\n      iVar3 = filename_cmp(iVar2,puVar1[2]);\n      if (iVar3 != 0) {\n        __s = (char *)puVar1[2];\n        pcVar4 = strchr(__s,0x2f);\n        if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n           (iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0)) {\n          DAT_001c4158 = 1;\n          return;\n        }\n      }\n    }" (for "for") (( "(") (; ";") (binary_expression "puVar1 != (undefined4 *)0x0" (identifier "puVar1") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";") (assignment_expression "puVar1 = (undefined4 *)*puVar1" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)*puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) () ")") (compound_statement "{\n      iVar3 = filename_cmp(iVar2,puVar1[2]);\n      if (iVar3 != 0) {\n        __s = (char *)puVar1[2];\n        pcVar4 = strchr(__s,0x2f);\n        if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n           (iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0)) {\n          DAT_001c4158 = 1;\n          return;\n        }\n      }\n    }" ({ "{") (expression_statement "iVar3 = filename_cmp(iVar2,puVar1[2]);" (assignment_expression "iVar3 = filename_cmp(iVar2,puVar1[2])" (identifier "iVar3") (= "=") (call_expression "filename_cmp(iVar2,puVar1[2])" (identifier "filename_cmp") (argument_list "(iVar2,puVar1[2])" (( "(") (identifier "iVar2") (, ",") (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n        __s = (char *)puVar1[2];\n        pcVar4 = strchr(__s,0x2f);\n        if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n           (iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0)) {\n          DAT_001c4158 = 1;\n          return;\n        }\n      }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (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           (iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0)) {\n          DAT_001c4158 = 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           (iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0)) {\n          DAT_001c4158 = 1;\n          return;\n        }" (if "if") (parenthesized_expression "(((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n           (iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0))" (( "(") (binary_expression "((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&\n           (iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 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 "(iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0)" (( "(") (comma_expression "iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0" (assignment_expression "iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s))" (identifier "iVar3") (= "=") (call_expression "filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s))" (identifier "filename_ncmp") (argument_list "(iVar2,__s,pcVar4 + (4 - (int)__s))" (( "(") (identifier "iVar2") (, ",") (identifier "__s") (, ",") (binary_expression "pcVar4 + (4 - (int)__s)" (identifier "pcVar4") (+ "+") (parenthesized_expression "(4 - (int)__s)" (( "(") (binary_expression "4 - (int)__s" (number_literal "4") (- "-") (cast_expression "(int)__s" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__s"))) () ")"))) () ")")))) (, ",") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n          DAT_001c4158 = 1;\n          return;\n        }" ({ "{") (expression_statement "DAT_001c4158 = 1;" (assignment_expression "DAT_001c4158 = 1" (identifier "DAT_001c4158") (= "=") (number_literal "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_2;
  char *__s;
  type_3 *var_6;
  int var_4;
  int var_8;
  char *var_10;
  
  if (((var_1 == 0) && (var_2 = s->the_bfd, var_2 != (type_2 *)0x0)) &&
     ((var_2->field_0x29 & 8) != 0)) {
    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;
    }
    for (; var_6 != (type_3 *)0x0; var_6 = var_6->next) {
      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 - (int)__s)), var_8 == 0)) {
          var_1 = 1;
          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: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) 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: (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: (primitive_type) 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 (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))))) (for_statement condition: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))) update: (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))) body: (compound_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: (primitive_type)) value: (identifier)))))))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (return_statement))))))))) (return_statement))))

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

void MASKED(int param_1)

{
  char *__s;
  undefined4 *puVar1;
  int iVar2;
  int iVar3;
  char *pcVar4;
  
  if (((DAT_001c4158 == 0) && (iVar2 = *(int *)(param_1 + 0x10), iVar2 != 0)) &&
     ((*(byte *)(iVar2 + 0x29) & 8) != 0)) {
    iVar2 = bfd_elf_get_dt_soname(iVar2);
    puVar1 = DAT_001c415c;
    if (iVar2 == 0) {
      iVar2 = lbasename(**(undefined4 **)(param_1 + 0x10));
      puVar1 = DAT_001c415c;
    }
    for (; puVar1 != (undefined4 *)0x0; puVar1 = (undefined4 *)*puVar1) {
      iVar3 = filename_cmp(iVar2,puVar1[2]);
      if (iVar3 != 0) {
        __s = (char *)puVar1[2];
        pcVar4 = strchr(__s,0x2f);
        if (((pcVar4 == (char *)0x0) && (pcVar4 = strstr(__s,".so."), pcVar4 != (char *)0x0)) &&
           (iVar3 = filename_ncmp(iVar2,__s,pcVar4 + (4 - (int)__s)), iVar3 == 0)) {
          DAT_001c4158 = 1;
          return;
        }
      }
    }
  }
  return;
}

