
/* WARNING: Unknown calling convention */

int plugin_call_all_symbols_read(void)

{
  plugin **pppVar1;
  ld_plugin_status lVar2;
  plugin *ppVar3;
  
  no_more_claiming = 1;
  ppVar3 = plugins_list;
  if (plugins_list != (plugin_t *)0x0) {
    do {
      if (ppVar3->all_symbols_read_handler != (ld_plugin_all_symbols_read_handler)0x0) {
        called_plugin = ppVar3;
        lVar2 = (*ppVar3->all_symbols_read_handler)();
        called_plugin = (plugin_t *)0x0;
        if (lVar2 != LDPS_OK) {
          error_plugin = ppVar3->name;
        }
      }
      pppVar1 = &ppVar3->next;
      ppVar3 = *pppVar1;
    } while (*pppVar1 != (plugin *)0x0);
  }
  return -(uint)(error_plugin != (char *)0x0);
}



int FUN_00128c20(void)

{
  int iVar1;
  long *plVar2;
  
  DAT_00181620 = 1;
  plVar2 = DAT_001816e8;
  if (DAT_001816e8 != (long *)0x0) {
    do {
      if ((code *)plVar2[6] != (code *)0x0) {
        DAT_001816d0 = plVar2;
        iVar1 = (*(code *)plVar2[6])();
        DAT_001816d0 = (long *)0x0;
        if (iVar1 != 0) {
          DAT_001816c8 = plVar2[1];
        }
      }
      plVar2 = (long *)*plVar2;
    } while (plVar2 != (long *)0x0);
  }
  return -(uint)(DAT_001816c8 != 0);
}


