
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: void add_output_section_to_load(Output_segment * this, Layout * layout,
   Output_section * os, Elf_Word seg_flags) */

void __thiscall
gold::Output_segment::add_output_section_to_load
          (Output_segment *this,Layout *layout,Output_section *os,Elf_Word seg_flags)

{
  byte bVar1;
  Output_section *local_10;
  undefined4 uStack_c;
  
  uStack_c = 0x108ca7;
  if (this->type_ != 1) {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/output.cc",0x1029,"add_output_section_to_load");
  }
  if ((os->flags_ & 2) == 0) {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/output.cc",0x102a,"add_output_section_to_load");
  }
  if ((this->field_0x19c & 1) != 0) {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/output.cc",0x102b,"add_output_section_to_load");
  }
  bVar1 = -((char)os->field_0x91 >> 7);
  if (bVar1 != 0) {
    bVar1 = os->type_ != 8;
  }
  if (bVar1 == ((byte)this->field_0x19c >> 2 & 1)) {
    this->flags_ = this->flags_ | seg_flags;
    if ((layout->script_options_->script_sections_).saw_sections_clause_ == false) {
      if (os->order_ == ORDER_INVALID) {
                    /* WARNING: Subroutine does not return */
        do_gold_unreachable("../../gold/output.cc",0x1036,"add_output_section_to_load");
      }
      this = (Output_segment *)(this->output_lists_ + os->order_);
    }
    local_10 = os;
    std::vector<gold::Output_data*,_std::allocator<gold::Output_data*>_>::
    emplace_back<gold::Output_data*>(this->output_lists_,(Output_data **)&local_10);
    return;
  }
                    /* WARNING: Subroutine does not return */
  do_gold_unreachable("../../gold/output.cc",0x102c,"add_output_section_to_load");
}



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

void FUN_00108ca0(int param_1,int param_2,int param_3,uint param_4)

