
/* DWARF original prototype: Output_section * allocate_to_segment(Orphan_output_section * this,
   String_list * * param_1, bool * orphan) */

Output_section * __thiscall
gold::Orphan_output_section::allocate_to_segment
          (Orphan_output_section *this,String_list **param_2,bool *orphan)

{
  Output_section *pOVar1;
  
  pOVar1 = this->os_;
  if ((pOVar1->flags_ & 2) != 0) {
    *orphan = true;
    return pOVar1;
  }
  return (Output_section *)0x0;
}



int FUN_0032f6e0(int param_1,undefined4 param_2,undefined1 *param_3)

{
  int iVar1;
  
  iVar1 = *(int *)(param_1 + 4);
  if ((*(byte *)(iVar1 + 0x54) & 2) != 0) {
    *param_3 = 1;
    return iVar1;
  }
  return 0;
}


MOV EAX,dword ptr [ESP + 0x4]
MOV EAX,dword ptr [EAX + 0x4]
TEST byte ptr [EAX + 0x54],0x2
JZ 0x0032f6f8
MOV EDX,dword ptr [ESP + 0xc]
MOV byte ptr [EDX],0x1
RET
XOR EAX,EAX
RET
(translation_unit "int FUN_0032f6e0(int param_1,undefined4 param_2,undefined1 *param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if ((*(byte *)(iVar1 + 0x54) & 2) != 0) {\n    *param_3 = 1;\n    return iVar1;\n  }\n  return 0;\n}\n\n" (function_definition "int FUN_0032f6e0(int param_1,undefined4 param_2,undefined1 *param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if ((*(byte *)(iVar1 + 0x54) & 2) != 0) {\n    *param_3 = 1;\n    return iVar1;\n  }\n  return 0;\n}" primitive_type (function_declarator "FUN_0032f6e0(int param_1,undefined4 param_2,undefined1 *param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined1 *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined1 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if ((*(byte *)(iVar1 + 0x54) & 2) != 0) {\n    *param_3 = 1;\n    return iVar1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(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 "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (if_statement "if ((*(byte *)(iVar1 + 0x54) & 2) != 0) {\n    *param_3 = 1;\n    return iVar1;\n  }" if (parenthesized_expression "((*(byte *)(iVar1 + 0x54) & 2) != 0)" ( (binary_expression "(*(byte *)(iVar1 + 0x54) & 2) != 0" (parenthesized_expression "(*(byte *)(iVar1 + 0x54) & 2)" ( (binary_expression "*(byte *)(iVar1 + 0x54) & 2" (pointer_expression "*(byte *)(iVar1 + 0x54)" * (cast_expression "(byte *)(iVar1 + 0x54)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x54)" ( (binary_expression "iVar1 + 0x54" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    *param_3 = 1;\n    return iVar1;\n  }" { (expression_statement "*param_3 = 1;" (assignment_expression "*param_3 = 1" (pointer_expression "*param_3" * identifier) = number_literal) ;) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* DWARF original prototype: Output_section * allocate_to_segment(Orphan_output_section * this,\n   String_list * * param_1, bool * orphan) */\n\nOutput_section * __thiscall\ngold::Orphan_output_section::allocate_to_segment\n          (Orphan_output_section *this,String_list **param_2,bool *orphan)\n\n{\n  Output_section *pOVar1;\n  \n  pOVar1 = this->os_;\n  if ((pOVar1->flags_ & 2) != 0) {\n    *orphan = true;\n    return pOVar1;\n  }\n  return (Output_section *)0x0;\n}\n\n" comment (ERROR "Output_section * __thiscall\ngold::Orphan_output_section::allocate_to_segment\n          (Orphan_output_section *this,String_list **param_2,bool *orphan)" (binary_expression "Output_section * __thiscall\ngold::Orphan_output_section::allocate_to_segment\n          (Orphan_output_section *this,String_list **param_2,bool *orphan)" identifier * (call_expression "__thiscall\ngold::Orphan_output_section::allocate_to_segment\n          (Orphan_output_section *this,String_list **param_2,bool *orphan)" identifier (ERROR "gold::Orphan_output_section::allocate_to_segment" identifier : : identifier : : identifier) (argument_list "(Orphan_output_section *this,String_list **param_2,bool *orphan)" ( (binary_expression "Orphan_output_section *this" identifier * identifier) , (binary_expression "String_list **param_2" identifier * (pointer_expression "*param_2" * identifier)) , (binary_expression "bool *orphan" identifier * identifier) ))))) (compound_statement "{\n  Output_section *pOVar1;\n  \n  pOVar1 = this->os_;\n  if ((pOVar1->flags_ & 2) != 0) {\n    *orphan = true;\n    return pOVar1;\n  }\n  return (Output_section *)0x0;\n}" { (declaration "Output_section *pOVar1;" type_identifier (pointer_declarator "*pOVar1" * identifier) ;) (expression_statement "pOVar1 = this->os_;" (assignment_expression "pOVar1 = this->os_" identifier = (field_expression "this->os_" identifier -> field_identifier)) ;) (if_statement "if ((pOVar1->flags_ & 2) != 0) {\n    *orphan = true;\n    return pOVar1;\n  }" if (parenthesized_expression "((pOVar1->flags_ & 2) != 0)" ( (binary_expression "(pOVar1->flags_ & 2) != 0" (parenthesized_expression "(pOVar1->flags_ & 2)" ( (binary_expression "pOVar1->flags_ & 2" (field_expression "pOVar1->flags_" identifier -> field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    *orphan = true;\n    return pOVar1;\n  }" { (expression_statement "*orphan = true;" (assignment_expression "*orphan = true" (pointer_expression "*orphan" * identifier) = true) ;) (return_statement "return pOVar1;" return identifier ;) })) (return_statement "return (Output_section *)0x0;" return (cast_expression "(Output_section *)0x0" ( (type_descriptor "Output_section *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) }))
(translation_unit "int FUN_0032f6e0(int param_1,undefined4 param_2,undefined1 *param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if ((*(byte *)(iVar1 + 0x54) & 2) != 0) {\n    *param_3 = 1;\n    return iVar1;\n  }\n  return 0;\n}\n\n" (function_definition "int FUN_0032f6e0(int param_1,undefined4 param_2,undefined1 *param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if ((*(byte *)(iVar1 + 0x54) & 2) != 0) {\n    *param_3 = 1;\n    return iVar1;\n  }\n  return 0;\n}" primitive_type (function_declarator "FUN_0032f6e0(int param_1,undefined4 param_2,undefined1 *param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined1 *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined1 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if ((*(byte *)(iVar1 + 0x54) & 2) != 0) {\n    *param_3 = 1;\n    return iVar1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(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 "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (if_statement "if ((*(byte *)(iVar1 + 0x54) & 2) != 0) {\n    *param_3 = 1;\n    return iVar1;\n  }" if (parenthesized_expression "((*(byte *)(iVar1 + 0x54) & 2) != 0)" ( (binary_expression "(*(byte *)(iVar1 + 0x54) & 2) != 0" (parenthesized_expression "(*(byte *)(iVar1 + 0x54) & 2)" ( (binary_expression "*(byte *)(iVar1 + 0x54) & 2" (pointer_expression "*(byte *)(iVar1 + 0x54)" * (cast_expression "(byte *)(iVar1 + 0x54)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x54)" ( (binary_expression "iVar1 + 0x54" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    *param_3 = 1;\n    return iVar1;\n  }" { (expression_statement "*param_3 = 1;" (assignment_expression "*param_3 = 1" (pointer_expression "*param_3" * identifier) = number_literal) ;) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (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 (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "int FUN_0032f6e0(int param_1,undefined4 param_2,undefined1 *param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if ((*(byte *)(iVar1 + 0x54) & 2) != 0) {\n    *param_3 = 1;\n    return iVar1;\n  }\n  return 0;\n}" (primitive_type "int") (function_declarator "FUN_0032f6e0(int param_1,undefined4 param_2,undefined1 *param_3)" (identifier "FUN_0032f6e0") (parameter_list "(int param_1,undefined4 param_2,undefined1 *param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined1 *param_3" (type_identifier "undefined1") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if ((*(byte *)(iVar1 + 0x54) & 2) != 0) {\n    *param_3 = 1;\n    return iVar1;\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if ((*(byte *)(iVar1 + 0x54) & 2) != 0) {\n    *param_3 = 1;\n    return iVar1;\n  }" (if "if") (parenthesized_expression "((*(byte *)(iVar1 + 0x54) & 2) != 0)" (( "(") (binary_expression "(*(byte *)(iVar1 + 0x54) & 2) != 0" (parenthesized_expression "(*(byte *)(iVar1 + 0x54) & 2)" (( "(") (binary_expression "*(byte *)(iVar1 + 0x54) & 2" (pointer_expression "*(byte *)(iVar1 + 0x54)" (* "*") (cast_expression "(byte *)(iVar1 + 0x54)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x54)" (( "(") (binary_expression "iVar1 + 0x54" (identifier "iVar1") (+ "+") (number_literal "0x54")) () ")")))) (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *param_3 = 1;\n    return iVar1;\n  }" ({ "{") (expression_statement "*param_3 = 1;" (assignment_expression "*param_3 = 1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "1")) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* DWARF original prototype: Output_section * allocate_to_segment(Orphan_output_section * this,
   String_list * * param_1, bool * orphan) */

type_1 * __thiscall
gold::Orphan_output_section::allocate_to_segment
          (Orphan_output_section *this,String_list **param_2,bool *orphan)

{
  type_1 *pOVar1;
  
  pOVar1 = this->os_;
  if ((pOVar1->flags_ & 2) != 0) {
    *orphan = true;
    return pOVar1;
  }
  return (type_1 *)0x0;
}


(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: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (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 (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (return_statement (identifier)))) (return_statement (number_literal)))))

int MASKED(int param_1,undefined4 param_2,undefined1 *param_3)

{
  int iVar1;
  
  iVar1 = *(int *)(param_1 + 4);
  if ((*(byte *)(iVar1 + 0x54) & 2) != 0) {
    *param_3 = 1;
    return iVar1;
  }
  return 0;
}

