
/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */
/* WARNING: Enum "DT": Some values do not have unique names */

ld_plugin_status __thiscall
gold::get_input_section_size(gold *this,ld_plugin_section section,uint64_t *secsize)

{
  Plugin_manager *this_00;
  ld_plugin_status lVar1;
  Object *pOVar2;
  int iVar3;
  undefined4 extraout_EDX;
  
  if (parameters->options_ == (General_options *)0x0) {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");
  }
  this_00 = parameters->options_->plugins_;
  if (this_00 != (Plugin_manager *)0x0) {
    lVar1 = LDPS_ERR;
    if (this_00->in_claim_file_handler_ != false) {
      pOVar2 = Plugin_manager::get_elf_object(this_00,this);
      if (pOVar2 == (Object *)0x0) {
        lVar1 = LDPS_BAD_HANDLE;
      }
      else {
        iVar3 = (*pOVar2->_vptr_Object[0xf])(pOVar2,section.handle);
        *(undefined4 *)(section.shndx + 4) = extraout_EDX;
        *(int *)section.shndx = iVar3;
        lVar1 = LDPS_OK;
      }
    }
    return lVar1;
  }
                    /* WARNING: Subroutine does not return */
  do_gold_unreachable("../../gold/plugin.cc",0x82d,"get_input_section_size");
}



/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

undefined4 __regparm2
FUN_0013b170(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
            undefined8 *param_5)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  int *piVar4;
  undefined8 uVar5;
  
  iVar1 = *(int *)(DAT_0038f378 + 8);
  if (iVar1 == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2);
  }
  iVar2 = *(int *)(iVar1 + 0x593c);
  if (iVar2 != 0) {
    uVar3 = 3;
    if (*(char *)(iVar2 + 99) != '\0') {
      piVar4 = (int *)FUN_0013b120(iVar2,param_3);
      if (piVar4 == (int *)0x0) {
        uVar3 = 2;
      }
      else {
        uVar5 = (**(code **)(*piVar4 + 0x3c))(piVar4,param_4);
        *param_5 = uVar5;
        uVar3 = 0;
      }
    }
    return uVar3;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00069d00("../../gold/plugin.cc",0x82d,"get_input_section_size",iVar1);
}


