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

ld_plugin_status __thiscall
gold::get_input_section_contents
          (gold *this,ld_plugin_section section,uchar **section_contents_ptr,size_t *len)

{
  Plugin_manager *this_00;
  bool bVar1;
  Object *this_01;
  uchar *puVar2;
  ld_plugin_status lVar3;
  section_size_type plen;
  
  plen = 0x14e9a8;
  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) {
    if (this_00->in_claim_file_handler_ == false) {
      lVar3 = LDPS_ERR;
    }
    else {
      this_01 = Plugin_manager::get_elf_object(this_00,this);
      if (this_01 != (Object *)0x0) {
        if (this_01->input_file_ != (Input_file *)0x0) {
          bVar1 = File_read::is_locked(&this_01->input_file_->file_);
          if (bVar1) {
            puVar2 = Object::section_contents(this_01,(uint)section.handle,&plen,false);
            *(uchar **)section.shndx = puVar2;
            *section_contents_ptr = (uchar *)plen;
            return LDPS_OK;
          }
        }
                    /* WARNING: Subroutine does not return */
        do_gold_unreachable("../../gold/plugin.cc",0x805,"get_input_section_contents");
      }
      lVar3 = LDPS_BAD_HANDLE;
    }
    return lVar3;
  }
                    /* WARNING: Subroutine does not return */
  do_gold_unreachable("../../gold/plugin.cc",0x7f9,"get_input_section_contents");
}



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

undefined4
FUN_0014e9a0(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 *param_4)

