
/* DWARF original prototype: Output_section * allocate_to_segment(Output_section_definition * this,
   String_list * * phdrs_list, bool * orphan) */

Output_section * __thiscall
gold::Output_section_definition::allocate_to_segment
          (Output_section_definition *this,String_list **phdrs_list,bool *orphan)

{
  Output_section *pOVar1;
  
  if (this->phdrs_ != (String_list *)0x0) {
    *phdrs_list = this->phdrs_;
  }
  pOVar1 = this->output_section_;
  if (pOVar1 != (Output_section *)0x0) {
    if ((pOVar1->flags_ & 2) != 0) {
      *orphan = false;
      return pOVar1;
    }
    pOVar1 = (Output_section *)0x0;
  }
  return pOVar1;
}



int FUN_00131370(int param_1,int *param_2,undefined1 *param_3)

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


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

/* DWARF original prototype: Output_section * allocate_to_segment(Output_section_definition * this,
   String_list * * phdrs_list, bool * orphan) */

type_1 * __thiscall
gold::Output_section_definition::allocate_to_segment
          (Output_section_definition *this,type_2 **phdrs_list,bool *orphan)

{
  type_1 *var_1;
  
  if (this->phdrs_ != (type_2 *)0x0) {
    *phdrs_list = this->phdrs_;
  }
  var_1 = this->output_section_;
  if (var_1 != (type_1 *)0x0) {
    if ((var_1->flags_ & 2) != 0) {
      *orphan = false;
      return var_1;
    }
    var_1 = (type_1 *)0x0;
  }
  return var_1;
}


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

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

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

