
/* DWARF original prototype: bool do_address_and_file_offset_have_reset_values(Output_section *
   this) */

bool __thiscall
gold::Output_section::do_address_and_file_offset_have_reset_values(Output_section *this)

{
  byte bVar1;
  bool bVar2;
  
  bVar2 = false;
  bVar1 = (this->super_Output_data).field_0x1c;
  if ((bVar1 & 4) == 0) {
    bVar2 = (bool)(bVar1 & 1);
    if ((this->flags_ & 2) == 0) {
      if (bVar2 != false) {
        return (int)(this->super_Output_data).address_ == 0 &&
               *(int *)((int)&(this->super_Output_data).address_ + 4) == 0;
      }
    }
    else {
      bVar2 = (bool)(bVar2 ^ 1);
    }
  }
  return bVar2;
}



uint FUN_000b9770(int param_1)

{
  uint uVar1;
  
  uVar1 = 0;
  if ((*(byte *)(param_1 + 0x1c) & 4) == 0) {
    uVar1 = *(byte *)(param_1 + 0x1c) & 1;
    if ((*(byte *)(param_1 + 0x54) & 2) == 0) {
      if ((char)uVar1 != '\0') {
        uVar1 = *(uint *)(param_1 + 4) | *(uint *)(param_1 + 8);
        return CONCAT31((int3)(uVar1 >> 8),uVar1 == 0);
      }
    }
    else {
      uVar1 = uVar1 ^ 1;
    }
  }
  return uVar1;
}


