
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Type propagation algorithm not settling */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: char * output_section_name(Script_sections * this, char * file_name,
   char * section_name, Output_section * * * output_section_slot, Section_type * psection_type, bool
   * keep, bool is_input_section) */

char * __thiscall
gold::Script_sections::output_section_name
          (Script_sections *this,char *file_name,char *section_name,
          Output_section ***output_section_slot,Section_type *psection_type,bool *keep,
          bool is_input_section)

{
  Orphan_handling OVar1;
  byte *pbVar2;
  char *pcVar3;
  int iVar4;
  _List_node_base *p_Var5;
  byte *pbVar6;
  byte *pbVar7;
  bool bVar8;
  bool bVar9;
  byte bVar10;
  
  bVar10 = 0;
  p_Var5 = (this->sections_elements_->
           super__List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_>).
           _M_impl._M_node.super__List_node_base._M_next;
  if (p_Var5 != (_List_node_base *)this->sections_elements_) {
    do {
      pbVar2 = (byte *)(**(code **)(*(int *)p_Var5[1]._M_next + 0x1c))
                                 (p_Var5[1]._M_next,file_name,section_name,output_section_slot,
                                  psection_type,keep,is_input_section);
      bVar8 = false;
      bVar9 = pbVar2 == (byte *)0x0;
      if (!bVar9) {
        iVar4 = 10;
        pbVar6 = pbVar2;
        pbVar7 = (byte *)"/DISCARD/";
        goto code_r0x00107e6f;
      }
      p_Var5 = (((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)
                &p_Var5->_M_next)->_M_impl)._M_node.super__List_node_base._M_next;
    } while ((_List_node_base *)this->sections_elements_ != p_Var5);
  }
  *output_section_slot = (Output_section **)0x0;
  *psection_type = ST_NONE;
  *keep = false;
  if (parameters->options_ == (General_options *)0x0) {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");
  }
  OVar1 = parameters->options_->orphan_handling_enum_;
  if (OVar1 == ORPHAN_DISCARD) {
    return (char *)(byte *)0x0;
  }
  if (OVar1 == ORPHAN_ERROR) {
    if (file_name == (char *)0x0) {
      pcVar3 = (char *)gettext("unplaced orphan section \'%s\'");
    }
    else {
      pcVar3 = (char *)gettext("unplaced orphan section \'%s\' from \'%s\'");
    }
    gold_error(pcVar3,section_name);
    return (char *)(byte *)0x0;
  }
  if (OVar1 != ORPHAN_WARN) {
    return section_name;
  }
  if (file_name != (char *)0x0) {
    pcVar3 = (char *)gettext("orphan section \'%s\' from \'%s\' is being placed in section \'%s\'");
    gold_warning(pcVar3,section_name,file_name,section_name);
    return section_name;
  }
  pcVar3 = (char *)gettext("orphan section \'%s\' is being placed in section \'%s\'");
  gold_warning(pcVar3,section_name,section_name);
  return section_name;
  while( true ) {
    iVar4 = iVar4 + -1;
    bVar8 = *pbVar6 < *pbVar7;
    bVar9 = *pbVar6 == *pbVar7;
    pbVar6 = pbVar6 + (uint)bVar10 * -2 + 1;
    pbVar7 = pbVar7 + (uint)bVar10 * -2 + 1;
    if (!bVar9) break;
code_r0x00107e6f:
    if (iVar4 == 0) break;
  }
  if ((!bVar8 && !bVar9) != bVar8) {
    return (char *)pbVar2;
  }
  *output_section_slot = (Output_section **)0x0;
  *psection_type = ST_NONE;
  return (char *)0x0;
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

byte * FUN_00107e00(int param_1,int param_2,byte *param_3,undefined4 *param_4,undefined4 *param_5,
                   undefined1 *param_6,undefined1 param_7)

{
  byte *pbVar1;
  undefined4 uVar2;
  int iVar3;
  int *piVar4;
  byte *pbVar5;
  byte *pbVar6;
  bool bVar7;
  bool bVar8;
  byte bVar9;
  
  bVar9 = 0;
  piVar4 = (int *)**(int **)(param_1 + 4);
  if (piVar4 != *(int **)(param_1 + 4)) {
    do {
      pbVar1 = (byte *)(**(code **)(*(int *)piVar4[2] + 0x1c))
                                 ((int *)piVar4[2],param_2,param_3,param_4,param_5,param_6,param_7);
      bVar7 = false;
      bVar8 = pbVar1 == (byte *)0x0;
      if (!bVar8) {
        iVar3 = 10;
        pbVar5 = pbVar1;
        pbVar6 = (byte *)"/DISCARD/";
        goto code_r0x00107e6f;
      }
      piVar4 = (int *)*piVar4;
    } while ((int *)*(int *)(param_1 + 4) != piVar4);
  }
  *param_4 = 0;
  *param_5 = 0;
  *param_6 = 0;
  if (*(int *)(DAT_00302378 + 8) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_1);
  }
  iVar3 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x5a88);
  if (iVar3 == 1) {
    return (byte *)0x0;
  }
  if (iVar3 == 3) {
    if (param_2 == 0) {
      uVar2 = gettext("unplaced orphan section \'%s\'");
    }
    else {
      uVar2 = gettext("unplaced orphan section \'%s\' from \'%s\'");
    }
    FUN_0005ad00(uVar2,param_3);
    return (byte *)0x0;
  }
  if (iVar3 != 2) {
    return param_3;
  }
  if (param_2 != 0) {
    uVar2 = gettext("orphan section \'%s\' from \'%s\' is being placed in section \'%s\'");
    FUN_0005ad30(uVar2,param_3,param_2,param_3);
    return param_3;
  }
  uVar2 = gettext("orphan section \'%s\' is being placed in section \'%s\'");
  FUN_0005ad30(uVar2,param_3,param_3);
  return param_3;
  while( true ) {
    iVar3 = iVar3 + -1;
    bVar7 = *pbVar5 < *pbVar6;
    bVar8 = *pbVar5 == *pbVar6;
    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;
    pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;
    if (!bVar8) break;
code_r0x00107e6f:
    if (iVar3 == 0) break;
  }
  if ((!bVar7 && !bVar8) != bVar7) {
    return pbVar1;
  }
  *param_4 = 0;
  *param_5 = 0;
  return (byte *)0x0;
}


