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

ld_plugin_status gold::get_input_section_name(ld_plugin_section section,char **section_name_ptr)

{
  Plugin_manager *this;
  bool bVar1;
  Object *pOVar2;
  void *__dest;
  ld_plugin_status lVar3;
  undefined1 *local_28;
  string section_name;
  
  section_name.field_2._12_4_ = 0xf06c8;
  if (parameters->options_ == (General_options *)0x0) {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");
  }
  this = parameters->options_->plugins_;
  if (this != (Plugin_manager *)0x0) {
    if (this->in_claim_file_handler_ == false) {
      lVar3 = LDPS_ERR;
    }
    else {
      pOVar2 = Plugin_manager::get_elf_object(this,section.handle);
      if (pOVar2 != (Object *)0x0) {
        if (pOVar2->input_file_ != (Input_file *)0x0) {
          bVar1 = File_read::is_locked(&pOVar2->input_file_->file_);
          if (bVar1) {
            (*pOVar2->_vptr_Object[0x10])(&section_name,pOVar2,section.shndx);
            __dest = malloc((size_t)(section_name._M_dataplus._M_p + 1));
            *(void **)section.shndx = __dest;
            memcpy(__dest,local_28,(size_t)(section_name._M_dataplus._M_p + 1));
            if ((size_type *)local_28 != &section_name._M_string_length) {
              operator_delete(local_28);
            }
            return LDPS_OK;
          }
        }
                    /* WARNING: Subroutine does not return */
        do_gold_unreachable("../../gold/plugin.cc",0x7e8,"get_input_section_name");
      }
      lVar3 = LDPS_BAD_HANDLE;
    }
    return lVar3;
  }
                    /* WARNING: Subroutine does not return */
  do_gold_unreachable("../../gold/plugin.cc",0x7dc,"get_input_section_name");
}



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

undefined4 FUN_000f06c0(undefined4 param_1,undefined4 *param_2)