MOV EDX,dword ptr [ESP + 0x4]
XOR EAX,EAX
MOVZX ECX,byte ptr [EDX + 0x1c]
TEST CL,0x4
JNZ 0x000b97a3
MOV EAX,ECX
AND EAX,0x1
TEST byte ptr [EDX + 0x54],0x2
JNZ 0x000b97a0
TEST AL,AL
JZ 0x000b97a3
MOV EAX,dword ptr [EDX + 0x4]
OR EAX,dword ptr [EDX + 0x8]
SETZ AL
RET
XOR EAX,0x1
RET
(translation_unit "uint FUN_000b9770(int param_1)\n\n{\n  uint uVar1;\n  \n  uVar1 = 0;\n  if ((*(byte *)(param_1 + 0x1c) & 4) == 0) {\n    uVar1 = *(byte *)(param_1 + 0x1c) & 1;\n    if ((*(byte *)(param_1 + 0x54) & 2) == 0) {\n      if ((char)uVar1 != '\0') {\n        uVar1 = *(uint *)(param_1 + 4) | *(uint *)(param_1 + 8);\n        return CONCAT31((int3)(uVar1 >> 8),uVar1 == 0);\n      }\n    }\n    else {\n      uVar1 = uVar1 ^ 1;\n    }\n  }\n  return uVar1;\n}\n\n" (function_definition "uint FUN_000b9770(int param_1)\n\n{\n  uint uVar1;\n  \n  uVar1 = 0;\n  if ((*(byte *)(param_1 + 0x1c) & 4) == 0) {\n    uVar1 = *(byte *)(param_1 + 0x1c) & 1;\n    if ((*(byte *)(param_1 + 0x54) & 2) == 0) {\n      if ((char)uVar1 != '\0') {\n        uVar1 = *(uint *)(param_1 + 4) | *(uint *)(param_1 + 8);\n        return CONCAT31((int3)(uVar1 >> 8),uVar1 == 0);\n      }\n    }\n    else {\n      uVar1 = uVar1 ^ 1;\n    }\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_000b9770(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = 0;\n  if ((*(byte *)(param_1 + 0x1c) & 4) == 0) {\n    uVar1 = *(byte *)(param_1 + 0x1c) & 1;\n    if ((*(byte *)(param_1 + 0x54) & 2) == 0) {\n      if ((char)uVar1 != '\0') {\n        uVar1 = *(uint *)(param_1 + 4) | *(uint *)(param_1 + 8);\n        return CONCAT31((int3)(uVar1 >> 8),uVar1 == 0);\n      }\n    }\n    else {\n      uVar1 = uVar1 ^ 1;\n    }\n  }\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (if_statement "if ((*(byte *)(param_1 + 0x1c) & 4) == 0) {\n    uVar1 = *(byte *)(param_1 + 0x1c) & 1;\n    if ((*(byte *)(param_1 + 0x54) & 2) == 0) {\n      if ((char)uVar1 != '\0') {\n        uVar1 = *(uint *)(param_1 + 4) | *(uint *)(param_1 + 8);\n        return CONCAT31((int3)(uVar1 >> 8),uVar1 == 0);\n      }\n    }\n    else {\n      uVar1 = uVar1 ^ 1;\n    }\n  }" if (parenthesized_expression "((*(byte *)(param_1 + 0x1c) & 4) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0x1c) & 4) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x1c) & 4)" ( (binary_expression "*(byte *)(param_1 + 0x1c) & 4" (pointer_expression "*(byte *)(param_1 + 0x1c)" * (cast_expression "(byte *)(param_1 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    uVar1 = *(byte *)(param_1 + 0x1c) & 1;\n    if ((*(byte *)(param_1 + 0x54) & 2) == 0) {\n      if ((char)uVar1 != '\0') {\n        uVar1 = *(uint *)(param_1 + 4) | *(uint *)(param_1 + 8);\n        return CONCAT31((int3)(uVar1 >> 8),uVar1 == 0);\n      }\n    }\n    else {\n      uVar1 = uVar1 ^ 1;\n    }\n  }" { (expression_statement "uVar1 = *(byte *)(param_1 + 0x1c) & 1;" (assignment_expression "uVar1 = *(byte *)(param_1 + 0x1c) & 1" identifier = (binary_expression "*(byte *)(param_1 + 0x1c) & 1" (pointer_expression "*(byte *)(param_1 + 0x1c)" * (cast_expression "(byte *)(param_1 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) & number_literal)) ;) (if_statement "if ((*(byte *)(param_1 + 0x54) & 2) == 0) {\n      if ((char)uVar1 != '\0') {\n        uVar1 = *(uint *)(param_1 + 4) | *(uint *)(param_1 + 8);\n        return CONCAT31((int3)(uVar1 >> 8),uVar1 == 0);\n      }\n    }\n    else {\n      uVar1 = uVar1 ^ 1;\n    }" if (parenthesized_expression "((*(byte *)(param_1 + 0x54) & 2) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0x54) & 2) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x54) & 2)" ( (binary_expression "*(byte *)(param_1 + 0x54) & 2" (pointer_expression "*(byte *)(param_1 + 0x54)" * (cast_expression "(byte *)(param_1 + 0x54)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      if ((char)uVar1 != '\0') {\n        uVar1 = *(uint *)(param_1 + 4) | *(uint *)(param_1 + 8);\n        return CONCAT31((int3)(uVar1 >> 8),uVar1 == 0);\n      }\n    }" { (if_statement "if ((char)uVar1 != '\0') {\n        uVar1 = *(uint *)(param_1 + 4) | *(uint *)(param_1 + 8);\n        return CONCAT31((int3)(uVar1 >> 8),uVar1 == 0);\n      }" if (parenthesized_expression "((char)uVar1 != '\0')" ( (binary_expression "(char)uVar1 != '\0'" (cast_expression "(char)uVar1" ( (type_descriptor "char" primitive_type) ) identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        uVar1 = *(uint *)(param_1 + 4) | *(uint *)(param_1 + 8);\n        return CONCAT31((int3)(uVar1 >> 8),uVar1 == 0);\n      }" { (expression_statement "uVar1 = *(uint *)(param_1 + 4) | *(uint *)(param_1 + 8);" (assignment_expression "uVar1 = *(uint *)(param_1 + 4) | *(uint *)(param_1 + 8)" identifier = (binary_expression "*(uint *)(param_1 + 4) | *(uint *)(param_1 + 8)" (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) | (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))))) ;) (return_statement "return CONCAT31((int3)(uVar1 >> 8),uVar1 == 0);" return (call_expression "CONCAT31((int3)(uVar1 >> 8),uVar1 == 0)" identifier (argument_list "((int3)(uVar1 >> 8),uVar1 == 0)" ( (call_expression "(int3)(uVar1 >> 8)" (parenthesized_expression "(int3)" ( identifier )) (argument_list "(uVar1 >> 8)" ( (binary_expression "uVar1 >> 8" identifier >> number_literal) ))) , (binary_expression "uVar1 == 0" identifier == number_literal) ))) ;) })) }) (else_clause "else {\n      uVar1 = uVar1 ^ 1;\n    }" else (compound_statement "{\n      uVar1 = uVar1 ^ 1;\n    }" { (expression_statement "uVar1 = uVar1 ^ 1;" (assignment_expression "uVar1 = uVar1 ^ 1" identifier = (binary_expression "uVar1 ^ 1" identifier ^ number_literal)) ;) }))) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "/* DWARF original prototype: bool do_address_and_file_offset_have_reset_values(Output_section *\n   this) */\n\nbool __thiscall\ngold::Output_section::do_address_and_file_offset_have_reset_values(Output_section *this)\n\n{\n  byte bVar1;\n  bool bVar2;\n  \n  bVar2 = false;\n  bVar1 = (this->super_Output_data).field_0x1c;\n  if ((bVar1 & 4) == 0) {\n    bVar2 = (bool)(bVar1 & 1);\n    if ((this->flags_ & 2) == 0) {\n      if (bVar2 != false) {\n        return (int)(this->super_Output_data).address_ == 0 &&\n               *(int *)((int)&(this->super_Output_data).address_ + 4) == 0;\n      }\n    }\n    else {\n      bVar2 = (bool)(bVar2 ^ 1);\n    }\n  }\n  return bVar2;\n}\n\n" comment (function_definition "bool __thiscall\ngold::Output_section::do_address_and_file_offset_have_reset_values(Output_section *this)\n\n{\n  byte bVar1;\n  bool bVar2;\n  \n  bVar2 = false;\n  bVar1 = (this->super_Output_data).field_0x1c;\n  if ((bVar1 & 4) == 0) {\n    bVar2 = (bool)(bVar1 & 1);\n    if ((this->flags_ & 2) == 0) {\n      if (bVar2 != false) {\n        return (int)(this->super_Output_data).address_ == 0 &&\n               *(int *)((int)&(this->super_Output_data).address_ + 4) == 0;\n      }\n    }\n    else {\n      bVar2 = (bool)(bVar2 ^ 1);\n    }\n  }\n  return bVar2;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Output_section::" identifier : : identifier : :) (function_declarator "do_address_and_file_offset_have_reset_values(Output_section *this)" identifier (parameter_list "(Output_section *this)" ( (parameter_declaration "Output_section *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  bool bVar2;\n  \n  bVar2 = false;\n  bVar1 = (this->super_Output_data).field_0x1c;\n  if ((bVar1 & 4) == 0) {\n    bVar2 = (bool)(bVar1 & 1);\n    if ((this->flags_ & 2) == 0) {\n      if (bVar2 != false) {\n        return (int)(this->super_Output_data).address_ == 0 &&\n               *(int *)((int)&(this->super_Output_data).address_ + 4) == 0;\n      }\n    }\n    else {\n      bVar2 = (bool)(bVar2 ^ 1);\n    }\n  }\n  return bVar2;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "bVar1 = (this->super_Output_data).field_0x1c;" (assignment_expression "bVar1 = (this->super_Output_data).field_0x1c" identifier = (field_expression "(this->super_Output_data).field_0x1c" (parenthesized_expression "(this->super_Output_data)" ( (field_expression "this->super_Output_data" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if ((bVar1 & 4) == 0) {\n    bVar2 = (bool)(bVar1 & 1);\n    if ((this->flags_ & 2) == 0) {\n      if (bVar2 != false) {\n        return (int)(this->super_Output_data).address_ == 0 &&\n               *(int *)((int)&(this->super_Output_data).address_ + 4) == 0;\n      }\n    }\n    else {\n      bVar2 = (bool)(bVar2 ^ 1);\n    }\n  }" if (parenthesized_expression "((bVar1 & 4) == 0)" ( (binary_expression "(bVar1 & 4) == 0" (parenthesized_expression "(bVar1 & 4)" ( (binary_expression "bVar1 & 4" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    bVar2 = (bool)(bVar1 & 1);\n    if ((this->flags_ & 2) == 0) {\n      if (bVar2 != false) {\n        return (int)(this->super_Output_data).address_ == 0 &&\n               *(int *)((int)&(this->super_Output_data).address_ + 4) == 0;\n      }\n    }\n    else {\n      bVar2 = (bool)(bVar2 ^ 1);\n    }\n  }" { (expression_statement "bVar2 = (bool)(bVar1 & 1);" (assignment_expression "bVar2 = (bool)(bVar1 & 1)" identifier = (cast_expression "(bool)(bVar1 & 1)" ( (type_descriptor "bool" primitive_type) ) (parenthesized_expression "(bVar1 & 1)" ( (binary_expression "bVar1 & 1" identifier & number_literal) )))) ;) (if_statement "if ((this->flags_ & 2) == 0) {\n      if (bVar2 != false) {\n        return (int)(this->super_Output_data).address_ == 0 &&\n               *(int *)((int)&(this->super_Output_data).address_ + 4) == 0;\n      }\n    }\n    else {\n      bVar2 = (bool)(bVar2 ^ 1);\n    }" if (parenthesized_expression "((this->flags_ & 2) == 0)" ( (binary_expression "(this->flags_ & 2) == 0" (parenthesized_expression "(this->flags_ & 2)" ( (binary_expression "this->flags_ & 2" (field_expression "this->flags_" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n      if (bVar2 != false) {\n        return (int)(this->super_Output_data).address_ == 0 &&\n               *(int *)((int)&(this->super_Output_data).address_ + 4) == 0;\n      }\n    }" { (if_statement "if (bVar2 != false) {\n        return (int)(this->super_Output_data).address_ == 0 &&\n               *(int *)((int)&(this->super_Output_data).address_ + 4) == 0;\n      }" if (parenthesized_expression "(bVar2 != false)" ( (binary_expression "bVar2 != false" identifier != false) )) (compound_statement "{\n        return (int)(this->super_Output_data).address_ == 0 &&\n               *(int *)((int)&(this->super_Output_data).address_ + 4) == 0;\n      }" { (return_statement "return (int)(this->super_Output_data).address_ == 0 &&\n               *(int *)((int)&(this->super_Output_data).address_ + 4) == 0;" return (binary_expression "(int)(this->super_Output_data).address_ == 0 &&\n               *(int *)((int)&(this->super_Output_data).address_ + 4) == 0" (binary_expression "(int)(this->super_Output_data).address_ == 0" (cast_expression "(int)(this->super_Output_data).address_" ( (type_descriptor "int" primitive_type) ) (field_expression "(this->super_Output_data).address_" (parenthesized_expression "(this->super_Output_data)" ( (field_expression "this->super_Output_data" identifier -> field_identifier) )) . field_identifier)) == number_literal) && (binary_expression "*(int *)((int)&(this->super_Output_data).address_ + 4) == 0" (pointer_expression "*(int *)((int)&(this->super_Output_data).address_ + 4)" * (cast_expression "(int *)((int)&(this->super_Output_data).address_ + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&(this->super_Output_data).address_ + 4)" ( (binary_expression "(int)&(this->super_Output_data).address_ + 4" (cast_expression "(int)&(this->super_Output_data).address_" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&(this->super_Output_data).address_" & (field_expression "(this->super_Output_data).address_" (parenthesized_expression "(this->super_Output_data)" ( (field_expression "this->super_Output_data" identifier -> field_identifier) )) . field_identifier))) + number_literal) )))) == number_literal)) ;) })) }) (else_clause "else {\n      bVar2 = (bool)(bVar2 ^ 1);\n    }" else (compound_statement "{\n      bVar2 = (bool)(bVar2 ^ 1);\n    }" { (expression_statement "bVar2 = (bool)(bVar2 ^ 1);" (assignment_expression "bVar2 = (bool)(bVar2 ^ 1)" identifier = (cast_expression "(bool)(bVar2 ^ 1)" ( (type_descriptor "bool" primitive_type) ) (parenthesized_expression "(bVar2 ^ 1)" ( (binary_expression "bVar2 ^ 1" identifier ^ number_literal) )))) ;) }))) })) (return_statement "return bVar2;" return identifier ;) })))
(translation_unit "uint FUN_000b9770(int param_1)\n\n{\n  uint uVar1;\n  \n  uVar1 = 0;\n  if ((*(byte *)(param_1 + 0x1c) & 4) == 0) {\n    uVar1 = *(byte *)(param_1 + 0x1c) & 1;\n    if ((*(byte *)(param_1 + 0x54) & 2) == 0) {\n      if ((char)uVar1 != '\0') {\n        uVar1 = *(uint *)(param_1 + 4) | *(uint *)(param_1 + 8);\n        return CONCAT31((int3)(uVar1 >> 8),uVar1 == 0);\n      }\n    }\n    else {\n      uVar1 = uVar1 ^ 1;\n    }\n  }\n  return uVar1;\n}\n\n" (function_definition "uint FUN_000b9770(int param_1)\n\n{\n  uint uVar1;\n  \n  uVar1 = 0;\n  if ((*(byte *)(param_1 + 0x1c) & 4) == 0) {\n    uVar1 = *(byte *)(param_1 + 0x1c) & 1;\n    if ((*(byte *)(param_1 + 0x54) & 2) == 0) {\n      if ((char)uVar1 != '\0') {\n        uVar1 = *(uint *)(param_1 + 4) | *(uint *)(param_1 + 8);\n        return CONCAT31((int3)(uVar1 >> 8),uVar1 == 0);\n      }\n    }\n    else {\n      uVar1 = uVar1 ^ 1;\n    }\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_000b9770(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = 0;\n  if ((*(byte *)(param_1 + 0x1c) & 4) == 0) {\n    uVar1 = *(byte *)(param_1 + 0x1c) & 1;\n    if ((*(byte *)(param_1 + 0x54) & 2) == 0) {\n      if ((char)uVar1 != '\0') {\n        uVar1 = *(uint *)(param_1 + 4) | *(uint *)(param_1 + 8);\n        return CONCAT31((int3)(uVar1 >> 8),uVar1 == 0);\n      }\n    }\n    else {\n      uVar1 = uVar1 ^ 1;\n    }\n  }\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (if_statement "if ((*(byte *)(param_1 + 0x1c) & 4) == 0) {\n    uVar1 = *(byte *)(param_1 + 0x1c) & 1;\n    if ((*(byte *)(param_1 + 0x54) & 2) == 0) {\n      if ((char)uVar1 != '\0') {\n        uVar1 = *(uint *)(param_1 + 4) | *(uint *)(param_1 + 8);\n        return CONCAT31((int3)(uVar1 >> 8),uVar1 == 0);\n      }\n    }\n    else {\n      uVar1 = uVar1 ^ 1;\n    }\n  }" if (parenthesized_expression "((*(byte *)(param_1 + 0x1c) & 4) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0x1c) & 4) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x1c) & 4)" ( (binary_expression "*(byte *)(param_1 + 0x1c) & 4" (pointer_expression "*(byte *)(param_1 + 0x1c)" * (cast_expression "(byte *)(param_1 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    uVar1 = *(byte *)(param_1 + 0x1c) & 1;\n    if ((*(byte *)(param_1 + 0x54) & 2) == 0) {\n      if ((char)uVar1 != '\0') {\n        uVar1 = *(uint *)(param_1 + 4) | *(uint *)(param_1 + 8);\n        return CONCAT31((int3)(uVar1 >> 8),uVar1 == 0);\n      }\n    }\n    else {\n      uVar1 = uVar1 ^ 1;\n    }\n  }" { (expression_statement "uVar1 = *(byte *)(param_1 + 0x1c) & 1;" (assignment_expression "uVar1 = *(byte *)(param_1 + 0x1c) & 1" identifier = (binary_expression "*(byte *)(param_1 + 0x1c) & 1" (pointer_expression "*(byte *)(param_1 + 0x1c)" * (cast_expression "(byte *)(param_1 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) & number_literal)) ;) (if_statement "if ((*(byte *)(param_1 + 0x54) & 2) == 0) {\n      if ((char)uVar1 != '\0') {\n        uVar1 = *(uint *)(param_1 + 4) | *(uint *)(param_1 + 8);\n        return CONCAT31((int3)(uVar1 >> 8),uVar1 == 0);\n      }\n    }\n    else {\n      uVar1 = uVar1 ^ 1;\n    }" if (parenthesized_expression "((*(byte *)(param_1 + 0x54) & 2) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0x54) & 2) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x54) & 2)" ( (binary_expression "*(byte *)(param_1 + 0x54) & 2" (pointer_expression "*(byte *)(param_1 + 0x54)" * (cast_expression "(byte *)(param_1 + 0x54)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      if ((char)uVar1 != '\0') {\n        uVar1 = *(uint *)(param_1 + 4) | *(uint *)(param_1 + 8);\n        return CONCAT31((int3)(uVar1 >> 8),uVar1 == 0);\n      }\n    }" { (if_statement "if ((char)uVar1 != '\0') {\n        uVar1 = *(uint *)(param_1 + 4) | *(uint *)(param_1 + 8);\n        return CONCAT31((int3)(uVar1 >> 8),uVar1 == 0);\n      }" if (parenthesized_expression "((char)uVar1 != '\0')" ( (binary_expression "(char)uVar1 != '\0'" (cast_expression "(char)uVar1" ( (type_descriptor "char" primitive_type) ) identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        uVar1 = *(uint *)(param_1 + 4) | *(uint *)(param_1 + 8);\n        return CONCAT31((int3)(uVar1 >> 8),uVar1 == 0);\n      }" { (expression_statement "uVar1 = *(uint *)(param_1 + 4) | *(uint *)(param_1 + 8);" (assignment_expression "uVar1 = *(uint *)(param_1 + 4) | *(uint *)(param_1 + 8)" identifier = (binary_expression "*(uint *)(param_1 + 4) | *(uint *)(param_1 + 8)" (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) | (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))))) ;) (return_statement "return CONCAT31((int3)(uVar1 >> 8),uVar1 == 0);" return (call_expression "CONCAT31((int3)(uVar1 >> 8),uVar1 == 0)" identifier (argument_list "((int3)(uVar1 >> 8),uVar1 == 0)" ( (call_expression "(int3)(uVar1 >> 8)" (parenthesized_expression "(int3)" ( identifier )) (argument_list "(uVar1 >> 8)" ( (binary_expression "uVar1 >> 8" identifier >> number_literal) ))) , (binary_expression "uVar1 == 0" identifier == number_literal) ))) ;) })) }) (else_clause "else {\n      uVar1 = uVar1 ^ 1;\n    }" else (compound_statement "{\n      uVar1 = uVar1 ^ 1;\n    }" { (expression_statement "uVar1 = uVar1 ^ 1;" (assignment_expression "uVar1 = uVar1 ^ 1" identifier = (binary_expression "uVar1 ^ 1" identifier ^ number_literal)) ;) }))) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_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 IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (return_statement return (call_expression IDENT (argument_list ( (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> LIT) ))) , (binary_expression IDENT == LIT) ))) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT ^ LIT)) ;) }))) })) (return_statement return IDENT ;) })))
(function_definition "uint FUN_000b9770(int param_1)\n\n{\n  uint uVar1;\n  \n  uVar1 = 0;\n  if ((*(byte *)(param_1 + 0x1c) & 4) == 0) {\n    uVar1 = *(byte *)(param_1 + 0x1c) & 1;\n    if ((*(byte *)(param_1 + 0x54) & 2) == 0) {\n      if ((char)uVar1 != '\0') {\n        uVar1 = *(uint *)(param_1 + 4) | *(uint *)(param_1 + 8);\n        return CONCAT31((int3)(uVar1 >> 8),uVar1 == 0);\n      }\n    }\n    else {\n      uVar1 = uVar1 ^ 1;\n    }\n  }\n  return uVar1;\n}" (type_identifier "uint") (function_declarator "FUN_000b9770(int param_1)" (identifier "FUN_000b9770") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = 0;\n  if ((*(byte *)(param_1 + 0x1c) & 4) == 0) {\n    uVar1 = *(byte *)(param_1 + 0x1c) & 1;\n    if ((*(byte *)(param_1 + 0x54) & 2) == 0) {\n      if ((char)uVar1 != '\0') {\n        uVar1 = *(uint *)(param_1 + 4) | *(uint *)(param_1 + 8);\n        return CONCAT31((int3)(uVar1 >> 8),uVar1 == 0);\n      }\n    }\n    else {\n      uVar1 = uVar1 ^ 1;\n    }\n  }\n  return uVar1;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (if_statement "if ((*(byte *)(param_1 + 0x1c) & 4) == 0) {\n    uVar1 = *(byte *)(param_1 + 0x1c) & 1;\n    if ((*(byte *)(param_1 + 0x54) & 2) == 0) {\n      if ((char)uVar1 != '\0') {\n        uVar1 = *(uint *)(param_1 + 4) | *(uint *)(param_1 + 8);\n        return CONCAT31((int3)(uVar1 >> 8),uVar1 == 0);\n      }\n    }\n    else {\n      uVar1 = uVar1 ^ 1;\n    }\n  }" (if "if") (parenthesized_expression "((*(byte *)(param_1 + 0x1c) & 4) == 0)" (( "(") (binary_expression "(*(byte *)(param_1 + 0x1c) & 4) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x1c) & 4)" (( "(") (binary_expression "*(byte *)(param_1 + 0x1c) & 4" (pointer_expression "*(byte *)(param_1 + 0x1c)" (* "*") (cast_expression "(byte *)(param_1 + 0x1c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = *(byte *)(param_1 + 0x1c) & 1;\n    if ((*(byte *)(param_1 + 0x54) & 2) == 0) {\n      if ((char)uVar1 != '\0') {\n        uVar1 = *(uint *)(param_1 + 4) | *(uint *)(param_1 + 8);\n        return CONCAT31((int3)(uVar1 >> 8),uVar1 == 0);\n      }\n    }\n    else {\n      uVar1 = uVar1 ^ 1;\n    }\n  }" ({ "{") (expression_statement "uVar1 = *(byte *)(param_1 + 0x1c) & 1;" (assignment_expression "uVar1 = *(byte *)(param_1 + 0x1c) & 1" (identifier "uVar1") (= "=") (binary_expression "*(byte *)(param_1 + 0x1c) & 1" (pointer_expression "*(byte *)(param_1 + 0x1c)" (* "*") (cast_expression "(byte *)(param_1 + 0x1c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (& "&") (number_literal "1"))) (; ";")) (if_statement "if ((*(byte *)(param_1 + 0x54) & 2) == 0) {\n      if ((char)uVar1 != '\0') {\n        uVar1 = *(uint *)(param_1 + 4) | *(uint *)(param_1 + 8);\n        return CONCAT31((int3)(uVar1 >> 8),uVar1 == 0);\n      }\n    }\n    else {\n      uVar1 = uVar1 ^ 1;\n    }" (if "if") (parenthesized_expression "((*(byte *)(param_1 + 0x54) & 2) == 0)" (( "(") (binary_expression "(*(byte *)(param_1 + 0x54) & 2) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x54) & 2)" (( "(") (binary_expression "*(byte *)(param_1 + 0x54) & 2" (pointer_expression "*(byte *)(param_1 + 0x54)" (* "*") (cast_expression "(byte *)(param_1 + 0x54)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x54)" (( "(") (binary_expression "param_1 + 0x54" (identifier "param_1") (+ "+") (number_literal "0x54")) () ")")))) (& "&") (number_literal "2")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if ((char)uVar1 != '\0') {\n        uVar1 = *(uint *)(param_1 + 4) | *(uint *)(param_1 + 8);\n        return CONCAT31((int3)(uVar1 >> 8),uVar1 == 0);\n      }\n    }" ({ "{") (if_statement "if ((char)uVar1 != '\0') {\n        uVar1 = *(uint *)(param_1 + 4) | *(uint *)(param_1 + 8);\n        return CONCAT31((int3)(uVar1 >> 8),uVar1 == 0);\n      }" (if "if") (parenthesized_expression "((char)uVar1 != '\0')" (( "(") (binary_expression "(char)uVar1 != '\0'" (cast_expression "(char)uVar1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar1")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        uVar1 = *(uint *)(param_1 + 4) | *(uint *)(param_1 + 8);\n        return CONCAT31((int3)(uVar1 >> 8),uVar1 == 0);\n      }" ({ "{") (expression_statement "uVar1 = *(uint *)(param_1 + 4) | *(uint *)(param_1 + 8);" (assignment_expression "uVar1 = *(uint *)(param_1 + 4) | *(uint *)(param_1 + 8)" (identifier "uVar1") (= "=") (binary_expression "*(uint *)(param_1 + 4) | *(uint *)(param_1 + 8)" (pointer_expression "*(uint *)(param_1 + 4)" (* "*") (cast_expression "(uint *)(param_1 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (| "|") (pointer_expression "*(uint *)(param_1 + 8)" (* "*") (cast_expression "(uint *)(param_1 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))))) (; ";")) (return_statement "return CONCAT31((int3)(uVar1 >> 8),uVar1 == 0);" (return "return") (call_expression "CONCAT31((int3)(uVar1 >> 8),uVar1 == 0)" (identifier "CONCAT31") (argument_list "((int3)(uVar1 >> 8),uVar1 == 0)" (( "(") (call_expression "(int3)(uVar1 >> 8)" (parenthesized_expression "(int3)" (( "(") (identifier "int3") () ")")) (argument_list "(uVar1 >> 8)" (( "(") (binary_expression "uVar1 >> 8" (identifier "uVar1") (>> ">>") (number_literal "8")) () ")"))) (, ",") (binary_expression "uVar1 == 0" (identifier "uVar1") (== "==") (number_literal "0")) () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      uVar1 = uVar1 ^ 1;\n    }" (else "else") (compound_statement "{\n      uVar1 = uVar1 ^ 1;\n    }" ({ "{") (expression_statement "uVar1 = uVar1 ^ 1;" (assignment_expression "uVar1 = uVar1 ^ 1" (identifier "uVar1") (= "=") (binary_expression "uVar1 ^ 1" (identifier "uVar1") (^ "^") (number_literal "1"))) (; ";")) (} "}")))) (} "}"))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

/* DWARF original prototype: bool do_address_and_file_offset_have_reset_values(Output_section *
   this) */

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

{
  type_2 var_1;
  bool var_2;
  
  var_2 = false;
  var_1 = (this->super_Output_data).field_0x1c;
  if ((var_1 & 4) == 0) {
    var_2 = (bool)(var_1 & 1);
    if ((this->flags_ & 2) == 0) {
      if (var_2 != false) {
        return (int)(this->super_Output_data).address_ == 0 &&
               *(int *)((int)&(this->super_Output_data).address_ + 4) == 0;
      }
    }
    else {
      var_2 = (bool)(var_2 ^ 1);
    }
  }
  return var_2;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_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: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (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 (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (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)))))))) (return_statement (call_expression function: (identifier) arguments: (argument_list (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))) (binary_expression left: (identifier) right: (number_literal)))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))))) (return_statement (identifier)))))

uint MASKED(int param_1)

{
  uint uVar1;
  
  uVar1 = 0;
  if ((*(byte *)(param_1 + 0x1c) & 4) == 0) {
    uVar1 = *(byte *)(param_1 + 0x1c) & 1;
    if ((*(byte *)(param_1 + 0x54) & 2) == 0) {
      if ((char)uVar1 != '\0') {
        uVar1 = *(uint *)(param_1 + 4) | *(uint *)(param_1 + 8);
        return CONCAT31((int3)(uVar1 >> 8),uVar1 == 0);
      }
    }
    else {
      uVar1 = uVar1 ^ 1;
    }
  }
  return uVar1;
}

