
/* WARNING: Enum "DT": Some values do not have unique names */
/* WARNING: Enum "ELFOSABI": Some values do not have unique names */
/* DWARF original prototype: bool check_eh_frame_flags(Sized_relobj_file<64,_false> * this,
   Shdr<64,_false> * shdr) */

bool __thiscall
gold::Sized_relobj_file<64,_false>::check_eh_frame_flags
          (Sized_relobj_file<64,_false> *this,Shdr<64,_false> *shdr)

{
  uint uVar1;
  
  uVar1 = shdr->p_->sh_type;
  if (uVar1 != 1) {
    if (parameters->target_ == (Target *)0x0) {
                    /* WARNING: Subroutine does not return */
      do_gold_unreachable("../../gold/parameters.h",0x69,"target");
    }
    if (uVar1 != parameters->target_->pti_->unwind_section_type) {
      return false;
    }
  }
  return (bool)((byte)(shdr->p_->sh_flags >> 1) & 1);
}



uint FUN_00230330(undefined8 param_1,long *param_2)

{
  int iVar1;
  
  iVar1 = *(int *)(*param_2 + 4);
  if (iVar1 != 1) {
    if (*(long *)(PTR_DAT_004ba7c8 + 0x18) == 0) {
                    /* WARNING: Subroutine does not return */
      FUN_001e9890("../../gold/parameters.h",0x69,"target");
    }
    if (iVar1 != *(int *)(*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8) + 0x7c)) {
      return 0;
    }
  }
  return (uint)(*(ulong *)(*param_2 + 8) >> 1) & 1;
}