PUSH RBX
MOV RBX,qword ptr [0x001816e8]
MOV dword ptr [0x00181620],0x1
TEST RBX,RBX
JZ 0x00128c74
NOP word ptr [RAX + RAX*0x1]
MOV RAX,qword ptr [RBX + 0x30]
TEST RAX,RAX
JZ 0x00128c6c
MOV qword ptr [0x001816d0],RBX
CALL RAX
MOV qword ptr [0x001816d0],0x0
TEST EAX,EAX
JZ 0x00128c6c
MOV RAX,qword ptr [RBX + 0x8]
MOV qword ptr [0x001816c8],RAX
MOV RBX,qword ptr [RBX]
TEST RBX,RBX
JNZ 0x00128c40
XOR EAX,EAX
CMP qword ptr [0x001816c8],0x0
POP RBX
SETNZ AL
NEG EAX
RET
(translation_unit "int FUN_00128c20(void)\n\n{\n  int iVar1;\n  long *plVar2;\n  \n  DAT_00181620 = 1;\n  plVar2 = DAT_001816e8;\n  if (DAT_001816e8 != (long *)0x0) {\n    do {\n      if ((code *)plVar2[6] != (code *)0x0) {\n        DAT_001816d0 = plVar2;\n        iVar1 = (*(code *)plVar2[6])();\n        DAT_001816d0 = (long *)0x0;\n        if (iVar1 != 0) {\n          DAT_001816c8 = plVar2[1];\n        }\n      }\n      plVar2 = (long *)*plVar2;\n    } while (plVar2 != (long *)0x0);\n  }\n  return -(uint)(DAT_001816c8 != 0);\n}\n\n" (function_definition "int FUN_00128c20(void)\n\n{\n  int iVar1;\n  long *plVar2;\n  \n  DAT_00181620 = 1;\n  plVar2 = DAT_001816e8;\n  if (DAT_001816e8 != (long *)0x0) {\n    do {\n      if ((code *)plVar2[6] != (code *)0x0) {\n        DAT_001816d0 = plVar2;\n        iVar1 = (*(code *)plVar2[6])();\n        DAT_001816d0 = (long *)0x0;\n        if (iVar1 != 0) {\n          DAT_001816c8 = plVar2[1];\n        }\n      }\n      plVar2 = (long *)*plVar2;\n    } while (plVar2 != (long *)0x0);\n  }\n  return -(uint)(DAT_001816c8 != 0);\n}" primitive_type (function_declarator "FUN_00128c20(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  long *plVar2;\n  \n  DAT_00181620 = 1;\n  plVar2 = DAT_001816e8;\n  if (DAT_001816e8 != (long *)0x0) {\n    do {\n      if ((code *)plVar2[6] != (code *)0x0) {\n        DAT_001816d0 = plVar2;\n        iVar1 = (*(code *)plVar2[6])();\n        DAT_001816d0 = (long *)0x0;\n        if (iVar1 != 0) {\n          DAT_001816c8 = plVar2[1];\n        }\n      }\n      plVar2 = (long *)*plVar2;\n    } while (plVar2 != (long *)0x0);\n  }\n  return -(uint)(DAT_001816c8 != 0);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (expression_statement "DAT_00181620 = 1;" (assignment_expression "DAT_00181620 = 1" identifier = number_literal) ;) (expression_statement "plVar2 = DAT_001816e8;" (assignment_expression "plVar2 = DAT_001816e8" identifier = identifier) ;) (if_statement "if (DAT_001816e8 != (long *)0x0) {\n    do {\n      if ((code *)plVar2[6] != (code *)0x0) {\n        DAT_001816d0 = plVar2;\n        iVar1 = (*(code *)plVar2[6])();\n        DAT_001816d0 = (long *)0x0;\n        if (iVar1 != 0) {\n          DAT_001816c8 = plVar2[1];\n        }\n      }\n      plVar2 = (long *)*plVar2;\n    } while (plVar2 != (long *)0x0);\n  }" if (parenthesized_expression "(DAT_001816e8 != (long *)0x0)" ( (binary_expression "DAT_001816e8 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      if ((code *)plVar2[6] != (code *)0x0) {\n        DAT_001816d0 = plVar2;\n        iVar1 = (*(code *)plVar2[6])();\n        DAT_001816d0 = (long *)0x0;\n        if (iVar1 != 0) {\n          DAT_001816c8 = plVar2[1];\n        }\n      }\n      plVar2 = (long *)*plVar2;\n    } while (plVar2 != (long *)0x0);\n  }" { (do_statement "do {\n      if ((code *)plVar2[6] != (code *)0x0) {\n        DAT_001816d0 = plVar2;\n        iVar1 = (*(code *)plVar2[6])();\n        DAT_001816d0 = (long *)0x0;\n        if (iVar1 != 0) {\n          DAT_001816c8 = plVar2[1];\n        }\n      }\n      plVar2 = (long *)*plVar2;\n    } while (plVar2 != (long *)0x0);" do (compound_statement "{\n      if ((code *)plVar2[6] != (code *)0x0) {\n        DAT_001816d0 = plVar2;\n        iVar1 = (*(code *)plVar2[6])();\n        DAT_001816d0 = (long *)0x0;\n        if (iVar1 != 0) {\n          DAT_001816c8 = plVar2[1];\n        }\n      }\n      plVar2 = (long *)*plVar2;\n    }" { (if_statement "if ((code *)plVar2[6] != (code *)0x0) {\n        DAT_001816d0 = plVar2;\n        iVar1 = (*(code *)plVar2[6])();\n        DAT_001816d0 = (long *)0x0;\n        if (iVar1 != 0) {\n          DAT_001816c8 = plVar2[1];\n        }\n      }" if (parenthesized_expression "((code *)plVar2[6] != (code *)0x0)" ( (binary_expression "(code *)plVar2[6] != (code *)0x0" (cast_expression "(code *)plVar2[6]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar2[6]" identifier [ number_literal ])) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        DAT_001816d0 = plVar2;\n        iVar1 = (*(code *)plVar2[6])();\n        DAT_001816d0 = (long *)0x0;\n        if (iVar1 != 0) {\n          DAT_001816c8 = plVar2[1];\n        }\n      }" { (expression_statement "DAT_001816d0 = plVar2;" (assignment_expression "DAT_001816d0 = plVar2" identifier = identifier) ;) (expression_statement "iVar1 = (*(code *)plVar2[6])();" (assignment_expression "iVar1 = (*(code *)plVar2[6])()" identifier = (call_expression "(*(code *)plVar2[6])()" (parenthesized_expression "(*(code *)plVar2[6])" ( (pointer_expression "*(code *)plVar2[6]" * (cast_expression "(code *)plVar2[6]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar2[6]" identifier [ number_literal ]))) )) (argument_list "()" ( )))) ;) (expression_statement "DAT_001816d0 = (long *)0x0;" (assignment_expression "DAT_001816d0 = (long *)0x0" identifier = (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (iVar1 != 0) {\n          DAT_001816c8 = plVar2[1];\n        }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n          DAT_001816c8 = plVar2[1];\n        }" { (expression_statement "DAT_001816c8 = plVar2[1];" (assignment_expression "DAT_001816c8 = plVar2[1]" identifier = (subscript_expression "plVar2[1]" identifier [ number_literal ])) ;) })) })) (expression_statement "plVar2 = (long *)*plVar2;" (assignment_expression "plVar2 = (long *)*plVar2" identifier = (cast_expression "(long *)*plVar2" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*plVar2" * identifier))) ;) }) while (parenthesized_expression "(plVar2 != (long *)0x0)" ( (binary_expression "plVar2 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (return_statement "return -(uint)(DAT_001816c8 != 0);" return (unary_expression "-(uint)(DAT_001816c8 != 0)" - (call_expression "(uint)(DAT_001816c8 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(DAT_001816c8 != 0)" ( (binary_expression "DAT_001816c8 != 0" identifier != number_literal) )))) ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint plugin_call_all_symbols_read(void)\n\n{\n  plugin **pppVar1;\n  ld_plugin_status lVar2;\n  plugin *ppVar3;\n  \n  no_more_claiming = 1;\n  ppVar3 = plugins_list;\n  if (plugins_list != (plugin_t *)0x0) {\n    do {\n      if (ppVar3->all_symbols_read_handler != (ld_plugin_all_symbols_read_handler)0x0) {\n        called_plugin = ppVar3;\n        lVar2 = (*ppVar3->all_symbols_read_handler)();\n        called_plugin = (plugin_t *)0x0;\n        if (lVar2 != LDPS_OK) {\n          error_plugin = ppVar3->name;\n        }\n      }\n      pppVar1 = &ppVar3->next;\n      ppVar3 = *pppVar1;\n    } while (*pppVar1 != (plugin *)0x0);\n  }\n  return -(uint)(error_plugin != (char *)0x0);\n}\n\n" comment (function_definition "int plugin_call_all_symbols_read(void)\n\n{\n  plugin **pppVar1;\n  ld_plugin_status lVar2;\n  plugin *ppVar3;\n  \n  no_more_claiming = 1;\n  ppVar3 = plugins_list;\n  if (plugins_list != (plugin_t *)0x0) {\n    do {\n      if (ppVar3->all_symbols_read_handler != (ld_plugin_all_symbols_read_handler)0x0) {\n        called_plugin = ppVar3;\n        lVar2 = (*ppVar3->all_symbols_read_handler)();\n        called_plugin = (plugin_t *)0x0;\n        if (lVar2 != LDPS_OK) {\n          error_plugin = ppVar3->name;\n        }\n      }\n      pppVar1 = &ppVar3->next;\n      ppVar3 = *pppVar1;\n    } while (*pppVar1 != (plugin *)0x0);\n  }\n  return -(uint)(error_plugin != (char *)0x0);\n}" primitive_type (function_declarator "plugin_call_all_symbols_read(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  plugin **pppVar1;\n  ld_plugin_status lVar2;\n  plugin *ppVar3;\n  \n  no_more_claiming = 1;\n  ppVar3 = plugins_list;\n  if (plugins_list != (plugin_t *)0x0) {\n    do {\n      if (ppVar3->all_symbols_read_handler != (ld_plugin_all_symbols_read_handler)0x0) {\n        called_plugin = ppVar3;\n        lVar2 = (*ppVar3->all_symbols_read_handler)();\n        called_plugin = (plugin_t *)0x0;\n        if (lVar2 != LDPS_OK) {\n          error_plugin = ppVar3->name;\n        }\n      }\n      pppVar1 = &ppVar3->next;\n      ppVar3 = *pppVar1;\n    } while (*pppVar1 != (plugin *)0x0);\n  }\n  return -(uint)(error_plugin != (char *)0x0);\n}" { (declaration "plugin **pppVar1;" type_identifier (pointer_declarator "**pppVar1" * (pointer_declarator "*pppVar1" * identifier)) ;) (declaration "ld_plugin_status lVar2;" type_identifier identifier ;) (declaration "plugin *ppVar3;" type_identifier (pointer_declarator "*ppVar3" * identifier) ;) (expression_statement "no_more_claiming = 1;" (assignment_expression "no_more_claiming = 1" identifier = number_literal) ;) (expression_statement "ppVar3 = plugins_list;" (assignment_expression "ppVar3 = plugins_list" identifier = identifier) ;) (if_statement "if (plugins_list != (plugin_t *)0x0) {\n    do {\n      if (ppVar3->all_symbols_read_handler != (ld_plugin_all_symbols_read_handler)0x0) {\n        called_plugin = ppVar3;\n        lVar2 = (*ppVar3->all_symbols_read_handler)();\n        called_plugin = (plugin_t *)0x0;\n        if (lVar2 != LDPS_OK) {\n          error_plugin = ppVar3->name;\n        }\n      }\n      pppVar1 = &ppVar3->next;\n      ppVar3 = *pppVar1;\n    } while (*pppVar1 != (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 (ppVar3->all_symbols_read_handler != (ld_plugin_all_symbols_read_handler)0x0) {\n        called_plugin = ppVar3;\n        lVar2 = (*ppVar3->all_symbols_read_handler)();\n        called_plugin = (plugin_t *)0x0;\n        if (lVar2 != LDPS_OK) {\n          error_plugin = ppVar3->name;\n        }\n      }\n      pppVar1 = &ppVar3->next;\n      ppVar3 = *pppVar1;\n    } while (*pppVar1 != (plugin *)0x0);\n  }" { (do_statement "do {\n      if (ppVar3->all_symbols_read_handler != (ld_plugin_all_symbols_read_handler)0x0) {\n        called_plugin = ppVar3;\n        lVar2 = (*ppVar3->all_symbols_read_handler)();\n        called_plugin = (plugin_t *)0x0;\n        if (lVar2 != LDPS_OK) {\n          error_plugin = ppVar3->name;\n        }\n      }\n      pppVar1 = &ppVar3->next;\n      ppVar3 = *pppVar1;\n    } while (*pppVar1 != (plugin *)0x0);" do (compound_statement "{\n      if (ppVar3->all_symbols_read_handler != (ld_plugin_all_symbols_read_handler)0x0) {\n        called_plugin = ppVar3;\n        lVar2 = (*ppVar3->all_symbols_read_handler)();\n        called_plugin = (plugin_t *)0x0;\n        if (lVar2 != LDPS_OK) {\n          error_plugin = ppVar3->name;\n        }\n      }\n      pppVar1 = &ppVar3->next;\n      ppVar3 = *pppVar1;\n    }" { (if_statement "if (ppVar3->all_symbols_read_handler != (ld_plugin_all_symbols_read_handler)0x0) {\n        called_plugin = ppVar3;\n        lVar2 = (*ppVar3->all_symbols_read_handler)();\n        called_plugin = (plugin_t *)0x0;\n        if (lVar2 != LDPS_OK) {\n          error_plugin = ppVar3->name;\n        }\n      }" if (parenthesized_expression "(ppVar3->all_symbols_read_handler != (ld_plugin_all_symbols_read_handler)0x0)" ( (binary_expression "ppVar3->all_symbols_read_handler != (ld_plugin_all_symbols_read_handler)0x0" (field_expression "ppVar3->all_symbols_read_handler" identifier -> field_identifier) != (cast_expression "(ld_plugin_all_symbols_read_handler)0x0" ( (type_descriptor "ld_plugin_all_symbols_read_handler" type_identifier) ) number_literal)) )) (compound_statement "{\n        called_plugin = ppVar3;\n        lVar2 = (*ppVar3->all_symbols_read_handler)();\n        called_plugin = (plugin_t *)0x0;\n        if (lVar2 != LDPS_OK) {\n          error_plugin = ppVar3->name;\n        }\n      }" { (expression_statement "called_plugin = ppVar3;" (assignment_expression "called_plugin = ppVar3" identifier = identifier) ;) (expression_statement "lVar2 = (*ppVar3->all_symbols_read_handler)();" (assignment_expression "lVar2 = (*ppVar3->all_symbols_read_handler)()" identifier = (call_expression "(*ppVar3->all_symbols_read_handler)()" (parenthesized_expression "(*ppVar3->all_symbols_read_handler)" ( (pointer_expression "*ppVar3->all_symbols_read_handler" * (field_expression "ppVar3->all_symbols_read_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 (lVar2 != LDPS_OK) {\n          error_plugin = ppVar3->name;\n        }" if (parenthesized_expression "(lVar2 != LDPS_OK)" ( (binary_expression "lVar2 != LDPS_OK" identifier != identifier) )) (compound_statement "{\n          error_plugin = ppVar3->name;\n        }" { (expression_statement "error_plugin = ppVar3->name;" (assignment_expression "error_plugin = ppVar3->name" identifier = (field_expression "ppVar3->name" identifier -> field_identifier)) ;) })) })) (expression_statement "pppVar1 = &ppVar3->next;" (assignment_expression "pppVar1 = &ppVar3->next" identifier = (pointer_expression "&ppVar3->next" & (field_expression "ppVar3->next" identifier -> field_identifier))) ;) (expression_statement "ppVar3 = *pppVar1;" (assignment_expression "ppVar3 = *pppVar1" identifier = (pointer_expression "*pppVar1" * identifier)) ;) }) while (parenthesized_expression "(*pppVar1 != (plugin *)0x0)" ( (binary_expression "*pppVar1 != (plugin *)0x0" (pointer_expression "*pppVar1" * identifier) != (cast_expression "(plugin *)0x0" ( (type_descriptor "plugin *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (return_statement "return -(uint)(error_plugin != (char *)0x0);" return (unary_expression "-(uint)(error_plugin != (char *)0x0)" - (call_expression "(uint)(error_plugin != (char *)0x0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(error_plugin != (char *)0x0)" ( (binary_expression "error_plugin != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )))) ;) })))
(translation_unit "int FUN_00128c20(void)\n\n{\n  int iVar1;\n  long *plVar2;\n  \n  DAT_00181620 = 1;\n  plVar2 = DAT_001816e8;\n  if (DAT_001816e8 != (long *)0x0) {\n    do {\n      if ((code *)plVar2[6] != (code *)0x0) {\n        DAT_001816d0 = plVar2;\n        iVar1 = (*(code *)plVar2[6])();\n        DAT_001816d0 = (long *)0x0;\n        if (iVar1 != 0) {\n          DAT_001816c8 = plVar2[1];\n        }\n      }\n      plVar2 = (long *)*plVar2;\n    } while (plVar2 != (long *)0x0);\n  }\n  return -(uint)(DAT_001816c8 != 0);\n}\n\n" (function_definition "int FUN_00128c20(void)\n\n{\n  int iVar1;\n  long *plVar2;\n  \n  DAT_00181620 = 1;\n  plVar2 = DAT_001816e8;\n  if (DAT_001816e8 != (long *)0x0) {\n    do {\n      if ((code *)plVar2[6] != (code *)0x0) {\n        DAT_001816d0 = plVar2;\n        iVar1 = (*(code *)plVar2[6])();\n        DAT_001816d0 = (long *)0x0;\n        if (iVar1 != 0) {\n          DAT_001816c8 = plVar2[1];\n        }\n      }\n      plVar2 = (long *)*plVar2;\n    } while (plVar2 != (long *)0x0);\n  }\n  return -(uint)(DAT_001816c8 != 0);\n}" primitive_type (function_declarator "FUN_00128c20(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  long *plVar2;\n  \n  DAT_00181620 = 1;\n  plVar2 = DAT_001816e8;\n  if (DAT_001816e8 != (long *)0x0) {\n    do {\n      if ((code *)plVar2[6] != (code *)0x0) {\n        DAT_001816d0 = plVar2;\n        iVar1 = (*(code *)plVar2[6])();\n        DAT_001816d0 = (long *)0x0;\n        if (iVar1 != 0) {\n          DAT_001816c8 = plVar2[1];\n        }\n      }\n      plVar2 = (long *)*plVar2;\n    } while (plVar2 != (long *)0x0);\n  }\n  return -(uint)(DAT_001816c8 != 0);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (expression_statement "DAT_00181620 = 1;" (assignment_expression "DAT_00181620 = 1" identifier = number_literal) ;) (expression_statement "plVar2 = DAT_001816e8;" (assignment_expression "plVar2 = DAT_001816e8" identifier = identifier) ;) (if_statement "if (DAT_001816e8 != (long *)0x0) {\n    do {\n      if ((code *)plVar2[6] != (code *)0x0) {\n        DAT_001816d0 = plVar2;\n        iVar1 = (*(code *)plVar2[6])();\n        DAT_001816d0 = (long *)0x0;\n        if (iVar1 != 0) {\n          DAT_001816c8 = plVar2[1];\n        }\n      }\n      plVar2 = (long *)*plVar2;\n    } while (plVar2 != (long *)0x0);\n  }" if (parenthesized_expression "(DAT_001816e8 != (long *)0x0)" ( (binary_expression "DAT_001816e8 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      if ((code *)plVar2[6] != (code *)0x0) {\n        DAT_001816d0 = plVar2;\n        iVar1 = (*(code *)plVar2[6])();\n        DAT_001816d0 = (long *)0x0;\n        if (iVar1 != 0) {\n          DAT_001816c8 = plVar2[1];\n        }\n      }\n      plVar2 = (long *)*plVar2;\n    } while (plVar2 != (long *)0x0);\n  }" { (do_statement "do {\n      if ((code *)plVar2[6] != (code *)0x0) {\n        DAT_001816d0 = plVar2;\n        iVar1 = (*(code *)plVar2[6])();\n        DAT_001816d0 = (long *)0x0;\n        if (iVar1 != 0) {\n          DAT_001816c8 = plVar2[1];\n        }\n      }\n      plVar2 = (long *)*plVar2;\n    } while (plVar2 != (long *)0x0);" do (compound_statement "{\n      if ((code *)plVar2[6] != (code *)0x0) {\n        DAT_001816d0 = plVar2;\n        iVar1 = (*(code *)plVar2[6])();\n        DAT_001816d0 = (long *)0x0;\n        if (iVar1 != 0) {\n          DAT_001816c8 = plVar2[1];\n        }\n      }\n      plVar2 = (long *)*plVar2;\n    }" { (if_statement "if ((code *)plVar2[6] != (code *)0x0) {\n        DAT_001816d0 = plVar2;\n        iVar1 = (*(code *)plVar2[6])();\n        DAT_001816d0 = (long *)0x0;\n        if (iVar1 != 0) {\n          DAT_001816c8 = plVar2[1];\n        }\n      }" if (parenthesized_expression "((code *)plVar2[6] != (code *)0x0)" ( (binary_expression "(code *)plVar2[6] != (code *)0x0" (cast_expression "(code *)plVar2[6]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar2[6]" identifier [ number_literal ])) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        DAT_001816d0 = plVar2;\n        iVar1 = (*(code *)plVar2[6])();\n        DAT_001816d0 = (long *)0x0;\n        if (iVar1 != 0) {\n          DAT_001816c8 = plVar2[1];\n        }\n      }" { (expression_statement "DAT_001816d0 = plVar2;" (assignment_expression "DAT_001816d0 = plVar2" identifier = identifier) ;) (expression_statement "iVar1 = (*(code *)plVar2[6])();" (assignment_expression "iVar1 = (*(code *)plVar2[6])()" identifier = (call_expression "(*(code *)plVar2[6])()" (parenthesized_expression "(*(code *)plVar2[6])" ( (pointer_expression "*(code *)plVar2[6]" * (cast_expression "(code *)plVar2[6]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar2[6]" identifier [ number_literal ]))) )) (argument_list "()" ( )))) ;) (expression_statement "DAT_001816d0 = (long *)0x0;" (assignment_expression "DAT_001816d0 = (long *)0x0" identifier = (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (iVar1 != 0) {\n          DAT_001816c8 = plVar2[1];\n        }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n          DAT_001816c8 = plVar2[1];\n        }" { (expression_statement "DAT_001816c8 = plVar2[1];" (assignment_expression "DAT_001816c8 = plVar2[1]" identifier = (subscript_expression "plVar2[1]" identifier [ number_literal ])) ;) })) })) (expression_statement "plVar2 = (long *)*plVar2;" (assignment_expression "plVar2 = (long *)*plVar2" identifier = (cast_expression "(long *)*plVar2" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*plVar2" * identifier))) ;) }) while (parenthesized_expression "(plVar2 != (long *)0x0)" ( (binary_expression "plVar2 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (return_statement "return -(uint)(DAT_001816c8 != 0);" return (unary_expression "-(uint)(DAT_001816c8 != 0)" - (call_expression "(uint)(DAT_001816c8 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(DAT_001816c8 != 0)" ( (binary_expression "DAT_001816c8 != 0" identifier != number_literal) )))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (do_statement do (compound_statement { (if_statement if (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)) )) (compound_statement { (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 (sized_type_specifier long) (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 = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) ;) })) (return_statement return (unary_expression - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT != LIT) )))) ;) })))
(function_definition "int FUN_00128c20(void)\n\n{\n  int iVar1;\n  long *plVar2;\n  \n  DAT_00181620 = 1;\n  plVar2 = DAT_001816e8;\n  if (DAT_001816e8 != (long *)0x0) {\n    do {\n      if ((code *)plVar2[6] != (code *)0x0) {\n        DAT_001816d0 = plVar2;\n        iVar1 = (*(code *)plVar2[6])();\n        DAT_001816d0 = (long *)0x0;\n        if (iVar1 != 0) {\n          DAT_001816c8 = plVar2[1];\n        }\n      }\n      plVar2 = (long *)*plVar2;\n    } while (plVar2 != (long *)0x0);\n  }\n  return -(uint)(DAT_001816c8 != 0);\n}" (primitive_type "int") (function_declarator "FUN_00128c20(void)" (identifier "FUN_00128c20") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  long *plVar2;\n  \n  DAT_00181620 = 1;\n  plVar2 = DAT_001816e8;\n  if (DAT_001816e8 != (long *)0x0) {\n    do {\n      if ((code *)plVar2[6] != (code *)0x0) {\n        DAT_001816d0 = plVar2;\n        iVar1 = (*(code *)plVar2[6])();\n        DAT_001816d0 = (long *)0x0;\n        if (iVar1 != 0) {\n          DAT_001816c8 = plVar2[1];\n        }\n      }\n      plVar2 = (long *)*plVar2;\n    } while (plVar2 != (long *)0x0);\n  }\n  return -(uint)(DAT_001816c8 != 0);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "long *plVar2;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar2" (* "*") (identifier "plVar2")) (; ";")) (expression_statement "DAT_00181620 = 1;" (assignment_expression "DAT_00181620 = 1" (identifier "DAT_00181620") (= "=") (number_literal "1")) (; ";")) (expression_statement "plVar2 = DAT_001816e8;" (assignment_expression "plVar2 = DAT_001816e8" (identifier "plVar2") (= "=") (identifier "DAT_001816e8")) (; ";")) (if_statement "if (DAT_001816e8 != (long *)0x0) {\n    do {\n      if ((code *)plVar2[6] != (code *)0x0) {\n        DAT_001816d0 = plVar2;\n        iVar1 = (*(code *)plVar2[6])();\n        DAT_001816d0 = (long *)0x0;\n        if (iVar1 != 0) {\n          DAT_001816c8 = plVar2[1];\n        }\n      }\n      plVar2 = (long *)*plVar2;\n    } while (plVar2 != (long *)0x0);\n  }" (if "if") (parenthesized_expression "(DAT_001816e8 != (long *)0x0)" (( "(") (binary_expression "DAT_001816e8 != (long *)0x0" (identifier "DAT_001816e8") (!= "!=") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    do {\n      if ((code *)plVar2[6] != (code *)0x0) {\n        DAT_001816d0 = plVar2;\n        iVar1 = (*(code *)plVar2[6])();\n        DAT_001816d0 = (long *)0x0;\n        if (iVar1 != 0) {\n          DAT_001816c8 = plVar2[1];\n        }\n      }\n      plVar2 = (long *)*plVar2;\n    } while (plVar2 != (long *)0x0);\n  }" ({ "{") (do_statement "do {\n      if ((code *)plVar2[6] != (code *)0x0) {\n        DAT_001816d0 = plVar2;\n        iVar1 = (*(code *)plVar2[6])();\n        DAT_001816d0 = (long *)0x0;\n        if (iVar1 != 0) {\n          DAT_001816c8 = plVar2[1];\n        }\n      }\n      plVar2 = (long *)*plVar2;\n    } while (plVar2 != (long *)0x0);" (do "do") (compound_statement "{\n      if ((code *)plVar2[6] != (code *)0x0) {\n        DAT_001816d0 = plVar2;\n        iVar1 = (*(code *)plVar2[6])();\n        DAT_001816d0 = (long *)0x0;\n        if (iVar1 != 0) {\n          DAT_001816c8 = plVar2[1];\n        }\n      }\n      plVar2 = (long *)*plVar2;\n    }" ({ "{") (if_statement "if ((code *)plVar2[6] != (code *)0x0) {\n        DAT_001816d0 = plVar2;\n        iVar1 = (*(code *)plVar2[6])();\n        DAT_001816d0 = (long *)0x0;\n        if (iVar1 != 0) {\n          DAT_001816c8 = plVar2[1];\n        }\n      }" (if "if") (parenthesized_expression "((code *)plVar2[6] != (code *)0x0)" (( "(") (binary_expression "(code *)plVar2[6] != (code *)0x0" (cast_expression "(code *)plVar2[6]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar2[6]" (identifier "plVar2") ([ "[") (number_literal "6") (] "]"))) (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        DAT_001816d0 = plVar2;\n        iVar1 = (*(code *)plVar2[6])();\n        DAT_001816d0 = (long *)0x0;\n        if (iVar1 != 0) {\n          DAT_001816c8 = plVar2[1];\n        }\n      }" ({ "{") (expression_statement "DAT_001816d0 = plVar2;" (assignment_expression "DAT_001816d0 = plVar2" (identifier "DAT_001816d0") (= "=") (identifier "plVar2")) (; ";")) (expression_statement "iVar1 = (*(code *)plVar2[6])();" (assignment_expression "iVar1 = (*(code *)plVar2[6])()" (identifier "iVar1") (= "=") (call_expression "(*(code *)plVar2[6])()" (parenthesized_expression "(*(code *)plVar2[6])" (( "(") (pointer_expression "*(code *)plVar2[6]" (* "*") (cast_expression "(code *)plVar2[6]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar2[6]" (identifier "plVar2") ([ "[") (number_literal "6") (] "]")))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "DAT_001816d0 = (long *)0x0;" (assignment_expression "DAT_001816d0 = (long *)0x0" (identifier "DAT_001816d0") (= "=") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (if_statement "if (iVar1 != 0) {\n          DAT_001816c8 = plVar2[1];\n        }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          DAT_001816c8 = plVar2[1];\n        }" ({ "{") (expression_statement "DAT_001816c8 = plVar2[1];" (assignment_expression "DAT_001816c8 = plVar2[1]" (identifier "DAT_001816c8") (= "=") (subscript_expression "plVar2[1]" (identifier "plVar2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "plVar2 = (long *)*plVar2;" (assignment_expression "plVar2 = (long *)*plVar2" (identifier "plVar2") (= "=") (cast_expression "(long *)*plVar2" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*plVar2" (* "*") (identifier "plVar2")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(plVar2 != (long *)0x0)" (( "(") (binary_expression "plVar2 != (long *)0x0" (identifier "plVar2") (!= "!=") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (} "}"))) (return_statement "return -(uint)(DAT_001816c8 != 0);" (return "return") (unary_expression "-(uint)(DAT_001816c8 != 0)" (- "-") (call_expression "(uint)(DAT_001816c8 != 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(DAT_001816c8 != 0)" (( "(") (binary_expression "DAT_001816c8 != 0" (identifier "DAT_001816c8") (!= "!=") (number_literal "0")) () ")")))) (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

int function_1(void)

{
  type_1 **pppVar1;
  type_2 var_2;
  type_1 *ppVar3;
  
  no_more_claiming = 1;
  ppVar3 = var_1;
  if (var_1 != (type_3 *)0x0) {
    do {
      if (ppVar3->all_symbols_read_handler != (type_4)0x0) {
        called_plugin = ppVar3;
        var_2 = (*ppVar3->all_symbols_read_handler)();
        called_plugin = (type_3 *)0x0;
        if (var_2 != var_3) {
          var_4 = ppVar3->name;
        }
      }
      pppVar1 = &ppVar3->next;
      ppVar3 = *pppVar1;
    } while (*pppVar1 != (type_1 *)0x0);
  }
  return -(uint)(var_4 != (char *)0x0);
}


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

int MASKED(void)

{
  int iVar1;
  long *plVar2;
  
  DAT_00181620 = 1;
  plVar2 = DAT_001816e8;
  if (DAT_001816e8 != (long *)0x0) {
    do {
      if ((code *)plVar2[6] != (code *)0x0) {
        DAT_001816d0 = plVar2;
        iVar1 = (*(code *)plVar2[6])();
        DAT_001816d0 = (long *)0x0;
        if (iVar1 != 0) {
          DAT_001816c8 = plVar2[1];
        }
      }
      plVar2 = (long *)*plVar2;
    } while (plVar2 != (long *)0x0);
  }
  return -(uint)(DAT_001816c8 != 0);
}

