
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: Output_segment * find_first_load_seg(Layout * this, Target * target) */

Output_segment * __thiscall gold::Layout::find_first_load_seg(Layout *this,Target *target)

{
  uint uVar1;
  bool bVar2;
  Output_segment *seg1;
  Output_segment *pOVar3;
  pointer ppOVar4;
  
  ppOVar4 = (this->segment_list_).
            super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.
            _M_impl._M_start;
  pOVar3 = (Output_segment *)0x0;
  if (ppOVar4 !=
      (this->segment_list_).
      super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>._M_impl.
      _M_finish) {
    do {
      while ((seg1 = *ppOVar4, seg1->type_ != 1 || (uVar1 = seg1->flags_, (uVar1 & 4) == 0))) {
LAB_0009d078:
        ppOVar4 = ppOVar4 + 1;
        seg1 = pOVar3;
        if ((this->segment_list_).
            super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.
            _M_impl._M_finish == ppOVar4) goto LAB_0009d0f0;
      }
      if (parameters->options_ == (General_options *)0x0) {
                    /* WARNING: Subroutine does not return */
        do_gold_unreachable("../../gold/parameters.h",0x5c,"options");
      }
      if ((((parameters->options_->omagic_).value == false) && ((uVar1 & 2) != 0)) ||
         ((*(char *)(*(int *)(target + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))))
      goto LAB_0009d078;
      if (pOVar3 != (Output_segment *)0x0) {
        bVar2 = segment_precedes(this,seg1,pOVar3);
        if (!bVar2) goto LAB_0009d078;
        seg1 = *ppOVar4;
      }
      ppOVar4 = ppOVar4 + 1;
      pOVar3 = seg1;
    } while ((this->segment_list_).
             super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.
             _M_impl._M_finish != ppOVar4);
LAB_0009d0f0:
    if (seg1 != (Output_segment *)0x0) {
      return seg1;
    }
  }
  if (((this->script_options_->script_sections_).saw_sections_clause_ != false) &&
     ((this->script_options_->script_sections_).phdrs_elements_ != (Phdrs_elements *)0x0)) {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/layout.cc",0xa10,"find_first_load_seg");
  }
  pOVar3 = make_output_segment(this,1,4);
  return pOVar3;
}



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

int FUN_0009d040(int param_1,int param_2)

{
  uint uVar1;
  char cVar2;
  int iVar3;
  int iVar4;
  int *piVar5;
  
  piVar5 = *(int **)(param_1 + 0x124);
  iVar4 = 0;
  if (piVar5 != *(int **)(param_1 + 0x128)) {
    do {
      while ((iVar3 = *piVar5, *(int *)(iVar3 + 0x194) != 1 ||
             (uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0))) {
LAB_0009d078:
        piVar5 = piVar5 + 1;
        iVar3 = iVar4;
        if (*(int **)(param_1 + 0x128) == piVar5) goto LAB_0009d0f0;
      }
      if (*(int *)(DAT_0038f378 + 8) == 0) {
                    /* WARNING: Subroutine does not return */
        FUN_00069d00("../../gold/parameters.h",0x5c,"options");
      }
      if (((*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0') && ((uVar1 & 2) != 0)) ||
         ((*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))))
      goto LAB_0009d078;
      if (iVar4 != 0) {
        cVar2 = FUN_00097eb0(param_1,iVar3,iVar4);
        if (cVar2 == '\0') goto LAB_0009d078;
        iVar3 = *piVar5;
      }
      piVar5 = piVar5 + 1;
      iVar4 = iVar3;
    } while (*(int **)(param_1 + 0x128) != piVar5);
LAB_0009d0f0:
    if (iVar3 != 0) {
      return iVar3;
    }
  }
  if ((*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') &&
     (*(int *)(*(int *)(param_1 + 4) + 0xbc) != 0)) {
                    /* WARNING: Subroutine does not return */
    FUN_00069d00("../../gold/layout.cc",0xa10,"find_first_load_seg");
  }
  iVar4 = FUN_0009b0e0(param_1,1,4);
  return iVar4;
}


CALL 0x000559e6
ADD EAX,0x2f1fbb
PUSH EBP
PUSH EDI
XOR EDI,EDI
PUSH ESI
PUSH EBX
SUB ESP,0x1c
LEA EBP,[EAX + 0x378]
MOV ESI,dword ptr [ESP + 0x30]
MOV dword ptr [ESP + 0xc],EAX
MOV EBX,dword ptr [ESI + 0x124]
CMP EBX,dword ptr [ESI + 0x128]
JNZ 0x0009d083
JMP 0x0009d100
ADD EBX,0x4
CMP dword ptr [ESI + 0x128],EBX
JZ 0x0009d0f0
MOV EAX,dword ptr [EBX]
CMP dword ptr [EAX + 0x194],0x1
JNZ 0x0009d078
MOV EDX,dword ptr [EAX + 0x198]
TEST DL,0x4
JZ 0x0009d078
MOV ECX,dword ptr [EBP]
MOV ECX,dword ptr [ECX + 0x8]
TEST ECX,ECX
JZ 0x0009d154
CMP byte ptr [ECX + 0x253d],0x0
JNZ 0x0009d0b5
TEST DL,0x2
JNZ 0x0009d078
MOV ECX,dword ptr [ESP + 0x34]
MOV ECX,dword ptr [ECX + 0x4]
CMP byte ptr [ECX + 0x30],0x0
JZ 0x0009d0c7
AND EDX,0x1
JNZ 0x0009d078
TEST EDI,EDI
JZ 0x0009d0df
SUB ESP,0x4
PUSH EDI
PUSH EAX
PUSH ESI
CALL 0x00097eb0
ADD ESP,0x10
TEST AL,AL
JZ 0x0009d078
MOV EAX,dword ptr [EBX]
MOV EDI,EAX
ADD EBX,0x4
CMP dword ptr [ESI + 0x128],EBX
JNZ 0x0009d083
LEA ESI,[ESI]
TEST EDI,EDI
JZ 0x0009d100
ADD ESP,0x1c
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESI + 0x4]
CMP byte ptr [EAX + 0xac],0x0
JZ 0x0009d138
MOV EAX,dword ptr [EAX + 0xbc]
TEST EAX,EAX
JZ 0x0009d138
SUB ESP,0x4
MOV EBX,dword ptr [ESP + 0x10]
LEA EAX,[EBX + 0xffefc8fc]
PUSH EAX
LEA EAX,[EBX + 0xffefb4ab]
PUSH 0xa10
PUSH EAX
CALL 0x00069d00
SUB ESP,0x4
PUSH 0x4
PUSH 0x1
PUSH ESI
CALL 0x0009b0e0
ADD ESP,0x10
ADD ESP,0x1c
MOV EDI,EAX
POP EBX
MOV EAX,EDI
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
MOV EBX,dword ptr [ESP + 0x10]
LEA EAX,[EBX + 0xffefca48]
PUSH EAX
LEA EAX,[EBX + 0xffef8210]
PUSH 0x5c
PUSH EAX
CALL 0x00069d00
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nint FUN_0009d040(int param_1,int param_2)\n\n{\n  uint uVar1;\n  char cVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar5 = *(int **)(param_1 + 0x124);\n  iVar4 = 0;\n  if (piVar5 != *(int **)(param_1 + 0x128)) {\n    do {\n      while ((iVar3 = *piVar5, *(int *)(iVar3 + 0x194) != 1 ||\n             (uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0))) {\nLAB_0009d078:\n        piVar5 = piVar5 + 1;\n        iVar3 = iVar4;\n        if (*(int **)(param_1 + 0x128) == piVar5) goto LAB_0009d0f0;\n      }\n      if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n      }\n      if (((*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0') && ((uVar1 & 2) != 0)) ||\n         ((*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))))\n      goto LAB_0009d078;\n      if (iVar4 != 0) {\n        cVar2 = FUN_00097eb0(param_1,iVar3,iVar4);\n        if (cVar2 == '\0') goto LAB_0009d078;\n        iVar3 = *piVar5;\n      }\n      piVar5 = piVar5 + 1;\n      iVar4 = iVar3;\n    } while (*(int **)(param_1 + 0x128) != piVar5);\nLAB_0009d0f0:\n    if (iVar3 != 0) {\n      return iVar3;\n    }\n  }\n  if ((*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') &&\n     (*(int *)(*(int *)(param_1 + 4) + 0xbc) != 0)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/layout.cc",0xa10,"find_first_load_seg");\n  }\n  iVar4 = FUN_0009b0e0(param_1,1,4);\n  return iVar4;\n}\n\n" comment (function_definition "int FUN_0009d040(int param_1,int param_2)\n\n{\n  uint uVar1;\n  char cVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar5 = *(int **)(param_1 + 0x124);\n  iVar4 = 0;\n  if (piVar5 != *(int **)(param_1 + 0x128)) {\n    do {\n      while ((iVar3 = *piVar5, *(int *)(iVar3 + 0x194) != 1 ||\n             (uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0))) {\nLAB_0009d078:\n        piVar5 = piVar5 + 1;\n        iVar3 = iVar4;\n        if (*(int **)(param_1 + 0x128) == piVar5) goto LAB_0009d0f0;\n      }\n      if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n      }\n      if (((*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0') && ((uVar1 & 2) != 0)) ||\n         ((*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))))\n      goto LAB_0009d078;\n      if (iVar4 != 0) {\n        cVar2 = FUN_00097eb0(param_1,iVar3,iVar4);\n        if (cVar2 == '\0') goto LAB_0009d078;\n        iVar3 = *piVar5;\n      }\n      piVar5 = piVar5 + 1;\n      iVar4 = iVar3;\n    } while (*(int **)(param_1 + 0x128) != piVar5);\nLAB_0009d0f0:\n    if (iVar3 != 0) {\n      return iVar3;\n    }\n  }\n  if ((*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') &&\n     (*(int *)(*(int *)(param_1 + 4) + 0xbc) != 0)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/layout.cc",0xa10,"find_first_load_seg");\n  }\n  iVar4 = FUN_0009b0e0(param_1,1,4);\n  return iVar4;\n}" primitive_type (function_declarator "FUN_0009d040(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  char cVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar5 = *(int **)(param_1 + 0x124);\n  iVar4 = 0;\n  if (piVar5 != *(int **)(param_1 + 0x128)) {\n    do {\n      while ((iVar3 = *piVar5, *(int *)(iVar3 + 0x194) != 1 ||\n             (uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0))) {\nLAB_0009d078:\n        piVar5 = piVar5 + 1;\n        iVar3 = iVar4;\n        if (*(int **)(param_1 + 0x128) == piVar5) goto LAB_0009d0f0;\n      }\n      if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n      }\n      if (((*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0') && ((uVar1 & 2) != 0)) ||\n         ((*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))))\n      goto LAB_0009d078;\n      if (iVar4 != 0) {\n        cVar2 = FUN_00097eb0(param_1,iVar3,iVar4);\n        if (cVar2 == '\0') goto LAB_0009d078;\n        iVar3 = *piVar5;\n      }\n      piVar5 = piVar5 + 1;\n      iVar4 = iVar3;\n    } while (*(int **)(param_1 + 0x128) != piVar5);\nLAB_0009d0f0:\n    if (iVar3 != 0) {\n      return iVar3;\n    }\n  }\n  if ((*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') &&\n     (*(int *)(*(int *)(param_1 + 4) + 0xbc) != 0)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/layout.cc",0xa10,"find_first_load_seg");\n  }\n  iVar4 = FUN_0009b0e0(param_1,1,4);\n  return iVar4;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (expression_statement "piVar5 = *(int **)(param_1 + 0x124);" (assignment_expression "piVar5 = *(int **)(param_1 + 0x124)" identifier = (pointer_expression "*(int **)(param_1 + 0x124)" * (cast_expression "(int **)(param_1 + 0x124)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x124)" ( (binary_expression "param_1 + 0x124" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (if_statement "if (piVar5 != *(int **)(param_1 + 0x128)) {\n    do {\n      while ((iVar3 = *piVar5, *(int *)(iVar3 + 0x194) != 1 ||\n             (uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0))) {\nLAB_0009d078:\n        piVar5 = piVar5 + 1;\n        iVar3 = iVar4;\n        if (*(int **)(param_1 + 0x128) == piVar5) goto LAB_0009d0f0;\n      }\n      if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n      }\n      if (((*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0') && ((uVar1 & 2) != 0)) ||\n         ((*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))))\n      goto LAB_0009d078;\n      if (iVar4 != 0) {\n        cVar2 = FUN_00097eb0(param_1,iVar3,iVar4);\n        if (cVar2 == '\0') goto LAB_0009d078;\n        iVar3 = *piVar5;\n      }\n      piVar5 = piVar5 + 1;\n      iVar4 = iVar3;\n    } while (*(int **)(param_1 + 0x128) != piVar5);\nLAB_0009d0f0:\n    if (iVar3 != 0) {\n      return iVar3;\n    }\n  }" if (parenthesized_expression "(piVar5 != *(int **)(param_1 + 0x128))" ( (binary_expression "piVar5 != *(int **)(param_1 + 0x128)" identifier != (pointer_expression "*(int **)(param_1 + 0x128)" * (cast_expression "(int **)(param_1 + 0x128)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) ))))) )) (compound_statement "{\n    do {\n      while ((iVar3 = *piVar5, *(int *)(iVar3 + 0x194) != 1 ||\n             (uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0))) {\nLAB_0009d078:\n        piVar5 = piVar5 + 1;\n        iVar3 = iVar4;\n        if (*(int **)(param_1 + 0x128) == piVar5) goto LAB_0009d0f0;\n      }\n      if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n      }\n      if (((*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0') && ((uVar1 & 2) != 0)) ||\n         ((*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))))\n      goto LAB_0009d078;\n      if (iVar4 != 0) {\n        cVar2 = FUN_00097eb0(param_1,iVar3,iVar4);\n        if (cVar2 == '\0') goto LAB_0009d078;\n        iVar3 = *piVar5;\n      }\n      piVar5 = piVar5 + 1;\n      iVar4 = iVar3;\n    } while (*(int **)(param_1 + 0x128) != piVar5);\nLAB_0009d0f0:\n    if (iVar3 != 0) {\n      return iVar3;\n    }\n  }" { (do_statement "do {\n      while ((iVar3 = *piVar5, *(int *)(iVar3 + 0x194) != 1 ||\n             (uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0))) {\nLAB_0009d078:\n        piVar5 = piVar5 + 1;\n        iVar3 = iVar4;\n        if (*(int **)(param_1 + 0x128) == piVar5) goto LAB_0009d0f0;\n      }\n      if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n      }\n      if (((*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0') && ((uVar1 & 2) != 0)) ||\n         ((*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))))\n      goto LAB_0009d078;\n      if (iVar4 != 0) {\n        cVar2 = FUN_00097eb0(param_1,iVar3,iVar4);\n        if (cVar2 == '\0') goto LAB_0009d078;\n        iVar3 = *piVar5;\n      }\n      piVar5 = piVar5 + 1;\n      iVar4 = iVar3;\n    } while (*(int **)(param_1 + 0x128) != piVar5);" do (compound_statement "{\n      while ((iVar3 = *piVar5, *(int *)(iVar3 + 0x194) != 1 ||\n             (uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0))) {\nLAB_0009d078:\n        piVar5 = piVar5 + 1;\n        iVar3 = iVar4;\n        if (*(int **)(param_1 + 0x128) == piVar5) goto LAB_0009d0f0;\n      }\n      if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n      }\n      if (((*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0') && ((uVar1 & 2) != 0)) ||\n         ((*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))))\n      goto LAB_0009d078;\n      if (iVar4 != 0) {\n        cVar2 = FUN_00097eb0(param_1,iVar3,iVar4);\n        if (cVar2 == '\0') goto LAB_0009d078;\n        iVar3 = *piVar5;\n      }\n      piVar5 = piVar5 + 1;\n      iVar4 = iVar3;\n    }" { (while_statement "while ((iVar3 = *piVar5, *(int *)(iVar3 + 0x194) != 1 ||\n             (uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0))) {\nLAB_0009d078:\n        piVar5 = piVar5 + 1;\n        iVar3 = iVar4;\n        if (*(int **)(param_1 + 0x128) == piVar5) goto LAB_0009d0f0;\n      }" while (parenthesized_expression "((iVar3 = *piVar5, *(int *)(iVar3 + 0x194) != 1 ||\n             (uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0)))" ( (parenthesized_expression "(iVar3 = *piVar5, *(int *)(iVar3 + 0x194) != 1 ||\n             (uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0))" ( (comma_expression "iVar3 = *piVar5, *(int *)(iVar3 + 0x194) != 1 ||\n             (uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0)" (assignment_expression "iVar3 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) , (binary_expression "*(int *)(iVar3 + 0x194) != 1 ||\n             (uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0)" (binary_expression "*(int *)(iVar3 + 0x194) != 1" (pointer_expression "*(int *)(iVar3 + 0x194)" * (cast_expression "(int *)(iVar3 + 0x194)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x194)" ( (binary_expression "iVar3 + 0x194" identifier + number_literal) )))) != number_literal) || (parenthesized_expression "(uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0)" ( (comma_expression "uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0" (assignment_expression "uVar1 = *(uint *)(iVar3 + 0x198)" identifier = (pointer_expression "*(uint *)(iVar3 + 0x198)" * (cast_expression "(uint *)(iVar3 + 0x198)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x198)" ( (binary_expression "iVar3 + 0x198" identifier + number_literal) ))))) , (binary_expression "(uVar1 & 4) == 0" (parenthesized_expression "(uVar1 & 4)" ( (binary_expression "uVar1 & 4" identifier & number_literal) )) == number_literal)) )))) )) )) (compound_statement "{\nLAB_0009d078:\n        piVar5 = piVar5 + 1;\n        iVar3 = iVar4;\n        if (*(int **)(param_1 + 0x128) == piVar5) goto LAB_0009d0f0;\n      }" { (labeled_statement "LAB_0009d078:\n        piVar5 = piVar5 + 1;" statement_identifier : (expression_statement "piVar5 = piVar5 + 1;" (assignment_expression "piVar5 = piVar5 + 1" identifier = (binary_expression "piVar5 + 1" identifier + number_literal)) ;)) (expression_statement "iVar3 = iVar4;" (assignment_expression "iVar3 = iVar4" identifier = identifier) ;) (if_statement "if (*(int **)(param_1 + 0x128) == piVar5) goto LAB_0009d0f0;" if (parenthesized_expression "(*(int **)(param_1 + 0x128) == piVar5)" ( (binary_expression "*(int **)(param_1 + 0x128) == piVar5" (pointer_expression "*(int **)(param_1 + 0x128)" * (cast_expression "(int **)(param_1 + 0x128)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) == identifier) )) (goto_statement "goto LAB_0009d0f0;" goto statement_identifier ;)) })) (if_statement "if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n      }" if (parenthesized_expression "(*(int *)(DAT_0038f378 + 8) == 0)" ( (binary_expression "*(int *)(DAT_0038f378 + 8) == 0" (pointer_expression "*(int *)(DAT_0038f378 + 8)" * (cast_expression "(int *)(DAT_0038f378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0038f378 + 8)" ( (binary_expression "DAT_0038f378 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n      }" { comment (expression_statement "FUN_00069d00("../../gold/parameters.h",0x5c,"options");" (call_expression "FUN_00069d00("../../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 ") ))) ;) })) (if_statement "if (((*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0') && ((uVar1 & 2) != 0)) ||\n         ((*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))))\n      goto LAB_0009d078;" if (parenthesized_expression "(((*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0') && ((uVar1 & 2) != 0)) ||\n         ((*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))))" ( (binary_expression "((*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0') && ((uVar1 & 2) != 0)) ||\n         ((*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0)))" (parenthesized_expression "((*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0') && ((uVar1 & 2) != 0))" ( (binary_expression "(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0') && ((uVar1 & 2) != 0)" (parenthesized_expression "(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0')" ( (binary_expression "*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0'" (pointer_expression "*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d)" * (cast_expression "(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_0038f378 + 8) + 0x253d)" ( (binary_expression "*(int *)(DAT_0038f378 + 8) + 0x253d" (pointer_expression "*(int *)(DAT_0038f378 + 8)" * (cast_expression "(int *)(DAT_0038f378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0038f378 + 8)" ( (binary_expression "DAT_0038f378 + 8" identifier + number_literal) )))) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "((uVar1 & 2) != 0)" ( (binary_expression "(uVar1 & 2) != 0" (parenthesized_expression "(uVar1 & 2)" ( (binary_expression "uVar1 & 2" identifier & number_literal) )) != number_literal) ))) )) || (parenthesized_expression "((*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0)))" ( (parenthesized_expression "(*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))" ( (binary_expression "*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0)" (binary_expression "*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0'" (pointer_expression "*(char *)(*(int *)(param_2 + 4) + 0x30)" * (cast_expression "(char *)(*(int *)(param_2 + 4) + 0x30)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 4) + 0x30)" ( (binary_expression "*(int *)(param_2 + 4) + 0x30" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) && (parenthesized_expression "((uVar1 & 1) != 0)" ( (binary_expression "(uVar1 & 1) != 0" (parenthesized_expression "(uVar1 & 1)" ( (binary_expression "uVar1 & 1" identifier & number_literal) )) != number_literal) ))) )) ))) )) (goto_statement "goto LAB_0009d078;" goto statement_identifier ;)) (if_statement "if (iVar4 != 0) {\n        cVar2 = FUN_00097eb0(param_1,iVar3,iVar4);\n        if (cVar2 == '\0') goto LAB_0009d078;\n        iVar3 = *piVar5;\n      }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n        cVar2 = FUN_00097eb0(param_1,iVar3,iVar4);\n        if (cVar2 == '\0') goto LAB_0009d078;\n        iVar3 = *piVar5;\n      }" { (expression_statement "cVar2 = FUN_00097eb0(param_1,iVar3,iVar4);" (assignment_expression "cVar2 = FUN_00097eb0(param_1,iVar3,iVar4)" identifier = (call_expression "FUN_00097eb0(param_1,iVar3,iVar4)" identifier (argument_list "(param_1,iVar3,iVar4)" ( identifier , identifier , identifier )))) ;) (if_statement "if (cVar2 == '\0') goto LAB_0009d078;" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0009d078;" goto statement_identifier ;)) (expression_statement "iVar3 = *piVar5;" (assignment_expression "iVar3 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) })) (expression_statement "piVar5 = piVar5 + 1;" (assignment_expression "piVar5 = piVar5 + 1" identifier = (binary_expression "piVar5 + 1" identifier + number_literal)) ;) (expression_statement "iVar4 = iVar3;" (assignment_expression "iVar4 = iVar3" identifier = identifier) ;) }) while (parenthesized_expression "(*(int **)(param_1 + 0x128) != piVar5)" ( (binary_expression "*(int **)(param_1 + 0x128) != piVar5" (pointer_expression "*(int **)(param_1 + 0x128)" * (cast_expression "(int **)(param_1 + 0x128)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) != identifier) )) ;) (labeled_statement "LAB_0009d0f0:\n    if (iVar3 != 0) {\n      return iVar3;\n    }" statement_identifier : (if_statement "if (iVar3 != 0) {\n      return iVar3;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      return iVar3;\n    }" { (return_statement "return iVar3;" return identifier ;) }))) })) (if_statement "if ((*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') &&\n     (*(int *)(*(int *)(param_1 + 4) + 0xbc) != 0)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/layout.cc",0xa10,"find_first_load_seg");\n  }" if (parenthesized_expression "((*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') &&\n     (*(int *)(*(int *)(param_1 + 4) + 0xbc) != 0))" ( (binary_expression "(*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') &&\n     (*(int *)(*(int *)(param_1 + 4) + 0xbc) != 0)" (parenthesized_expression "(*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0')" ( (binary_expression "*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0'" (pointer_expression "*(char *)(*(int *)(param_1 + 4) + 0xac)" * (cast_expression "(char *)(*(int *)(param_1 + 4) + 0xac)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 4) + 0xac)" ( (binary_expression "*(int *)(param_1 + 4) + 0xac" (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) )))) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(*(int *)(*(int *)(param_1 + 4) + 0xbc) != 0)" ( (binary_expression "*(int *)(*(int *)(param_1 + 4) + 0xbc) != 0" (pointer_expression "*(int *)(*(int *)(param_1 + 4) + 0xbc)" * (cast_expression "(int *)(*(int *)(param_1 + 4) + 0xbc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 4) + 0xbc)" ( (binary_expression "*(int *)(param_1 + 4) + 0xbc" (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) )))) + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/layout.cc",0xa10,"find_first_load_seg");\n  }" { comment (expression_statement "FUN_00069d00("../../gold/layout.cc",0xa10,"find_first_load_seg");" (call_expression "FUN_00069d00("../../gold/layout.cc",0xa10,"find_first_load_seg")" identifier (argument_list "("../../gold/layout.cc",0xa10,"find_first_load_seg")" ( (string_literal ""../../gold/layout.cc"" " string_content ") , number_literal , (string_literal ""find_first_load_seg"" " string_content ") ))) ;) })) (expression_statement "iVar4 = FUN_0009b0e0(param_1,1,4);" (assignment_expression "iVar4 = FUN_0009b0e0(param_1,1,4)" identifier = (call_expression "FUN_0009b0e0(param_1,1,4)" identifier (argument_list "(param_1,1,4)" ( identifier , number_literal , number_literal )))) ;) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* WARNING: Enum "DT": Some values do not have unique names */\n/* DWARF original prototype: Output_segment * find_first_load_seg(Layout * this, Target * target) */\n\nOutput_segment * __thiscall gold::Layout::find_first_load_seg(Layout *this,Target *target)\n\n{\n  uint uVar1;\n  bool bVar2;\n  Output_segment *seg1;\n  Output_segment *pOVar3;\n  pointer ppOVar4;\n  \n  ppOVar4 = (this->segment_list_).\n            super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n            _M_impl._M_start;\n  pOVar3 = (Output_segment *)0x0;\n  if (ppOVar4 !=\n      (this->segment_list_).\n      super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>._M_impl.\n      _M_finish) {\n    do {\n      while ((seg1 = *ppOVar4, seg1->type_ != 1 || (uVar1 = seg1->flags_, (uVar1 & 4) == 0))) {\nLAB_0009d078:\n        ppOVar4 = ppOVar4 + 1;\n        seg1 = pOVar3;\n        if ((this->segment_list_).\n            super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n            _M_impl._M_finish == ppOVar4) goto LAB_0009d0f0;\n      }\n      if (parameters->options_ == (General_options *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n      }\n      if ((((parameters->options_->omagic_).value == false) && ((uVar1 & 2) != 0)) ||\n         ((*(char *)(*(int *)(target + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))))\n      goto LAB_0009d078;\n      if (pOVar3 != (Output_segment *)0x0) {\n        bVar2 = segment_precedes(this,seg1,pOVar3);\n        if (!bVar2) goto LAB_0009d078;\n        seg1 = *ppOVar4;\n      }\n      ppOVar4 = ppOVar4 + 1;\n      pOVar3 = seg1;\n    } while ((this->segment_list_).\n             super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n             _M_impl._M_finish != ppOVar4);\nLAB_0009d0f0:\n    if (seg1 != (Output_segment *)0x0) {\n      return seg1;\n    }\n  }\n  if (((this->script_options_->script_sections_).saw_sections_clause_ != false) &&\n     ((this->script_options_->script_sections_).phdrs_elements_ != (Phdrs_elements *)0x0)) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/layout.cc",0xa10,"find_first_load_seg");\n  }\n  pOVar3 = make_output_segment(this,1,4);\n  return pOVar3;\n}\n\n" comment comment comment (ERROR "Output_segment * __thiscall gold::Layout::find_first_load_seg(Layout *this,Target *target)" (binary_expression "Output_segment * __thiscall gold::Layout::find_first_load_seg(Layout *this,Target *target" (binary_expression "Output_segment * __thiscall gold::Layout::find_first_load_seg(Layout *this" (binary_expression "Output_segment * __thiscall" identifier * identifier) (ERROR "gold::Layout::find_first_load_seg(Layout" identifier : : identifier : : identifier ( identifier) * identifier) (ERROR ",Target" , identifier) * identifier) )) (compound_statement "{\n  uint uVar1;\n  bool bVar2;\n  Output_segment *seg1;\n  Output_segment *pOVar3;\n  pointer ppOVar4;\n  \n  ppOVar4 = (this->segment_list_).\n            super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n            _M_impl._M_start;\n  pOVar3 = (Output_segment *)0x0;\n  if (ppOVar4 !=\n      (this->segment_list_).\n      super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>._M_impl.\n      _M_finish) {\n    do {\n      while ((seg1 = *ppOVar4, seg1->type_ != 1 || (uVar1 = seg1->flags_, (uVar1 & 4) == 0))) {\nLAB_0009d078:\n        ppOVar4 = ppOVar4 + 1;\n        seg1 = pOVar3;\n        if ((this->segment_list_).\n            super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n            _M_impl._M_finish == ppOVar4) goto LAB_0009d0f0;\n      }\n      if (parameters->options_ == (General_options *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n      }\n      if ((((parameters->options_->omagic_).value == false) && ((uVar1 & 2) != 0)) ||\n         ((*(char *)(*(int *)(target + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))))\n      goto LAB_0009d078;\n      if (pOVar3 != (Output_segment *)0x0) {\n        bVar2 = segment_precedes(this,seg1,pOVar3);\n        if (!bVar2) goto LAB_0009d078;\n        seg1 = *ppOVar4;\n      }\n      ppOVar4 = ppOVar4 + 1;\n      pOVar3 = seg1;\n    } while ((this->segment_list_).\n             super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n             _M_impl._M_finish != ppOVar4);\nLAB_0009d0f0:\n    if (seg1 != (Output_segment *)0x0) {\n      return seg1;\n    }\n  }\n  if (((this->script_options_->script_sections_).saw_sections_clause_ != false) &&\n     ((this->script_options_->script_sections_).phdrs_elements_ != (Phdrs_elements *)0x0)) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/layout.cc",0xa10,"find_first_load_seg");\n  }\n  pOVar3 = make_output_segment(this,1,4);\n  return pOVar3;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "Output_segment *seg1;" type_identifier (pointer_declarator "*seg1" * identifier) ;) (declaration "Output_segment *pOVar3;" type_identifier (pointer_declarator "*pOVar3" * identifier) ;) (declaration "pointer ppOVar4;" type_identifier identifier ;) (expression_statement "ppOVar4 = (this->segment_list_).\n            super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n            _M_impl._M_start;" (field_expression "ppOVar4 = (this->segment_list_).\n            super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n            _M_impl._M_start" (field_expression "ppOVar4 = (this->segment_list_).\n            super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n            _M_impl" (binary_expression "ppOVar4 = (this->segment_list_).\n            super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_" (binary_expression "ppOVar4 = (this->segment_list_).\n            super__Vector_base<gold::Output_segment*,_std::allocator<gold" (binary_expression "ppOVar4 = (this->segment_list_).\n            super__Vector_base<gold::Output_segment*,_std" (assignment_expression "ppOVar4 = (this->segment_list_).\n            super__Vector_base<gold" identifier = (binary_expression "(this->segment_list_).\n            super__Vector_base<gold" (field_expression "(this->segment_list_).\n            super__Vector_base" (parenthesized_expression "(this->segment_list_)" ( (field_expression "this->segment_list_" identifier -> field_identifier) )) . field_identifier) < identifier)) (ERROR "::Output_segment" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Output_segment" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) ;) (expression_statement "pOVar3 = (Output_segment *)0x0;" (assignment_expression "pOVar3 = (Output_segment *)0x0" identifier = (cast_expression "(Output_segment *)0x0" ( (type_descriptor "Output_segment *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (ppOVar4 !=\n      (this->segment_list_).\n      super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>._M_impl.\n      _M_finish) {\n    do {\n      while ((seg1 = *ppOVar4, seg1->type_ != 1 || (uVar1 = seg1->flags_, (uVar1 & 4) == 0))) {\nLAB_0009d078:\n        ppOVar4 = ppOVar4 + 1;\n        seg1 = pOVar3;\n        if ((this->segment_list_).\n            super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n            _M_impl._M_finish == ppOVar4) goto LAB_0009d0f0;\n      }\n      if (parameters->options_ == (General_options *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n      }\n      if ((((parameters->options_->omagic_).value == false) && ((uVar1 & 2) != 0)) ||\n         ((*(char *)(*(int *)(target + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))))\n      goto LAB_0009d078;\n      if (pOVar3 != (Output_segment *)0x0) {\n        bVar2 = segment_precedes(this,seg1,pOVar3);\n        if (!bVar2) goto LAB_0009d078;\n        seg1 = *ppOVar4;\n      }\n      ppOVar4 = ppOVar4 + 1;\n      pOVar3 = seg1;\n    } while ((this->segment_list_).\n             super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n             _M_impl._M_finish != ppOVar4);\nLAB_0009d0f0:\n    if (seg1 != (Output_segment *)0x0) {\n      return seg1;\n    }\n  }" if (parenthesized_expression "(ppOVar4 !=\n      (this->segment_list_).\n      super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>._M_impl.\n      _M_finish)" ( (field_expression "ppOVar4 !=\n      (this->segment_list_).\n      super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>._M_impl.\n      _M_finish" (field_expression "ppOVar4 !=\n      (this->segment_list_).\n      super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>._M_impl" (binary_expression "ppOVar4 !=\n      (this->segment_list_).\n      super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_" (binary_expression "ppOVar4 !=\n      (this->segment_list_).\n      super__Vector_base<gold::Output_segment*,_std::allocator<gold" (binary_expression "ppOVar4 !=\n      (this->segment_list_).\n      super__Vector_base<gold::Output_segment*,_std" (binary_expression "ppOVar4 !=\n      (this->segment_list_).\n      super__Vector_base<gold" identifier != (binary_expression "(this->segment_list_).\n      super__Vector_base<gold" (field_expression "(this->segment_list_).\n      super__Vector_base" (parenthesized_expression "(this->segment_list_)" ( (field_expression "this->segment_list_" identifier -> field_identifier) )) . field_identifier) < identifier)) (ERROR "::Output_segment" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Output_segment" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) )) (compound_statement "{\n    do {\n      while ((seg1 = *ppOVar4, seg1->type_ != 1 || (uVar1 = seg1->flags_, (uVar1 & 4) == 0))) {\nLAB_0009d078:\n        ppOVar4 = ppOVar4 + 1;\n        seg1 = pOVar3;\n        if ((this->segment_list_).\n            super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n            _M_impl._M_finish == ppOVar4) goto LAB_0009d0f0;\n      }\n      if (parameters->options_ == (General_options *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n      }\n      if ((((parameters->options_->omagic_).value == false) && ((uVar1 & 2) != 0)) ||\n         ((*(char *)(*(int *)(target + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))))\n      goto LAB_0009d078;\n      if (pOVar3 != (Output_segment *)0x0) {\n        bVar2 = segment_precedes(this,seg1,pOVar3);\n        if (!bVar2) goto LAB_0009d078;\n        seg1 = *ppOVar4;\n      }\n      ppOVar4 = ppOVar4 + 1;\n      pOVar3 = seg1;\n    } while ((this->segment_list_).\n             super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n             _M_impl._M_finish != ppOVar4);\nLAB_0009d0f0:\n    if (seg1 != (Output_segment *)0x0) {\n      return seg1;\n    }\n  }" { (do_statement "do {\n      while ((seg1 = *ppOVar4, seg1->type_ != 1 || (uVar1 = seg1->flags_, (uVar1 & 4) == 0))) {\nLAB_0009d078:\n        ppOVar4 = ppOVar4 + 1;\n        seg1 = pOVar3;\n        if ((this->segment_list_).\n            super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n            _M_impl._M_finish == ppOVar4) goto LAB_0009d0f0;\n      }\n      if (parameters->options_ == (General_options *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n      }\n      if ((((parameters->options_->omagic_).value == false) && ((uVar1 & 2) != 0)) ||\n         ((*(char *)(*(int *)(target + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))))\n      goto LAB_0009d078;\n      if (pOVar3 != (Output_segment *)0x0) {\n        bVar2 = segment_precedes(this,seg1,pOVar3);\n        if (!bVar2) goto LAB_0009d078;\n        seg1 = *ppOVar4;\n      }\n      ppOVar4 = ppOVar4 + 1;\n      pOVar3 = seg1;\n    } while ((this->segment_list_).\n             super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n             _M_impl._M_finish != ppOVar4);" do (compound_statement "{\n      while ((seg1 = *ppOVar4, seg1->type_ != 1 || (uVar1 = seg1->flags_, (uVar1 & 4) == 0))) {\nLAB_0009d078:\n        ppOVar4 = ppOVar4 + 1;\n        seg1 = pOVar3;\n        if ((this->segment_list_).\n            super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n            _M_impl._M_finish == ppOVar4) goto LAB_0009d0f0;\n      }\n      if (parameters->options_ == (General_options *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n      }\n      if ((((parameters->options_->omagic_).value == false) && ((uVar1 & 2) != 0)) ||\n         ((*(char *)(*(int *)(target + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))))\n      goto LAB_0009d078;\n      if (pOVar3 != (Output_segment *)0x0) {\n        bVar2 = segment_precedes(this,seg1,pOVar3);\n        if (!bVar2) goto LAB_0009d078;\n        seg1 = *ppOVar4;\n      }\n      ppOVar4 = ppOVar4 + 1;\n      pOVar3 = seg1;\n    }" { (while_statement "while ((seg1 = *ppOVar4, seg1->type_ != 1 || (uVar1 = seg1->flags_, (uVar1 & 4) == 0))) {\nLAB_0009d078:\n        ppOVar4 = ppOVar4 + 1;\n        seg1 = pOVar3;\n        if ((this->segment_list_).\n            super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n            _M_impl._M_finish == ppOVar4) goto LAB_0009d0f0;\n      }" while (parenthesized_expression "((seg1 = *ppOVar4, seg1->type_ != 1 || (uVar1 = seg1->flags_, (uVar1 & 4) == 0)))" ( (parenthesized_expression "(seg1 = *ppOVar4, seg1->type_ != 1 || (uVar1 = seg1->flags_, (uVar1 & 4) == 0))" ( (comma_expression "seg1 = *ppOVar4, seg1->type_ != 1 || (uVar1 = seg1->flags_, (uVar1 & 4) == 0)" (assignment_expression "seg1 = *ppOVar4" identifier = (pointer_expression "*ppOVar4" * identifier)) , (binary_expression "seg1->type_ != 1 || (uVar1 = seg1->flags_, (uVar1 & 4) == 0)" (binary_expression "seg1->type_ != 1" (field_expression "seg1->type_" identifier -> field_identifier) != number_literal) || (parenthesized_expression "(uVar1 = seg1->flags_, (uVar1 & 4) == 0)" ( (comma_expression "uVar1 = seg1->flags_, (uVar1 & 4) == 0" (assignment_expression "uVar1 = seg1->flags_" identifier = (field_expression "seg1->flags_" identifier -> field_identifier)) , (binary_expression "(uVar1 & 4) == 0" (parenthesized_expression "(uVar1 & 4)" ( (binary_expression "uVar1 & 4" identifier & number_literal) )) == number_literal)) )))) )) )) (compound_statement "{\nLAB_0009d078:\n        ppOVar4 = ppOVar4 + 1;\n        seg1 = pOVar3;\n        if ((this->segment_list_).\n            super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n            _M_impl._M_finish == ppOVar4) goto LAB_0009d0f0;\n      }" { (labeled_statement "LAB_0009d078:\n        ppOVar4 = ppOVar4 + 1;" statement_identifier : (expression_statement "ppOVar4 = ppOVar4 + 1;" (assignment_expression "ppOVar4 = ppOVar4 + 1" identifier = (binary_expression "ppOVar4 + 1" identifier + number_literal)) ;)) (expression_statement "seg1 = pOVar3;" (assignment_expression "seg1 = pOVar3" identifier = identifier) ;) (if_statement "if ((this->segment_list_).\n            super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n            _M_impl._M_finish == ppOVar4) goto LAB_0009d0f0;" if (parenthesized_expression "((this->segment_list_).\n            super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n            _M_impl._M_finish == ppOVar4)" ( (binary_expression "(this->segment_list_).\n            super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n            _M_impl._M_finish == ppOVar4" (field_expression "(this->segment_list_).\n            super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n            _M_impl._M_finish" (field_expression "(this->segment_list_).\n            super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n            _M_impl" (binary_expression "(this->segment_list_).\n            super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_" (binary_expression "(this->segment_list_).\n            super__Vector_base<gold::Output_segment*,_std::allocator<gold" (binary_expression "(this->segment_list_).\n            super__Vector_base<gold::Output_segment*,_std" (binary_expression "(this->segment_list_).\n            super__Vector_base<gold" (field_expression "(this->segment_list_).\n            super__Vector_base" (parenthesized_expression "(this->segment_list_)" ( (field_expression "this->segment_list_" identifier -> field_identifier) )) . field_identifier) < identifier) (ERROR "::Output_segment" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Output_segment" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) == identifier) )) (goto_statement "goto LAB_0009d0f0;" goto statement_identifier ;)) })) (if_statement "if (parameters->options_ == (General_options *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n      }" if (parenthesized_expression "(parameters->options_ == (General_options *)0x0)" ( (binary_expression "parameters->options_ == (General_options *)0x0" (field_expression "parameters->options_" identifier -> field_identifier) == (cast_expression "(General_options *)0x0" ( (type_descriptor "General_options *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n      }" { comment (expression_statement "do_gold_unreachable("../../gold/parameters.h",0x5c,"options");" (call_expression "do_gold_unreachable("../../gold/parameters.h",0x5c,"options")" identifier (argument_list "("../../gold/parameters.h",0x5c,"options")" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""options"" " string_content ") ))) ;) })) (if_statement "if ((((parameters->options_->omagic_).value == false) && ((uVar1 & 2) != 0)) ||\n         ((*(char *)(*(int *)(target + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))))\n      goto LAB_0009d078;" if (parenthesized_expression "((((parameters->options_->omagic_).value == false) && ((uVar1 & 2) != 0)) ||\n         ((*(char *)(*(int *)(target + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))))" ( (binary_expression "(((parameters->options_->omagic_).value == false) && ((uVar1 & 2) != 0)) ||\n         ((*(char *)(*(int *)(target + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0)))" (parenthesized_expression "(((parameters->options_->omagic_).value == false) && ((uVar1 & 2) != 0))" ( (binary_expression "((parameters->options_->omagic_).value == false) && ((uVar1 & 2) != 0)" (parenthesized_expression "((parameters->options_->omagic_).value == false)" ( (binary_expression "(parameters->options_->omagic_).value == false" (field_expression "(parameters->options_->omagic_).value" (parenthesized_expression "(parameters->options_->omagic_)" ( (field_expression "parameters->options_->omagic_" (field_expression "parameters->options_" identifier -> field_identifier) -> field_identifier) )) . field_identifier) == false) )) && (parenthesized_expression "((uVar1 & 2) != 0)" ( (binary_expression "(uVar1 & 2) != 0" (parenthesized_expression "(uVar1 & 2)" ( (binary_expression "uVar1 & 2" identifier & number_literal) )) != number_literal) ))) )) || (parenthesized_expression "((*(char *)(*(int *)(target + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0)))" ( (parenthesized_expression "(*(char *)(*(int *)(target + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))" ( (binary_expression "*(char *)(*(int *)(target + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0)" (binary_expression "*(char *)(*(int *)(target + 4) + 0x30) != '\0'" (pointer_expression "*(char *)(*(int *)(target + 4) + 0x30)" * (cast_expression "(char *)(*(int *)(target + 4) + 0x30)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(target + 4) + 0x30)" ( (binary_expression "*(int *)(target + 4) + 0x30" (pointer_expression "*(int *)(target + 4)" * (cast_expression "(int *)(target + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(target + 4)" ( (binary_expression "target + 4" identifier + number_literal) )))) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) && (parenthesized_expression "((uVar1 & 1) != 0)" ( (binary_expression "(uVar1 & 1) != 0" (parenthesized_expression "(uVar1 & 1)" ( (binary_expression "uVar1 & 1" identifier & number_literal) )) != number_literal) ))) )) ))) )) (goto_statement "goto LAB_0009d078;" goto statement_identifier ;)) (if_statement "if (pOVar3 != (Output_segment *)0x0) {\n        bVar2 = segment_precedes(this,seg1,pOVar3);\n        if (!bVar2) goto LAB_0009d078;\n        seg1 = *ppOVar4;\n      }" if (parenthesized_expression "(pOVar3 != (Output_segment *)0x0)" ( (binary_expression "pOVar3 != (Output_segment *)0x0" identifier != (cast_expression "(Output_segment *)0x0" ( (type_descriptor "Output_segment *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        bVar2 = segment_precedes(this,seg1,pOVar3);\n        if (!bVar2) goto LAB_0009d078;\n        seg1 = *ppOVar4;\n      }" { (expression_statement "bVar2 = segment_precedes(this,seg1,pOVar3);" (assignment_expression "bVar2 = segment_precedes(this,seg1,pOVar3)" identifier = (call_expression "segment_precedes(this,seg1,pOVar3)" identifier (argument_list "(this,seg1,pOVar3)" ( identifier , identifier , identifier )))) ;) (if_statement "if (!bVar2) goto LAB_0009d078;" if (parenthesized_expression "(!bVar2)" ( (unary_expression "!bVar2" ! identifier) )) (goto_statement "goto LAB_0009d078;" goto statement_identifier ;)) (expression_statement "seg1 = *ppOVar4;" (assignment_expression "seg1 = *ppOVar4" identifier = (pointer_expression "*ppOVar4" * identifier)) ;) })) (expression_statement "ppOVar4 = ppOVar4 + 1;" (assignment_expression "ppOVar4 = ppOVar4 + 1" identifier = (binary_expression "ppOVar4 + 1" identifier + number_literal)) ;) (expression_statement "pOVar3 = seg1;" (assignment_expression "pOVar3 = seg1" identifier = identifier) ;) }) while (parenthesized_expression "((this->segment_list_).\n             super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n             _M_impl._M_finish != ppOVar4)" ( (binary_expression "(this->segment_list_).\n             super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n             _M_impl._M_finish != ppOVar4" (field_expression "(this->segment_list_).\n             super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n             _M_impl._M_finish" (field_expression "(this->segment_list_).\n             super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n             _M_impl" (binary_expression "(this->segment_list_).\n             super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_" (binary_expression "(this->segment_list_).\n             super__Vector_base<gold::Output_segment*,_std::allocator<gold" (binary_expression "(this->segment_list_).\n             super__Vector_base<gold::Output_segment*,_std" (binary_expression "(this->segment_list_).\n             super__Vector_base<gold" (field_expression "(this->segment_list_).\n             super__Vector_base" (parenthesized_expression "(this->segment_list_)" ( (field_expression "this->segment_list_" identifier -> field_identifier) )) . field_identifier) < identifier) (ERROR "::Output_segment" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Output_segment" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) != identifier) )) ;) (labeled_statement "LAB_0009d0f0:\n    if (seg1 != (Output_segment *)0x0) {\n      return seg1;\n    }" statement_identifier : (if_statement "if (seg1 != (Output_segment *)0x0) {\n      return seg1;\n    }" if (parenthesized_expression "(seg1 != (Output_segment *)0x0)" ( (binary_expression "seg1 != (Output_segment *)0x0" identifier != (cast_expression "(Output_segment *)0x0" ( (type_descriptor "Output_segment *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return seg1;\n    }" { (return_statement "return seg1;" return identifier ;) }))) })) (if_statement "if (((this->script_options_->script_sections_).saw_sections_clause_ != false) &&\n     ((this->script_options_->script_sections_).phdrs_elements_ != (Phdrs_elements *)0x0)) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/layout.cc",0xa10,"find_first_load_seg");\n  }" if (parenthesized_expression "(((this->script_options_->script_sections_).saw_sections_clause_ != false) &&\n     ((this->script_options_->script_sections_).phdrs_elements_ != (Phdrs_elements *)0x0))" ( (binary_expression "((this->script_options_->script_sections_).saw_sections_clause_ != false) &&\n     ((this->script_options_->script_sections_).phdrs_elements_ != (Phdrs_elements *)0x0)" (parenthesized_expression "((this->script_options_->script_sections_).saw_sections_clause_ != false)" ( (binary_expression "(this->script_options_->script_sections_).saw_sections_clause_ != false" (field_expression "(this->script_options_->script_sections_).saw_sections_clause_" (parenthesized_expression "(this->script_options_->script_sections_)" ( (field_expression "this->script_options_->script_sections_" (field_expression "this->script_options_" identifier -> field_identifier) -> field_identifier) )) . field_identifier) != false) )) && (parenthesized_expression "((this->script_options_->script_sections_).phdrs_elements_ != (Phdrs_elements *)0x0)" ( (binary_expression "(this->script_options_->script_sections_).phdrs_elements_ != (Phdrs_elements *)0x0" (field_expression "(this->script_options_->script_sections_).phdrs_elements_" (parenthesized_expression "(this->script_options_->script_sections_)" ( (field_expression "this->script_options_->script_sections_" (field_expression "this->script_options_" identifier -> field_identifier) -> field_identifier) )) . field_identifier) != (cast_expression "(Phdrs_elements *)0x0" ( (type_descriptor "Phdrs_elements *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/layout.cc",0xa10,"find_first_load_seg");\n  }" { comment (expression_statement "do_gold_unreachable("../../gold/layout.cc",0xa10,"find_first_load_seg");" (call_expression "do_gold_unreachable("../../gold/layout.cc",0xa10,"find_first_load_seg")" identifier (argument_list "("../../gold/layout.cc",0xa10,"find_first_load_seg")" ( (string_literal ""../../gold/layout.cc"" " string_content ") , number_literal , (string_literal ""find_first_load_seg"" " string_content ") ))) ;) })) (expression_statement "pOVar3 = make_output_segment(this,1,4);" (assignment_expression "pOVar3 = make_output_segment(this,1,4)" identifier = (call_expression "make_output_segment(this,1,4)" identifier (argument_list "(this,1,4)" ( identifier , number_literal , number_literal )))) ;) (return_statement "return pOVar3;" return identifier ;) }))
(translation_unit "int FUN_0009d040(int param_1,int param_2)\n\n{\n  uint uVar1;\n  char cVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar5 = *(int **)(param_1 + 0x124);\n  iVar4 = 0;\n  if (piVar5 != *(int **)(param_1 + 0x128)) {\n    do {\n      while ((iVar3 = *piVar5, *(int *)(iVar3 + 0x194) != 1 ||\n             (uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0))) {\nLAB_0009d078:\n        piVar5 = piVar5 + 1;\n        iVar3 = iVar4;\n        if (*(int **)(param_1 + 0x128) == piVar5) goto LAB_0009d0f0;\n      }\n      if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    \n        FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n      }\n      if (((*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0') && ((uVar1 & 2) != 0)) ||\n         ((*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))))\n      goto LAB_0009d078;\n      if (iVar4 != 0) {\n        cVar2 = FUN_00097eb0(param_1,iVar3,iVar4);\n        if (cVar2 == '\0') goto LAB_0009d078;\n        iVar3 = *piVar5;\n      }\n      piVar5 = piVar5 + 1;\n      iVar4 = iVar3;\n    } while (*(int **)(param_1 + 0x128) != piVar5);\nLAB_0009d0f0:\n    if (iVar3 != 0) {\n      return iVar3;\n    }\n  }\n  if ((*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') &&\n     (*(int *)(*(int *)(param_1 + 4) + 0xbc) != 0)) {\n                    \n    FUN_00069d00("../../gold/layout.cc",0xa10,"find_first_load_seg");\n  }\n  iVar4 = FUN_0009b0e0(param_1,1,4);\n  return iVar4;\n}\n\n" (function_definition "int FUN_0009d040(int param_1,int param_2)\n\n{\n  uint uVar1;\n  char cVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar5 = *(int **)(param_1 + 0x124);\n  iVar4 = 0;\n  if (piVar5 != *(int **)(param_1 + 0x128)) {\n    do {\n      while ((iVar3 = *piVar5, *(int *)(iVar3 + 0x194) != 1 ||\n             (uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0))) {\nLAB_0009d078:\n        piVar5 = piVar5 + 1;\n        iVar3 = iVar4;\n        if (*(int **)(param_1 + 0x128) == piVar5) goto LAB_0009d0f0;\n      }\n      if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    \n        FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n      }\n      if (((*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0') && ((uVar1 & 2) != 0)) ||\n         ((*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))))\n      goto LAB_0009d078;\n      if (iVar4 != 0) {\n        cVar2 = FUN_00097eb0(param_1,iVar3,iVar4);\n        if (cVar2 == '\0') goto LAB_0009d078;\n        iVar3 = *piVar5;\n      }\n      piVar5 = piVar5 + 1;\n      iVar4 = iVar3;\n    } while (*(int **)(param_1 + 0x128) != piVar5);\nLAB_0009d0f0:\n    if (iVar3 != 0) {\n      return iVar3;\n    }\n  }\n  if ((*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') &&\n     (*(int *)(*(int *)(param_1 + 4) + 0xbc) != 0)) {\n                    \n    FUN_00069d00("../../gold/layout.cc",0xa10,"find_first_load_seg");\n  }\n  iVar4 = FUN_0009b0e0(param_1,1,4);\n  return iVar4;\n}" primitive_type (function_declarator "FUN_0009d040(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  char cVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar5 = *(int **)(param_1 + 0x124);\n  iVar4 = 0;\n  if (piVar5 != *(int **)(param_1 + 0x128)) {\n    do {\n      while ((iVar3 = *piVar5, *(int *)(iVar3 + 0x194) != 1 ||\n             (uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0))) {\nLAB_0009d078:\n        piVar5 = piVar5 + 1;\n        iVar3 = iVar4;\n        if (*(int **)(param_1 + 0x128) == piVar5) goto LAB_0009d0f0;\n      }\n      if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    \n        FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n      }\n      if (((*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0') && ((uVar1 & 2) != 0)) ||\n         ((*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))))\n      goto LAB_0009d078;\n      if (iVar4 != 0) {\n        cVar2 = FUN_00097eb0(param_1,iVar3,iVar4);\n        if (cVar2 == '\0') goto LAB_0009d078;\n        iVar3 = *piVar5;\n      }\n      piVar5 = piVar5 + 1;\n      iVar4 = iVar3;\n    } while (*(int **)(param_1 + 0x128) != piVar5);\nLAB_0009d0f0:\n    if (iVar3 != 0) {\n      return iVar3;\n    }\n  }\n  if ((*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') &&\n     (*(int *)(*(int *)(param_1 + 4) + 0xbc) != 0)) {\n                    \n    FUN_00069d00("../../gold/layout.cc",0xa10,"find_first_load_seg");\n  }\n  iVar4 = FUN_0009b0e0(param_1,1,4);\n  return iVar4;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (expression_statement "piVar5 = *(int **)(param_1 + 0x124);" (assignment_expression "piVar5 = *(int **)(param_1 + 0x124)" identifier = (pointer_expression "*(int **)(param_1 + 0x124)" * (cast_expression "(int **)(param_1 + 0x124)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x124)" ( (binary_expression "param_1 + 0x124" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (if_statement "if (piVar5 != *(int **)(param_1 + 0x128)) {\n    do {\n      while ((iVar3 = *piVar5, *(int *)(iVar3 + 0x194) != 1 ||\n             (uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0))) {\nLAB_0009d078:\n        piVar5 = piVar5 + 1;\n        iVar3 = iVar4;\n        if (*(int **)(param_1 + 0x128) == piVar5) goto LAB_0009d0f0;\n      }\n      if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    \n        FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n      }\n      if (((*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0') && ((uVar1 & 2) != 0)) ||\n         ((*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))))\n      goto LAB_0009d078;\n      if (iVar4 != 0) {\n        cVar2 = FUN_00097eb0(param_1,iVar3,iVar4);\n        if (cVar2 == '\0') goto LAB_0009d078;\n        iVar3 = *piVar5;\n      }\n      piVar5 = piVar5 + 1;\n      iVar4 = iVar3;\n    } while (*(int **)(param_1 + 0x128) != piVar5);\nLAB_0009d0f0:\n    if (iVar3 != 0) {\n      return iVar3;\n    }\n  }" if (parenthesized_expression "(piVar5 != *(int **)(param_1 + 0x128))" ( (binary_expression "piVar5 != *(int **)(param_1 + 0x128)" identifier != (pointer_expression "*(int **)(param_1 + 0x128)" * (cast_expression "(int **)(param_1 + 0x128)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) ))))) )) (compound_statement "{\n    do {\n      while ((iVar3 = *piVar5, *(int *)(iVar3 + 0x194) != 1 ||\n             (uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0))) {\nLAB_0009d078:\n        piVar5 = piVar5 + 1;\n        iVar3 = iVar4;\n        if (*(int **)(param_1 + 0x128) == piVar5) goto LAB_0009d0f0;\n      }\n      if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    \n        FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n      }\n      if (((*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0') && ((uVar1 & 2) != 0)) ||\n         ((*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))))\n      goto LAB_0009d078;\n      if (iVar4 != 0) {\n        cVar2 = FUN_00097eb0(param_1,iVar3,iVar4);\n        if (cVar2 == '\0') goto LAB_0009d078;\n        iVar3 = *piVar5;\n      }\n      piVar5 = piVar5 + 1;\n      iVar4 = iVar3;\n    } while (*(int **)(param_1 + 0x128) != piVar5);\nLAB_0009d0f0:\n    if (iVar3 != 0) {\n      return iVar3;\n    }\n  }" { (do_statement "do {\n      while ((iVar3 = *piVar5, *(int *)(iVar3 + 0x194) != 1 ||\n             (uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0))) {\nLAB_0009d078:\n        piVar5 = piVar5 + 1;\n        iVar3 = iVar4;\n        if (*(int **)(param_1 + 0x128) == piVar5) goto LAB_0009d0f0;\n      }\n      if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    \n        FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n      }\n      if (((*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0') && ((uVar1 & 2) != 0)) ||\n         ((*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))))\n      goto LAB_0009d078;\n      if (iVar4 != 0) {\n        cVar2 = FUN_00097eb0(param_1,iVar3,iVar4);\n        if (cVar2 == '\0') goto LAB_0009d078;\n        iVar3 = *piVar5;\n      }\n      piVar5 = piVar5 + 1;\n      iVar4 = iVar3;\n    } while (*(int **)(param_1 + 0x128) != piVar5);" do (compound_statement "{\n      while ((iVar3 = *piVar5, *(int *)(iVar3 + 0x194) != 1 ||\n             (uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0))) {\nLAB_0009d078:\n        piVar5 = piVar5 + 1;\n        iVar3 = iVar4;\n        if (*(int **)(param_1 + 0x128) == piVar5) goto LAB_0009d0f0;\n      }\n      if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    \n        FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n      }\n      if (((*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0') && ((uVar1 & 2) != 0)) ||\n         ((*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))))\n      goto LAB_0009d078;\n      if (iVar4 != 0) {\n        cVar2 = FUN_00097eb0(param_1,iVar3,iVar4);\n        if (cVar2 == '\0') goto LAB_0009d078;\n        iVar3 = *piVar5;\n      }\n      piVar5 = piVar5 + 1;\n      iVar4 = iVar3;\n    }" { (while_statement "while ((iVar3 = *piVar5, *(int *)(iVar3 + 0x194) != 1 ||\n             (uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0))) {\nLAB_0009d078:\n        piVar5 = piVar5 + 1;\n        iVar3 = iVar4;\n        if (*(int **)(param_1 + 0x128) == piVar5) goto LAB_0009d0f0;\n      }" while (parenthesized_expression "((iVar3 = *piVar5, *(int *)(iVar3 + 0x194) != 1 ||\n             (uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0)))" ( (parenthesized_expression "(iVar3 = *piVar5, *(int *)(iVar3 + 0x194) != 1 ||\n             (uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0))" ( (comma_expression "iVar3 = *piVar5, *(int *)(iVar3 + 0x194) != 1 ||\n             (uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0)" (assignment_expression "iVar3 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) , (binary_expression "*(int *)(iVar3 + 0x194) != 1 ||\n             (uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0)" (binary_expression "*(int *)(iVar3 + 0x194) != 1" (pointer_expression "*(int *)(iVar3 + 0x194)" * (cast_expression "(int *)(iVar3 + 0x194)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x194)" ( (binary_expression "iVar3 + 0x194" identifier + number_literal) )))) != number_literal) || (parenthesized_expression "(uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0)" ( (comma_expression "uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0" (assignment_expression "uVar1 = *(uint *)(iVar3 + 0x198)" identifier = (pointer_expression "*(uint *)(iVar3 + 0x198)" * (cast_expression "(uint *)(iVar3 + 0x198)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x198)" ( (binary_expression "iVar3 + 0x198" identifier + number_literal) ))))) , (binary_expression "(uVar1 & 4) == 0" (parenthesized_expression "(uVar1 & 4)" ( (binary_expression "uVar1 & 4" identifier & number_literal) )) == number_literal)) )))) )) )) (compound_statement "{\nLAB_0009d078:\n        piVar5 = piVar5 + 1;\n        iVar3 = iVar4;\n        if (*(int **)(param_1 + 0x128) == piVar5) goto LAB_0009d0f0;\n      }" { (labeled_statement "LAB_0009d078:\n        piVar5 = piVar5 + 1;" statement_identifier : (expression_statement "piVar5 = piVar5 + 1;" (assignment_expression "piVar5 = piVar5 + 1" identifier = (binary_expression "piVar5 + 1" identifier + number_literal)) ;)) (expression_statement "iVar3 = iVar4;" (assignment_expression "iVar3 = iVar4" identifier = identifier) ;) (if_statement "if (*(int **)(param_1 + 0x128) == piVar5) goto LAB_0009d0f0;" if (parenthesized_expression "(*(int **)(param_1 + 0x128) == piVar5)" ( (binary_expression "*(int **)(param_1 + 0x128) == piVar5" (pointer_expression "*(int **)(param_1 + 0x128)" * (cast_expression "(int **)(param_1 + 0x128)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) == identifier) )) (goto_statement "goto LAB_0009d0f0;" goto statement_identifier ;)) })) (if_statement "if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    \n        FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n      }" if (parenthesized_expression "(*(int *)(DAT_0038f378 + 8) == 0)" ( (binary_expression "*(int *)(DAT_0038f378 + 8) == 0" (pointer_expression "*(int *)(DAT_0038f378 + 8)" * (cast_expression "(int *)(DAT_0038f378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0038f378 + 8)" ( (binary_expression "DAT_0038f378 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    \n        FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n      }" { (expression_statement "FUN_00069d00("../../gold/parameters.h",0x5c,"options");" (call_expression "FUN_00069d00("../../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 ") ))) ;) })) (if_statement "if (((*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0') && ((uVar1 & 2) != 0)) ||\n         ((*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))))\n      goto LAB_0009d078;" if (parenthesized_expression "(((*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0') && ((uVar1 & 2) != 0)) ||\n         ((*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))))" ( (binary_expression "((*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0') && ((uVar1 & 2) != 0)) ||\n         ((*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0)))" (parenthesized_expression "((*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0') && ((uVar1 & 2) != 0))" ( (binary_expression "(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0') && ((uVar1 & 2) != 0)" (parenthesized_expression "(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0')" ( (binary_expression "*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0'" (pointer_expression "*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d)" * (cast_expression "(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_0038f378 + 8) + 0x253d)" ( (binary_expression "*(int *)(DAT_0038f378 + 8) + 0x253d" (pointer_expression "*(int *)(DAT_0038f378 + 8)" * (cast_expression "(int *)(DAT_0038f378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0038f378 + 8)" ( (binary_expression "DAT_0038f378 + 8" identifier + number_literal) )))) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "((uVar1 & 2) != 0)" ( (binary_expression "(uVar1 & 2) != 0" (parenthesized_expression "(uVar1 & 2)" ( (binary_expression "uVar1 & 2" identifier & number_literal) )) != number_literal) ))) )) || (parenthesized_expression "((*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0)))" ( (parenthesized_expression "(*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))" ( (binary_expression "*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0)" (binary_expression "*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0'" (pointer_expression "*(char *)(*(int *)(param_2 + 4) + 0x30)" * (cast_expression "(char *)(*(int *)(param_2 + 4) + 0x30)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 4) + 0x30)" ( (binary_expression "*(int *)(param_2 + 4) + 0x30" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) && (parenthesized_expression "((uVar1 & 1) != 0)" ( (binary_expression "(uVar1 & 1) != 0" (parenthesized_expression "(uVar1 & 1)" ( (binary_expression "uVar1 & 1" identifier & number_literal) )) != number_literal) ))) )) ))) )) (goto_statement "goto LAB_0009d078;" goto statement_identifier ;)) (if_statement "if (iVar4 != 0) {\n        cVar2 = FUN_00097eb0(param_1,iVar3,iVar4);\n        if (cVar2 == '\0') goto LAB_0009d078;\n        iVar3 = *piVar5;\n      }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n        cVar2 = FUN_00097eb0(param_1,iVar3,iVar4);\n        if (cVar2 == '\0') goto LAB_0009d078;\n        iVar3 = *piVar5;\n      }" { (expression_statement "cVar2 = FUN_00097eb0(param_1,iVar3,iVar4);" (assignment_expression "cVar2 = FUN_00097eb0(param_1,iVar3,iVar4)" identifier = (call_expression "FUN_00097eb0(param_1,iVar3,iVar4)" identifier (argument_list "(param_1,iVar3,iVar4)" ( identifier , identifier , identifier )))) ;) (if_statement "if (cVar2 == '\0') goto LAB_0009d078;" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0009d078;" goto statement_identifier ;)) (expression_statement "iVar3 = *piVar5;" (assignment_expression "iVar3 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) })) (expression_statement "piVar5 = piVar5 + 1;" (assignment_expression "piVar5 = piVar5 + 1" identifier = (binary_expression "piVar5 + 1" identifier + number_literal)) ;) (expression_statement "iVar4 = iVar3;" (assignment_expression "iVar4 = iVar3" identifier = identifier) ;) }) while (parenthesized_expression "(*(int **)(param_1 + 0x128) != piVar5)" ( (binary_expression "*(int **)(param_1 + 0x128) != piVar5" (pointer_expression "*(int **)(param_1 + 0x128)" * (cast_expression "(int **)(param_1 + 0x128)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) != identifier) )) ;) (labeled_statement "LAB_0009d0f0:\n    if (iVar3 != 0) {\n      return iVar3;\n    }" statement_identifier : (if_statement "if (iVar3 != 0) {\n      return iVar3;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      return iVar3;\n    }" { (return_statement "return iVar3;" return identifier ;) }))) })) (if_statement "if ((*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') &&\n     (*(int *)(*(int *)(param_1 + 4) + 0xbc) != 0)) {\n                    \n    FUN_00069d00("../../gold/layout.cc",0xa10,"find_first_load_seg");\n  }" if (parenthesized_expression "((*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') &&\n     (*(int *)(*(int *)(param_1 + 4) + 0xbc) != 0))" ( (binary_expression "(*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') &&\n     (*(int *)(*(int *)(param_1 + 4) + 0xbc) != 0)" (parenthesized_expression "(*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0')" ( (binary_expression "*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0'" (pointer_expression "*(char *)(*(int *)(param_1 + 4) + 0xac)" * (cast_expression "(char *)(*(int *)(param_1 + 4) + 0xac)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 4) + 0xac)" ( (binary_expression "*(int *)(param_1 + 4) + 0xac" (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) )))) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(*(int *)(*(int *)(param_1 + 4) + 0xbc) != 0)" ( (binary_expression "*(int *)(*(int *)(param_1 + 4) + 0xbc) != 0" (pointer_expression "*(int *)(*(int *)(param_1 + 4) + 0xbc)" * (cast_expression "(int *)(*(int *)(param_1 + 4) + 0xbc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 4) + 0xbc)" ( (binary_expression "*(int *)(param_1 + 4) + 0xbc" (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) )))) + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n                    \n    FUN_00069d00("../../gold/layout.cc",0xa10,"find_first_load_seg");\n  }" { (expression_statement "FUN_00069d00("../../gold/layout.cc",0xa10,"find_first_load_seg");" (call_expression "FUN_00069d00("../../gold/layout.cc",0xa10,"find_first_load_seg")" identifier (argument_list "("../../gold/layout.cc",0xa10,"find_first_load_seg")" ( (string_literal ""../../gold/layout.cc"" " string_content ") , number_literal , (string_literal ""find_first_load_seg"" " string_content ") ))) ;) })) (expression_statement "iVar4 = FUN_0009b0e0(param_1,1,4);" (assignment_expression "iVar4 = FUN_0009b0e0(param_1,1,4)" identifier = (call_expression "FUN_0009b0e0(param_1,1,4)" identifier (argument_list "(param_1,1,4)" ( identifier , number_literal , number_literal )))) ;) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_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 { (while_statement while (parenthesized_expression ( (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * IDENT)) , (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT)) )))) )) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT) )) (goto_statement goto statement_identifier ;)) })) (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 ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (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) )))) == (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) ))) )) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (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) )))) != (char_literal ' escape_sequence ')) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) ))) )) ))) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT) )) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) }))) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) != (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (binary_expression (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) )))) != LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , LIT )))) ;) (return_statement return IDENT ;) })))
(function_definition "int FUN_0009d040(int param_1,int param_2)\n\n{\n  uint uVar1;\n  char cVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar5 = *(int **)(param_1 + 0x124);\n  iVar4 = 0;\n  if (piVar5 != *(int **)(param_1 + 0x128)) {\n    do {\n      while ((iVar3 = *piVar5, *(int *)(iVar3 + 0x194) != 1 ||\n             (uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0))) {\nLAB_0009d078:\n        piVar5 = piVar5 + 1;\n        iVar3 = iVar4;\n        if (*(int **)(param_1 + 0x128) == piVar5) goto LAB_0009d0f0;\n      }\n      if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    \n        FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n      }\n      if (((*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0') && ((uVar1 & 2) != 0)) ||\n         ((*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))))\n      goto LAB_0009d078;\n      if (iVar4 != 0) {\n        cVar2 = FUN_00097eb0(param_1,iVar3,iVar4);\n        if (cVar2 == '\0') goto LAB_0009d078;\n        iVar3 = *piVar5;\n      }\n      piVar5 = piVar5 + 1;\n      iVar4 = iVar3;\n    } while (*(int **)(param_1 + 0x128) != piVar5);\nLAB_0009d0f0:\n    if (iVar3 != 0) {\n      return iVar3;\n    }\n  }\n  if ((*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') &&\n     (*(int *)(*(int *)(param_1 + 4) + 0xbc) != 0)) {\n                    \n    FUN_00069d00("../../gold/layout.cc",0xa10,"find_first_load_seg");\n  }\n  iVar4 = FUN_0009b0e0(param_1,1,4);\n  return iVar4;\n}" (primitive_type "int") (function_declarator "FUN_0009d040(int param_1,int param_2)" (identifier "FUN_0009d040") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  uint uVar1;\n  char cVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar5 = *(int **)(param_1 + 0x124);\n  iVar4 = 0;\n  if (piVar5 != *(int **)(param_1 + 0x128)) {\n    do {\n      while ((iVar3 = *piVar5, *(int *)(iVar3 + 0x194) != 1 ||\n             (uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0))) {\nLAB_0009d078:\n        piVar5 = piVar5 + 1;\n        iVar3 = iVar4;\n        if (*(int **)(param_1 + 0x128) == piVar5) goto LAB_0009d0f0;\n      }\n      if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    \n        FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n      }\n      if (((*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0') && ((uVar1 & 2) != 0)) ||\n         ((*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))))\n      goto LAB_0009d078;\n      if (iVar4 != 0) {\n        cVar2 = FUN_00097eb0(param_1,iVar3,iVar4);\n        if (cVar2 == '\0') goto LAB_0009d078;\n        iVar3 = *piVar5;\n      }\n      piVar5 = piVar5 + 1;\n      iVar4 = iVar3;\n    } while (*(int **)(param_1 + 0x128) != piVar5);\nLAB_0009d0f0:\n    if (iVar3 != 0) {\n      return iVar3;\n    }\n  }\n  if ((*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') &&\n     (*(int *)(*(int *)(param_1 + 4) + 0xbc) != 0)) {\n                    \n    FUN_00069d00("../../gold/layout.cc",0xa10,"find_first_load_seg");\n  }\n  iVar4 = FUN_0009b0e0(param_1,1,4);\n  return iVar4;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (expression_statement "piVar5 = *(int **)(param_1 + 0x124);" (assignment_expression "piVar5 = *(int **)(param_1 + 0x124)" (identifier "piVar5") (= "=") (pointer_expression "*(int **)(param_1 + 0x124)" (* "*") (cast_expression "(int **)(param_1 + 0x124)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x124)" (( "(") (binary_expression "param_1 + 0x124" (identifier "param_1") (+ "+") (number_literal "0x124")) () ")"))))) (; ";")) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (if_statement "if (piVar5 != *(int **)(param_1 + 0x128)) {\n    do {\n      while ((iVar3 = *piVar5, *(int *)(iVar3 + 0x194) != 1 ||\n             (uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0))) {\nLAB_0009d078:\n        piVar5 = piVar5 + 1;\n        iVar3 = iVar4;\n        if (*(int **)(param_1 + 0x128) == piVar5) goto LAB_0009d0f0;\n      }\n      if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    \n        FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n      }\n      if (((*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0') && ((uVar1 & 2) != 0)) ||\n         ((*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))))\n      goto LAB_0009d078;\n      if (iVar4 != 0) {\n        cVar2 = FUN_00097eb0(param_1,iVar3,iVar4);\n        if (cVar2 == '\0') goto LAB_0009d078;\n        iVar3 = *piVar5;\n      }\n      piVar5 = piVar5 + 1;\n      iVar4 = iVar3;\n    } while (*(int **)(param_1 + 0x128) != piVar5);\nLAB_0009d0f0:\n    if (iVar3 != 0) {\n      return iVar3;\n    }\n  }" (if "if") (parenthesized_expression "(piVar5 != *(int **)(param_1 + 0x128))" (( "(") (binary_expression "piVar5 != *(int **)(param_1 + 0x128)" (identifier "piVar5") (!= "!=") (pointer_expression "*(int **)(param_1 + 0x128)" (* "*") (cast_expression "(int **)(param_1 + 0x128)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")"))))) () ")")) (compound_statement "{\n    do {\n      while ((iVar3 = *piVar5, *(int *)(iVar3 + 0x194) != 1 ||\n             (uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0))) {\nLAB_0009d078:\n        piVar5 = piVar5 + 1;\n        iVar3 = iVar4;\n        if (*(int **)(param_1 + 0x128) == piVar5) goto LAB_0009d0f0;\n      }\n      if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    \n        FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n      }\n      if (((*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0') && ((uVar1 & 2) != 0)) ||\n         ((*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))))\n      goto LAB_0009d078;\n      if (iVar4 != 0) {\n        cVar2 = FUN_00097eb0(param_1,iVar3,iVar4);\n        if (cVar2 == '\0') goto LAB_0009d078;\n        iVar3 = *piVar5;\n      }\n      piVar5 = piVar5 + 1;\n      iVar4 = iVar3;\n    } while (*(int **)(param_1 + 0x128) != piVar5);\nLAB_0009d0f0:\n    if (iVar3 != 0) {\n      return iVar3;\n    }\n  }" ({ "{") (do_statement "do {\n      while ((iVar3 = *piVar5, *(int *)(iVar3 + 0x194) != 1 ||\n             (uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0))) {\nLAB_0009d078:\n        piVar5 = piVar5 + 1;\n        iVar3 = iVar4;\n        if (*(int **)(param_1 + 0x128) == piVar5) goto LAB_0009d0f0;\n      }\n      if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    \n        FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n      }\n      if (((*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0') && ((uVar1 & 2) != 0)) ||\n         ((*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))))\n      goto LAB_0009d078;\n      if (iVar4 != 0) {\n        cVar2 = FUN_00097eb0(param_1,iVar3,iVar4);\n        if (cVar2 == '\0') goto LAB_0009d078;\n        iVar3 = *piVar5;\n      }\n      piVar5 = piVar5 + 1;\n      iVar4 = iVar3;\n    } while (*(int **)(param_1 + 0x128) != piVar5);" (do "do") (compound_statement "{\n      while ((iVar3 = *piVar5, *(int *)(iVar3 + 0x194) != 1 ||\n             (uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0))) {\nLAB_0009d078:\n        piVar5 = piVar5 + 1;\n        iVar3 = iVar4;\n        if (*(int **)(param_1 + 0x128) == piVar5) goto LAB_0009d0f0;\n      }\n      if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    \n        FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n      }\n      if (((*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0') && ((uVar1 & 2) != 0)) ||\n         ((*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))))\n      goto LAB_0009d078;\n      if (iVar4 != 0) {\n        cVar2 = FUN_00097eb0(param_1,iVar3,iVar4);\n        if (cVar2 == '\0') goto LAB_0009d078;\n        iVar3 = *piVar5;\n      }\n      piVar5 = piVar5 + 1;\n      iVar4 = iVar3;\n    }" ({ "{") (while_statement "while ((iVar3 = *piVar5, *(int *)(iVar3 + 0x194) != 1 ||\n             (uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0))) {\nLAB_0009d078:\n        piVar5 = piVar5 + 1;\n        iVar3 = iVar4;\n        if (*(int **)(param_1 + 0x128) == piVar5) goto LAB_0009d0f0;\n      }" (while "while") (parenthesized_expression "((iVar3 = *piVar5, *(int *)(iVar3 + 0x194) != 1 ||\n             (uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0)))" (( "(") (parenthesized_expression "(iVar3 = *piVar5, *(int *)(iVar3 + 0x194) != 1 ||\n             (uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0))" (( "(") (comma_expression "iVar3 = *piVar5, *(int *)(iVar3 + 0x194) != 1 ||\n             (uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0)" (assignment_expression "iVar3 = *piVar5" (identifier "iVar3") (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (, ",") (binary_expression "*(int *)(iVar3 + 0x194) != 1 ||\n             (uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0)" (binary_expression "*(int *)(iVar3 + 0x194) != 1" (pointer_expression "*(int *)(iVar3 + 0x194)" (* "*") (cast_expression "(int *)(iVar3 + 0x194)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x194)" (( "(") (binary_expression "iVar3 + 0x194" (identifier "iVar3") (+ "+") (number_literal "0x194")) () ")")))) (!= "!=") (number_literal "1")) (|| "||") (parenthesized_expression "(uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0)" (( "(") (comma_expression "uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0" (assignment_expression "uVar1 = *(uint *)(iVar3 + 0x198)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(iVar3 + 0x198)" (* "*") (cast_expression "(uint *)(iVar3 + 0x198)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x198)" (( "(") (binary_expression "iVar3 + 0x198" (identifier "iVar3") (+ "+") (number_literal "0x198")) () ")"))))) (, ",") (binary_expression "(uVar1 & 4) == 0" (parenthesized_expression "(uVar1 & 4)" (( "(") (binary_expression "uVar1 & 4" (identifier "uVar1") (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0"))) () ")")))) () ")")) () ")")) (compound_statement "{\nLAB_0009d078:\n        piVar5 = piVar5 + 1;\n        iVar3 = iVar4;\n        if (*(int **)(param_1 + 0x128) == piVar5) goto LAB_0009d0f0;\n      }" ({ "{") (labeled_statement "LAB_0009d078:\n        piVar5 = piVar5 + 1;" (statement_identifier "LAB_0009d078") (: ":") (expression_statement "piVar5 = piVar5 + 1;" (assignment_expression "piVar5 = piVar5 + 1" (identifier "piVar5") (= "=") (binary_expression "piVar5 + 1" (identifier "piVar5") (+ "+") (number_literal "1"))) (; ";"))) (expression_statement "iVar3 = iVar4;" (assignment_expression "iVar3 = iVar4" (identifier "iVar3") (= "=") (identifier "iVar4")) (; ";")) (if_statement "if (*(int **)(param_1 + 0x128) == piVar5) goto LAB_0009d0f0;" (if "if") (parenthesized_expression "(*(int **)(param_1 + 0x128) == piVar5)" (( "(") (binary_expression "*(int **)(param_1 + 0x128) == piVar5" (pointer_expression "*(int **)(param_1 + 0x128)" (* "*") (cast_expression "(int **)(param_1 + 0x128)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")")))) (== "==") (identifier "piVar5")) () ")")) (goto_statement "goto LAB_0009d0f0;" (goto "goto") (statement_identifier "LAB_0009d0f0") (; ";"))) (} "}"))) (if_statement "if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    \n        FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n      }" (if "if") (parenthesized_expression "(*(int *)(DAT_0038f378 + 8) == 0)" (( "(") (binary_expression "*(int *)(DAT_0038f378 + 8) == 0" (pointer_expression "*(int *)(DAT_0038f378 + 8)" (* "*") (cast_expression "(int *)(DAT_0038f378 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0038f378 + 8)" (( "(") (binary_expression "DAT_0038f378 + 8" (identifier "DAT_0038f378") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n        FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n      }" ({ "{") (expression_statement "FUN_00069d00("../../gold/parameters.h",0x5c,"options");" (call_expression "FUN_00069d00("../../gold/parameters.h",0x5c,"options")" (identifier "FUN_00069d00") (argument_list "("../../gold/parameters.h",0x5c,"options")" (( "(") (string_literal ""../../gold/parameters.h"" (" """) (string_content "../../gold/parameters.h") (" """)) (, ",") (number_literal "0x5c") (, ",") (string_literal ""options"" (" """) (string_content "options") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (((*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0') && ((uVar1 & 2) != 0)) ||\n         ((*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))))\n      goto LAB_0009d078;" (if "if") (parenthesized_expression "(((*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0') && ((uVar1 & 2) != 0)) ||\n         ((*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))))" (( "(") (binary_expression "((*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0') && ((uVar1 & 2) != 0)) ||\n         ((*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0)))" (parenthesized_expression "((*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0') && ((uVar1 & 2) != 0))" (( "(") (binary_expression "(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0') && ((uVar1 & 2) != 0)" (parenthesized_expression "(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0')" (( "(") (binary_expression "*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0'" (pointer_expression "*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d)" (* "*") (cast_expression "(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(DAT_0038f378 + 8) + 0x253d)" (( "(") (binary_expression "*(int *)(DAT_0038f378 + 8) + 0x253d" (pointer_expression "*(int *)(DAT_0038f378 + 8)" (* "*") (cast_expression "(int *)(DAT_0038f378 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0038f378 + 8)" (( "(") (binary_expression "DAT_0038f378 + 8" (identifier "DAT_0038f378") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "0x253d")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "((uVar1 & 2) != 0)" (( "(") (binary_expression "(uVar1 & 2) != 0" (parenthesized_expression "(uVar1 & 2)" (( "(") (binary_expression "uVar1 & 2" (identifier "uVar1") (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (|| "||") (parenthesized_expression "((*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0)))" (( "(") (parenthesized_expression "(*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))" (( "(") (binary_expression "*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0)" (binary_expression "*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0'" (pointer_expression "*(char *)(*(int *)(param_2 + 4) + 0x30)" (* "*") (cast_expression "(char *)(*(int *)(param_2 + 4) + 0x30)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_2 + 4) + 0x30)" (( "(") (binary_expression "*(int *)(param_2 + 4) + 0x30" (pointer_expression "*(int *)(param_2 + 4)" (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "0x30")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (&& "&&") (parenthesized_expression "((uVar1 & 1) != 0)" (( "(") (binary_expression "(uVar1 & 1) != 0" (parenthesized_expression "(uVar1 & 1)" (( "(") (binary_expression "uVar1 & 1" (identifier "uVar1") (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) () ")"))) () ")")) (goto_statement "goto LAB_0009d078;" (goto "goto") (statement_identifier "LAB_0009d078") (; ";"))) (if_statement "if (iVar4 != 0) {\n        cVar2 = FUN_00097eb0(param_1,iVar3,iVar4);\n        if (cVar2 == '\0') goto LAB_0009d078;\n        iVar3 = *piVar5;\n      }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        cVar2 = FUN_00097eb0(param_1,iVar3,iVar4);\n        if (cVar2 == '\0') goto LAB_0009d078;\n        iVar3 = *piVar5;\n      }" ({ "{") (expression_statement "cVar2 = FUN_00097eb0(param_1,iVar3,iVar4);" (assignment_expression "cVar2 = FUN_00097eb0(param_1,iVar3,iVar4)" (identifier "cVar2") (= "=") (call_expression "FUN_00097eb0(param_1,iVar3,iVar4)" (identifier "FUN_00097eb0") (argument_list "(param_1,iVar3,iVar4)" (( "(") (identifier "param_1") (, ",") (identifier "iVar3") (, ",") (identifier "iVar4") () ")")))) (; ";")) (if_statement "if (cVar2 == '\0') goto LAB_0009d078;" (if "if") (parenthesized_expression "(cVar2 == '\0')" (( "(") (binary_expression "cVar2 == '\0'" (identifier "cVar2") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_0009d078;" (goto "goto") (statement_identifier "LAB_0009d078") (; ";"))) (expression_statement "iVar3 = *piVar5;" (assignment_expression "iVar3 = *piVar5" (identifier "iVar3") (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (} "}"))) (expression_statement "piVar5 = piVar5 + 1;" (assignment_expression "piVar5 = piVar5 + 1" (identifier "piVar5") (= "=") (binary_expression "piVar5 + 1" (identifier "piVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar4 = iVar3;" (assignment_expression "iVar4 = iVar3" (identifier "iVar4") (= "=") (identifier "iVar3")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*(int **)(param_1 + 0x128) != piVar5)" (( "(") (binary_expression "*(int **)(param_1 + 0x128) != piVar5" (pointer_expression "*(int **)(param_1 + 0x128)" (* "*") (cast_expression "(int **)(param_1 + 0x128)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")")))) (!= "!=") (identifier "piVar5")) () ")")) (; ";")) (labeled_statement "LAB_0009d0f0:\n    if (iVar3 != 0) {\n      return iVar3;\n    }" (statement_identifier "LAB_0009d0f0") (: ":") (if_statement "if (iVar3 != 0) {\n      return iVar3;\n    }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return iVar3;\n    }" ({ "{") (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}")))) (} "}"))) (if_statement "if ((*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') &&\n     (*(int *)(*(int *)(param_1 + 4) + 0xbc) != 0)) {\n                    \n    FUN_00069d00("../../gold/layout.cc",0xa10,"find_first_load_seg");\n  }" (if "if") (parenthesized_expression "((*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') &&\n     (*(int *)(*(int *)(param_1 + 4) + 0xbc) != 0))" (( "(") (binary_expression "(*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') &&\n     (*(int *)(*(int *)(param_1 + 4) + 0xbc) != 0)" (parenthesized_expression "(*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0')" (( "(") (binary_expression "*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0'" (pointer_expression "*(char *)(*(int *)(param_1 + 4) + 0xac)" (* "*") (cast_expression "(char *)(*(int *)(param_1 + 4) + 0xac)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 4) + 0xac)" (( "(") (binary_expression "*(int *)(param_1 + 4) + 0xac" (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")) () ")")))) (+ "+") (number_literal "0xac")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(*(int *)(param_1 + 4) + 0xbc) != 0)" (( "(") (binary_expression "*(int *)(*(int *)(param_1 + 4) + 0xbc) != 0" (pointer_expression "*(int *)(*(int *)(param_1 + 4) + 0xbc)" (* "*") (cast_expression "(int *)(*(int *)(param_1 + 4) + 0xbc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 4) + 0xbc)" (( "(") (binary_expression "*(int *)(param_1 + 4) + 0xbc" (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")) () ")")))) (+ "+") (number_literal "0xbc")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n                    \n    FUN_00069d00("../../gold/layout.cc",0xa10,"find_first_load_seg");\n  }" ({ "{") (expression_statement "FUN_00069d00("../../gold/layout.cc",0xa10,"find_first_load_seg");" (call_expression "FUN_00069d00("../../gold/layout.cc",0xa10,"find_first_load_seg")" (identifier "FUN_00069d00") (argument_list "("../../gold/layout.cc",0xa10,"find_first_load_seg")" (( "(") (string_literal ""../../gold/layout.cc"" (" """) (string_content "../../gold/layout.cc") (" """)) (, ",") (number_literal "0xa10") (, ",") (string_literal ""find_first_load_seg"" (" """) (string_content "find_first_load_seg") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar4 = FUN_0009b0e0(param_1,1,4);" (assignment_expression "iVar4 = FUN_0009b0e0(param_1,1,4)" (identifier "iVar4") (= "=") (call_expression "FUN_0009b0e0(param_1,1,4)" (identifier "FUN_0009b0e0") (argument_list "(param_1,1,4)" (( "(") (identifier "param_1") (, ",") (number_literal "1") (, ",") (number_literal "4") () ")")))) (; ";")) (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: Output_segment * find_first_load_seg(Layout * this, Target * target) */

type_2 * __thiscall var_1::Layout::find_first_load_seg(Layout *this,Target *var_7)

{
  type_1 var_5;
  bool bVar2;
  type_2 *var_10;
  type_2 *var_8;
  type_3 var_4;
  
  var_4 = (this->segment_list_).
            super__Vector_base<var_1::type_2*,var_2::allocator<var_1::type_2*>var_3>.
            _M_impl._M_start;
  var_8 = (type_2 *)0x0;
  if (var_4 !=
      (this->segment_list_).
      super__Vector_base<var_1::type_2*,var_2::allocator<var_1::type_2*>var_3>._M_impl.
      _M_finish) {
    do {
      while ((var_10 = *var_4, var_10->type_ != 1 || (var_5 = var_10->flags_, (var_5 & 4) == 0))) {
LAB_0009d078:
        var_4 = var_4 + 1;
        var_10 = var_8;
        if ((this->segment_list_).
            super__Vector_base<var_1::type_2*,var_2::allocator<var_1::type_2*>var_3>.
            _M_impl._M_finish == var_4) goto LAB_0009d0f0;
      }
      if (parameters->options_ == (type_4 *)0x0) {
                    /* WARNING: Subroutine does not return */
        var_6("../../gold/parameters.h",0x5c,"options");
      }
      if ((((parameters->options_->omagic_).value == false) && ((var_5 & 2) != 0)) ||
         ((*(char *)(*(int *)(var_7 + 4) + 0x30) != '\0' && ((var_5 & 1) != 0))))
      goto LAB_0009d078;
      if (var_8 != (type_2 *)0x0) {
        bVar2 = var_9(this,var_10,var_8);
        if (!bVar2) goto LAB_0009d078;
        var_10 = *var_4;
      }
      var_4 = var_4 + 1;
      var_8 = var_10;
    } while ((this->segment_list_).
             super__Vector_base<var_1::type_2*,var_2::allocator<var_1::type_2*>var_3>.
             _M_impl._M_finish != var_4);
LAB_0009d0f0:
    if (var_10 != (type_2 *)0x0) {
      return var_10;
    }
  }
  if (((this->script_options_->script_sections_).saw_sections_clause_ != false) &&
     ((this->script_options_->script_sections_).phdrs_elements_ != (type_5 *)0x0)) {
                    /* WARNING: Subroutine does not return */
    var_6("../../gold/layout.cc",0xa10,"find_first_load_seg");
  }
  var_8 = var_11(this,1,4);
  return var_8;
}


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

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

int MASKED(int param_1,int param_2)

{
  uint uVar1;
  char cVar2;
  int iVar3;
  int iVar4;
  int *piVar5;
  
  piVar5 = *(int **)(param_1 + 0x124);
  iVar4 = 0;
  if (piVar5 != *(int **)(param_1 + 0x128)) {
    do {
      while ((iVar3 = *piVar5, *(int *)(iVar3 + 0x194) != 1 ||
             (uVar1 = *(uint *)(iVar3 + 0x198), (uVar1 & 4) == 0))) {
LAB_0009d078:
        piVar5 = piVar5 + 1;
        iVar3 = iVar4;
        if (*(int **)(param_1 + 0x128) == piVar5) goto LAB_0009d0f0;
      }
      if (*(int *)(DAT_0038f378 + 8) == 0) {
                    /* WARNING: Subroutine does not return */
        FUN_00069d00("../../gold/parameters.h",0x5c,"options");
      }
      if (((*(char *)(*(int *)(DAT_0038f378 + 8) + 0x253d) == '\0') && ((uVar1 & 2) != 0)) ||
         ((*(char *)(*(int *)(param_2 + 4) + 0x30) != '\0' && ((uVar1 & 1) != 0))))
      goto LAB_0009d078;
      if (iVar4 != 0) {
        cVar2 = FUN_00097eb0(param_1,iVar3,iVar4);
        if (cVar2 == '\0') goto LAB_0009d078;
        iVar3 = *piVar5;
      }
      piVar5 = piVar5 + 1;
      iVar4 = iVar3;
    } while (*(int **)(param_1 + 0x128) != piVar5);
LAB_0009d0f0:
    if (iVar3 != 0) {
      return iVar3;
    }
  }
  if ((*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') &&
     (*(int *)(*(int *)(param_1 + 4) + 0xbc) != 0)) {
                    /* WARNING: Subroutine does not return */
    FUN_00069d00("../../gold/layout.cc",0xa10,"find_first_load_seg");
  }
  iVar4 = FUN_0009b0e0(param_1,1,4);
  return iVar4;
}

