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

Elf_Xword __thiscall
gold::Layout::get_output_section_flags(Layout *this,Elf_Xword input_section_flags)

{
  Target *in_stack_fffffff4;
  
  if (parameters->options_ == (General_options *)0x0) {
                    /* WARNING: Subroutine does not return */
    Target::abi_pagesize(in_stack_fffffff4);
  }
  if ((parameters->options_->relocatable_).value == false) {
    return (Elf_Xword)((uint)input_section_flags & 0xfffff50f);
  }
  return (Elf_Xword)((uint)input_section_flags & 0xfffff58f);
}



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

uint FUN_0007b660(undefined4 param_1,uint param_2)

{
  if (*(int *)(DAT_00302378 + 8) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0007a620();
  }
  if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x318d) == '\0') {
    return param_2 & 0xfffff50f;
  }
  return param_2 & 0xfffff58f;
}


CALL 0x0004fb76
ADD EAX,0x28699b
SUB ESP,0xc
MOV ECX,dword ptr [ESP + 0x14]
LEA EAX,[EAX + 0x378]
MOV EAX,dword ptr [EAX]
MOV EDX,dword ptr [EAX + 0x8]
TEST EDX,EDX
JZ 0x0007b6ad
MOV EAX,ECX
AND EAX,0xfffff50f
CMP byte ptr [EDX + 0x318d],0x0
JNZ 0x0007b6a0
XOR EDX,EDX
ADD ESP,0xc
RET
MOV EAX,ECX
XOR EDX,EDX
ADD ESP,0xc
AND EAX,0xfffff58f
RET
CALL 0x0007a620
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nuint FUN_0007b660(undefined4 param_1,uint param_2)\n\n{\n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007a620();\n  }\n  if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x318d) == '\0') {\n    return param_2 & 0xfffff50f;\n  }\n  return param_2 & 0xfffff58f;\n}\n\n" comment (function_definition "uint FUN_0007b660(undefined4 param_1,uint param_2)\n\n{\n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007a620();\n  }\n  if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x318d) == '\0') {\n    return param_2 & 0xfffff50f;\n  }\n  return param_2 & 0xfffff58f;\n}" type_identifier (function_declarator "FUN_0007b660(undefined4 param_1,uint param_2)" identifier (parameter_list "(undefined4 param_1,uint param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007a620();\n  }\n  if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x318d) == '\0') {\n    return param_2 & 0xfffff50f;\n  }\n  return param_2 & 0xfffff58f;\n}" { (if_statement "if (*(int *)(DAT_00302378 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007a620();\n  }" if (parenthesized_expression "(*(int *)(DAT_00302378 + 8) == 0)" ( (binary_expression "*(int *)(DAT_00302378 + 8) == 0" (pointer_expression "*(int *)(DAT_00302378 + 8)" * (cast_expression "(int *)(DAT_00302378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00302378 + 8)" ( (binary_expression "DAT_00302378 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0007a620();\n  }" { comment (expression_statement "FUN_0007a620();" (call_expression "FUN_0007a620()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x318d) == '\0') {\n    return param_2 & 0xfffff50f;\n  }" if (parenthesized_expression "(*(char *)(*(int *)(DAT_00302378 + 8) + 0x318d) == '\0')" ( (binary_expression "*(char *)(*(int *)(DAT_00302378 + 8) + 0x318d) == '\0'" (pointer_expression "*(char *)(*(int *)(DAT_00302378 + 8) + 0x318d)" * (cast_expression "(char *)(*(int *)(DAT_00302378 + 8) + 0x318d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_00302378 + 8) + 0x318d)" ( (binary_expression "*(int *)(DAT_00302378 + 8) + 0x318d" (pointer_expression "*(int *)(DAT_00302378 + 8)" * (cast_expression "(int *)(DAT_00302378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00302378 + 8)" ( (binary_expression "DAT_00302378 + 8" identifier + number_literal) )))) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return param_2 & 0xfffff50f;\n  }" { (return_statement "return param_2 & 0xfffff50f;" return (binary_expression "param_2 & 0xfffff50f" identifier & number_literal) ;) })) (return_statement "return param_2 & 0xfffff58f;" return (binary_expression "param_2 & 0xfffff58f" identifier & number_literal) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* WARNING: Enum "DT": Some values do not have unique names */\n/* DWARF original prototype: Elf_Xword get_output_section_flags(Layout * this, Elf_Xword\n   input_section_flags) */\n\nElf_Xword __thiscall\ngold::Layout::get_output_section_flags(Layout *this,Elf_Xword input_section_flags)\n\n{\n  Target *in_stack_fffffff4;\n  \n  if (parameters->options_ == (General_options *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    Target::abi_pagesize(in_stack_fffffff4);\n  }\n  if ((parameters->options_->relocatable_).value == false) {\n    return (Elf_Xword)((uint)input_section_flags & 0xfffff50f);\n  }\n  return (Elf_Xword)((uint)input_section_flags & 0xfffff58f);\n}\n\n" comment comment comment (function_definition "Elf_Xword __thiscall\ngold::Layout::get_output_section_flags(Layout *this,Elf_Xword input_section_flags)\n\n{\n  Target *in_stack_fffffff4;\n  \n  if (parameters->options_ == (General_options *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    Target::abi_pagesize(in_stack_fffffff4);\n  }\n  if ((parameters->options_->relocatable_).value == false) {\n    return (Elf_Xword)((uint)input_section_flags & 0xfffff50f);\n  }\n  return (Elf_Xword)((uint)input_section_flags & 0xfffff58f);\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Layout::" identifier : : identifier : :) (function_declarator "get_output_section_flags(Layout *this,Elf_Xword input_section_flags)" identifier (parameter_list "(Layout *this,Elf_Xword input_section_flags)" ( (parameter_declaration "Layout *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Elf_Xword input_section_flags" type_identifier identifier) ))) (compound_statement "{\n  Target *in_stack_fffffff4;\n  \n  if (parameters->options_ == (General_options *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    Target::abi_pagesize(in_stack_fffffff4);\n  }\n  if ((parameters->options_->relocatable_).value == false) {\n    return (Elf_Xword)((uint)input_section_flags & 0xfffff50f);\n  }\n  return (Elf_Xword)((uint)input_section_flags & 0xfffff58f);\n}" { (declaration "Target *in_stack_fffffff4;" type_identifier (pointer_declarator "*in_stack_fffffff4" * identifier) ;) (if_statement "if (parameters->options_ == (General_options *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    Target::abi_pagesize(in_stack_fffffff4);\n  }" if (parenthesized_expression "(parameters->options_ == (General_options *)0x0)" ( (binary_expression "parameters->options_ == (General_options *)0x0" (field_expression "parameters->options_" identifier -> field_identifier) == (cast_expression "(General_options *)0x0" ( (type_descriptor "General_options *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    Target::abi_pagesize(in_stack_fffffff4);\n  }" { comment (labeled_statement "Target::abi_pagesize(in_stack_fffffff4);" statement_identifier : (ERROR ":" :) (expression_statement "abi_pagesize(in_stack_fffffff4);" (call_expression "abi_pagesize(in_stack_fffffff4)" identifier (argument_list "(in_stack_fffffff4)" ( identifier ))) ;)) })) (if_statement "if ((parameters->options_->relocatable_).value == false) {\n    return (Elf_Xword)((uint)input_section_flags & 0xfffff50f);\n  }" if (parenthesized_expression "((parameters->options_->relocatable_).value == false)" ( (binary_expression "(parameters->options_->relocatable_).value == false" (field_expression "(parameters->options_->relocatable_).value" (parenthesized_expression "(parameters->options_->relocatable_)" ( (field_expression "parameters->options_->relocatable_" (field_expression "parameters->options_" identifier -> field_identifier) -> field_identifier) )) . field_identifier) == false) )) (compound_statement "{\n    return (Elf_Xword)((uint)input_section_flags & 0xfffff50f);\n  }" { (return_statement "return (Elf_Xword)((uint)input_section_flags & 0xfffff50f);" return (call_expression "(Elf_Xword)((uint)input_section_flags & 0xfffff50f)" (parenthesized_expression "(Elf_Xword)" ( identifier )) (argument_list "((uint)input_section_flags & 0xfffff50f)" ( (binary_expression "(uint)input_section_flags & 0xfffff50f" (cast_expression "(uint)input_section_flags" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) ))) ;) })) (return_statement "return (Elf_Xword)((uint)input_section_flags & 0xfffff58f);" return (call_expression "(Elf_Xword)((uint)input_section_flags & 0xfffff58f)" (parenthesized_expression "(Elf_Xword)" ( identifier )) (argument_list "((uint)input_section_flags & 0xfffff58f)" ( (binary_expression "(uint)input_section_flags & 0xfffff58f" (cast_expression "(uint)input_section_flags" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) ))) ;) })))
(translation_unit "uint FUN_0007b660(undefined4 param_1,uint param_2)\n\n{\n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0007a620();\n  }\n  if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x318d) == '\0') {\n    return param_2 & 0xfffff50f;\n  }\n  return param_2 & 0xfffff58f;\n}\n\n" (function_definition "uint FUN_0007b660(undefined4 param_1,uint param_2)\n\n{\n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0007a620();\n  }\n  if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x318d) == '\0') {\n    return param_2 & 0xfffff50f;\n  }\n  return param_2 & 0xfffff58f;\n}" type_identifier (function_declarator "FUN_0007b660(undefined4 param_1,uint param_2)" identifier (parameter_list "(undefined4 param_1,uint param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0007a620();\n  }\n  if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x318d) == '\0') {\n    return param_2 & 0xfffff50f;\n  }\n  return param_2 & 0xfffff58f;\n}" { (if_statement "if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0007a620();\n  }" if (parenthesized_expression "(*(int *)(DAT_00302378 + 8) == 0)" ( (binary_expression "*(int *)(DAT_00302378 + 8) == 0" (pointer_expression "*(int *)(DAT_00302378 + 8)" * (cast_expression "(int *)(DAT_00302378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00302378 + 8)" ( (binary_expression "DAT_00302378 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    \n    FUN_0007a620();\n  }" { (expression_statement "FUN_0007a620();" (call_expression "FUN_0007a620()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x318d) == '\0') {\n    return param_2 & 0xfffff50f;\n  }" if (parenthesized_expression "(*(char *)(*(int *)(DAT_00302378 + 8) + 0x318d) == '\0')" ( (binary_expression "*(char *)(*(int *)(DAT_00302378 + 8) + 0x318d) == '\0'" (pointer_expression "*(char *)(*(int *)(DAT_00302378 + 8) + 0x318d)" * (cast_expression "(char *)(*(int *)(DAT_00302378 + 8) + 0x318d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_00302378 + 8) + 0x318d)" ( (binary_expression "*(int *)(DAT_00302378 + 8) + 0x318d" (pointer_expression "*(int *)(DAT_00302378 + 8)" * (cast_expression "(int *)(DAT_00302378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00302378 + 8)" ( (binary_expression "DAT_00302378 + 8" identifier + number_literal) )))) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return param_2 & 0xfffff50f;\n  }" { (return_statement "return param_2 & 0xfffff50f;" return (binary_expression "param_2 & 0xfffff50f" identifier & number_literal) ;) })) (return_statement "return param_2 & 0xfffff58f;" return (binary_expression "param_2 & 0xfffff58f" identifier & number_literal) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (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 ( ))) ;) })) (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 { (return_statement return (binary_expression IDENT & LIT) ;) })) (return_statement return (binary_expression IDENT & LIT) ;) })))
(function_definition "uint FUN_0007b660(undefined4 param_1,uint param_2)\n\n{\n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0007a620();\n  }\n  if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x318d) == '\0') {\n    return param_2 & 0xfffff50f;\n  }\n  return param_2 & 0xfffff58f;\n}" (type_identifier "uint") (function_declarator "FUN_0007b660(undefined4 param_1,uint param_2)" (identifier "FUN_0007b660") (parameter_list "(undefined4 param_1,uint param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0007a620();\n  }\n  if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x318d) == '\0') {\n    return param_2 & 0xfffff50f;\n  }\n  return param_2 & 0xfffff58f;\n}" ({ "{") (if_statement "if (*(int *)(DAT_00302378 + 8) == 0) {\n                    \n    FUN_0007a620();\n  }" (if "if") (parenthesized_expression "(*(int *)(DAT_00302378 + 8) == 0)" (( "(") (binary_expression "*(int *)(DAT_00302378 + 8) == 0" (pointer_expression "*(int *)(DAT_00302378 + 8)" (* "*") (cast_expression "(int *)(DAT_00302378 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_00302378 + 8)" (( "(") (binary_expression "DAT_00302378 + 8" (identifier "DAT_00302378") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    FUN_0007a620();\n  }" ({ "{") (expression_statement "FUN_0007a620();" (call_expression "FUN_0007a620()" (identifier "FUN_0007a620") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x318d) == '\0') {\n    return param_2 & 0xfffff50f;\n  }" (if "if") (parenthesized_expression "(*(char *)(*(int *)(DAT_00302378 + 8) + 0x318d) == '\0')" (( "(") (binary_expression "*(char *)(*(int *)(DAT_00302378 + 8) + 0x318d) == '\0'" (pointer_expression "*(char *)(*(int *)(DAT_00302378 + 8) + 0x318d)" (* "*") (cast_expression "(char *)(*(int *)(DAT_00302378 + 8) + 0x318d)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(DAT_00302378 + 8) + 0x318d)" (( "(") (binary_expression "*(int *)(DAT_00302378 + 8) + 0x318d" (pointer_expression "*(int *)(DAT_00302378 + 8)" (* "*") (cast_expression "(int *)(DAT_00302378 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_00302378 + 8)" (( "(") (binary_expression "DAT_00302378 + 8" (identifier "DAT_00302378") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "0x318d")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    return param_2 & 0xfffff50f;\n  }" ({ "{") (return_statement "return param_2 & 0xfffff50f;" (return "return") (binary_expression "param_2 & 0xfffff50f" (identifier "param_2") (& "&") (number_literal "0xfffff50f")) (; ";")) (} "}"))) (return_statement "return param_2 & 0xfffff58f;" (return "return") (binary_expression "param_2 & 0xfffff58f" (identifier "param_2") (& "&") (number_literal "0xfffff58f")) (; ";")) (} "}")))

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

type_1 __thiscall
gold::type_2::function_1(type_2 *this,type_1 input_section_flags)

{
  type_3 *in_stack_fffffff4;
  
  if (parameters->options_ == (type_4 *)0x0) {
                    /* WARNING: Subroutine does not return */
    Target::var_1(in_stack_fffffff4);
  }
  if ((parameters->options_->relocatable_).value == false) {
    return (type_1)((type_5)input_section_flags & 0xfffff50f);
  }
  return (type_1)((type_5)input_section_flags & 0xfffff58f);
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (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))))) (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 (return_statement (binary_expression left: (identifier) right: (number_literal))))) (return_statement (binary_expression left: (identifier) right: (number_literal))))))

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

uint MASKED(undefined4 param_1,uint param_2)

{
  if (*(int *)(DAT_00302378 + 8) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0007a620();
  }
  if (*(char *)(*(int *)(DAT_00302378 + 8) + 0x318d) == '\0') {
    return param_2 & 0xfffff50f;
  }
  return param_2 & 0xfffff58f;
}