{
  char cVar1;
  int iVar2;
  undefined4 uVar3;
  undefined4 local_10;
  
  local_10 = 0x14e9a8;
  if (*(int *)(DAT_003af408 + 8) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0007d010("../../gold/parameters.h",0x5c,"options",param_1);
  }
  iVar2 = *(int *)(*(int *)(DAT_003af408 + 8) + 0x593c);
  if (iVar2 != 0) {
    if (*(char *)(iVar2 + 99) == '\0') {
      uVar3 = 3;
    }
    else {
      iVar2 = FUN_0014e7f0(iVar2,param_1);
      if (iVar2 != 0) {
        if (*(int *)(iVar2 + 0x1c) != 0) {
          cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);
          if (cVar1 != '\0') {
            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);
            *param_3 = uVar3;
            *param_4 = local_10;
            return 0;
          }
        }
                    /* WARNING: Subroutine does not return */
        FUN_0007d010("../../gold/plugin.cc",0x805,"get_input_section_contents");
      }
      uVar3 = 2;
    }
    return uVar3;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0007d010("../../gold/plugin.cc",0x7f9,"get_input_section_contents",0);
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00036f20
ADD EBX,0x260658
SUB ESP,0x10
MOV EDX,dword ptr [ESP + 0x20]
MOV ESI,dword ptr [ESP + 0x24]
LEA EAX,[EBX + 0x408]
MOV EAX,dword ptr [EAX]
MOV EAX,dword ptr [EAX + 0x8]
TEST EAX,EAX
JZ 0x0014ea77
MOV EAX,dword ptr [EAX + 0x593c]
TEST EAX,EAX
JZ 0x0014ea8d
CMP byte ptr [EAX + 0x63],0x0
JZ 0x0014ea60
SUB ESP,0x8
PUSH EDX
PUSH EAX
CALL 0x0014e7f0
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JZ 0x0014ea70
MOV EAX,dword ptr [EAX + 0x1c]
TEST EAX,EAX
JZ 0x0014ea40
SUB ESP,0xc
ADD EAX,0x1c
PUSH EAX
CALL 0x000753a0
ADD ESP,0x10
TEST AL,AL
JZ 0x0014ea40
PUSH 0x0
LEA EAX,[ESP + 0x10]
PUSH EAX
PUSH ESI
PUSH EDI
CALL 0x000c61d0
MOV EDX,dword ptr [ESP + 0x38]
MOV dword ptr [EDX],EAX
MOV EAX,dword ptr [ESP + 0x3c]
MOV EDX,dword ptr [ESP + 0x1c]
ADD ESP,0x10
MOV dword ptr [EAX],EDX
ADD ESP,0x10
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xfff02618]
PUSH EAX
LEA EAX,[EBX + 0xfff01d44]
PUSH 0x805
PUSH EAX
CALL 0x0007d010
MOV EAX,0x3
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
MOV EAX,0x2
JMP 0x0014ea65
LEA EAX,[EBX + 0xfff02414]
PUSH EDX
PUSH EAX
LEA EAX,[EBX + 0xffee926d]
PUSH 0x5c
PUSH EAX
CALL 0x0007d010
PUSH EAX
LEA EAX,[EBX + 0xfff02618]
PUSH EAX
LEA EAX,[EBX + 0xfff01d44]
PUSH 0x7f9
PUSH EAX
CALL 0x0007d010
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4\nFUN_0014e9a0(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  char cVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 local_10;\n  \n  local_10 = 0x14e9a8;\n  if (*(int *)(DAT_003af408 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007d010("../../gold/parameters.h",0x5c,"options",param_1);\n  }\n  iVar2 = *(int *)(*(int *)(DAT_003af408 + 8) + 0x593c);\n  if (iVar2 != 0) {\n    if (*(char *)(iVar2 + 99) == '\0') {\n      uVar3 = 3;\n    }\n    else {\n      iVar2 = FUN_0014e7f0(iVar2,param_1);\n      if (iVar2 != 0) {\n        if (*(int *)(iVar2 + 0x1c) != 0) {\n          cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);\n          if (cVar1 != '\0') {\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_0007d010("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }\n      uVar3 = 2;\n    }\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0007d010("../../gold/plugin.cc",0x7f9,"get_input_section_contents",0);\n}\n\n" comment (function_definition "undefined4\nFUN_0014e9a0(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  char cVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 local_10;\n  \n  local_10 = 0x14e9a8;\n  if (*(int *)(DAT_003af408 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007d010("../../gold/parameters.h",0x5c,"options",param_1);\n  }\n  iVar2 = *(int *)(*(int *)(DAT_003af408 + 8) + 0x593c);\n  if (iVar2 != 0) {\n    if (*(char *)(iVar2 + 99) == '\0') {\n      uVar3 = 3;\n    }\n    else {\n      iVar2 = FUN_0014e7f0(iVar2,param_1);\n      if (iVar2 != 0) {\n        if (*(int *)(iVar2 + 0x1c) != 0) {\n          cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);\n          if (cVar1 != '\0') {\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_0007d010("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }\n      uVar3 = 2;\n    }\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0007d010("../../gold/plugin.cc",0x7f9,"get_input_section_contents",0);\n}" type_identifier (function_declarator "FUN_0014e9a0(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 *param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 *param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 local_10;\n  \n  local_10 = 0x14e9a8;\n  if (*(int *)(DAT_003af408 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007d010("../../gold/parameters.h",0x5c,"options",param_1);\n  }\n  iVar2 = *(int *)(*(int *)(DAT_003af408 + 8) + 0x593c);\n  if (iVar2 != 0) {\n    if (*(char *)(iVar2 + 99) == '\0') {\n      uVar3 = 3;\n    }\n    else {\n      iVar2 = FUN_0014e7f0(iVar2,param_1);\n      if (iVar2 != 0) {\n        if (*(int *)(iVar2 + 0x1c) != 0) {\n          cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);\n          if (cVar1 != '\0') {\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_0007d010("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }\n      uVar3 = 2;\n    }\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0007d010("../../gold/plugin.cc",0x7f9,"get_input_section_contents",0);\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 local_10;" type_identifier identifier ;) (expression_statement "local_10 = 0x14e9a8;" (assignment_expression "local_10 = 0x14e9a8" identifier = number_literal) ;) (if_statement "if (*(int *)(DAT_003af408 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007d010("../../gold/parameters.h",0x5c,"options",param_1);\n  }" if (parenthesized_expression "(*(int *)(DAT_003af408 + 8) == 0)" ( (binary_expression "*(int *)(DAT_003af408 + 8) == 0" (pointer_expression "*(int *)(DAT_003af408 + 8)" * (cast_expression "(int *)(DAT_003af408 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_003af408 + 8)" ( (binary_expression "DAT_003af408 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0007d010("../../gold/parameters.h",0x5c,"options",param_1);\n  }" { comment (expression_statement "FUN_0007d010("../../gold/parameters.h",0x5c,"options",param_1);" (call_expression "FUN_0007d010("../../gold/parameters.h",0x5c,"options",param_1)" identifier (argument_list "("../../gold/parameters.h",0x5c,"options",param_1)" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""options"" " string_content ") , identifier ))) ;) })) (expression_statement "iVar2 = *(int *)(*(int *)(DAT_003af408 + 8) + 0x593c);" (assignment_expression "iVar2 = *(int *)(*(int *)(DAT_003af408 + 8) + 0x593c)" identifier = (pointer_expression "*(int *)(*(int *)(DAT_003af408 + 8) + 0x593c)" * (cast_expression "(int *)(*(int *)(DAT_003af408 + 8) + 0x593c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_003af408 + 8) + 0x593c)" ( (binary_expression "*(int *)(DAT_003af408 + 8) + 0x593c" (pointer_expression "*(int *)(DAT_003af408 + 8)" * (cast_expression "(int *)(DAT_003af408 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_003af408 + 8)" ( (binary_expression "DAT_003af408 + 8" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (iVar2 != 0) {\n    if (*(char *)(iVar2 + 99) == '\0') {\n      uVar3 = 3;\n    }\n    else {\n      iVar2 = FUN_0014e7f0(iVar2,param_1);\n      if (iVar2 != 0) {\n        if (*(int *)(iVar2 + 0x1c) != 0) {\n          cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);\n          if (cVar1 != '\0') {\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_0007d010("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }\n      uVar3 = 2;\n    }\n    return uVar3;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(char *)(iVar2 + 99) == '\0') {\n      uVar3 = 3;\n    }\n    else {\n      iVar2 = FUN_0014e7f0(iVar2,param_1);\n      if (iVar2 != 0) {\n        if (*(int *)(iVar2 + 0x1c) != 0) {\n          cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);\n          if (cVar1 != '\0') {\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_0007d010("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }\n      uVar3 = 2;\n    }\n    return uVar3;\n  }" { (if_statement "if (*(char *)(iVar2 + 99) == '\0') {\n      uVar3 = 3;\n    }\n    else {\n      iVar2 = FUN_0014e7f0(iVar2,param_1);\n      if (iVar2 != 0) {\n        if (*(int *)(iVar2 + 0x1c) != 0) {\n          cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);\n          if (cVar1 != '\0') {\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_0007d010("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }\n      uVar3 = 2;\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      uVar3 = 3;\n    }" { (expression_statement "uVar3 = 3;" (assignment_expression "uVar3 = 3" identifier = number_literal) ;) }) (else_clause "else {\n      iVar2 = FUN_0014e7f0(iVar2,param_1);\n      if (iVar2 != 0) {\n        if (*(int *)(iVar2 + 0x1c) != 0) {\n          cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);\n          if (cVar1 != '\0') {\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_0007d010("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }\n      uVar3 = 2;\n    }" else (compound_statement "{\n      iVar2 = FUN_0014e7f0(iVar2,param_1);\n      if (iVar2 != 0) {\n        if (*(int *)(iVar2 + 0x1c) != 0) {\n          cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);\n          if (cVar1 != '\0') {\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_0007d010("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }\n      uVar3 = 2;\n    }" { (expression_statement "iVar2 = FUN_0014e7f0(iVar2,param_1);" (assignment_expression "iVar2 = FUN_0014e7f0(iVar2,param_1)" identifier = (call_expression "FUN_0014e7f0(iVar2,param_1)" identifier (argument_list "(iVar2,param_1)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n        if (*(int *)(iVar2 + 0x1c) != 0) {\n          cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);\n          if (cVar1 != '\0') {\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_0007d010("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        if (*(int *)(iVar2 + 0x1c) != 0) {\n          cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);\n          if (cVar1 != '\0') {\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_0007d010("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }" { (if_statement "if (*(int *)(iVar2 + 0x1c) != 0) {\n          cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);\n          if (cVar1 != '\0') {\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }\n        }" if (parenthesized_expression "(*(int *)(iVar2 + 0x1c) != 0)" ( (binary_expression "*(int *)(iVar2 + 0x1c) != 0" (pointer_expression "*(int *)(iVar2 + 0x1c)" * (cast_expression "(int *)(iVar2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x1c)" ( (binary_expression "iVar2 + 0x1c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n          cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);\n          if (cVar1 != '\0') {\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }\n        }" { (expression_statement "cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);" (assignment_expression "cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c)" identifier = (call_expression "FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c)" identifier (argument_list "(*(int *)(iVar2 + 0x1c) + 0x1c)" ( (binary_expression "*(int *)(iVar2 + 0x1c) + 0x1c" (pointer_expression "*(int *)(iVar2 + 0x1c)" * (cast_expression "(int *)(iVar2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x1c)" ( (binary_expression "iVar2 + 0x1c" identifier + number_literal) )))) + number_literal) )))) ;) (if_statement "if (cVar1 != '\0') {\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }" { (expression_statement "uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);" (assignment_expression "uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0)" identifier = (call_expression "FUN_000c61d0(iVar2,param_2,&local_10,0)" identifier (argument_list "(iVar2,param_2,&local_10,0)" ( identifier , identifier , (pointer_expression "&local_10" & identifier) , number_literal )))) ;) (expression_statement "*param_3 = uVar3;" (assignment_expression "*param_3 = uVar3" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "*param_4 = local_10;" (assignment_expression "*param_4 = local_10" (pointer_expression "*param_4" * identifier) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) })) comment (expression_statement "FUN_0007d010("../../gold/plugin.cc",0x805,"get_input_section_contents");" (call_expression "FUN_0007d010("../../gold/plugin.cc",0x805,"get_input_section_contents")" identifier (argument_list "("../../gold/plugin.cc",0x805,"get_input_section_contents")" ( (string_literal ""../../gold/plugin.cc"" " string_content ") , number_literal , (string_literal ""get_input_section_contents"" " string_content ") ))) ;) })) (expression_statement "uVar3 = 2;" (assignment_expression "uVar3 = 2" identifier = number_literal) ;) }))) (return_statement "return uVar3;" return identifier ;) })) comment (expression_statement "FUN_0007d010("../../gold/plugin.cc",0x7f9,"get_input_section_contents",0);" (call_expression "FUN_0007d010("../../gold/plugin.cc",0x7f9,"get_input_section_contents",0)" identifier (argument_list "("../../gold/plugin.cc",0x7f9,"get_input_section_contents",0)" ( (string_literal ""../../gold/plugin.cc"" " string_content ") , number_literal , (string_literal ""get_input_section_contents"" " string_content ") , number_literal ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "DT": Some values do not have unique names */\n/* WARNING: Enum "ELFOSABI": Some values do not have unique names */\n\nld_plugin_status __thiscall\ngold::get_input_section_contents\n          (gold *this,ld_plugin_section section,uchar **section_contents_ptr,size_t *len)\n\n{\n  Plugin_manager *this_00;\n  bool bVar1;\n  Object *this_01;\n  uchar *puVar2;\n  ld_plugin_status lVar3;\n  section_size_type plen;\n  \n  plen = 0x14e9a8;\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    if (this_00->in_claim_file_handler_ == false) {\n      lVar3 = LDPS_ERR;\n    }\n    else {\n      this_01 = Plugin_manager::get_elf_object(this_00,this);\n      if (this_01 != (Object *)0x0) {\n        if (this_01->input_file_ != (Input_file *)0x0) {\n          bVar1 = File_read::is_locked(&this_01->input_file_->file_);\n          if (bVar1) {\n            puVar2 = Object::section_contents(this_01,(uint)section.handle,&plen,false);\n            *(uchar **)section.shndx = puVar2;\n            *section_contents_ptr = (uchar *)plen;\n            return LDPS_OK;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }\n      lVar3 = LDPS_BAD_HANDLE;\n    }\n    return lVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/plugin.cc",0x7f9,"get_input_section_contents");\n}\n\n" comment comment comment (function_definition "ld_plugin_status __thiscall\ngold::get_input_section_contents\n          (gold *this,ld_plugin_section section,uchar **section_contents_ptr,size_t *len)\n\n{\n  Plugin_manager *this_00;\n  bool bVar1;\n  Object *this_01;\n  uchar *puVar2;\n  ld_plugin_status lVar3;\n  section_size_type plen;\n  \n  plen = 0x14e9a8;\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    if (this_00->in_claim_file_handler_ == false) {\n      lVar3 = LDPS_ERR;\n    }\n    else {\n      this_01 = Plugin_manager::get_elf_object(this_00,this);\n      if (this_01 != (Object *)0x0) {\n        if (this_01->input_file_ != (Input_file *)0x0) {\n          bVar1 = File_read::is_locked(&this_01->input_file_->file_);\n          if (bVar1) {\n            puVar2 = Object::section_contents(this_01,(uint)section.handle,&plen,false);\n            *(uchar **)section.shndx = puVar2;\n            *section_contents_ptr = (uchar *)plen;\n            return LDPS_OK;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }\n      lVar3 = LDPS_BAD_HANDLE;\n    }\n    return lVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/plugin.cc",0x7f9,"get_input_section_contents");\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::" identifier : :) (function_declarator "get_input_section_contents\n          (gold *this,ld_plugin_section section,uchar **section_contents_ptr,size_t *len)" identifier (parameter_list "(gold *this,ld_plugin_section section,uchar **section_contents_ptr,size_t *len)" ( (parameter_declaration "gold *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "ld_plugin_section section" type_identifier identifier) , (parameter_declaration "uchar **section_contents_ptr" type_identifier (pointer_declarator "**section_contents_ptr" * (pointer_declarator "*section_contents_ptr" * identifier))) , (parameter_declaration "size_t *len" primitive_type (pointer_declarator "*len" * identifier)) ))) (compound_statement "{\n  Plugin_manager *this_00;\n  bool bVar1;\n  Object *this_01;\n  uchar *puVar2;\n  ld_plugin_status lVar3;\n  section_size_type plen;\n  \n  plen = 0x14e9a8;\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    if (this_00->in_claim_file_handler_ == false) {\n      lVar3 = LDPS_ERR;\n    }\n    else {\n      this_01 = Plugin_manager::get_elf_object(this_00,this);\n      if (this_01 != (Object *)0x0) {\n        if (this_01->input_file_ != (Input_file *)0x0) {\n          bVar1 = File_read::is_locked(&this_01->input_file_->file_);\n          if (bVar1) {\n            puVar2 = Object::section_contents(this_01,(uint)section.handle,&plen,false);\n            *(uchar **)section.shndx = puVar2;\n            *section_contents_ptr = (uchar *)plen;\n            return LDPS_OK;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }\n      lVar3 = LDPS_BAD_HANDLE;\n    }\n    return lVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/plugin.cc",0x7f9,"get_input_section_contents");\n}" { (declaration "Plugin_manager *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (declaration "bool bVar1;" primitive_type identifier ;) (declaration "Object *this_01;" type_identifier (pointer_declarator "*this_01" * identifier) ;) (declaration "uchar *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "ld_plugin_status lVar3;" type_identifier identifier ;) (declaration "section_size_type plen;" type_identifier identifier ;) (expression_statement "plen = 0x14e9a8;" (assignment_expression "plen = 0x14e9a8" identifier = number_literal) ;) (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    if (this_00->in_claim_file_handler_ == false) {\n      lVar3 = LDPS_ERR;\n    }\n    else {\n      this_01 = Plugin_manager::get_elf_object(this_00,this);\n      if (this_01 != (Object *)0x0) {\n        if (this_01->input_file_ != (Input_file *)0x0) {\n          bVar1 = File_read::is_locked(&this_01->input_file_->file_);\n          if (bVar1) {\n            puVar2 = Object::section_contents(this_01,(uint)section.handle,&plen,false);\n            *(uchar **)section.shndx = puVar2;\n            *section_contents_ptr = (uchar *)plen;\n            return LDPS_OK;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }\n      lVar3 = LDPS_BAD_HANDLE;\n    }\n    return lVar3;\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    if (this_00->in_claim_file_handler_ == false) {\n      lVar3 = LDPS_ERR;\n    }\n    else {\n      this_01 = Plugin_manager::get_elf_object(this_00,this);\n      if (this_01 != (Object *)0x0) {\n        if (this_01->input_file_ != (Input_file *)0x0) {\n          bVar1 = File_read::is_locked(&this_01->input_file_->file_);\n          if (bVar1) {\n            puVar2 = Object::section_contents(this_01,(uint)section.handle,&plen,false);\n            *(uchar **)section.shndx = puVar2;\n            *section_contents_ptr = (uchar *)plen;\n            return LDPS_OK;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }\n      lVar3 = LDPS_BAD_HANDLE;\n    }\n    return lVar3;\n  }" { (if_statement "if (this_00->in_claim_file_handler_ == false) {\n      lVar3 = LDPS_ERR;\n    }\n    else {\n      this_01 = Plugin_manager::get_elf_object(this_00,this);\n      if (this_01 != (Object *)0x0) {\n        if (this_01->input_file_ != (Input_file *)0x0) {\n          bVar1 = File_read::is_locked(&this_01->input_file_->file_);\n          if (bVar1) {\n            puVar2 = Object::section_contents(this_01,(uint)section.handle,&plen,false);\n            *(uchar **)section.shndx = puVar2;\n            *section_contents_ptr = (uchar *)plen;\n            return LDPS_OK;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }\n      lVar3 = LDPS_BAD_HANDLE;\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      lVar3 = LDPS_ERR;\n    }" { (expression_statement "lVar3 = LDPS_ERR;" (assignment_expression "lVar3 = LDPS_ERR" identifier = identifier) ;) }) (else_clause "else {\n      this_01 = Plugin_manager::get_elf_object(this_00,this);\n      if (this_01 != (Object *)0x0) {\n        if (this_01->input_file_ != (Input_file *)0x0) {\n          bVar1 = File_read::is_locked(&this_01->input_file_->file_);\n          if (bVar1) {\n            puVar2 = Object::section_contents(this_01,(uint)section.handle,&plen,false);\n            *(uchar **)section.shndx = puVar2;\n            *section_contents_ptr = (uchar *)plen;\n            return LDPS_OK;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }\n      lVar3 = LDPS_BAD_HANDLE;\n    }" else (compound_statement "{\n      this_01 = Plugin_manager::get_elf_object(this_00,this);\n      if (this_01 != (Object *)0x0) {\n        if (this_01->input_file_ != (Input_file *)0x0) {\n          bVar1 = File_read::is_locked(&this_01->input_file_->file_);\n          if (bVar1) {\n            puVar2 = Object::section_contents(this_01,(uint)section.handle,&plen,false);\n            *(uchar **)section.shndx = puVar2;\n            *section_contents_ptr = (uchar *)plen;\n            return LDPS_OK;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }\n      lVar3 = LDPS_BAD_HANDLE;\n    }" { (ERROR "this_01 = Plugin_manager::" (assignment_expression "this_01 = 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 (this_01 != (Object *)0x0) {\n        if (this_01->input_file_ != (Input_file *)0x0) {\n          bVar1 = File_read::is_locked(&this_01->input_file_->file_);\n          if (bVar1) {\n            puVar2 = Object::section_contents(this_01,(uint)section.handle,&plen,false);\n            *(uchar **)section.shndx = puVar2;\n            *section_contents_ptr = (uchar *)plen;\n            return LDPS_OK;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }" if (parenthesized_expression "(this_01 != (Object *)0x0)" ( (binary_expression "this_01 != (Object *)0x0" identifier != (cast_expression "(Object *)0x0" ( (type_descriptor "Object *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        if (this_01->input_file_ != (Input_file *)0x0) {\n          bVar1 = File_read::is_locked(&this_01->input_file_->file_);\n          if (bVar1) {\n            puVar2 = Object::section_contents(this_01,(uint)section.handle,&plen,false);\n            *(uchar **)section.shndx = puVar2;\n            *section_contents_ptr = (uchar *)plen;\n            return LDPS_OK;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }" { (if_statement "if (this_01->input_file_ != (Input_file *)0x0) {\n          bVar1 = File_read::is_locked(&this_01->input_file_->file_);\n          if (bVar1) {\n            puVar2 = Object::section_contents(this_01,(uint)section.handle,&plen,false);\n            *(uchar **)section.shndx = puVar2;\n            *section_contents_ptr = (uchar *)plen;\n            return LDPS_OK;\n          }\n        }" if (parenthesized_expression "(this_01->input_file_ != (Input_file *)0x0)" ( (binary_expression "this_01->input_file_ != (Input_file *)0x0" (field_expression "this_01->input_file_" identifier -> field_identifier) != (cast_expression "(Input_file *)0x0" ( (type_descriptor "Input_file *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          bVar1 = File_read::is_locked(&this_01->input_file_->file_);\n          if (bVar1) {\n            puVar2 = Object::section_contents(this_01,(uint)section.handle,&plen,false);\n            *(uchar **)section.shndx = puVar2;\n            *section_contents_ptr = (uchar *)plen;\n            return LDPS_OK;\n          }\n        }" { (ERROR "bVar1 = File_read::" (assignment_expression "bVar1 = File_read" identifier = identifier) : :) (expression_statement "is_locked(&this_01->input_file_->file_);" (call_expression "is_locked(&this_01->input_file_->file_)" identifier (argument_list "(&this_01->input_file_->file_)" ( (pointer_expression "&this_01->input_file_->file_" & (field_expression "this_01->input_file_->file_" (field_expression "this_01->input_file_" identifier -> field_identifier) -> field_identifier)) ))) ;) (if_statement "if (bVar1) {\n            puVar2 = Object::section_contents(this_01,(uint)section.handle,&plen,false);\n            *(uchar **)section.shndx = puVar2;\n            *section_contents_ptr = (uchar *)plen;\n            return LDPS_OK;\n          }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n            puVar2 = Object::section_contents(this_01,(uint)section.handle,&plen,false);\n            *(uchar **)section.shndx = puVar2;\n            *section_contents_ptr = (uchar *)plen;\n            return LDPS_OK;\n          }" { (ERROR "puVar2 = Object::" (assignment_expression "puVar2 = Object" identifier = identifier) : :) (expression_statement "section_contents(this_01,(uint)section.handle,&plen,false);" (call_expression "section_contents(this_01,(uint)section.handle,&plen,false)" identifier (argument_list "(this_01,(uint)section.handle,&plen,false)" ( identifier , (cast_expression "(uint)section.handle" ( (type_descriptor "uint" type_identifier) ) (field_expression "section.handle" identifier . field_identifier)) , (pointer_expression "&plen" & identifier) , false ))) ;) (expression_statement "*(uchar **)section.shndx = puVar2;" (assignment_expression "*(uchar **)section.shndx = puVar2" (pointer_expression "*(uchar **)section.shndx" * (cast_expression "(uchar **)section.shndx" ( (type_descriptor "uchar **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (field_expression "section.shndx" identifier . field_identifier))) = identifier) ;) (expression_statement "*section_contents_ptr = (uchar *)plen;" (assignment_expression "*section_contents_ptr = (uchar *)plen" (pointer_expression "*section_contents_ptr" * identifier) = (cast_expression "(uchar *)plen" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (return_statement "return LDPS_OK;" return identifier ;) })) })) comment (expression_statement "do_gold_unreachable("../../gold/plugin.cc",0x805,"get_input_section_contents");" (call_expression "do_gold_unreachable("../../gold/plugin.cc",0x805,"get_input_section_contents")" identifier (argument_list "("../../gold/plugin.cc",0x805,"get_input_section_contents")" ( (string_literal ""../../gold/plugin.cc"" " string_content ") , number_literal , (string_literal ""get_input_section_contents"" " string_content ") ))) ;) })) (expression_statement "lVar3 = LDPS_BAD_HANDLE;" (assignment_expression "lVar3 = LDPS_BAD_HANDLE" identifier = identifier) ;) }))) (return_statement "return lVar3;" return identifier ;) })) comment (expression_statement "do_gold_unreachable("../../gold/plugin.cc",0x7f9,"get_input_section_contents");" (call_expression "do_gold_unreachable("../../gold/plugin.cc",0x7f9,"get_input_section_contents")" identifier (argument_list "("../../gold/plugin.cc",0x7f9,"get_input_section_contents")" ( (string_literal ""../../gold/plugin.cc"" " string_content ") , number_literal , (string_literal ""get_input_section_contents"" " string_content ") ))) ;) })))
(translation_unit "undefined4\nFUN_0014e9a0(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  char cVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 local_10;\n  \n  local_10 = 0x14e9a8;\n  if (*(int *)(DAT_003af408 + 8) == 0) {\n                    \n    FUN_0007d010("../../gold/parameters.h",0x5c,"options",param_1);\n  }\n  iVar2 = *(int *)(*(int *)(DAT_003af408 + 8) + 0x593c);\n  if (iVar2 != 0) {\n    if (*(char *)(iVar2 + 99) == '\0') {\n      uVar3 = 3;\n    }\n    else {\n      iVar2 = FUN_0014e7f0(iVar2,param_1);\n      if (iVar2 != 0) {\n        if (*(int *)(iVar2 + 0x1c) != 0) {\n          cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);\n          if (cVar1 != '\0') {\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }\n        }\n                    \n        FUN_0007d010("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }\n      uVar3 = 2;\n    }\n    return uVar3;\n  }\n                    \n  FUN_0007d010("../../gold/plugin.cc",0x7f9,"get_input_section_contents",0);\n}\n\n" (function_definition "undefined4\nFUN_0014e9a0(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  char cVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 local_10;\n  \n  local_10 = 0x14e9a8;\n  if (*(int *)(DAT_003af408 + 8) == 0) {\n                    \n    FUN_0007d010("../../gold/parameters.h",0x5c,"options",param_1);\n  }\n  iVar2 = *(int *)(*(int *)(DAT_003af408 + 8) + 0x593c);\n  if (iVar2 != 0) {\n    if (*(char *)(iVar2 + 99) == '\0') {\n      uVar3 = 3;\n    }\n    else {\n      iVar2 = FUN_0014e7f0(iVar2,param_1);\n      if (iVar2 != 0) {\n        if (*(int *)(iVar2 + 0x1c) != 0) {\n          cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);\n          if (cVar1 != '\0') {\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }\n        }\n                    \n        FUN_0007d010("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }\n      uVar3 = 2;\n    }\n    return uVar3;\n  }\n                    \n  FUN_0007d010("../../gold/plugin.cc",0x7f9,"get_input_section_contents",0);\n}" type_identifier (function_declarator "FUN_0014e9a0(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 *param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 *param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 local_10;\n  \n  local_10 = 0x14e9a8;\n  if (*(int *)(DAT_003af408 + 8) == 0) {\n                    \n    FUN_0007d010("../../gold/parameters.h",0x5c,"options",param_1);\n  }\n  iVar2 = *(int *)(*(int *)(DAT_003af408 + 8) + 0x593c);\n  if (iVar2 != 0) {\n    if (*(char *)(iVar2 + 99) == '\0') {\n      uVar3 = 3;\n    }\n    else {\n      iVar2 = FUN_0014e7f0(iVar2,param_1);\n      if (iVar2 != 0) {\n        if (*(int *)(iVar2 + 0x1c) != 0) {\n          cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);\n          if (cVar1 != '\0') {\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }\n        }\n                    \n        FUN_0007d010("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }\n      uVar3 = 2;\n    }\n    return uVar3;\n  }\n                    \n  FUN_0007d010("../../gold/plugin.cc",0x7f9,"get_input_section_contents",0);\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 local_10;" type_identifier identifier ;) (expression_statement "local_10 = 0x14e9a8;" (assignment_expression "local_10 = 0x14e9a8" identifier = number_literal) ;) (if_statement "if (*(int *)(DAT_003af408 + 8) == 0) {\n                    \n    FUN_0007d010("../../gold/parameters.h",0x5c,"options",param_1);\n  }" if (parenthesized_expression "(*(int *)(DAT_003af408 + 8) == 0)" ( (binary_expression "*(int *)(DAT_003af408 + 8) == 0" (pointer_expression "*(int *)(DAT_003af408 + 8)" * (cast_expression "(int *)(DAT_003af408 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_003af408 + 8)" ( (binary_expression "DAT_003af408 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    \n    FUN_0007d010("../../gold/parameters.h",0x5c,"options",param_1);\n  }" { (expression_statement "FUN_0007d010("../../gold/parameters.h",0x5c,"options",param_1);" (call_expression "FUN_0007d010("../../gold/parameters.h",0x5c,"options",param_1)" identifier (argument_list "("../../gold/parameters.h",0x5c,"options",param_1)" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""options"" " string_content ") , identifier ))) ;) })) (expression_statement "iVar2 = *(int *)(*(int *)(DAT_003af408 + 8) + 0x593c);" (assignment_expression "iVar2 = *(int *)(*(int *)(DAT_003af408 + 8) + 0x593c)" identifier = (pointer_expression "*(int *)(*(int *)(DAT_003af408 + 8) + 0x593c)" * (cast_expression "(int *)(*(int *)(DAT_003af408 + 8) + 0x593c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_003af408 + 8) + 0x593c)" ( (binary_expression "*(int *)(DAT_003af408 + 8) + 0x593c" (pointer_expression "*(int *)(DAT_003af408 + 8)" * (cast_expression "(int *)(DAT_003af408 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_003af408 + 8)" ( (binary_expression "DAT_003af408 + 8" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (iVar2 != 0) {\n    if (*(char *)(iVar2 + 99) == '\0') {\n      uVar3 = 3;\n    }\n    else {\n      iVar2 = FUN_0014e7f0(iVar2,param_1);\n      if (iVar2 != 0) {\n        if (*(int *)(iVar2 + 0x1c) != 0) {\n          cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);\n          if (cVar1 != '\0') {\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }\n        }\n                    \n        FUN_0007d010("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }\n      uVar3 = 2;\n    }\n    return uVar3;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(char *)(iVar2 + 99) == '\0') {\n      uVar3 = 3;\n    }\n    else {\n      iVar2 = FUN_0014e7f0(iVar2,param_1);\n      if (iVar2 != 0) {\n        if (*(int *)(iVar2 + 0x1c) != 0) {\n          cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);\n          if (cVar1 != '\0') {\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }\n        }\n                    \n        FUN_0007d010("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }\n      uVar3 = 2;\n    }\n    return uVar3;\n  }" { (if_statement "if (*(char *)(iVar2 + 99) == '\0') {\n      uVar3 = 3;\n    }\n    else {\n      iVar2 = FUN_0014e7f0(iVar2,param_1);\n      if (iVar2 != 0) {\n        if (*(int *)(iVar2 + 0x1c) != 0) {\n          cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);\n          if (cVar1 != '\0') {\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }\n        }\n                    \n        FUN_0007d010("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }\n      uVar3 = 2;\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      uVar3 = 3;\n    }" { (expression_statement "uVar3 = 3;" (assignment_expression "uVar3 = 3" identifier = number_literal) ;) }) (else_clause "else {\n      iVar2 = FUN_0014e7f0(iVar2,param_1);\n      if (iVar2 != 0) {\n        if (*(int *)(iVar2 + 0x1c) != 0) {\n          cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);\n          if (cVar1 != '\0') {\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }\n        }\n                    \n        FUN_0007d010("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }\n      uVar3 = 2;\n    }" else (compound_statement "{\n      iVar2 = FUN_0014e7f0(iVar2,param_1);\n      if (iVar2 != 0) {\n        if (*(int *)(iVar2 + 0x1c) != 0) {\n          cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);\n          if (cVar1 != '\0') {\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }\n        }\n                    \n        FUN_0007d010("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }\n      uVar3 = 2;\n    }" { (expression_statement "iVar2 = FUN_0014e7f0(iVar2,param_1);" (assignment_expression "iVar2 = FUN_0014e7f0(iVar2,param_1)" identifier = (call_expression "FUN_0014e7f0(iVar2,param_1)" identifier (argument_list "(iVar2,param_1)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n        if (*(int *)(iVar2 + 0x1c) != 0) {\n          cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);\n          if (cVar1 != '\0') {\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }\n        }\n                    \n        FUN_0007d010("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        if (*(int *)(iVar2 + 0x1c) != 0) {\n          cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);\n          if (cVar1 != '\0') {\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }\n        }\n                    \n        FUN_0007d010("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }" { (if_statement "if (*(int *)(iVar2 + 0x1c) != 0) {\n          cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);\n          if (cVar1 != '\0') {\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }\n        }" if (parenthesized_expression "(*(int *)(iVar2 + 0x1c) != 0)" ( (binary_expression "*(int *)(iVar2 + 0x1c) != 0" (pointer_expression "*(int *)(iVar2 + 0x1c)" * (cast_expression "(int *)(iVar2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x1c)" ( (binary_expression "iVar2 + 0x1c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n          cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);\n          if (cVar1 != '\0') {\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }\n        }" { (expression_statement "cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);" (assignment_expression "cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c)" identifier = (call_expression "FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c)" identifier (argument_list "(*(int *)(iVar2 + 0x1c) + 0x1c)" ( (binary_expression "*(int *)(iVar2 + 0x1c) + 0x1c" (pointer_expression "*(int *)(iVar2 + 0x1c)" * (cast_expression "(int *)(iVar2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x1c)" ( (binary_expression "iVar2 + 0x1c" identifier + number_literal) )))) + number_literal) )))) ;) (if_statement "if (cVar1 != '\0') {\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }" { (expression_statement "uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);" (assignment_expression "uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0)" identifier = (call_expression "FUN_000c61d0(iVar2,param_2,&local_10,0)" identifier (argument_list "(iVar2,param_2,&local_10,0)" ( identifier , identifier , (pointer_expression "&local_10" & identifier) , number_literal )))) ;) (expression_statement "*param_3 = uVar3;" (assignment_expression "*param_3 = uVar3" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "*param_4 = local_10;" (assignment_expression "*param_4 = local_10" (pointer_expression "*param_4" * identifier) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "FUN_0007d010("../../gold/plugin.cc",0x805,"get_input_section_contents");" (call_expression "FUN_0007d010("../../gold/plugin.cc",0x805,"get_input_section_contents")" identifier (argument_list "("../../gold/plugin.cc",0x805,"get_input_section_contents")" ( (string_literal ""../../gold/plugin.cc"" " string_content ") , number_literal , (string_literal ""get_input_section_contents"" " string_content ") ))) ;) })) (expression_statement "uVar3 = 2;" (assignment_expression "uVar3 = 2" identifier = number_literal) ;) }))) (return_statement "return uVar3;" return identifier ;) })) (expression_statement "FUN_0007d010("../../gold/plugin.cc",0x7f9,"get_input_section_contents",0);" (call_expression "FUN_0007d010("../../gold/plugin.cc",0x7f9,"get_input_section_contents",0)" identifier (argument_list "("../../gold/plugin.cc",0x7f9,"get_input_section_contents",0)" ( (string_literal ""../../gold/plugin.cc"" " string_content ") , number_literal , (string_literal ""get_input_section_contents"" " string_content ") , number_literal ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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) )))) == 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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (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 = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression & IDENT) , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return LIT ;) })) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (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 ") , LIT ))) ;) })))
(function_definition "undefined4\nFUN_0014e9a0(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  char cVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 local_10;\n  \n  local_10 = 0x14e9a8;\n  if (*(int *)(DAT_003af408 + 8) == 0) {\n                    \n    FUN_0007d010("../../gold/parameters.h",0x5c,"options",param_1);\n  }\n  iVar2 = *(int *)(*(int *)(DAT_003af408 + 8) + 0x593c);\n  if (iVar2 != 0) {\n    if (*(char *)(iVar2 + 99) == '\0') {\n      uVar3 = 3;\n    }\n    else {\n      iVar2 = FUN_0014e7f0(iVar2,param_1);\n      if (iVar2 != 0) {\n        if (*(int *)(iVar2 + 0x1c) != 0) {\n          cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);\n          if (cVar1 != '\0') {\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }\n        }\n                    \n        FUN_0007d010("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }\n      uVar3 = 2;\n    }\n    return uVar3;\n  }\n                    \n  FUN_0007d010("../../gold/plugin.cc",0x7f9,"get_input_section_contents",0);\n}" (type_identifier "undefined4") (function_declarator "FUN_0014e9a0(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 *param_4)" (identifier "FUN_0014e9a0") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 *param_4)" (( "(") (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") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 local_10;\n  \n  local_10 = 0x14e9a8;\n  if (*(int *)(DAT_003af408 + 8) == 0) {\n                    \n    FUN_0007d010("../../gold/parameters.h",0x5c,"options",param_1);\n  }\n  iVar2 = *(int *)(*(int *)(DAT_003af408 + 8) + 0x593c);\n  if (iVar2 != 0) {\n    if (*(char *)(iVar2 + 99) == '\0') {\n      uVar3 = 3;\n    }\n    else {\n      iVar2 = FUN_0014e7f0(iVar2,param_1);\n      if (iVar2 != 0) {\n        if (*(int *)(iVar2 + 0x1c) != 0) {\n          cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);\n          if (cVar1 != '\0') {\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }\n        }\n                    \n        FUN_0007d010("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }\n      uVar3 = 2;\n    }\n    return uVar3;\n  }\n                    \n  FUN_0007d010("../../gold/plugin.cc",0x7f9,"get_input_section_contents",0);\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined4 local_10;" (type_identifier "undefined4") (identifier "local_10") (; ";")) (expression_statement "local_10 = 0x14e9a8;" (assignment_expression "local_10 = 0x14e9a8" (identifier "local_10") (= "=") (number_literal "0x14e9a8")) (; ";")) (if_statement "if (*(int *)(DAT_003af408 + 8) == 0) {\n                    \n    FUN_0007d010("../../gold/parameters.h",0x5c,"options",param_1);\n  }" (if "if") (parenthesized_expression "(*(int *)(DAT_003af408 + 8) == 0)" (( "(") (binary_expression "*(int *)(DAT_003af408 + 8) == 0" (pointer_expression "*(int *)(DAT_003af408 + 8)" (* "*") (cast_expression "(int *)(DAT_003af408 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_003af408 + 8)" (( "(") (binary_expression "DAT_003af408 + 8" (identifier "DAT_003af408") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    FUN_0007d010("../../gold/parameters.h",0x5c,"options",param_1);\n  }" ({ "{") (expression_statement "FUN_0007d010("../../gold/parameters.h",0x5c,"options",param_1);" (call_expression "FUN_0007d010("../../gold/parameters.h",0x5c,"options",param_1)" (identifier "FUN_0007d010") (argument_list "("../../gold/parameters.h",0x5c,"options",param_1)" (( "(") (string_literal ""../../gold/parameters.h"" (" """) (string_content "../../gold/parameters.h") (" """)) (, ",") (number_literal "0x5c") (, ",") (string_literal ""options"" (" """) (string_content "options") (" """)) (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar2 = *(int *)(*(int *)(DAT_003af408 + 8) + 0x593c);" (assignment_expression "iVar2 = *(int *)(*(int *)(DAT_003af408 + 8) + 0x593c)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(*(int *)(DAT_003af408 + 8) + 0x593c)" (* "*") (cast_expression "(int *)(*(int *)(DAT_003af408 + 8) + 0x593c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(DAT_003af408 + 8) + 0x593c)" (( "(") (binary_expression "*(int *)(DAT_003af408 + 8) + 0x593c" (pointer_expression "*(int *)(DAT_003af408 + 8)" (* "*") (cast_expression "(int *)(DAT_003af408 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_003af408 + 8)" (( "(") (binary_expression "DAT_003af408 + 8" (identifier "DAT_003af408") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "0x593c")) () ")"))))) (; ";")) (if_statement "if (iVar2 != 0) {\n    if (*(char *)(iVar2 + 99) == '\0') {\n      uVar3 = 3;\n    }\n    else {\n      iVar2 = FUN_0014e7f0(iVar2,param_1);\n      if (iVar2 != 0) {\n        if (*(int *)(iVar2 + 0x1c) != 0) {\n          cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);\n          if (cVar1 != '\0') {\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }\n        }\n                    \n        FUN_0007d010("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }\n      uVar3 = 2;\n    }\n    return uVar3;\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (*(char *)(iVar2 + 99) == '\0') {\n      uVar3 = 3;\n    }\n    else {\n      iVar2 = FUN_0014e7f0(iVar2,param_1);\n      if (iVar2 != 0) {\n        if (*(int *)(iVar2 + 0x1c) != 0) {\n          cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);\n          if (cVar1 != '\0') {\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }\n        }\n                    \n        FUN_0007d010("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }\n      uVar3 = 2;\n    }\n    return uVar3;\n  }" ({ "{") (if_statement "if (*(char *)(iVar2 + 99) == '\0') {\n      uVar3 = 3;\n    }\n    else {\n      iVar2 = FUN_0014e7f0(iVar2,param_1);\n      if (iVar2 != 0) {\n        if (*(int *)(iVar2 + 0x1c) != 0) {\n          cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);\n          if (cVar1 != '\0') {\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }\n        }\n                    \n        FUN_0007d010("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }\n      uVar3 = 2;\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      uVar3 = 3;\n    }" ({ "{") (expression_statement "uVar3 = 3;" (assignment_expression "uVar3 = 3" (identifier "uVar3") (= "=") (number_literal "3")) (; ";")) (} "}")) (else_clause "else {\n      iVar2 = FUN_0014e7f0(iVar2,param_1);\n      if (iVar2 != 0) {\n        if (*(int *)(iVar2 + 0x1c) != 0) {\n          cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);\n          if (cVar1 != '\0') {\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }\n        }\n                    \n        FUN_0007d010("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }\n      uVar3 = 2;\n    }" (else "else") (compound_statement "{\n      iVar2 = FUN_0014e7f0(iVar2,param_1);\n      if (iVar2 != 0) {\n        if (*(int *)(iVar2 + 0x1c) != 0) {\n          cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);\n          if (cVar1 != '\0') {\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }\n        }\n                    \n        FUN_0007d010("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }\n      uVar3 = 2;\n    }" ({ "{") (expression_statement "iVar2 = FUN_0014e7f0(iVar2,param_1);" (assignment_expression "iVar2 = FUN_0014e7f0(iVar2,param_1)" (identifier "iVar2") (= "=") (call_expression "FUN_0014e7f0(iVar2,param_1)" (identifier "FUN_0014e7f0") (argument_list "(iVar2,param_1)" (( "(") (identifier "iVar2") (, ",") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n        if (*(int *)(iVar2 + 0x1c) != 0) {\n          cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);\n          if (cVar1 != '\0') {\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }\n        }\n                    \n        FUN_0007d010("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        if (*(int *)(iVar2 + 0x1c) != 0) {\n          cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);\n          if (cVar1 != '\0') {\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }\n        }\n                    \n        FUN_0007d010("../../gold/plugin.cc",0x805,"get_input_section_contents");\n      }" ({ "{") (if_statement "if (*(int *)(iVar2 + 0x1c) != 0) {\n          cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);\n          if (cVar1 != '\0') {\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }\n        }" (if "if") (parenthesized_expression "(*(int *)(iVar2 + 0x1c) != 0)" (( "(") (binary_expression "*(int *)(iVar2 + 0x1c) != 0" (pointer_expression "*(int *)(iVar2 + 0x1c)" (* "*") (cast_expression "(int *)(iVar2 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x1c)" (( "(") (binary_expression "iVar2 + 0x1c" (identifier "iVar2") (+ "+") (number_literal "0x1c")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);\n          if (cVar1 != '\0') {\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }\n        }" ({ "{") (expression_statement "cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);" (assignment_expression "cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c)" (identifier "cVar1") (= "=") (call_expression "FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c)" (identifier "FUN_000753a0") (argument_list "(*(int *)(iVar2 + 0x1c) + 0x1c)" (( "(") (binary_expression "*(int *)(iVar2 + 0x1c) + 0x1c" (pointer_expression "*(int *)(iVar2 + 0x1c)" (* "*") (cast_expression "(int *)(iVar2 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x1c)" (( "(") (binary_expression "iVar2 + 0x1c" (identifier "iVar2") (+ "+") (number_literal "0x1c")) () ")")))) (+ "+") (number_literal "0x1c")) () ")")))) (; ";")) (if_statement "if (cVar1 != '\0') {\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }" (if "if") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);\n            *param_3 = uVar3;\n            *param_4 = local_10;\n            return 0;\n          }" ({ "{") (expression_statement "uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);" (assignment_expression "uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0)" (identifier "uVar3") (= "=") (call_expression "FUN_000c61d0(iVar2,param_2,&local_10,0)" (identifier "FUN_000c61d0") (argument_list "(iVar2,param_2,&local_10,0)" (( "(") (identifier "iVar2") (, ",") (identifier "param_2") (, ",") (pointer_expression "&local_10" (& "&") (identifier "local_10")) (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "*param_3 = uVar3;" (assignment_expression "*param_3 = uVar3" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "*param_4 = local_10;" (assignment_expression "*param_4 = local_10" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "local_10")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}"))) (expression_statement "FUN_0007d010("../../gold/plugin.cc",0x805,"get_input_section_contents");" (call_expression "FUN_0007d010("../../gold/plugin.cc",0x805,"get_input_section_contents")" (identifier "FUN_0007d010") (argument_list "("../../gold/plugin.cc",0x805,"get_input_section_contents")" (( "(") (string_literal ""../../gold/plugin.cc"" (" """) (string_content "../../gold/plugin.cc") (" """)) (, ",") (number_literal "0x805") (, ",") (string_literal ""get_input_section_contents"" (" """) (string_content "get_input_section_contents") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "uVar3 = 2;" (assignment_expression "uVar3 = 2" (identifier "uVar3") (= "=") (number_literal "2")) (; ";")) (} "}")))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (expression_statement "FUN_0007d010("../../gold/plugin.cc",0x7f9,"get_input_section_contents",0);" (call_expression "FUN_0007d010("../../gold/plugin.cc",0x7f9,"get_input_section_contents",0)" (identifier "FUN_0007d010") (argument_list "("../../gold/plugin.cc",0x7f9,"get_input_section_contents",0)" (( "(") (string_literal ""../../gold/plugin.cc"" (" """) (string_content "../../gold/plugin.cc") (" """)) (, ",") (number_literal "0x7f9") (, ",") (string_literal ""get_input_section_contents"" (" """) (string_content "get_input_section_contents") (" """)) (, ",") (number_literal "0") () ")"))) (; ";")) (} "}")))

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

type_1 __thiscall
type_2::function_1
          (type_2 *this,type_3 section,type_4 **section_contents_ptr,size_t *len)

{
  type_5 *var_2;
  bool bVar1;
  type_6 *var_4;
  type_4 *puVar2;
  type_1 lVar3;
  type_7 plen;
  
  plen = 0x14e9a8;
  if (parameters->options_ == (type_8 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_1("../../gold/parameters.h",0x5c,"options");
  }
  var_2 = parameters->options_->plugins_;
  if (var_2 != (type_5 *)0x0) {
    if (var_2->in_claim_file_handler_ == false) {
      lVar3 = LDPS_ERR;
    }
    else {
      var_4 = type_5::var_3(var_2,this);
      if (var_4 != (type_6 *)0x0) {
        if (var_4->input_file_ != (type_9 *)0x0) {
          bVar1 = File_read::var_5(&var_4->input_file_->file_);
          if (bVar1) {
            puVar2 = type_6::var_6(var_4,(type_10)section.handle,&plen,false);
            *(type_4 **)section.shndx = puVar2;
            *section_contents_ptr = (type_4 *)plen;
            return LDPS_OK;
          }
        }
                    /* WARNING: Subroutine does not return */
        var_1("../../gold/plugin.cc",0x805,"get_input_section_contents");
      }
      lVar3 = LDPS_BAD_HANDLE;
    }
    return lVar3;
  }
                    /* WARNING: Subroutine does not return */
  var_1("../../gold/plugin.cc",0x7f9,"get_input_section_contents");
}


(translation_unit (function_definition type: (type_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: (pointer_declarator 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: (type_identifier) declarator: (identifier)) (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: (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: (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (pointer_expression argument: (identifier)) (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (string_literal (string_content))))))) (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)) (number_literal)))))))

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

undefined4
MASKED(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 *param_4)

{
  char cVar1;
  int iVar2;
  undefined4 uVar3;
  undefined4 local_10;
  
  local_10 = 0x14e9a8;
  if (*(int *)(DAT_003af408 + 8) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0007d010("../../gold/parameters.h",0x5c,"options",param_1);
  }
  iVar2 = *(int *)(*(int *)(DAT_003af408 + 8) + 0x593c);
  if (iVar2 != 0) {
    if (*(char *)(iVar2 + 99) == '\0') {
      uVar3 = 3;
    }
    else {
      iVar2 = FUN_0014e7f0(iVar2,param_1);
      if (iVar2 != 0) {
        if (*(int *)(iVar2 + 0x1c) != 0) {
          cVar1 = FUN_000753a0(*(int *)(iVar2 + 0x1c) + 0x1c);
          if (cVar1 != '\0') {
            uVar3 = FUN_000c61d0(iVar2,param_2,&local_10,0);
            *param_3 = uVar3;
            *param_4 = local_10;
            return 0;
          }
        }
                    /* WARNING: Subroutine does not return */
        FUN_0007d010("../../gold/plugin.cc",0x805,"get_input_section_contents");
      }
      uVar3 = 2;
    }
    return uVar3;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0007d010("../../gold/plugin.cc",0x7f9,"get_input_section_contents",0);
}