CALL 0x000650b8
ADD ECX,0x253e8b
PUSH ESI
PUSH EBX
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
MOV EBX,dword ptr [ESP + 0x14]
LEA EAX,[ECX + 0x378]
MOV EAX,dword ptr [EAX]
MOV EAX,dword ptr [EAX + 0x8]
TEST EAX,EAX
JZ 0x0013b1e7
MOV EDX,dword ptr [EAX + 0x593c]
TEST EDX,EDX
JZ 0x0013b1ff
CMP byte ptr [EDX + 0x63],0x0
MOV EAX,0x3
JZ 0x0013b1d5
SUB ESP,0x8
PUSH ESI
PUSH EDX
CALL 0x0013b120
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0013b1e0
MOV EDX,dword ptr [EAX]
SUB ESP,0x8
PUSH EBX
PUSH EAX
CALL dword ptr [EDX + 0x3c]
MOV ECX,dword ptr [ESP + 0x28]
MOV dword ptr [ECX + 0x4],EDX
ADD ESP,0x10
MOV dword ptr [ECX],EAX
XOR EAX,EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
MOV EAX,0x2
JMP 0x0013b1d5
LEA EAX,[ECX + 0xfff06894]
PUSH EDX
MOV EBX,ECX
PUSH EAX
LEA EAX,[ECX + 0xffef8210]
PUSH 0x5c
PUSH EAX
CALL 0x00069d00
PUSH EAX
LEA EAX,[ECX + 0xfff06bfc]
MOV EBX,ECX
PUSH EAX
LEA EAX,[ECX + 0xfff061c4]
PUSH 0x82d
PUSH EAX
CALL 0x00069d00
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n\nundefined4 __regparm2\nFUN_0013b170(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined8 *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  undefined8 uVar5;\n  \n  iVar1 = *(int *)(DAT_0038f378 + 8);\n  if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2);\n  }\n  iVar2 = *(int *)(iVar1 + 0x593c);\n  if (iVar2 != 0) {\n    uVar3 = 3;\n    if (*(char *)(iVar2 + 99) != '\0') {\n      piVar4 = (int *)FUN_0013b120(iVar2,param_3);\n      if (piVar4 == (int *)0x0) {\n        uVar3 = 2;\n      }\n      else {\n        uVar5 = (**(code **)(*piVar4 + 0x3c))(piVar4,param_4);\n        *param_5 = uVar5;\n        uVar3 = 0;\n      }\n    }\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00069d00("../../gold/plugin.cc",0x82d,"get_input_section_size",iVar1);\n}\n\n" comment (function_definition "undefined4 __regparm2\nFUN_0013b170(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined8 *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  undefined8 uVar5;\n  \n  iVar1 = *(int *)(DAT_0038f378 + 8);\n  if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2);\n  }\n  iVar2 = *(int *)(iVar1 + 0x593c);\n  if (iVar2 != 0) {\n    uVar3 = 3;\n    if (*(char *)(iVar2 + 99) != '\0') {\n      piVar4 = (int *)FUN_0013b120(iVar2,param_3);\n      if (piVar4 == (int *)0x0) {\n        uVar3 = 2;\n      }\n      else {\n        uVar5 = (**(code **)(*piVar4 + 0x3c))(piVar4,param_4);\n        *param_5 = uVar5;\n        uVar3 = 0;\n      }\n    }\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00069d00("../../gold/plugin.cc",0x82d,"get_input_section_size",iVar1);\n}" type_identifier (ERROR "__regparm2" identifier) (function_declarator "FUN_0013b170(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined8 *param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined8 *param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined8 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  undefined8 uVar5;\n  \n  iVar1 = *(int *)(DAT_0038f378 + 8);\n  if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2);\n  }\n  iVar2 = *(int *)(iVar1 + 0x593c);\n  if (iVar2 != 0) {\n    uVar3 = 3;\n    if (*(char *)(iVar2 + 99) != '\0') {\n      piVar4 = (int *)FUN_0013b120(iVar2,param_3);\n      if (piVar4 == (int *)0x0) {\n        uVar3 = 2;\n      }\n      else {\n        uVar5 = (**(code **)(*piVar4 + 0x3c))(piVar4,param_4);\n        *param_5 = uVar5;\n        uVar3 = 0;\n      }\n    }\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00069d00("../../gold/plugin.cc",0x82d,"get_input_section_size",iVar1);\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) ;) (declaration "undefined8 uVar5;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(DAT_0038f378 + 8);" (assignment_expression "iVar1 = *(int *)(DAT_0038f378 + 8)" identifier = (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) ))))) ;) (if_statement "if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2);\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2);\n  }" { comment (expression_statement "FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2);" (call_expression "FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2)" identifier (argument_list "("../../gold/parameters.h",0x5c,"options",param_2)" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""options"" " string_content ") , identifier ))) ;) })) (expression_statement "iVar2 = *(int *)(iVar1 + 0x593c);" (assignment_expression "iVar2 = *(int *)(iVar1 + 0x593c)" identifier = (pointer_expression "*(int *)(iVar1 + 0x593c)" * (cast_expression "(int *)(iVar1 + 0x593c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x593c)" ( (binary_expression "iVar1 + 0x593c" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 != 0) {\n    uVar3 = 3;\n    if (*(char *)(iVar2 + 99) != '\0') {\n      piVar4 = (int *)FUN_0013b120(iVar2,param_3);\n      if (piVar4 == (int *)0x0) {\n        uVar3 = 2;\n      }\n      else {\n        uVar5 = (**(code **)(*piVar4 + 0x3c))(piVar4,param_4);\n        *param_5 = uVar5;\n        uVar3 = 0;\n      }\n    }\n    return uVar3;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar3 = 3;\n    if (*(char *)(iVar2 + 99) != '\0') {\n      piVar4 = (int *)FUN_0013b120(iVar2,param_3);\n      if (piVar4 == (int *)0x0) {\n        uVar3 = 2;\n      }\n      else {\n        uVar5 = (**(code **)(*piVar4 + 0x3c))(piVar4,param_4);\n        *param_5 = uVar5;\n        uVar3 = 0;\n      }\n    }\n    return uVar3;\n  }" { (expression_statement "uVar3 = 3;" (assignment_expression "uVar3 = 3" identifier = number_literal) ;) (if_statement "if (*(char *)(iVar2 + 99) != '\0') {\n      piVar4 = (int *)FUN_0013b120(iVar2,param_3);\n      if (piVar4 == (int *)0x0) {\n        uVar3 = 2;\n      }\n      else {\n        uVar5 = (**(code **)(*piVar4 + 0x3c))(piVar4,param_4);\n        *param_5 = uVar5;\n        uVar3 = 0;\n      }\n    }" if (parenthesized_expression "(*(char *)(iVar2 + 99) != '\0')" ( (binary_expression "*(char *)(iVar2 + 99) != '\0'" (pointer_expression "*(char *)(iVar2 + 99)" * (cast_expression "(char *)(iVar2 + 99)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 99)" ( (binary_expression "iVar2 + 99" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      piVar4 = (int *)FUN_0013b120(iVar2,param_3);\n      if (piVar4 == (int *)0x0) {\n        uVar3 = 2;\n      }\n      else {\n        uVar5 = (**(code **)(*piVar4 + 0x3c))(piVar4,param_4);\n        *param_5 = uVar5;\n        uVar3 = 0;\n      }\n    }" { (expression_statement "piVar4 = (int *)FUN_0013b120(iVar2,param_3);" (assignment_expression "piVar4 = (int *)FUN_0013b120(iVar2,param_3)" identifier = (cast_expression "(int *)FUN_0013b120(iVar2,param_3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0013b120(iVar2,param_3)" identifier (argument_list "(iVar2,param_3)" ( identifier , identifier ))))) ;) (if_statement "if (piVar4 == (int *)0x0) {\n        uVar3 = 2;\n      }\n      else {\n        uVar5 = (**(code **)(*piVar4 + 0x3c))(piVar4,param_4);\n        *param_5 = uVar5;\n        uVar3 = 0;\n      }" if (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)) )) (compound_statement "{\n        uVar3 = 2;\n      }" { (expression_statement "uVar3 = 2;" (assignment_expression "uVar3 = 2" identifier = number_literal) ;) }) (else_clause "else {\n        uVar5 = (**(code **)(*piVar4 + 0x3c))(piVar4,param_4);\n        *param_5 = uVar5;\n        uVar3 = 0;\n      }" else (compound_statement "{\n        uVar5 = (**(code **)(*piVar4 + 0x3c))(piVar4,param_4);\n        *param_5 = uVar5;\n        uVar3 = 0;\n      }" { (expression_statement "uVar5 = (**(code **)(*piVar4 + 0x3c))(piVar4,param_4);" (assignment_expression "uVar5 = (**(code **)(*piVar4 + 0x3c))(piVar4,param_4)" identifier = (call_expression "(**(code **)(*piVar4 + 0x3c))(piVar4,param_4)" (parenthesized_expression "(**(code **)(*piVar4 + 0x3c))" ( (pointer_expression "**(code **)(*piVar4 + 0x3c)" * (pointer_expression "*(code **)(*piVar4 + 0x3c)" * (cast_expression "(code **)(*piVar4 + 0x3c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 0x3c)" ( (binary_expression "*piVar4 + 0x3c" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) )) (argument_list "(piVar4,param_4)" ( identifier , identifier )))) ;) (expression_statement "*param_5 = uVar5;" (assignment_expression "*param_5 = uVar5" (pointer_expression "*param_5" * identifier) = identifier) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }))) })) (return_statement "return uVar3;" return identifier ;) })) comment (expression_statement "FUN_00069d00("../../gold/plugin.cc",0x82d,"get_input_section_size",iVar1);" (call_expression "FUN_00069d00("../../gold/plugin.cc",0x82d,"get_input_section_size",iVar1)" identifier (argument_list "("../../gold/plugin.cc",0x82d,"get_input_section_size",iVar1)" ( (string_literal ""../../gold/plugin.cc"" " string_content ") , number_literal , (string_literal ""get_input_section_size"" " string_content ") , identifier ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n/* WARNING: Enum "DT": Some values do not have unique names */\n\nld_plugin_status __thiscall\ngold::get_input_section_size(gold *this,ld_plugin_section section,uint64_t *secsize)\n\n{\n  Plugin_manager *this_00;\n  ld_plugin_status lVar1;\n  Object *pOVar2;\n  int iVar3;\n  undefined4 extraout_EDX;\n  \n  if (parameters->options_ == (General_options *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n  }\n  this_00 = parameters->options_->plugins_;\n  if (this_00 != (Plugin_manager *)0x0) {\n    lVar1 = LDPS_ERR;\n    if (this_00->in_claim_file_handler_ != false) {\n      pOVar2 = Plugin_manager::get_elf_object(this_00,this);\n      if (pOVar2 == (Object *)0x0) {\n        lVar1 = LDPS_BAD_HANDLE;\n      }\n      else {\n        iVar3 = (*pOVar2->_vptr_Object[0xf])(pOVar2,section.handle);\n        *(undefined4 *)(section.shndx + 4) = extraout_EDX;\n        *(int *)section.shndx = iVar3;\n        lVar1 = LDPS_OK;\n      }\n    }\n    return lVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/plugin.cc",0x82d,"get_input_section_size");\n}\n\n" comment comment (function_definition "ld_plugin_status __thiscall\ngold::get_input_section_size(gold *this,ld_plugin_section section,uint64_t *secsize)\n\n{\n  Plugin_manager *this_00;\n  ld_plugin_status lVar1;\n  Object *pOVar2;\n  int iVar3;\n  undefined4 extraout_EDX;\n  \n  if (parameters->options_ == (General_options *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n  }\n  this_00 = parameters->options_->plugins_;\n  if (this_00 != (Plugin_manager *)0x0) {\n    lVar1 = LDPS_ERR;\n    if (this_00->in_claim_file_handler_ != false) {\n      pOVar2 = Plugin_manager::get_elf_object(this_00,this);\n      if (pOVar2 == (Object *)0x0) {\n        lVar1 = LDPS_BAD_HANDLE;\n      }\n      else {\n        iVar3 = (*pOVar2->_vptr_Object[0xf])(pOVar2,section.handle);\n        *(undefined4 *)(section.shndx + 4) = extraout_EDX;\n        *(int *)section.shndx = iVar3;\n        lVar1 = LDPS_OK;\n      }\n    }\n    return lVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/plugin.cc",0x82d,"get_input_section_size");\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::" identifier : :) (function_declarator "get_input_section_size(gold *this,ld_plugin_section section,uint64_t *secsize)" identifier (parameter_list "(gold *this,ld_plugin_section section,uint64_t *secsize)" ( (parameter_declaration "gold *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "ld_plugin_section section" type_identifier identifier) , (parameter_declaration "uint64_t *secsize" primitive_type (pointer_declarator "*secsize" * identifier)) ))) (compound_statement "{\n  Plugin_manager *this_00;\n  ld_plugin_status lVar1;\n  Object *pOVar2;\n  int iVar3;\n  undefined4 extraout_EDX;\n  \n  if (parameters->options_ == (General_options *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n  }\n  this_00 = parameters->options_->plugins_;\n  if (this_00 != (Plugin_manager *)0x0) {\n    lVar1 = LDPS_ERR;\n    if (this_00->in_claim_file_handler_ != false) {\n      pOVar2 = Plugin_manager::get_elf_object(this_00,this);\n      if (pOVar2 == (Object *)0x0) {\n        lVar1 = LDPS_BAD_HANDLE;\n      }\n      else {\n        iVar3 = (*pOVar2->_vptr_Object[0xf])(pOVar2,section.handle);\n        *(undefined4 *)(section.shndx + 4) = extraout_EDX;\n        *(int *)section.shndx = iVar3;\n        lVar1 = LDPS_OK;\n      }\n    }\n    return lVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/plugin.cc",0x82d,"get_input_section_size");\n}" { (declaration "Plugin_manager *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (declaration "ld_plugin_status lVar1;" type_identifier identifier ;) (declaration "Object *pOVar2;" type_identifier (pointer_declarator "*pOVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 extraout_EDX;" type_identifier identifier ;) (if_statement "if (parameters->options_ == (General_options *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n  }" if (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)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n  }" { comment (expression_statement "do_gold_unreachable("../../gold/parameters.h",0x5c,"options");" (call_expression "do_gold_unreachable("../../gold/parameters.h",0x5c,"options")" identifier (argument_list "("../../gold/parameters.h",0x5c,"options")" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""options"" " string_content ") ))) ;) })) (expression_statement "this_00 = parameters->options_->plugins_;" (assignment_expression "this_00 = parameters->options_->plugins_" identifier = (field_expression "parameters->options_->plugins_" (field_expression "parameters->options_" identifier -> field_identifier) -> field_identifier)) ;) (if_statement "if (this_00 != (Plugin_manager *)0x0) {\n    lVar1 = LDPS_ERR;\n    if (this_00->in_claim_file_handler_ != false) {\n      pOVar2 = Plugin_manager::get_elf_object(this_00,this);\n      if (pOVar2 == (Object *)0x0) {\n        lVar1 = LDPS_BAD_HANDLE;\n      }\n      else {\n        iVar3 = (*pOVar2->_vptr_Object[0xf])(pOVar2,section.handle);\n        *(undefined4 *)(section.shndx + 4) = extraout_EDX;\n        *(int *)section.shndx = iVar3;\n        lVar1 = LDPS_OK;\n      }\n    }\n    return lVar1;\n  }" if (parenthesized_expression "(this_00 != (Plugin_manager *)0x0)" ( (binary_expression "this_00 != (Plugin_manager *)0x0" identifier != (cast_expression "(Plugin_manager *)0x0" ( (type_descriptor "Plugin_manager *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    lVar1 = LDPS_ERR;\n    if (this_00->in_claim_file_handler_ != false) {\n      pOVar2 = Plugin_manager::get_elf_object(this_00,this);\n      if (pOVar2 == (Object *)0x0) {\n        lVar1 = LDPS_BAD_HANDLE;\n      }\n      else {\n        iVar3 = (*pOVar2->_vptr_Object[0xf])(pOVar2,section.handle);\n        *(undefined4 *)(section.shndx + 4) = extraout_EDX;\n        *(int *)section.shndx = iVar3;\n        lVar1 = LDPS_OK;\n      }\n    }\n    return lVar1;\n  }" { (expression_statement "lVar1 = LDPS_ERR;" (assignment_expression "lVar1 = LDPS_ERR" identifier = identifier) ;) (if_statement "if (this_00->in_claim_file_handler_ != false) {\n      pOVar2 = Plugin_manager::get_elf_object(this_00,this);\n      if (pOVar2 == (Object *)0x0) {\n        lVar1 = LDPS_BAD_HANDLE;\n      }\n      else {\n        iVar3 = (*pOVar2->_vptr_Object[0xf])(pOVar2,section.handle);\n        *(undefined4 *)(section.shndx + 4) = extraout_EDX;\n        *(int *)section.shndx = iVar3;\n        lVar1 = LDPS_OK;\n      }\n    }" if (parenthesized_expression "(this_00->in_claim_file_handler_ != false)" ( (binary_expression "this_00->in_claim_file_handler_ != false" (field_expression "this_00->in_claim_file_handler_" identifier -> field_identifier) != false) )) (compound_statement "{\n      pOVar2 = Plugin_manager::get_elf_object(this_00,this);\n      if (pOVar2 == (Object *)0x0) {\n        lVar1 = LDPS_BAD_HANDLE;\n      }\n      else {\n        iVar3 = (*pOVar2->_vptr_Object[0xf])(pOVar2,section.handle);\n        *(undefined4 *)(section.shndx + 4) = extraout_EDX;\n        *(int *)section.shndx = iVar3;\n        lVar1 = LDPS_OK;\n      }\n    }" { (ERROR "pOVar2 = Plugin_manager::" (assignment_expression "pOVar2 = Plugin_manager" identifier = identifier) : :) (expression_statement "get_elf_object(this_00,this);" (call_expression "get_elf_object(this_00,this)" identifier (argument_list "(this_00,this)" ( identifier , identifier ))) ;) (if_statement "if (pOVar2 == (Object *)0x0) {\n        lVar1 = LDPS_BAD_HANDLE;\n      }\n      else {\n        iVar3 = (*pOVar2->_vptr_Object[0xf])(pOVar2,section.handle);\n        *(undefined4 *)(section.shndx + 4) = extraout_EDX;\n        *(int *)section.shndx = iVar3;\n        lVar1 = LDPS_OK;\n      }" if (parenthesized_expression "(pOVar2 == (Object *)0x0)" ( (binary_expression "pOVar2 == (Object *)0x0" identifier == (cast_expression "(Object *)0x0" ( (type_descriptor "Object *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        lVar1 = LDPS_BAD_HANDLE;\n      }" { (expression_statement "lVar1 = LDPS_BAD_HANDLE;" (assignment_expression "lVar1 = LDPS_BAD_HANDLE" identifier = identifier) ;) }) (else_clause "else {\n        iVar3 = (*pOVar2->_vptr_Object[0xf])(pOVar2,section.handle);\n        *(undefined4 *)(section.shndx + 4) = extraout_EDX;\n        *(int *)section.shndx = iVar3;\n        lVar1 = LDPS_OK;\n      }" else (compound_statement "{\n        iVar3 = (*pOVar2->_vptr_Object[0xf])(pOVar2,section.handle);\n        *(undefined4 *)(section.shndx + 4) = extraout_EDX;\n        *(int *)section.shndx = iVar3;\n        lVar1 = LDPS_OK;\n      }" { (expression_statement "iVar3 = (*pOVar2->_vptr_Object[0xf])(pOVar2,section.handle);" (assignment_expression "iVar3 = (*pOVar2->_vptr_Object[0xf])(pOVar2,section.handle)" identifier = (call_expression "(*pOVar2->_vptr_Object[0xf])(pOVar2,section.handle)" (parenthesized_expression "(*pOVar2->_vptr_Object[0xf])" ( (pointer_expression "*pOVar2->_vptr_Object[0xf]" * (subscript_expression "pOVar2->_vptr_Object[0xf]" (field_expression "pOVar2->_vptr_Object" identifier -> field_identifier) [ number_literal ])) )) (argument_list "(pOVar2,section.handle)" ( identifier , (field_expression "section.handle" identifier . field_identifier) )))) ;) (expression_statement "*(undefined4 *)(section.shndx + 4) = extraout_EDX;" (assignment_expression "*(undefined4 *)(section.shndx + 4) = extraout_EDX" (pointer_expression "*(undefined4 *)(section.shndx + 4)" * (cast_expression "(undefined4 *)(section.shndx + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(section.shndx + 4)" ( (binary_expression "section.shndx + 4" (field_expression "section.shndx" identifier . field_identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(int *)section.shndx = iVar3;" (assignment_expression "*(int *)section.shndx = iVar3" (pointer_expression "*(int *)section.shndx" * (cast_expression "(int *)section.shndx" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "section.shndx" identifier . field_identifier))) = identifier) ;) (expression_statement "lVar1 = LDPS_OK;" (assignment_expression "lVar1 = LDPS_OK" identifier = identifier) ;) }))) })) (return_statement "return lVar1;" return identifier ;) })) comment (expression_statement "do_gold_unreachable("../../gold/plugin.cc",0x82d,"get_input_section_size");" (call_expression "do_gold_unreachable("../../gold/plugin.cc",0x82d,"get_input_section_size")" identifier (argument_list "("../../gold/plugin.cc",0x82d,"get_input_section_size")" ( (string_literal ""../../gold/plugin.cc"" " string_content ") , number_literal , (string_literal ""get_input_section_size"" " string_content ") ))) ;) })))
(translation_unit "undefined4 __regparm2\nFUN_0013b170(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined8 *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  undefined8 uVar5;\n  \n  iVar1 = *(int *)(DAT_0038f378 + 8);\n  if (iVar1 == 0) {\n                    \n    FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2);\n  }\n  iVar2 = *(int *)(iVar1 + 0x593c);\n  if (iVar2 != 0) {\n    uVar3 = 3;\n    if (*(char *)(iVar2 + 99) != '\0') {\n      piVar4 = (int *)FUN_0013b120(iVar2,param_3);\n      if (piVar4 == (int *)0x0) {\n        uVar3 = 2;\n      }\n      else {\n        uVar5 = (**(code **)(*piVar4 + 0x3c))(piVar4,param_4);\n        *param_5 = uVar5;\n        uVar3 = 0;\n      }\n    }\n    return uVar3;\n  }\n                    \n  FUN_00069d00("../../gold/plugin.cc",0x82d,"get_input_section_size",iVar1);\n}\n\n" (function_definition "undefined4 __regparm2\nFUN_0013b170(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined8 *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  undefined8 uVar5;\n  \n  iVar1 = *(int *)(DAT_0038f378 + 8);\n  if (iVar1 == 0) {\n                    \n    FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2);\n  }\n  iVar2 = *(int *)(iVar1 + 0x593c);\n  if (iVar2 != 0) {\n    uVar3 = 3;\n    if (*(char *)(iVar2 + 99) != '\0') {\n      piVar4 = (int *)FUN_0013b120(iVar2,param_3);\n      if (piVar4 == (int *)0x0) {\n        uVar3 = 2;\n      }\n      else {\n        uVar5 = (**(code **)(*piVar4 + 0x3c))(piVar4,param_4);\n        *param_5 = uVar5;\n        uVar3 = 0;\n      }\n    }\n    return uVar3;\n  }\n                    \n  FUN_00069d00("../../gold/plugin.cc",0x82d,"get_input_section_size",iVar1);\n}" type_identifier (ERROR "__regparm2" identifier) (function_declarator "FUN_0013b170(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined8 *param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined8 *param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined8 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  undefined8 uVar5;\n  \n  iVar1 = *(int *)(DAT_0038f378 + 8);\n  if (iVar1 == 0) {\n                    \n    FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2);\n  }\n  iVar2 = *(int *)(iVar1 + 0x593c);\n  if (iVar2 != 0) {\n    uVar3 = 3;\n    if (*(char *)(iVar2 + 99) != '\0') {\n      piVar4 = (int *)FUN_0013b120(iVar2,param_3);\n      if (piVar4 == (int *)0x0) {\n        uVar3 = 2;\n      }\n      else {\n        uVar5 = (**(code **)(*piVar4 + 0x3c))(piVar4,param_4);\n        *param_5 = uVar5;\n        uVar3 = 0;\n      }\n    }\n    return uVar3;\n  }\n                    \n  FUN_00069d00("../../gold/plugin.cc",0x82d,"get_input_section_size",iVar1);\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) ;) (declaration "undefined8 uVar5;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(DAT_0038f378 + 8);" (assignment_expression "iVar1 = *(int *)(DAT_0038f378 + 8)" identifier = (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) ))))) ;) (if_statement "if (iVar1 == 0) {\n                    \n    FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2);\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2);\n  }" { (expression_statement "FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2);" (call_expression "FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2)" identifier (argument_list "("../../gold/parameters.h",0x5c,"options",param_2)" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""options"" " string_content ") , identifier ))) ;) })) (expression_statement "iVar2 = *(int *)(iVar1 + 0x593c);" (assignment_expression "iVar2 = *(int *)(iVar1 + 0x593c)" identifier = (pointer_expression "*(int *)(iVar1 + 0x593c)" * (cast_expression "(int *)(iVar1 + 0x593c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x593c)" ( (binary_expression "iVar1 + 0x593c" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 != 0) {\n    uVar3 = 3;\n    if (*(char *)(iVar2 + 99) != '\0') {\n      piVar4 = (int *)FUN_0013b120(iVar2,param_3);\n      if (piVar4 == (int *)0x0) {\n        uVar3 = 2;\n      }\n      else {\n        uVar5 = (**(code **)(*piVar4 + 0x3c))(piVar4,param_4);\n        *param_5 = uVar5;\n        uVar3 = 0;\n      }\n    }\n    return uVar3;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar3 = 3;\n    if (*(char *)(iVar2 + 99) != '\0') {\n      piVar4 = (int *)FUN_0013b120(iVar2,param_3);\n      if (piVar4 == (int *)0x0) {\n        uVar3 = 2;\n      }\n      else {\n        uVar5 = (**(code **)(*piVar4 + 0x3c))(piVar4,param_4);\n        *param_5 = uVar5;\n        uVar3 = 0;\n      }\n    }\n    return uVar3;\n  }" { (expression_statement "uVar3 = 3;" (assignment_expression "uVar3 = 3" identifier = number_literal) ;) (if_statement "if (*(char *)(iVar2 + 99) != '\0') {\n      piVar4 = (int *)FUN_0013b120(iVar2,param_3);\n      if (piVar4 == (int *)0x0) {\n        uVar3 = 2;\n      }\n      else {\n        uVar5 = (**(code **)(*piVar4 + 0x3c))(piVar4,param_4);\n        *param_5 = uVar5;\n        uVar3 = 0;\n      }\n    }" if (parenthesized_expression "(*(char *)(iVar2 + 99) != '\0')" ( (binary_expression "*(char *)(iVar2 + 99) != '\0'" (pointer_expression "*(char *)(iVar2 + 99)" * (cast_expression "(char *)(iVar2 + 99)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 99)" ( (binary_expression "iVar2 + 99" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      piVar4 = (int *)FUN_0013b120(iVar2,param_3);\n      if (piVar4 == (int *)0x0) {\n        uVar3 = 2;\n      }\n      else {\n        uVar5 = (**(code **)(*piVar4 + 0x3c))(piVar4,param_4);\n        *param_5 = uVar5;\n        uVar3 = 0;\n      }\n    }" { (expression_statement "piVar4 = (int *)FUN_0013b120(iVar2,param_3);" (assignment_expression "piVar4 = (int *)FUN_0013b120(iVar2,param_3)" identifier = (cast_expression "(int *)FUN_0013b120(iVar2,param_3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0013b120(iVar2,param_3)" identifier (argument_list "(iVar2,param_3)" ( identifier , identifier ))))) ;) (if_statement "if (piVar4 == (int *)0x0) {\n        uVar3 = 2;\n      }\n      else {\n        uVar5 = (**(code **)(*piVar4 + 0x3c))(piVar4,param_4);\n        *param_5 = uVar5;\n        uVar3 = 0;\n      }" if (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)) )) (compound_statement "{\n        uVar3 = 2;\n      }" { (expression_statement "uVar3 = 2;" (assignment_expression "uVar3 = 2" identifier = number_literal) ;) }) (else_clause "else {\n        uVar5 = (**(code **)(*piVar4 + 0x3c))(piVar4,param_4);\n        *param_5 = uVar5;\n        uVar3 = 0;\n      }" else (compound_statement "{\n        uVar5 = (**(code **)(*piVar4 + 0x3c))(piVar4,param_4);\n        *param_5 = uVar5;\n        uVar3 = 0;\n      }" { (expression_statement "uVar5 = (**(code **)(*piVar4 + 0x3c))(piVar4,param_4);" (assignment_expression "uVar5 = (**(code **)(*piVar4 + 0x3c))(piVar4,param_4)" identifier = (call_expression "(**(code **)(*piVar4 + 0x3c))(piVar4,param_4)" (parenthesized_expression "(**(code **)(*piVar4 + 0x3c))" ( (pointer_expression "**(code **)(*piVar4 + 0x3c)" * (pointer_expression "*(code **)(*piVar4 + 0x3c)" * (cast_expression "(code **)(*piVar4 + 0x3c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 0x3c)" ( (binary_expression "*piVar4 + 0x3c" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) )) (argument_list "(piVar4,param_4)" ( identifier , identifier )))) ;) (expression_statement "*param_5 = uVar5;" (assignment_expression "*param_5 = uVar5" (pointer_expression "*param_5" * identifier) = identifier) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }))) })) (return_statement "return uVar3;" return identifier ;) })) (expression_statement "FUN_00069d00("../../gold/plugin.cc",0x82d,"get_input_section_size",iVar1);" (call_expression "FUN_00069d00("../../gold/plugin.cc",0x82d,"get_input_section_size",iVar1)" identifier (argument_list "("../../gold/plugin.cc",0x82d,"get_input_section_size",iVar1)" ( (string_literal ""../../gold/plugin.cc"" " string_content ") , number_literal , (string_literal ""get_input_section_size"" " string_content ") , identifier ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) })) (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })))
(function_definition "undefined4 __regparm2\nFUN_0013b170(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined8 *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  undefined8 uVar5;\n  \n  iVar1 = *(int *)(DAT_0038f378 + 8);\n  if (iVar1 == 0) {\n                    \n    FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2);\n  }\n  iVar2 = *(int *)(iVar1 + 0x593c);\n  if (iVar2 != 0) {\n    uVar3 = 3;\n    if (*(char *)(iVar2 + 99) != '\0') {\n      piVar4 = (int *)FUN_0013b120(iVar2,param_3);\n      if (piVar4 == (int *)0x0) {\n        uVar3 = 2;\n      }\n      else {\n        uVar5 = (**(code **)(*piVar4 + 0x3c))(piVar4,param_4);\n        *param_5 = uVar5;\n        uVar3 = 0;\n      }\n    }\n    return uVar3;\n  }\n                    \n  FUN_00069d00("../../gold/plugin.cc",0x82d,"get_input_section_size",iVar1);\n}" (type_identifier "undefined4") (ERROR "__regparm2" (identifier "__regparm2")) (function_declarator "FUN_0013b170(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined8 *param_5)" (identifier "FUN_0013b170") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined8 *param_5)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined8 *param_5" (type_identifier "undefined8") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  undefined8 uVar5;\n  \n  iVar1 = *(int *)(DAT_0038f378 + 8);\n  if (iVar1 == 0) {\n                    \n    FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2);\n  }\n  iVar2 = *(int *)(iVar1 + 0x593c);\n  if (iVar2 != 0) {\n    uVar3 = 3;\n    if (*(char *)(iVar2 + 99) != '\0') {\n      piVar4 = (int *)FUN_0013b120(iVar2,param_3);\n      if (piVar4 == (int *)0x0) {\n        uVar3 = 2;\n      }\n      else {\n        uVar5 = (**(code **)(*piVar4 + 0x3c))(piVar4,param_4);\n        *param_5 = uVar5;\n        uVar3 = 0;\n      }\n    }\n    return uVar3;\n  }\n                    \n  FUN_00069d00("../../gold/plugin.cc",0x82d,"get_input_section_size",iVar1);\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")) (; ";")) (declaration "undefined8 uVar5;" (type_identifier "undefined8") (identifier "uVar5") (; ";")) (expression_statement "iVar1 = *(int *)(DAT_0038f378 + 8);" (assignment_expression "iVar1 = *(int *)(DAT_0038f378 + 8)" (identifier "iVar1") (= "=") (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")) () ")"))))) (; ";")) (if_statement "if (iVar1 == 0) {\n                    \n    FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2);\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2);\n  }" ({ "{") (expression_statement "FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2);" (call_expression "FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2)" (identifier "FUN_00069d00") (argument_list "("../../gold/parameters.h",0x5c,"options",param_2)" (( "(") (string_literal ""../../gold/parameters.h"" (" """) (string_content "../../gold/parameters.h") (" """)) (, ",") (number_literal "0x5c") (, ",") (string_literal ""options"" (" """) (string_content "options") (" """)) (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar2 = *(int *)(iVar1 + 0x593c);" (assignment_expression "iVar2 = *(int *)(iVar1 + 0x593c)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(iVar1 + 0x593c)" (* "*") (cast_expression "(int *)(iVar1 + 0x593c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x593c)" (( "(") (binary_expression "iVar1 + 0x593c" (identifier "iVar1") (+ "+") (number_literal "0x593c")) () ")"))))) (; ";")) (if_statement "if (iVar2 != 0) {\n    uVar3 = 3;\n    if (*(char *)(iVar2 + 99) != '\0') {\n      piVar4 = (int *)FUN_0013b120(iVar2,param_3);\n      if (piVar4 == (int *)0x0) {\n        uVar3 = 2;\n      }\n      else {\n        uVar5 = (**(code **)(*piVar4 + 0x3c))(piVar4,param_4);\n        *param_5 = uVar5;\n        uVar3 = 0;\n      }\n    }\n    return uVar3;\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar3 = 3;\n    if (*(char *)(iVar2 + 99) != '\0') {\n      piVar4 = (int *)FUN_0013b120(iVar2,param_3);\n      if (piVar4 == (int *)0x0) {\n        uVar3 = 2;\n      }\n      else {\n        uVar5 = (**(code **)(*piVar4 + 0x3c))(piVar4,param_4);\n        *param_5 = uVar5;\n        uVar3 = 0;\n      }\n    }\n    return uVar3;\n  }" ({ "{") (expression_statement "uVar3 = 3;" (assignment_expression "uVar3 = 3" (identifier "uVar3") (= "=") (number_literal "3")) (; ";")) (if_statement "if (*(char *)(iVar2 + 99) != '\0') {\n      piVar4 = (int *)FUN_0013b120(iVar2,param_3);\n      if (piVar4 == (int *)0x0) {\n        uVar3 = 2;\n      }\n      else {\n        uVar5 = (**(code **)(*piVar4 + 0x3c))(piVar4,param_4);\n        *param_5 = uVar5;\n        uVar3 = 0;\n      }\n    }" (if "if") (parenthesized_expression "(*(char *)(iVar2 + 99) != '\0')" (( "(") (binary_expression "*(char *)(iVar2 + 99) != '\0'" (pointer_expression "*(char *)(iVar2 + 99)" (* "*") (cast_expression "(char *)(iVar2 + 99)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 99)" (( "(") (binary_expression "iVar2 + 99" (identifier "iVar2") (+ "+") (number_literal "99")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      piVar4 = (int *)FUN_0013b120(iVar2,param_3);\n      if (piVar4 == (int *)0x0) {\n        uVar3 = 2;\n      }\n      else {\n        uVar5 = (**(code **)(*piVar4 + 0x3c))(piVar4,param_4);\n        *param_5 = uVar5;\n        uVar3 = 0;\n      }\n    }" ({ "{") (expression_statement "piVar4 = (int *)FUN_0013b120(iVar2,param_3);" (assignment_expression "piVar4 = (int *)FUN_0013b120(iVar2,param_3)" (identifier "piVar4") (= "=") (cast_expression "(int *)FUN_0013b120(iVar2,param_3)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0013b120(iVar2,param_3)" (identifier "FUN_0013b120") (argument_list "(iVar2,param_3)" (( "(") (identifier "iVar2") (, ",") (identifier "param_3") () ")"))))) (; ";")) (if_statement "if (piVar4 == (int *)0x0) {\n        uVar3 = 2;\n      }\n      else {\n        uVar5 = (**(code **)(*piVar4 + 0x3c))(piVar4,param_4);\n        *param_5 = uVar5;\n        uVar3 = 0;\n      }" (if "if") (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"))) () ")")) (compound_statement "{\n        uVar3 = 2;\n      }" ({ "{") (expression_statement "uVar3 = 2;" (assignment_expression "uVar3 = 2" (identifier "uVar3") (= "=") (number_literal "2")) (; ";")) (} "}")) (else_clause "else {\n        uVar5 = (**(code **)(*piVar4 + 0x3c))(piVar4,param_4);\n        *param_5 = uVar5;\n        uVar3 = 0;\n      }" (else "else") (compound_statement "{\n        uVar5 = (**(code **)(*piVar4 + 0x3c))(piVar4,param_4);\n        *param_5 = uVar5;\n        uVar3 = 0;\n      }" ({ "{") (expression_statement "uVar5 = (**(code **)(*piVar4 + 0x3c))(piVar4,param_4);" (assignment_expression "uVar5 = (**(code **)(*piVar4 + 0x3c))(piVar4,param_4)" (identifier "uVar5") (= "=") (call_expression "(**(code **)(*piVar4 + 0x3c))(piVar4,param_4)" (parenthesized_expression "(**(code **)(*piVar4 + 0x3c))" (( "(") (pointer_expression "**(code **)(*piVar4 + 0x3c)" (* "*") (pointer_expression "*(code **)(*piVar4 + 0x3c)" (* "*") (cast_expression "(code **)(*piVar4 + 0x3c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar4 + 0x3c)" (( "(") (binary_expression "*piVar4 + 0x3c" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (+ "+") (number_literal "0x3c")) () ")"))))) () ")")) (argument_list "(piVar4,param_4)" (( "(") (identifier "piVar4") (, ",") (identifier "param_4") () ")")))) (; ";")) (expression_statement "*param_5 = uVar5;" (assignment_expression "*param_5 = uVar5" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (identifier "uVar5")) (; ";")) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (} "}")))) (} "}"))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (expression_statement "FUN_00069d00("../../gold/plugin.cc",0x82d,"get_input_section_size",iVar1);" (call_expression "FUN_00069d00("../../gold/plugin.cc",0x82d,"get_input_section_size",iVar1)" (identifier "FUN_00069d00") (argument_list "("../../gold/plugin.cc",0x82d,"get_input_section_size",iVar1)" (( "(") (string_literal ""../../gold/plugin.cc"" (" """) (string_content "../../gold/plugin.cc") (" """)) (, ",") (number_literal "0x82d") (, ",") (string_literal ""get_input_section_size"" (" """) (string_content "get_input_section_size") (" """)) (, ",") (identifier "iVar1") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */
/* WARNING: Enum "DT": Some values do not have unique names */

type_1 __thiscall
type_2::function_1(type_2 *this,type_3 section,uint64_t *secsize)

{
  type_4 *var_2;
  type_1 lVar1;
  type_5 *var_4;
  int iVar3;
  type_6 extraout_EDX;
  
  if (parameters->options_ == (type_7 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_1("../../gold/parameters.h",0x5c,"options");
  }
  var_2 = parameters->options_->plugins_;
  if (var_2 != (type_4 *)0x0) {
    lVar1 = LDPS_ERR;
    if (var_2->in_claim_file_handler_ != false) {
      var_4 = type_4::var_3(var_2,this);
      if (var_4 == (type_5 *)0x0) {
        lVar1 = LDPS_BAD_HANDLE;
      }
      else {
        iVar3 = (*var_4->_vptr_Object[0xf])(var_4,section.handle);
        *(type_6 *)(section.shndx + 4) = extraout_EDX;
        *(int *)section.shndx = iVar3;
        lVar1 = LDPS_OK;
      }
    }
    return lVar1;
  }
                    /* WARNING: Subroutine does not return */
  var_1("../../gold/plugin.cc",0x82d,"get_input_section_size");
}


(translation_unit (function_definition type: (type_identifier) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) 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))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (string_literal (string_content)) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (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: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (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 (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))))) (return_statement (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (string_literal (string_content)) (identifier)))))))

/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

undefined4 __regparm2
MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
            undefined8 *param_5)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  int *piVar4;
  undefined8 uVar5;
  
  iVar1 = *(int *)(DAT_0038f378 + 8);
  if (iVar1 == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2);
  }
  iVar2 = *(int *)(iVar1 + 0x593c);
  if (iVar2 != 0) {
    uVar3 = 3;
    if (*(char *)(iVar2 + 99) != '\0') {
      piVar4 = (int *)FUN_0013b120(iVar2,param_3);
      if (piVar4 == (int *)0x0) {
        uVar3 = 2;
      }
      else {
        uVar5 = (**(code **)(*piVar4 + 0x3c))(piVar4,param_4);
        *param_5 = uVar5;
        uVar3 = 0;
      }
    }
    return uVar3;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00069d00("../../gold/plugin.cc",0x82d,"get_input_section_size",iVar1);
}

