
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void plugin_call_cleanup(void)

{
  char *pcVar1;
  plugin **pppVar2;
  ld_plugin_status lVar3;
  char *fmt;
  plugin *ppVar4;
  
  ppVar4 = plugins_list;
  if (plugins_list != (plugin_t *)0x0) {
    do {
      if ((ppVar4->cleanup_handler != (ld_plugin_cleanup_handler)0x0) && (ppVar4->cleanup_done == 0)
         ) {
        ppVar4->cleanup_done = 1;
        called_plugin = ppVar4;
        lVar3 = (*ppVar4->cleanup_handler)();
        called_plugin = (plugin_t *)0x0;
        if (lVar3 != LDPS_OK) {
          pcVar1 = ppVar4->name;
          fmt = (char *)dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);
          info_msg(fmt,pcVar1,lVar3);
        }
        dlclose(ppVar4->dlhandle);
      }
      pppVar2 = &ppVar4->next;
      ppVar4 = *pppVar2;
    } while (*pppVar2 != (plugin *)0x0);
  }
  return;
}



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

void FUN_000351f0(void)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  int *piVar4;
  
  piVar4 = DAT_00094b74;
  if (DAT_00094b74 != (int *)0x0) {
    do {
      if (((code *)piVar4[7] != (code *)0x0) && (piVar4[8] == 0)) {
        piVar4[8] = 1;
        DAT_00094b68 = piVar4;
        iVar2 = (*(code *)piVar4[7])();
        DAT_00094b68 = (int *)0x0;
        if (iVar2 != 0) {
          iVar1 = piVar4[1];
          uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);
          FUN_000316c0(uVar3,iVar1,iVar2);
        }
        dlclose(piVar4[2]);
      }
      piVar4 = (int *)*piVar4;
    } while (piVar4 != (int *)0x0);
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00015a10
ADD EBX,0x5ee07
SUB ESP,0x1c
MOV ESI,dword ptr [EBX + 0xb74]
TEST ESI,ESI
JZ 0x00035288
LEA EAX,[EBX + 0xfffbe008]
MOV dword ptr [ESP + 0xc],EAX
JMP 0x00035234
SUB ESP,0xc
PUSH dword ptr [ESI + 0x8]
CALL 0x00014320
ADD ESP,0x10
MOV ESI,dword ptr [ESI]
TEST ESI,ESI
JZ 0x00035288
MOV EAX,dword ptr [ESI + 0x1c]
TEST EAX,EAX
JZ 0x0003522e
MOV EDX,dword ptr [ESI + 0x20]
TEST EDX,EDX
JNZ 0x0003522e
MOV dword ptr [ESI + 0x20],0x1
MOV dword ptr [EBX + 0xb68],ESI
CALL EAX
MOV dword ptr [EBX + 0xb68],0x0
MOV EBP,EAX
TEST EAX,EAX
JZ 0x00035220
SUB ESP,0x4
MOV EDI,dword ptr [ESI + 0x4]
PUSH 0x5
PUSH dword ptr [ESP + 0x14]
PUSH 0x0
CALL 0x000142e0
ADD ESP,0xc
PUSH EBP
PUSH EDI
PUSH EAX
CALL 0x000316c0
ADD ESP,0x10
JMP 0x00035220
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000351f0(void)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  \n  piVar4 = DAT_00094b74;\n  if (DAT_00094b74 != (int *)0x0) {\n    do {\n      if (((code *)piVar4[7] != (code *)0x0) && (piVar4[8] == 0)) {\n        piVar4[8] = 1;\n        DAT_00094b68 = piVar4;\n        iVar2 = (*(code *)piVar4[7])();\n        DAT_00094b68 = (int *)0x0;\n        if (iVar2 != 0) {\n          iVar1 = piVar4[1];\n          uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          FUN_000316c0(uVar3,iVar1,iVar2);\n        }\n        dlclose(piVar4[2]);\n      }\n      piVar4 = (int *)*piVar4;\n    } while (piVar4 != (int *)0x0);\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_000351f0(void)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  \n  piVar4 = DAT_00094b74;\n  if (DAT_00094b74 != (int *)0x0) {\n    do {\n      if (((code *)piVar4[7] != (code *)0x0) && (piVar4[8] == 0)) {\n        piVar4[8] = 1;\n        DAT_00094b68 = piVar4;\n        iVar2 = (*(code *)piVar4[7])();\n        DAT_00094b68 = (int *)0x0;\n        if (iVar2 != 0) {\n          iVar1 = piVar4[1];\n          uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          FUN_000316c0(uVar3,iVar1,iVar2);\n        }\n        dlclose(piVar4[2]);\n      }\n      piVar4 = (int *)*piVar4;\n    } while (piVar4 != (int *)0x0);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000351f0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  \n  piVar4 = DAT_00094b74;\n  if (DAT_00094b74 != (int *)0x0) {\n    do {\n      if (((code *)piVar4[7] != (code *)0x0) && (piVar4[8] == 0)) {\n        piVar4[8] = 1;\n        DAT_00094b68 = piVar4;\n        iVar2 = (*(code *)piVar4[7])();\n        DAT_00094b68 = (int *)0x0;\n        if (iVar2 != 0) {\n          iVar1 = piVar4[1];\n          uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          FUN_000316c0(uVar3,iVar1,iVar2);\n        }\n        dlclose(piVar4[2]);\n      }\n      piVar4 = (int *)*piVar4;\n    } while (piVar4 != (int *)0x0);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (expression_statement "piVar4 = DAT_00094b74;" (assignment_expression "piVar4 = DAT_00094b74" identifier = identifier) ;) (if_statement "if (DAT_00094b74 != (int *)0x0) {\n    do {\n      if (((code *)piVar4[7] != (code *)0x0) && (piVar4[8] == 0)) {\n        piVar4[8] = 1;\n        DAT_00094b68 = piVar4;\n        iVar2 = (*(code *)piVar4[7])();\n        DAT_00094b68 = (int *)0x0;\n        if (iVar2 != 0) {\n          iVar1 = piVar4[1];\n          uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          FUN_000316c0(uVar3,iVar1,iVar2);\n        }\n        dlclose(piVar4[2]);\n      }\n      piVar4 = (int *)*piVar4;\n    } while (piVar4 != (int *)0x0);\n  }" if (parenthesized_expression "(DAT_00094b74 != (int *)0x0)" ( (binary_expression "DAT_00094b74 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      if (((code *)piVar4[7] != (code *)0x0) && (piVar4[8] == 0)) {\n        piVar4[8] = 1;\n        DAT_00094b68 = piVar4;\n        iVar2 = (*(code *)piVar4[7])();\n        DAT_00094b68 = (int *)0x0;\n        if (iVar2 != 0) {\n          iVar1 = piVar4[1];\n          uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          FUN_000316c0(uVar3,iVar1,iVar2);\n        }\n        dlclose(piVar4[2]);\n      }\n      piVar4 = (int *)*piVar4;\n    } while (piVar4 != (int *)0x0);\n  }" { (do_statement "do {\n      if (((code *)piVar4[7] != (code *)0x0) && (piVar4[8] == 0)) {\n        piVar4[8] = 1;\n        DAT_00094b68 = piVar4;\n        iVar2 = (*(code *)piVar4[7])();\n        DAT_00094b68 = (int *)0x0;\n        if (iVar2 != 0) {\n          iVar1 = piVar4[1];\n          uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          FUN_000316c0(uVar3,iVar1,iVar2);\n        }\n        dlclose(piVar4[2]);\n      }\n      piVar4 = (int *)*piVar4;\n    } while (piVar4 != (int *)0x0);" do (compound_statement "{\n      if (((code *)piVar4[7] != (code *)0x0) && (piVar4[8] == 0)) {\n        piVar4[8] = 1;\n        DAT_00094b68 = piVar4;\n        iVar2 = (*(code *)piVar4[7])();\n        DAT_00094b68 = (int *)0x0;\n        if (iVar2 != 0) {\n          iVar1 = piVar4[1];\n          uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          FUN_000316c0(uVar3,iVar1,iVar2);\n        }\n        dlclose(piVar4[2]);\n      }\n      piVar4 = (int *)*piVar4;\n    }" { (if_statement "if (((code *)piVar4[7] != (code *)0x0) && (piVar4[8] == 0)) {\n        piVar4[8] = 1;\n        DAT_00094b68 = piVar4;\n        iVar2 = (*(code *)piVar4[7])();\n        DAT_00094b68 = (int *)0x0;\n        if (iVar2 != 0) {\n          iVar1 = piVar4[1];\n          uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          FUN_000316c0(uVar3,iVar1,iVar2);\n        }\n        dlclose(piVar4[2]);\n      }" if (parenthesized_expression "(((code *)piVar4[7] != (code *)0x0) && (piVar4[8] == 0))" ( (binary_expression "((code *)piVar4[7] != (code *)0x0) && (piVar4[8] == 0)" (parenthesized_expression "((code *)piVar4[7] != (code *)0x0)" ( (binary_expression "(code *)piVar4[7] != (code *)0x0" (cast_expression "(code *)piVar4[7]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[7]" identifier [ number_literal ])) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(piVar4[8] == 0)" ( (binary_expression "piVar4[8] == 0" (subscript_expression "piVar4[8]" identifier [ number_literal ]) == number_literal) ))) )) (compound_statement "{\n        piVar4[8] = 1;\n        DAT_00094b68 = piVar4;\n        iVar2 = (*(code *)piVar4[7])();\n        DAT_00094b68 = (int *)0x0;\n        if (iVar2 != 0) {\n          iVar1 = piVar4[1];\n          uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          FUN_000316c0(uVar3,iVar1,iVar2);\n        }\n        dlclose(piVar4[2]);\n      }" { (expression_statement "piVar4[8] = 1;" (assignment_expression "piVar4[8] = 1" (subscript_expression "piVar4[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "DAT_00094b68 = piVar4;" (assignment_expression "DAT_00094b68 = piVar4" identifier = identifier) ;) (expression_statement "iVar2 = (*(code *)piVar4[7])();" (assignment_expression "iVar2 = (*(code *)piVar4[7])()" identifier = (call_expression "(*(code *)piVar4[7])()" (parenthesized_expression "(*(code *)piVar4[7])" ( (pointer_expression "*(code *)piVar4[7]" * (cast_expression "(code *)piVar4[7]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[7]" identifier [ number_literal ]))) )) (argument_list "()" ( )))) ;) (expression_statement "DAT_00094b68 = (int *)0x0;" (assignment_expression "DAT_00094b68 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (iVar2 != 0) {\n          iVar1 = piVar4[1];\n          uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          FUN_000316c0(uVar3,iVar1,iVar2);\n        }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n          iVar1 = piVar4[1];\n          uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          FUN_000316c0(uVar3,iVar1,iVar2);\n        }" { (expression_statement "iVar1 = piVar4[1];" (assignment_expression "iVar1 = piVar4[1]" identifier = (subscript_expression "piVar4[1]" identifier [ number_literal ])) ;) (expression_statement "uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);" (assignment_expression "uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5)" identifier = (call_expression "dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5)" identifier (argument_list "(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5)" ( number_literal , (string_literal ""%P: %s: error in plugin cleanup: %d (ignored)\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_000316c0(uVar3,iVar1,iVar2);" (call_expression "FUN_000316c0(uVar3,iVar1,iVar2)" identifier (argument_list "(uVar3,iVar1,iVar2)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "dlclose(piVar4[2]);" (call_expression "dlclose(piVar4[2])" identifier (argument_list "(piVar4[2])" ( (subscript_expression "piVar4[2]" identifier [ number_literal ]) ))) ;) })) (expression_statement "piVar4 = (int *)*piVar4;" (assignment_expression "piVar4 = (int *)*piVar4" identifier = (cast_expression "(int *)*piVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier))) ;) }) while (parenthesized_expression "(piVar4 != (int *)0x0)" ( (binary_expression "piVar4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (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 -- yet parameter storage is locked */\n\nvoid plugin_call_cleanup(void)\n\n{\n  char *pcVar1;\n  plugin **pppVar2;\n  ld_plugin_status lVar3;\n  char *fmt;\n  plugin *ppVar4;\n  \n  ppVar4 = plugins_list;\n  if (plugins_list != (plugin_t *)0x0) {\n    do {\n      if ((ppVar4->cleanup_handler != (ld_plugin_cleanup_handler)0x0) && (ppVar4->cleanup_done == 0)\n         ) {\n        ppVar4->cleanup_done = 1;\n        called_plugin = ppVar4;\n        lVar3 = (*ppVar4->cleanup_handler)();\n        called_plugin = (plugin_t *)0x0;\n        if (lVar3 != LDPS_OK) {\n          pcVar1 = ppVar4->name;\n          fmt = (char *)dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          info_msg(fmt,pcVar1,lVar3);\n        }\n        dlclose(ppVar4->dlhandle);\n      }\n      pppVar2 = &ppVar4->next;\n      ppVar4 = *pppVar2;\n    } while (*pppVar2 != (plugin *)0x0);\n  }\n  return;\n}\n\n" comment comment (function_definition "void plugin_call_cleanup(void)\n\n{\n  char *pcVar1;\n  plugin **pppVar2;\n  ld_plugin_status lVar3;\n  char *fmt;\n  plugin *ppVar4;\n  \n  ppVar4 = plugins_list;\n  if (plugins_list != (plugin_t *)0x0) {\n    do {\n      if ((ppVar4->cleanup_handler != (ld_plugin_cleanup_handler)0x0) && (ppVar4->cleanup_done == 0)\n         ) {\n        ppVar4->cleanup_done = 1;\n        called_plugin = ppVar4;\n        lVar3 = (*ppVar4->cleanup_handler)();\n        called_plugin = (plugin_t *)0x0;\n        if (lVar3 != LDPS_OK) {\n          pcVar1 = ppVar4->name;\n          fmt = (char *)dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          info_msg(fmt,pcVar1,lVar3);\n        }\n        dlclose(ppVar4->dlhandle);\n      }\n      pppVar2 = &ppVar4->next;\n      ppVar4 = *pppVar2;\n    } while (*pppVar2 != (plugin *)0x0);\n  }\n  return;\n}" primitive_type (function_declarator "plugin_call_cleanup(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char *pcVar1;\n  plugin **pppVar2;\n  ld_plugin_status lVar3;\n  char *fmt;\n  plugin *ppVar4;\n  \n  ppVar4 = plugins_list;\n  if (plugins_list != (plugin_t *)0x0) {\n    do {\n      if ((ppVar4->cleanup_handler != (ld_plugin_cleanup_handler)0x0) && (ppVar4->cleanup_done == 0)\n         ) {\n        ppVar4->cleanup_done = 1;\n        called_plugin = ppVar4;\n        lVar3 = (*ppVar4->cleanup_handler)();\n        called_plugin = (plugin_t *)0x0;\n        if (lVar3 != LDPS_OK) {\n          pcVar1 = ppVar4->name;\n          fmt = (char *)dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          info_msg(fmt,pcVar1,lVar3);\n        }\n        dlclose(ppVar4->dlhandle);\n      }\n      pppVar2 = &ppVar4->next;\n      ppVar4 = *pppVar2;\n    } while (*pppVar2 != (plugin *)0x0);\n  }\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "plugin **pppVar2;" type_identifier (pointer_declarator "**pppVar2" * (pointer_declarator "*pppVar2" * identifier)) ;) (declaration "ld_plugin_status lVar3;" type_identifier identifier ;) (declaration "char *fmt;" primitive_type (pointer_declarator "*fmt" * identifier) ;) (declaration "plugin *ppVar4;" type_identifier (pointer_declarator "*ppVar4" * identifier) ;) (expression_statement "ppVar4 = plugins_list;" (assignment_expression "ppVar4 = plugins_list" identifier = identifier) ;) (if_statement "if (plugins_list != (plugin_t *)0x0) {\n    do {\n      if ((ppVar4->cleanup_handler != (ld_plugin_cleanup_handler)0x0) && (ppVar4->cleanup_done == 0)\n         ) {\n        ppVar4->cleanup_done = 1;\n        called_plugin = ppVar4;\n        lVar3 = (*ppVar4->cleanup_handler)();\n        called_plugin = (plugin_t *)0x0;\n        if (lVar3 != LDPS_OK) {\n          pcVar1 = ppVar4->name;\n          fmt = (char *)dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          info_msg(fmt,pcVar1,lVar3);\n        }\n        dlclose(ppVar4->dlhandle);\n      }\n      pppVar2 = &ppVar4->next;\n      ppVar4 = *pppVar2;\n    } while (*pppVar2 != (plugin *)0x0);\n  }" if (parenthesized_expression "(plugins_list != (plugin_t *)0x0)" ( (binary_expression "plugins_list != (plugin_t *)0x0" identifier != (cast_expression "(plugin_t *)0x0" ( (type_descriptor "plugin_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      if ((ppVar4->cleanup_handler != (ld_plugin_cleanup_handler)0x0) && (ppVar4->cleanup_done == 0)\n         ) {\n        ppVar4->cleanup_done = 1;\n        called_plugin = ppVar4;\n        lVar3 = (*ppVar4->cleanup_handler)();\n        called_plugin = (plugin_t *)0x0;\n        if (lVar3 != LDPS_OK) {\n          pcVar1 = ppVar4->name;\n          fmt = (char *)dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          info_msg(fmt,pcVar1,lVar3);\n        }\n        dlclose(ppVar4->dlhandle);\n      }\n      pppVar2 = &ppVar4->next;\n      ppVar4 = *pppVar2;\n    } while (*pppVar2 != (plugin *)0x0);\n  }" { (do_statement "do {\n      if ((ppVar4->cleanup_handler != (ld_plugin_cleanup_handler)0x0) && (ppVar4->cleanup_done == 0)\n         ) {\n        ppVar4->cleanup_done = 1;\n        called_plugin = ppVar4;\n        lVar3 = (*ppVar4->cleanup_handler)();\n        called_plugin = (plugin_t *)0x0;\n        if (lVar3 != LDPS_OK) {\n          pcVar1 = ppVar4->name;\n          fmt = (char *)dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          info_msg(fmt,pcVar1,lVar3);\n        }\n        dlclose(ppVar4->dlhandle);\n      }\n      pppVar2 = &ppVar4->next;\n      ppVar4 = *pppVar2;\n    } while (*pppVar2 != (plugin *)0x0);" do (compound_statement "{\n      if ((ppVar4->cleanup_handler != (ld_plugin_cleanup_handler)0x0) && (ppVar4->cleanup_done == 0)\n         ) {\n        ppVar4->cleanup_done = 1;\n        called_plugin = ppVar4;\n        lVar3 = (*ppVar4->cleanup_handler)();\n        called_plugin = (plugin_t *)0x0;\n        if (lVar3 != LDPS_OK) {\n          pcVar1 = ppVar4->name;\n          fmt = (char *)dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          info_msg(fmt,pcVar1,lVar3);\n        }\n        dlclose(ppVar4->dlhandle);\n      }\n      pppVar2 = &ppVar4->next;\n      ppVar4 = *pppVar2;\n    }" { (if_statement "if ((ppVar4->cleanup_handler != (ld_plugin_cleanup_handler)0x0) && (ppVar4->cleanup_done == 0)\n         ) {\n        ppVar4->cleanup_done = 1;\n        called_plugin = ppVar4;\n        lVar3 = (*ppVar4->cleanup_handler)();\n        called_plugin = (plugin_t *)0x0;\n        if (lVar3 != LDPS_OK) {\n          pcVar1 = ppVar4->name;\n          fmt = (char *)dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          info_msg(fmt,pcVar1,lVar3);\n        }\n        dlclose(ppVar4->dlhandle);\n      }" if (parenthesized_expression "((ppVar4->cleanup_handler != (ld_plugin_cleanup_handler)0x0) && (ppVar4->cleanup_done == 0)\n         )" ( (binary_expression "(ppVar4->cleanup_handler != (ld_plugin_cleanup_handler)0x0) && (ppVar4->cleanup_done == 0)" (parenthesized_expression "(ppVar4->cleanup_handler != (ld_plugin_cleanup_handler)0x0)" ( (binary_expression "ppVar4->cleanup_handler != (ld_plugin_cleanup_handler)0x0" (field_expression "ppVar4->cleanup_handler" identifier -> field_identifier) != (cast_expression "(ld_plugin_cleanup_handler)0x0" ( (type_descriptor "ld_plugin_cleanup_handler" type_identifier) ) number_literal)) )) && (parenthesized_expression "(ppVar4->cleanup_done == 0)" ( (binary_expression "ppVar4->cleanup_done == 0" (field_expression "ppVar4->cleanup_done" identifier -> field_identifier) == number_literal) ))) )) (compound_statement "{\n        ppVar4->cleanup_done = 1;\n        called_plugin = ppVar4;\n        lVar3 = (*ppVar4->cleanup_handler)();\n        called_plugin = (plugin_t *)0x0;\n        if (lVar3 != LDPS_OK) {\n          pcVar1 = ppVar4->name;\n          fmt = (char *)dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          info_msg(fmt,pcVar1,lVar3);\n        }\n        dlclose(ppVar4->dlhandle);\n      }" { (expression_statement "ppVar4->cleanup_done = 1;" (assignment_expression "ppVar4->cleanup_done = 1" (field_expression "ppVar4->cleanup_done" identifier -> field_identifier) = number_literal) ;) (expression_statement "called_plugin = ppVar4;" (assignment_expression "called_plugin = ppVar4" identifier = identifier) ;) (expression_statement "lVar3 = (*ppVar4->cleanup_handler)();" (assignment_expression "lVar3 = (*ppVar4->cleanup_handler)()" identifier = (call_expression "(*ppVar4->cleanup_handler)()" (parenthesized_expression "(*ppVar4->cleanup_handler)" ( (pointer_expression "*ppVar4->cleanup_handler" * (field_expression "ppVar4->cleanup_handler" identifier -> field_identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "called_plugin = (plugin_t *)0x0;" (assignment_expression "called_plugin = (plugin_t *)0x0" identifier = (cast_expression "(plugin_t *)0x0" ( (type_descriptor "plugin_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (lVar3 != LDPS_OK) {\n          pcVar1 = ppVar4->name;\n          fmt = (char *)dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          info_msg(fmt,pcVar1,lVar3);\n        }" if (parenthesized_expression "(lVar3 != LDPS_OK)" ( (binary_expression "lVar3 != LDPS_OK" identifier != identifier) )) (compound_statement "{\n          pcVar1 = ppVar4->name;\n          fmt = (char *)dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          info_msg(fmt,pcVar1,lVar3);\n        }" { (expression_statement "pcVar1 = ppVar4->name;" (assignment_expression "pcVar1 = ppVar4->name" identifier = (field_expression "ppVar4->name" identifier -> field_identifier)) ;) (expression_statement "fmt = (char *)dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);" (assignment_expression "fmt = (char *)dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5)" identifier (argument_list "(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5)" ( number_literal , (string_literal ""%P: %s: error in plugin cleanup: %d (ignored)\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "info_msg(fmt,pcVar1,lVar3);" (call_expression "info_msg(fmt,pcVar1,lVar3)" identifier (argument_list "(fmt,pcVar1,lVar3)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "dlclose(ppVar4->dlhandle);" (call_expression "dlclose(ppVar4->dlhandle)" identifier (argument_list "(ppVar4->dlhandle)" ( (field_expression "ppVar4->dlhandle" identifier -> field_identifier) ))) ;) })) (expression_statement "pppVar2 = &ppVar4->next;" (assignment_expression "pppVar2 = &ppVar4->next" identifier = (pointer_expression "&ppVar4->next" & (field_expression "ppVar4->next" identifier -> field_identifier))) ;) (expression_statement "ppVar4 = *pppVar2;" (assignment_expression "ppVar4 = *pppVar2" identifier = (pointer_expression "*pppVar2" * identifier)) ;) }) while (parenthesized_expression "(*pppVar2 != (plugin *)0x0)" ( (binary_expression "*pppVar2 != (plugin *)0x0" (pointer_expression "*pppVar2" * identifier) != (cast_expression "(plugin *)0x0" ( (type_descriptor "plugin *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000351f0(void)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  \n  piVar4 = DAT_00094b74;\n  if (DAT_00094b74 != (int *)0x0) {\n    do {\n      if (((code *)piVar4[7] != (code *)0x0) && (piVar4[8] == 0)) {\n        piVar4[8] = 1;\n        DAT_00094b68 = piVar4;\n        iVar2 = (*(code *)piVar4[7])();\n        DAT_00094b68 = (int *)0x0;\n        if (iVar2 != 0) {\n          iVar1 = piVar4[1];\n          uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          FUN_000316c0(uVar3,iVar1,iVar2);\n        }\n        dlclose(piVar4[2]);\n      }\n      piVar4 = (int *)*piVar4;\n    } while (piVar4 != (int *)0x0);\n  }\n  return;\n}\n\n" (function_definition "void FUN_000351f0(void)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  \n  piVar4 = DAT_00094b74;\n  if (DAT_00094b74 != (int *)0x0) {\n    do {\n      if (((code *)piVar4[7] != (code *)0x0) && (piVar4[8] == 0)) {\n        piVar4[8] = 1;\n        DAT_00094b68 = piVar4;\n        iVar2 = (*(code *)piVar4[7])();\n        DAT_00094b68 = (int *)0x0;\n        if (iVar2 != 0) {\n          iVar1 = piVar4[1];\n          uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          FUN_000316c0(uVar3,iVar1,iVar2);\n        }\n        dlclose(piVar4[2]);\n      }\n      piVar4 = (int *)*piVar4;\n    } while (piVar4 != (int *)0x0);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000351f0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  \n  piVar4 = DAT_00094b74;\n  if (DAT_00094b74 != (int *)0x0) {\n    do {\n      if (((code *)piVar4[7] != (code *)0x0) && (piVar4[8] == 0)) {\n        piVar4[8] = 1;\n        DAT_00094b68 = piVar4;\n        iVar2 = (*(code *)piVar4[7])();\n        DAT_00094b68 = (int *)0x0;\n        if (iVar2 != 0) {\n          iVar1 = piVar4[1];\n          uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          FUN_000316c0(uVar3,iVar1,iVar2);\n        }\n        dlclose(piVar4[2]);\n      }\n      piVar4 = (int *)*piVar4;\n    } while (piVar4 != (int *)0x0);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (expression_statement "piVar4 = DAT_00094b74;" (assignment_expression "piVar4 = DAT_00094b74" identifier = identifier) ;) (if_statement "if (DAT_00094b74 != (int *)0x0) {\n    do {\n      if (((code *)piVar4[7] != (code *)0x0) && (piVar4[8] == 0)) {\n        piVar4[8] = 1;\n        DAT_00094b68 = piVar4;\n        iVar2 = (*(code *)piVar4[7])();\n        DAT_00094b68 = (int *)0x0;\n        if (iVar2 != 0) {\n          iVar1 = piVar4[1];\n          uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          FUN_000316c0(uVar3,iVar1,iVar2);\n        }\n        dlclose(piVar4[2]);\n      }\n      piVar4 = (int *)*piVar4;\n    } while (piVar4 != (int *)0x0);\n  }" if (parenthesized_expression "(DAT_00094b74 != (int *)0x0)" ( (binary_expression "DAT_00094b74 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      if (((code *)piVar4[7] != (code *)0x0) && (piVar4[8] == 0)) {\n        piVar4[8] = 1;\n        DAT_00094b68 = piVar4;\n        iVar2 = (*(code *)piVar4[7])();\n        DAT_00094b68 = (int *)0x0;\n        if (iVar2 != 0) {\n          iVar1 = piVar4[1];\n          uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          FUN_000316c0(uVar3,iVar1,iVar2);\n        }\n        dlclose(piVar4[2]);\n      }\n      piVar4 = (int *)*piVar4;\n    } while (piVar4 != (int *)0x0);\n  }" { (do_statement "do {\n      if (((code *)piVar4[7] != (code *)0x0) && (piVar4[8] == 0)) {\n        piVar4[8] = 1;\n        DAT_00094b68 = piVar4;\n        iVar2 = (*(code *)piVar4[7])();\n        DAT_00094b68 = (int *)0x0;\n        if (iVar2 != 0) {\n          iVar1 = piVar4[1];\n          uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          FUN_000316c0(uVar3,iVar1,iVar2);\n        }\n        dlclose(piVar4[2]);\n      }\n      piVar4 = (int *)*piVar4;\n    } while (piVar4 != (int *)0x0);" do (compound_statement "{\n      if (((code *)piVar4[7] != (code *)0x0) && (piVar4[8] == 0)) {\n        piVar4[8] = 1;\n        DAT_00094b68 = piVar4;\n        iVar2 = (*(code *)piVar4[7])();\n        DAT_00094b68 = (int *)0x0;\n        if (iVar2 != 0) {\n          iVar1 = piVar4[1];\n          uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          FUN_000316c0(uVar3,iVar1,iVar2);\n        }\n        dlclose(piVar4[2]);\n      }\n      piVar4 = (int *)*piVar4;\n    }" { (if_statement "if (((code *)piVar4[7] != (code *)0x0) && (piVar4[8] == 0)) {\n        piVar4[8] = 1;\n        DAT_00094b68 = piVar4;\n        iVar2 = (*(code *)piVar4[7])();\n        DAT_00094b68 = (int *)0x0;\n        if (iVar2 != 0) {\n          iVar1 = piVar4[1];\n          uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          FUN_000316c0(uVar3,iVar1,iVar2);\n        }\n        dlclose(piVar4[2]);\n      }" if (parenthesized_expression "(((code *)piVar4[7] != (code *)0x0) && (piVar4[8] == 0))" ( (binary_expression "((code *)piVar4[7] != (code *)0x0) && (piVar4[8] == 0)" (parenthesized_expression "((code *)piVar4[7] != (code *)0x0)" ( (binary_expression "(code *)piVar4[7] != (code *)0x0" (cast_expression "(code *)piVar4[7]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[7]" identifier [ number_literal ])) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(piVar4[8] == 0)" ( (binary_expression "piVar4[8] == 0" (subscript_expression "piVar4[8]" identifier [ number_literal ]) == number_literal) ))) )) (compound_statement "{\n        piVar4[8] = 1;\n        DAT_00094b68 = piVar4;\n        iVar2 = (*(code *)piVar4[7])();\n        DAT_00094b68 = (int *)0x0;\n        if (iVar2 != 0) {\n          iVar1 = piVar4[1];\n          uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          FUN_000316c0(uVar3,iVar1,iVar2);\n        }\n        dlclose(piVar4[2]);\n      }" { (expression_statement "piVar4[8] = 1;" (assignment_expression "piVar4[8] = 1" (subscript_expression "piVar4[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "DAT_00094b68 = piVar4;" (assignment_expression "DAT_00094b68 = piVar4" identifier = identifier) ;) (expression_statement "iVar2 = (*(code *)piVar4[7])();" (assignment_expression "iVar2 = (*(code *)piVar4[7])()" identifier = (call_expression "(*(code *)piVar4[7])()" (parenthesized_expression "(*(code *)piVar4[7])" ( (pointer_expression "*(code *)piVar4[7]" * (cast_expression "(code *)piVar4[7]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[7]" identifier [ number_literal ]))) )) (argument_list "()" ( )))) ;) (expression_statement "DAT_00094b68 = (int *)0x0;" (assignment_expression "DAT_00094b68 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (iVar2 != 0) {\n          iVar1 = piVar4[1];\n          uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          FUN_000316c0(uVar3,iVar1,iVar2);\n        }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n          iVar1 = piVar4[1];\n          uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          FUN_000316c0(uVar3,iVar1,iVar2);\n        }" { (expression_statement "iVar1 = piVar4[1];" (assignment_expression "iVar1 = piVar4[1]" identifier = (subscript_expression "piVar4[1]" identifier [ number_literal ])) ;) (expression_statement "uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);" (assignment_expression "uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5)" identifier = (call_expression "dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5)" identifier (argument_list "(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5)" ( number_literal , (string_literal ""%P: %s: error in plugin cleanup: %d (ignored)\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_000316c0(uVar3,iVar1,iVar2);" (call_expression "FUN_000316c0(uVar3,iVar1,iVar2)" identifier (argument_list "(uVar3,iVar1,iVar2)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "dlclose(piVar4[2]);" (call_expression "dlclose(piVar4[2])" identifier (argument_list "(piVar4[2])" ( (subscript_expression "piVar4[2]" identifier [ number_literal ]) ))) ;) })) (expression_statement "piVar4 = (int *)*piVar4;" (assignment_expression "piVar4 = (int *)*piVar4" identifier = (cast_expression "(int *)*piVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier))) ;) }) while (parenthesized_expression "(piVar4 != (int *)0x0)" ( (binary_expression "piVar4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) })) (return_statement return ;) })))
(function_definition "void FUN_000351f0(void)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  \n  piVar4 = DAT_00094b74;\n  if (DAT_00094b74 != (int *)0x0) {\n    do {\n      if (((code *)piVar4[7] != (code *)0x0) && (piVar4[8] == 0)) {\n        piVar4[8] = 1;\n        DAT_00094b68 = piVar4;\n        iVar2 = (*(code *)piVar4[7])();\n        DAT_00094b68 = (int *)0x0;\n        if (iVar2 != 0) {\n          iVar1 = piVar4[1];\n          uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          FUN_000316c0(uVar3,iVar1,iVar2);\n        }\n        dlclose(piVar4[2]);\n      }\n      piVar4 = (int *)*piVar4;\n    } while (piVar4 != (int *)0x0);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000351f0(void)" (identifier "FUN_000351f0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  \n  piVar4 = DAT_00094b74;\n  if (DAT_00094b74 != (int *)0x0) {\n    do {\n      if (((code *)piVar4[7] != (code *)0x0) && (piVar4[8] == 0)) {\n        piVar4[8] = 1;\n        DAT_00094b68 = piVar4;\n        iVar2 = (*(code *)piVar4[7])();\n        DAT_00094b68 = (int *)0x0;\n        if (iVar2 != 0) {\n          iVar1 = piVar4[1];\n          uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          FUN_000316c0(uVar3,iVar1,iVar2);\n        }\n        dlclose(piVar4[2]);\n      }\n      piVar4 = (int *)*piVar4;\n    } while (piVar4 != (int *)0x0);\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (expression_statement "piVar4 = DAT_00094b74;" (assignment_expression "piVar4 = DAT_00094b74" (identifier "piVar4") (= "=") (identifier "DAT_00094b74")) (; ";")) (if_statement "if (DAT_00094b74 != (int *)0x0) {\n    do {\n      if (((code *)piVar4[7] != (code *)0x0) && (piVar4[8] == 0)) {\n        piVar4[8] = 1;\n        DAT_00094b68 = piVar4;\n        iVar2 = (*(code *)piVar4[7])();\n        DAT_00094b68 = (int *)0x0;\n        if (iVar2 != 0) {\n          iVar1 = piVar4[1];\n          uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          FUN_000316c0(uVar3,iVar1,iVar2);\n        }\n        dlclose(piVar4[2]);\n      }\n      piVar4 = (int *)*piVar4;\n    } while (piVar4 != (int *)0x0);\n  }" (if "if") (parenthesized_expression "(DAT_00094b74 != (int *)0x0)" (( "(") (binary_expression "DAT_00094b74 != (int *)0x0" (identifier "DAT_00094b74") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    do {\n      if (((code *)piVar4[7] != (code *)0x0) && (piVar4[8] == 0)) {\n        piVar4[8] = 1;\n        DAT_00094b68 = piVar4;\n        iVar2 = (*(code *)piVar4[7])();\n        DAT_00094b68 = (int *)0x0;\n        if (iVar2 != 0) {\n          iVar1 = piVar4[1];\n          uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          FUN_000316c0(uVar3,iVar1,iVar2);\n        }\n        dlclose(piVar4[2]);\n      }\n      piVar4 = (int *)*piVar4;\n    } while (piVar4 != (int *)0x0);\n  }" ({ "{") (do_statement "do {\n      if (((code *)piVar4[7] != (code *)0x0) && (piVar4[8] == 0)) {\n        piVar4[8] = 1;\n        DAT_00094b68 = piVar4;\n        iVar2 = (*(code *)piVar4[7])();\n        DAT_00094b68 = (int *)0x0;\n        if (iVar2 != 0) {\n          iVar1 = piVar4[1];\n          uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          FUN_000316c0(uVar3,iVar1,iVar2);\n        }\n        dlclose(piVar4[2]);\n      }\n      piVar4 = (int *)*piVar4;\n    } while (piVar4 != (int *)0x0);" (do "do") (compound_statement "{\n      if (((code *)piVar4[7] != (code *)0x0) && (piVar4[8] == 0)) {\n        piVar4[8] = 1;\n        DAT_00094b68 = piVar4;\n        iVar2 = (*(code *)piVar4[7])();\n        DAT_00094b68 = (int *)0x0;\n        if (iVar2 != 0) {\n          iVar1 = piVar4[1];\n          uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          FUN_000316c0(uVar3,iVar1,iVar2);\n        }\n        dlclose(piVar4[2]);\n      }\n      piVar4 = (int *)*piVar4;\n    }" ({ "{") (if_statement "if (((code *)piVar4[7] != (code *)0x0) && (piVar4[8] == 0)) {\n        piVar4[8] = 1;\n        DAT_00094b68 = piVar4;\n        iVar2 = (*(code *)piVar4[7])();\n        DAT_00094b68 = (int *)0x0;\n        if (iVar2 != 0) {\n          iVar1 = piVar4[1];\n          uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          FUN_000316c0(uVar3,iVar1,iVar2);\n        }\n        dlclose(piVar4[2]);\n      }" (if "if") (parenthesized_expression "(((code *)piVar4[7] != (code *)0x0) && (piVar4[8] == 0))" (( "(") (binary_expression "((code *)piVar4[7] != (code *)0x0) && (piVar4[8] == 0)" (parenthesized_expression "((code *)piVar4[7] != (code *)0x0)" (( "(") (binary_expression "(code *)piVar4[7] != (code *)0x0" (cast_expression "(code *)piVar4[7]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar4[7]" (identifier "piVar4") ([ "[") (number_literal "7") (] "]"))) (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(piVar4[8] == 0)" (( "(") (binary_expression "piVar4[8] == 0" (subscript_expression "piVar4[8]" (identifier "piVar4") ([ "[") (number_literal "8") (] "]")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n        piVar4[8] = 1;\n        DAT_00094b68 = piVar4;\n        iVar2 = (*(code *)piVar4[7])();\n        DAT_00094b68 = (int *)0x0;\n        if (iVar2 != 0) {\n          iVar1 = piVar4[1];\n          uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          FUN_000316c0(uVar3,iVar1,iVar2);\n        }\n        dlclose(piVar4[2]);\n      }" ({ "{") (expression_statement "piVar4[8] = 1;" (assignment_expression "piVar4[8] = 1" (subscript_expression "piVar4[8]" (identifier "piVar4") ([ "[") (number_literal "8") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "DAT_00094b68 = piVar4;" (assignment_expression "DAT_00094b68 = piVar4" (identifier "DAT_00094b68") (= "=") (identifier "piVar4")) (; ";")) (expression_statement "iVar2 = (*(code *)piVar4[7])();" (assignment_expression "iVar2 = (*(code *)piVar4[7])()" (identifier "iVar2") (= "=") (call_expression "(*(code *)piVar4[7])()" (parenthesized_expression "(*(code *)piVar4[7])" (( "(") (pointer_expression "*(code *)piVar4[7]" (* "*") (cast_expression "(code *)piVar4[7]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar4[7]" (identifier "piVar4") ([ "[") (number_literal "7") (] "]")))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "DAT_00094b68 = (int *)0x0;" (assignment_expression "DAT_00094b68 = (int *)0x0" (identifier "DAT_00094b68") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (if_statement "if (iVar2 != 0) {\n          iVar1 = piVar4[1];\n          uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          FUN_000316c0(uVar3,iVar1,iVar2);\n        }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          iVar1 = piVar4[1];\n          uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);\n          FUN_000316c0(uVar3,iVar1,iVar2);\n        }" ({ "{") (expression_statement "iVar1 = piVar4[1];" (assignment_expression "iVar1 = piVar4[1]" (identifier "iVar1") (= "=") (subscript_expression "piVar4[1]" (identifier "piVar4") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);" (assignment_expression "uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5)" (identifier "uVar3") (= "=") (call_expression "dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5)" (identifier "dcgettext") (argument_list "(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""%P: %s: error in plugin cleanup: %d (ignored)\n"" (" """) (string_content "%P: %s: error in plugin cleanup: %d (ignored)") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_000316c0(uVar3,iVar1,iVar2);" (call_expression "FUN_000316c0(uVar3,iVar1,iVar2)" (identifier "FUN_000316c0") (argument_list "(uVar3,iVar1,iVar2)" (( "(") (identifier "uVar3") (, ",") (identifier "iVar1") (, ",") (identifier "iVar2") () ")"))) (; ";")) (} "}"))) (expression_statement "dlclose(piVar4[2]);" (call_expression "dlclose(piVar4[2])" (identifier "dlclose") (argument_list "(piVar4[2])" (( "(") (subscript_expression "piVar4[2]" (identifier "piVar4") ([ "[") (number_literal "2") (] "]")) () ")"))) (; ";")) (} "}"))) (expression_statement "piVar4 = (int *)*piVar4;" (assignment_expression "piVar4 = (int *)*piVar4" (identifier "piVar4") (= "=") (cast_expression "(int *)*piVar4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar4" (* "*") (identifier "piVar4")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar4 != (int *)0x0)" (( "(") (binary_expression "piVar4 != (int *)0x0" (identifier "piVar4") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void function_1(void)

{
  char *pcVar1;
  type_1 **pppVar2;
  type_2 var_2;
  char *fmt;
  type_1 *ppVar4;
  
  ppVar4 = var_1;
  if (var_1 != (type_3 *)0x0) {
    do {
      if ((ppVar4->cleanup_handler != (type_4)0x0) && (ppVar4->cleanup_done == 0)
         ) {
        ppVar4->cleanup_done = 1;
        called_plugin = ppVar4;
        var_2 = (*ppVar4->cleanup_handler)();
        called_plugin = (type_3 *)0x0;
        if (var_2 != var_3) {
          pcVar1 = ppVar4->name;
          fmt = (char *)var_4(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);
          var_5(fmt,pcVar1,var_2);
        }
        var_6(ppVar4->dlhandle);
      }
      pppVar2 = &ppVar4->next;
      ppVar4 = *pppVar2;
    } while (*pppVar2 != (type_1 *)0x0);
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content) (escape_sequence)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))))) (return_statement))))

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

void MASKED(void)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  int *piVar4;
  
  piVar4 = DAT_00094b74;
  if (DAT_00094b74 != (int *)0x0) {
    do {
      if (((code *)piVar4[7] != (code *)0x0) && (piVar4[8] == 0)) {
        piVar4[8] = 1;
        DAT_00094b68 = piVar4;
        iVar2 = (*(code *)piVar4[7])();
        DAT_00094b68 = (int *)0x0;
        if (iVar2 != 0) {
          iVar1 = piVar4[1];
          uVar3 = dcgettext(0,"%P: %s: error in plugin cleanup: %d (ignored)\n",5);
          FUN_000316c0(uVar3,iVar1,iVar2);
        }
        dlclose(piVar4[2]);
      }
      piVar4 = (int *)*piVar4;
    } while (piVar4 != (int *)0x0);
  }
  return;
}

