
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Type propagation algorithm not settling */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: void load_plugins(Plugin_manager * this, Layout * layout) */

void __thiscall gold::Plugin_manager::load_plugins(Plugin_manager *this,Layout *layout)

{
  Plugin_manager *pPVar1;
  Plugin_recorder *this_00;
  EVP_PKEY_CTX *in_stack_ffffffe8;
  
  this->layout_ = layout;
  if ((parameters->options_ != (General_options *)0x0) && ((parameters->debug_ & 0x80) != 0)) {
    this_00 = (Plugin_recorder *)operator_new(0xc);
    this_00->file_count_ = 0;
    this_00->tempdir_ = (char *)0x0;
    this_00->logfile_ = (FILE *)0x0;
    this->recorder_ = this_00;
    Plugin_recorder::init(this_00,in_stack_ffffffe8);
  }
  pPVar1 = (Plugin_manager *)
           (this->plugins_).super__List_base<gold::Plugin*,_std::allocator<gold::Plugin*>_>._M_impl.
           _M_node.super__List_node_base._M_next;
  (this->current_)._M_node = (_List_node_base *)pPVar1;
  while (pPVar1 != this) {
    Plugin::load((Plugin *)
                 (pPVar1->plugins_).super__List_base<gold::Plugin*,_std::allocator<gold::Plugin*>_>.
                 _M_impl._M_node._M_size);
    pPVar1 = (Plugin_manager *)((this->current_)._M_node)->_M_next;
    (this->current_)._M_node = (_List_node_base *)pPVar1;
  }
  return;
}



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

void FUN_0013c0e0(undefined4 *param_1,undefined4 param_2)