{
  byte bVar1;
  undefined4 in_ECX;
  byte bVar2;
  int local_10 [2];
  
  local_10[1] = 0x108ca7;
  if (*(int *)(param_1 + 0x194) != 1) {
                    /* WARNING: Subroutine does not return */
    FUN_0007d010("../../gold/output.cc",0x1029,"add_output_section_to_load",param_1);
  }
  if ((*(byte *)(param_3 + 0x54) & 2) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0007d010("../../gold/output.cc",0x102a,"add_output_section_to_load",param_3);
  }
  if ((*(byte *)(param_1 + 0x19c) & 1) != 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0007d010("../../gold/output.cc",0x102b,"add_output_section_to_load",in_ECX);
  }
  bVar1 = -(*(char *)(param_3 + 0x91) >> 7);
  if (bVar1 != 0) {
    bVar1 = *(int *)(param_3 + 0x50) != 8;
  }
  bVar2 = *(byte *)(param_1 + 0x19c) >> 2 & 1;
  if (bVar1 == bVar2) {
    *(uint *)(param_1 + 0x198) = *(uint *)(param_1 + 0x198) | param_4;
    if (*(char *)(*(int *)(param_2 + 4) + 0xac) == '\0') {
      if (*(int *)(param_3 + 0x5c) == 0) {
                    /* WARNING: Subroutine does not return */
        FUN_0007d010("../../gold/output.cc",0x1036,"add_output_section_to_load",param_1);
      }
      param_1 = param_1 + *(int *)(param_3 + 0x5c) * 0xc;
    }
    local_10[0] = param_3;
    FUN_000baa20(param_1,local_10);
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0007d010("../../gold/output.cc",0x102c,"add_output_section_to_load",bVar2);
}


PUSH ESI
PUSH EBX
CALL 0x00036f20
ADD EBX,0x2a6359
SUB ESP,0x14
MOV EAX,dword ptr [ESP + 0x20]
MOV ESI,dword ptr [ESP + 0x28]
CMP dword ptr [EAX + 0x194],0x1
JNZ 0x00108d7b
TEST byte ptr [ESI + 0x54],0x2
JZ 0x00108d62
MOVZX EDX,byte ptr [EAX + 0x19c]
TEST DL,0x1
JNZ 0x00108d49
MOVZX ECX,byte ptr [ESI + 0x91]
SHR CL,0x7
JNZ 0x00108d40
SHR DL,0x2
AND EDX,0x1
CMP CL,DL
JNZ 0x00108d94
MOV EDX,dword ptr [ESP + 0x2c]
OR dword ptr [EAX + 0x198],EDX
MOV EDX,dword ptr [ESP + 0x24]
MOV EDX,dword ptr [EDX + 0x4]
CMP byte ptr [EDX + 0xac],0x0
JNZ 0x00108d20
MOV EDX,dword ptr [ESI + 0x5c]
TEST EDX,EDX
JZ 0x00108dad
LEA EDX,[EDX + EDX*0x2]
LEA EAX,[EAX + EDX*0x4]
MOV dword ptr [ESP + 0xc],ESI
SUB ESP,0x8
LEA EDX,[ESP + 0x14]
PUSH EDX
PUSH EAX
CALL 0x000baa20
ADD ESP,0x24
POP EBX
POP ESI
RET
CMP dword ptr [ESI + 0x50],0x8
SETNZ CL
JMP 0x00108ce7
LEA EAX,[EBX + 0xfff00808]
PUSH ECX
PUSH EAX
LEA EAX,[EBX + 0xffeff0cb]
PUSH 0x102b
PUSH EAX
CALL 0x0007d010
LEA EAX,[EBX + 0xfff00808]
PUSH ESI
PUSH EAX
LEA EAX,[EBX + 0xffeff0cb]
PUSH 0x102a
PUSH EAX
CALL 0x0007d010
PUSH EAX
LEA EAX,[EBX + 0xfff00808]
PUSH EAX
LEA EAX,[EBX + 0xffeff0cb]
PUSH 0x1029
PUSH EAX
CALL 0x0007d010
LEA EAX,[EBX + 0xfff00808]
PUSH EDX
PUSH EAX
LEA EAX,[EBX + 0xffeff0cb]
PUSH 0x102c
PUSH EAX
CALL 0x0007d010
PUSH EAX
LEA EAX,[EBX + 0xfff00808]
PUSH EAX
LEA EAX,[EBX + 0xffeff0cb]
PUSH 0x1036
PUSH EAX
CALL 0x0007d010
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00108ca0(int param_1,int param_2,int param_3,uint param_4)\n\n{\n  byte bVar1;\n  undefined4 in_ECX;\n  byte bVar2;\n  int local_10 [2];\n  \n  local_10[1] = 0x108ca7;\n  if (*(int *)(param_1 + 0x194) != 1) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007d010("../../gold/output.cc",0x1029,"add_output_section_to_load",param_1);\n  }\n  if ((*(byte *)(param_3 + 0x54) & 2) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007d010("../../gold/output.cc",0x102a,"add_output_section_to_load",param_3);\n  }\n  if ((*(byte *)(param_1 + 0x19c) & 1) != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007d010("../../gold/output.cc",0x102b,"add_output_section_to_load",in_ECX);\n  }\n  bVar1 = -(*(char *)(param_3 + 0x91) >> 7);\n  if (bVar1 != 0) {\n    bVar1 = *(int *)(param_3 + 0x50) != 8;\n  }\n  bVar2 = *(byte *)(param_1 + 0x19c) >> 2 & 1;\n  if (bVar1 == bVar2) {\n    *(uint *)(param_1 + 0x198) = *(uint *)(param_1 + 0x198) | param_4;\n    if (*(char *)(*(int *)(param_2 + 4) + 0xac) == '\0') {\n      if (*(int *)(param_3 + 0x5c) == 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0007d010("../../gold/output.cc",0x1036,"add_output_section_to_load",param_1);\n      }\n      param_1 = param_1 + *(int *)(param_3 + 0x5c) * 0xc;\n    }\n    local_10[0] = param_3;\n    FUN_000baa20(param_1,local_10);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0007d010("../../gold/output.cc",0x102c,"add_output_section_to_load",bVar2);\n}\n\n" comment (function_definition "void FUN_00108ca0(int param_1,int param_2,int param_3,uint param_4)\n\n{\n  byte bVar1;\n  undefined4 in_ECX;\n  byte bVar2;\n  int local_10 [2];\n  \n  local_10[1] = 0x108ca7;\n  if (*(int *)(param_1 + 0x194) != 1) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007d010("../../gold/output.cc",0x1029,"add_output_section_to_load",param_1);\n  }\n  if ((*(byte *)(param_3 + 0x54) & 2) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007d010("../../gold/output.cc",0x102a,"add_output_section_to_load",param_3);\n  }\n  if ((*(byte *)(param_1 + 0x19c) & 1) != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007d010("../../gold/output.cc",0x102b,"add_output_section_to_load",in_ECX);\n  }\n  bVar1 = -(*(char *)(param_3 + 0x91) >> 7);\n  if (bVar1 != 0) {\n    bVar1 = *(int *)(param_3 + 0x50) != 8;\n  }\n  bVar2 = *(byte *)(param_1 + 0x19c) >> 2 & 1;\n  if (bVar1 == bVar2) {\n    *(uint *)(param_1 + 0x198) = *(uint *)(param_1 + 0x198) | param_4;\n    if (*(char *)(*(int *)(param_2 + 4) + 0xac) == '\0') {\n      if (*(int *)(param_3 + 0x5c) == 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0007d010("../../gold/output.cc",0x1036,"add_output_section_to_load",param_1);\n      }\n      param_1 = param_1 + *(int *)(param_3 + 0x5c) * 0xc;\n    }\n    local_10[0] = param_3;\n    FUN_000baa20(param_1,local_10);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0007d010("../../gold/output.cc",0x102c,"add_output_section_to_load",bVar2);\n}" primitive_type (function_declarator "FUN_00108ca0(int param_1,int param_2,int param_3,uint param_4)" identifier (parameter_list "(int param_1,int param_2,int param_3,uint param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  undefined4 in_ECX;\n  byte bVar2;\n  int local_10 [2];\n  \n  local_10[1] = 0x108ca7;\n  if (*(int *)(param_1 + 0x194) != 1) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007d010("../../gold/output.cc",0x1029,"add_output_section_to_load",param_1);\n  }\n  if ((*(byte *)(param_3 + 0x54) & 2) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007d010("../../gold/output.cc",0x102a,"add_output_section_to_load",param_3);\n  }\n  if ((*(byte *)(param_1 + 0x19c) & 1) != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007d010("../../gold/output.cc",0x102b,"add_output_section_to_load",in_ECX);\n  }\n  bVar1 = -(*(char *)(param_3 + 0x91) >> 7);\n  if (bVar1 != 0) {\n    bVar1 = *(int *)(param_3 + 0x50) != 8;\n  }\n  bVar2 = *(byte *)(param_1 + 0x19c) >> 2 & 1;\n  if (bVar1 == bVar2) {\n    *(uint *)(param_1 + 0x198) = *(uint *)(param_1 + 0x198) | param_4;\n    if (*(char *)(*(int *)(param_2 + 4) + 0xac) == '\0') {\n      if (*(int *)(param_3 + 0x5c) == 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0007d010("../../gold/output.cc",0x1036,"add_output_section_to_load",param_1);\n      }\n      param_1 = param_1 + *(int *)(param_3 + 0x5c) * 0xc;\n    }\n    local_10[0] = param_3;\n    FUN_000baa20(param_1,local_10);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0007d010("../../gold/output.cc",0x102c,"add_output_section_to_load",bVar2);\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "undefined4 in_ECX;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "int local_10 [2];" primitive_type (array_declarator "local_10 [2]" identifier [ number_literal ]) ;) (expression_statement "local_10[1] = 0x108ca7;" (assignment_expression "local_10[1] = 0x108ca7" (subscript_expression "local_10[1]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (*(int *)(param_1 + 0x194) != 1) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007d010("../../gold/output.cc",0x1029,"add_output_section_to_load",param_1);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x194) != 1)" ( (binary_expression "*(int *)(param_1 + 0x194) != 1" (pointer_expression "*(int *)(param_1 + 0x194)" * (cast_expression "(int *)(param_1 + 0x194)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x194)" ( (binary_expression "param_1 + 0x194" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0007d010("../../gold/output.cc",0x1029,"add_output_section_to_load",param_1);\n  }" { comment (expression_statement "FUN_0007d010("../../gold/output.cc",0x1029,"add_output_section_to_load",param_1);" (call_expression "FUN_0007d010("../../gold/output.cc",0x1029,"add_output_section_to_load",param_1)" identifier (argument_list "("../../gold/output.cc",0x1029,"add_output_section_to_load",param_1)" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""add_output_section_to_load"" " string_content ") , identifier ))) ;) })) (if_statement "if ((*(byte *)(param_3 + 0x54) & 2) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007d010("../../gold/output.cc",0x102a,"add_output_section_to_load",param_3);\n  }" if (parenthesized_expression "((*(byte *)(param_3 + 0x54) & 2) == 0)" ( (binary_expression "(*(byte *)(param_3 + 0x54) & 2) == 0" (parenthesized_expression "(*(byte *)(param_3 + 0x54) & 2)" ( (binary_expression "*(byte *)(param_3 + 0x54) & 2" (pointer_expression "*(byte *)(param_3 + 0x54)" * (cast_expression "(byte *)(param_3 + 0x54)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x54)" ( (binary_expression "param_3 + 0x54" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0007d010("../../gold/output.cc",0x102a,"add_output_section_to_load",param_3);\n  }" { comment (expression_statement "FUN_0007d010("../../gold/output.cc",0x102a,"add_output_section_to_load",param_3);" (call_expression "FUN_0007d010("../../gold/output.cc",0x102a,"add_output_section_to_load",param_3)" identifier (argument_list "("../../gold/output.cc",0x102a,"add_output_section_to_load",param_3)" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""add_output_section_to_load"" " string_content ") , identifier ))) ;) })) (if_statement "if ((*(byte *)(param_1 + 0x19c) & 1) != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007d010("../../gold/output.cc",0x102b,"add_output_section_to_load",in_ECX);\n  }" if (parenthesized_expression "((*(byte *)(param_1 + 0x19c) & 1) != 0)" ( (binary_expression "(*(byte *)(param_1 + 0x19c) & 1) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0x19c) & 1)" ( (binary_expression "*(byte *)(param_1 + 0x19c) & 1" (pointer_expression "*(byte *)(param_1 + 0x19c)" * (cast_expression "(byte *)(param_1 + 0x19c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x19c)" ( (binary_expression "param_1 + 0x19c" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0007d010("../../gold/output.cc",0x102b,"add_output_section_to_load",in_ECX);\n  }" { comment (expression_statement "FUN_0007d010("../../gold/output.cc",0x102b,"add_output_section_to_load",in_ECX);" (call_expression "FUN_0007d010("../../gold/output.cc",0x102b,"add_output_section_to_load",in_ECX)" identifier (argument_list "("../../gold/output.cc",0x102b,"add_output_section_to_load",in_ECX)" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""add_output_section_to_load"" " string_content ") , identifier ))) ;) })) (expression_statement "bVar1 = -(*(char *)(param_3 + 0x91) >> 7);" (assignment_expression "bVar1 = -(*(char *)(param_3 + 0x91) >> 7)" identifier = (unary_expression "-(*(char *)(param_3 + 0x91) >> 7)" - (parenthesized_expression "(*(char *)(param_3 + 0x91) >> 7)" ( (binary_expression "*(char *)(param_3 + 0x91) >> 7" (pointer_expression "*(char *)(param_3 + 0x91)" * (cast_expression "(char *)(param_3 + 0x91)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x91)" ( (binary_expression "param_3 + 0x91" identifier + number_literal) )))) >> number_literal) )))) ;) (if_statement "if (bVar1 != 0) {\n    bVar1 = *(int *)(param_3 + 0x50) != 8;\n  }" if (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    bVar1 = *(int *)(param_3 + 0x50) != 8;\n  }" { (expression_statement "bVar1 = *(int *)(param_3 + 0x50) != 8;" (assignment_expression "bVar1 = *(int *)(param_3 + 0x50) != 8" identifier = (binary_expression "*(int *)(param_3 + 0x50) != 8" (pointer_expression "*(int *)(param_3 + 0x50)" * (cast_expression "(int *)(param_3 + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x50)" ( (binary_expression "param_3 + 0x50" identifier + number_literal) )))) != number_literal)) ;) })) (expression_statement "bVar2 = *(byte *)(param_1 + 0x19c) >> 2 & 1;" (assignment_expression "bVar2 = *(byte *)(param_1 + 0x19c) >> 2 & 1" identifier = (binary_expression "*(byte *)(param_1 + 0x19c) >> 2 & 1" (binary_expression "*(byte *)(param_1 + 0x19c) >> 2" (pointer_expression "*(byte *)(param_1 + 0x19c)" * (cast_expression "(byte *)(param_1 + 0x19c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x19c)" ( (binary_expression "param_1 + 0x19c" identifier + number_literal) )))) >> number_literal) & number_literal)) ;) (if_statement "if (bVar1 == bVar2) {\n    *(uint *)(param_1 + 0x198) = *(uint *)(param_1 + 0x198) | param_4;\n    if (*(char *)(*(int *)(param_2 + 4) + 0xac) == '\0') {\n      if (*(int *)(param_3 + 0x5c) == 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0007d010("../../gold/output.cc",0x1036,"add_output_section_to_load",param_1);\n      }\n      param_1 = param_1 + *(int *)(param_3 + 0x5c) * 0xc;\n    }\n    local_10[0] = param_3;\n    FUN_000baa20(param_1,local_10);\n    return;\n  }" if (parenthesized_expression "(bVar1 == bVar2)" ( (binary_expression "bVar1 == bVar2" identifier == identifier) )) (compound_statement "{\n    *(uint *)(param_1 + 0x198) = *(uint *)(param_1 + 0x198) | param_4;\n    if (*(char *)(*(int *)(param_2 + 4) + 0xac) == '\0') {\n      if (*(int *)(param_3 + 0x5c) == 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0007d010("../../gold/output.cc",0x1036,"add_output_section_to_load",param_1);\n      }\n      param_1 = param_1 + *(int *)(param_3 + 0x5c) * 0xc;\n    }\n    local_10[0] = param_3;\n    FUN_000baa20(param_1,local_10);\n    return;\n  }" { (expression_statement "*(uint *)(param_1 + 0x198) = *(uint *)(param_1 + 0x198) | param_4;" (assignment_expression "*(uint *)(param_1 + 0x198) = *(uint *)(param_1 + 0x198) | param_4" (pointer_expression "*(uint *)(param_1 + 0x198)" * (cast_expression "(uint *)(param_1 + 0x198)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x198)" ( (binary_expression "param_1 + 0x198" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 0x198) | param_4" (pointer_expression "*(uint *)(param_1 + 0x198)" * (cast_expression "(uint *)(param_1 + 0x198)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x198)" ( (binary_expression "param_1 + 0x198" identifier + number_literal) )))) | identifier)) ;) (if_statement "if (*(char *)(*(int *)(param_2 + 4) + 0xac) == '\0') {\n      if (*(int *)(param_3 + 0x5c) == 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0007d010("../../gold/output.cc",0x1036,"add_output_section_to_load",param_1);\n      }\n      param_1 = param_1 + *(int *)(param_3 + 0x5c) * 0xc;\n    }" if (parenthesized_expression "(*(char *)(*(int *)(param_2 + 4) + 0xac) == '\0')" ( (binary_expression "*(char *)(*(int *)(param_2 + 4) + 0xac) == '\0'" (pointer_expression "*(char *)(*(int *)(param_2 + 4) + 0xac)" * (cast_expression "(char *)(*(int *)(param_2 + 4) + 0xac)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 4) + 0xac)" ( (binary_expression "*(int *)(param_2 + 4) + 0xac" (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 ')) )) (compound_statement "{\n      if (*(int *)(param_3 + 0x5c) == 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0007d010("../../gold/output.cc",0x1036,"add_output_section_to_load",param_1);\n      }\n      param_1 = param_1 + *(int *)(param_3 + 0x5c) * 0xc;\n    }" { (if_statement "if (*(int *)(param_3 + 0x5c) == 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0007d010("../../gold/output.cc",0x1036,"add_output_section_to_load",param_1);\n      }" if (parenthesized_expression "(*(int *)(param_3 + 0x5c) == 0)" ( (binary_expression "*(int *)(param_3 + 0x5c) == 0" (pointer_expression "*(int *)(param_3 + 0x5c)" * (cast_expression "(int *)(param_3 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x5c)" ( (binary_expression "param_3 + 0x5c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        FUN_0007d010("../../gold/output.cc",0x1036,"add_output_section_to_load",param_1);\n      }" { comment (expression_statement "FUN_0007d010("../../gold/output.cc",0x1036,"add_output_section_to_load",param_1);" (call_expression "FUN_0007d010("../../gold/output.cc",0x1036,"add_output_section_to_load",param_1)" identifier (argument_list "("../../gold/output.cc",0x1036,"add_output_section_to_load",param_1)" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""add_output_section_to_load"" " string_content ") , identifier ))) ;) })) (expression_statement "param_1 = param_1 + *(int *)(param_3 + 0x5c) * 0xc;" (assignment_expression "param_1 = param_1 + *(int *)(param_3 + 0x5c) * 0xc" identifier = (binary_expression "param_1 + *(int *)(param_3 + 0x5c) * 0xc" identifier + (binary_expression "*(int *)(param_3 + 0x5c) * 0xc" (pointer_expression "*(int *)(param_3 + 0x5c)" * (cast_expression "(int *)(param_3 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x5c)" ( (binary_expression "param_3 + 0x5c" identifier + number_literal) )))) * number_literal))) ;) })) (expression_statement "local_10[0] = param_3;" (assignment_expression "local_10[0] = param_3" (subscript_expression "local_10[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_000baa20(param_1,local_10);" (call_expression "FUN_000baa20(param_1,local_10)" identifier (argument_list "(param_1,local_10)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "FUN_0007d010("../../gold/output.cc",0x102c,"add_output_section_to_load",bVar2);" (call_expression "FUN_0007d010("../../gold/output.cc",0x102c,"add_output_section_to_load",bVar2)" identifier (argument_list "("../../gold/output.cc",0x102c,"add_output_section_to_load",bVar2)" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""add_output_section_to_load"" " string_content ") , identifier ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "DT": Some values do not have unique names */\n/* DWARF original prototype: void add_output_section_to_load(Output_segment * this, Layout * layout,\n   Output_section * os, Elf_Word seg_flags) */\n\nvoid __thiscall\ngold::Output_segment::add_output_section_to_load\n          (Output_segment *this,Layout *layout,Output_section *os,Elf_Word seg_flags)\n\n{\n  byte bVar1;\n  Output_section *local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x108ca7;\n  if (this->type_ != 1) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.cc",0x1029,"add_output_section_to_load");\n  }\n  if ((os->flags_ & 2) == 0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.cc",0x102a,"add_output_section_to_load");\n  }\n  if ((this->field_0x19c & 1) != 0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.cc",0x102b,"add_output_section_to_load");\n  }\n  bVar1 = -((char)os->field_0x91 >> 7);\n  if (bVar1 != 0) {\n    bVar1 = os->type_ != 8;\n  }\n  if (bVar1 == ((byte)this->field_0x19c >> 2 & 1)) {\n    this->flags_ = this->flags_ | seg_flags;\n    if ((layout->script_options_->script_sections_).saw_sections_clause_ == false) {\n      if (os->order_ == ORDER_INVALID) {\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/output.cc",0x1036,"add_output_section_to_load");\n      }\n      this = (Output_segment *)(this->output_lists_ + os->order_);\n    }\n    local_10 = os;\n    std::vector<gold::Output_data*,_std::allocator<gold::Output_data*>_>::\n    emplace_back<gold::Output_data*>(this->output_lists_,(Output_data **)&local_10);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/output.cc",0x102c,"add_output_section_to_load");\n}\n\n" comment comment comment (function_definition "void __thiscall\ngold::Output_segment::add_output_section_to_load\n          (Output_segment *this,Layout *layout,Output_section *os,Elf_Word seg_flags)\n\n{\n  byte bVar1;\n  Output_section *local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x108ca7;\n  if (this->type_ != 1) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.cc",0x1029,"add_output_section_to_load");\n  }\n  if ((os->flags_ & 2) == 0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.cc",0x102a,"add_output_section_to_load");\n  }\n  if ((this->field_0x19c & 1) != 0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.cc",0x102b,"add_output_section_to_load");\n  }\n  bVar1 = -((char)os->field_0x91 >> 7);\n  if (bVar1 != 0) {\n    bVar1 = os->type_ != 8;\n  }\n  if (bVar1 == ((byte)this->field_0x19c >> 2 & 1)) {\n    this->flags_ = this->flags_ | seg_flags;\n    if ((layout->script_options_->script_sections_).saw_sections_clause_ == false) {\n      if (os->order_ == ORDER_INVALID) {\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/output.cc",0x1036,"add_output_section_to_load");\n      }\n      this = (Output_segment *)(this->output_lists_ + os->order_);\n    }\n    local_10 = os;\n    std::vector<gold::Output_data*,_std::allocator<gold::Output_data*>_>::\n    emplace_back<gold::Output_data*>(this->output_lists_,(Output_data **)&local_10);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/output.cc",0x102c,"add_output_section_to_load");\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Output_segment::" identifier : : identifier : :) (function_declarator "add_output_section_to_load\n          (Output_segment *this,Layout *layout,Output_section *os,Elf_Word seg_flags)" identifier (parameter_list "(Output_segment *this,Layout *layout,Output_section *os,Elf_Word seg_flags)" ( (parameter_declaration "Output_segment *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Layout *layout" type_identifier (pointer_declarator "*layout" * identifier)) , (parameter_declaration "Output_section *os" type_identifier (pointer_declarator "*os" * identifier)) , (parameter_declaration "Elf_Word seg_flags" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  Output_section *local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x108ca7;\n  if (this->type_ != 1) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.cc",0x1029,"add_output_section_to_load");\n  }\n  if ((os->flags_ & 2) == 0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.cc",0x102a,"add_output_section_to_load");\n  }\n  if ((this->field_0x19c & 1) != 0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.cc",0x102b,"add_output_section_to_load");\n  }\n  bVar1 = -((char)os->field_0x91 >> 7);\n  if (bVar1 != 0) {\n    bVar1 = os->type_ != 8;\n  }\n  if (bVar1 == ((byte)this->field_0x19c >> 2 & 1)) {\n    this->flags_ = this->flags_ | seg_flags;\n    if ((layout->script_options_->script_sections_).saw_sections_clause_ == false) {\n      if (os->order_ == ORDER_INVALID) {\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/output.cc",0x1036,"add_output_section_to_load");\n      }\n      this = (Output_segment *)(this->output_lists_ + os->order_);\n    }\n    local_10 = os;\n    std::vector<gold::Output_data*,_std::allocator<gold::Output_data*>_>::\n    emplace_back<gold::Output_data*>(this->output_lists_,(Output_data **)&local_10);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/output.cc",0x102c,"add_output_section_to_load");\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "Output_section *local_10;" type_identifier (pointer_declarator "*local_10" * identifier) ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x108ca7;" (assignment_expression "uStack_c = 0x108ca7" identifier = number_literal) ;) (if_statement "if (this->type_ != 1) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.cc",0x1029,"add_output_section_to_load");\n  }" if (parenthesized_expression "(this->type_ != 1)" ( (binary_expression "this->type_ != 1" (field_expression "this->type_" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.cc",0x1029,"add_output_section_to_load");\n  }" { comment (expression_statement "do_gold_unreachable("../../gold/output.cc",0x1029,"add_output_section_to_load");" (call_expression "do_gold_unreachable("../../gold/output.cc",0x1029,"add_output_section_to_load")" identifier (argument_list "("../../gold/output.cc",0x1029,"add_output_section_to_load")" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""add_output_section_to_load"" " string_content ") ))) ;) })) (if_statement "if ((os->flags_ & 2) == 0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.cc",0x102a,"add_output_section_to_load");\n  }" if (parenthesized_expression "((os->flags_ & 2) == 0)" ( (binary_expression "(os->flags_ & 2) == 0" (parenthesized_expression "(os->flags_ & 2)" ( (binary_expression "os->flags_ & 2" (field_expression "os->flags_" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.cc",0x102a,"add_output_section_to_load");\n  }" { comment (expression_statement "do_gold_unreachable("../../gold/output.cc",0x102a,"add_output_section_to_load");" (call_expression "do_gold_unreachable("../../gold/output.cc",0x102a,"add_output_section_to_load")" identifier (argument_list "("../../gold/output.cc",0x102a,"add_output_section_to_load")" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""add_output_section_to_load"" " string_content ") ))) ;) })) (if_statement "if ((this->field_0x19c & 1) != 0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.cc",0x102b,"add_output_section_to_load");\n  }" if (parenthesized_expression "((this->field_0x19c & 1) != 0)" ( (binary_expression "(this->field_0x19c & 1) != 0" (parenthesized_expression "(this->field_0x19c & 1)" ( (binary_expression "this->field_0x19c & 1" (field_expression "this->field_0x19c" identifier -> field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.cc",0x102b,"add_output_section_to_load");\n  }" { comment (expression_statement "do_gold_unreachable("../../gold/output.cc",0x102b,"add_output_section_to_load");" (call_expression "do_gold_unreachable("../../gold/output.cc",0x102b,"add_output_section_to_load")" identifier (argument_list "("../../gold/output.cc",0x102b,"add_output_section_to_load")" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""add_output_section_to_load"" " string_content ") ))) ;) })) (expression_statement "bVar1 = -((char)os->field_0x91 >> 7);" (assignment_expression "bVar1 = -((char)os->field_0x91 >> 7)" identifier = (unary_expression "-((char)os->field_0x91 >> 7)" - (parenthesized_expression "((char)os->field_0x91 >> 7)" ( (binary_expression "(char)os->field_0x91 >> 7" (cast_expression "(char)os->field_0x91" ( (type_descriptor "char" primitive_type) ) (field_expression "os->field_0x91" identifier -> field_identifier)) >> number_literal) )))) ;) (if_statement "if (bVar1 != 0) {\n    bVar1 = os->type_ != 8;\n  }" if (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    bVar1 = os->type_ != 8;\n  }" { (expression_statement "bVar1 = os->type_ != 8;" (assignment_expression "bVar1 = os->type_ != 8" identifier = (binary_expression "os->type_ != 8" (field_expression "os->type_" identifier -> field_identifier) != number_literal)) ;) })) (if_statement "if (bVar1 == ((byte)this->field_0x19c >> 2 & 1)) {\n    this->flags_ = this->flags_ | seg_flags;\n    if ((layout->script_options_->script_sections_).saw_sections_clause_ == false) {\n      if (os->order_ == ORDER_INVALID) {\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/output.cc",0x1036,"add_output_section_to_load");\n      }\n      this = (Output_segment *)(this->output_lists_ + os->order_);\n    }\n    local_10 = os;\n    std::vector<gold::Output_data*,_std::allocator<gold::Output_data*>_>::\n    emplace_back<gold::Output_data*>(this->output_lists_,(Output_data **)&local_10);\n    return;\n  }" if (parenthesized_expression "(bVar1 == ((byte)this->field_0x19c >> 2 & 1))" ( (binary_expression "bVar1 == ((byte)this->field_0x19c >> 2 & 1)" identifier == (parenthesized_expression "((byte)this->field_0x19c >> 2 & 1)" ( (binary_expression "(byte)this->field_0x19c >> 2 & 1" (binary_expression "(byte)this->field_0x19c >> 2" (cast_expression "(byte)this->field_0x19c" ( (type_descriptor "byte" type_identifier) ) (field_expression "this->field_0x19c" identifier -> field_identifier)) >> number_literal) & number_literal) ))) )) (compound_statement "{\n    this->flags_ = this->flags_ | seg_flags;\n    if ((layout->script_options_->script_sections_).saw_sections_clause_ == false) {\n      if (os->order_ == ORDER_INVALID) {\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/output.cc",0x1036,"add_output_section_to_load");\n      }\n      this = (Output_segment *)(this->output_lists_ + os->order_);\n    }\n    local_10 = os;\n    std::vector<gold::Output_data*,_std::allocator<gold::Output_data*>_>::\n    emplace_back<gold::Output_data*>(this->output_lists_,(Output_data **)&local_10);\n    return;\n  }" { (expression_statement "this->flags_ = this->flags_ | seg_flags;" (assignment_expression "this->flags_ = this->flags_ | seg_flags" (field_expression "this->flags_" identifier -> field_identifier) = (binary_expression "this->flags_ | seg_flags" (field_expression "this->flags_" identifier -> field_identifier) | identifier)) ;) (if_statement "if ((layout->script_options_->script_sections_).saw_sections_clause_ == false) {\n      if (os->order_ == ORDER_INVALID) {\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/output.cc",0x1036,"add_output_section_to_load");\n      }\n      this = (Output_segment *)(this->output_lists_ + os->order_);\n    }" if (parenthesized_expression "((layout->script_options_->script_sections_).saw_sections_clause_ == false)" ( (binary_expression "(layout->script_options_->script_sections_).saw_sections_clause_ == false" (field_expression "(layout->script_options_->script_sections_).saw_sections_clause_" (parenthesized_expression "(layout->script_options_->script_sections_)" ( (field_expression "layout->script_options_->script_sections_" (field_expression "layout->script_options_" identifier -> field_identifier) -> field_identifier) )) . field_identifier) == false) )) (compound_statement "{\n      if (os->order_ == ORDER_INVALID) {\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/output.cc",0x1036,"add_output_section_to_load");\n      }\n      this = (Output_segment *)(this->output_lists_ + os->order_);\n    }" { (if_statement "if (os->order_ == ORDER_INVALID) {\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/output.cc",0x1036,"add_output_section_to_load");\n      }" if (parenthesized_expression "(os->order_ == ORDER_INVALID)" ( (binary_expression "os->order_ == ORDER_INVALID" (field_expression "os->order_" identifier -> field_identifier) == identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/output.cc",0x1036,"add_output_section_to_load");\n      }" { comment (expression_statement "do_gold_unreachable("../../gold/output.cc",0x1036,"add_output_section_to_load");" (call_expression "do_gold_unreachable("../../gold/output.cc",0x1036,"add_output_section_to_load")" identifier (argument_list "("../../gold/output.cc",0x1036,"add_output_section_to_load")" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""add_output_section_to_load"" " string_content ") ))) ;) })) (expression_statement "this = (Output_segment *)(this->output_lists_ + os->order_);" (assignment_expression "this = (Output_segment *)(this->output_lists_ + os->order_)" identifier = (cast_expression "(Output_segment *)(this->output_lists_ + os->order_)" ( (type_descriptor "Output_segment *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this->output_lists_ + os->order_)" ( (binary_expression "this->output_lists_ + os->order_" (field_expression "this->output_lists_" identifier -> field_identifier) + (field_expression "os->order_" identifier -> field_identifier)) )))) ;) })) (expression_statement "local_10 = os;" (assignment_expression "local_10 = os" identifier = identifier) ;) (ERROR "std::vector<gold::Output_data*,_std::allocator<gold::Output_data*>_>::\n    emplace_back<gold::" (comma_expression "std::vector<gold::Output_data*,_std" identifier (ERROR "::vector<gold::Output_data*" : : (binary_expression "vector<gold" identifier < identifier) : : identifier *) , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : : (binary_expression "Output_data*>_>::\n    emplace_back<gold" (binary_expression "Output_data*>_>::\n    emplace_back" (binary_expression "Output_data*>_" identifier * (ERROR ">" >) identifier) > (ERROR "::" : :) identifier) < identifier) : :) (expression_statement "Output_data*>(this->output_lists_,(Output_data **)&local_10);" (binary_expression "Output_data*>(this->output_lists_,(Output_data **)&local_10)" (binary_expression "Output_data*" identifier * identifier) > (parenthesized_expression "(this->output_lists_,(Output_data **)&local_10)" ( (comma_expression "this->output_lists_,(Output_data **)&local_10" (field_expression "this->output_lists_" identifier -> field_identifier) , (cast_expression "(Output_data **)&local_10" ( (type_descriptor "Output_data **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&local_10" & identifier))) ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "do_gold_unreachable("../../gold/output.cc",0x102c,"add_output_section_to_load");" (call_expression "do_gold_unreachable("../../gold/output.cc",0x102c,"add_output_section_to_load")" identifier (argument_list "("../../gold/output.cc",0x102c,"add_output_section_to_load")" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""add_output_section_to_load"" " string_content ") ))) ;) })))
(translation_unit "void FUN_00108ca0(int param_1,int param_2,int param_3,uint param_4)\n\n{\n  byte bVar1;\n  undefined4 in_ECX;\n  byte bVar2;\n  int local_10 [2];\n  \n  local_10[1] = 0x108ca7;\n  if (*(int *)(param_1 + 0x194) != 1) {\n                    \n    FUN_0007d010("../../gold/output.cc",0x1029,"add_output_section_to_load",param_1);\n  }\n  if ((*(byte *)(param_3 + 0x54) & 2) == 0) {\n                    \n    FUN_0007d010("../../gold/output.cc",0x102a,"add_output_section_to_load",param_3);\n  }\n  if ((*(byte *)(param_1 + 0x19c) & 1) != 0) {\n                    \n    FUN_0007d010("../../gold/output.cc",0x102b,"add_output_section_to_load",in_ECX);\n  }\n  bVar1 = -(*(char *)(param_3 + 0x91) >> 7);\n  if (bVar1 != 0) {\n    bVar1 = *(int *)(param_3 + 0x50) != 8;\n  }\n  bVar2 = *(byte *)(param_1 + 0x19c) >> 2 & 1;\n  if (bVar1 == bVar2) {\n    *(uint *)(param_1 + 0x198) = *(uint *)(param_1 + 0x198) | param_4;\n    if (*(char *)(*(int *)(param_2 + 4) + 0xac) == '\0') {\n      if (*(int *)(param_3 + 0x5c) == 0) {\n                    \n        FUN_0007d010("../../gold/output.cc",0x1036,"add_output_section_to_load",param_1);\n      }\n      param_1 = param_1 + *(int *)(param_3 + 0x5c) * 0xc;\n    }\n    local_10[0] = param_3;\n    FUN_000baa20(param_1,local_10);\n    return;\n  }\n                    \n  FUN_0007d010("../../gold/output.cc",0x102c,"add_output_section_to_load",bVar2);\n}\n\n" (function_definition "void FUN_00108ca0(int param_1,int param_2,int param_3,uint param_4)\n\n{\n  byte bVar1;\n  undefined4 in_ECX;\n  byte bVar2;\n  int local_10 [2];\n  \n  local_10[1] = 0x108ca7;\n  if (*(int *)(param_1 + 0x194) != 1) {\n                    \n    FUN_0007d010("../../gold/output.cc",0x1029,"add_output_section_to_load",param_1);\n  }\n  if ((*(byte *)(param_3 + 0x54) & 2) == 0) {\n                    \n    FUN_0007d010("../../gold/output.cc",0x102a,"add_output_section_to_load",param_3);\n  }\n  if ((*(byte *)(param_1 + 0x19c) & 1) != 0) {\n                    \n    FUN_0007d010("../../gold/output.cc",0x102b,"add_output_section_to_load",in_ECX);\n  }\n  bVar1 = -(*(char *)(param_3 + 0x91) >> 7);\n  if (bVar1 != 0) {\n    bVar1 = *(int *)(param_3 + 0x50) != 8;\n  }\n  bVar2 = *(byte *)(param_1 + 0x19c) >> 2 & 1;\n  if (bVar1 == bVar2) {\n    *(uint *)(param_1 + 0x198) = *(uint *)(param_1 + 0x198) | param_4;\n    if (*(char *)(*(int *)(param_2 + 4) + 0xac) == '\0') {\n      if (*(int *)(param_3 + 0x5c) == 0) {\n                    \n        FUN_0007d010("../../gold/output.cc",0x1036,"add_output_section_to_load",param_1);\n      }\n      param_1 = param_1 + *(int *)(param_3 + 0x5c) * 0xc;\n    }\n    local_10[0] = param_3;\n    FUN_000baa20(param_1,local_10);\n    return;\n  }\n                    \n  FUN_0007d010("../../gold/output.cc",0x102c,"add_output_section_to_load",bVar2);\n}" primitive_type (function_declarator "FUN_00108ca0(int param_1,int param_2,int param_3,uint param_4)" identifier (parameter_list "(int param_1,int param_2,int param_3,uint param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  undefined4 in_ECX;\n  byte bVar2;\n  int local_10 [2];\n  \n  local_10[1] = 0x108ca7;\n  if (*(int *)(param_1 + 0x194) != 1) {\n                    \n    FUN_0007d010("../../gold/output.cc",0x1029,"add_output_section_to_load",param_1);\n  }\n  if ((*(byte *)(param_3 + 0x54) & 2) == 0) {\n                    \n    FUN_0007d010("../../gold/output.cc",0x102a,"add_output_section_to_load",param_3);\n  }\n  if ((*(byte *)(param_1 + 0x19c) & 1) != 0) {\n                    \n    FUN_0007d010("../../gold/output.cc",0x102b,"add_output_section_to_load",in_ECX);\n  }\n  bVar1 = -(*(char *)(param_3 + 0x91) >> 7);\n  if (bVar1 != 0) {\n    bVar1 = *(int *)(param_3 + 0x50) != 8;\n  }\n  bVar2 = *(byte *)(param_1 + 0x19c) >> 2 & 1;\n  if (bVar1 == bVar2) {\n    *(uint *)(param_1 + 0x198) = *(uint *)(param_1 + 0x198) | param_4;\n    if (*(char *)(*(int *)(param_2 + 4) + 0xac) == '\0') {\n      if (*(int *)(param_3 + 0x5c) == 0) {\n                    \n        FUN_0007d010("../../gold/output.cc",0x1036,"add_output_section_to_load",param_1);\n      }\n      param_1 = param_1 + *(int *)(param_3 + 0x5c) * 0xc;\n    }\n    local_10[0] = param_3;\n    FUN_000baa20(param_1,local_10);\n    return;\n  }\n                    \n  FUN_0007d010("../../gold/output.cc",0x102c,"add_output_section_to_load",bVar2);\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "undefined4 in_ECX;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "int local_10 [2];" primitive_type (array_declarator "local_10 [2]" identifier [ number_literal ]) ;) (expression_statement "local_10[1] = 0x108ca7;" (assignment_expression "local_10[1] = 0x108ca7" (subscript_expression "local_10[1]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (*(int *)(param_1 + 0x194) != 1) {\n                    \n    FUN_0007d010("../../gold/output.cc",0x1029,"add_output_section_to_load",param_1);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x194) != 1)" ( (binary_expression "*(int *)(param_1 + 0x194) != 1" (pointer_expression "*(int *)(param_1 + 0x194)" * (cast_expression "(int *)(param_1 + 0x194)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x194)" ( (binary_expression "param_1 + 0x194" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    \n    FUN_0007d010("../../gold/output.cc",0x1029,"add_output_section_to_load",param_1);\n  }" { (expression_statement "FUN_0007d010("../../gold/output.cc",0x1029,"add_output_section_to_load",param_1);" (call_expression "FUN_0007d010("../../gold/output.cc",0x1029,"add_output_section_to_load",param_1)" identifier (argument_list "("../../gold/output.cc",0x1029,"add_output_section_to_load",param_1)" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""add_output_section_to_load"" " string_content ") , identifier ))) ;) })) (if_statement "if ((*(byte *)(param_3 + 0x54) & 2) == 0) {\n                    \n    FUN_0007d010("../../gold/output.cc",0x102a,"add_output_section_to_load",param_3);\n  }" if (parenthesized_expression "((*(byte *)(param_3 + 0x54) & 2) == 0)" ( (binary_expression "(*(byte *)(param_3 + 0x54) & 2) == 0" (parenthesized_expression "(*(byte *)(param_3 + 0x54) & 2)" ( (binary_expression "*(byte *)(param_3 + 0x54) & 2" (pointer_expression "*(byte *)(param_3 + 0x54)" * (cast_expression "(byte *)(param_3 + 0x54)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x54)" ( (binary_expression "param_3 + 0x54" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n                    \n    FUN_0007d010("../../gold/output.cc",0x102a,"add_output_section_to_load",param_3);\n  }" { (expression_statement "FUN_0007d010("../../gold/output.cc",0x102a,"add_output_section_to_load",param_3);" (call_expression "FUN_0007d010("../../gold/output.cc",0x102a,"add_output_section_to_load",param_3)" identifier (argument_list "("../../gold/output.cc",0x102a,"add_output_section_to_load",param_3)" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""add_output_section_to_load"" " string_content ") , identifier ))) ;) })) (if_statement "if ((*(byte *)(param_1 + 0x19c) & 1) != 0) {\n                    \n    FUN_0007d010("../../gold/output.cc",0x102b,"add_output_section_to_load",in_ECX);\n  }" if (parenthesized_expression "((*(byte *)(param_1 + 0x19c) & 1) != 0)" ( (binary_expression "(*(byte *)(param_1 + 0x19c) & 1) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0x19c) & 1)" ( (binary_expression "*(byte *)(param_1 + 0x19c) & 1" (pointer_expression "*(byte *)(param_1 + 0x19c)" * (cast_expression "(byte *)(param_1 + 0x19c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x19c)" ( (binary_expression "param_1 + 0x19c" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n                    \n    FUN_0007d010("../../gold/output.cc",0x102b,"add_output_section_to_load",in_ECX);\n  }" { (expression_statement "FUN_0007d010("../../gold/output.cc",0x102b,"add_output_section_to_load",in_ECX);" (call_expression "FUN_0007d010("../../gold/output.cc",0x102b,"add_output_section_to_load",in_ECX)" identifier (argument_list "("../../gold/output.cc",0x102b,"add_output_section_to_load",in_ECX)" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""add_output_section_to_load"" " string_content ") , identifier ))) ;) })) (expression_statement "bVar1 = -(*(char *)(param_3 + 0x91) >> 7);" (assignment_expression "bVar1 = -(*(char *)(param_3 + 0x91) >> 7)" identifier = (unary_expression "-(*(char *)(param_3 + 0x91) >> 7)" - (parenthesized_expression "(*(char *)(param_3 + 0x91) >> 7)" ( (binary_expression "*(char *)(param_3 + 0x91) >> 7" (pointer_expression "*(char *)(param_3 + 0x91)" * (cast_expression "(char *)(param_3 + 0x91)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x91)" ( (binary_expression "param_3 + 0x91" identifier + number_literal) )))) >> number_literal) )))) ;) (if_statement "if (bVar1 != 0) {\n    bVar1 = *(int *)(param_3 + 0x50) != 8;\n  }" if (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    bVar1 = *(int *)(param_3 + 0x50) != 8;\n  }" { (expression_statement "bVar1 = *(int *)(param_3 + 0x50) != 8;" (assignment_expression "bVar1 = *(int *)(param_3 + 0x50) != 8" identifier = (binary_expression "*(int *)(param_3 + 0x50) != 8" (pointer_expression "*(int *)(param_3 + 0x50)" * (cast_expression "(int *)(param_3 + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x50)" ( (binary_expression "param_3 + 0x50" identifier + number_literal) )))) != number_literal)) ;) })) (expression_statement "bVar2 = *(byte *)(param_1 + 0x19c) >> 2 & 1;" (assignment_expression "bVar2 = *(byte *)(param_1 + 0x19c) >> 2 & 1" identifier = (binary_expression "*(byte *)(param_1 + 0x19c) >> 2 & 1" (binary_expression "*(byte *)(param_1 + 0x19c) >> 2" (pointer_expression "*(byte *)(param_1 + 0x19c)" * (cast_expression "(byte *)(param_1 + 0x19c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x19c)" ( (binary_expression "param_1 + 0x19c" identifier + number_literal) )))) >> number_literal) & number_literal)) ;) (if_statement "if (bVar1 == bVar2) {\n    *(uint *)(param_1 + 0x198) = *(uint *)(param_1 + 0x198) | param_4;\n    if (*(char *)(*(int *)(param_2 + 4) + 0xac) == '\0') {\n      if (*(int *)(param_3 + 0x5c) == 0) {\n                    \n        FUN_0007d010("../../gold/output.cc",0x1036,"add_output_section_to_load",param_1);\n      }\n      param_1 = param_1 + *(int *)(param_3 + 0x5c) * 0xc;\n    }\n    local_10[0] = param_3;\n    FUN_000baa20(param_1,local_10);\n    return;\n  }" if (parenthesized_expression "(bVar1 == bVar2)" ( (binary_expression "bVar1 == bVar2" identifier == identifier) )) (compound_statement "{\n    *(uint *)(param_1 + 0x198) = *(uint *)(param_1 + 0x198) | param_4;\n    if (*(char *)(*(int *)(param_2 + 4) + 0xac) == '\0') {\n      if (*(int *)(param_3 + 0x5c) == 0) {\n                    \n        FUN_0007d010("../../gold/output.cc",0x1036,"add_output_section_to_load",param_1);\n      }\n      param_1 = param_1 + *(int *)(param_3 + 0x5c) * 0xc;\n    }\n    local_10[0] = param_3;\n    FUN_000baa20(param_1,local_10);\n    return;\n  }" { (expression_statement "*(uint *)(param_1 + 0x198) = *(uint *)(param_1 + 0x198) | param_4;" (assignment_expression "*(uint *)(param_1 + 0x198) = *(uint *)(param_1 + 0x198) | param_4" (pointer_expression "*(uint *)(param_1 + 0x198)" * (cast_expression "(uint *)(param_1 + 0x198)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x198)" ( (binary_expression "param_1 + 0x198" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 0x198) | param_4" (pointer_expression "*(uint *)(param_1 + 0x198)" * (cast_expression "(uint *)(param_1 + 0x198)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x198)" ( (binary_expression "param_1 + 0x198" identifier + number_literal) )))) | identifier)) ;) (if_statement "if (*(char *)(*(int *)(param_2 + 4) + 0xac) == '\0') {\n      if (*(int *)(param_3 + 0x5c) == 0) {\n                    \n        FUN_0007d010("../../gold/output.cc",0x1036,"add_output_section_to_load",param_1);\n      }\n      param_1 = param_1 + *(int *)(param_3 + 0x5c) * 0xc;\n    }" if (parenthesized_expression "(*(char *)(*(int *)(param_2 + 4) + 0xac) == '\0')" ( (binary_expression "*(char *)(*(int *)(param_2 + 4) + 0xac) == '\0'" (pointer_expression "*(char *)(*(int *)(param_2 + 4) + 0xac)" * (cast_expression "(char *)(*(int *)(param_2 + 4) + 0xac)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 4) + 0xac)" ( (binary_expression "*(int *)(param_2 + 4) + 0xac" (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 ')) )) (compound_statement "{\n      if (*(int *)(param_3 + 0x5c) == 0) {\n                    \n        FUN_0007d010("../../gold/output.cc",0x1036,"add_output_section_to_load",param_1);\n      }\n      param_1 = param_1 + *(int *)(param_3 + 0x5c) * 0xc;\n    }" { (if_statement "if (*(int *)(param_3 + 0x5c) == 0) {\n                    \n        FUN_0007d010("../../gold/output.cc",0x1036,"add_output_section_to_load",param_1);\n      }" if (parenthesized_expression "(*(int *)(param_3 + 0x5c) == 0)" ( (binary_expression "*(int *)(param_3 + 0x5c) == 0" (pointer_expression "*(int *)(param_3 + 0x5c)" * (cast_expression "(int *)(param_3 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x5c)" ( (binary_expression "param_3 + 0x5c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    \n        FUN_0007d010("../../gold/output.cc",0x1036,"add_output_section_to_load",param_1);\n      }" { (expression_statement "FUN_0007d010("../../gold/output.cc",0x1036,"add_output_section_to_load",param_1);" (call_expression "FUN_0007d010("../../gold/output.cc",0x1036,"add_output_section_to_load",param_1)" identifier (argument_list "("../../gold/output.cc",0x1036,"add_output_section_to_load",param_1)" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""add_output_section_to_load"" " string_content ") , identifier ))) ;) })) (expression_statement "param_1 = param_1 + *(int *)(param_3 + 0x5c) * 0xc;" (assignment_expression "param_1 = param_1 + *(int *)(param_3 + 0x5c) * 0xc" identifier = (binary_expression "param_1 + *(int *)(param_3 + 0x5c) * 0xc" identifier + (binary_expression "*(int *)(param_3 + 0x5c) * 0xc" (pointer_expression "*(int *)(param_3 + 0x5c)" * (cast_expression "(int *)(param_3 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x5c)" ( (binary_expression "param_3 + 0x5c" identifier + number_literal) )))) * number_literal))) ;) })) (expression_statement "local_10[0] = param_3;" (assignment_expression "local_10[0] = param_3" (subscript_expression "local_10[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_000baa20(param_1,local_10);" (call_expression "FUN_000baa20(param_1,local_10)" identifier (argument_list "(param_1,local_10)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_0007d010("../../gold/output.cc",0x102c,"add_output_section_to_load",bVar2);" (call_expression "FUN_0007d010("../../gold/output.cc",0x102c,"add_output_section_to_load",bVar2)" identifier (argument_list "("../../gold/output.cc",0x102c,"add_output_section_to_load",bVar2)" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""add_output_section_to_load"" " string_content ") , identifier ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })) (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 IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , 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 IDENT + LIT) )))) & LIT) )) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (unary_expression - (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) >> LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) >> LIT) & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | IDENT)) ;) (if_statement if (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 ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT))) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })))
(function_definition "void FUN_00108ca0(int param_1,int param_2,int param_3,uint param_4)\n\n{\n  byte bVar1;\n  undefined4 in_ECX;\n  byte bVar2;\n  int local_10 [2];\n  \n  local_10[1] = 0x108ca7;\n  if (*(int *)(param_1 + 0x194) != 1) {\n                    \n    FUN_0007d010("../../gold/output.cc",0x1029,"add_output_section_to_load",param_1);\n  }\n  if ((*(byte *)(param_3 + 0x54) & 2) == 0) {\n                    \n    FUN_0007d010("../../gold/output.cc",0x102a,"add_output_section_to_load",param_3);\n  }\n  if ((*(byte *)(param_1 + 0x19c) & 1) != 0) {\n                    \n    FUN_0007d010("../../gold/output.cc",0x102b,"add_output_section_to_load",in_ECX);\n  }\n  bVar1 = -(*(char *)(param_3 + 0x91) >> 7);\n  if (bVar1 != 0) {\n    bVar1 = *(int *)(param_3 + 0x50) != 8;\n  }\n  bVar2 = *(byte *)(param_1 + 0x19c) >> 2 & 1;\n  if (bVar1 == bVar2) {\n    *(uint *)(param_1 + 0x198) = *(uint *)(param_1 + 0x198) | param_4;\n    if (*(char *)(*(int *)(param_2 + 4) + 0xac) == '\0') {\n      if (*(int *)(param_3 + 0x5c) == 0) {\n                    \n        FUN_0007d010("../../gold/output.cc",0x1036,"add_output_section_to_load",param_1);\n      }\n      param_1 = param_1 + *(int *)(param_3 + 0x5c) * 0xc;\n    }\n    local_10[0] = param_3;\n    FUN_000baa20(param_1,local_10);\n    return;\n  }\n                    \n  FUN_0007d010("../../gold/output.cc",0x102c,"add_output_section_to_load",bVar2);\n}" (primitive_type "void") (function_declarator "FUN_00108ca0(int param_1,int param_2,int param_3,uint param_4)" (identifier "FUN_00108ca0") (parameter_list "(int param_1,int param_2,int param_3,uint param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "uint param_4" (type_identifier "uint") (identifier "param_4")) () ")"))) (compound_statement "{\n  byte bVar1;\n  undefined4 in_ECX;\n  byte bVar2;\n  int local_10 [2];\n  \n  local_10[1] = 0x108ca7;\n  if (*(int *)(param_1 + 0x194) != 1) {\n                    \n    FUN_0007d010("../../gold/output.cc",0x1029,"add_output_section_to_load",param_1);\n  }\n  if ((*(byte *)(param_3 + 0x54) & 2) == 0) {\n                    \n    FUN_0007d010("../../gold/output.cc",0x102a,"add_output_section_to_load",param_3);\n  }\n  if ((*(byte *)(param_1 + 0x19c) & 1) != 0) {\n                    \n    FUN_0007d010("../../gold/output.cc",0x102b,"add_output_section_to_load",in_ECX);\n  }\n  bVar1 = -(*(char *)(param_3 + 0x91) >> 7);\n  if (bVar1 != 0) {\n    bVar1 = *(int *)(param_3 + 0x50) != 8;\n  }\n  bVar2 = *(byte *)(param_1 + 0x19c) >> 2 & 1;\n  if (bVar1 == bVar2) {\n    *(uint *)(param_1 + 0x198) = *(uint *)(param_1 + 0x198) | param_4;\n    if (*(char *)(*(int *)(param_2 + 4) + 0xac) == '\0') {\n      if (*(int *)(param_3 + 0x5c) == 0) {\n                    \n        FUN_0007d010("../../gold/output.cc",0x1036,"add_output_section_to_load",param_1);\n      }\n      param_1 = param_1 + *(int *)(param_3 + 0x5c) * 0xc;\n    }\n    local_10[0] = param_3;\n    FUN_000baa20(param_1,local_10);\n    return;\n  }\n                    \n  FUN_0007d010("../../gold/output.cc",0x102c,"add_output_section_to_load",bVar2);\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "undefined4 in_ECX;" (type_identifier "undefined4") (identifier "in_ECX") (; ";")) (declaration "byte bVar2;" (type_identifier "byte") (identifier "bVar2") (; ";")) (declaration "int local_10 [2];" (primitive_type "int") (array_declarator "local_10 [2]" (identifier "local_10") ([ "[") (number_literal "2") (] "]")) (; ";")) (expression_statement "local_10[1] = 0x108ca7;" (assignment_expression "local_10[1] = 0x108ca7" (subscript_expression "local_10[1]" (identifier "local_10") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0x108ca7")) (; ";")) (if_statement "if (*(int *)(param_1 + 0x194) != 1) {\n                    \n    FUN_0007d010("../../gold/output.cc",0x1029,"add_output_section_to_load",param_1);\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x194) != 1)" (( "(") (binary_expression "*(int *)(param_1 + 0x194) != 1" (pointer_expression "*(int *)(param_1 + 0x194)" (* "*") (cast_expression "(int *)(param_1 + 0x194)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x194)" (( "(") (binary_expression "param_1 + 0x194" (identifier "param_1") (+ "+") (number_literal "0x194")) () ")")))) (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n                    \n    FUN_0007d010("../../gold/output.cc",0x1029,"add_output_section_to_load",param_1);\n  }" ({ "{") (expression_statement "FUN_0007d010("../../gold/output.cc",0x1029,"add_output_section_to_load",param_1);" (call_expression "FUN_0007d010("../../gold/output.cc",0x1029,"add_output_section_to_load",param_1)" (identifier "FUN_0007d010") (argument_list "("../../gold/output.cc",0x1029,"add_output_section_to_load",param_1)" (( "(") (string_literal ""../../gold/output.cc"" (" """) (string_content "../../gold/output.cc") (" """)) (, ",") (number_literal "0x1029") (, ",") (string_literal ""add_output_section_to_load"" (" """) (string_content "add_output_section_to_load") (" """)) (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (if_statement "if ((*(byte *)(param_3 + 0x54) & 2) == 0) {\n                    \n    FUN_0007d010("../../gold/output.cc",0x102a,"add_output_section_to_load",param_3);\n  }" (if "if") (parenthesized_expression "((*(byte *)(param_3 + 0x54) & 2) == 0)" (( "(") (binary_expression "(*(byte *)(param_3 + 0x54) & 2) == 0" (parenthesized_expression "(*(byte *)(param_3 + 0x54) & 2)" (( "(") (binary_expression "*(byte *)(param_3 + 0x54) & 2" (pointer_expression "*(byte *)(param_3 + 0x54)" (* "*") (cast_expression "(byte *)(param_3 + 0x54)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x54)" (( "(") (binary_expression "param_3 + 0x54" (identifier "param_3") (+ "+") (number_literal "0x54")) () ")")))) (& "&") (number_literal "2")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    FUN_0007d010("../../gold/output.cc",0x102a,"add_output_section_to_load",param_3);\n  }" ({ "{") (expression_statement "FUN_0007d010("../../gold/output.cc",0x102a,"add_output_section_to_load",param_3);" (call_expression "FUN_0007d010("../../gold/output.cc",0x102a,"add_output_section_to_load",param_3)" (identifier "FUN_0007d010") (argument_list "("../../gold/output.cc",0x102a,"add_output_section_to_load",param_3)" (( "(") (string_literal ""../../gold/output.cc"" (" """) (string_content "../../gold/output.cc") (" """)) (, ",") (number_literal "0x102a") (, ",") (string_literal ""add_output_section_to_load"" (" """) (string_content "add_output_section_to_load") (" """)) (, ",") (identifier "param_3") () ")"))) (; ";")) (} "}"))) (if_statement "if ((*(byte *)(param_1 + 0x19c) & 1) != 0) {\n                    \n    FUN_0007d010("../../gold/output.cc",0x102b,"add_output_section_to_load",in_ECX);\n  }" (if "if") (parenthesized_expression "((*(byte *)(param_1 + 0x19c) & 1) != 0)" (( "(") (binary_expression "(*(byte *)(param_1 + 0x19c) & 1) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0x19c) & 1)" (( "(") (binary_expression "*(byte *)(param_1 + 0x19c) & 1" (pointer_expression "*(byte *)(param_1 + 0x19c)" (* "*") (cast_expression "(byte *)(param_1 + 0x19c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x19c)" (( "(") (binary_expression "param_1 + 0x19c" (identifier "param_1") (+ "+") (number_literal "0x19c")) () ")")))) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    FUN_0007d010("../../gold/output.cc",0x102b,"add_output_section_to_load",in_ECX);\n  }" ({ "{") (expression_statement "FUN_0007d010("../../gold/output.cc",0x102b,"add_output_section_to_load",in_ECX);" (call_expression "FUN_0007d010("../../gold/output.cc",0x102b,"add_output_section_to_load",in_ECX)" (identifier "FUN_0007d010") (argument_list "("../../gold/output.cc",0x102b,"add_output_section_to_load",in_ECX)" (( "(") (string_literal ""../../gold/output.cc"" (" """) (string_content "../../gold/output.cc") (" """)) (, ",") (number_literal "0x102b") (, ",") (string_literal ""add_output_section_to_load"" (" """) (string_content "add_output_section_to_load") (" """)) (, ",") (identifier "in_ECX") () ")"))) (; ";")) (} "}"))) (expression_statement "bVar1 = -(*(char *)(param_3 + 0x91) >> 7);" (assignment_expression "bVar1 = -(*(char *)(param_3 + 0x91) >> 7)" (identifier "bVar1") (= "=") (unary_expression "-(*(char *)(param_3 + 0x91) >> 7)" (- "-") (parenthesized_expression "(*(char *)(param_3 + 0x91) >> 7)" (( "(") (binary_expression "*(char *)(param_3 + 0x91) >> 7" (pointer_expression "*(char *)(param_3 + 0x91)" (* "*") (cast_expression "(char *)(param_3 + 0x91)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x91)" (( "(") (binary_expression "param_3 + 0x91" (identifier "param_3") (+ "+") (number_literal "0x91")) () ")")))) (>> ">>") (number_literal "7")) () ")")))) (; ";")) (if_statement "if (bVar1 != 0) {\n    bVar1 = *(int *)(param_3 + 0x50) != 8;\n  }" (if "if") (parenthesized_expression "(bVar1 != 0)" (( "(") (binary_expression "bVar1 != 0" (identifier "bVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    bVar1 = *(int *)(param_3 + 0x50) != 8;\n  }" ({ "{") (expression_statement "bVar1 = *(int *)(param_3 + 0x50) != 8;" (assignment_expression "bVar1 = *(int *)(param_3 + 0x50) != 8" (identifier "bVar1") (= "=") (binary_expression "*(int *)(param_3 + 0x50) != 8" (pointer_expression "*(int *)(param_3 + 0x50)" (* "*") (cast_expression "(int *)(param_3 + 0x50)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x50)" (( "(") (binary_expression "param_3 + 0x50" (identifier "param_3") (+ "+") (number_literal "0x50")) () ")")))) (!= "!=") (number_literal "8"))) (; ";")) (} "}"))) (expression_statement "bVar2 = *(byte *)(param_1 + 0x19c) >> 2 & 1;" (assignment_expression "bVar2 = *(byte *)(param_1 + 0x19c) >> 2 & 1" (identifier "bVar2") (= "=") (binary_expression "*(byte *)(param_1 + 0x19c) >> 2 & 1" (binary_expression "*(byte *)(param_1 + 0x19c) >> 2" (pointer_expression "*(byte *)(param_1 + 0x19c)" (* "*") (cast_expression "(byte *)(param_1 + 0x19c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x19c)" (( "(") (binary_expression "param_1 + 0x19c" (identifier "param_1") (+ "+") (number_literal "0x19c")) () ")")))) (>> ">>") (number_literal "2")) (& "&") (number_literal "1"))) (; ";")) (if_statement "if (bVar1 == bVar2) {\n    *(uint *)(param_1 + 0x198) = *(uint *)(param_1 + 0x198) | param_4;\n    if (*(char *)(*(int *)(param_2 + 4) + 0xac) == '\0') {\n      if (*(int *)(param_3 + 0x5c) == 0) {\n                    \n        FUN_0007d010("../../gold/output.cc",0x1036,"add_output_section_to_load",param_1);\n      }\n      param_1 = param_1 + *(int *)(param_3 + 0x5c) * 0xc;\n    }\n    local_10[0] = param_3;\n    FUN_000baa20(param_1,local_10);\n    return;\n  }" (if "if") (parenthesized_expression "(bVar1 == bVar2)" (( "(") (binary_expression "bVar1 == bVar2" (identifier "bVar1") (== "==") (identifier "bVar2")) () ")")) (compound_statement "{\n    *(uint *)(param_1 + 0x198) = *(uint *)(param_1 + 0x198) | param_4;\n    if (*(char *)(*(int *)(param_2 + 4) + 0xac) == '\0') {\n      if (*(int *)(param_3 + 0x5c) == 0) {\n                    \n        FUN_0007d010("../../gold/output.cc",0x1036,"add_output_section_to_load",param_1);\n      }\n      param_1 = param_1 + *(int *)(param_3 + 0x5c) * 0xc;\n    }\n    local_10[0] = param_3;\n    FUN_000baa20(param_1,local_10);\n    return;\n  }" ({ "{") (expression_statement "*(uint *)(param_1 + 0x198) = *(uint *)(param_1 + 0x198) | param_4;" (assignment_expression "*(uint *)(param_1 + 0x198) = *(uint *)(param_1 + 0x198) | param_4" (pointer_expression "*(uint *)(param_1 + 0x198)" (* "*") (cast_expression "(uint *)(param_1 + 0x198)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x198)" (( "(") (binary_expression "param_1 + 0x198" (identifier "param_1") (+ "+") (number_literal "0x198")) () ")")))) (= "=") (binary_expression "*(uint *)(param_1 + 0x198) | param_4" (pointer_expression "*(uint *)(param_1 + 0x198)" (* "*") (cast_expression "(uint *)(param_1 + 0x198)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x198)" (( "(") (binary_expression "param_1 + 0x198" (identifier "param_1") (+ "+") (number_literal "0x198")) () ")")))) (| "|") (identifier "param_4"))) (; ";")) (if_statement "if (*(char *)(*(int *)(param_2 + 4) + 0xac) == '\0') {\n      if (*(int *)(param_3 + 0x5c) == 0) {\n                    \n        FUN_0007d010("../../gold/output.cc",0x1036,"add_output_section_to_load",param_1);\n      }\n      param_1 = param_1 + *(int *)(param_3 + 0x5c) * 0xc;\n    }" (if "if") (parenthesized_expression "(*(char *)(*(int *)(param_2 + 4) + 0xac) == '\0')" (( "(") (binary_expression "*(char *)(*(int *)(param_2 + 4) + 0xac) == '\0'" (pointer_expression "*(char *)(*(int *)(param_2 + 4) + 0xac)" (* "*") (cast_expression "(char *)(*(int *)(param_2 + 4) + 0xac)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_2 + 4) + 0xac)" (( "(") (binary_expression "*(int *)(param_2 + 4) + 0xac" (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 "0xac")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      if (*(int *)(param_3 + 0x5c) == 0) {\n                    \n        FUN_0007d010("../../gold/output.cc",0x1036,"add_output_section_to_load",param_1);\n      }\n      param_1 = param_1 + *(int *)(param_3 + 0x5c) * 0xc;\n    }" ({ "{") (if_statement "if (*(int *)(param_3 + 0x5c) == 0) {\n                    \n        FUN_0007d010("../../gold/output.cc",0x1036,"add_output_section_to_load",param_1);\n      }" (if "if") (parenthesized_expression "(*(int *)(param_3 + 0x5c) == 0)" (( "(") (binary_expression "*(int *)(param_3 + 0x5c) == 0" (pointer_expression "*(int *)(param_3 + 0x5c)" (* "*") (cast_expression "(int *)(param_3 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x5c)" (( "(") (binary_expression "param_3 + 0x5c" (identifier "param_3") (+ "+") (number_literal "0x5c")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n        FUN_0007d010("../../gold/output.cc",0x1036,"add_output_section_to_load",param_1);\n      }" ({ "{") (expression_statement "FUN_0007d010("../../gold/output.cc",0x1036,"add_output_section_to_load",param_1);" (call_expression "FUN_0007d010("../../gold/output.cc",0x1036,"add_output_section_to_load",param_1)" (identifier "FUN_0007d010") (argument_list "("../../gold/output.cc",0x1036,"add_output_section_to_load",param_1)" (( "(") (string_literal ""../../gold/output.cc"" (" """) (string_content "../../gold/output.cc") (" """)) (, ",") (number_literal "0x1036") (, ",") (string_literal ""add_output_section_to_load"" (" """) (string_content "add_output_section_to_load") (" """)) (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (expression_statement "param_1 = param_1 + *(int *)(param_3 + 0x5c) * 0xc;" (assignment_expression "param_1 = param_1 + *(int *)(param_3 + 0x5c) * 0xc" (identifier "param_1") (= "=") (binary_expression "param_1 + *(int *)(param_3 + 0x5c) * 0xc" (identifier "param_1") (+ "+") (binary_expression "*(int *)(param_3 + 0x5c) * 0xc" (pointer_expression "*(int *)(param_3 + 0x5c)" (* "*") (cast_expression "(int *)(param_3 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x5c)" (( "(") (binary_expression "param_3 + 0x5c" (identifier "param_3") (+ "+") (number_literal "0x5c")) () ")")))) (* "*") (number_literal "0xc")))) (; ";")) (} "}"))) (expression_statement "local_10[0] = param_3;" (assignment_expression "local_10[0] = param_3" (subscript_expression "local_10[0]" (identifier "local_10") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "FUN_000baa20(param_1,local_10);" (call_expression "FUN_000baa20(param_1,local_10)" (identifier "FUN_000baa20") (argument_list "(param_1,local_10)" (( "(") (identifier "param_1") (, ",") (identifier "local_10") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0007d010("../../gold/output.cc",0x102c,"add_output_section_to_load",bVar2);" (call_expression "FUN_0007d010("../../gold/output.cc",0x102c,"add_output_section_to_load",bVar2)" (identifier "FUN_0007d010") (argument_list "("../../gold/output.cc",0x102c,"add_output_section_to_load",bVar2)" (( "(") (string_literal ""../../gold/output.cc"" (" """) (string_content "../../gold/output.cc") (" """)) (, ",") (number_literal "0x102c") (, ",") (string_literal ""add_output_section_to_load"" (" """) (string_content "add_output_section_to_load") (" """)) (, ",") (identifier "bVar2") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: void add_output_section_to_load(Output_segment * this, Layout * layout,
   Output_section * os, Elf_Word seg_flags) */

void __thiscall
gold::type_1::function_1
          (type_1 *this,type_2 *layout,type_3 *os,type_4 var_3)

{
  type_5 var_2;
  type_3 *local_10;
  type_6 uStack_c;
  
  uStack_c = 0x108ca7;
  if (this->type_ != 1) {
                    /* WARNING: Subroutine does not return */
    var_1("../../gold/output.cc",0x1029,"add_output_section_to_load");
  }
  if ((os->flags_ & 2) == 0) {
                    /* WARNING: Subroutine does not return */
    var_1("../../gold/output.cc",0x102a,"add_output_section_to_load");
  }
  if ((this->field_0x19c & 1) != 0) {
                    /* WARNING: Subroutine does not return */
    var_1("../../gold/output.cc",0x102b,"add_output_section_to_load");
  }
  var_2 = -((char)os->field_0x91 >> 7);
  if (var_2 != 0) {
    var_2 = os->type_ != 8;
  }
  if (var_2 == ((type_5)this->field_0x19c >> 2 & 1)) {
    this->flags_ = this->flags_ | var_3;
    if ((layout->script_options_->script_sections_).saw_sections_clause_ == false) {
      if (os->order_ == var_4) {
                    /* WARNING: Subroutine does not return */
        var_1("../../gold/output.cc",0x1036,"add_output_section_to_load");
      }
      this = (type_1 *)(this->output_lists_ + os->order_);
    }
    local_10 = os;
    std::vector<gold::var_5*,_std::allocator<gold::var_5*>_>::
    emplace_back<gold::var_5*var_6>(this->output_lists_,(var_5 **)&local_10);
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_1("../../gold/output.cc",0x102c,"add_output_section_to_load");
}


(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)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (string_literal (string_content)) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (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: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (string_literal (string_content)) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (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: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (string_literal (string_content)) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (unary_expression argument: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (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: (number_literal)) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (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: (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: (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: (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)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (string_literal (string_content)) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (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))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (string_literal (string_content)) (identifier)))))))

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

void MASKED(int param_1,int param_2,int param_3,uint param_4)

{
  byte bVar1;
  undefined4 in_ECX;
  byte bVar2;
  int local_10 [2];
  
  local_10[1] = 0x108ca7;
  if (*(int *)(param_1 + 0x194) != 1) {
                    /* WARNING: Subroutine does not return */
    FUN_0007d010("../../gold/output.cc",0x1029,"add_output_section_to_load",param_1);
  }
  if ((*(byte *)(param_3 + 0x54) & 2) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0007d010("../../gold/output.cc",0x102a,"add_output_section_to_load",param_3);
  }
  if ((*(byte *)(param_1 + 0x19c) & 1) != 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0007d010("../../gold/output.cc",0x102b,"add_output_section_to_load",in_ECX);
  }
  bVar1 = -(*(char *)(param_3 + 0x91) >> 7);
  if (bVar1 != 0) {
    bVar1 = *(int *)(param_3 + 0x50) != 8;
  }
  bVar2 = *(byte *)(param_1 + 0x19c) >> 2 & 1;
  if (bVar1 == bVar2) {
    *(uint *)(param_1 + 0x198) = *(uint *)(param_1 + 0x198) | param_4;
    if (*(char *)(*(int *)(param_2 + 4) + 0xac) == '\0') {
      if (*(int *)(param_3 + 0x5c) == 0) {
                    /* WARNING: Subroutine does not return */
        FUN_0007d010("../../gold/output.cc",0x1036,"add_output_section_to_load",param_1);
      }
      param_1 = param_1 + *(int *)(param_3 + 0x5c) * 0xc;
    }
    local_10[0] = param_3;
    FUN_000baa20(param_1,local_10);
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0007d010("../../gold/output.cc",0x102c,"add_output_section_to_load",bVar2);
}