{
  int iVar1;
  char cVar2;
  int *piVar3;
  void *__dest;
  undefined4 uVar4;
  undefined1 *local_28;
  int local_24;
  undefined1 local_20 [16];
  undefined4 uStack_10;
  
  uStack_10 = 0xf06c8;
  if (*(int *)(DAT_00302378 + 8) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_1);
  }
  iVar1 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x593c);
  if (iVar1 != 0) {
    if (*(char *)(iVar1 + 99) == '\0') {
      uVar4 = 3;
    }
    else {
      piVar3 = (int *)FUN_000f0130(iVar1,param_1);
      if (piVar3 != (int *)0x0) {
        if (piVar3[7] != 0) {
          cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);
          if (cVar2 != '\0') {
            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);
            __dest = malloc(local_24 + 1U);
            *param_2 = __dest;
            memcpy(__dest,local_28,local_24 + 1U);
            if (local_28 != local_20) {
              FUN_001807a0(local_28);
            }
            return 0;
          }
        }
                    /* WARNING: Subroutine does not return */
        FUN_0005f0b0("../../gold/plugin.cc",0x7e8,"get_input_section_name");
      }
      uVar4 = 2;
    }
    return uVar4;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0005f0b0("../../gold/plugin.cc",0x7dc,"get_input_section_name",0);
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00032730
ADD EBX,0x211938
SUB ESP,0x20
MOV EDX,dword ptr [ESP + 0x30]
MOV ESI,dword ptr [ESP + 0x34]
LEA EAX,[EBX + 0x378]
MOV EAX,dword ptr [EAX]
MOV EAX,dword ptr [EAX + 0x8]
TEST EAX,EAX
JZ 0x000f07c7
MOV EAX,dword ptr [EAX + 0x593c]
TEST EAX,EAX
JZ 0x000f07dd
CMP byte ptr [EAX + 0x63],0x0
JZ 0x000f07b0
SUB ESP,0x8
PUSH EDX
PUSH EAX
CALL 0x000f0130
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JZ 0x000f07c0
MOV EAX,dword ptr [EAX + 0x1c]
TEST EAX,EAX
JZ 0x000f0790
SUB ESP,0xc
ADD EAX,0x1c
PUSH EAX
CALL 0x0005bde0
ADD ESP,0x10
TEST AL,AL
JZ 0x000f0790
MOV EAX,dword ptr [EDI]
LEA EDX,[ESP + 0x8]
SUB ESP,0x4
PUSH ESI
PUSH EDI
PUSH EDX
CALL dword ptr [EAX + 0x40]
MOV EAX,dword ptr [ESP + 0x18]
LEA ESI,[EAX + 0x1]
PUSH ESI
CALL 0x000267a0
MOV EDX,dword ptr [ESP + 0x48]
MOV EDI,dword ptr [ESP + 0x18]
ADD ESP,0xc
MOV dword ptr [EDX],EAX
PUSH ESI
PUSH EDI
PUSH EAX
CALL 0x000265c0
LEA EAX,[ESP + 0x20]
ADD ESP,0x10
CMP EDI,EAX
JZ 0x000f077d
SUB ESP,0xc
PUSH EDI
CALL 0x001807a0
ADD ESP,0x10
ADD ESP,0x20
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xfff2ade8]
PUSH EAX
LEA EAX,[EBX + 0xfff2a724]
PUSH 0x7e8
PUSH EAX
CALL 0x0005f0b0
MOV EAX,0x3
ADD ESP,0x20
POP EBX
POP ESI
POP EDI
RET
MOV EAX,0x2
JMP 0x000f07b5
LEA EAX,[EBX + 0xfff2ac3c]
PUSH EDX
PUSH EAX
LEA EAX,[EBX + 0xfff1e970]
PUSH 0x5c
PUSH EAX
CALL 0x0005f0b0
PUSH EAX
LEA EAX,[EBX + 0xfff2ade8]
PUSH EAX
LEA EAX,[EBX + 0xfff2a724]
PUSH 0x7dc
PUSH EAX
CALL 0x0005f0b0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_000f06c0(undefined4 param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  char cVar2;\n  int *piVar3;\n  void *__dest;\n  undefined4 uVar4;\n  undefined1 *local_28;\n  int local_24;\n  undefined1 local_20 [16];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0xf06c8;\n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_1);\n  }\n  iVar1 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x593c);\n  if (iVar1 != 0) {\n    if (*(char *)(iVar1 + 99) == '\0') {\n      uVar4 = 3;\n    }\n    else {\n      piVar3 = (int *)FUN_000f0130(iVar1,param_1);\n      if (piVar3 != (int *)0x0) {\n        if (piVar3[7] != 0) {\n          cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);\n          if (cVar2 != '\0') {\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_0005f0b0("../../gold/plugin.cc",0x7e8,"get_input_section_name");\n      }\n      uVar4 = 2;\n    }\n    return uVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0005f0b0("../../gold/plugin.cc",0x7dc,"get_input_section_name",0);\n}\n\n" comment (function_definition "undefined4 FUN_000f06c0(undefined4 param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  char cVar2;\n  int *piVar3;\n  void *__dest;\n  undefined4 uVar4;\n  undefined1 *local_28;\n  int local_24;\n  undefined1 local_20 [16];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0xf06c8;\n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_1);\n  }\n  iVar1 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x593c);\n  if (iVar1 != 0) {\n    if (*(char *)(iVar1 + 99) == '\0') {\n      uVar4 = 3;\n    }\n    else {\n      piVar3 = (int *)FUN_000f0130(iVar1,param_1);\n      if (piVar3 != (int *)0x0) {\n        if (piVar3[7] != 0) {\n          cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);\n          if (cVar2 != '\0') {\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_0005f0b0("../../gold/plugin.cc",0x7e8,"get_input_section_name");\n      }\n      uVar4 = 2;\n    }\n    return uVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0005f0b0("../../gold/plugin.cc",0x7dc,"get_input_section_name",0);\n}" type_identifier (function_declarator "FUN_000f06c0(undefined4 param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  int *piVar3;\n  void *__dest;\n  undefined4 uVar4;\n  undefined1 *local_28;\n  int local_24;\n  undefined1 local_20 [16];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0xf06c8;\n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_1);\n  }\n  iVar1 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x593c);\n  if (iVar1 != 0) {\n    if (*(char *)(iVar1 + 99) == '\0') {\n      uVar4 = 3;\n    }\n    else {\n      piVar3 = (int *)FUN_000f0130(iVar1,param_1);\n      if (piVar3 != (int *)0x0) {\n        if (piVar3[7] != 0) {\n          cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);\n          if (cVar2 != '\0') {\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_0005f0b0("../../gold/plugin.cc",0x7e8,"get_input_section_name");\n      }\n      uVar4 = 2;\n    }\n    return uVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0005f0b0("../../gold/plugin.cc",0x7dc,"get_input_section_name",0);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined1 *local_28;" type_identifier (pointer_declarator "*local_28" * identifier) ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "undefined1 local_20 [16];" type_identifier (array_declarator "local_20 [16]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_10;" type_identifier identifier ;) (expression_statement "uStack_10 = 0xf06c8;" (assignment_expression "uStack_10 = 0xf06c8" identifier = number_literal) ;) (if_statement "if (*(int *)(DAT_00302378 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_1);\n  }" if (parenthesized_expression "(*(int *)(DAT_00302378 + 8) == 0)" ( (binary_expression "*(int *)(DAT_00302378 + 8) == 0" (pointer_expression "*(int *)(DAT_00302378 + 8)" * (cast_expression "(int *)(DAT_00302378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00302378 + 8)" ( (binary_expression "DAT_00302378 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_1);\n  }" { comment (expression_statement "FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_1);" (call_expression "FUN_0005f0b0("../../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 "iVar1 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x593c);" (assignment_expression "iVar1 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x593c)" identifier = (pointer_expression "*(int *)(*(int *)(DAT_00302378 + 8) + 0x593c)" * (cast_expression "(int *)(*(int *)(DAT_00302378 + 8) + 0x593c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_00302378 + 8) + 0x593c)" ( (binary_expression "*(int *)(DAT_00302378 + 8) + 0x593c" (pointer_expression "*(int *)(DAT_00302378 + 8)" * (cast_expression "(int *)(DAT_00302378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00302378 + 8)" ( (binary_expression "DAT_00302378 + 8" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (iVar1 != 0) {\n    if (*(char *)(iVar1 + 99) == '\0') {\n      uVar4 = 3;\n    }\n    else {\n      piVar3 = (int *)FUN_000f0130(iVar1,param_1);\n      if (piVar3 != (int *)0x0) {\n        if (piVar3[7] != 0) {\n          cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);\n          if (cVar2 != '\0') {\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_0005f0b0("../../gold/plugin.cc",0x7e8,"get_input_section_name");\n      }\n      uVar4 = 2;\n    }\n    return uVar4;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(char *)(iVar1 + 99) == '\0') {\n      uVar4 = 3;\n    }\n    else {\n      piVar3 = (int *)FUN_000f0130(iVar1,param_1);\n      if (piVar3 != (int *)0x0) {\n        if (piVar3[7] != 0) {\n          cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);\n          if (cVar2 != '\0') {\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_0005f0b0("../../gold/plugin.cc",0x7e8,"get_input_section_name");\n      }\n      uVar4 = 2;\n    }\n    return uVar4;\n  }" { (if_statement "if (*(char *)(iVar1 + 99) == '\0') {\n      uVar4 = 3;\n    }\n    else {\n      piVar3 = (int *)FUN_000f0130(iVar1,param_1);\n      if (piVar3 != (int *)0x0) {\n        if (piVar3[7] != 0) {\n          cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);\n          if (cVar2 != '\0') {\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_0005f0b0("../../gold/plugin.cc",0x7e8,"get_input_section_name");\n      }\n      uVar4 = 2;\n    }" if (parenthesized_expression "(*(char *)(iVar1 + 99) == '\0')" ( (binary_expression "*(char *)(iVar1 + 99) == '\0'" (pointer_expression "*(char *)(iVar1 + 99)" * (cast_expression "(char *)(iVar1 + 99)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 99)" ( (binary_expression "iVar1 + 99" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      uVar4 = 3;\n    }" { (expression_statement "uVar4 = 3;" (assignment_expression "uVar4 = 3" identifier = number_literal) ;) }) (else_clause "else {\n      piVar3 = (int *)FUN_000f0130(iVar1,param_1);\n      if (piVar3 != (int *)0x0) {\n        if (piVar3[7] != 0) {\n          cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);\n          if (cVar2 != '\0') {\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_0005f0b0("../../gold/plugin.cc",0x7e8,"get_input_section_name");\n      }\n      uVar4 = 2;\n    }" else (compound_statement "{\n      piVar3 = (int *)FUN_000f0130(iVar1,param_1);\n      if (piVar3 != (int *)0x0) {\n        if (piVar3[7] != 0) {\n          cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);\n          if (cVar2 != '\0') {\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_0005f0b0("../../gold/plugin.cc",0x7e8,"get_input_section_name");\n      }\n      uVar4 = 2;\n    }" { (expression_statement "piVar3 = (int *)FUN_000f0130(iVar1,param_1);" (assignment_expression "piVar3 = (int *)FUN_000f0130(iVar1,param_1)" identifier = (cast_expression "(int *)FUN_000f0130(iVar1,param_1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000f0130(iVar1,param_1)" identifier (argument_list "(iVar1,param_1)" ( identifier , identifier ))))) ;) (if_statement "if (piVar3 != (int *)0x0) {\n        if (piVar3[7] != 0) {\n          cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);\n          if (cVar2 != '\0') {\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_0005f0b0("../../gold/plugin.cc",0x7e8,"get_input_section_name");\n      }" if (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        if (piVar3[7] != 0) {\n          cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);\n          if (cVar2 != '\0') {\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_0005f0b0("../../gold/plugin.cc",0x7e8,"get_input_section_name");\n      }" { (if_statement "if (piVar3[7] != 0) {\n          cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);\n          if (cVar2 != '\0') {\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }\n        }" if (parenthesized_expression "(piVar3[7] != 0)" ( (binary_expression "piVar3[7] != 0" (subscript_expression "piVar3[7]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n          cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);\n          if (cVar2 != '\0') {\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }\n        }" { (expression_statement "cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);" (assignment_expression "cVar2 = FUN_0005bde0(piVar3[7] + 0x1c)" identifier = (call_expression "FUN_0005bde0(piVar3[7] + 0x1c)" identifier (argument_list "(piVar3[7] + 0x1c)" ( (binary_expression "piVar3[7] + 0x1c" (subscript_expression "piVar3[7]" identifier [ number_literal ]) + number_literal) )))) ;) (if_statement "if (cVar2 != '\0') {\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }" { (expression_statement "(**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);" (call_expression "(**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2)" (parenthesized_expression "(**(code **)(*piVar3 + 0x40))" ( (pointer_expression "**(code **)(*piVar3 + 0x40)" * (pointer_expression "*(code **)(*piVar3 + 0x40)" * (cast_expression "(code **)(*piVar3 + 0x40)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 0x40)" ( (binary_expression "*piVar3 + 0x40" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) (argument_list "(&local_24,piVar3,param_2)" ( (pointer_expression "&local_24" & identifier) , identifier , identifier ))) ;) (expression_statement "__dest = malloc(local_24 + 1U);" (assignment_expression "__dest = malloc(local_24 + 1U)" identifier = (call_expression "malloc(local_24 + 1U)" identifier (argument_list "(local_24 + 1U)" ( (binary_expression "local_24 + 1U" identifier + number_literal) )))) ;) (expression_statement "*param_2 = __dest;" (assignment_expression "*param_2 = __dest" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "memcpy(__dest,local_28,local_24 + 1U);" (call_expression "memcpy(__dest,local_28,local_24 + 1U)" identifier (argument_list "(__dest,local_28,local_24 + 1U)" ( identifier , identifier , (binary_expression "local_24 + 1U" identifier + number_literal) ))) ;) (if_statement "if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }" if (parenthesized_expression "(local_28 != local_20)" ( (binary_expression "local_28 != local_20" identifier != identifier) )) (compound_statement "{\n              FUN_001807a0(local_28);\n            }" { (expression_statement "FUN_001807a0(local_28);" (call_expression "FUN_001807a0(local_28)" identifier (argument_list "(local_28)" ( identifier ))) ;) })) (return_statement "return 0;" return number_literal ;) })) })) comment (expression_statement "FUN_0005f0b0("../../gold/plugin.cc",0x7e8,"get_input_section_name");" (call_expression "FUN_0005f0b0("../../gold/plugin.cc",0x7e8,"get_input_section_name")" identifier (argument_list "("../../gold/plugin.cc",0x7e8,"get_input_section_name")" ( (string_literal ""../../gold/plugin.cc"" " string_content ") , number_literal , (string_literal ""get_input_section_name"" " string_content ") ))) ;) })) (expression_statement "uVar4 = 2;" (assignment_expression "uVar4 = 2" identifier = number_literal) ;) }))) (return_statement "return uVar4;" return identifier ;) })) comment (expression_statement "FUN_0005f0b0("../../gold/plugin.cc",0x7dc,"get_input_section_name",0);" (call_expression "FUN_0005f0b0("../../gold/plugin.cc",0x7dc,"get_input_section_name",0)" identifier (argument_list "("../../gold/plugin.cc",0x7dc,"get_input_section_name",0)" ( (string_literal ""../../gold/plugin.cc"" " string_content ") , number_literal , (string_literal ""get_input_section_name"" " 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\nld_plugin_status gold::get_input_section_name(ld_plugin_section section,char **section_name_ptr)\n\n{\n  Plugin_manager *this;\n  bool bVar1;\n  Object *pOVar2;\n  void *__dest;\n  ld_plugin_status lVar3;\n  undefined1 *local_28;\n  string section_name;\n  \n  section_name.field_2._12_4_ = 0xf06c8;\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 = parameters->options_->plugins_;\n  if (this != (Plugin_manager *)0x0) {\n    if (this->in_claim_file_handler_ == false) {\n      lVar3 = LDPS_ERR;\n    }\n    else {\n      pOVar2 = Plugin_manager::get_elf_object(this,section.handle);\n      if (pOVar2 != (Object *)0x0) {\n        if (pOVar2->input_file_ != (Input_file *)0x0) {\n          bVar1 = File_read::is_locked(&pOVar2->input_file_->file_);\n          if (bVar1) {\n            (*pOVar2->_vptr_Object[0x10])(&section_name,pOVar2,section.shndx);\n            __dest = malloc((size_t)(section_name._M_dataplus._M_p + 1));\n            *(void **)section.shndx = __dest;\n            memcpy(__dest,local_28,(size_t)(section_name._M_dataplus._M_p + 1));\n            if ((size_type *)local_28 != &section_name._M_string_length) {\n              operator_delete(local_28);\n            }\n            return LDPS_OK;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/plugin.cc",0x7e8,"get_input_section_name");\n      }\n      lVar3 = LDPS_BAD_HANDLE;\n    }\n    return lVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/plugin.cc",0x7dc,"get_input_section_name");\n}\n\n" comment comment (function_definition "ld_plugin_status gold::get_input_section_name(ld_plugin_section section,char **section_name_ptr)\n\n{\n  Plugin_manager *this;\n  bool bVar1;\n  Object *pOVar2;\n  void *__dest;\n  ld_plugin_status lVar3;\n  undefined1 *local_28;\n  string section_name;\n  \n  section_name.field_2._12_4_ = 0xf06c8;\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 = parameters->options_->plugins_;\n  if (this != (Plugin_manager *)0x0) {\n    if (this->in_claim_file_handler_ == false) {\n      lVar3 = LDPS_ERR;\n    }\n    else {\n      pOVar2 = Plugin_manager::get_elf_object(this,section.handle);\n      if (pOVar2 != (Object *)0x0) {\n        if (pOVar2->input_file_ != (Input_file *)0x0) {\n          bVar1 = File_read::is_locked(&pOVar2->input_file_->file_);\n          if (bVar1) {\n            (*pOVar2->_vptr_Object[0x10])(&section_name,pOVar2,section.shndx);\n            __dest = malloc((size_t)(section_name._M_dataplus._M_p + 1));\n            *(void **)section.shndx = __dest;\n            memcpy(__dest,local_28,(size_t)(section_name._M_dataplus._M_p + 1));\n            if ((size_type *)local_28 != &section_name._M_string_length) {\n              operator_delete(local_28);\n            }\n            return LDPS_OK;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/plugin.cc",0x7e8,"get_input_section_name");\n      }\n      lVar3 = LDPS_BAD_HANDLE;\n    }\n    return lVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/plugin.cc",0x7dc,"get_input_section_name");\n}" type_identifier (ERROR "gold::" identifier : :) (function_declarator "get_input_section_name(ld_plugin_section section,char **section_name_ptr)" identifier (parameter_list "(ld_plugin_section section,char **section_name_ptr)" ( (parameter_declaration "ld_plugin_section section" type_identifier identifier) , (parameter_declaration "char **section_name_ptr" primitive_type (pointer_declarator "**section_name_ptr" * (pointer_declarator "*section_name_ptr" * identifier))) ))) (compound_statement "{\n  Plugin_manager *this;\n  bool bVar1;\n  Object *pOVar2;\n  void *__dest;\n  ld_plugin_status lVar3;\n  undefined1 *local_28;\n  string section_name;\n  \n  section_name.field_2._12_4_ = 0xf06c8;\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 = parameters->options_->plugins_;\n  if (this != (Plugin_manager *)0x0) {\n    if (this->in_claim_file_handler_ == false) {\n      lVar3 = LDPS_ERR;\n    }\n    else {\n      pOVar2 = Plugin_manager::get_elf_object(this,section.handle);\n      if (pOVar2 != (Object *)0x0) {\n        if (pOVar2->input_file_ != (Input_file *)0x0) {\n          bVar1 = File_read::is_locked(&pOVar2->input_file_->file_);\n          if (bVar1) {\n            (*pOVar2->_vptr_Object[0x10])(&section_name,pOVar2,section.shndx);\n            __dest = malloc((size_t)(section_name._M_dataplus._M_p + 1));\n            *(void **)section.shndx = __dest;\n            memcpy(__dest,local_28,(size_t)(section_name._M_dataplus._M_p + 1));\n            if ((size_type *)local_28 != &section_name._M_string_length) {\n              operator_delete(local_28);\n            }\n            return LDPS_OK;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/plugin.cc",0x7e8,"get_input_section_name");\n      }\n      lVar3 = LDPS_BAD_HANDLE;\n    }\n    return lVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/plugin.cc",0x7dc,"get_input_section_name");\n}" { (declaration "Plugin_manager *this;" type_identifier (pointer_declarator "*this" * identifier) ;) (declaration "bool bVar1;" primitive_type identifier ;) (declaration "Object *pOVar2;" type_identifier (pointer_declarator "*pOVar2" * identifier) ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "ld_plugin_status lVar3;" type_identifier identifier ;) (declaration "undefined1 *local_28;" type_identifier (pointer_declarator "*local_28" * identifier) ;) (declaration "string section_name;" type_identifier identifier ;) (expression_statement "section_name.field_2._12_4_ = 0xf06c8;" (assignment_expression "section_name.field_2._12_4_ = 0xf06c8" (field_expression "section_name.field_2._12_4_" (field_expression "section_name.field_2" identifier . field_identifier) . field_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 = parameters->options_->plugins_;" (assignment_expression "this = parameters->options_->plugins_" identifier = (field_expression "parameters->options_->plugins_" (field_expression "parameters->options_" identifier -> field_identifier) -> field_identifier)) ;) (if_statement "if (this != (Plugin_manager *)0x0) {\n    if (this->in_claim_file_handler_ == false) {\n      lVar3 = LDPS_ERR;\n    }\n    else {\n      pOVar2 = Plugin_manager::get_elf_object(this,section.handle);\n      if (pOVar2 != (Object *)0x0) {\n        if (pOVar2->input_file_ != (Input_file *)0x0) {\n          bVar1 = File_read::is_locked(&pOVar2->input_file_->file_);\n          if (bVar1) {\n            (*pOVar2->_vptr_Object[0x10])(&section_name,pOVar2,section.shndx);\n            __dest = malloc((size_t)(section_name._M_dataplus._M_p + 1));\n            *(void **)section.shndx = __dest;\n            memcpy(__dest,local_28,(size_t)(section_name._M_dataplus._M_p + 1));\n            if ((size_type *)local_28 != &section_name._M_string_length) {\n              operator_delete(local_28);\n            }\n            return LDPS_OK;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/plugin.cc",0x7e8,"get_input_section_name");\n      }\n      lVar3 = LDPS_BAD_HANDLE;\n    }\n    return lVar3;\n  }" if (parenthesized_expression "(this != (Plugin_manager *)0x0)" ( (binary_expression "this != (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->in_claim_file_handler_ == false) {\n      lVar3 = LDPS_ERR;\n    }\n    else {\n      pOVar2 = Plugin_manager::get_elf_object(this,section.handle);\n      if (pOVar2 != (Object *)0x0) {\n        if (pOVar2->input_file_ != (Input_file *)0x0) {\n          bVar1 = File_read::is_locked(&pOVar2->input_file_->file_);\n          if (bVar1) {\n            (*pOVar2->_vptr_Object[0x10])(&section_name,pOVar2,section.shndx);\n            __dest = malloc((size_t)(section_name._M_dataplus._M_p + 1));\n            *(void **)section.shndx = __dest;\n            memcpy(__dest,local_28,(size_t)(section_name._M_dataplus._M_p + 1));\n            if ((size_type *)local_28 != &section_name._M_string_length) {\n              operator_delete(local_28);\n            }\n            return LDPS_OK;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/plugin.cc",0x7e8,"get_input_section_name");\n      }\n      lVar3 = LDPS_BAD_HANDLE;\n    }\n    return lVar3;\n  }" { (if_statement "if (this->in_claim_file_handler_ == false) {\n      lVar3 = LDPS_ERR;\n    }\n    else {\n      pOVar2 = Plugin_manager::get_elf_object(this,section.handle);\n      if (pOVar2 != (Object *)0x0) {\n        if (pOVar2->input_file_ != (Input_file *)0x0) {\n          bVar1 = File_read::is_locked(&pOVar2->input_file_->file_);\n          if (bVar1) {\n            (*pOVar2->_vptr_Object[0x10])(&section_name,pOVar2,section.shndx);\n            __dest = malloc((size_t)(section_name._M_dataplus._M_p + 1));\n            *(void **)section.shndx = __dest;\n            memcpy(__dest,local_28,(size_t)(section_name._M_dataplus._M_p + 1));\n            if ((size_type *)local_28 != &section_name._M_string_length) {\n              operator_delete(local_28);\n            }\n            return LDPS_OK;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/plugin.cc",0x7e8,"get_input_section_name");\n      }\n      lVar3 = LDPS_BAD_HANDLE;\n    }" if (parenthesized_expression "(this->in_claim_file_handler_ == false)" ( (binary_expression "this->in_claim_file_handler_ == false" (field_expression "this->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      pOVar2 = Plugin_manager::get_elf_object(this,section.handle);\n      if (pOVar2 != (Object *)0x0) {\n        if (pOVar2->input_file_ != (Input_file *)0x0) {\n          bVar1 = File_read::is_locked(&pOVar2->input_file_->file_);\n          if (bVar1) {\n            (*pOVar2->_vptr_Object[0x10])(&section_name,pOVar2,section.shndx);\n            __dest = malloc((size_t)(section_name._M_dataplus._M_p + 1));\n            *(void **)section.shndx = __dest;\n            memcpy(__dest,local_28,(size_t)(section_name._M_dataplus._M_p + 1));\n            if ((size_type *)local_28 != &section_name._M_string_length) {\n              operator_delete(local_28);\n            }\n            return LDPS_OK;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/plugin.cc",0x7e8,"get_input_section_name");\n      }\n      lVar3 = LDPS_BAD_HANDLE;\n    }" else (compound_statement "{\n      pOVar2 = Plugin_manager::get_elf_object(this,section.handle);\n      if (pOVar2 != (Object *)0x0) {\n        if (pOVar2->input_file_ != (Input_file *)0x0) {\n          bVar1 = File_read::is_locked(&pOVar2->input_file_->file_);\n          if (bVar1) {\n            (*pOVar2->_vptr_Object[0x10])(&section_name,pOVar2,section.shndx);\n            __dest = malloc((size_t)(section_name._M_dataplus._M_p + 1));\n            *(void **)section.shndx = __dest;\n            memcpy(__dest,local_28,(size_t)(section_name._M_dataplus._M_p + 1));\n            if ((size_type *)local_28 != &section_name._M_string_length) {\n              operator_delete(local_28);\n            }\n            return LDPS_OK;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/plugin.cc",0x7e8,"get_input_section_name");\n      }\n      lVar3 = LDPS_BAD_HANDLE;\n    }" { (ERROR "pOVar2 = Plugin_manager::" (assignment_expression "pOVar2 = Plugin_manager" identifier = identifier) : :) (expression_statement "get_elf_object(this,section.handle);" (call_expression "get_elf_object(this,section.handle)" identifier (argument_list "(this,section.handle)" ( identifier , (field_expression "section.handle" identifier . field_identifier) ))) ;) (if_statement "if (pOVar2 != (Object *)0x0) {\n        if (pOVar2->input_file_ != (Input_file *)0x0) {\n          bVar1 = File_read::is_locked(&pOVar2->input_file_->file_);\n          if (bVar1) {\n            (*pOVar2->_vptr_Object[0x10])(&section_name,pOVar2,section.shndx);\n            __dest = malloc((size_t)(section_name._M_dataplus._M_p + 1));\n            *(void **)section.shndx = __dest;\n            memcpy(__dest,local_28,(size_t)(section_name._M_dataplus._M_p + 1));\n            if ((size_type *)local_28 != &section_name._M_string_length) {\n              operator_delete(local_28);\n            }\n            return LDPS_OK;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/plugin.cc",0x7e8,"get_input_section_name");\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        if (pOVar2->input_file_ != (Input_file *)0x0) {\n          bVar1 = File_read::is_locked(&pOVar2->input_file_->file_);\n          if (bVar1) {\n            (*pOVar2->_vptr_Object[0x10])(&section_name,pOVar2,section.shndx);\n            __dest = malloc((size_t)(section_name._M_dataplus._M_p + 1));\n            *(void **)section.shndx = __dest;\n            memcpy(__dest,local_28,(size_t)(section_name._M_dataplus._M_p + 1));\n            if ((size_type *)local_28 != &section_name._M_string_length) {\n              operator_delete(local_28);\n            }\n            return LDPS_OK;\n          }\n        }\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/plugin.cc",0x7e8,"get_input_section_name");\n      }" { (if_statement "if (pOVar2->input_file_ != (Input_file *)0x0) {\n          bVar1 = File_read::is_locked(&pOVar2->input_file_->file_);\n          if (bVar1) {\n            (*pOVar2->_vptr_Object[0x10])(&section_name,pOVar2,section.shndx);\n            __dest = malloc((size_t)(section_name._M_dataplus._M_p + 1));\n            *(void **)section.shndx = __dest;\n            memcpy(__dest,local_28,(size_t)(section_name._M_dataplus._M_p + 1));\n            if ((size_type *)local_28 != &section_name._M_string_length) {\n              operator_delete(local_28);\n            }\n            return LDPS_OK;\n          }\n        }" if (parenthesized_expression "(pOVar2->input_file_ != (Input_file *)0x0)" ( (binary_expression "pOVar2->input_file_ != (Input_file *)0x0" (field_expression "pOVar2->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(&pOVar2->input_file_->file_);\n          if (bVar1) {\n            (*pOVar2->_vptr_Object[0x10])(&section_name,pOVar2,section.shndx);\n            __dest = malloc((size_t)(section_name._M_dataplus._M_p + 1));\n            *(void **)section.shndx = __dest;\n            memcpy(__dest,local_28,(size_t)(section_name._M_dataplus._M_p + 1));\n            if ((size_type *)local_28 != &section_name._M_string_length) {\n              operator_delete(local_28);\n            }\n            return LDPS_OK;\n          }\n        }" { (ERROR "bVar1 = File_read::" (assignment_expression "bVar1 = File_read" identifier = identifier) : :) (expression_statement "is_locked(&pOVar2->input_file_->file_);" (call_expression "is_locked(&pOVar2->input_file_->file_)" identifier (argument_list "(&pOVar2->input_file_->file_)" ( (pointer_expression "&pOVar2->input_file_->file_" & (field_expression "pOVar2->input_file_->file_" (field_expression "pOVar2->input_file_" identifier -> field_identifier) -> field_identifier)) ))) ;) (if_statement "if (bVar1) {\n            (*pOVar2->_vptr_Object[0x10])(&section_name,pOVar2,section.shndx);\n            __dest = malloc((size_t)(section_name._M_dataplus._M_p + 1));\n            *(void **)section.shndx = __dest;\n            memcpy(__dest,local_28,(size_t)(section_name._M_dataplus._M_p + 1));\n            if ((size_type *)local_28 != &section_name._M_string_length) {\n              operator_delete(local_28);\n            }\n            return LDPS_OK;\n          }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n            (*pOVar2->_vptr_Object[0x10])(&section_name,pOVar2,section.shndx);\n            __dest = malloc((size_t)(section_name._M_dataplus._M_p + 1));\n            *(void **)section.shndx = __dest;\n            memcpy(__dest,local_28,(size_t)(section_name._M_dataplus._M_p + 1));\n            if ((size_type *)local_28 != &section_name._M_string_length) {\n              operator_delete(local_28);\n            }\n            return LDPS_OK;\n          }" { (expression_statement "(*pOVar2->_vptr_Object[0x10])(&section_name,pOVar2,section.shndx);" (call_expression "(*pOVar2->_vptr_Object[0x10])(&section_name,pOVar2,section.shndx)" (parenthesized_expression "(*pOVar2->_vptr_Object[0x10])" ( (pointer_expression "*pOVar2->_vptr_Object[0x10]" * (subscript_expression "pOVar2->_vptr_Object[0x10]" (field_expression "pOVar2->_vptr_Object" identifier -> field_identifier) [ number_literal ])) )) (argument_list "(&section_name,pOVar2,section.shndx)" ( (pointer_expression "&section_name" & identifier) , identifier , (field_expression "section.shndx" identifier . field_identifier) ))) ;) (expression_statement "__dest = malloc((size_t)(section_name._M_dataplus._M_p + 1));" (assignment_expression "__dest = malloc((size_t)(section_name._M_dataplus._M_p + 1))" identifier = (call_expression "malloc((size_t)(section_name._M_dataplus._M_p + 1))" identifier (argument_list "((size_t)(section_name._M_dataplus._M_p + 1))" ( (cast_expression "(size_t)(section_name._M_dataplus._M_p + 1)" ( (type_descriptor "size_t" primitive_type) ) (parenthesized_expression "(section_name._M_dataplus._M_p + 1)" ( (binary_expression "section_name._M_dataplus._M_p + 1" (field_expression "section_name._M_dataplus._M_p" (field_expression "section_name._M_dataplus" identifier . field_identifier) . field_identifier) + number_literal) ))) )))) ;) (expression_statement "*(void **)section.shndx = __dest;" (assignment_expression "*(void **)section.shndx = __dest" (pointer_expression "*(void **)section.shndx" * (cast_expression "(void **)section.shndx" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (field_expression "section.shndx" identifier . field_identifier))) = identifier) ;) (expression_statement "memcpy(__dest,local_28,(size_t)(section_name._M_dataplus._M_p + 1));" (call_expression "memcpy(__dest,local_28,(size_t)(section_name._M_dataplus._M_p + 1))" identifier (argument_list "(__dest,local_28,(size_t)(section_name._M_dataplus._M_p + 1))" ( identifier , identifier , (cast_expression "(size_t)(section_name._M_dataplus._M_p + 1)" ( (type_descriptor "size_t" primitive_type) ) (parenthesized_expression "(section_name._M_dataplus._M_p + 1)" ( (binary_expression "section_name._M_dataplus._M_p + 1" (field_expression "section_name._M_dataplus._M_p" (field_expression "section_name._M_dataplus" identifier . field_identifier) . field_identifier) + number_literal) ))) ))) ;) (if_statement "if ((size_type *)local_28 != &section_name._M_string_length) {\n              operator_delete(local_28);\n            }" if (parenthesized_expression "((size_type *)local_28 != &section_name._M_string_length)" ( (binary_expression "(size_type *)local_28 != &section_name._M_string_length" (cast_expression "(size_type *)local_28" ( (type_descriptor "size_type *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) != (pointer_expression "&section_name._M_string_length" & (field_expression "section_name._M_string_length" identifier . field_identifier))) )) (compound_statement "{\n              operator_delete(local_28);\n            }" { (expression_statement "operator_delete(local_28);" (call_expression "operator_delete(local_28)" identifier (argument_list "(local_28)" ( identifier ))) ;) })) (return_statement "return LDPS_OK;" return identifier ;) })) })) comment (expression_statement "do_gold_unreachable("../../gold/plugin.cc",0x7e8,"get_input_section_name");" (call_expression "do_gold_unreachable("../../gold/plugin.cc",0x7e8,"get_input_section_name")" identifier (argument_list "("../../gold/plugin.cc",0x7e8,"get_input_section_name")" ( (string_literal ""../../gold/plugin.cc"" " string_content ") , number_literal , (string_literal ""get_input_section_name"" " 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",0x7dc,"get_input_section_name");" (call_expression "do_gold_unreachable("../../gold/plugin.cc",0x7dc,"get_input_section_name")" identifier (argument_list "("../../gold/plugin.cc",0x7dc,"get_input_section_name")" ( (string_literal ""../../gold/plugin.cc"" " string_content ") , number_literal , (string_literal ""get_input_section_name"" " string_content ") ))) ;) })))
(translation_unit "undefined4 FUN_000f06c0(undefined4 param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  char cVar2;\n  int *piVar3;\n  void *__dest;\n  undefined4 uVar4;\n  undefined1 *local_28;\n  int local_24;\n  undefined1 local_20 [16];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0xf06c8;\n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_1);\n  }\n  iVar1 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x593c);\n  if (iVar1 != 0) {\n    if (*(char *)(iVar1 + 99) == '\0') {\n      uVar4 = 3;\n    }\n    else {\n      piVar3 = (int *)FUN_000f0130(iVar1,param_1);\n      if (piVar3 != (int *)0x0) {\n        if (piVar3[7] != 0) {\n          cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);\n          if (cVar2 != '\0') {\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }\n        }\n                    \n        FUN_0005f0b0("../../gold/plugin.cc",0x7e8,"get_input_section_name");\n      }\n      uVar4 = 2;\n    }\n    return uVar4;\n  }\n                    \n  FUN_0005f0b0("../../gold/plugin.cc",0x7dc,"get_input_section_name",0);\n}\n\n" (function_definition "undefined4 FUN_000f06c0(undefined4 param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  char cVar2;\n  int *piVar3;\n  void *__dest;\n  undefined4 uVar4;\n  undefined1 *local_28;\n  int local_24;\n  undefined1 local_20 [16];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0xf06c8;\n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_1);\n  }\n  iVar1 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x593c);\n  if (iVar1 != 0) {\n    if (*(char *)(iVar1 + 99) == '\0') {\n      uVar4 = 3;\n    }\n    else {\n      piVar3 = (int *)FUN_000f0130(iVar1,param_1);\n      if (piVar3 != (int *)0x0) {\n        if (piVar3[7] != 0) {\n          cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);\n          if (cVar2 != '\0') {\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }\n        }\n                    \n        FUN_0005f0b0("../../gold/plugin.cc",0x7e8,"get_input_section_name");\n      }\n      uVar4 = 2;\n    }\n    return uVar4;\n  }\n                    \n  FUN_0005f0b0("../../gold/plugin.cc",0x7dc,"get_input_section_name",0);\n}" type_identifier (function_declarator "FUN_000f06c0(undefined4 param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  int *piVar3;\n  void *__dest;\n  undefined4 uVar4;\n  undefined1 *local_28;\n  int local_24;\n  undefined1 local_20 [16];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0xf06c8;\n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_1);\n  }\n  iVar1 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x593c);\n  if (iVar1 != 0) {\n    if (*(char *)(iVar1 + 99) == '\0') {\n      uVar4 = 3;\n    }\n    else {\n      piVar3 = (int *)FUN_000f0130(iVar1,param_1);\n      if (piVar3 != (int *)0x0) {\n        if (piVar3[7] != 0) {\n          cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);\n          if (cVar2 != '\0') {\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }\n        }\n                    \n        FUN_0005f0b0("../../gold/plugin.cc",0x7e8,"get_input_section_name");\n      }\n      uVar4 = 2;\n    }\n    return uVar4;\n  }\n                    \n  FUN_0005f0b0("../../gold/plugin.cc",0x7dc,"get_input_section_name",0);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined1 *local_28;" type_identifier (pointer_declarator "*local_28" * identifier) ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "undefined1 local_20 [16];" type_identifier (array_declarator "local_20 [16]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_10;" type_identifier identifier ;) (expression_statement "uStack_10 = 0xf06c8;" (assignment_expression "uStack_10 = 0xf06c8" identifier = number_literal) ;) (if_statement "if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_1);\n  }" if (parenthesized_expression "(*(int *)(DAT_00302378 + 8) == 0)" ( (binary_expression "*(int *)(DAT_00302378 + 8) == 0" (pointer_expression "*(int *)(DAT_00302378 + 8)" * (cast_expression "(int *)(DAT_00302378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00302378 + 8)" ( (binary_expression "DAT_00302378 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_1);\n  }" { (expression_statement "FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_1);" (call_expression "FUN_0005f0b0("../../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 "iVar1 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x593c);" (assignment_expression "iVar1 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x593c)" identifier = (pointer_expression "*(int *)(*(int *)(DAT_00302378 + 8) + 0x593c)" * (cast_expression "(int *)(*(int *)(DAT_00302378 + 8) + 0x593c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_00302378 + 8) + 0x593c)" ( (binary_expression "*(int *)(DAT_00302378 + 8) + 0x593c" (pointer_expression "*(int *)(DAT_00302378 + 8)" * (cast_expression "(int *)(DAT_00302378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00302378 + 8)" ( (binary_expression "DAT_00302378 + 8" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (iVar1 != 0) {\n    if (*(char *)(iVar1 + 99) == '\0') {\n      uVar4 = 3;\n    }\n    else {\n      piVar3 = (int *)FUN_000f0130(iVar1,param_1);\n      if (piVar3 != (int *)0x0) {\n        if (piVar3[7] != 0) {\n          cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);\n          if (cVar2 != '\0') {\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }\n        }\n                    \n        FUN_0005f0b0("../../gold/plugin.cc",0x7e8,"get_input_section_name");\n      }\n      uVar4 = 2;\n    }\n    return uVar4;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(char *)(iVar1 + 99) == '\0') {\n      uVar4 = 3;\n    }\n    else {\n      piVar3 = (int *)FUN_000f0130(iVar1,param_1);\n      if (piVar3 != (int *)0x0) {\n        if (piVar3[7] != 0) {\n          cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);\n          if (cVar2 != '\0') {\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }\n        }\n                    \n        FUN_0005f0b0("../../gold/plugin.cc",0x7e8,"get_input_section_name");\n      }\n      uVar4 = 2;\n    }\n    return uVar4;\n  }" { (if_statement "if (*(char *)(iVar1 + 99) == '\0') {\n      uVar4 = 3;\n    }\n    else {\n      piVar3 = (int *)FUN_000f0130(iVar1,param_1);\n      if (piVar3 != (int *)0x0) {\n        if (piVar3[7] != 0) {\n          cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);\n          if (cVar2 != '\0') {\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }\n        }\n                    \n        FUN_0005f0b0("../../gold/plugin.cc",0x7e8,"get_input_section_name");\n      }\n      uVar4 = 2;\n    }" if (parenthesized_expression "(*(char *)(iVar1 + 99) == '\0')" ( (binary_expression "*(char *)(iVar1 + 99) == '\0'" (pointer_expression "*(char *)(iVar1 + 99)" * (cast_expression "(char *)(iVar1 + 99)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 99)" ( (binary_expression "iVar1 + 99" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      uVar4 = 3;\n    }" { (expression_statement "uVar4 = 3;" (assignment_expression "uVar4 = 3" identifier = number_literal) ;) }) (else_clause "else {\n      piVar3 = (int *)FUN_000f0130(iVar1,param_1);\n      if (piVar3 != (int *)0x0) {\n        if (piVar3[7] != 0) {\n          cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);\n          if (cVar2 != '\0') {\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }\n        }\n                    \n        FUN_0005f0b0("../../gold/plugin.cc",0x7e8,"get_input_section_name");\n      }\n      uVar4 = 2;\n    }" else (compound_statement "{\n      piVar3 = (int *)FUN_000f0130(iVar1,param_1);\n      if (piVar3 != (int *)0x0) {\n        if (piVar3[7] != 0) {\n          cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);\n          if (cVar2 != '\0') {\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }\n        }\n                    \n        FUN_0005f0b0("../../gold/plugin.cc",0x7e8,"get_input_section_name");\n      }\n      uVar4 = 2;\n    }" { (expression_statement "piVar3 = (int *)FUN_000f0130(iVar1,param_1);" (assignment_expression "piVar3 = (int *)FUN_000f0130(iVar1,param_1)" identifier = (cast_expression "(int *)FUN_000f0130(iVar1,param_1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000f0130(iVar1,param_1)" identifier (argument_list "(iVar1,param_1)" ( identifier , identifier ))))) ;) (if_statement "if (piVar3 != (int *)0x0) {\n        if (piVar3[7] != 0) {\n          cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);\n          if (cVar2 != '\0') {\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }\n        }\n                    \n        FUN_0005f0b0("../../gold/plugin.cc",0x7e8,"get_input_section_name");\n      }" if (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        if (piVar3[7] != 0) {\n          cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);\n          if (cVar2 != '\0') {\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }\n        }\n                    \n        FUN_0005f0b0("../../gold/plugin.cc",0x7e8,"get_input_section_name");\n      }" { (if_statement "if (piVar3[7] != 0) {\n          cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);\n          if (cVar2 != '\0') {\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }\n        }" if (parenthesized_expression "(piVar3[7] != 0)" ( (binary_expression "piVar3[7] != 0" (subscript_expression "piVar3[7]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n          cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);\n          if (cVar2 != '\0') {\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }\n        }" { (expression_statement "cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);" (assignment_expression "cVar2 = FUN_0005bde0(piVar3[7] + 0x1c)" identifier = (call_expression "FUN_0005bde0(piVar3[7] + 0x1c)" identifier (argument_list "(piVar3[7] + 0x1c)" ( (binary_expression "piVar3[7] + 0x1c" (subscript_expression "piVar3[7]" identifier [ number_literal ]) + number_literal) )))) ;) (if_statement "if (cVar2 != '\0') {\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }" { (expression_statement "(**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);" (call_expression "(**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2)" (parenthesized_expression "(**(code **)(*piVar3 + 0x40))" ( (pointer_expression "**(code **)(*piVar3 + 0x40)" * (pointer_expression "*(code **)(*piVar3 + 0x40)" * (cast_expression "(code **)(*piVar3 + 0x40)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 0x40)" ( (binary_expression "*piVar3 + 0x40" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) (argument_list "(&local_24,piVar3,param_2)" ( (pointer_expression "&local_24" & identifier) , identifier , identifier ))) ;) (expression_statement "__dest = malloc(local_24 + 1U);" (assignment_expression "__dest = malloc(local_24 + 1U)" identifier = (call_expression "malloc(local_24 + 1U)" identifier (argument_list "(local_24 + 1U)" ( (binary_expression "local_24 + 1U" identifier + number_literal) )))) ;) (expression_statement "*param_2 = __dest;" (assignment_expression "*param_2 = __dest" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "memcpy(__dest,local_28,local_24 + 1U);" (call_expression "memcpy(__dest,local_28,local_24 + 1U)" identifier (argument_list "(__dest,local_28,local_24 + 1U)" ( identifier , identifier , (binary_expression "local_24 + 1U" identifier + number_literal) ))) ;) (if_statement "if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }" if (parenthesized_expression "(local_28 != local_20)" ( (binary_expression "local_28 != local_20" identifier != identifier) )) (compound_statement "{\n              FUN_001807a0(local_28);\n            }" { (expression_statement "FUN_001807a0(local_28);" (call_expression "FUN_001807a0(local_28)" identifier (argument_list "(local_28)" ( identifier ))) ;) })) (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "FUN_0005f0b0("../../gold/plugin.cc",0x7e8,"get_input_section_name");" (call_expression "FUN_0005f0b0("../../gold/plugin.cc",0x7e8,"get_input_section_name")" identifier (argument_list "("../../gold/plugin.cc",0x7e8,"get_input_section_name")" ( (string_literal ""../../gold/plugin.cc"" " string_content ") , number_literal , (string_literal ""get_input_section_name"" " string_content ") ))) ;) })) (expression_statement "uVar4 = 2;" (assignment_expression "uVar4 = 2" identifier = number_literal) ;) }))) (return_statement "return uVar4;" return identifier ;) })) (expression_statement "FUN_0005f0b0("../../gold/plugin.cc",0x7dc,"get_input_section_name",0);" (call_expression "FUN_0005f0b0("../../gold/plugin.cc",0x7dc,"get_input_section_name",0)" identifier (argument_list "("../../gold/plugin.cc",0x7dc,"get_input_section_name",0)" ( (string_literal ""../../gold/plugin.cc"" " string_content ") , number_literal , (string_literal ""get_input_section_name"" " string_content ") , number_literal ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (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 = (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 { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (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 ( (pointer_expression & IDENT) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression IDENT + LIT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( 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 FUN_000f06c0(undefined4 param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  char cVar2;\n  int *piVar3;\n  void *__dest;\n  undefined4 uVar4;\n  undefined1 *local_28;\n  int local_24;\n  undefined1 local_20 [16];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0xf06c8;\n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_1);\n  }\n  iVar1 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x593c);\n  if (iVar1 != 0) {\n    if (*(char *)(iVar1 + 99) == '\0') {\n      uVar4 = 3;\n    }\n    else {\n      piVar3 = (int *)FUN_000f0130(iVar1,param_1);\n      if (piVar3 != (int *)0x0) {\n        if (piVar3[7] != 0) {\n          cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);\n          if (cVar2 != '\0') {\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }\n        }\n                    \n        FUN_0005f0b0("../../gold/plugin.cc",0x7e8,"get_input_section_name");\n      }\n      uVar4 = 2;\n    }\n    return uVar4;\n  }\n                    \n  FUN_0005f0b0("../../gold/plugin.cc",0x7dc,"get_input_section_name",0);\n}" (type_identifier "undefined4") (function_declarator "FUN_000f06c0(undefined4 param_1,undefined4 *param_2)" (identifier "FUN_000f06c0") (parameter_list "(undefined4 param_1,undefined4 *param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  int *piVar3;\n  void *__dest;\n  undefined4 uVar4;\n  undefined1 *local_28;\n  int local_24;\n  undefined1 local_20 [16];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0xf06c8;\n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_1);\n  }\n  iVar1 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x593c);\n  if (iVar1 != 0) {\n    if (*(char *)(iVar1 + 99) == '\0') {\n      uVar4 = 3;\n    }\n    else {\n      piVar3 = (int *)FUN_000f0130(iVar1,param_1);\n      if (piVar3 != (int *)0x0) {\n        if (piVar3[7] != 0) {\n          cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);\n          if (cVar2 != '\0') {\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }\n        }\n                    \n        FUN_0005f0b0("../../gold/plugin.cc",0x7e8,"get_input_section_name");\n      }\n      uVar4 = 2;\n    }\n    return uVar4;\n  }\n                    \n  FUN_0005f0b0("../../gold/plugin.cc",0x7dc,"get_input_section_name",0);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "void *__dest;" (primitive_type "void") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined1 *local_28;" (type_identifier "undefined1") (pointer_declarator "*local_28" (* "*") (identifier "local_28")) (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "undefined1 local_20 [16];" (type_identifier "undefined1") (array_declarator "local_20 [16]" (identifier "local_20") ([ "[") (number_literal "16") (] "]")) (; ";")) (declaration "undefined4 uStack_10;" (type_identifier "undefined4") (identifier "uStack_10") (; ";")) (expression_statement "uStack_10 = 0xf06c8;" (assignment_expression "uStack_10 = 0xf06c8" (identifier "uStack_10") (= "=") (number_literal "0xf06c8")) (; ";")) (if_statement "if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_1);\n  }" (if "if") (parenthesized_expression "(*(int *)(DAT_00302378 + 8) == 0)" (( "(") (binary_expression "*(int *)(DAT_00302378 + 8) == 0" (pointer_expression "*(int *)(DAT_00302378 + 8)" (* "*") (cast_expression "(int *)(DAT_00302378 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_00302378 + 8)" (( "(") (binary_expression "DAT_00302378 + 8" (identifier "DAT_00302378") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_1);\n  }" ({ "{") (expression_statement "FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_1);" (call_expression "FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_1)" (identifier "FUN_0005f0b0") (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 "iVar1 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x593c);" (assignment_expression "iVar1 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x593c)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(*(int *)(DAT_00302378 + 8) + 0x593c)" (* "*") (cast_expression "(int *)(*(int *)(DAT_00302378 + 8) + 0x593c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(DAT_00302378 + 8) + 0x593c)" (( "(") (binary_expression "*(int *)(DAT_00302378 + 8) + 0x593c" (pointer_expression "*(int *)(DAT_00302378 + 8)" (* "*") (cast_expression "(int *)(DAT_00302378 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_00302378 + 8)" (( "(") (binary_expression "DAT_00302378 + 8" (identifier "DAT_00302378") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "0x593c")) () ")"))))) (; ";")) (if_statement "if (iVar1 != 0) {\n    if (*(char *)(iVar1 + 99) == '\0') {\n      uVar4 = 3;\n    }\n    else {\n      piVar3 = (int *)FUN_000f0130(iVar1,param_1);\n      if (piVar3 != (int *)0x0) {\n        if (piVar3[7] != 0) {\n          cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);\n          if (cVar2 != '\0') {\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }\n        }\n                    \n        FUN_0005f0b0("../../gold/plugin.cc",0x7e8,"get_input_section_name");\n      }\n      uVar4 = 2;\n    }\n    return uVar4;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (*(char *)(iVar1 + 99) == '\0') {\n      uVar4 = 3;\n    }\n    else {\n      piVar3 = (int *)FUN_000f0130(iVar1,param_1);\n      if (piVar3 != (int *)0x0) {\n        if (piVar3[7] != 0) {\n          cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);\n          if (cVar2 != '\0') {\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }\n        }\n                    \n        FUN_0005f0b0("../../gold/plugin.cc",0x7e8,"get_input_section_name");\n      }\n      uVar4 = 2;\n    }\n    return uVar4;\n  }" ({ "{") (if_statement "if (*(char *)(iVar1 + 99) == '\0') {\n      uVar4 = 3;\n    }\n    else {\n      piVar3 = (int *)FUN_000f0130(iVar1,param_1);\n      if (piVar3 != (int *)0x0) {\n        if (piVar3[7] != 0) {\n          cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);\n          if (cVar2 != '\0') {\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }\n        }\n                    \n        FUN_0005f0b0("../../gold/plugin.cc",0x7e8,"get_input_section_name");\n      }\n      uVar4 = 2;\n    }" (if "if") (parenthesized_expression "(*(char *)(iVar1 + 99) == '\0')" (( "(") (binary_expression "*(char *)(iVar1 + 99) == '\0'" (pointer_expression "*(char *)(iVar1 + 99)" (* "*") (cast_expression "(char *)(iVar1 + 99)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 99)" (( "(") (binary_expression "iVar1 + 99" (identifier "iVar1") (+ "+") (number_literal "99")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      uVar4 = 3;\n    }" ({ "{") (expression_statement "uVar4 = 3;" (assignment_expression "uVar4 = 3" (identifier "uVar4") (= "=") (number_literal "3")) (; ";")) (} "}")) (else_clause "else {\n      piVar3 = (int *)FUN_000f0130(iVar1,param_1);\n      if (piVar3 != (int *)0x0) {\n        if (piVar3[7] != 0) {\n          cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);\n          if (cVar2 != '\0') {\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }\n        }\n                    \n        FUN_0005f0b0("../../gold/plugin.cc",0x7e8,"get_input_section_name");\n      }\n      uVar4 = 2;\n    }" (else "else") (compound_statement "{\n      piVar3 = (int *)FUN_000f0130(iVar1,param_1);\n      if (piVar3 != (int *)0x0) {\n        if (piVar3[7] != 0) {\n          cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);\n          if (cVar2 != '\0') {\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }\n        }\n                    \n        FUN_0005f0b0("../../gold/plugin.cc",0x7e8,"get_input_section_name");\n      }\n      uVar4 = 2;\n    }" ({ "{") (expression_statement "piVar3 = (int *)FUN_000f0130(iVar1,param_1);" (assignment_expression "piVar3 = (int *)FUN_000f0130(iVar1,param_1)" (identifier "piVar3") (= "=") (cast_expression "(int *)FUN_000f0130(iVar1,param_1)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_000f0130(iVar1,param_1)" (identifier "FUN_000f0130") (argument_list "(iVar1,param_1)" (( "(") (identifier "iVar1") (, ",") (identifier "param_1") () ")"))))) (; ";")) (if_statement "if (piVar3 != (int *)0x0) {\n        if (piVar3[7] != 0) {\n          cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);\n          if (cVar2 != '\0') {\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }\n        }\n                    \n        FUN_0005f0b0("../../gold/plugin.cc",0x7e8,"get_input_section_name");\n      }" (if "if") (parenthesized_expression "(piVar3 != (int *)0x0)" (( "(") (binary_expression "piVar3 != (int *)0x0" (identifier "piVar3") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        if (piVar3[7] != 0) {\n          cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);\n          if (cVar2 != '\0') {\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }\n        }\n                    \n        FUN_0005f0b0("../../gold/plugin.cc",0x7e8,"get_input_section_name");\n      }" ({ "{") (if_statement "if (piVar3[7] != 0) {\n          cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);\n          if (cVar2 != '\0') {\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }\n        }" (if "if") (parenthesized_expression "(piVar3[7] != 0)" (( "(") (binary_expression "piVar3[7] != 0" (subscript_expression "piVar3[7]" (identifier "piVar3") ([ "[") (number_literal "7") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);\n          if (cVar2 != '\0') {\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }\n        }" ({ "{") (expression_statement "cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);" (assignment_expression "cVar2 = FUN_0005bde0(piVar3[7] + 0x1c)" (identifier "cVar2") (= "=") (call_expression "FUN_0005bde0(piVar3[7] + 0x1c)" (identifier "FUN_0005bde0") (argument_list "(piVar3[7] + 0x1c)" (( "(") (binary_expression "piVar3[7] + 0x1c" (subscript_expression "piVar3[7]" (identifier "piVar3") ([ "[") (number_literal "7") (] "]")) (+ "+") (number_literal "0x1c")) () ")")))) (; ";")) (if_statement "if (cVar2 != '\0') {\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }" (if "if") (parenthesized_expression "(cVar2 != '\0')" (( "(") (binary_expression "cVar2 != '\0'" (identifier "cVar2") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);\n            __dest = malloc(local_24 + 1U);\n            *param_2 = __dest;\n            memcpy(__dest,local_28,local_24 + 1U);\n            if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }\n            return 0;\n          }" ({ "{") (expression_statement "(**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);" (call_expression "(**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2)" (parenthesized_expression "(**(code **)(*piVar3 + 0x40))" (( "(") (pointer_expression "**(code **)(*piVar3 + 0x40)" (* "*") (pointer_expression "*(code **)(*piVar3 + 0x40)" (* "*") (cast_expression "(code **)(*piVar3 + 0x40)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar3 + 0x40)" (( "(") (binary_expression "*piVar3 + 0x40" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (+ "+") (number_literal "0x40")) () ")"))))) () ")")) (argument_list "(&local_24,piVar3,param_2)" (( "(") (pointer_expression "&local_24" (& "&") (identifier "local_24")) (, ",") (identifier "piVar3") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "__dest = malloc(local_24 + 1U);" (assignment_expression "__dest = malloc(local_24 + 1U)" (identifier "__dest") (= "=") (call_expression "malloc(local_24 + 1U)" (identifier "malloc") (argument_list "(local_24 + 1U)" (( "(") (binary_expression "local_24 + 1U" (identifier "local_24") (+ "+") (number_literal "1U")) () ")")))) (; ";")) (expression_statement "*param_2 = __dest;" (assignment_expression "*param_2 = __dest" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "__dest")) (; ";")) (expression_statement "memcpy(__dest,local_28,local_24 + 1U);" (call_expression "memcpy(__dest,local_28,local_24 + 1U)" (identifier "memcpy") (argument_list "(__dest,local_28,local_24 + 1U)" (( "(") (identifier "__dest") (, ",") (identifier "local_28") (, ",") (binary_expression "local_24 + 1U" (identifier "local_24") (+ "+") (number_literal "1U")) () ")"))) (; ";")) (if_statement "if (local_28 != local_20) {\n              FUN_001807a0(local_28);\n            }" (if "if") (parenthesized_expression "(local_28 != local_20)" (( "(") (binary_expression "local_28 != local_20" (identifier "local_28") (!= "!=") (identifier "local_20")) () ")")) (compound_statement "{\n              FUN_001807a0(local_28);\n            }" ({ "{") (expression_statement "FUN_001807a0(local_28);" (call_expression "FUN_001807a0(local_28)" (identifier "FUN_001807a0") (argument_list "(local_28)" (( "(") (identifier "local_28") () ")"))) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}"))) (expression_statement "FUN_0005f0b0("../../gold/plugin.cc",0x7e8,"get_input_section_name");" (call_expression "FUN_0005f0b0("../../gold/plugin.cc",0x7e8,"get_input_section_name")" (identifier "FUN_0005f0b0") (argument_list "("../../gold/plugin.cc",0x7e8,"get_input_section_name")" (( "(") (string_literal ""../../gold/plugin.cc"" (" """) (string_content "../../gold/plugin.cc") (" """)) (, ",") (number_literal "0x7e8") (, ",") (string_literal ""get_input_section_name"" (" """) (string_content "get_input_section_name") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "uVar4 = 2;" (assignment_expression "uVar4 = 2" (identifier "uVar4") (= "=") (number_literal "2")) (; ";")) (} "}")))) (return_statement "return uVar4;" (return "return") (identifier "uVar4") (; ";")) (} "}"))) (expression_statement "FUN_0005f0b0("../../gold/plugin.cc",0x7dc,"get_input_section_name",0);" (call_expression "FUN_0005f0b0("../../gold/plugin.cc",0x7dc,"get_input_section_name",0)" (identifier "FUN_0005f0b0") (argument_list "("../../gold/plugin.cc",0x7dc,"get_input_section_name",0)" (( "(") (string_literal ""../../gold/plugin.cc"" (" """) (string_content "../../gold/plugin.cc") (" """)) (, ",") (number_literal "0x7dc") (, ",") (string_literal ""get_input_section_name"" (" """) (string_content "get_input_section_name") (" """)) (, ",") (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 */

type_1 gold::function_1(type_2 section,char **section_name_ptr)

{
  type_3 *var_2;
  bool bVar1;
  type_4 *var_4;
  void *__dest;
  type_1 lVar3;
  type_5 *local_28;
  type_6 section_name;
  
  section_name.field_2._12_4_ = 0xf06c8;
  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_3 *)0x0) {
    if (var_2->in_claim_file_handler_ == false) {
      lVar3 = LDPS_ERR;
    }
    else {
      var_4 = type_3::var_3(var_2,section.handle);
      if (var_4 != (type_4 *)0x0) {
        if (var_4->input_file_ != (type_8 *)0x0) {
          bVar1 = File_read::var_5(&var_4->input_file_->file_);
          if (bVar1) {
            (*var_4->_vptr_Object[0x10])(&section_name,var_4,section.shndx);
            __dest = var_6((size_t)(section_name._M_dataplus._M_p + 1));
            *(void **)section.shndx = __dest;
            var_7(__dest,local_28,(size_t)(section_name._M_dataplus._M_p + 1));
            if ((type_9 *)local_28 != &section_name._M_string_length) {
              var_8(local_28);
            }
            return LDPS_OK;
          }
        }
                    /* WARNING: Subroutine does not return */
        var_1("../../gold/plugin.cc",0x7e8,"get_input_section_name");
      }
      lVar3 = LDPS_BAD_HANDLE;
    }
    return lVar3;
  }
                    /* WARNING: Subroutine does not return */
  var_1("../../gold/plugin.cc",0x7dc,"get_input_section_name");
}


(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: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (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: (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 (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (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 (pointer_expression argument: (identifier)) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (binary_expression left: (identifier) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (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)

{
  int iVar1;
  char cVar2;
  int *piVar3;
  void *__dest;
  undefined4 uVar4;
  undefined1 *local_28;
  int local_24;
  undefined1 local_20 [16];
  undefined4 uStack_10;
  
  uStack_10 = 0xf06c8;
  if (*(int *)(DAT_00302378 + 8) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_1);
  }
  iVar1 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x593c);
  if (iVar1 != 0) {
    if (*(char *)(iVar1 + 99) == '\0') {
      uVar4 = 3;
    }
    else {
      piVar3 = (int *)FUN_000f0130(iVar1,param_1);
      if (piVar3 != (int *)0x0) {
        if (piVar3[7] != 0) {
          cVar2 = FUN_0005bde0(piVar3[7] + 0x1c);
          if (cVar2 != '\0') {
            (**(code **)(*piVar3 + 0x40))(&local_24,piVar3,param_2);
            __dest = malloc(local_24 + 1U);
            *param_2 = __dest;
            memcpy(__dest,local_28,local_24 + 1U);
            if (local_28 != local_20) {
              FUN_001807a0(local_28);
            }
            return 0;
          }
        }
                    /* WARNING: Subroutine does not return */
        FUN_0005f0b0("../../gold/plugin.cc",0x7e8,"get_input_section_name");
      }
      uVar4 = 2;
    }
    return uVar4;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0005f0b0("../../gold/plugin.cc",0x7dc,"get_input_section_name",0);
}