MOV RCX,qword ptr [RSI]
MOV EDX,dword ptr [RCX + 0x4]
CMP EDX,0x1
JZ 0x00230360
MOV RAX,qword ptr [0x004ba7c8]
MOV RAX,qword ptr [RAX + 0x18]
TEST RAX,RAX
JZ 0x0023036b
MOV RSI,qword ptr [RAX + 0x8]
XOR EAX,EAX
CMP EDX,dword ptr [RSI + 0x7c]
JZ 0x00230360
RET
MOV RAX,qword ptr [RCX + 0x8]
SHR RAX,0x1
AND EAX,0x1
RET
PUSH RAX
LEA RDX,[0x3e8753]
MOV ESI,0x69
LEA RDI,[0x3c9279]
CALL 0x001e9890
(translation_unit "uint FUN_00230330(undefined8 param_1,long *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(*param_2 + 4);\n  if (iVar1 != 1) {\n    if (*(long *)(PTR_DAT_004ba7c8 + 0x18) == 0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_001e9890("../../gold/parameters.h",0x69,"target");\n    }\n    if (iVar1 != *(int *)(*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8) + 0x7c)) {\n      return 0;\n    }\n  }\n  return (uint)(*(ulong *)(*param_2 + 8) >> 1) & 1;\n}\n\n" (function_definition "uint FUN_00230330(undefined8 param_1,long *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(*param_2 + 4);\n  if (iVar1 != 1) {\n    if (*(long *)(PTR_DAT_004ba7c8 + 0x18) == 0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_001e9890("../../gold/parameters.h",0x69,"target");\n    }\n    if (iVar1 != *(int *)(*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8) + 0x7c)) {\n      return 0;\n    }\n  }\n  return (uint)(*(ulong *)(*param_2 + 8) >> 1) & 1;\n}" type_identifier (function_declarator "FUN_00230330(undefined8 param_1,long *param_2)" identifier (parameter_list "(undefined8 param_1,long *param_2)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)(*param_2 + 4);\n  if (iVar1 != 1) {\n    if (*(long *)(PTR_DAT_004ba7c8 + 0x18) == 0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_001e9890("../../gold/parameters.h",0x69,"target");\n    }\n    if (iVar1 != *(int *)(*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8) + 0x7c)) {\n      return 0;\n    }\n  }\n  return (uint)(*(ulong *)(*param_2 + 8) >> 1) & 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(*param_2 + 4);" (assignment_expression "iVar1 = *(int *)(*param_2 + 4)" identifier = (pointer_expression "*(int *)(*param_2 + 4)" * (cast_expression "(int *)(*param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + 4)" ( (binary_expression "*param_2 + 4" (pointer_expression "*param_2" * identifier) + number_literal) ))))) ;) (if_statement "if (iVar1 != 1) {\n    if (*(long *)(PTR_DAT_004ba7c8 + 0x18) == 0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_001e9890("../../gold/parameters.h",0x69,"target");\n    }\n    if (iVar1 != *(int *)(*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8) + 0x7c)) {\n      return 0;\n    }\n  }" if (parenthesized_expression "(iVar1 != 1)" ( (binary_expression "iVar1 != 1" identifier != number_literal) )) (compound_statement "{\n    if (*(long *)(PTR_DAT_004ba7c8 + 0x18) == 0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_001e9890("../../gold/parameters.h",0x69,"target");\n    }\n    if (iVar1 != *(int *)(*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8) + 0x7c)) {\n      return 0;\n    }\n  }" { (if_statement "if (*(long *)(PTR_DAT_004ba7c8 + 0x18) == 0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_001e9890("../../gold/parameters.h",0x69,"target");\n    }" if (parenthesized_expression "(*(long *)(PTR_DAT_004ba7c8 + 0x18) == 0)" ( (binary_expression "*(long *)(PTR_DAT_004ba7c8 + 0x18) == 0" (pointer_expression "*(long *)(PTR_DAT_004ba7c8 + 0x18)" * (cast_expression "(long *)(PTR_DAT_004ba7c8 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_004ba7c8 + 0x18)" ( (binary_expression "PTR_DAT_004ba7c8 + 0x18" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      FUN_001e9890("../../gold/parameters.h",0x69,"target");\n    }" { comment (expression_statement "FUN_001e9890("../../gold/parameters.h",0x69,"target");" (call_expression "FUN_001e9890("../../gold/parameters.h",0x69,"target")" identifier (argument_list "("../../gold/parameters.h",0x69,"target")" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""target"" " string_content ") ))) ;) })) (if_statement "if (iVar1 != *(int *)(*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8) + 0x7c)) {\n      return 0;\n    }" if (parenthesized_expression "(iVar1 != *(int *)(*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8) + 0x7c))" ( (binary_expression "iVar1 != *(int *)(*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8) + 0x7c)" identifier != (pointer_expression "*(int *)(*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8) + 0x7c)" * (cast_expression "(int *)(*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8) + 0x7c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8) + 0x7c)" ( (binary_expression "*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8) + 0x7c" (pointer_expression "*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8)" * (cast_expression "(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8)" ( (binary_expression "*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8" (pointer_expression "*(long *)(PTR_DAT_004ba7c8 + 0x18)" * (cast_expression "(long *)(PTR_DAT_004ba7c8 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_004ba7c8 + 0x18)" ( (binary_expression "PTR_DAT_004ba7c8 + 0x18" identifier + number_literal) )))) + number_literal) )))) + number_literal) ))))) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) })) (return_statement "return (uint)(*(ulong *)(*param_2 + 8) >> 1) & 1;" return (binary_expression "(uint)(*(ulong *)(*param_2 + 8) >> 1) & 1" (call_expression "(uint)(*(ulong *)(*param_2 + 8) >> 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(ulong *)(*param_2 + 8) >> 1)" ( (binary_expression "*(ulong *)(*param_2 + 8) >> 1" (pointer_expression "*(ulong *)(*param_2 + 8)" * (cast_expression "(ulong *)(*param_2 + 8)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + 8)" ( (binary_expression "*param_2 + 8" (pointer_expression "*param_2" * identifier) + number_literal) )))) >> number_literal) ))) & number_literal) ;) })))
(translation_unit "/* WARNING: Enum "DT": Some values do not have unique names */\n/* WARNING: Enum "ELFOSABI": Some values do not have unique names */\n/* DWARF original prototype: bool check_eh_frame_flags(Sized_relobj_file<64,_false> * this,\n   Shdr<64,_false> * shdr) */\n\nbool __thiscall\ngold::Sized_relobj_file<64,_false>::check_eh_frame_flags\n          (Sized_relobj_file<64,_false> *this,Shdr<64,_false> *shdr)\n\n{\n  uint uVar1;\n  \n  uVar1 = shdr->p_->sh_type;\n  if (uVar1 != 1) {\n    if (parameters->target_ == (Target *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/parameters.h",0x69,"target");\n    }\n    if (uVar1 != parameters->target_->pti_->unwind_section_type) {\n      return false;\n    }\n  }\n  return (bool)((byte)(shdr->p_->sh_flags >> 1) & 1);\n}\n\n" comment comment comment (declaration "bool __thiscall\ngold::Sized_relobj_file<64,_false>::check_eh_frame_flags\n          (Sized_relobj_file<64,_false> *this,Shdr<64,_false> *shdr)\n\n{\n  uint uVar1;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::" identifier : :) identifier (ERROR "<64" < number_literal) , (ERROR "_false>::check_eh_frame_flags\n          (Sized_relobj_file<64,_false> *this,Shdr<64,_false> *shdr)\n\n{\n  uint" identifier > : : (function_declarator "check_eh_frame_flags\n          (Sized_relobj_file<64,_false> *this,Shdr<64,_false> *shdr)" identifier (parameter_list "(Sized_relobj_file<64,_false> *this,Shdr<64,_false> *shdr)" ( (parameter_declaration "Sized_relobj_file" type_identifier) (ERROR "<64" < number_literal) , (parameter_declaration "_false> *this" type_identifier (ERROR ">" >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "Shdr" type_identifier) (ERROR "<64" < number_literal) , (parameter_declaration "_false> *shdr" type_identifier (ERROR ">" >) (pointer_declarator "*shdr" * identifier)) ))) { identifier) identifier ;) (expression_statement "uVar1 = shdr->p_->sh_type;" (assignment_expression "uVar1 = shdr->p_->sh_type" identifier = (field_expression "shdr->p_->sh_type" (field_expression "shdr->p_" identifier -> field_identifier) -> field_identifier)) ;) (if_statement "if (uVar1 != 1) {\n    if (parameters->target_ == (Target *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/parameters.h",0x69,"target");\n    }\n    if (uVar1 != parameters->target_->pti_->unwind_section_type) {\n      return false;\n    }\n  }" if (parenthesized_expression "(uVar1 != 1)" ( (binary_expression "uVar1 != 1" identifier != number_literal) )) (compound_statement "{\n    if (parameters->target_ == (Target *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/parameters.h",0x69,"target");\n    }\n    if (uVar1 != parameters->target_->pti_->unwind_section_type) {\n      return false;\n    }\n  }" { (if_statement "if (parameters->target_ == (Target *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/parameters.h",0x69,"target");\n    }" if (parenthesized_expression "(parameters->target_ == (Target *)0x0)" ( (binary_expression "parameters->target_ == (Target *)0x0" (field_expression "parameters->target_" identifier -> field_identifier) == (cast_expression "(Target *)0x0" ( (type_descriptor "Target *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/parameters.h",0x69,"target");\n    }" { comment (expression_statement "do_gold_unreachable("../../gold/parameters.h",0x69,"target");" (call_expression "do_gold_unreachable("../../gold/parameters.h",0x69,"target")" identifier (argument_list "("../../gold/parameters.h",0x69,"target")" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""target"" " string_content ") ))) ;) })) (if_statement "if (uVar1 != parameters->target_->pti_->unwind_section_type) {\n      return false;\n    }" if (parenthesized_expression "(uVar1 != parameters->target_->pti_->unwind_section_type)" ( (binary_expression "uVar1 != parameters->target_->pti_->unwind_section_type" identifier != (field_expression "parameters->target_->pti_->unwind_section_type" (field_expression "parameters->target_->pti_" (field_expression "parameters->target_" identifier -> field_identifier) -> field_identifier) -> field_identifier)) )) (compound_statement "{\n      return false;\n    }" { (return_statement "return false;" return false ;) })) })) (return_statement "return (bool)((byte)(shdr->p_->sh_flags >> 1) & 1);" return (cast_expression "(bool)((byte)(shdr->p_->sh_flags >> 1) & 1)" ( (type_descriptor "bool" primitive_type) ) (parenthesized_expression "((byte)(shdr->p_->sh_flags >> 1) & 1)" ( (binary_expression "(byte)(shdr->p_->sh_flags >> 1) & 1" (call_expression "(byte)(shdr->p_->sh_flags >> 1)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(shdr->p_->sh_flags >> 1)" ( (binary_expression "shdr->p_->sh_flags >> 1" (field_expression "shdr->p_->sh_flags" (field_expression "shdr->p_" identifier -> field_identifier) -> field_identifier) >> number_literal) ))) & number_literal) ))) ;) (ERROR "}" }))
(translation_unit "uint FUN_00230330(undefined8 param_1,long *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(*param_2 + 4);\n  if (iVar1 != 1) {\n    if (*(long *)(PTR_DAT_004ba7c8 + 0x18) == 0) {\n                    \n      FUN_001e9890("../../gold/parameters.h",0x69,"target");\n    }\n    if (iVar1 != *(int *)(*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8) + 0x7c)) {\n      return 0;\n    }\n  }\n  return (uint)(*(ulong *)(*param_2 + 8) >> 1) & 1;\n}\n\n" (function_definition "uint FUN_00230330(undefined8 param_1,long *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(*param_2 + 4);\n  if (iVar1 != 1) {\n    if (*(long *)(PTR_DAT_004ba7c8 + 0x18) == 0) {\n                    \n      FUN_001e9890("../../gold/parameters.h",0x69,"target");\n    }\n    if (iVar1 != *(int *)(*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8) + 0x7c)) {\n      return 0;\n    }\n  }\n  return (uint)(*(ulong *)(*param_2 + 8) >> 1) & 1;\n}" type_identifier (function_declarator "FUN_00230330(undefined8 param_1,long *param_2)" identifier (parameter_list "(undefined8 param_1,long *param_2)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)(*param_2 + 4);\n  if (iVar1 != 1) {\n    if (*(long *)(PTR_DAT_004ba7c8 + 0x18) == 0) {\n                    \n      FUN_001e9890("../../gold/parameters.h",0x69,"target");\n    }\n    if (iVar1 != *(int *)(*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8) + 0x7c)) {\n      return 0;\n    }\n  }\n  return (uint)(*(ulong *)(*param_2 + 8) >> 1) & 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(*param_2 + 4);" (assignment_expression "iVar1 = *(int *)(*param_2 + 4)" identifier = (pointer_expression "*(int *)(*param_2 + 4)" * (cast_expression "(int *)(*param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + 4)" ( (binary_expression "*param_2 + 4" (pointer_expression "*param_2" * identifier) + number_literal) ))))) ;) (if_statement "if (iVar1 != 1) {\n    if (*(long *)(PTR_DAT_004ba7c8 + 0x18) == 0) {\n                    \n      FUN_001e9890("../../gold/parameters.h",0x69,"target");\n    }\n    if (iVar1 != *(int *)(*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8) + 0x7c)) {\n      return 0;\n    }\n  }" if (parenthesized_expression "(iVar1 != 1)" ( (binary_expression "iVar1 != 1" identifier != number_literal) )) (compound_statement "{\n    if (*(long *)(PTR_DAT_004ba7c8 + 0x18) == 0) {\n                    \n      FUN_001e9890("../../gold/parameters.h",0x69,"target");\n    }\n    if (iVar1 != *(int *)(*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8) + 0x7c)) {\n      return 0;\n    }\n  }" { (if_statement "if (*(long *)(PTR_DAT_004ba7c8 + 0x18) == 0) {\n                    \n      FUN_001e9890("../../gold/parameters.h",0x69,"target");\n    }" if (parenthesized_expression "(*(long *)(PTR_DAT_004ba7c8 + 0x18) == 0)" ( (binary_expression "*(long *)(PTR_DAT_004ba7c8 + 0x18) == 0" (pointer_expression "*(long *)(PTR_DAT_004ba7c8 + 0x18)" * (cast_expression "(long *)(PTR_DAT_004ba7c8 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_004ba7c8 + 0x18)" ( (binary_expression "PTR_DAT_004ba7c8 + 0x18" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    \n      FUN_001e9890("../../gold/parameters.h",0x69,"target");\n    }" { (expression_statement "FUN_001e9890("../../gold/parameters.h",0x69,"target");" (call_expression "FUN_001e9890("../../gold/parameters.h",0x69,"target")" identifier (argument_list "("../../gold/parameters.h",0x69,"target")" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""target"" " string_content ") ))) ;) })) (if_statement "if (iVar1 != *(int *)(*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8) + 0x7c)) {\n      return 0;\n    }" if (parenthesized_expression "(iVar1 != *(int *)(*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8) + 0x7c))" ( (binary_expression "iVar1 != *(int *)(*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8) + 0x7c)" identifier != (pointer_expression "*(int *)(*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8) + 0x7c)" * (cast_expression "(int *)(*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8) + 0x7c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8) + 0x7c)" ( (binary_expression "*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8) + 0x7c" (pointer_expression "*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8)" * (cast_expression "(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8)" ( (binary_expression "*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8" (pointer_expression "*(long *)(PTR_DAT_004ba7c8 + 0x18)" * (cast_expression "(long *)(PTR_DAT_004ba7c8 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_004ba7c8 + 0x18)" ( (binary_expression "PTR_DAT_004ba7c8 + 0x18" identifier + number_literal) )))) + number_literal) )))) + number_literal) ))))) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) })) (return_statement "return (uint)(*(ulong *)(*param_2 + 8) >> 1) & 1;" return (binary_expression "(uint)(*(ulong *)(*param_2 + 8) >> 1) & 1" (call_expression "(uint)(*(ulong *)(*param_2 + 8) >> 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(ulong *)(*param_2 + 8) >> 1)" ( (binary_expression "*(ulong *)(*param_2 + 8) >> 1" (pointer_expression "*(ulong *)(*param_2 + 8)" * (cast_expression "(ulong *)(*param_2 + 8)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + 8)" ( (binary_expression "*param_2 + 8" (pointer_expression "*param_2" * identifier) + number_literal) )))) >> number_literal) ))) & number_literal) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) (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 (pointer_expression * IDENT) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) + LIT) ))))) )) (compound_statement { (return_statement return LIT ;) })) })) (return_statement return (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) >> LIT) ))) & LIT) ;) })))
(function_definition "uint FUN_00230330(undefined8 param_1,long *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(*param_2 + 4);\n  if (iVar1 != 1) {\n    if (*(long *)(PTR_DAT_004ba7c8 + 0x18) == 0) {\n                    \n      FUN_001e9890("../../gold/parameters.h",0x69,"target");\n    }\n    if (iVar1 != *(int *)(*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8) + 0x7c)) {\n      return 0;\n    }\n  }\n  return (uint)(*(ulong *)(*param_2 + 8) >> 1) & 1;\n}" (type_identifier "uint") (function_declarator "FUN_00230330(undefined8 param_1,long *param_2)" (identifier "FUN_00230330") (parameter_list "(undefined8 param_1,long *param_2)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "long *param_2" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)(*param_2 + 4);\n  if (iVar1 != 1) {\n    if (*(long *)(PTR_DAT_004ba7c8 + 0x18) == 0) {\n                    \n      FUN_001e9890("../../gold/parameters.h",0x69,"target");\n    }\n    if (iVar1 != *(int *)(*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8) + 0x7c)) {\n      return 0;\n    }\n  }\n  return (uint)(*(ulong *)(*param_2 + 8) >> 1) & 1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = *(int *)(*param_2 + 4);" (assignment_expression "iVar1 = *(int *)(*param_2 + 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(*param_2 + 4)" (* "*") (cast_expression "(int *)(*param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_2 + 4)" (( "(") (binary_expression "*param_2 + 4" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (iVar1 != 1) {\n    if (*(long *)(PTR_DAT_004ba7c8 + 0x18) == 0) {\n                    \n      FUN_001e9890("../../gold/parameters.h",0x69,"target");\n    }\n    if (iVar1 != *(int *)(*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8) + 0x7c)) {\n      return 0;\n    }\n  }" (if "if") (parenthesized_expression "(iVar1 != 1)" (( "(") (binary_expression "iVar1 != 1" (identifier "iVar1") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n    if (*(long *)(PTR_DAT_004ba7c8 + 0x18) == 0) {\n                    \n      FUN_001e9890("../../gold/parameters.h",0x69,"target");\n    }\n    if (iVar1 != *(int *)(*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8) + 0x7c)) {\n      return 0;\n    }\n  }" ({ "{") (if_statement "if (*(long *)(PTR_DAT_004ba7c8 + 0x18) == 0) {\n                    \n      FUN_001e9890("../../gold/parameters.h",0x69,"target");\n    }" (if "if") (parenthesized_expression "(*(long *)(PTR_DAT_004ba7c8 + 0x18) == 0)" (( "(") (binary_expression "*(long *)(PTR_DAT_004ba7c8 + 0x18) == 0" (pointer_expression "*(long *)(PTR_DAT_004ba7c8 + 0x18)" (* "*") (cast_expression "(long *)(PTR_DAT_004ba7c8 + 0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_004ba7c8 + 0x18)" (( "(") (binary_expression "PTR_DAT_004ba7c8 + 0x18" (identifier "PTR_DAT_004ba7c8") (+ "+") (number_literal "0x18")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n      FUN_001e9890("../../gold/parameters.h",0x69,"target");\n    }" ({ "{") (expression_statement "FUN_001e9890("../../gold/parameters.h",0x69,"target");" (call_expression "FUN_001e9890("../../gold/parameters.h",0x69,"target")" (identifier "FUN_001e9890") (argument_list "("../../gold/parameters.h",0x69,"target")" (( "(") (string_literal ""../../gold/parameters.h"" (" """) (string_content "../../gold/parameters.h") (" """)) (, ",") (number_literal "0x69") (, ",") (string_literal ""target"" (" """) (string_content "target") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (iVar1 != *(int *)(*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8) + 0x7c)) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar1 != *(int *)(*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8) + 0x7c))" (( "(") (binary_expression "iVar1 != *(int *)(*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8) + 0x7c)" (identifier "iVar1") (!= "!=") (pointer_expression "*(int *)(*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8) + 0x7c)" (* "*") (cast_expression "(int *)(*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8) + 0x7c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8) + 0x7c)" (( "(") (binary_expression "*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8) + 0x7c" (pointer_expression "*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8)" (* "*") (cast_expression "(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8)" (( "(") (binary_expression "*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8" (pointer_expression "*(long *)(PTR_DAT_004ba7c8 + 0x18)" (* "*") (cast_expression "(long *)(PTR_DAT_004ba7c8 + 0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_004ba7c8 + 0x18)" (( "(") (binary_expression "PTR_DAT_004ba7c8 + 0x18" (identifier "PTR_DAT_004ba7c8") (+ "+") (number_literal "0x18")) () ")")))) (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "0x7c")) () ")"))))) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}"))) (return_statement "return (uint)(*(ulong *)(*param_2 + 8) >> 1) & 1;" (return "return") (binary_expression "(uint)(*(ulong *)(*param_2 + 8) >> 1) & 1" (call_expression "(uint)(*(ulong *)(*param_2 + 8) >> 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(ulong *)(*param_2 + 8) >> 1)" (( "(") (binary_expression "*(ulong *)(*param_2 + 8) >> 1" (pointer_expression "*(ulong *)(*param_2 + 8)" (* "*") (cast_expression "(ulong *)(*param_2 + 8)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_2 + 8)" (( "(") (binary_expression "*param_2 + 8" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "8")) () ")")))) (>> ">>") (number_literal "1")) () ")"))) (& "&") (number_literal "1")) (; ";")) (} "}")))

/* WARNING: Enum "DT": Some values do not have unique names */
/* WARNING: Enum "ELFOSABI": Some values do not have unique names */
/* DWARF original prototype: bool check_eh_frame_flags(Sized_relobj_file<64,_false> * this,
   Shdr<64,_false> * shdr) */

bool __thiscall
gold::Sized_relobj_file<64,_false>::check_eh_frame_flags
          (Sized_relobj_file<64,_false> *this,Shdr<64,_false> *shdr)

{
  uint var_1;
  
  var_1 = shdr->p_->sh_type;
  if (var_1 != 1) {
    if (parameters->target_ == (type_1 *)0x0) {
                    /* WARNING: Subroutine does not return */
      var_2("../../gold/parameters.h",0x69,"target");
    }
    if (var_1 != parameters->target_->pti_->unwind_section_type) {
      return false;
    }
  }
  return (bool)((byte)(shdr->p_->sh_flags >> 1) & 1);
}


(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: (sized_type_specifier) 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: (pointer_expression argument: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) 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 (string_literal (string_content)) (number_literal) (string_literal (string_content))))))) (if_statement condition: (parenthesized_expression (binary_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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) right: (number_literal))))))) consequence: (compound_statement (return_statement (number_literal)))))) (return_statement (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (number_literal)))) right: (number_literal))))))

uint MASKED(undefined8 param_1,long *param_2)

{
  int iVar1;
  
  iVar1 = *(int *)(*param_2 + 4);
  if (iVar1 != 1) {
    if (*(long *)(PTR_DAT_004ba7c8 + 0x18) == 0) {
                    /* WARNING: Subroutine does not return */
      FUN_001e9890("../../gold/parameters.h",0x69,"target");
    }
    if (iVar1 != *(int *)(*(long *)(*(long *)(PTR_DAT_004ba7c8 + 0x18) + 8) + 0x7c)) {
      return 0;
    }
  }
  return (uint)(*(ulong *)(*param_2 + 8) >> 1) & 1;
}