CALL 0x0004fb76
ADD EAX,0x1fa1fb
PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x30]
MOVZX EDI,byte ptr [ESP + 0x48]
MOV dword ptr [ESP + 0xc],EAX
MOV EBP,dword ptr [ESP + 0x38]
MOV EAX,dword ptr [ESI + 0x4]
MOV EBX,dword ptr [EAX]
CMP EBX,EAX
JNZ 0x00107e37
JMP 0x00107e90
MOV EBX,dword ptr [EBX]
CMP dword ptr [ESI + 0x4],EBX
JZ 0x00107e90
MOV EAX,dword ptr [EBX + 0x8]
SUB ESP,0x4
MOV ECX,dword ptr [EAX]
PUSH EDI
PUSH dword ptr [ESP + 0x4c]
PUSH dword ptr [ESP + 0x4c]
PUSH dword ptr [ESP + 0x4c]
PUSH EBP
PUSH dword ptr [ESP + 0x4c]
PUSH EAX
CALL dword ptr [ECX + 0x1c]
ADD ESP,0x20
TEST EAX,EAX
JZ 0x00107e30
MOV EBP,EAX
MOV EAX,dword ptr [ESP + 0xc]
MOV ECX,0xa
MOV ESI,EBP
LEA EDI,[EAX + 0xfff2c0ac]
CMPSB.REPE ES:EDI,ESI
SETA AL
SBB AL,0x0
TEST AL,AL
JZ 0x00107f20
ADD ESP,0x1c
MOV EAX,EBP
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0x3c]
MOV dword ptr [EAX],0x0
MOV EAX,dword ptr [ESP + 0x40]
MOV dword ptr [EAX],0x0
MOV EAX,dword ptr [ESP + 0x44]
MOV byte ptr [EAX],0x0
MOV EAX,dword ptr [ESP + 0xc]
LEA EAX,[EAX + 0x378]
MOV EAX,dword ptr [EAX]
MOV EAX,dword ptr [EAX + 0x8]
TEST EAX,EAX
JZ 0x00107fb9
MOV EAX,dword ptr [EAX + 0x5a88]
CMP EAX,0x1
JZ 0x00107f13
CMP EAX,0x3
JZ 0x00107f40
MOV EBP,dword ptr [ESP + 0x38]
CMP EAX,0x2
JNZ 0x00107e7e
MOV EAX,dword ptr [ESP + 0x34]
TEST EAX,EAX
JZ 0x00107f78
SUB ESP,0xc
MOV EDI,dword ptr [ESP + 0x18]
LEA EAX,[EDI + 0xfff2c3d8]
MOV EBX,EDI
PUSH EAX
CALL 0x000263b0
ADD ESP,0x10
PUSH EBP
PUSH dword ptr [ESP + 0x38]
PUSH EBP
PUSH EAX
CALL 0x0005ad30
ADD ESP,0x10
JMP 0x00107e7e
XOR EBP,EBP
JMP 0x00107e7e
MOV EAX,dword ptr [ESP + 0x3c]
XOR EBP,EBP
MOV dword ptr [EAX],0x0
MOV EAX,dword ptr [ESP + 0x40]
MOV dword ptr [EAX],0x0
ADD ESP,0x1c
MOV EAX,EBP
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EBX,dword ptr [ESP + 0x34]
TEST EBX,EBX
JZ 0x00107fa0
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x18]
LEA EAX,[ESI + 0xfff2c37c]
MOV EBX,ESI
PUSH EAX
CALL 0x000263b0
ADD ESP,0xc
PUSH dword ptr [ESP + 0x38]
PUSH dword ptr [ESP + 0x40]
XOR EBP,EBP
PUSH EAX
CALL 0x0005ad00
ADD ESP,0x10
JMP 0x00107e7e
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x18]
LEA EAX,[ESI + 0xfff2c3a4]
MOV EBX,ESI
PUSH EAX
CALL 0x000263b0
ADD ESP,0xc
PUSH EBP
PUSH EBP
PUSH EAX
CALL 0x0005ad30
ADD ESP,0x10
JMP 0x00107e7e
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x18]
LEA EAX,[ESI + 0xfff2c148]
MOV EBX,ESI
PUSH EAX
CALL 0x000263b0
POP EDX
POP ECX
JMP 0x00107f64
PUSH ESI
MOV EBX,dword ptr [ESP + 0x10]
LEA EAX,[EBX + 0xfff2c9a0]
PUSH EAX
LEA EAX,[EBX + 0xfff1e970]
PUSH 0x5c
PUSH EAX
CALL 0x0005f0b0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nbyte * FUN_00107e00(int param_1,int param_2,byte *param_3,undefined4 *param_4,undefined4 *param_5,\n                   undefined1 *param_6,undefined1 param_7)\n\n{\n  byte *pbVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int *piVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  piVar4 = (int *)**(int **)(param_1 + 4);\n  if (piVar4 != *(int **)(param_1 + 4)) {\n    do {\n      pbVar1 = (byte *)(**(code **)(*(int *)piVar4[2] + 0x1c))\n                                 ((int *)piVar4[2],param_2,param_3,param_4,param_5,param_6,param_7);\n      bVar7 = false;\n      bVar8 = pbVar1 == (byte *)0x0;\n      if (!bVar8) {\n        iVar3 = 10;\n        pbVar5 = pbVar1;\n        pbVar6 = (byte *)"/DISCARD/";\n        goto code_r0x00107e6f;\n      }\n      piVar4 = (int *)*piVar4;\n    } while ((int *)*(int *)(param_1 + 4) != piVar4);\n  }\n  *param_4 = 0;\n  *param_5 = 0;\n  *param_6 = 0;\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  iVar3 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x5a88);\n  if (iVar3 == 1) {\n    return (byte *)0x0;\n  }\n  if (iVar3 == 3) {\n    if (param_2 == 0) {\n      uVar2 = gettext("unplaced orphan section \'%s\'");\n    }\n    else {\n      uVar2 = gettext("unplaced orphan section \'%s\' from \'%s\'");\n    }\n    FUN_0005ad00(uVar2,param_3);\n    return (byte *)0x0;\n  }\n  if (iVar3 != 2) {\n    return param_3;\n  }\n  if (param_2 != 0) {\n    uVar2 = gettext("orphan section \'%s\' from \'%s\' is being placed in section \'%s\'");\n    FUN_0005ad30(uVar2,param_3,param_2,param_3);\n    return param_3;\n  }\n  uVar2 = gettext("orphan section \'%s\' is being placed in section \'%s\'");\n  FUN_0005ad30(uVar2,param_3,param_3);\n  return param_3;\n  while( true ) {\n    iVar3 = iVar3 + -1;\n    bVar7 = *pbVar5 < *pbVar6;\n    bVar8 = *pbVar5 == *pbVar6;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;\n    if (!bVar8) break;\ncode_r0x00107e6f:\n    if (iVar3 == 0) break;\n  }\n  if ((!bVar7 && !bVar8) != bVar7) {\n    return pbVar1;\n  }\n  *param_4 = 0;\n  *param_5 = 0;\n  return (byte *)0x0;\n}\n\n" comment (function_definition "byte * FUN_00107e00(int param_1,int param_2,byte *param_3,undefined4 *param_4,undefined4 *param_5,\n                   undefined1 *param_6,undefined1 param_7)\n\n{\n  byte *pbVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int *piVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  piVar4 = (int *)**(int **)(param_1 + 4);\n  if (piVar4 != *(int **)(param_1 + 4)) {\n    do {\n      pbVar1 = (byte *)(**(code **)(*(int *)piVar4[2] + 0x1c))\n                                 ((int *)piVar4[2],param_2,param_3,param_4,param_5,param_6,param_7);\n      bVar7 = false;\n      bVar8 = pbVar1 == (byte *)0x0;\n      if (!bVar8) {\n        iVar3 = 10;\n        pbVar5 = pbVar1;\n        pbVar6 = (byte *)"/DISCARD/";\n        goto code_r0x00107e6f;\n      }\n      piVar4 = (int *)*piVar4;\n    } while ((int *)*(int *)(param_1 + 4) != piVar4);\n  }\n  *param_4 = 0;\n  *param_5 = 0;\n  *param_6 = 0;\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  iVar3 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x5a88);\n  if (iVar3 == 1) {\n    return (byte *)0x0;\n  }\n  if (iVar3 == 3) {\n    if (param_2 == 0) {\n      uVar2 = gettext("unplaced orphan section \'%s\'");\n    }\n    else {\n      uVar2 = gettext("unplaced orphan section \'%s\' from \'%s\'");\n    }\n    FUN_0005ad00(uVar2,param_3);\n    return (byte *)0x0;\n  }\n  if (iVar3 != 2) {\n    return param_3;\n  }\n  if (param_2 != 0) {\n    uVar2 = gettext("orphan section \'%s\' from \'%s\' is being placed in section \'%s\'");\n    FUN_0005ad30(uVar2,param_3,param_2,param_3);\n    return param_3;\n  }\n  uVar2 = gettext("orphan section \'%s\' is being placed in section \'%s\'");\n  FUN_0005ad30(uVar2,param_3,param_3);\n  return param_3;\n  while( true ) {\n    iVar3 = iVar3 + -1;\n    bVar7 = *pbVar5 < *pbVar6;\n    bVar8 = *pbVar5 == *pbVar6;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;\n    if (!bVar8) break;\ncode_r0x00107e6f:\n    if (iVar3 == 0) break;\n  }\n  if ((!bVar7 && !bVar8) != bVar7) {\n    return pbVar1;\n  }\n  *param_4 = 0;\n  *param_5 = 0;\n  return (byte *)0x0;\n}" type_identifier (pointer_declarator "* FUN_00107e00(int param_1,int param_2,byte *param_3,undefined4 *param_4,undefined4 *param_5,\n                   undefined1 *param_6,undefined1 param_7)" * (function_declarator "FUN_00107e00(int param_1,int param_2,byte *param_3,undefined4 *param_4,undefined4 *param_5,\n                   undefined1 *param_6,undefined1 param_7)" identifier (parameter_list "(int param_1,int param_2,byte *param_3,undefined4 *param_4,undefined4 *param_5,\n                   undefined1 *param_6,undefined1 param_7)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "byte *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "undefined4 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "undefined1 *param_6" type_identifier (pointer_declarator "*param_6" * identifier)) , (parameter_declaration "undefined1 param_7" type_identifier identifier) )))) (compound_statement "{\n  byte *pbVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int *piVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  piVar4 = (int *)**(int **)(param_1 + 4);\n  if (piVar4 != *(int **)(param_1 + 4)) {\n    do {\n      pbVar1 = (byte *)(**(code **)(*(int *)piVar4[2] + 0x1c))\n                                 ((int *)piVar4[2],param_2,param_3,param_4,param_5,param_6,param_7);\n      bVar7 = false;\n      bVar8 = pbVar1 == (byte *)0x0;\n      if (!bVar8) {\n        iVar3 = 10;\n        pbVar5 = pbVar1;\n        pbVar6 = (byte *)"/DISCARD/";\n        goto code_r0x00107e6f;\n      }\n      piVar4 = (int *)*piVar4;\n    } while ((int *)*(int *)(param_1 + 4) != piVar4);\n  }\n  *param_4 = 0;\n  *param_5 = 0;\n  *param_6 = 0;\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  iVar3 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x5a88);\n  if (iVar3 == 1) {\n    return (byte *)0x0;\n  }\n  if (iVar3 == 3) {\n    if (param_2 == 0) {\n      uVar2 = gettext("unplaced orphan section \'%s\'");\n    }\n    else {\n      uVar2 = gettext("unplaced orphan section \'%s\' from \'%s\'");\n    }\n    FUN_0005ad00(uVar2,param_3);\n    return (byte *)0x0;\n  }\n  if (iVar3 != 2) {\n    return param_3;\n  }\n  if (param_2 != 0) {\n    uVar2 = gettext("orphan section \'%s\' from \'%s\' is being placed in section \'%s\'");\n    FUN_0005ad30(uVar2,param_3,param_2,param_3);\n    return param_3;\n  }\n  uVar2 = gettext("orphan section \'%s\' is being placed in section \'%s\'");\n  FUN_0005ad30(uVar2,param_3,param_3);\n  return param_3;\n  while( true ) {\n    iVar3 = iVar3 + -1;\n    bVar7 = *pbVar5 < *pbVar6;\n    bVar8 = *pbVar5 == *pbVar6;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;\n    if (!bVar8) break;\ncode_r0x00107e6f:\n    if (iVar3 == 0) break;\n  }\n  if ((!bVar7 && !bVar8) != bVar7) {\n    return pbVar1;\n  }\n  *param_4 = 0;\n  *param_5 = 0;\n  return (byte *)0x0;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "bool bVar8;" primitive_type identifier ;) (declaration "byte bVar9;" type_identifier identifier ;) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" identifier = number_literal) ;) (expression_statement "piVar4 = (int *)**(int **)(param_1 + 4);" (assignment_expression "piVar4 = (int *)**(int **)(param_1 + 4)" identifier = (cast_expression "(int *)**(int **)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(int **)(param_1 + 4)" * (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))))) ;) (if_statement "if (piVar4 != *(int **)(param_1 + 4)) {\n    do {\n      pbVar1 = (byte *)(**(code **)(*(int *)piVar4[2] + 0x1c))\n                                 ((int *)piVar4[2],param_2,param_3,param_4,param_5,param_6,param_7);\n      bVar7 = false;\n      bVar8 = pbVar1 == (byte *)0x0;\n      if (!bVar8) {\n        iVar3 = 10;\n        pbVar5 = pbVar1;\n        pbVar6 = (byte *)"/DISCARD/";\n        goto code_r0x00107e6f;\n      }\n      piVar4 = (int *)*piVar4;\n    } while ((int *)*(int *)(param_1 + 4) != piVar4);\n  }" if (parenthesized_expression "(piVar4 != *(int **)(param_1 + 4))" ( (binary_expression "piVar4 != *(int **)(param_1 + 4)" identifier != (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) )) (compound_statement "{\n    do {\n      pbVar1 = (byte *)(**(code **)(*(int *)piVar4[2] + 0x1c))\n                                 ((int *)piVar4[2],param_2,param_3,param_4,param_5,param_6,param_7);\n      bVar7 = false;\n      bVar8 = pbVar1 == (byte *)0x0;\n      if (!bVar8) {\n        iVar3 = 10;\n        pbVar5 = pbVar1;\n        pbVar6 = (byte *)"/DISCARD/";\n        goto code_r0x00107e6f;\n      }\n      piVar4 = (int *)*piVar4;\n    } while ((int *)*(int *)(param_1 + 4) != piVar4);\n  }" { (do_statement "do {\n      pbVar1 = (byte *)(**(code **)(*(int *)piVar4[2] + 0x1c))\n                                 ((int *)piVar4[2],param_2,param_3,param_4,param_5,param_6,param_7);\n      bVar7 = false;\n      bVar8 = pbVar1 == (byte *)0x0;\n      if (!bVar8) {\n        iVar3 = 10;\n        pbVar5 = pbVar1;\n        pbVar6 = (byte *)"/DISCARD/";\n        goto code_r0x00107e6f;\n      }\n      piVar4 = (int *)*piVar4;\n    } while ((int *)*(int *)(param_1 + 4) != piVar4);" do (compound_statement "{\n      pbVar1 = (byte *)(**(code **)(*(int *)piVar4[2] + 0x1c))\n                                 ((int *)piVar4[2],param_2,param_3,param_4,param_5,param_6,param_7);\n      bVar7 = false;\n      bVar8 = pbVar1 == (byte *)0x0;\n      if (!bVar8) {\n        iVar3 = 10;\n        pbVar5 = pbVar1;\n        pbVar6 = (byte *)"/DISCARD/";\n        goto code_r0x00107e6f;\n      }\n      piVar4 = (int *)*piVar4;\n    }" { (expression_statement "pbVar1 = (byte *)(**(code **)(*(int *)piVar4[2] + 0x1c))\n                                 ((int *)piVar4[2],param_2,param_3,param_4,param_5,param_6,param_7);" (assignment_expression "pbVar1 = (byte *)(**(code **)(*(int *)piVar4[2] + 0x1c))\n                                 ((int *)piVar4[2],param_2,param_3,param_4,param_5,param_6,param_7)" identifier = (cast_expression "(byte *)(**(code **)(*(int *)piVar4[2] + 0x1c))\n                                 ((int *)piVar4[2],param_2,param_3,param_4,param_5,param_6,param_7)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(*(int *)piVar4[2] + 0x1c))\n                                 ((int *)piVar4[2],param_2,param_3,param_4,param_5,param_6,param_7)" (parenthesized_expression "(**(code **)(*(int *)piVar4[2] + 0x1c))" ( (pointer_expression "**(code **)(*(int *)piVar4[2] + 0x1c)" * (pointer_expression "*(code **)(*(int *)piVar4[2] + 0x1c)" * (cast_expression "(code **)(*(int *)piVar4[2] + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)piVar4[2] + 0x1c)" ( (binary_expression "*(int *)piVar4[2] + 0x1c" (pointer_expression "*(int *)piVar4[2]" * (cast_expression "(int *)piVar4[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[2]" identifier [ number_literal ]))) + number_literal) ))))) )) (argument_list "((int *)piVar4[2],param_2,param_3,param_4,param_5,param_6,param_7)" ( (cast_expression "(int *)piVar4[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[2]" identifier [ number_literal ])) , identifier , identifier , identifier , identifier , identifier , identifier ))))) ;) (expression_statement "bVar7 = false;" (assignment_expression "bVar7 = false" identifier = false) ;) (expression_statement "bVar8 = pbVar1 == (byte *)0x0;" (assignment_expression "bVar8 = pbVar1 == (byte *)0x0" identifier = (binary_expression "pbVar1 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (if_statement "if (!bVar8) {\n        iVar3 = 10;\n        pbVar5 = pbVar1;\n        pbVar6 = (byte *)"/DISCARD/";\n        goto code_r0x00107e6f;\n      }" if (parenthesized_expression "(!bVar8)" ( (unary_expression "!bVar8" ! identifier) )) (compound_statement "{\n        iVar3 = 10;\n        pbVar5 = pbVar1;\n        pbVar6 = (byte *)"/DISCARD/";\n        goto code_r0x00107e6f;\n      }" { (expression_statement "iVar3 = 10;" (assignment_expression "iVar3 = 10" identifier = number_literal) ;) (expression_statement "pbVar5 = pbVar1;" (assignment_expression "pbVar5 = pbVar1" identifier = identifier) ;) (expression_statement "pbVar6 = (byte *)"/DISCARD/";" (assignment_expression "pbVar6 = (byte *)"/DISCARD/"" identifier = (cast_expression "(byte *)"/DISCARD/"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""/DISCARD/"" " string_content "))) ;) (goto_statement "goto code_r0x00107e6f;" goto statement_identifier ;) })) (expression_statement "piVar4 = (int *)*piVar4;" (assignment_expression "piVar4 = (int *)*piVar4" identifier = (cast_expression "(int *)*piVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier))) ;) }) while (parenthesized_expression "((int *)*(int *)(param_1 + 4) != piVar4)" ( (binary_expression "(int *)*(int *)(param_1 + 4) != piVar4" (cast_expression "(int *)*(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) != identifier) )) ;) })) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) (expression_statement "*param_5 = 0;" (assignment_expression "*param_5 = 0" (pointer_expression "*param_5" * identifier) = number_literal) ;) (expression_statement "*param_6 = 0;" (assignment_expression "*param_6 = 0" (pointer_expression "*param_6" * 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 "iVar3 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x5a88);" (assignment_expression "iVar3 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x5a88)" identifier = (pointer_expression "*(int *)(*(int *)(DAT_00302378 + 8) + 0x5a88)" * (cast_expression "(int *)(*(int *)(DAT_00302378 + 8) + 0x5a88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_00302378 + 8) + 0x5a88)" ( (binary_expression "*(int *)(DAT_00302378 + 8) + 0x5a88" (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 (iVar3 == 1) {\n    return (byte *)0x0;\n  }" if (parenthesized_expression "(iVar3 == 1)" ( (binary_expression "iVar3 == 1" identifier == number_literal) )) (compound_statement "{\n    return (byte *)0x0;\n  }" { (return_statement "return (byte *)0x0;" return (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if (iVar3 == 3) {\n    if (param_2 == 0) {\n      uVar2 = gettext("unplaced orphan section \'%s\'");\n    }\n    else {\n      uVar2 = gettext("unplaced orphan section \'%s\' from \'%s\'");\n    }\n    FUN_0005ad00(uVar2,param_3);\n    return (byte *)0x0;\n  }" if (parenthesized_expression "(iVar3 == 3)" ( (binary_expression "iVar3 == 3" identifier == number_literal) )) (compound_statement "{\n    if (param_2 == 0) {\n      uVar2 = gettext("unplaced orphan section \'%s\'");\n    }\n    else {\n      uVar2 = gettext("unplaced orphan section \'%s\' from \'%s\'");\n    }\n    FUN_0005ad00(uVar2,param_3);\n    return (byte *)0x0;\n  }" { (if_statement "if (param_2 == 0) {\n      uVar2 = gettext("unplaced orphan section \'%s\'");\n    }\n    else {\n      uVar2 = gettext("unplaced orphan section \'%s\' from \'%s\'");\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar2 = gettext("unplaced orphan section \'%s\'");\n    }" { (expression_statement "uVar2 = gettext("unplaced orphan section \'%s\'");" (assignment_expression "uVar2 = gettext("unplaced orphan section \'%s\'")" identifier = (call_expression "gettext("unplaced orphan section \'%s\'")" identifier (argument_list "("unplaced orphan section \'%s\'")" ( (string_literal ""unplaced orphan section \'%s\'"" " string_content escape_sequence string_content escape_sequence ") )))) ;) }) (else_clause "else {\n      uVar2 = gettext("unplaced orphan section \'%s\' from \'%s\'");\n    }" else (compound_statement "{\n      uVar2 = gettext("unplaced orphan section \'%s\' from \'%s\'");\n    }" { (expression_statement "uVar2 = gettext("unplaced orphan section \'%s\' from \'%s\'");" (assignment_expression "uVar2 = gettext("unplaced orphan section \'%s\' from \'%s\'")" identifier = (call_expression "gettext("unplaced orphan section \'%s\' from \'%s\'")" identifier (argument_list "("unplaced orphan section \'%s\' from \'%s\'")" ( (string_literal ""unplaced orphan section \'%s\' from \'%s\'"" " string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence ") )))) ;) }))) (expression_statement "FUN_0005ad00(uVar2,param_3);" (call_expression "FUN_0005ad00(uVar2,param_3)" identifier (argument_list "(uVar2,param_3)" ( identifier , identifier ))) ;) (return_statement "return (byte *)0x0;" return (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if (iVar3 != 2) {\n    return param_3;\n  }" if (parenthesized_expression "(iVar3 != 2)" ( (binary_expression "iVar3 != 2" identifier != number_literal) )) (compound_statement "{\n    return param_3;\n  }" { (return_statement "return param_3;" return identifier ;) })) (if_statement "if (param_2 != 0) {\n    uVar2 = gettext("orphan section \'%s\' from \'%s\' is being placed in section \'%s\'");\n    FUN_0005ad30(uVar2,param_3,param_2,param_3);\n    return param_3;\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar2 = gettext("orphan section \'%s\' from \'%s\' is being placed in section \'%s\'");\n    FUN_0005ad30(uVar2,param_3,param_2,param_3);\n    return param_3;\n  }" { (expression_statement "uVar2 = gettext("orphan section \'%s\' from \'%s\' is being placed in section \'%s\'");" (assignment_expression "uVar2 = gettext("orphan section \'%s\' from \'%s\' is being placed in section \'%s\'")" identifier = (call_expression "gettext("orphan section \'%s\' from \'%s\' is being placed in section \'%s\'")" identifier (argument_list "("orphan section \'%s\' from \'%s\' is being placed in section \'%s\'")" ( (string_literal ""orphan section \'%s\' from \'%s\' is being placed in section \'%s\'"" " string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence ") )))) ;) (expression_statement "FUN_0005ad30(uVar2,param_3,param_2,param_3);" (call_expression "FUN_0005ad30(uVar2,param_3,param_2,param_3)" identifier (argument_list "(uVar2,param_3,param_2,param_3)" ( identifier , identifier , identifier , identifier ))) ;) (return_statement "return param_3;" return identifier ;) })) (expression_statement "uVar2 = gettext("orphan section \'%s\' is being placed in section \'%s\'");" (assignment_expression "uVar2 = gettext("orphan section \'%s\' is being placed in section \'%s\'")" identifier = (call_expression "gettext("orphan section \'%s\' is being placed in section \'%s\'")" identifier (argument_list "("orphan section \'%s\' is being placed in section \'%s\'")" ( (string_literal ""orphan section \'%s\' is being placed in section \'%s\'"" " string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence ") )))) ;) (expression_statement "FUN_0005ad30(uVar2,param_3,param_3);" (call_expression "FUN_0005ad30(uVar2,param_3,param_3)" identifier (argument_list "(uVar2,param_3,param_3)" ( identifier , identifier , identifier ))) ;) (return_statement "return param_3;" return identifier ;) (while_statement "while( true ) {\n    iVar3 = iVar3 + -1;\n    bVar7 = *pbVar5 < *pbVar6;\n    bVar8 = *pbVar5 == *pbVar6;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;\n    if (!bVar8) break;\ncode_r0x00107e6f:\n    if (iVar3 == 0) break;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar3 = iVar3 + -1;\n    bVar7 = *pbVar5 < *pbVar6;\n    bVar8 = *pbVar5 == *pbVar6;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;\n    if (!bVar8) break;\ncode_r0x00107e6f:\n    if (iVar3 == 0) break;\n  }" { (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (expression_statement "bVar7 = *pbVar5 < *pbVar6;" (assignment_expression "bVar7 = *pbVar5 < *pbVar6" identifier = (binary_expression "*pbVar5 < *pbVar6" (pointer_expression "*pbVar5" * identifier) < (pointer_expression "*pbVar6" * identifier))) ;) (expression_statement "bVar8 = *pbVar5 == *pbVar6;" (assignment_expression "bVar8 = *pbVar5 == *pbVar6" identifier = (binary_expression "*pbVar5 == *pbVar6" (pointer_expression "*pbVar5" * identifier) == (pointer_expression "*pbVar6" * identifier))) ;) (expression_statement "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "pbVar5 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar5 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "pbVar6 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar6 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (if_statement "if (!bVar8) break;" if (parenthesized_expression "(!bVar8)" ( (unary_expression "!bVar8" ! identifier) )) (break_statement "break;" break ;)) (labeled_statement "code_r0x00107e6f:\n    if (iVar3 == 0) break;" statement_identifier : (if_statement "if (iVar3 == 0) break;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;))) })) (if_statement "if ((!bVar7 && !bVar8) != bVar7) {\n    return pbVar1;\n  }" if (parenthesized_expression "((!bVar7 && !bVar8) != bVar7)" ( (binary_expression "(!bVar7 && !bVar8) != bVar7" (parenthesized_expression "(!bVar7 && !bVar8)" ( (binary_expression "!bVar7 && !bVar8" (unary_expression "!bVar7" ! identifier) && (unary_expression "!bVar8" ! identifier)) )) != identifier) )) (compound_statement "{\n    return pbVar1;\n  }" { (return_statement "return pbVar1;" return identifier ;) })) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) (expression_statement "*param_5 = 0;" (assignment_expression "*param_5 = 0" (pointer_expression "*param_5" * identifier) = number_literal) ;) (return_statement "return (byte *)0x0;" return (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* WARNING: Type propagation algorithm not settling */\n/* WARNING: Enum "DT": Some values do not have unique names */\n/* DWARF original prototype: char * output_section_name(Script_sections * this, char * file_name,\n   char * section_name, Output_section * * * output_section_slot, Section_type * psection_type, bool\n   * keep, bool is_input_section) */\n\nchar * __thiscall\ngold::Script_sections::output_section_name\n          (Script_sections *this,char *file_name,char *section_name,\n          Output_section ***output_section_slot,Section_type *psection_type,bool *keep,\n          bool is_input_section)\n\n{\n  Orphan_handling OVar1;\n  byte *pbVar2;\n  char *pcVar3;\n  int iVar4;\n  _List_node_base *p_Var5;\n  byte *pbVar6;\n  byte *pbVar7;\n  bool bVar8;\n  bool bVar9;\n  byte bVar10;\n  \n  bVar10 = 0;\n  p_Var5 = (this->sections_elements_->\n           super__List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_>).\n           _M_impl._M_node.super__List_node_base._M_next;\n  if (p_Var5 != (_List_node_base *)this->sections_elements_) {\n    do {\n      pbVar2 = (byte *)(**(code **)(*(int *)p_Var5[1]._M_next + 0x1c))\n                                 (p_Var5[1]._M_next,file_name,section_name,output_section_slot,\n                                  psection_type,keep,is_input_section);\n      bVar8 = false;\n      bVar9 = pbVar2 == (byte *)0x0;\n      if (!bVar9) {\n        iVar4 = 10;\n        pbVar6 = pbVar2;\n        pbVar7 = (byte *)"/DISCARD/";\n        goto code_r0x00107e6f;\n      }\n      p_Var5 = (((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n                &p_Var5->_M_next)->_M_impl)._M_node.super__List_node_base._M_next;\n    } while ((_List_node_base *)this->sections_elements_ != p_Var5);\n  }\n  *output_section_slot = (Output_section **)0x0;\n  *psection_type = ST_NONE;\n  *keep = false;\n  if (parameters->options_ == (General_options *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n  }\n  OVar1 = parameters->options_->orphan_handling_enum_;\n  if (OVar1 == ORPHAN_DISCARD) {\n    return (char *)(byte *)0x0;\n  }\n  if (OVar1 == ORPHAN_ERROR) {\n    if (file_name == (char *)0x0) {\n      pcVar3 = (char *)gettext("unplaced orphan section \'%s\'");\n    }\n    else {\n      pcVar3 = (char *)gettext("unplaced orphan section \'%s\' from \'%s\'");\n    }\n    gold_error(pcVar3,section_name);\n    return (char *)(byte *)0x0;\n  }\n  if (OVar1 != ORPHAN_WARN) {\n    return section_name;\n  }\n  if (file_name != (char *)0x0) {\n    pcVar3 = (char *)gettext("orphan section \'%s\' from \'%s\' is being placed in section \'%s\'");\n    gold_warning(pcVar3,section_name,file_name,section_name);\n    return section_name;\n  }\n  pcVar3 = (char *)gettext("orphan section \'%s\' is being placed in section \'%s\'");\n  gold_warning(pcVar3,section_name,section_name);\n  return section_name;\n  while( true ) {\n    iVar4 = iVar4 + -1;\n    bVar8 = *pbVar6 < *pbVar7;\n    bVar9 = *pbVar6 == *pbVar7;\n    pbVar6 = pbVar6 + (uint)bVar10 * -2 + 1;\n    pbVar7 = pbVar7 + (uint)bVar10 * -2 + 1;\n    if (!bVar9) break;\ncode_r0x00107e6f:\n    if (iVar4 == 0) break;\n  }\n  if ((!bVar8 && !bVar9) != bVar8) {\n    return (char *)pbVar2;\n  }\n  *output_section_slot = (Output_section **)0x0;\n  *psection_type = ST_NONE;\n  return (char *)0x0;\n}\n\n" comment comment comment comment (declaration "char * __thiscall" primitive_type (pointer_declarator "* __thiscall" * identifier) ;) (labeled_statement "gold::Script_sections::output_section_name\n          (Script_sections *this,char *file_name,char *section_name,\n          Output_section ***output_section_slot,Section_type *psection_type,bool *keep,\n          bool is_input_section)\n\n{\n  Orphan_handling OVar1;" statement_identifier : (ERROR ":" :) (labeled_statement "Script_sections::output_section_name\n          (Script_sections *this,char *file_name,char *section_name,\n          Output_section ***output_section_slot,Section_type *psection_type,bool *keep,\n          bool is_input_section)\n\n{\n  Orphan_handling OVar1;" statement_identifier : (ERROR ":output_section_name\n          (Script_sections *this,char *file_name,char *section_name,\n          Output_section ***output_section_slot,Section_type *psection_type,bool *keep,\n          bool is_input_section)\n\n{" : (call_expression "output_section_name\n          (Script_sections *this,char *file_name,char *section_name,\n          Output_section ***output_section_slot,Section_type *psection_type,bool *keep,\n          bool is_input_section)" identifier (argument_list "(Script_sections *this,char *file_name,char *section_name,\n          Output_section ***output_section_slot,Section_type *psection_type,bool *keep,\n          bool is_input_section)" ( (binary_expression "Script_sections *this" identifier * identifier) , (binary_expression "char *file_name" identifier * identifier) , (binary_expression "char *section_name" identifier * identifier) , (binary_expression "Output_section ***output_section_slot" identifier * (pointer_expression "**output_section_slot" * (pointer_expression "*output_section_slot" * identifier))) , (binary_expression "Section_type *psection_type" identifier * identifier) , (binary_expression "bool *keep" identifier * identifier) , (ERROR "bool" identifier) identifier ))) {) (declaration "Orphan_handling OVar1;" type_identifier identifier ;))) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "_List_node_base *p_Var5;" type_identifier (pointer_declarator "*p_Var5" * identifier) ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "bool bVar8;" primitive_type identifier ;) (declaration "bool bVar9;" primitive_type identifier ;) (declaration "byte bVar10;" type_identifier identifier ;) (expression_statement "bVar10 = 0;" (assignment_expression "bVar10 = 0" identifier = number_literal) ;) (expression_statement "p_Var5 = (this->sections_elements_->\n           super__List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_>).\n           _M_impl._M_node.super__List_node_base._M_next;" (assignment_expression "p_Var5 = (this->sections_elements_->\n           super__List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_>).\n           _M_impl._M_node.super__List_node_base._M_next" identifier = (field_expression "(this->sections_elements_->\n           super__List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_>).\n           _M_impl._M_node.super__List_node_base._M_next" (field_expression "(this->sections_elements_->\n           super__List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_>).\n           _M_impl._M_node.super__List_node_base" (field_expression "(this->sections_elements_->\n           super__List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_>).\n           _M_impl._M_node" (field_expression "(this->sections_elements_->\n           super__List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_>).\n           _M_impl" (parenthesized_expression "(this->sections_elements_->\n           super__List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_>)" ( (binary_expression "this->sections_elements_->\n           super__List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_>" (binary_expression "this->sections_elements_->\n           super__List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_" (binary_expression "this->sections_elements_->\n           super__List_base<gold::Sections_element*,_std::allocator<gold" (binary_expression "this->sections_elements_->\n           super__List_base<gold::Sections_element*,_std" (binary_expression "this->sections_elements_->\n           super__List_base<gold" (field_expression "this->sections_elements_->\n           super__List_base" (field_expression "this->sections_elements_" identifier -> field_identifier) -> field_identifier) < identifier) (ERROR "::Sections_element" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Sections_element" : : identifier) * (ERROR ">" >) identifier) > identifier) )) . field_identifier) . field_identifier) . field_identifier) . field_identifier)) ;) (if_statement "if (p_Var5 != (_List_node_base *)this->sections_elements_) {\n    do {\n      pbVar2 = (byte *)(**(code **)(*(int *)p_Var5[1]._M_next + 0x1c))\n                                 (p_Var5[1]._M_next,file_name,section_name,output_section_slot,\n                                  psection_type,keep,is_input_section);\n      bVar8 = false;\n      bVar9 = pbVar2 == (byte *)0x0;\n      if (!bVar9) {\n        iVar4 = 10;\n        pbVar6 = pbVar2;\n        pbVar7 = (byte *)"/DISCARD/";\n        goto code_r0x00107e6f;\n      }\n      p_Var5 = (((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n                &p_Var5->_M_next)->_M_impl)._M_node.super__List_node_base._M_next;\n    } while ((_List_node_base *)this->sections_elements_ != p_Var5);\n  }" if (parenthesized_expression "(p_Var5 != (_List_node_base *)this->sections_elements_)" ( (binary_expression "p_Var5 != (_List_node_base *)this->sections_elements_" identifier != (cast_expression "(_List_node_base *)this->sections_elements_" ( (type_descriptor "_List_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "this->sections_elements_" identifier -> field_identifier))) )) (compound_statement "{\n    do {\n      pbVar2 = (byte *)(**(code **)(*(int *)p_Var5[1]._M_next + 0x1c))\n                                 (p_Var5[1]._M_next,file_name,section_name,output_section_slot,\n                                  psection_type,keep,is_input_section);\n      bVar8 = false;\n      bVar9 = pbVar2 == (byte *)0x0;\n      if (!bVar9) {\n        iVar4 = 10;\n        pbVar6 = pbVar2;\n        pbVar7 = (byte *)"/DISCARD/";\n        goto code_r0x00107e6f;\n      }\n      p_Var5 = (((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n                &p_Var5->_M_next)->_M_impl)._M_node.super__List_node_base._M_next;\n    } while ((_List_node_base *)this->sections_elements_ != p_Var5);\n  }" { (do_statement "do {\n      pbVar2 = (byte *)(**(code **)(*(int *)p_Var5[1]._M_next + 0x1c))\n                                 (p_Var5[1]._M_next,file_name,section_name,output_section_slot,\n                                  psection_type,keep,is_input_section);\n      bVar8 = false;\n      bVar9 = pbVar2 == (byte *)0x0;\n      if (!bVar9) {\n        iVar4 = 10;\n        pbVar6 = pbVar2;\n        pbVar7 = (byte *)"/DISCARD/";\n        goto code_r0x00107e6f;\n      }\n      p_Var5 = (((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n                &p_Var5->_M_next)->_M_impl)._M_node.super__List_node_base._M_next;\n    } while ((_List_node_base *)this->sections_elements_ != p_Var5);" do (compound_statement "{\n      pbVar2 = (byte *)(**(code **)(*(int *)p_Var5[1]._M_next + 0x1c))\n                                 (p_Var5[1]._M_next,file_name,section_name,output_section_slot,\n                                  psection_type,keep,is_input_section);\n      bVar8 = false;\n      bVar9 = pbVar2 == (byte *)0x0;\n      if (!bVar9) {\n        iVar4 = 10;\n        pbVar6 = pbVar2;\n        pbVar7 = (byte *)"/DISCARD/";\n        goto code_r0x00107e6f;\n      }\n      p_Var5 = (((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n                &p_Var5->_M_next)->_M_impl)._M_node.super__List_node_base._M_next;\n    }" { (expression_statement "pbVar2 = (byte *)(**(code **)(*(int *)p_Var5[1]._M_next + 0x1c))\n                                 (p_Var5[1]._M_next,file_name,section_name,output_section_slot,\n                                  psection_type,keep,is_input_section);" (assignment_expression "pbVar2 = (byte *)(**(code **)(*(int *)p_Var5[1]._M_next + 0x1c))\n                                 (p_Var5[1]._M_next,file_name,section_name,output_section_slot,\n                                  psection_type,keep,is_input_section)" identifier = (cast_expression "(byte *)(**(code **)(*(int *)p_Var5[1]._M_next + 0x1c))\n                                 (p_Var5[1]._M_next,file_name,section_name,output_section_slot,\n                                  psection_type,keep,is_input_section)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(*(int *)p_Var5[1]._M_next + 0x1c))\n                                 (p_Var5[1]._M_next,file_name,section_name,output_section_slot,\n                                  psection_type,keep,is_input_section)" (parenthesized_expression "(**(code **)(*(int *)p_Var5[1]._M_next + 0x1c))" ( (pointer_expression "**(code **)(*(int *)p_Var5[1]._M_next + 0x1c)" * (pointer_expression "*(code **)(*(int *)p_Var5[1]._M_next + 0x1c)" * (cast_expression "(code **)(*(int *)p_Var5[1]._M_next + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)p_Var5[1]._M_next + 0x1c)" ( (binary_expression "*(int *)p_Var5[1]._M_next + 0x1c" (pointer_expression "*(int *)p_Var5[1]._M_next" * (cast_expression "(int *)p_Var5[1]._M_next" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "p_Var5[1]._M_next" (subscript_expression "p_Var5[1]" identifier [ number_literal ]) . field_identifier))) + number_literal) ))))) )) (argument_list "(p_Var5[1]._M_next,file_name,section_name,output_section_slot,\n                                  psection_type,keep,is_input_section)" ( (field_expression "p_Var5[1]._M_next" (subscript_expression "p_Var5[1]" identifier [ number_literal ]) . field_identifier) , identifier , identifier , identifier , identifier , identifier , identifier ))))) ;) (expression_statement "bVar8 = false;" (assignment_expression "bVar8 = false" identifier = false) ;) (expression_statement "bVar9 = pbVar2 == (byte *)0x0;" (assignment_expression "bVar9 = pbVar2 == (byte *)0x0" identifier = (binary_expression "pbVar2 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (if_statement "if (!bVar9) {\n        iVar4 = 10;\n        pbVar6 = pbVar2;\n        pbVar7 = (byte *)"/DISCARD/";\n        goto code_r0x00107e6f;\n      }" if (parenthesized_expression "(!bVar9)" ( (unary_expression "!bVar9" ! identifier) )) (compound_statement "{\n        iVar4 = 10;\n        pbVar6 = pbVar2;\n        pbVar7 = (byte *)"/DISCARD/";\n        goto code_r0x00107e6f;\n      }" { (expression_statement "iVar4 = 10;" (assignment_expression "iVar4 = 10" identifier = number_literal) ;) (expression_statement "pbVar6 = pbVar2;" (assignment_expression "pbVar6 = pbVar2" identifier = identifier) ;) (expression_statement "pbVar7 = (byte *)"/DISCARD/";" (assignment_expression "pbVar7 = (byte *)"/DISCARD/"" identifier = (cast_expression "(byte *)"/DISCARD/"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""/DISCARD/"" " string_content "))) ;) (goto_statement "goto code_r0x00107e6f;" goto statement_identifier ;) })) (expression_statement "p_Var5 = (((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n                &p_Var5->_M_next)->_M_impl)._M_node.super__List_node_base._M_next;" (assignment_expression "p_Var5 = (((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n                &p_Var5->_M_next)->_M_impl)._M_node.super__List_node_base._M_next" identifier = (field_expression "(((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n                &p_Var5->_M_next)->_M_impl)._M_node.super__List_node_base._M_next" (field_expression "(((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n                &p_Var5->_M_next)->_M_impl)._M_node.super__List_node_base" (field_expression "(((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n                &p_Var5->_M_next)->_M_impl)._M_node" (parenthesized_expression "(((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n                &p_Var5->_M_next)->_M_impl)" ( (field_expression "((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n                &p_Var5->_M_next)->_M_impl" (parenthesized_expression "((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n                &p_Var5->_M_next)" ( (binary_expression "(_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n                &p_Var5->_M_next" (parenthesized_expression "(_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)" ( (ERROR "_List_base<gold::Sections_element*,_std::allocator<gold::" (binary_expression "_List_base<gold" identifier < identifier) : : (type_descriptor "Sections_element*" type_identifier (abstract_pointer_declarator "*" *)) , identifier : : (binary_expression "allocator<gold" identifier < identifier) : :) (binary_expression "Sections_element*>_> *" (binary_expression "Sections_element*>_" identifier * (ERROR ">" >) identifier) > (pointer_expression "*" * identifier)) )) & (field_expression "p_Var5->_M_next" identifier -> field_identifier)) )) -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier)) ;) }) while (parenthesized_expression "((_List_node_base *)this->sections_elements_ != p_Var5)" ( (binary_expression "(_List_node_base *)this->sections_elements_ != p_Var5" (cast_expression "(_List_node_base *)this->sections_elements_" ( (type_descriptor "_List_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "this->sections_elements_" identifier -> field_identifier)) != identifier) )) ;) })) (expression_statement "*output_section_slot = (Output_section **)0x0;" (assignment_expression "*output_section_slot = (Output_section **)0x0" (pointer_expression "*output_section_slot" * identifier) = (cast_expression "(Output_section **)0x0" ( (type_descriptor "Output_section **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) (expression_statement "*psection_type = ST_NONE;" (assignment_expression "*psection_type = ST_NONE" (pointer_expression "*psection_type" * identifier) = identifier) ;) (expression_statement "*keep = false;" (assignment_expression "*keep = false" (pointer_expression "*keep" * identifier) = false) ;) (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 "OVar1 = parameters->options_->orphan_handling_enum_;" (assignment_expression "OVar1 = parameters->options_->orphan_handling_enum_" identifier = (field_expression "parameters->options_->orphan_handling_enum_" (field_expression "parameters->options_" identifier -> field_identifier) -> field_identifier)) ;) (if_statement "if (OVar1 == ORPHAN_DISCARD) {\n    return (char *)(byte *)0x0;\n  }" if (parenthesized_expression "(OVar1 == ORPHAN_DISCARD)" ( (binary_expression "OVar1 == ORPHAN_DISCARD" identifier == identifier) )) (compound_statement "{\n    return (char *)(byte *)0x0;\n  }" { (return_statement "return (char *)(byte *)0x0;" return (cast_expression "(char *)(byte *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (if_statement "if (OVar1 == ORPHAN_ERROR) {\n    if (file_name == (char *)0x0) {\n      pcVar3 = (char *)gettext("unplaced orphan section \'%s\'");\n    }\n    else {\n      pcVar3 = (char *)gettext("unplaced orphan section \'%s\' from \'%s\'");\n    }\n    gold_error(pcVar3,section_name);\n    return (char *)(byte *)0x0;\n  }" if (parenthesized_expression "(OVar1 == ORPHAN_ERROR)" ( (binary_expression "OVar1 == ORPHAN_ERROR" identifier == identifier) )) (compound_statement "{\n    if (file_name == (char *)0x0) {\n      pcVar3 = (char *)gettext("unplaced orphan section \'%s\'");\n    }\n    else {\n      pcVar3 = (char *)gettext("unplaced orphan section \'%s\' from \'%s\'");\n    }\n    gold_error(pcVar3,section_name);\n    return (char *)(byte *)0x0;\n  }" { (if_statement "if (file_name == (char *)0x0) {\n      pcVar3 = (char *)gettext("unplaced orphan section \'%s\'");\n    }\n    else {\n      pcVar3 = (char *)gettext("unplaced orphan section \'%s\' from \'%s\'");\n    }" if (parenthesized_expression "(file_name == (char *)0x0)" ( (binary_expression "file_name == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pcVar3 = (char *)gettext("unplaced orphan section \'%s\'");\n    }" { (expression_statement "pcVar3 = (char *)gettext("unplaced orphan section \'%s\'");" (assignment_expression "pcVar3 = (char *)gettext("unplaced orphan section \'%s\'")" identifier = (cast_expression "(char *)gettext("unplaced orphan section \'%s\'")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext("unplaced orphan section \'%s\'")" identifier (argument_list "("unplaced orphan section \'%s\'")" ( (string_literal ""unplaced orphan section \'%s\'"" " string_content escape_sequence string_content escape_sequence ") ))))) ;) }) (else_clause "else {\n      pcVar3 = (char *)gettext("unplaced orphan section \'%s\' from \'%s\'");\n    }" else (compound_statement "{\n      pcVar3 = (char *)gettext("unplaced orphan section \'%s\' from \'%s\'");\n    }" { (expression_statement "pcVar3 = (char *)gettext("unplaced orphan section \'%s\' from \'%s\'");" (assignment_expression "pcVar3 = (char *)gettext("unplaced orphan section \'%s\' from \'%s\'")" identifier = (cast_expression "(char *)gettext("unplaced orphan section \'%s\' from \'%s\'")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext("unplaced orphan section \'%s\' from \'%s\'")" identifier (argument_list "("unplaced orphan section \'%s\' from \'%s\'")" ( (string_literal ""unplaced orphan section \'%s\' from \'%s\'"" " string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence ") ))))) ;) }))) (expression_statement "gold_error(pcVar3,section_name);" (call_expression "gold_error(pcVar3,section_name)" identifier (argument_list "(pcVar3,section_name)" ( identifier , identifier ))) ;) (return_statement "return (char *)(byte *)0x0;" return (cast_expression "(char *)(byte *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (if_statement "if (OVar1 != ORPHAN_WARN) {\n    return section_name;\n  }" if (parenthesized_expression "(OVar1 != ORPHAN_WARN)" ( (binary_expression "OVar1 != ORPHAN_WARN" identifier != identifier) )) (compound_statement "{\n    return section_name;\n  }" { (return_statement "return section_name;" return identifier ;) })) (if_statement "if (file_name != (char *)0x0) {\n    pcVar3 = (char *)gettext("orphan section \'%s\' from \'%s\' is being placed in section \'%s\'");\n    gold_warning(pcVar3,section_name,file_name,section_name);\n    return section_name;\n  }" if (parenthesized_expression "(file_name != (char *)0x0)" ( (binary_expression "file_name != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar3 = (char *)gettext("orphan section \'%s\' from \'%s\' is being placed in section \'%s\'");\n    gold_warning(pcVar3,section_name,file_name,section_name);\n    return section_name;\n  }" { (expression_statement "pcVar3 = (char *)gettext("orphan section \'%s\' from \'%s\' is being placed in section \'%s\'");" (assignment_expression "pcVar3 = (char *)gettext("orphan section \'%s\' from \'%s\' is being placed in section \'%s\'")" identifier = (cast_expression "(char *)gettext("orphan section \'%s\' from \'%s\' is being placed in section \'%s\'")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext("orphan section \'%s\' from \'%s\' is being placed in section \'%s\'")" identifier (argument_list "("orphan section \'%s\' from \'%s\' is being placed in section \'%s\'")" ( (string_literal ""orphan section \'%s\' from \'%s\' is being placed in section \'%s\'"" " string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence ") ))))) ;) (expression_statement "gold_warning(pcVar3,section_name,file_name,section_name);" (call_expression "gold_warning(pcVar3,section_name,file_name,section_name)" identifier (argument_list "(pcVar3,section_name,file_name,section_name)" ( identifier , identifier , identifier , identifier ))) ;) (return_statement "return section_name;" return identifier ;) })) (expression_statement "pcVar3 = (char *)gettext("orphan section \'%s\' is being placed in section \'%s\'");" (assignment_expression "pcVar3 = (char *)gettext("orphan section \'%s\' is being placed in section \'%s\'")" identifier = (cast_expression "(char *)gettext("orphan section \'%s\' is being placed in section \'%s\'")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext("orphan section \'%s\' is being placed in section \'%s\'")" identifier (argument_list "("orphan section \'%s\' is being placed in section \'%s\'")" ( (string_literal ""orphan section \'%s\' is being placed in section \'%s\'"" " string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence ") ))))) ;) (expression_statement "gold_warning(pcVar3,section_name,section_name);" (call_expression "gold_warning(pcVar3,section_name,section_name)" identifier (argument_list "(pcVar3,section_name,section_name)" ( identifier , identifier , identifier ))) ;) (return_statement "return section_name;" return identifier ;) (while_statement "while( true ) {\n    iVar4 = iVar4 + -1;\n    bVar8 = *pbVar6 < *pbVar7;\n    bVar9 = *pbVar6 == *pbVar7;\n    pbVar6 = pbVar6 + (uint)bVar10 * -2 + 1;\n    pbVar7 = pbVar7 + (uint)bVar10 * -2 + 1;\n    if (!bVar9) break;\ncode_r0x00107e6f:\n    if (iVar4 == 0) break;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar4 = iVar4 + -1;\n    bVar8 = *pbVar6 < *pbVar7;\n    bVar9 = *pbVar6 == *pbVar7;\n    pbVar6 = pbVar6 + (uint)bVar10 * -2 + 1;\n    pbVar7 = pbVar7 + (uint)bVar10 * -2 + 1;\n    if (!bVar9) break;\ncode_r0x00107e6f:\n    if (iVar4 == 0) break;\n  }" { (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (expression_statement "bVar8 = *pbVar6 < *pbVar7;" (assignment_expression "bVar8 = *pbVar6 < *pbVar7" identifier = (binary_expression "*pbVar6 < *pbVar7" (pointer_expression "*pbVar6" * identifier) < (pointer_expression "*pbVar7" * identifier))) ;) (expression_statement "bVar9 = *pbVar6 == *pbVar7;" (assignment_expression "bVar9 = *pbVar6 == *pbVar7" identifier = (binary_expression "*pbVar6 == *pbVar7" (pointer_expression "*pbVar6" * identifier) == (pointer_expression "*pbVar7" * identifier))) ;) (expression_statement "pbVar6 = pbVar6 + (uint)bVar10 * -2 + 1;" (assignment_expression "pbVar6 = pbVar6 + (uint)bVar10 * -2 + 1" identifier = (binary_expression "pbVar6 + (uint)bVar10 * -2 + 1" (binary_expression "pbVar6 + (uint)bVar10 * -2" identifier + (binary_expression "(uint)bVar10 * -2" (cast_expression "(uint)bVar10" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar7 = pbVar7 + (uint)bVar10 * -2 + 1;" (assignment_expression "pbVar7 = pbVar7 + (uint)bVar10 * -2 + 1" identifier = (binary_expression "pbVar7 + (uint)bVar10 * -2 + 1" (binary_expression "pbVar7 + (uint)bVar10 * -2" identifier + (binary_expression "(uint)bVar10 * -2" (cast_expression "(uint)bVar10" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (if_statement "if (!bVar9) break;" if (parenthesized_expression "(!bVar9)" ( (unary_expression "!bVar9" ! identifier) )) (break_statement "break;" break ;)) (labeled_statement "code_r0x00107e6f:\n    if (iVar4 == 0) break;" statement_identifier : (if_statement "if (iVar4 == 0) break;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;))) })) (if_statement "if ((!bVar8 && !bVar9) != bVar8) {\n    return (char *)pbVar2;\n  }" if (parenthesized_expression "((!bVar8 && !bVar9) != bVar8)" ( (binary_expression "(!bVar8 && !bVar9) != bVar8" (parenthesized_expression "(!bVar8 && !bVar9)" ( (binary_expression "!bVar8 && !bVar9" (unary_expression "!bVar8" ! identifier) && (unary_expression "!bVar9" ! identifier)) )) != identifier) )) (compound_statement "{\n    return (char *)pbVar2;\n  }" { (return_statement "return (char *)pbVar2;" return (cast_expression "(char *)pbVar2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) ;) })) (expression_statement "*output_section_slot = (Output_section **)0x0;" (assignment_expression "*output_section_slot = (Output_section **)0x0" (pointer_expression "*output_section_slot" * identifier) = (cast_expression "(Output_section **)0x0" ( (type_descriptor "Output_section **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) (expression_statement "*psection_type = ST_NONE;" (assignment_expression "*psection_type = ST_NONE" (pointer_expression "*psection_type" * identifier) = identifier) ;) (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) (ERROR "}" }))
(translation_unit "byte * FUN_00107e00(int param_1,int param_2,byte *param_3,undefined4 *param_4,undefined4 *param_5,\n                   undefined1 *param_6,undefined1 param_7)\n\n{\n  byte *pbVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int *piVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  piVar4 = (int *)**(int **)(param_1 + 4);\n  if (piVar4 != *(int **)(param_1 + 4)) {\n    do {\n      pbVar1 = (byte *)(**(code **)(*(int *)piVar4[2] + 0x1c))\n                                 ((int *)piVar4[2],param_2,param_3,param_4,param_5,param_6,param_7);\n      bVar7 = false;\n      bVar8 = pbVar1 == (byte *)0x0;\n      if (!bVar8) {\n        iVar3 = 10;\n        pbVar5 = pbVar1;\n        pbVar6 = (byte *)"/DISCARD/";\n        goto code_r0x00107e6f;\n      }\n      piVar4 = (int *)*piVar4;\n    } while ((int *)*(int *)(param_1 + 4) != piVar4);\n  }\n  *param_4 = 0;\n  *param_5 = 0;\n  *param_6 = 0;\n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_1);\n  }\n  iVar3 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x5a88);\n  if (iVar3 == 1) {\n    return (byte *)0x0;\n  }\n  if (iVar3 == 3) {\n    if (param_2 == 0) {\n      uVar2 = gettext("unplaced orphan section \'%s\'");\n    }\n    else {\n      uVar2 = gettext("unplaced orphan section \'%s\' from \'%s\'");\n    }\n    FUN_0005ad00(uVar2,param_3);\n    return (byte *)0x0;\n  }\n  if (iVar3 != 2) {\n    return param_3;\n  }\n  if (param_2 != 0) {\n    uVar2 = gettext("orphan section \'%s\' from \'%s\' is being placed in section \'%s\'");\n    FUN_0005ad30(uVar2,param_3,param_2,param_3);\n    return param_3;\n  }\n  uVar2 = gettext("orphan section \'%s\' is being placed in section \'%s\'");\n  FUN_0005ad30(uVar2,param_3,param_3);\n  return param_3;\n  while( true ) {\n    iVar3 = iVar3 + -1;\n    bVar7 = *pbVar5 < *pbVar6;\n    bVar8 = *pbVar5 == *pbVar6;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;\n    if (!bVar8) break;\ncode_r0x00107e6f:\n    if (iVar3 == 0) break;\n  }\n  if ((!bVar7 && !bVar8) != bVar7) {\n    return pbVar1;\n  }\n  *param_4 = 0;\n  *param_5 = 0;\n  return (byte *)0x0;\n}\n\n" (function_definition "byte * FUN_00107e00(int param_1,int param_2,byte *param_3,undefined4 *param_4,undefined4 *param_5,\n                   undefined1 *param_6,undefined1 param_7)\n\n{\n  byte *pbVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int *piVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  piVar4 = (int *)**(int **)(param_1 + 4);\n  if (piVar4 != *(int **)(param_1 + 4)) {\n    do {\n      pbVar1 = (byte *)(**(code **)(*(int *)piVar4[2] + 0x1c))\n                                 ((int *)piVar4[2],param_2,param_3,param_4,param_5,param_6,param_7);\n      bVar7 = false;\n      bVar8 = pbVar1 == (byte *)0x0;\n      if (!bVar8) {\n        iVar3 = 10;\n        pbVar5 = pbVar1;\n        pbVar6 = (byte *)"/DISCARD/";\n        goto code_r0x00107e6f;\n      }\n      piVar4 = (int *)*piVar4;\n    } while ((int *)*(int *)(param_1 + 4) != piVar4);\n  }\n  *param_4 = 0;\n  *param_5 = 0;\n  *param_6 = 0;\n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_1);\n  }\n  iVar3 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x5a88);\n  if (iVar3 == 1) {\n    return (byte *)0x0;\n  }\n  if (iVar3 == 3) {\n    if (param_2 == 0) {\n      uVar2 = gettext("unplaced orphan section \'%s\'");\n    }\n    else {\n      uVar2 = gettext("unplaced orphan section \'%s\' from \'%s\'");\n    }\n    FUN_0005ad00(uVar2,param_3);\n    return (byte *)0x0;\n  }\n  if (iVar3 != 2) {\n    return param_3;\n  }\n  if (param_2 != 0) {\n    uVar2 = gettext("orphan section \'%s\' from \'%s\' is being placed in section \'%s\'");\n    FUN_0005ad30(uVar2,param_3,param_2,param_3);\n    return param_3;\n  }\n  uVar2 = gettext("orphan section \'%s\' is being placed in section \'%s\'");\n  FUN_0005ad30(uVar2,param_3,param_3);\n  return param_3;\n  while( true ) {\n    iVar3 = iVar3 + -1;\n    bVar7 = *pbVar5 < *pbVar6;\n    bVar8 = *pbVar5 == *pbVar6;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;\n    if (!bVar8) break;\ncode_r0x00107e6f:\n    if (iVar3 == 0) break;\n  }\n  if ((!bVar7 && !bVar8) != bVar7) {\n    return pbVar1;\n  }\n  *param_4 = 0;\n  *param_5 = 0;\n  return (byte *)0x0;\n}" type_identifier (pointer_declarator "* FUN_00107e00(int param_1,int param_2,byte *param_3,undefined4 *param_4,undefined4 *param_5,\n                   undefined1 *param_6,undefined1 param_7)" * (function_declarator "FUN_00107e00(int param_1,int param_2,byte *param_3,undefined4 *param_4,undefined4 *param_5,\n                   undefined1 *param_6,undefined1 param_7)" identifier (parameter_list "(int param_1,int param_2,byte *param_3,undefined4 *param_4,undefined4 *param_5,\n                   undefined1 *param_6,undefined1 param_7)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "byte *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "undefined4 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "undefined1 *param_6" type_identifier (pointer_declarator "*param_6" * identifier)) , (parameter_declaration "undefined1 param_7" type_identifier identifier) )))) (compound_statement "{\n  byte *pbVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int *piVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  piVar4 = (int *)**(int **)(param_1 + 4);\n  if (piVar4 != *(int **)(param_1 + 4)) {\n    do {\n      pbVar1 = (byte *)(**(code **)(*(int *)piVar4[2] + 0x1c))\n                                 ((int *)piVar4[2],param_2,param_3,param_4,param_5,param_6,param_7);\n      bVar7 = false;\n      bVar8 = pbVar1 == (byte *)0x0;\n      if (!bVar8) {\n        iVar3 = 10;\n        pbVar5 = pbVar1;\n        pbVar6 = (byte *)"/DISCARD/";\n        goto code_r0x00107e6f;\n      }\n      piVar4 = (int *)*piVar4;\n    } while ((int *)*(int *)(param_1 + 4) != piVar4);\n  }\n  *param_4 = 0;\n  *param_5 = 0;\n  *param_6 = 0;\n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_1);\n  }\n  iVar3 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x5a88);\n  if (iVar3 == 1) {\n    return (byte *)0x0;\n  }\n  if (iVar3 == 3) {\n    if (param_2 == 0) {\n      uVar2 = gettext("unplaced orphan section \'%s\'");\n    }\n    else {\n      uVar2 = gettext("unplaced orphan section \'%s\' from \'%s\'");\n    }\n    FUN_0005ad00(uVar2,param_3);\n    return (byte *)0x0;\n  }\n  if (iVar3 != 2) {\n    return param_3;\n  }\n  if (param_2 != 0) {\n    uVar2 = gettext("orphan section \'%s\' from \'%s\' is being placed in section \'%s\'");\n    FUN_0005ad30(uVar2,param_3,param_2,param_3);\n    return param_3;\n  }\n  uVar2 = gettext("orphan section \'%s\' is being placed in section \'%s\'");\n  FUN_0005ad30(uVar2,param_3,param_3);\n  return param_3;\n  while( true ) {\n    iVar3 = iVar3 + -1;\n    bVar7 = *pbVar5 < *pbVar6;\n    bVar8 = *pbVar5 == *pbVar6;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;\n    if (!bVar8) break;\ncode_r0x00107e6f:\n    if (iVar3 == 0) break;\n  }\n  if ((!bVar7 && !bVar8) != bVar7) {\n    return pbVar1;\n  }\n  *param_4 = 0;\n  *param_5 = 0;\n  return (byte *)0x0;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "bool bVar8;" primitive_type identifier ;) (declaration "byte bVar9;" type_identifier identifier ;) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" identifier = number_literal) ;) (expression_statement "piVar4 = (int *)**(int **)(param_1 + 4);" (assignment_expression "piVar4 = (int *)**(int **)(param_1 + 4)" identifier = (cast_expression "(int *)**(int **)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(int **)(param_1 + 4)" * (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))))) ;) (if_statement "if (piVar4 != *(int **)(param_1 + 4)) {\n    do {\n      pbVar1 = (byte *)(**(code **)(*(int *)piVar4[2] + 0x1c))\n                                 ((int *)piVar4[2],param_2,param_3,param_4,param_5,param_6,param_7);\n      bVar7 = false;\n      bVar8 = pbVar1 == (byte *)0x0;\n      if (!bVar8) {\n        iVar3 = 10;\n        pbVar5 = pbVar1;\n        pbVar6 = (byte *)"/DISCARD/";\n        goto code_r0x00107e6f;\n      }\n      piVar4 = (int *)*piVar4;\n    } while ((int *)*(int *)(param_1 + 4) != piVar4);\n  }" if (parenthesized_expression "(piVar4 != *(int **)(param_1 + 4))" ( (binary_expression "piVar4 != *(int **)(param_1 + 4)" identifier != (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) )) (compound_statement "{\n    do {\n      pbVar1 = (byte *)(**(code **)(*(int *)piVar4[2] + 0x1c))\n                                 ((int *)piVar4[2],param_2,param_3,param_4,param_5,param_6,param_7);\n      bVar7 = false;\n      bVar8 = pbVar1 == (byte *)0x0;\n      if (!bVar8) {\n        iVar3 = 10;\n        pbVar5 = pbVar1;\n        pbVar6 = (byte *)"/DISCARD/";\n        goto code_r0x00107e6f;\n      }\n      piVar4 = (int *)*piVar4;\n    } while ((int *)*(int *)(param_1 + 4) != piVar4);\n  }" { (do_statement "do {\n      pbVar1 = (byte *)(**(code **)(*(int *)piVar4[2] + 0x1c))\n                                 ((int *)piVar4[2],param_2,param_3,param_4,param_5,param_6,param_7);\n      bVar7 = false;\n      bVar8 = pbVar1 == (byte *)0x0;\n      if (!bVar8) {\n        iVar3 = 10;\n        pbVar5 = pbVar1;\n        pbVar6 = (byte *)"/DISCARD/";\n        goto code_r0x00107e6f;\n      }\n      piVar4 = (int *)*piVar4;\n    } while ((int *)*(int *)(param_1 + 4) != piVar4);" do (compound_statement "{\n      pbVar1 = (byte *)(**(code **)(*(int *)piVar4[2] + 0x1c))\n                                 ((int *)piVar4[2],param_2,param_3,param_4,param_5,param_6,param_7);\n      bVar7 = false;\n      bVar8 = pbVar1 == (byte *)0x0;\n      if (!bVar8) {\n        iVar3 = 10;\n        pbVar5 = pbVar1;\n        pbVar6 = (byte *)"/DISCARD/";\n        goto code_r0x00107e6f;\n      }\n      piVar4 = (int *)*piVar4;\n    }" { (expression_statement "pbVar1 = (byte *)(**(code **)(*(int *)piVar4[2] + 0x1c))\n                                 ((int *)piVar4[2],param_2,param_3,param_4,param_5,param_6,param_7);" (assignment_expression "pbVar1 = (byte *)(**(code **)(*(int *)piVar4[2] + 0x1c))\n                                 ((int *)piVar4[2],param_2,param_3,param_4,param_5,param_6,param_7)" identifier = (cast_expression "(byte *)(**(code **)(*(int *)piVar4[2] + 0x1c))\n                                 ((int *)piVar4[2],param_2,param_3,param_4,param_5,param_6,param_7)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(*(int *)piVar4[2] + 0x1c))\n                                 ((int *)piVar4[2],param_2,param_3,param_4,param_5,param_6,param_7)" (parenthesized_expression "(**(code **)(*(int *)piVar4[2] + 0x1c))" ( (pointer_expression "**(code **)(*(int *)piVar4[2] + 0x1c)" * (pointer_expression "*(code **)(*(int *)piVar4[2] + 0x1c)" * (cast_expression "(code **)(*(int *)piVar4[2] + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)piVar4[2] + 0x1c)" ( (binary_expression "*(int *)piVar4[2] + 0x1c" (pointer_expression "*(int *)piVar4[2]" * (cast_expression "(int *)piVar4[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[2]" identifier [ number_literal ]))) + number_literal) ))))) )) (argument_list "((int *)piVar4[2],param_2,param_3,param_4,param_5,param_6,param_7)" ( (cast_expression "(int *)piVar4[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[2]" identifier [ number_literal ])) , identifier , identifier , identifier , identifier , identifier , identifier ))))) ;) (expression_statement "bVar7 = false;" (assignment_expression "bVar7 = false" identifier = false) ;) (expression_statement "bVar8 = pbVar1 == (byte *)0x0;" (assignment_expression "bVar8 = pbVar1 == (byte *)0x0" identifier = (binary_expression "pbVar1 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (if_statement "if (!bVar8) {\n        iVar3 = 10;\n        pbVar5 = pbVar1;\n        pbVar6 = (byte *)"/DISCARD/";\n        goto code_r0x00107e6f;\n      }" if (parenthesized_expression "(!bVar8)" ( (unary_expression "!bVar8" ! identifier) )) (compound_statement "{\n        iVar3 = 10;\n        pbVar5 = pbVar1;\n        pbVar6 = (byte *)"/DISCARD/";\n        goto code_r0x00107e6f;\n      }" { (expression_statement "iVar3 = 10;" (assignment_expression "iVar3 = 10" identifier = number_literal) ;) (expression_statement "pbVar5 = pbVar1;" (assignment_expression "pbVar5 = pbVar1" identifier = identifier) ;) (expression_statement "pbVar6 = (byte *)"/DISCARD/";" (assignment_expression "pbVar6 = (byte *)"/DISCARD/"" identifier = (cast_expression "(byte *)"/DISCARD/"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""/DISCARD/"" " string_content "))) ;) (goto_statement "goto code_r0x00107e6f;" goto statement_identifier ;) })) (expression_statement "piVar4 = (int *)*piVar4;" (assignment_expression "piVar4 = (int *)*piVar4" identifier = (cast_expression "(int *)*piVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier))) ;) }) while (parenthesized_expression "((int *)*(int *)(param_1 + 4) != piVar4)" ( (binary_expression "(int *)*(int *)(param_1 + 4) != piVar4" (cast_expression "(int *)*(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) != identifier) )) ;) })) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) (expression_statement "*param_5 = 0;" (assignment_expression "*param_5 = 0" (pointer_expression "*param_5" * identifier) = number_literal) ;) (expression_statement "*param_6 = 0;" (assignment_expression "*param_6 = 0" (pointer_expression "*param_6" * 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 "iVar3 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x5a88);" (assignment_expression "iVar3 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x5a88)" identifier = (pointer_expression "*(int *)(*(int *)(DAT_00302378 + 8) + 0x5a88)" * (cast_expression "(int *)(*(int *)(DAT_00302378 + 8) + 0x5a88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_00302378 + 8) + 0x5a88)" ( (binary_expression "*(int *)(DAT_00302378 + 8) + 0x5a88" (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 (iVar3 == 1) {\n    return (byte *)0x0;\n  }" if (parenthesized_expression "(iVar3 == 1)" ( (binary_expression "iVar3 == 1" identifier == number_literal) )) (compound_statement "{\n    return (byte *)0x0;\n  }" { (return_statement "return (byte *)0x0;" return (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if (iVar3 == 3) {\n    if (param_2 == 0) {\n      uVar2 = gettext("unplaced orphan section \'%s\'");\n    }\n    else {\n      uVar2 = gettext("unplaced orphan section \'%s\' from \'%s\'");\n    }\n    FUN_0005ad00(uVar2,param_3);\n    return (byte *)0x0;\n  }" if (parenthesized_expression "(iVar3 == 3)" ( (binary_expression "iVar3 == 3" identifier == number_literal) )) (compound_statement "{\n    if (param_2 == 0) {\n      uVar2 = gettext("unplaced orphan section \'%s\'");\n    }\n    else {\n      uVar2 = gettext("unplaced orphan section \'%s\' from \'%s\'");\n    }\n    FUN_0005ad00(uVar2,param_3);\n    return (byte *)0x0;\n  }" { (if_statement "if (param_2 == 0) {\n      uVar2 = gettext("unplaced orphan section \'%s\'");\n    }\n    else {\n      uVar2 = gettext("unplaced orphan section \'%s\' from \'%s\'");\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar2 = gettext("unplaced orphan section \'%s\'");\n    }" { (expression_statement "uVar2 = gettext("unplaced orphan section \'%s\'");" (assignment_expression "uVar2 = gettext("unplaced orphan section \'%s\'")" identifier = (call_expression "gettext("unplaced orphan section \'%s\'")" identifier (argument_list "("unplaced orphan section \'%s\'")" ( (string_literal ""unplaced orphan section \'%s\'"" " string_content escape_sequence string_content escape_sequence ") )))) ;) }) (else_clause "else {\n      uVar2 = gettext("unplaced orphan section \'%s\' from \'%s\'");\n    }" else (compound_statement "{\n      uVar2 = gettext("unplaced orphan section \'%s\' from \'%s\'");\n    }" { (expression_statement "uVar2 = gettext("unplaced orphan section \'%s\' from \'%s\'");" (assignment_expression "uVar2 = gettext("unplaced orphan section \'%s\' from \'%s\'")" identifier = (call_expression "gettext("unplaced orphan section \'%s\' from \'%s\'")" identifier (argument_list "("unplaced orphan section \'%s\' from \'%s\'")" ( (string_literal ""unplaced orphan section \'%s\' from \'%s\'"" " string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence ") )))) ;) }))) (expression_statement "FUN_0005ad00(uVar2,param_3);" (call_expression "FUN_0005ad00(uVar2,param_3)" identifier (argument_list "(uVar2,param_3)" ( identifier , identifier ))) ;) (return_statement "return (byte *)0x0;" return (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if (iVar3 != 2) {\n    return param_3;\n  }" if (parenthesized_expression "(iVar3 != 2)" ( (binary_expression "iVar3 != 2" identifier != number_literal) )) (compound_statement "{\n    return param_3;\n  }" { (return_statement "return param_3;" return identifier ;) })) (if_statement "if (param_2 != 0) {\n    uVar2 = gettext("orphan section \'%s\' from \'%s\' is being placed in section \'%s\'");\n    FUN_0005ad30(uVar2,param_3,param_2,param_3);\n    return param_3;\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar2 = gettext("orphan section \'%s\' from \'%s\' is being placed in section \'%s\'");\n    FUN_0005ad30(uVar2,param_3,param_2,param_3);\n    return param_3;\n  }" { (expression_statement "uVar2 = gettext("orphan section \'%s\' from \'%s\' is being placed in section \'%s\'");" (assignment_expression "uVar2 = gettext("orphan section \'%s\' from \'%s\' is being placed in section \'%s\'")" identifier = (call_expression "gettext("orphan section \'%s\' from \'%s\' is being placed in section \'%s\'")" identifier (argument_list "("orphan section \'%s\' from \'%s\' is being placed in section \'%s\'")" ( (string_literal ""orphan section \'%s\' from \'%s\' is being placed in section \'%s\'"" " string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence ") )))) ;) (expression_statement "FUN_0005ad30(uVar2,param_3,param_2,param_3);" (call_expression "FUN_0005ad30(uVar2,param_3,param_2,param_3)" identifier (argument_list "(uVar2,param_3,param_2,param_3)" ( identifier , identifier , identifier , identifier ))) ;) (return_statement "return param_3;" return identifier ;) })) (expression_statement "uVar2 = gettext("orphan section \'%s\' is being placed in section \'%s\'");" (assignment_expression "uVar2 = gettext("orphan section \'%s\' is being placed in section \'%s\'")" identifier = (call_expression "gettext("orphan section \'%s\' is being placed in section \'%s\'")" identifier (argument_list "("orphan section \'%s\' is being placed in section \'%s\'")" ( (string_literal ""orphan section \'%s\' is being placed in section \'%s\'"" " string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence ") )))) ;) (expression_statement "FUN_0005ad30(uVar2,param_3,param_3);" (call_expression "FUN_0005ad30(uVar2,param_3,param_3)" identifier (argument_list "(uVar2,param_3,param_3)" ( identifier , identifier , identifier ))) ;) (return_statement "return param_3;" return identifier ;) (while_statement "while( true ) {\n    iVar3 = iVar3 + -1;\n    bVar7 = *pbVar5 < *pbVar6;\n    bVar8 = *pbVar5 == *pbVar6;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;\n    if (!bVar8) break;\ncode_r0x00107e6f:\n    if (iVar3 == 0) break;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar3 = iVar3 + -1;\n    bVar7 = *pbVar5 < *pbVar6;\n    bVar8 = *pbVar5 == *pbVar6;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;\n    if (!bVar8) break;\ncode_r0x00107e6f:\n    if (iVar3 == 0) break;\n  }" { (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (expression_statement "bVar7 = *pbVar5 < *pbVar6;" (assignment_expression "bVar7 = *pbVar5 < *pbVar6" identifier = (binary_expression "*pbVar5 < *pbVar6" (pointer_expression "*pbVar5" * identifier) < (pointer_expression "*pbVar6" * identifier))) ;) (expression_statement "bVar8 = *pbVar5 == *pbVar6;" (assignment_expression "bVar8 = *pbVar5 == *pbVar6" identifier = (binary_expression "*pbVar5 == *pbVar6" (pointer_expression "*pbVar5" * identifier) == (pointer_expression "*pbVar6" * identifier))) ;) (expression_statement "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "pbVar5 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar5 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "pbVar6 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar6 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (if_statement "if (!bVar8) break;" if (parenthesized_expression "(!bVar8)" ( (unary_expression "!bVar8" ! identifier) )) (break_statement "break;" break ;)) (labeled_statement "code_r0x00107e6f:\n    if (iVar3 == 0) break;" statement_identifier : (if_statement "if (iVar3 == 0) break;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;))) })) (if_statement "if ((!bVar7 && !bVar8) != bVar7) {\n    return pbVar1;\n  }" if (parenthesized_expression "((!bVar7 && !bVar8) != bVar7)" ( (binary_expression "(!bVar7 && !bVar8) != bVar7" (parenthesized_expression "(!bVar7 && !bVar8)" ( (binary_expression "!bVar7 && !bVar8" (unary_expression "!bVar7" ! identifier) && (unary_expression "!bVar8" ! identifier)) )) != identifier) )) (compound_statement "{\n    return pbVar1;\n  }" { (return_statement "return pbVar1;" return identifier ;) })) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) (expression_statement "*param_5 = 0;" (assignment_expression "*param_5 = 0" (pointer_expression "*param_5" * identifier) = number_literal) ;) (return_statement "return (byte *)0x0;" return (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (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 * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) + LIT) ))))) )) (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT ))))) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ;) (if_statement if (parenthesized_expression ( (unary_expression ! IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (string_literal " string_content "))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) != IDENT) )) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (pointer_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 { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence string_content escape_sequence ") )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence ") )))) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence ") )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence ") )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (return_statement return IDENT ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (if_statement if (parenthesized_expression ( (unary_expression ! IDENT) )) (break_statement break ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;))) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! IDENT) && (unary_expression ! IDENT)) )) != IDENT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })))
(function_definition "byte * FUN_00107e00(int param_1,int param_2,byte *param_3,undefined4 *param_4,undefined4 *param_5,\n                   undefined1 *param_6,undefined1 param_7)\n\n{\n  byte *pbVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int *piVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  piVar4 = (int *)**(int **)(param_1 + 4);\n  if (piVar4 != *(int **)(param_1 + 4)) {\n    do {\n      pbVar1 = (byte *)(**(code **)(*(int *)piVar4[2] + 0x1c))\n                                 ((int *)piVar4[2],param_2,param_3,param_4,param_5,param_6,param_7);\n      bVar7 = false;\n      bVar8 = pbVar1 == (byte *)0x0;\n      if (!bVar8) {\n        iVar3 = 10;\n        pbVar5 = pbVar1;\n        pbVar6 = (byte *)"/DISCARD/";\n        goto code_r0x00107e6f;\n      }\n      piVar4 = (int *)*piVar4;\n    } while ((int *)*(int *)(param_1 + 4) != piVar4);\n  }\n  *param_4 = 0;\n  *param_5 = 0;\n  *param_6 = 0;\n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_1);\n  }\n  iVar3 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x5a88);\n  if (iVar3 == 1) {\n    return (byte *)0x0;\n  }\n  if (iVar3 == 3) {\n    if (param_2 == 0) {\n      uVar2 = gettext("unplaced orphan section \'%s\'");\n    }\n    else {\n      uVar2 = gettext("unplaced orphan section \'%s\' from \'%s\'");\n    }\n    FUN_0005ad00(uVar2,param_3);\n    return (byte *)0x0;\n  }\n  if (iVar3 != 2) {\n    return param_3;\n  }\n  if (param_2 != 0) {\n    uVar2 = gettext("orphan section \'%s\' from \'%s\' is being placed in section \'%s\'");\n    FUN_0005ad30(uVar2,param_3,param_2,param_3);\n    return param_3;\n  }\n  uVar2 = gettext("orphan section \'%s\' is being placed in section \'%s\'");\n  FUN_0005ad30(uVar2,param_3,param_3);\n  return param_3;\n  while( true ) {\n    iVar3 = iVar3 + -1;\n    bVar7 = *pbVar5 < *pbVar6;\n    bVar8 = *pbVar5 == *pbVar6;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;\n    if (!bVar8) break;\ncode_r0x00107e6f:\n    if (iVar3 == 0) break;\n  }\n  if ((!bVar7 && !bVar8) != bVar7) {\n    return pbVar1;\n  }\n  *param_4 = 0;\n  *param_5 = 0;\n  return (byte *)0x0;\n}" (type_identifier "byte") (pointer_declarator "* FUN_00107e00(int param_1,int param_2,byte *param_3,undefined4 *param_4,undefined4 *param_5,\n                   undefined1 *param_6,undefined1 param_7)" (* "*") (function_declarator "FUN_00107e00(int param_1,int param_2,byte *param_3,undefined4 *param_4,undefined4 *param_5,\n                   undefined1 *param_6,undefined1 param_7)" (identifier "FUN_00107e00") (parameter_list "(int param_1,int param_2,byte *param_3,undefined4 *param_4,undefined4 *param_5,\n                   undefined1 *param_6,undefined1 param_7)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "byte *param_3" (type_identifier "byte") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "undefined4 *param_5" (type_identifier "undefined4") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) (, ",") (parameter_declaration "undefined1 *param_6" (type_identifier "undefined1") (pointer_declarator "*param_6" (* "*") (identifier "param_6"))) (, ",") (parameter_declaration "undefined1 param_7" (type_identifier "undefined1") (identifier "param_7")) () ")")))) (compound_statement "{\n  byte *pbVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int *piVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  piVar4 = (int *)**(int **)(param_1 + 4);\n  if (piVar4 != *(int **)(param_1 + 4)) {\n    do {\n      pbVar1 = (byte *)(**(code **)(*(int *)piVar4[2] + 0x1c))\n                                 ((int *)piVar4[2],param_2,param_3,param_4,param_5,param_6,param_7);\n      bVar7 = false;\n      bVar8 = pbVar1 == (byte *)0x0;\n      if (!bVar8) {\n        iVar3 = 10;\n        pbVar5 = pbVar1;\n        pbVar6 = (byte *)"/DISCARD/";\n        goto code_r0x00107e6f;\n      }\n      piVar4 = (int *)*piVar4;\n    } while ((int *)*(int *)(param_1 + 4) != piVar4);\n  }\n  *param_4 = 0;\n  *param_5 = 0;\n  *param_6 = 0;\n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_1);\n  }\n  iVar3 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x5a88);\n  if (iVar3 == 1) {\n    return (byte *)0x0;\n  }\n  if (iVar3 == 3) {\n    if (param_2 == 0) {\n      uVar2 = gettext("unplaced orphan section \'%s\'");\n    }\n    else {\n      uVar2 = gettext("unplaced orphan section \'%s\' from \'%s\'");\n    }\n    FUN_0005ad00(uVar2,param_3);\n    return (byte *)0x0;\n  }\n  if (iVar3 != 2) {\n    return param_3;\n  }\n  if (param_2 != 0) {\n    uVar2 = gettext("orphan section \'%s\' from \'%s\' is being placed in section \'%s\'");\n    FUN_0005ad30(uVar2,param_3,param_2,param_3);\n    return param_3;\n  }\n  uVar2 = gettext("orphan section \'%s\' is being placed in section \'%s\'");\n  FUN_0005ad30(uVar2,param_3,param_3);\n  return param_3;\n  while( true ) {\n    iVar3 = iVar3 + -1;\n    bVar7 = *pbVar5 < *pbVar6;\n    bVar8 = *pbVar5 == *pbVar6;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;\n    if (!bVar8) break;\ncode_r0x00107e6f:\n    if (iVar3 == 0) break;\n  }\n  if ((!bVar7 && !bVar8) != bVar7) {\n    return pbVar1;\n  }\n  *param_4 = 0;\n  *param_5 = 0;\n  return (byte *)0x0;\n}" ({ "{") (declaration "byte *pbVar1;" (type_identifier "byte") (pointer_declarator "*pbVar1" (* "*") (identifier "pbVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "byte *pbVar5;" (type_identifier "byte") (pointer_declarator "*pbVar5" (* "*") (identifier "pbVar5")) (; ";")) (declaration "byte *pbVar6;" (type_identifier "byte") (pointer_declarator "*pbVar6" (* "*") (identifier "pbVar6")) (; ";")) (declaration "bool bVar7;" (primitive_type "bool") (identifier "bVar7") (; ";")) (declaration "bool bVar8;" (primitive_type "bool") (identifier "bVar8") (; ";")) (declaration "byte bVar9;" (type_identifier "byte") (identifier "bVar9") (; ";")) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" (identifier "bVar9") (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar4 = (int *)**(int **)(param_1 + 4);" (assignment_expression "piVar4 = (int *)**(int **)(param_1 + 4)" (identifier "piVar4") (= "=") (cast_expression "(int *)**(int **)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "**(int **)(param_1 + 4)" (* "*") (pointer_expression "*(int **)(param_1 + 4)" (* "*") (cast_expression "(int **)(param_1 + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))))) (; ";")) (if_statement "if (piVar4 != *(int **)(param_1 + 4)) {\n    do {\n      pbVar1 = (byte *)(**(code **)(*(int *)piVar4[2] + 0x1c))\n                                 ((int *)piVar4[2],param_2,param_3,param_4,param_5,param_6,param_7);\n      bVar7 = false;\n      bVar8 = pbVar1 == (byte *)0x0;\n      if (!bVar8) {\n        iVar3 = 10;\n        pbVar5 = pbVar1;\n        pbVar6 = (byte *)"/DISCARD/";\n        goto code_r0x00107e6f;\n      }\n      piVar4 = (int *)*piVar4;\n    } while ((int *)*(int *)(param_1 + 4) != piVar4);\n  }" (if "if") (parenthesized_expression "(piVar4 != *(int **)(param_1 + 4))" (( "(") (binary_expression "piVar4 != *(int **)(param_1 + 4)" (identifier "piVar4") (!= "!=") (pointer_expression "*(int **)(param_1 + 4)" (* "*") (cast_expression "(int **)(param_1 + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) () ")")) (compound_statement "{\n    do {\n      pbVar1 = (byte *)(**(code **)(*(int *)piVar4[2] + 0x1c))\n                                 ((int *)piVar4[2],param_2,param_3,param_4,param_5,param_6,param_7);\n      bVar7 = false;\n      bVar8 = pbVar1 == (byte *)0x0;\n      if (!bVar8) {\n        iVar3 = 10;\n        pbVar5 = pbVar1;\n        pbVar6 = (byte *)"/DISCARD/";\n        goto code_r0x00107e6f;\n      }\n      piVar4 = (int *)*piVar4;\n    } while ((int *)*(int *)(param_1 + 4) != piVar4);\n  }" ({ "{") (do_statement "do {\n      pbVar1 = (byte *)(**(code **)(*(int *)piVar4[2] + 0x1c))\n                                 ((int *)piVar4[2],param_2,param_3,param_4,param_5,param_6,param_7);\n      bVar7 = false;\n      bVar8 = pbVar1 == (byte *)0x0;\n      if (!bVar8) {\n        iVar3 = 10;\n        pbVar5 = pbVar1;\n        pbVar6 = (byte *)"/DISCARD/";\n        goto code_r0x00107e6f;\n      }\n      piVar4 = (int *)*piVar4;\n    } while ((int *)*(int *)(param_1 + 4) != piVar4);" (do "do") (compound_statement "{\n      pbVar1 = (byte *)(**(code **)(*(int *)piVar4[2] + 0x1c))\n                                 ((int *)piVar4[2],param_2,param_3,param_4,param_5,param_6,param_7);\n      bVar7 = false;\n      bVar8 = pbVar1 == (byte *)0x0;\n      if (!bVar8) {\n        iVar3 = 10;\n        pbVar5 = pbVar1;\n        pbVar6 = (byte *)"/DISCARD/";\n        goto code_r0x00107e6f;\n      }\n      piVar4 = (int *)*piVar4;\n    }" ({ "{") (expression_statement "pbVar1 = (byte *)(**(code **)(*(int *)piVar4[2] + 0x1c))\n                                 ((int *)piVar4[2],param_2,param_3,param_4,param_5,param_6,param_7);" (assignment_expression "pbVar1 = (byte *)(**(code **)(*(int *)piVar4[2] + 0x1c))\n                                 ((int *)piVar4[2],param_2,param_3,param_4,param_5,param_6,param_7)" (identifier "pbVar1") (= "=") (cast_expression "(byte *)(**(code **)(*(int *)piVar4[2] + 0x1c))\n                                 ((int *)piVar4[2],param_2,param_3,param_4,param_5,param_6,param_7)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)(*(int *)piVar4[2] + 0x1c))\n                                 ((int *)piVar4[2],param_2,param_3,param_4,param_5,param_6,param_7)" (parenthesized_expression "(**(code **)(*(int *)piVar4[2] + 0x1c))" (( "(") (pointer_expression "**(code **)(*(int *)piVar4[2] + 0x1c)" (* "*") (pointer_expression "*(code **)(*(int *)piVar4[2] + 0x1c)" (* "*") (cast_expression "(code **)(*(int *)piVar4[2] + 0x1c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)piVar4[2] + 0x1c)" (( "(") (binary_expression "*(int *)piVar4[2] + 0x1c" (pointer_expression "*(int *)piVar4[2]" (* "*") (cast_expression "(int *)piVar4[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar4[2]" (identifier "piVar4") ([ "[") (number_literal "2") (] "]")))) (+ "+") (number_literal "0x1c")) () ")"))))) () ")")) (argument_list "((int *)piVar4[2],param_2,param_3,param_4,param_5,param_6,param_7)" (( "(") (cast_expression "(int *)piVar4[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar4[2]" (identifier "piVar4") ([ "[") (number_literal "2") (] "]"))) (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "param_6") (, ",") (identifier "param_7") () ")"))))) (; ";")) (expression_statement "bVar7 = false;" (assignment_expression "bVar7 = false" (identifier "bVar7") (= "=") (false "false")) (; ";")) (expression_statement "bVar8 = pbVar1 == (byte *)0x0;" (assignment_expression "bVar8 = pbVar1 == (byte *)0x0" (identifier "bVar8") (= "=") (binary_expression "pbVar1 == (byte *)0x0" (identifier "pbVar1") (== "==") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) (; ";")) (if_statement "if (!bVar8) {\n        iVar3 = 10;\n        pbVar5 = pbVar1;\n        pbVar6 = (byte *)"/DISCARD/";\n        goto code_r0x00107e6f;\n      }" (if "if") (parenthesized_expression "(!bVar8)" (( "(") (unary_expression "!bVar8" (! "!") (identifier "bVar8")) () ")")) (compound_statement "{\n        iVar3 = 10;\n        pbVar5 = pbVar1;\n        pbVar6 = (byte *)"/DISCARD/";\n        goto code_r0x00107e6f;\n      }" ({ "{") (expression_statement "iVar3 = 10;" (assignment_expression "iVar3 = 10" (identifier "iVar3") (= "=") (number_literal "10")) (; ";")) (expression_statement "pbVar5 = pbVar1;" (assignment_expression "pbVar5 = pbVar1" (identifier "pbVar5") (= "=") (identifier "pbVar1")) (; ";")) (expression_statement "pbVar6 = (byte *)"/DISCARD/";" (assignment_expression "pbVar6 = (byte *)"/DISCARD/"" (identifier "pbVar6") (= "=") (cast_expression "(byte *)"/DISCARD/"" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (string_literal ""/DISCARD/"" (" """) (string_content "/DISCARD/") (" """)))) (; ";")) (goto_statement "goto code_r0x00107e6f;" (goto "goto") (statement_identifier "code_r0x00107e6f") (; ";")) (} "}"))) (expression_statement "piVar4 = (int *)*piVar4;" (assignment_expression "piVar4 = (int *)*piVar4" (identifier "piVar4") (= "=") (cast_expression "(int *)*piVar4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar4" (* "*") (identifier "piVar4")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((int *)*(int *)(param_1 + 4) != piVar4)" (( "(") (binary_expression "(int *)*(int *)(param_1 + 4) != piVar4" (cast_expression "(int *)*(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (!= "!=") (identifier "piVar4")) () ")")) (; ";")) (} "}"))) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_5 = 0;" (assignment_expression "*param_5 = 0" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_6 = 0;" (assignment_expression "*param_6 = 0" (pointer_expression "*param_6" (* "*") (identifier "param_6")) (= "=") (number_literal "0")) (; ";")) (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 "iVar3 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x5a88);" (assignment_expression "iVar3 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x5a88)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(*(int *)(DAT_00302378 + 8) + 0x5a88)" (* "*") (cast_expression "(int *)(*(int *)(DAT_00302378 + 8) + 0x5a88)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(DAT_00302378 + 8) + 0x5a88)" (( "(") (binary_expression "*(int *)(DAT_00302378 + 8) + 0x5a88" (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 "0x5a88")) () ")"))))) (; ";")) (if_statement "if (iVar3 == 1) {\n    return (byte *)0x0;\n  }" (if "if") (parenthesized_expression "(iVar3 == 1)" (( "(") (binary_expression "iVar3 == 1" (identifier "iVar3") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    return (byte *)0x0;\n  }" ({ "{") (return_statement "return (byte *)0x0;" (return "return") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (if_statement "if (iVar3 == 3) {\n    if (param_2 == 0) {\n      uVar2 = gettext("unplaced orphan section \'%s\'");\n    }\n    else {\n      uVar2 = gettext("unplaced orphan section \'%s\' from \'%s\'");\n    }\n    FUN_0005ad00(uVar2,param_3);\n    return (byte *)0x0;\n  }" (if "if") (parenthesized_expression "(iVar3 == 3)" (( "(") (binary_expression "iVar3 == 3" (identifier "iVar3") (== "==") (number_literal "3")) () ")")) (compound_statement "{\n    if (param_2 == 0) {\n      uVar2 = gettext("unplaced orphan section \'%s\'");\n    }\n    else {\n      uVar2 = gettext("unplaced orphan section \'%s\' from \'%s\'");\n    }\n    FUN_0005ad00(uVar2,param_3);\n    return (byte *)0x0;\n  }" ({ "{") (if_statement "if (param_2 == 0) {\n      uVar2 = gettext("unplaced orphan section \'%s\'");\n    }\n    else {\n      uVar2 = gettext("unplaced orphan section \'%s\' from \'%s\'");\n    }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar2 = gettext("unplaced orphan section \'%s\'");\n    }" ({ "{") (expression_statement "uVar2 = gettext("unplaced orphan section \'%s\'");" (assignment_expression "uVar2 = gettext("unplaced orphan section \'%s\'")" (identifier "uVar2") (= "=") (call_expression "gettext("unplaced orphan section \'%s\'")" (identifier "gettext") (argument_list "("unplaced orphan section \'%s\'")" (( "(") (string_literal ""unplaced orphan section \'%s\'"" (" """) (string_content "unplaced orphan section ") (escape_sequence "\'") (string_content "%s") (escape_sequence "\'") (" """)) () ")")))) (; ";")) (} "}")) (else_clause "else {\n      uVar2 = gettext("unplaced orphan section \'%s\' from \'%s\'");\n    }" (else "else") (compound_statement "{\n      uVar2 = gettext("unplaced orphan section \'%s\' from \'%s\'");\n    }" ({ "{") (expression_statement "uVar2 = gettext("unplaced orphan section \'%s\' from \'%s\'");" (assignment_expression "uVar2 = gettext("unplaced orphan section \'%s\' from \'%s\'")" (identifier "uVar2") (= "=") (call_expression "gettext("unplaced orphan section \'%s\' from \'%s\'")" (identifier "gettext") (argument_list "("unplaced orphan section \'%s\' from \'%s\'")" (( "(") (string_literal ""unplaced orphan section \'%s\' from \'%s\'"" (" """) (string_content "unplaced orphan section ") (escape_sequence "\'") (string_content "%s") (escape_sequence "\'") (string_content " from ") (escape_sequence "\'") (string_content "%s") (escape_sequence "\'") (" """)) () ")")))) (; ";")) (} "}")))) (expression_statement "FUN_0005ad00(uVar2,param_3);" (call_expression "FUN_0005ad00(uVar2,param_3)" (identifier "FUN_0005ad00") (argument_list "(uVar2,param_3)" (( "(") (identifier "uVar2") (, ",") (identifier "param_3") () ")"))) (; ";")) (return_statement "return (byte *)0x0;" (return "return") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (if_statement "if (iVar3 != 2) {\n    return param_3;\n  }" (if "if") (parenthesized_expression "(iVar3 != 2)" (( "(") (binary_expression "iVar3 != 2" (identifier "iVar3") (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n    return param_3;\n  }" ({ "{") (return_statement "return param_3;" (return "return") (identifier "param_3") (; ";")) (} "}"))) (if_statement "if (param_2 != 0) {\n    uVar2 = gettext("orphan section \'%s\' from \'%s\' is being placed in section \'%s\'");\n    FUN_0005ad30(uVar2,param_3,param_2,param_3);\n    return param_3;\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = gettext("orphan section \'%s\' from \'%s\' is being placed in section \'%s\'");\n    FUN_0005ad30(uVar2,param_3,param_2,param_3);\n    return param_3;\n  }" ({ "{") (expression_statement "uVar2 = gettext("orphan section \'%s\' from \'%s\' is being placed in section \'%s\'");" (assignment_expression "uVar2 = gettext("orphan section \'%s\' from \'%s\' is being placed in section \'%s\'")" (identifier "uVar2") (= "=") (call_expression "gettext("orphan section \'%s\' from \'%s\' is being placed in section \'%s\'")" (identifier "gettext") (argument_list "("orphan section \'%s\' from \'%s\' is being placed in section \'%s\'")" (( "(") (string_literal ""orphan section \'%s\' from \'%s\' is being placed in section \'%s\'"" (" """) (string_content "orphan section ") (escape_sequence "\'") (string_content "%s") (escape_sequence "\'") (string_content " from ") (escape_sequence "\'") (string_content "%s") (escape_sequence "\'") (string_content " is being placed in section ") (escape_sequence "\'") (string_content "%s") (escape_sequence "\'") (" """)) () ")")))) (; ";")) (expression_statement "FUN_0005ad30(uVar2,param_3,param_2,param_3);" (call_expression "FUN_0005ad30(uVar2,param_3,param_2,param_3)" (identifier "FUN_0005ad30") (argument_list "(uVar2,param_3,param_2,param_3)" (( "(") (identifier "uVar2") (, ",") (identifier "param_3") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (return_statement "return param_3;" (return "return") (identifier "param_3") (; ";")) (} "}"))) (expression_statement "uVar2 = gettext("orphan section \'%s\' is being placed in section \'%s\'");" (assignment_expression "uVar2 = gettext("orphan section \'%s\' is being placed in section \'%s\'")" (identifier "uVar2") (= "=") (call_expression "gettext("orphan section \'%s\' is being placed in section \'%s\'")" (identifier "gettext") (argument_list "("orphan section \'%s\' is being placed in section \'%s\'")" (( "(") (string_literal ""orphan section \'%s\' is being placed in section \'%s\'"" (" """) (string_content "orphan section ") (escape_sequence "\'") (string_content "%s") (escape_sequence "\'") (string_content " is being placed in section ") (escape_sequence "\'") (string_content "%s") (escape_sequence "\'") (" """)) () ")")))) (; ";")) (expression_statement "FUN_0005ad30(uVar2,param_3,param_3);" (call_expression "FUN_0005ad30(uVar2,param_3,param_3)" (identifier "FUN_0005ad30") (argument_list "(uVar2,param_3,param_3)" (( "(") (identifier "uVar2") (, ",") (identifier "param_3") (, ",") (identifier "param_3") () ")"))) (; ";")) (return_statement "return param_3;" (return "return") (identifier "param_3") (; ";")) (while_statement "while( true ) {\n    iVar3 = iVar3 + -1;\n    bVar7 = *pbVar5 < *pbVar6;\n    bVar8 = *pbVar5 == *pbVar6;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;\n    if (!bVar8) break;\ncode_r0x00107e6f:\n    if (iVar3 == 0) break;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    iVar3 = iVar3 + -1;\n    bVar7 = *pbVar5 < *pbVar6;\n    bVar8 = *pbVar5 == *pbVar6;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;\n    if (!bVar8) break;\ncode_r0x00107e6f:\n    if (iVar3 == 0) break;\n  }" ({ "{") (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar7 = *pbVar5 < *pbVar6;" (assignment_expression "bVar7 = *pbVar5 < *pbVar6" (identifier "bVar7") (= "=") (binary_expression "*pbVar5 < *pbVar6" (pointer_expression "*pbVar5" (* "*") (identifier "pbVar5")) (< "<") (pointer_expression "*pbVar6" (* "*") (identifier "pbVar6")))) (; ";")) (expression_statement "bVar8 = *pbVar5 == *pbVar6;" (assignment_expression "bVar8 = *pbVar5 == *pbVar6" (identifier "bVar8") (= "=") (binary_expression "*pbVar5 == *pbVar6" (pointer_expression "*pbVar5" (* "*") (identifier "pbVar5")) (== "==") (pointer_expression "*pbVar6" (* "*") (identifier "pbVar6")))) (; ";")) (expression_statement "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1" (identifier "pbVar5") (= "=") (binary_expression "pbVar5 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar5 + (uint)bVar9 * -2" (identifier "pbVar5") (+ "+") (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar9")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1" (identifier "pbVar6") (= "=") (binary_expression "pbVar6 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar6 + (uint)bVar9 * -2" (identifier "pbVar6") (+ "+") (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar9")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (!bVar8) break;" (if "if") (parenthesized_expression "(!bVar8)" (( "(") (unary_expression "!bVar8" (! "!") (identifier "bVar8")) () ")")) (break_statement "break;" (break "break") (; ";"))) (labeled_statement "code_r0x00107e6f:\n    if (iVar3 == 0) break;" (statement_identifier "code_r0x00107e6f") (: ":") (if_statement "if (iVar3 == 0) break;" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";")))) (} "}"))) (if_statement "if ((!bVar7 && !bVar8) != bVar7) {\n    return pbVar1;\n  }" (if "if") (parenthesized_expression "((!bVar7 && !bVar8) != bVar7)" (( "(") (binary_expression "(!bVar7 && !bVar8) != bVar7" (parenthesized_expression "(!bVar7 && !bVar8)" (( "(") (binary_expression "!bVar7 && !bVar8" (unary_expression "!bVar7" (! "!") (identifier "bVar7")) (&& "&&") (unary_expression "!bVar8" (! "!") (identifier "bVar8"))) () ")")) (!= "!=") (identifier "bVar7")) () ")")) (compound_statement "{\n    return pbVar1;\n  }" ({ "{") (return_statement "return pbVar1;" (return "return") (identifier "pbVar1") (; ";")) (} "}"))) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_5 = 0;" (assignment_expression "*param_5 = 0" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (number_literal "0")) (; ";")) (return_statement "return (byte *)0x0;" (return "return") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Type propagation algorithm not settling */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: char * output_section_name(Script_sections * this, char * file_name,
   char * section_name, Output_section * * * output_section_slot, Section_type * psection_type, bool
   * keep, bool is_input_section) */

char * __thiscall
gold::Script_sections::output_section_name
          (Script_sections *this,char *var_12,char *section_name,
          type_5 ***output_section_slot,Section_type *psection_type,bool *keep,
          bool is_input_section)

{
  type_1 var_9;
  type_2 *var_6;
  char *pcVar3;
  int var_17;
  type_3 *var_5;
  type_2 *var_18;
  type_2 *var_19;
  bool var_20;
  bool bVar9;
  type_2 bVar10;
  
  bVar10 = 0;
  var_5 = (this->sections_elements_->
           super__List_base<var_1::var_7*,var_2::allocator<var_1::var_7*>var_3>var_4).
           _M_impl._M_node.super__List_node_base._M_next;
  if (var_5 != (type_3 *)this->sections_elements_) {
    do {
      var_6 = (type_2 *)(**(type_4 **)(*(int *)var_5[1]._M_next + 0x1c))
                                 (var_5[1]._M_next,var_12,section_name,output_section_slot,
                                  psection_type,keep,is_input_section);
      var_20 = false;
      bVar9 = var_6 == (type_2 *)0x0;
      if (!bVar9) {
        var_17 = 10;
        var_18 = var_6;
        var_19 = (type_2 *)"/DISCARD/";
        goto code_r0x00107e6f;
      }
      var_5 = (((_List_base<var_1::var_7*,var_2::allocator<var_1::var_7*>var_3> *var_4)
                &var_5->_M_next)->_M_impl)._M_node.super__List_node_base._M_next;
    } while ((type_3 *)this->sections_elements_ != var_5);
  }
  *output_section_slot = (type_5 **)0x0;
  *psection_type = ST_NONE;
  *keep = false;
  if (parameters->options_ == (type_6 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_8("../../gold/parameters.h",0x5c,"options");
  }
  var_9 = parameters->options_->orphan_handling_enum_;
  if (var_9 == var_10) {
    return (char *)(type_2 *)0x0;
  }
  if (var_9 == var_11) {
    if (var_12 == (char *)0x0) {
      pcVar3 = (char *)var_13("unplaced orphan section \'%s\'");
    }
    else {
      pcVar3 = (char *)var_13("unplaced orphan section \'%s\' from \'%s\'");
    }
    var_14(pcVar3,section_name);
    return (char *)(type_2 *)0x0;
  }
  if (var_9 != var_15) {
    return section_name;
  }
  if (var_12 != (char *)0x0) {
    pcVar3 = (char *)var_13("orphan section \'%s\' from \'%s\' is being placed in section \'%s\'");
    var_16(pcVar3,section_name,var_12,section_name);
    return section_name;
  }
  pcVar3 = (char *)var_13("orphan section \'%s\' is being placed in section \'%s\'");
  var_16(pcVar3,section_name,section_name);
  return section_name;
  while( true ) {
    var_17 = var_17 + -1;
    var_20 = *var_18 < *var_19;
    bVar9 = *var_18 == *var_19;
    var_18 = var_18 + (type_7)bVar10 * -2 + 1;
    var_19 = var_19 + (type_7)bVar10 * -2 + 1;
    if (!bVar9) break;
code_r0x00107e6f:
    if (var_17 == 0) break;
  }
  if ((!var_20 && !bVar9) != var_20) {
    return (char *)var_6;
  }
  *output_section_slot = (type_5 **)0x0;
  *psection_type = ST_NONE;
  return (char *)0x0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (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: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))) right: (number_literal))))))) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))) (identifier) (identifier) (identifier) (identifier) (identifier) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (if_statement condition: (parenthesized_expression (unary_expression argument: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (string_literal (string_content))))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))))) condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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: (identifier)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (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 (return_statement (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content) (escape_sequence) (string_content) (escape_sequence))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content) (escape_sequence) (string_content) (escape_sequence) (string_content) (escape_sequence) (string_content) (escape_sequence))))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (return_statement (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content) (escape_sequence) (string_content) (escape_sequence) (string_content) (escape_sequence) (string_content) (escape_sequence) (string_content) (escape_sequence) (string_content) (escape_sequence)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier)))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content) (escape_sequence) (string_content) (escape_sequence) (string_content) (escape_sequence) (string_content) (escape_sequence)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (return_statement (identifier)) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal)))) (if_statement condition: (parenthesized_expression (unary_expression argument: (identifier))) consequence: (break_statement)) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (unary_expression argument: (identifier)) right: (unary_expression argument: (identifier)))) right: (identifier))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (return_statement (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))))

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

