
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Type propagation algorithm not settling */
/* DWARF original prototype: void data_segment_align(Script_sections * this) */

void __thiscall gold::Script_sections::data_segment_align(Script_sections *this)

{
  _List_node_base *p_Var1;
  char *format;
  
  if (this->saw_data_segment_align_ != false) {
    format = (char *)gettext("DATA_SEGMENT_ALIGN may only appear once in a linker script");
    gold_error(format);
  }
  p_Var1 = (_List_node_base *)this->sections_elements_;
  if ((((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)
       &p_Var1->_M_next)->_M_impl)._M_node.super__List_node_base._M_next != p_Var1) {
    p_Var1 = p_Var1->_M_prev;
    this->saw_data_segment_align_ = true;
    (this->data_segment_align_start_)._M_node = p_Var1;
    return;
  }
                    /* WARNING: Subroutine does not return */
  do_gold_unreachable("../../gold/script-sections.cc",0xda7,"data_segment_align");
}



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

void FUN_0016f8c0(int param_1)

{
  int *piVar1;
  int iVar2;
  undefined4 uVar3;
  
  if (*(char *)(param_1 + 0x1c) != '\0') {
    uVar3 = gettext("DATA_SEGMENT_ALIGN may only appear once in a linker script");
    FUN_00073e20(uVar3);
  }
  piVar1 = *(int **)(param_1 + 4);
  if ((int *)*piVar1 != piVar1) {
    iVar2 = piVar1[1];
    *(undefined1 *)(param_1 + 0x1c) = 1;
    *(int *)(param_1 + 0x18) = iVar2;
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0007d010("../../gold/script-sections.cc",0xda7,"data_segment_align",piVar1);
}


PUSH ESI
PUSH EBX
CALL 0x00036f20
ADD EBX,0x23f739
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
CMP byte ptr [ESI + 0x1c],0x0
JNZ 0x0016f8f8
MOV EAX,dword ptr [ESI + 0x4]
CMP dword ptr [EAX],EAX
JZ 0x0016f914
MOV EAX,dword ptr [EAX + 0x4]
MOV byte ptr [ESI + 0x1c],0x1
MOV dword ptr [ESI + 0x18],EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
SUB ESP,0xc
LEA EAX,[EBX + 0xfff03ec0]
PUSH EAX
CALL 0x0002a3c0
MOV dword ptr [ESP],EAX
CALL 0x00073e20
ADD ESP,0x10
JMP 0x0016f8da
PUSH EAX
LEA EAX,[EBX + 0xfff0446c]
PUSH EAX
LEA EAX,[EBX + 0xfff03c13]
PUSH 0xda7
PUSH EAX
CALL 0x0007d010
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0016f8c0(int param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (*(char *)(param_1 + 0x1c) != '\0') {\n    uVar3 = gettext("DATA_SEGMENT_ALIGN may only appear once in a linker script");\n    FUN_00073e20(uVar3);\n  }\n  piVar1 = *(int **)(param_1 + 4);\n  if ((int *)*piVar1 != piVar1) {\n    iVar2 = piVar1[1];\n    *(undefined1 *)(param_1 + 0x1c) = 1;\n    *(int *)(param_1 + 0x18) = iVar2;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0007d010("../../gold/script-sections.cc",0xda7,"data_segment_align",piVar1);\n}\n\n" comment (function_definition "void FUN_0016f8c0(int param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (*(char *)(param_1 + 0x1c) != '\0') {\n    uVar3 = gettext("DATA_SEGMENT_ALIGN may only appear once in a linker script");\n    FUN_00073e20(uVar3);\n  }\n  piVar1 = *(int **)(param_1 + 4);\n  if ((int *)*piVar1 != piVar1) {\n    iVar2 = piVar1[1];\n    *(undefined1 *)(param_1 + 0x1c) = 1;\n    *(int *)(param_1 + 0x18) = iVar2;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0007d010("../../gold/script-sections.cc",0xda7,"data_segment_align",piVar1);\n}" primitive_type (function_declarator "FUN_0016f8c0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (*(char *)(param_1 + 0x1c) != '\0') {\n    uVar3 = gettext("DATA_SEGMENT_ALIGN may only appear once in a linker script");\n    FUN_00073e20(uVar3);\n  }\n  piVar1 = *(int **)(param_1 + 4);\n  if ((int *)*piVar1 != piVar1) {\n    iVar2 = piVar1[1];\n    *(undefined1 *)(param_1 + 0x1c) = 1;\n    *(int *)(param_1 + 0x18) = iVar2;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0007d010("../../gold/script-sections.cc",0xda7,"data_segment_align",piVar1);\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (if_statement "if (*(char *)(param_1 + 0x1c) != '\0') {\n    uVar3 = gettext("DATA_SEGMENT_ALIGN may only appear once in a linker script");\n    FUN_00073e20(uVar3);\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0x1c) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x1c) != '\0'" (pointer_expression "*(char *)(param_1 + 0x1c)" * (cast_expression "(char *)(param_1 + 0x1c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar3 = gettext("DATA_SEGMENT_ALIGN may only appear once in a linker script");\n    FUN_00073e20(uVar3);\n  }" { (expression_statement "uVar3 = gettext("DATA_SEGMENT_ALIGN may only appear once in a linker script");" (assignment_expression "uVar3 = gettext("DATA_SEGMENT_ALIGN may only appear once in a linker script")" identifier = (call_expression "gettext("DATA_SEGMENT_ALIGN may only appear once in a linker script")" identifier (argument_list "("DATA_SEGMENT_ALIGN may only appear once in a linker script")" ( (string_literal ""DATA_SEGMENT_ALIGN may only appear once in a linker script"" " string_content ") )))) ;) (expression_statement "FUN_00073e20(uVar3);" (call_expression "FUN_00073e20(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) })) (expression_statement "piVar1 = *(int **)(param_1 + 4);" (assignment_expression "piVar1 = *(int **)(param_1 + 4)" identifier = (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (if_statement "if ((int *)*piVar1 != piVar1) {\n    iVar2 = piVar1[1];\n    *(undefined1 *)(param_1 + 0x1c) = 1;\n    *(int *)(param_1 + 0x18) = iVar2;\n    return;\n  }" if (parenthesized_expression "((int *)*piVar1 != piVar1)" ( (binary_expression "(int *)*piVar1 != piVar1" (cast_expression "(int *)*piVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier)) != identifier) )) (compound_statement "{\n    iVar2 = piVar1[1];\n    *(undefined1 *)(param_1 + 0x1c) = 1;\n    *(int *)(param_1 + 0x18) = iVar2;\n    return;\n  }" { (expression_statement "iVar2 = piVar1[1];" (assignment_expression "iVar2 = piVar1[1]" identifier = (subscript_expression "piVar1[1]" identifier [ number_literal ])) ;) (expression_statement "*(undefined1 *)(param_1 + 0x1c) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x1c) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x1c)" * (cast_expression "(undefined1 *)(param_1 + 0x1c)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(param_1 + 0x18) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x18) = iVar2" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) comment (expression_statement "FUN_0007d010("../../gold/script-sections.cc",0xda7,"data_segment_align",piVar1);" (call_expression "FUN_0007d010("../../gold/script-sections.cc",0xda7,"data_segment_align",piVar1)" identifier (argument_list "("../../gold/script-sections.cc",0xda7,"data_segment_align",piVar1)" ( (string_literal ""../../gold/script-sections.cc"" " string_content ") , number_literal , (string_literal ""data_segment_align"" " string_content ") , identifier ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Type propagation algorithm not settling */\n/* DWARF original prototype: void data_segment_align(Script_sections * this) */\n\nvoid __thiscall gold::Script_sections::data_segment_align(Script_sections *this)\n\n{\n  _List_node_base *p_Var1;\n  char *format;\n  \n  if (this->saw_data_segment_align_ != false) {\n    format = (char *)gettext("DATA_SEGMENT_ALIGN may only appear once in a linker script");\n    gold_error(format);\n  }\n  p_Var1 = (_List_node_base *)this->sections_elements_;\n  if ((((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n       &p_Var1->_M_next)->_M_impl)._M_node.super__List_node_base._M_next != p_Var1) {\n    p_Var1 = p_Var1->_M_prev;\n    this->saw_data_segment_align_ = true;\n    (this->data_segment_align_start_)._M_node = p_Var1;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/script-sections.cc",0xda7,"data_segment_align");\n}\n\n" comment comment comment (function_definition "void __thiscall gold::Script_sections::data_segment_align(Script_sections *this)\n\n{\n  _List_node_base *p_Var1;\n  char *format;\n  \n  if (this->saw_data_segment_align_ != false) {\n    format = (char *)gettext("DATA_SEGMENT_ALIGN may only appear once in a linker script");\n    gold_error(format);\n  }\n  p_Var1 = (_List_node_base *)this->sections_elements_;\n  if ((((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n       &p_Var1->_M_next)->_M_impl)._M_node.super__List_node_base._M_next != p_Var1) {\n    p_Var1 = p_Var1->_M_prev;\n    this->saw_data_segment_align_ = true;\n    (this->data_segment_align_start_)._M_node = p_Var1;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/script-sections.cc",0xda7,"data_segment_align");\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Script_sections::" identifier : : identifier : :) (function_declarator "data_segment_align(Script_sections *this)" identifier (parameter_list "(Script_sections *this)" ( (parameter_declaration "Script_sections *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  _List_node_base *p_Var1;\n  char *format;\n  \n  if (this->saw_data_segment_align_ != false) {\n    format = (char *)gettext("DATA_SEGMENT_ALIGN may only appear once in a linker script");\n    gold_error(format);\n  }\n  p_Var1 = (_List_node_base *)this->sections_elements_;\n  if ((((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n       &p_Var1->_M_next)->_M_impl)._M_node.super__List_node_base._M_next != p_Var1) {\n    p_Var1 = p_Var1->_M_prev;\n    this->saw_data_segment_align_ = true;\n    (this->data_segment_align_start_)._M_node = p_Var1;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/script-sections.cc",0xda7,"data_segment_align");\n}" { (declaration "_List_node_base *p_Var1;" type_identifier (pointer_declarator "*p_Var1" * identifier) ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (if_statement "if (this->saw_data_segment_align_ != false) {\n    format = (char *)gettext("DATA_SEGMENT_ALIGN may only appear once in a linker script");\n    gold_error(format);\n  }" if (parenthesized_expression "(this->saw_data_segment_align_ != false)" ( (binary_expression "this->saw_data_segment_align_ != false" (field_expression "this->saw_data_segment_align_" identifier -> field_identifier) != false) )) (compound_statement "{\n    format = (char *)gettext("DATA_SEGMENT_ALIGN may only appear once in a linker script");\n    gold_error(format);\n  }" { (expression_statement "format = (char *)gettext("DATA_SEGMENT_ALIGN may only appear once in a linker script");" (assignment_expression "format = (char *)gettext("DATA_SEGMENT_ALIGN may only appear once in a linker script")" identifier = (cast_expression "(char *)gettext("DATA_SEGMENT_ALIGN may only appear once in a linker script")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext("DATA_SEGMENT_ALIGN may only appear once in a linker script")" identifier (argument_list "("DATA_SEGMENT_ALIGN may only appear once in a linker script")" ( (string_literal ""DATA_SEGMENT_ALIGN may only appear once in a linker script"" " string_content ") ))))) ;) (expression_statement "gold_error(format);" (call_expression "gold_error(format)" identifier (argument_list "(format)" ( identifier ))) ;) })) (expression_statement "p_Var1 = (_List_node_base *)this->sections_elements_;" (assignment_expression "p_Var1 = (_List_node_base *)this->sections_elements_" identifier = (cast_expression "(_List_node_base *)this->sections_elements_" ( (type_descriptor "_List_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "this->sections_elements_" identifier -> field_identifier))) ;) (if_statement "if ((((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n       &p_Var1->_M_next)->_M_impl)._M_node.super__List_node_base._M_next != p_Var1) {\n    p_Var1 = p_Var1->_M_prev;\n    this->saw_data_segment_align_ = true;\n    (this->data_segment_align_start_)._M_node = p_Var1;\n    return;\n  }" if (parenthesized_expression "((((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n       &p_Var1->_M_next)->_M_impl)._M_node.super__List_node_base._M_next != p_Var1)" ( (binary_expression "(((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n       &p_Var1->_M_next)->_M_impl)._M_node.super__List_node_base._M_next != p_Var1" (field_expression "(((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n       &p_Var1->_M_next)->_M_impl)._M_node.super__List_node_base._M_next" (field_expression "(((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n       &p_Var1->_M_next)->_M_impl)._M_node.super__List_node_base" (field_expression "(((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n       &p_Var1->_M_next)->_M_impl)._M_node" (parenthesized_expression "(((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n       &p_Var1->_M_next)->_M_impl)" ( (field_expression "((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n       &p_Var1->_M_next)->_M_impl" (parenthesized_expression "((_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n       &p_Var1->_M_next)" ( (binary_expression "(_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)\n       &p_Var1->_M_next" (parenthesized_expression "(_List_base<gold::Sections_element*,_std::allocator<gold::Sections_element*>_> *)" ( (ERROR "_List_base<gold::Sections_element*,_std::allocator<gold::" (binary_expression "_List_base<gold" identifier < identifier) : : (type_descriptor "Sections_element*" type_identifier (abstract_pointer_declarator "*" *)) , identifier : : (binary_expression "allocator<gold" identifier < identifier) : :) (binary_expression "Sections_element*>_> *" (binary_expression "Sections_element*>_" identifier * (ERROR ">" >) identifier) > (pointer_expression "*" * identifier)) )) & (field_expression "p_Var1->_M_next" identifier -> field_identifier)) )) -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) != identifier) )) (compound_statement "{\n    p_Var1 = p_Var1->_M_prev;\n    this->saw_data_segment_align_ = true;\n    (this->data_segment_align_start_)._M_node = p_Var1;\n    return;\n  }" { (expression_statement "p_Var1 = p_Var1->_M_prev;" (assignment_expression "p_Var1 = p_Var1->_M_prev" identifier = (field_expression "p_Var1->_M_prev" identifier -> field_identifier)) ;) (expression_statement "this->saw_data_segment_align_ = true;" (assignment_expression "this->saw_data_segment_align_ = true" (field_expression "this->saw_data_segment_align_" identifier -> field_identifier) = true) ;) (expression_statement "(this->data_segment_align_start_)._M_node = p_Var1;" (assignment_expression "(this->data_segment_align_start_)._M_node = p_Var1" (field_expression "(this->data_segment_align_start_)._M_node" (parenthesized_expression "(this->data_segment_align_start_)" ( (field_expression "this->data_segment_align_start_" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (return_statement "return;" return ;) })) comment (expression_statement "do_gold_unreachable("../../gold/script-sections.cc",0xda7,"data_segment_align");" (call_expression "do_gold_unreachable("../../gold/script-sections.cc",0xda7,"data_segment_align")" identifier (argument_list "("../../gold/script-sections.cc",0xda7,"data_segment_align")" ( (string_literal ""../../gold/script-sections.cc"" " string_content ") , number_literal , (string_literal ""data_segment_align"" " string_content ") ))) ;) })))
(translation_unit "void FUN_0016f8c0(int param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (*(char *)(param_1 + 0x1c) != '\0') {\n    uVar3 = gettext("DATA_SEGMENT_ALIGN may only appear once in a linker script");\n    FUN_00073e20(uVar3);\n  }\n  piVar1 = *(int **)(param_1 + 4);\n  if ((int *)*piVar1 != piVar1) {\n    iVar2 = piVar1[1];\n    *(undefined1 *)(param_1 + 0x1c) = 1;\n    *(int *)(param_1 + 0x18) = iVar2;\n    return;\n  }\n                    \n  FUN_0007d010("../../gold/script-sections.cc",0xda7,"data_segment_align",piVar1);\n}\n\n" (function_definition "void FUN_0016f8c0(int param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (*(char *)(param_1 + 0x1c) != '\0') {\n    uVar3 = gettext("DATA_SEGMENT_ALIGN may only appear once in a linker script");\n    FUN_00073e20(uVar3);\n  }\n  piVar1 = *(int **)(param_1 + 4);\n  if ((int *)*piVar1 != piVar1) {\n    iVar2 = piVar1[1];\n    *(undefined1 *)(param_1 + 0x1c) = 1;\n    *(int *)(param_1 + 0x18) = iVar2;\n    return;\n  }\n                    \n  FUN_0007d010("../../gold/script-sections.cc",0xda7,"data_segment_align",piVar1);\n}" primitive_type (function_declarator "FUN_0016f8c0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (*(char *)(param_1 + 0x1c) != '\0') {\n    uVar3 = gettext("DATA_SEGMENT_ALIGN may only appear once in a linker script");\n    FUN_00073e20(uVar3);\n  }\n  piVar1 = *(int **)(param_1 + 4);\n  if ((int *)*piVar1 != piVar1) {\n    iVar2 = piVar1[1];\n    *(undefined1 *)(param_1 + 0x1c) = 1;\n    *(int *)(param_1 + 0x18) = iVar2;\n    return;\n  }\n                    \n  FUN_0007d010("../../gold/script-sections.cc",0xda7,"data_segment_align",piVar1);\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (if_statement "if (*(char *)(param_1 + 0x1c) != '\0') {\n    uVar3 = gettext("DATA_SEGMENT_ALIGN may only appear once in a linker script");\n    FUN_00073e20(uVar3);\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0x1c) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x1c) != '\0'" (pointer_expression "*(char *)(param_1 + 0x1c)" * (cast_expression "(char *)(param_1 + 0x1c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar3 = gettext("DATA_SEGMENT_ALIGN may only appear once in a linker script");\n    FUN_00073e20(uVar3);\n  }" { (expression_statement "uVar3 = gettext("DATA_SEGMENT_ALIGN may only appear once in a linker script");" (assignment_expression "uVar3 = gettext("DATA_SEGMENT_ALIGN may only appear once in a linker script")" identifier = (call_expression "gettext("DATA_SEGMENT_ALIGN may only appear once in a linker script")" identifier (argument_list "("DATA_SEGMENT_ALIGN may only appear once in a linker script")" ( (string_literal ""DATA_SEGMENT_ALIGN may only appear once in a linker script"" " string_content ") )))) ;) (expression_statement "FUN_00073e20(uVar3);" (call_expression "FUN_00073e20(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) })) (expression_statement "piVar1 = *(int **)(param_1 + 4);" (assignment_expression "piVar1 = *(int **)(param_1 + 4)" identifier = (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (if_statement "if ((int *)*piVar1 != piVar1) {\n    iVar2 = piVar1[1];\n    *(undefined1 *)(param_1 + 0x1c) = 1;\n    *(int *)(param_1 + 0x18) = iVar2;\n    return;\n  }" if (parenthesized_expression "((int *)*piVar1 != piVar1)" ( (binary_expression "(int *)*piVar1 != piVar1" (cast_expression "(int *)*piVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier)) != identifier) )) (compound_statement "{\n    iVar2 = piVar1[1];\n    *(undefined1 *)(param_1 + 0x1c) = 1;\n    *(int *)(param_1 + 0x18) = iVar2;\n    return;\n  }" { (expression_statement "iVar2 = piVar1[1];" (assignment_expression "iVar2 = piVar1[1]" identifier = (subscript_expression "piVar1[1]" identifier [ number_literal ])) ;) (expression_statement "*(undefined1 *)(param_1 + 0x1c) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x1c) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x1c)" * (cast_expression "(undefined1 *)(param_1 + 0x1c)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(param_1 + 0x18) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x18) = iVar2" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_0007d010("../../gold/script-sections.cc",0xda7,"data_segment_align",piVar1);" (call_expression "FUN_0007d010("../../gold/script-sections.cc",0xda7,"data_segment_align",piVar1)" identifier (argument_list "("../../gold/script-sections.cc",0xda7,"data_segment_align",piVar1)" ( (string_literal ""../../gold/script-sections.cc"" " string_content ") , number_literal , (string_literal ""data_segment_align"" " string_content ") , identifier ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) ;) (expression_statement (call_expression IDENT (argument_list ( 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) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = 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_0016f8c0(int param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (*(char *)(param_1 + 0x1c) != '\0') {\n    uVar3 = gettext("DATA_SEGMENT_ALIGN may only appear once in a linker script");\n    FUN_00073e20(uVar3);\n  }\n  piVar1 = *(int **)(param_1 + 4);\n  if ((int *)*piVar1 != piVar1) {\n    iVar2 = piVar1[1];\n    *(undefined1 *)(param_1 + 0x1c) = 1;\n    *(int *)(param_1 + 0x18) = iVar2;\n    return;\n  }\n                    \n  FUN_0007d010("../../gold/script-sections.cc",0xda7,"data_segment_align",piVar1);\n}" (primitive_type "void") (function_declarator "FUN_0016f8c0(int param_1)" (identifier "FUN_0016f8c0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (*(char *)(param_1 + 0x1c) != '\0') {\n    uVar3 = gettext("DATA_SEGMENT_ALIGN may only appear once in a linker script");\n    FUN_00073e20(uVar3);\n  }\n  piVar1 = *(int **)(param_1 + 4);\n  if ((int *)*piVar1 != piVar1) {\n    iVar2 = piVar1[1];\n    *(undefined1 *)(param_1 + 0x1c) = 1;\n    *(int *)(param_1 + 0x18) = iVar2;\n    return;\n  }\n                    \n  FUN_0007d010("../../gold/script-sections.cc",0xda7,"data_segment_align",piVar1);\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (if_statement "if (*(char *)(param_1 + 0x1c) != '\0') {\n    uVar3 = gettext("DATA_SEGMENT_ALIGN may only appear once in a linker script");\n    FUN_00073e20(uVar3);\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0x1c) != '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0x1c) != '\0'" (pointer_expression "*(char *)(param_1 + 0x1c)" (* "*") (cast_expression "(char *)(param_1 + 0x1c)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    uVar3 = gettext("DATA_SEGMENT_ALIGN may only appear once in a linker script");\n    FUN_00073e20(uVar3);\n  }" ({ "{") (expression_statement "uVar3 = gettext("DATA_SEGMENT_ALIGN may only appear once in a linker script");" (assignment_expression "uVar3 = gettext("DATA_SEGMENT_ALIGN may only appear once in a linker script")" (identifier "uVar3") (= "=") (call_expression "gettext("DATA_SEGMENT_ALIGN may only appear once in a linker script")" (identifier "gettext") (argument_list "("DATA_SEGMENT_ALIGN may only appear once in a linker script")" (( "(") (string_literal ""DATA_SEGMENT_ALIGN may only appear once in a linker script"" (" """) (string_content "DATA_SEGMENT_ALIGN may only appear once in a linker script") (" """)) () ")")))) (; ";")) (expression_statement "FUN_00073e20(uVar3);" (call_expression "FUN_00073e20(uVar3)" (identifier "FUN_00073e20") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))) (; ";")) (} "}"))) (expression_statement "piVar1 = *(int **)(param_1 + 4);" (assignment_expression "piVar1 = *(int **)(param_1 + 4)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(param_1 + 4)" (* "*") (cast_expression "(int **)(param_1 + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if ((int *)*piVar1 != piVar1) {\n    iVar2 = piVar1[1];\n    *(undefined1 *)(param_1 + 0x1c) = 1;\n    *(int *)(param_1 + 0x18) = iVar2;\n    return;\n  }" (if "if") (parenthesized_expression "((int *)*piVar1 != piVar1)" (( "(") (binary_expression "(int *)*piVar1 != piVar1" (cast_expression "(int *)*piVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (!= "!=") (identifier "piVar1")) () ")")) (compound_statement "{\n    iVar2 = piVar1[1];\n    *(undefined1 *)(param_1 + 0x1c) = 1;\n    *(int *)(param_1 + 0x18) = iVar2;\n    return;\n  }" ({ "{") (expression_statement "iVar2 = piVar1[1];" (assignment_expression "iVar2 = piVar1[1]" (identifier "iVar2") (= "=") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 0x1c) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x1c) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x1c)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x1c)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "*(int *)(param_1 + 0x18) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x18) = iVar2" (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0007d010("../../gold/script-sections.cc",0xda7,"data_segment_align",piVar1);" (call_expression "FUN_0007d010("../../gold/script-sections.cc",0xda7,"data_segment_align",piVar1)" (identifier "FUN_0007d010") (argument_list "("../../gold/script-sections.cc",0xda7,"data_segment_align",piVar1)" (( "(") (string_literal ""../../gold/script-sections.cc"" (" """) (string_content "../../gold/script-sections.cc") (" """)) (, ",") (number_literal "0xda7") (, ",") (string_literal ""data_segment_align"" (" """) (string_content "data_segment_align") (" """)) (, ",") (identifier "piVar1") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Type propagation algorithm not settling */
/* DWARF original prototype: void data_segment_align(Script_sections * this) */

void __thiscall gold::type_1::function_1(type_1 *this)

{
  type_2 *var_5;
  char *format;
  
  if (this->saw_data_segment_align_ != false) {
    format = (char *)var_1("DATA_SEGMENT_ALIGN may only appear once in a linker script");
    var_2(format);
  }
  var_5 = (type_2 *)this->sections_elements_;
  if ((((_List_base<gold::var_3*,_std::allocator<gold::var_3*>var_4> *)
       &var_5->_M_next)->_M_impl)._M_node.super__List_node_base._M_next != var_5) {
    var_5 = var_5->_M_prev;
    this->saw_data_segment_align_ = true;
    (this->data_segment_align_start_)._M_node = var_5;
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_6("../../gold/script-sections.cc",0xda7,"data_segment_align");
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (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: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (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: (number_literal))) (expression_statement (assignment_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: (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 *piVar1;
  int iVar2;
  undefined4 uVar3;
  
  if (*(char *)(param_1 + 0x1c) != '\0') {
    uVar3 = gettext("DATA_SEGMENT_ALIGN may only appear once in a linker script");
    FUN_00073e20(uVar3);
  }
  piVar1 = *(int **)(param_1 + 4);
  if ((int *)*piVar1 != piVar1) {
    iVar2 = piVar1[1];
    *(undefined1 *)(param_1 + 0x1c) = 1;
    *(int *)(param_1 + 0x18) = iVar2;
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0007d010("../../gold/script-sections.cc",0xda7,"data_segment_align",piVar1);
}