{
  undefined4 *puVar1;
  
  param_1[0x1e] = param_2;
  if ((*(int *)(DAT_0038f378 + 8) != 0) && ((*(byte *)(DAT_0038f378 + 0x14) & 0x80) != 0)) {
    puVar1 = (undefined4 *)FUN_001e5200(0xc);
    *puVar1 = 0;
    puVar1[1] = 0;
    puVar1[2] = 0;
    param_1[0x35] = puVar1;
    FUN_0013bf60(puVar1);
  }
  puVar1 = (undefined4 *)*param_1;
  param_1[3] = puVar1;
  while (puVar1 != param_1) {
    FUN_00139f80(puVar1[2]);
    puVar1 = *(undefined4 **)param_1[3];
    param_1[3] = puVar1;
  }
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x252f19
SUB ESP,0x4
MOV EAX,dword ptr [ESP + 0x14]
MOV ESI,dword ptr [ESP + 0x10]
MOV dword ptr [ESI + 0x78],EAX
LEA EAX,[EBX + 0x378]
MOV EAX,dword ptr [EAX]
MOV EDX,dword ptr [EAX + 0x8]
TEST EDX,EDX
JZ 0x0013c110
TEST byte ptr [EAX + 0x14],0x80
JNZ 0x0013c140
MOV EAX,dword ptr [ESI]
MOV dword ptr [ESI + 0xc],EAX
CMP EAX,ESI
JZ 0x0013c13a
LEA ESI,[ESI]
SUB ESP,0xc
PUSH dword ptr [EAX + 0x8]
CALL 0x00139f80
MOV EAX,dword ptr [ESI + 0xc]
ADD ESP,0x10
MOV EAX,dword ptr [EAX]
MOV dword ptr [ESI + 0xc],EAX
CMP EAX,ESI
JNZ 0x0013c120
ADD ESP,0x4
POP EBX
POP ESI
RET
SUB ESP,0xc
PUSH 0xc
CALL 0x001e5200
MOV dword ptr [EAX],0x0
MOV dword ptr [EAX + 0x4],0x0
MOV dword ptr [EAX + 0x8],0x0
MOV dword ptr [ESI + 0xd4],EAX
MOV dword ptr [ESP],EAX
CALL 0x0013bf60
ADD ESP,0x10
JMP 0x0013c110
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0013c0e0(undefined4 *param_1,undefined4 param_2)\n\n{\n  undefined4 *puVar1;\n  \n  param_1[0x1e] = param_2;\n  if ((*(int *)(DAT_0038f378 + 8) != 0) && ((*(byte *)(DAT_0038f378 + 0x14) & 0x80) != 0)) {\n    puVar1 = (undefined4 *)FUN_001e5200(0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    param_1[0x35] = puVar1;\n    FUN_0013bf60(puVar1);\n  }\n  puVar1 = (undefined4 *)*param_1;\n  param_1[3] = puVar1;\n  while (puVar1 != param_1) {\n    FUN_00139f80(puVar1[2]);\n    puVar1 = *(undefined4 **)param_1[3];\n    param_1[3] = puVar1;\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_0013c0e0(undefined4 *param_1,undefined4 param_2)\n\n{\n  undefined4 *puVar1;\n  \n  param_1[0x1e] = param_2;\n  if ((*(int *)(DAT_0038f378 + 8) != 0) && ((*(byte *)(DAT_0038f378 + 0x14) & 0x80) != 0)) {\n    puVar1 = (undefined4 *)FUN_001e5200(0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    param_1[0x35] = puVar1;\n    FUN_0013bf60(puVar1);\n  }\n  puVar1 = (undefined4 *)*param_1;\n  param_1[3] = puVar1;\n  while (puVar1 != param_1) {\n    FUN_00139f80(puVar1[2]);\n    puVar1 = *(undefined4 **)param_1[3];\n    param_1[3] = puVar1;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0013c0e0(undefined4 *param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  param_1[0x1e] = param_2;\n  if ((*(int *)(DAT_0038f378 + 8) != 0) && ((*(byte *)(DAT_0038f378 + 0x14) & 0x80) != 0)) {\n    puVar1 = (undefined4 *)FUN_001e5200(0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    param_1[0x35] = puVar1;\n    FUN_0013bf60(puVar1);\n  }\n  puVar1 = (undefined4 *)*param_1;\n  param_1[3] = puVar1;\n  while (puVar1 != param_1) {\n    FUN_00139f80(puVar1[2]);\n    puVar1 = *(undefined4 **)param_1[3];\n    param_1[3] = puVar1;\n  }\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "param_1[0x1e] = param_2;" (assignment_expression "param_1[0x1e] = param_2" (subscript_expression "param_1[0x1e]" identifier [ number_literal ]) = identifier) ;) (if_statement "if ((*(int *)(DAT_0038f378 + 8) != 0) && ((*(byte *)(DAT_0038f378 + 0x14) & 0x80) != 0)) {\n    puVar1 = (undefined4 *)FUN_001e5200(0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    param_1[0x35] = puVar1;\n    FUN_0013bf60(puVar1);\n  }" if (parenthesized_expression "((*(int *)(DAT_0038f378 + 8) != 0) && ((*(byte *)(DAT_0038f378 + 0x14) & 0x80) != 0))" ( (binary_expression "(*(int *)(DAT_0038f378 + 8) != 0) && ((*(byte *)(DAT_0038f378 + 0x14) & 0x80) != 0)" (parenthesized_expression "(*(int *)(DAT_0038f378 + 8) != 0)" ( (binary_expression "*(int *)(DAT_0038f378 + 8) != 0" (pointer_expression "*(int *)(DAT_0038f378 + 8)" * (cast_expression "(int *)(DAT_0038f378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0038f378 + 8)" ( (binary_expression "DAT_0038f378 + 8" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "((*(byte *)(DAT_0038f378 + 0x14) & 0x80) != 0)" ( (binary_expression "(*(byte *)(DAT_0038f378 + 0x14) & 0x80) != 0" (parenthesized_expression "(*(byte *)(DAT_0038f378 + 0x14) & 0x80)" ( (binary_expression "*(byte *)(DAT_0038f378 + 0x14) & 0x80" (pointer_expression "*(byte *)(DAT_0038f378 + 0x14)" * (cast_expression "(byte *)(DAT_0038f378 + 0x14)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0038f378 + 0x14)" ( (binary_expression "DAT_0038f378 + 0x14" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    puVar1 = (undefined4 *)FUN_001e5200(0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    param_1[0x35] = puVar1;\n    FUN_0013bf60(puVar1);\n  }" { (expression_statement "puVar1 = (undefined4 *)FUN_001e5200(0xc);" (assignment_expression "puVar1 = (undefined4 *)FUN_001e5200(0xc)" identifier = (cast_expression "(undefined4 *)FUN_001e5200(0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e5200(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x35] = puVar1;" (assignment_expression "param_1[0x35] = puVar1" (subscript_expression "param_1[0x35]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_0013bf60(puVar1);" (call_expression "FUN_0013bf60(puVar1)" identifier (argument_list "(puVar1)" ( identifier ))) ;) })) (expression_statement "puVar1 = (undefined4 *)*param_1;" (assignment_expression "puVar1 = (undefined4 *)*param_1" identifier = (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "param_1[3] = puVar1;" (assignment_expression "param_1[3] = puVar1" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (while_statement "while (puVar1 != param_1) {\n    FUN_00139f80(puVar1[2]);\n    puVar1 = *(undefined4 **)param_1[3];\n    param_1[3] = puVar1;\n  }" while (parenthesized_expression "(puVar1 != param_1)" ( (binary_expression "puVar1 != param_1" identifier != identifier) )) (compound_statement "{\n    FUN_00139f80(puVar1[2]);\n    puVar1 = *(undefined4 **)param_1[3];\n    param_1[3] = puVar1;\n  }" { (expression_statement "FUN_00139f80(puVar1[2]);" (call_expression "FUN_00139f80(puVar1[2])" identifier (argument_list "(puVar1[2])" ( (subscript_expression "puVar1[2]" identifier [ number_literal ]) ))) ;) (expression_statement "puVar1 = *(undefined4 **)param_1[3];" (assignment_expression "puVar1 = *(undefined4 **)param_1[3]" identifier = (pointer_expression "*(undefined4 **)param_1[3]" * (cast_expression "(undefined4 **)param_1[3]" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (subscript_expression "param_1[3]" identifier [ number_literal ])))) ;) (expression_statement "param_1[3] = puVar1;" (assignment_expression "param_1[3] = puVar1" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Type propagation algorithm not settling */\n/* WARNING: Enum "DT": Some values do not have unique names */\n/* DWARF original prototype: void load_plugins(Plugin_manager * this, Layout * layout) */\n\nvoid __thiscall gold::Plugin_manager::load_plugins(Plugin_manager *this,Layout *layout)\n\n{\n  Plugin_manager *pPVar1;\n  Plugin_recorder *this_00;\n  EVP_PKEY_CTX *in_stack_ffffffe8;\n  \n  this->layout_ = layout;\n  if ((parameters->options_ != (General_options *)0x0) && ((parameters->debug_ & 0x80) != 0)) {\n    this_00 = (Plugin_recorder *)operator_new(0xc);\n    this_00->file_count_ = 0;\n    this_00->tempdir_ = (char *)0x0;\n    this_00->logfile_ = (FILE *)0x0;\n    this->recorder_ = this_00;\n    Plugin_recorder::init(this_00,in_stack_ffffffe8);\n  }\n  pPVar1 = (Plugin_manager *)\n           (this->plugins_).super__List_base<gold::Plugin*,_std::allocator<gold::Plugin*>_>._M_impl.\n           _M_node.super__List_node_base._M_next;\n  (this->current_)._M_node = (_List_node_base *)pPVar1;\n  while (pPVar1 != this) {\n    Plugin::load((Plugin *)\n                 (pPVar1->plugins_).super__List_base<gold::Plugin*,_std::allocator<gold::Plugin*>_>.\n                 _M_impl._M_node._M_size);\n    pPVar1 = (Plugin_manager *)((this->current_)._M_node)->_M_next;\n    (this->current_)._M_node = (_List_node_base *)pPVar1;\n  }\n  return;\n}\n\n" comment comment comment comment (function_definition "void __thiscall gold::Plugin_manager::load_plugins(Plugin_manager *this,Layout *layout)\n\n{\n  Plugin_manager *pPVar1;\n  Plugin_recorder *this_00;\n  EVP_PKEY_CTX *in_stack_ffffffe8;\n  \n  this->layout_ = layout;\n  if ((parameters->options_ != (General_options *)0x0) && ((parameters->debug_ & 0x80) != 0)) {\n    this_00 = (Plugin_recorder *)operator_new(0xc);\n    this_00->file_count_ = 0;\n    this_00->tempdir_ = (char *)0x0;\n    this_00->logfile_ = (FILE *)0x0;\n    this->recorder_ = this_00;\n    Plugin_recorder::init(this_00,in_stack_ffffffe8);\n  }\n  pPVar1 = (Plugin_manager *)\n           (this->plugins_).super__List_base<gold::Plugin*,_std::allocator<gold::Plugin*>_>._M_impl.\n           _M_node.super__List_node_base._M_next;\n  (this->current_)._M_node = (_List_node_base *)pPVar1;\n  while (pPVar1 != this) {\n    Plugin::load((Plugin *)\n                 (pPVar1->plugins_).super__List_base<gold::Plugin*,_std::allocator<gold::Plugin*>_>.\n                 _M_impl._M_node._M_size);\n    pPVar1 = (Plugin_manager *)((this->current_)._M_node)->_M_next;\n    (this->current_)._M_node = (_List_node_base *)pPVar1;\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Plugin_manager::" identifier : : identifier : :) (function_declarator "load_plugins(Plugin_manager *this,Layout *layout)" identifier (parameter_list "(Plugin_manager *this,Layout *layout)" ( (parameter_declaration "Plugin_manager *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Layout *layout" type_identifier (pointer_declarator "*layout" * identifier)) ))) (compound_statement "{\n  Plugin_manager *pPVar1;\n  Plugin_recorder *this_00;\n  EVP_PKEY_CTX *in_stack_ffffffe8;\n  \n  this->layout_ = layout;\n  if ((parameters->options_ != (General_options *)0x0) && ((parameters->debug_ & 0x80) != 0)) {\n    this_00 = (Plugin_recorder *)operator_new(0xc);\n    this_00->file_count_ = 0;\n    this_00->tempdir_ = (char *)0x0;\n    this_00->logfile_ = (FILE *)0x0;\n    this->recorder_ = this_00;\n    Plugin_recorder::init(this_00,in_stack_ffffffe8);\n  }\n  pPVar1 = (Plugin_manager *)\n           (this->plugins_).super__List_base<gold::Plugin*,_std::allocator<gold::Plugin*>_>._M_impl.\n           _M_node.super__List_node_base._M_next;\n  (this->current_)._M_node = (_List_node_base *)pPVar1;\n  while (pPVar1 != this) {\n    Plugin::load((Plugin *)\n                 (pPVar1->plugins_).super__List_base<gold::Plugin*,_std::allocator<gold::Plugin*>_>.\n                 _M_impl._M_node._M_size);\n    pPVar1 = (Plugin_manager *)((this->current_)._M_node)->_M_next;\n    (this->current_)._M_node = (_List_node_base *)pPVar1;\n  }\n  return;\n}" { (declaration "Plugin_manager *pPVar1;" type_identifier (pointer_declarator "*pPVar1" * identifier) ;) (declaration "Plugin_recorder *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (declaration "EVP_PKEY_CTX *in_stack_ffffffe8;" type_identifier (pointer_declarator "*in_stack_ffffffe8" * identifier) ;) (expression_statement "this->layout_ = layout;" (assignment_expression "this->layout_ = layout" (field_expression "this->layout_" identifier -> field_identifier) = identifier) ;) (if_statement "if ((parameters->options_ != (General_options *)0x0) && ((parameters->debug_ & 0x80) != 0)) {\n    this_00 = (Plugin_recorder *)operator_new(0xc);\n    this_00->file_count_ = 0;\n    this_00->tempdir_ = (char *)0x0;\n    this_00->logfile_ = (FILE *)0x0;\n    this->recorder_ = this_00;\n    Plugin_recorder::init(this_00,in_stack_ffffffe8);\n  }" if (parenthesized_expression "((parameters->options_ != (General_options *)0x0) && ((parameters->debug_ & 0x80) != 0))" ( (binary_expression "(parameters->options_ != (General_options *)0x0) && ((parameters->debug_ & 0x80) != 0)" (parenthesized_expression "(parameters->options_ != (General_options *)0x0)" ( (binary_expression "parameters->options_ != (General_options *)0x0" (field_expression "parameters->options_" identifier -> field_identifier) != (cast_expression "(General_options *)0x0" ( (type_descriptor "General_options *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "((parameters->debug_ & 0x80) != 0)" ( (binary_expression "(parameters->debug_ & 0x80) != 0" (parenthesized_expression "(parameters->debug_ & 0x80)" ( (binary_expression "parameters->debug_ & 0x80" (field_expression "parameters->debug_" identifier -> field_identifier) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    this_00 = (Plugin_recorder *)operator_new(0xc);\n    this_00->file_count_ = 0;\n    this_00->tempdir_ = (char *)0x0;\n    this_00->logfile_ = (FILE *)0x0;\n    this->recorder_ = this_00;\n    Plugin_recorder::init(this_00,in_stack_ffffffe8);\n  }" { (expression_statement "this_00 = (Plugin_recorder *)operator_new(0xc);" (assignment_expression "this_00 = (Plugin_recorder *)operator_new(0xc)" identifier = (cast_expression "(Plugin_recorder *)operator_new(0xc)" ( (type_descriptor "Plugin_recorder *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "this_00->file_count_ = 0;" (assignment_expression "this_00->file_count_ = 0" (field_expression "this_00->file_count_" identifier -> field_identifier) = number_literal) ;) (expression_statement "this_00->tempdir_ = (char *)0x0;" (assignment_expression "this_00->tempdir_ = (char *)0x0" (field_expression "this_00->tempdir_" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "this_00->logfile_ = (FILE *)0x0;" (assignment_expression "this_00->logfile_ = (FILE *)0x0" (field_expression "this_00->logfile_" identifier -> field_identifier) = (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "this->recorder_ = this_00;" (assignment_expression "this->recorder_ = this_00" (field_expression "this->recorder_" identifier -> field_identifier) = identifier) ;) (labeled_statement "Plugin_recorder::init(this_00,in_stack_ffffffe8);" statement_identifier : (ERROR ":" :) (expression_statement "init(this_00,in_stack_ffffffe8);" (call_expression "init(this_00,in_stack_ffffffe8)" identifier (argument_list "(this_00,in_stack_ffffffe8)" ( identifier , identifier ))) ;)) })) (expression_statement "pPVar1 = (Plugin_manager *)\n           (this->plugins_).super__List_base<gold::Plugin*,_std::allocator<gold::Plugin*>_>._M_impl.\n           _M_node.super__List_node_base._M_next;" (field_expression "pPVar1 = (Plugin_manager *)\n           (this->plugins_).super__List_base<gold::Plugin*,_std::allocator<gold::Plugin*>_>._M_impl.\n           _M_node.super__List_node_base._M_next" (field_expression "pPVar1 = (Plugin_manager *)\n           (this->plugins_).super__List_base<gold::Plugin*,_std::allocator<gold::Plugin*>_>._M_impl.\n           _M_node.super__List_node_base" (field_expression "pPVar1 = (Plugin_manager *)\n           (this->plugins_).super__List_base<gold::Plugin*,_std::allocator<gold::Plugin*>_>._M_impl.\n           _M_node" (field_expression "pPVar1 = (Plugin_manager *)\n           (this->plugins_).super__List_base<gold::Plugin*,_std::allocator<gold::Plugin*>_>._M_impl" (binary_expression "pPVar1 = (Plugin_manager *)\n           (this->plugins_).super__List_base<gold::Plugin*,_std::allocator<gold::Plugin*>_" (binary_expression "pPVar1 = (Plugin_manager *)\n           (this->plugins_).super__List_base<gold::Plugin*,_std::allocator<gold" (binary_expression "pPVar1 = (Plugin_manager *)\n           (this->plugins_).super__List_base<gold::Plugin*,_std" (assignment_expression "pPVar1 = (Plugin_manager *)\n           (this->plugins_).super__List_base<gold" identifier = (binary_expression "(Plugin_manager *)\n           (this->plugins_).super__List_base<gold" (cast_expression "(Plugin_manager *)\n           (this->plugins_).super__List_base" ( (type_descriptor "Plugin_manager *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(this->plugins_).super__List_base" (parenthesized_expression "(this->plugins_)" ( (field_expression "this->plugins_" identifier -> field_identifier) )) . field_identifier)) < identifier)) (ERROR "::Plugin" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Plugin" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) . field_identifier) . field_identifier) ;) (expression_statement "(this->current_)._M_node = (_List_node_base *)pPVar1;" (assignment_expression "(this->current_)._M_node = (_List_node_base *)pPVar1" (field_expression "(this->current_)._M_node" (parenthesized_expression "(this->current_)" ( (field_expression "this->current_" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(_List_node_base *)pPVar1" ( (type_descriptor "_List_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (while_statement "while (pPVar1 != this) {\n    Plugin::load((Plugin *)\n                 (pPVar1->plugins_).super__List_base<gold::Plugin*,_std::allocator<gold::Plugin*>_>.\n                 _M_impl._M_node._M_size);\n    pPVar1 = (Plugin_manager *)((this->current_)._M_node)->_M_next;\n    (this->current_)._M_node = (_List_node_base *)pPVar1;\n  }" while (parenthesized_expression "(pPVar1 != this)" ( (binary_expression "pPVar1 != this" identifier != identifier) )) (compound_statement "{\n    Plugin::load((Plugin *)\n                 (pPVar1->plugins_).super__List_base<gold::Plugin*,_std::allocator<gold::Plugin*>_>.\n                 _M_impl._M_node._M_size);\n    pPVar1 = (Plugin_manager *)((this->current_)._M_node)->_M_next;\n    (this->current_)._M_node = (_List_node_base *)pPVar1;\n  }" { (ERROR "Plugin::load((Plugin *)\n                 (pPVar1->plugins_).super__List_base<gold::Plugin*,_std::allocator<gold::" (comma_expression "Plugin::load((Plugin *)\n                 (pPVar1->plugins_).super__List_base<gold::Plugin*,_std" identifier (ERROR "::load((Plugin *)\n                 (pPVar1->plugins_).super__List_base<gold::Plugin*" : : identifier ( (binary_expression "(Plugin *)\n                 (pPVar1->plugins_).super__List_base<gold" (cast_expression "(Plugin *)\n                 (pPVar1->plugins_).super__List_base" ( (type_descriptor "Plugin *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(pPVar1->plugins_).super__List_base" (parenthesized_expression "(pPVar1->plugins_)" ( (field_expression "pPVar1->plugins_" identifier -> field_identifier) )) . field_identifier)) < identifier) : : identifier *) , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : :) (expression_statement "Plugin*>_>.\n                 _M_impl._M_node._M_size);" (field_expression "Plugin*>_>.\n                 _M_impl._M_node._M_size" (field_expression "Plugin*>_>.\n                 _M_impl._M_node" (field_expression "Plugin*>_>.\n                 _M_impl" (binary_expression "Plugin*>_" identifier * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) . field_identifier) (ERROR ")" )) ;) (expression_statement "pPVar1 = (Plugin_manager *)((this->current_)._M_node)->_M_next;" (assignment_expression "pPVar1 = (Plugin_manager *)((this->current_)._M_node)->_M_next" identifier = (cast_expression "(Plugin_manager *)((this->current_)._M_node)->_M_next" ( (type_descriptor "Plugin_manager *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "((this->current_)._M_node)->_M_next" (parenthesized_expression "((this->current_)._M_node)" ( (field_expression "(this->current_)._M_node" (parenthesized_expression "(this->current_)" ( (field_expression "this->current_" identifier -> field_identifier) )) . field_identifier) )) -> field_identifier))) ;) (expression_statement "(this->current_)._M_node = (_List_node_base *)pPVar1;" (assignment_expression "(this->current_)._M_node = (_List_node_base *)pPVar1" (field_expression "(this->current_)._M_node" (parenthesized_expression "(this->current_)" ( (field_expression "this->current_" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(_List_node_base *)pPVar1" ( (type_descriptor "_List_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0013c0e0(undefined4 *param_1,undefined4 param_2)\n\n{\n  undefined4 *puVar1;\n  \n  param_1[0x1e] = param_2;\n  if ((*(int *)(DAT_0038f378 + 8) != 0) && ((*(byte *)(DAT_0038f378 + 0x14) & 0x80) != 0)) {\n    puVar1 = (undefined4 *)FUN_001e5200(0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    param_1[0x35] = puVar1;\n    FUN_0013bf60(puVar1);\n  }\n  puVar1 = (undefined4 *)*param_1;\n  param_1[3] = puVar1;\n  while (puVar1 != param_1) {\n    FUN_00139f80(puVar1[2]);\n    puVar1 = *(undefined4 **)param_1[3];\n    param_1[3] = puVar1;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0013c0e0(undefined4 *param_1,undefined4 param_2)\n\n{\n  undefined4 *puVar1;\n  \n  param_1[0x1e] = param_2;\n  if ((*(int *)(DAT_0038f378 + 8) != 0) && ((*(byte *)(DAT_0038f378 + 0x14) & 0x80) != 0)) {\n    puVar1 = (undefined4 *)FUN_001e5200(0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    param_1[0x35] = puVar1;\n    FUN_0013bf60(puVar1);\n  }\n  puVar1 = (undefined4 *)*param_1;\n  param_1[3] = puVar1;\n  while (puVar1 != param_1) {\n    FUN_00139f80(puVar1[2]);\n    puVar1 = *(undefined4 **)param_1[3];\n    param_1[3] = puVar1;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0013c0e0(undefined4 *param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  param_1[0x1e] = param_2;\n  if ((*(int *)(DAT_0038f378 + 8) != 0) && ((*(byte *)(DAT_0038f378 + 0x14) & 0x80) != 0)) {\n    puVar1 = (undefined4 *)FUN_001e5200(0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    param_1[0x35] = puVar1;\n    FUN_0013bf60(puVar1);\n  }\n  puVar1 = (undefined4 *)*param_1;\n  param_1[3] = puVar1;\n  while (puVar1 != param_1) {\n    FUN_00139f80(puVar1[2]);\n    puVar1 = *(undefined4 **)param_1[3];\n    param_1[3] = puVar1;\n  }\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "param_1[0x1e] = param_2;" (assignment_expression "param_1[0x1e] = param_2" (subscript_expression "param_1[0x1e]" identifier [ number_literal ]) = identifier) ;) (if_statement "if ((*(int *)(DAT_0038f378 + 8) != 0) && ((*(byte *)(DAT_0038f378 + 0x14) & 0x80) != 0)) {\n    puVar1 = (undefined4 *)FUN_001e5200(0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    param_1[0x35] = puVar1;\n    FUN_0013bf60(puVar1);\n  }" if (parenthesized_expression "((*(int *)(DAT_0038f378 + 8) != 0) && ((*(byte *)(DAT_0038f378 + 0x14) & 0x80) != 0))" ( (binary_expression "(*(int *)(DAT_0038f378 + 8) != 0) && ((*(byte *)(DAT_0038f378 + 0x14) & 0x80) != 0)" (parenthesized_expression "(*(int *)(DAT_0038f378 + 8) != 0)" ( (binary_expression "*(int *)(DAT_0038f378 + 8) != 0" (pointer_expression "*(int *)(DAT_0038f378 + 8)" * (cast_expression "(int *)(DAT_0038f378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0038f378 + 8)" ( (binary_expression "DAT_0038f378 + 8" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "((*(byte *)(DAT_0038f378 + 0x14) & 0x80) != 0)" ( (binary_expression "(*(byte *)(DAT_0038f378 + 0x14) & 0x80) != 0" (parenthesized_expression "(*(byte *)(DAT_0038f378 + 0x14) & 0x80)" ( (binary_expression "*(byte *)(DAT_0038f378 + 0x14) & 0x80" (pointer_expression "*(byte *)(DAT_0038f378 + 0x14)" * (cast_expression "(byte *)(DAT_0038f378 + 0x14)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0038f378 + 0x14)" ( (binary_expression "DAT_0038f378 + 0x14" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    puVar1 = (undefined4 *)FUN_001e5200(0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    param_1[0x35] = puVar1;\n    FUN_0013bf60(puVar1);\n  }" { (expression_statement "puVar1 = (undefined4 *)FUN_001e5200(0xc);" (assignment_expression "puVar1 = (undefined4 *)FUN_001e5200(0xc)" identifier = (cast_expression "(undefined4 *)FUN_001e5200(0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e5200(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x35] = puVar1;" (assignment_expression "param_1[0x35] = puVar1" (subscript_expression "param_1[0x35]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_0013bf60(puVar1);" (call_expression "FUN_0013bf60(puVar1)" identifier (argument_list "(puVar1)" ( identifier ))) ;) })) (expression_statement "puVar1 = (undefined4 *)*param_1;" (assignment_expression "puVar1 = (undefined4 *)*param_1" identifier = (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "param_1[3] = puVar1;" (assignment_expression "param_1[3] = puVar1" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (while_statement "while (puVar1 != param_1) {\n    FUN_00139f80(puVar1[2]);\n    puVar1 = *(undefined4 **)param_1[3];\n    param_1[3] = puVar1;\n  }" while (parenthesized_expression "(puVar1 != param_1)" ( (binary_expression "puVar1 != param_1" identifier != identifier) )) (compound_statement "{\n    FUN_00139f80(puVar1[2]);\n    puVar1 = *(undefined4 **)param_1[3];\n    param_1[3] = puVar1;\n  }" { (expression_statement "FUN_00139f80(puVar1[2]);" (call_expression "FUN_00139f80(puVar1[2])" identifier (argument_list "(puVar1[2])" ( (subscript_expression "puVar1[2]" identifier [ number_literal ]) ))) ;) (expression_statement "puVar1 = *(undefined4 **)param_1[3];" (assignment_expression "puVar1 = *(undefined4 **)param_1[3]" identifier = (pointer_expression "*(undefined4 **)param_1[3]" * (cast_expression "(undefined4 **)param_1[3]" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (subscript_expression "param_1[3]" identifier [ number_literal ])))) ;) (expression_statement "param_1[3] = puVar1;" (assignment_expression "param_1[3] = puVar1" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (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) )) && (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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (subscript_expression IDENT [ LIT ])))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0013c0e0(undefined4 *param_1,undefined4 param_2)\n\n{\n  undefined4 *puVar1;\n  \n  param_1[0x1e] = param_2;\n  if ((*(int *)(DAT_0038f378 + 8) != 0) && ((*(byte *)(DAT_0038f378 + 0x14) & 0x80) != 0)) {\n    puVar1 = (undefined4 *)FUN_001e5200(0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    param_1[0x35] = puVar1;\n    FUN_0013bf60(puVar1);\n  }\n  puVar1 = (undefined4 *)*param_1;\n  param_1[3] = puVar1;\n  while (puVar1 != param_1) {\n    FUN_00139f80(puVar1[2]);\n    puVar1 = *(undefined4 **)param_1[3];\n    param_1[3] = puVar1;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0013c0e0(undefined4 *param_1,undefined4 param_2)" (identifier "FUN_0013c0e0") (parameter_list "(undefined4 *param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  param_1[0x1e] = param_2;\n  if ((*(int *)(DAT_0038f378 + 8) != 0) && ((*(byte *)(DAT_0038f378 + 0x14) & 0x80) != 0)) {\n    puVar1 = (undefined4 *)FUN_001e5200(0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    param_1[0x35] = puVar1;\n    FUN_0013bf60(puVar1);\n  }\n  puVar1 = (undefined4 *)*param_1;\n  param_1[3] = puVar1;\n  while (puVar1 != param_1) {\n    FUN_00139f80(puVar1[2]);\n    puVar1 = *(undefined4 **)param_1[3];\n    param_1[3] = puVar1;\n  }\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (expression_statement "param_1[0x1e] = param_2;" (assignment_expression "param_1[0x1e] = param_2" (subscript_expression "param_1[0x1e]" (identifier "param_1") ([ "[") (number_literal "0x1e") (] "]")) (= "=") (identifier "param_2")) (; ";")) (if_statement "if ((*(int *)(DAT_0038f378 + 8) != 0) && ((*(byte *)(DAT_0038f378 + 0x14) & 0x80) != 0)) {\n    puVar1 = (undefined4 *)FUN_001e5200(0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    param_1[0x35] = puVar1;\n    FUN_0013bf60(puVar1);\n  }" (if "if") (parenthesized_expression "((*(int *)(DAT_0038f378 + 8) != 0) && ((*(byte *)(DAT_0038f378 + 0x14) & 0x80) != 0))" (( "(") (binary_expression "(*(int *)(DAT_0038f378 + 8) != 0) && ((*(byte *)(DAT_0038f378 + 0x14) & 0x80) != 0)" (parenthesized_expression "(*(int *)(DAT_0038f378 + 8) != 0)" (( "(") (binary_expression "*(int *)(DAT_0038f378 + 8) != 0" (pointer_expression "*(int *)(DAT_0038f378 + 8)" (* "*") (cast_expression "(int *)(DAT_0038f378 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0038f378 + 8)" (( "(") (binary_expression "DAT_0038f378 + 8" (identifier "DAT_0038f378") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((*(byte *)(DAT_0038f378 + 0x14) & 0x80) != 0)" (( "(") (binary_expression "(*(byte *)(DAT_0038f378 + 0x14) & 0x80) != 0" (parenthesized_expression "(*(byte *)(DAT_0038f378 + 0x14) & 0x80)" (( "(") (binary_expression "*(byte *)(DAT_0038f378 + 0x14) & 0x80" (pointer_expression "*(byte *)(DAT_0038f378 + 0x14)" (* "*") (cast_expression "(byte *)(DAT_0038f378 + 0x14)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0038f378 + 0x14)" (( "(") (binary_expression "DAT_0038f378 + 0x14" (identifier "DAT_0038f378") (+ "+") (number_literal "0x14")) () ")")))) (& "&") (number_literal "0x80")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    puVar1 = (undefined4 *)FUN_001e5200(0xc);\n    *puVar1 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    param_1[0x35] = puVar1;\n    FUN_0013bf60(puVar1);\n  }" ({ "{") (expression_statement "puVar1 = (undefined4 *)FUN_001e5200(0xc);" (assignment_expression "puVar1 = (undefined4 *)FUN_001e5200(0xc)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)FUN_001e5200(0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001e5200(0xc)" (identifier "FUN_001e5200") (argument_list "(0xc)" (( "(") (number_literal "0xc") () ")"))))) (; ";")) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x35] = puVar1;" (assignment_expression "param_1[0x35] = puVar1" (subscript_expression "param_1[0x35]" (identifier "param_1") ([ "[") (number_literal "0x35") (] "]")) (= "=") (identifier "puVar1")) (; ";")) (expression_statement "FUN_0013bf60(puVar1);" (call_expression "FUN_0013bf60(puVar1)" (identifier "FUN_0013bf60") (argument_list "(puVar1)" (( "(") (identifier "puVar1") () ")"))) (; ";")) (} "}"))) (expression_statement "puVar1 = (undefined4 *)*param_1;" (assignment_expression "puVar1 = (undefined4 *)*param_1" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)*param_1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "param_1[3] = puVar1;" (assignment_expression "param_1[3] = puVar1" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "puVar1")) (; ";")) (while_statement "while (puVar1 != param_1) {\n    FUN_00139f80(puVar1[2]);\n    puVar1 = *(undefined4 **)param_1[3];\n    param_1[3] = puVar1;\n  }" (while "while") (parenthesized_expression "(puVar1 != param_1)" (( "(") (binary_expression "puVar1 != param_1" (identifier "puVar1") (!= "!=") (identifier "param_1")) () ")")) (compound_statement "{\n    FUN_00139f80(puVar1[2]);\n    puVar1 = *(undefined4 **)param_1[3];\n    param_1[3] = puVar1;\n  }" ({ "{") (expression_statement "FUN_00139f80(puVar1[2]);" (call_expression "FUN_00139f80(puVar1[2])" (identifier "FUN_00139f80") (argument_list "(puVar1[2])" (( "(") (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) () ")"))) (; ";")) (expression_statement "puVar1 = *(undefined4 **)param_1[3];" (assignment_expression "puVar1 = *(undefined4 **)param_1[3]" (identifier "puVar1") (= "=") (pointer_expression "*(undefined4 **)param_1[3]" (* "*") (cast_expression "(undefined4 **)param_1[3]" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))))) (; ";")) (expression_statement "param_1[3] = puVar1;" (assignment_expression "param_1[3] = puVar1" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "puVar1")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Type propagation algorithm not settling */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: void load_plugins(Plugin_manager * this, Layout * layout) */

void __thiscall var_3::type_1::function_1(type_1 *var_7,type_2 *layout)

{
  type_1 *var_6;
  type_3 *this_00;
  type_4 *in_stack_ffffffe8;
  
  var_7->layout_ = layout;
  if ((parameters->options_ != (type_5 *)0x0) && ((parameters->debug_ & 0x80) != 0)) {
    this_00 = (type_3 *)var_1(0xc);
    this_00->file_count_ = 0;
    this_00->tempdir_ = (char *)0x0;
    this_00->logfile_ = (type_6 *)0x0;
    var_7->recorder_ = this_00;
    Plugin_recorder::var_2(this_00,in_stack_ffffffe8);
  }
  var_6 = (type_1 *)
           (var_7->plugins_).super__List_base<var_3::var_8*,var_4::allocator<var_3::var_8*>var_5>._M_impl.
           _M_node.super__List_node_base._M_next;
  (var_7->current_)._M_node = (type_7 *)var_6;
  while (var_6 != var_7) {
    var_8::load((var_8 *)
                 (var_6->plugins_).super__List_base<var_3::var_8*,var_4::allocator<var_3::var_8*>var_5>.
                 _M_impl._M_node._M_size);
    var_6 = (type_1 *)((var_7->current_)._M_node)->_M_next;
    (var_7->current_)._M_node = (type_7 *)var_6;
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) 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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) body: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))))) (return_statement))))

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

void MASKED(undefined4 *param_1,undefined4 param_2)

{
  undefined4 *puVar1;
  
  param_1[0x1e] = param_2;
  if ((*(int *)(DAT_0038f378 + 8) != 0) && ((*(byte *)(DAT_0038f378 + 0x14) & 0x80) != 0)) {
    puVar1 = (undefined4 *)FUN_001e5200(0xc);
    *puVar1 = 0;
    puVar1[1] = 0;
    puVar1[2] = 0;
    param_1[0x35] = puVar1;
    FUN_0013bf60(puVar1);
  }
  puVar1 = (undefined4 *)*param_1;
  param_1[3] = puVar1;
  while (puVar1 != param_1) {
    FUN_00139f80(puVar1[2]);
    puVar1 = *(undefined4 **)param_1[3];
    param_1[3] = puVar1;
  }
  return;
}