byte * MASKED(int param_1,int param_2,byte *param_3,undefined4 *param_4,undefined4 *param_5,
                   undefined1 *param_6,undefined1 param_7)

{
  byte *pbVar1;
  undefined4 uVar2;
  int iVar3;
  int *piVar4;
  byte *pbVar5;
  byte *pbVar6;
  bool bVar7;
  bool bVar8;
  byte bVar9;
  
  bVar9 = 0;
  piVar4 = (int *)**(int **)(param_1 + 4);
  if (piVar4 != *(int **)(param_1 + 4)) {
    do {
      pbVar1 = (byte *)(**(code **)(*(int *)piVar4[2] + 0x1c))
                                 ((int *)piVar4[2],param_2,param_3,param_4,param_5,param_6,param_7);
      bVar7 = false;
      bVar8 = pbVar1 == (byte *)0x0;
      if (!bVar8) {
        iVar3 = 10;
        pbVar5 = pbVar1;
        pbVar6 = (byte *)"/DISCARD/";
        goto code_r0x00107e6f;
      }
      piVar4 = (int *)*piVar4;
    } while ((int *)*(int *)(param_1 + 4) != piVar4);
  }
  *param_4 = 0;
  *param_5 = 0;
  *param_6 = 0;
  if (*(int *)(DAT_00302378 + 8) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",param_1);
  }
  iVar3 = *(int *)(*(int *)(DAT_00302378 + 8) + 0x5a88);
  if (iVar3 == 1) {
    return (byte *)0x0;
  }
  if (iVar3 == 3) {
    if (param_2 == 0) {
      uVar2 = gettext("unplaced orphan section \'%s\'");
    }
    else {
      uVar2 = gettext("unplaced orphan section \'%s\' from \'%s\'");
    }
    FUN_0005ad00(uVar2,param_3);
    return (byte *)0x0;
  }
  if (iVar3 != 2) {
    return param_3;
  }
  if (param_2 != 0) {
    uVar2 = gettext("orphan section \'%s\' from \'%s\' is being placed in section \'%s\'");
    FUN_0005ad30(uVar2,param_3,param_2,param_3);
    return param_3;
  }
  uVar2 = gettext("orphan section \'%s\' is being placed in section \'%s\'");
  FUN_0005ad30(uVar2,param_3,param_3);
  return param_3;
  while( true ) {
    iVar3 = iVar3 + -1;
    bVar7 = *pbVar5 < *pbVar6;
    bVar8 = *pbVar5 == *pbVar6;
    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;
    pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;
    if (!bVar8) break;
code_r0x00107e6f:
    if (iVar3 == 0) break;
  }
  if ((!bVar7 && !bVar8) != bVar7) {
    return pbVar1;
  }
  *param_4 = 0;
  *param_5 = 0;
  return (byte *)0x0;
}

