
/* DWARF original prototype: bool do_output_offset(AArch64_input_section<32,_true> * this, Relobj *
   object, uint shndx, section_offset_type offset, section_offset_type * poutput) */

bool __thiscall
anon_unknown.dwarf_12235f4::AArch64_input_section<32,_true>::do_output_offset
          (AArch64_input_section<32,_true> *this,Relobj *object,uint shndx,
          section_offset_type offset,section_offset_type *poutput)

{
  bool bVar1;
  
  bVar1 = false;
  if (object == (this->super_Output_relaxed_input_section).relobj_) {
    bVar1 = (bool)((this->super_Output_relaxed_input_section).shndx_ == shndx &
                  (byte)~(byte)((ulong)offset >> 0x38) >> 7);
    if (bVar1 != false) {
      if (offset <= (long)(ulong)this->original_size_) {
        *poutput = offset;
        return bVar1;
      }
      return false;
    }
  }
  return bVar1;
}



byte FUN_002eb1d0(long param_1,long param_2,int param_3,long param_4,long *param_5)

{
  byte bVar1;
  
  bVar1 = 0;
  if ((param_2 == *(long *)(param_1 + 0x38)) &&
     (bVar1 = *(int *)(param_1 + 0x40) == param_3 & (byte)~(byte)((ulong)param_4 >> 0x38) >> 7,
     bVar1 != 0)) {
    if (param_4 <= (long)(ulong)*(uint *)(param_1 + 0x58)) {
      *param_5 = param_4;
      return bVar1;
    }
    return 0;
  }
  return bVar1;
}


XOR EAX,EAX
CMP RSI,qword ptr [RDI + 0x38]
JZ 0x002eb1e0
RET
CMP dword ptr [RDI + 0x40],EDX
MOV RDX,RCX
NOT RDX
SETZ AL
SHR RDX,0x3f
AND AL,DL
JZ 0x002eb1d8
MOV EDX,dword ptr [RDI + 0x58]
CMP RDX,RCX
JL 0x002eb200
MOV qword ptr [R8],RCX
RET
XOR EAX,EAX
RET
(translation_unit "byte FUN_002eb1d0(long param_1,long param_2,int param_3,long param_4,long *param_5)\n\n{\n  byte bVar1;\n  \n  bVar1 = 0;\n  if ((param_2 == *(long *)(param_1 + 0x38)) &&\n     (bVar1 = *(int *)(param_1 + 0x40) == param_3 & (byte)~(byte)((ulong)param_4 >> 0x38) >> 7,\n     bVar1 != 0)) {\n    if (param_4 <= (long)(ulong)*(uint *)(param_1 + 0x58)) {\n      *param_5 = param_4;\n      return bVar1;\n    }\n    return 0;\n  }\n  return bVar1;\n}\n\n" (function_definition "byte FUN_002eb1d0(long param_1,long param_2,int param_3,long param_4,long *param_5)\n\n{\n  byte bVar1;\n  \n  bVar1 = 0;\n  if ((param_2 == *(long *)(param_1 + 0x38)) &&\n     (bVar1 = *(int *)(param_1 + 0x40) == param_3 & (byte)~(byte)((ulong)param_4 >> 0x38) >> 7,\n     bVar1 != 0)) {\n    if (param_4 <= (long)(ulong)*(uint *)(param_1 + 0x58)) {\n      *param_5 = param_4;\n      return bVar1;\n    }\n    return 0;\n  }\n  return bVar1;\n}" type_identifier (function_declarator "FUN_002eb1d0(long param_1,long param_2,int param_3,long param_4,long *param_5)" identifier (parameter_list "(long param_1,long param_2,int param_3,long param_4,long *param_5)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "long param_4" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long *param_5" (sized_type_specifier "long" long) (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  \n  bVar1 = 0;\n  if ((param_2 == *(long *)(param_1 + 0x38)) &&\n     (bVar1 = *(int *)(param_1 + 0x40) == param_3 & (byte)~(byte)((ulong)param_4 >> 0x38) >> 7,\n     bVar1 != 0)) {\n    if (param_4 <= (long)(ulong)*(uint *)(param_1 + 0x58)) {\n      *param_5 = param_4;\n      return bVar1;\n    }\n    return 0;\n  }\n  return bVar1;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (expression_statement "bVar1 = 0;" (assignment_expression "bVar1 = 0" identifier = number_literal) ;) (if_statement "if ((param_2 == *(long *)(param_1 + 0x38)) &&\n     (bVar1 = *(int *)(param_1 + 0x40) == param_3 & (byte)~(byte)((ulong)param_4 >> 0x38) >> 7,\n     bVar1 != 0)) {\n    if (param_4 <= (long)(ulong)*(uint *)(param_1 + 0x58)) {\n      *param_5 = param_4;\n      return bVar1;\n    }\n    return 0;\n  }" if (parenthesized_expression "((param_2 == *(long *)(param_1 + 0x38)) &&\n     (bVar1 = *(int *)(param_1 + 0x40) == param_3 & (byte)~(byte)((ulong)param_4 >> 0x38) >> 7,\n     bVar1 != 0))" ( (binary_expression "(param_2 == *(long *)(param_1 + 0x38)) &&\n     (bVar1 = *(int *)(param_1 + 0x40) == param_3 & (byte)~(byte)((ulong)param_4 >> 0x38) >> 7,\n     bVar1 != 0)" (parenthesized_expression "(param_2 == *(long *)(param_1 + 0x38))" ( (binary_expression "param_2 == *(long *)(param_1 + 0x38)" identifier == (pointer_expression "*(long *)(param_1 + 0x38)" * (cast_expression "(long *)(param_1 + 0x38)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) ))))) )) && (parenthesized_expression "(bVar1 = *(int *)(param_1 + 0x40) == param_3 & (byte)~(byte)((ulong)param_4 >> 0x38) >> 7,\n     bVar1 != 0)" ( (comma_expression "bVar1 = *(int *)(param_1 + 0x40) == param_3 & (byte)~(byte)((ulong)param_4 >> 0x38) >> 7,\n     bVar1 != 0" (assignment_expression "bVar1 = *(int *)(param_1 + 0x40) == param_3 & (byte)~(byte)((ulong)param_4 >> 0x38) >> 7" identifier = (binary_expression "*(int *)(param_1 + 0x40) == param_3 & (byte)~(byte)((ulong)param_4 >> 0x38) >> 7" (binary_expression "*(int *)(param_1 + 0x40) == param_3" (pointer_expression "*(int *)(param_1 + 0x40)" * (cast_expression "(int *)(param_1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) == identifier) & (binary_expression "(byte)~(byte)((ulong)param_4 >> 0x38) >> 7" (cast_expression "(byte)~(byte)((ulong)param_4 >> 0x38)" ( (type_descriptor "byte" type_identifier) ) (unary_expression "~(byte)((ulong)param_4 >> 0x38)" ~ (call_expression "(byte)((ulong)param_4 >> 0x38)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((ulong)param_4 >> 0x38)" ( (binary_expression "(ulong)param_4 >> 0x38" (cast_expression "(ulong)param_4" ( (type_descriptor "ulong" type_identifier) ) identifier) >> number_literal) ))))) >> number_literal))) , (binary_expression "bVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    if (param_4 <= (long)(ulong)*(uint *)(param_1 + 0x58)) {\n      *param_5 = param_4;\n      return bVar1;\n    }\n    return 0;\n  }" { (if_statement "if (param_4 <= (long)(ulong)*(uint *)(param_1 + 0x58)) {\n      *param_5 = param_4;\n      return bVar1;\n    }" if (parenthesized_expression "(param_4 <= (long)(ulong)*(uint *)(param_1 + 0x58))" ( (binary_expression "param_4 <= (long)(ulong)*(uint *)(param_1 + 0x58)" identifier <= (binary_expression "(long)(ulong)*(uint *)(param_1 + 0x58)" (cast_expression "(long)(ulong)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(ulong)" ( identifier ))) * (cast_expression "(uint *)(param_1 + 0x58)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) ))))) )) (compound_statement "{\n      *param_5 = param_4;\n      return bVar1;\n    }" { (expression_statement "*param_5 = param_4;" (assignment_expression "*param_5 = param_4" (pointer_expression "*param_5" * identifier) = identifier) ;) (return_statement "return bVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })) (return_statement "return bVar1;" return identifier ;) })))
(translation_unit "/* DWARF original prototype: bool do_output_offset(AArch64_input_section<32,_true> * this, Relobj *\n   object, uint shndx, section_offset_type offset, section_offset_type * poutput) */\n\nbool __thiscall\nanon_unknown.dwarf_12235f4::AArch64_input_section<32,_true>::do_output_offset\n          (AArch64_input_section<32,_true> *this,Relobj *object,uint shndx,\n          section_offset_type offset,section_offset_type *poutput)\n\n{\n  bool bVar1;\n  \n  bVar1 = false;\n  if (object == (this->super_Output_relaxed_input_section).relobj_) {\n    bVar1 = (bool)((this->super_Output_relaxed_input_section).shndx_ == shndx &\n                  (byte)~(byte)((ulong)offset >> 0x38) >> 7);\n    if (bVar1 != false) {\n      if (offset <= (long)(ulong)this->original_size_) {\n        *poutput = offset;\n        return bVar1;\n      }\n      return false;\n    }\n  }\n  return bVar1;\n}\n\n" comment (declaration "bool __thiscall\nanon_unknown.dwarf_12235f4::AArch64_input_section<32,_true>::do_output_offset\n          (AArch64_input_section<32,_true> *this,Relobj *object,uint shndx,\n          section_offset_type offset,section_offset_type *poutput)\n\n{\n  bool bVar1;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "anon_unknown.dwarf_12235f4::" identifier . identifier : :) identifier (ERROR "<32" < number_literal) , (ERROR "_true>::do_output_offset\n          (AArch64_input_section<32,_true> *this,Relobj *object,uint shndx,\n          section_offset_type offset,section_offset_type *poutput)\n\n{\n  bool" identifier > : : (function_declarator "do_output_offset\n          (AArch64_input_section<32,_true> *this,Relobj *object,uint shndx,\n          section_offset_type offset,section_offset_type *poutput)" identifier (parameter_list "(AArch64_input_section<32,_true> *this,Relobj *object,uint shndx,\n          section_offset_type offset,section_offset_type *poutput)" ( (parameter_declaration "AArch64_input_section" type_identifier) (ERROR "<32" < number_literal) , (parameter_declaration "_true> *this" type_identifier (ERROR ">" >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "Relobj *object" type_identifier (pointer_declarator "*object" * identifier)) , (parameter_declaration "uint shndx" type_identifier identifier) , (parameter_declaration "section_offset_type offset" type_identifier identifier) , (parameter_declaration "section_offset_type *poutput" type_identifier (pointer_declarator "*poutput" * identifier)) ))) { primitive_type) identifier ;) (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (if_statement "if (object == (this->super_Output_relaxed_input_section).relobj_) {\n    bVar1 = (bool)((this->super_Output_relaxed_input_section).shndx_ == shndx &\n                  (byte)~(byte)((ulong)offset >> 0x38) >> 7);\n    if (bVar1 != false) {\n      if (offset <= (long)(ulong)this->original_size_) {\n        *poutput = offset;\n        return bVar1;\n      }\n      return false;\n    }\n  }" if (parenthesized_expression "(object == (this->super_Output_relaxed_input_section).relobj_)" ( (binary_expression "object == (this->super_Output_relaxed_input_section).relobj_" identifier == (field_expression "(this->super_Output_relaxed_input_section).relobj_" (parenthesized_expression "(this->super_Output_relaxed_input_section)" ( (field_expression "this->super_Output_relaxed_input_section" identifier -> field_identifier) )) . field_identifier)) )) (compound_statement "{\n    bVar1 = (bool)((this->super_Output_relaxed_input_section).shndx_ == shndx &\n                  (byte)~(byte)((ulong)offset >> 0x38) >> 7);\n    if (bVar1 != false) {\n      if (offset <= (long)(ulong)this->original_size_) {\n        *poutput = offset;\n        return bVar1;\n      }\n      return false;\n    }\n  }" { (expression_statement "bVar1 = (bool)((this->super_Output_relaxed_input_section).shndx_ == shndx &\n                  (byte)~(byte)((ulong)offset >> 0x38) >> 7);" (assignment_expression "bVar1 = (bool)((this->super_Output_relaxed_input_section).shndx_ == shndx &\n                  (byte)~(byte)((ulong)offset >> 0x38) >> 7)" identifier = (cast_expression "(bool)((this->super_Output_relaxed_input_section).shndx_ == shndx &\n                  (byte)~(byte)((ulong)offset >> 0x38) >> 7)" ( (type_descriptor "bool" primitive_type) ) (parenthesized_expression "((this->super_Output_relaxed_input_section).shndx_ == shndx &\n                  (byte)~(byte)((ulong)offset >> 0x38) >> 7)" ( (binary_expression "(this->super_Output_relaxed_input_section).shndx_ == shndx &\n                  (byte)~(byte)((ulong)offset >> 0x38) >> 7" (binary_expression "(this->super_Output_relaxed_input_section).shndx_ == shndx" (field_expression "(this->super_Output_relaxed_input_section).shndx_" (parenthesized_expression "(this->super_Output_relaxed_input_section)" ( (field_expression "this->super_Output_relaxed_input_section" identifier -> field_identifier) )) . field_identifier) == identifier) & (binary_expression "(byte)~(byte)((ulong)offset >> 0x38) >> 7" (cast_expression "(byte)~(byte)((ulong)offset >> 0x38)" ( (type_descriptor "byte" type_identifier) ) (unary_expression "~(byte)((ulong)offset >> 0x38)" ~ (call_expression "(byte)((ulong)offset >> 0x38)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((ulong)offset >> 0x38)" ( (binary_expression "(ulong)offset >> 0x38" (cast_expression "(ulong)offset" ( (type_descriptor "ulong" type_identifier) ) identifier) >> number_literal) ))))) >> number_literal)) )))) ;) (if_statement "if (bVar1 != false) {\n      if (offset <= (long)(ulong)this->original_size_) {\n        *poutput = offset;\n        return bVar1;\n      }\n      return false;\n    }" if (parenthesized_expression "(bVar1 != false)" ( (binary_expression "bVar1 != false" identifier != false) )) (compound_statement "{\n      if (offset <= (long)(ulong)this->original_size_) {\n        *poutput = offset;\n        return bVar1;\n      }\n      return false;\n    }" { (if_statement "if (offset <= (long)(ulong)this->original_size_) {\n        *poutput = offset;\n        return bVar1;\n      }" if (parenthesized_expression "(offset <= (long)(ulong)this->original_size_)" ( (binary_expression "offset <= (long)(ulong)this->original_size_" identifier <= (cast_expression "(long)(ulong)this->original_size_" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(ulong)this->original_size_" ( (type_descriptor "ulong" type_identifier) ) (field_expression "this->original_size_" identifier -> field_identifier)))) )) (compound_statement "{\n        *poutput = offset;\n        return bVar1;\n      }" { (expression_statement "*poutput = offset;" (assignment_expression "*poutput = offset" (pointer_expression "*poutput" * identifier) = identifier) ;) (return_statement "return bVar1;" return identifier ;) })) (return_statement "return false;" return false ;) })) })) (return_statement "return bVar1;" return identifier ;) (ERROR "}" }))
(translation_unit "byte FUN_002eb1d0(long param_1,long param_2,int param_3,long param_4,long *param_5)\n\n{\n  byte bVar1;\n  \n  bVar1 = 0;\n  if ((param_2 == *(long *)(param_1 + 0x38)) &&\n     (bVar1 = *(int *)(param_1 + 0x40) == param_3 & (byte)~(byte)((ulong)param_4 >> 0x38) >> 7,\n     bVar1 != 0)) {\n    if (param_4 <= (long)(ulong)*(uint *)(param_1 + 0x58)) {\n      *param_5 = param_4;\n      return bVar1;\n    }\n    return 0;\n  }\n  return bVar1;\n}\n\n" (function_definition "byte FUN_002eb1d0(long param_1,long param_2,int param_3,long param_4,long *param_5)\n\n{\n  byte bVar1;\n  \n  bVar1 = 0;\n  if ((param_2 == *(long *)(param_1 + 0x38)) &&\n     (bVar1 = *(int *)(param_1 + 0x40) == param_3 & (byte)~(byte)((ulong)param_4 >> 0x38) >> 7,\n     bVar1 != 0)) {\n    if (param_4 <= (long)(ulong)*(uint *)(param_1 + 0x58)) {\n      *param_5 = param_4;\n      return bVar1;\n    }\n    return 0;\n  }\n  return bVar1;\n}" type_identifier (function_declarator "FUN_002eb1d0(long param_1,long param_2,int param_3,long param_4,long *param_5)" identifier (parameter_list "(long param_1,long param_2,int param_3,long param_4,long *param_5)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "long param_4" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long *param_5" (sized_type_specifier "long" long) (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  \n  bVar1 = 0;\n  if ((param_2 == *(long *)(param_1 + 0x38)) &&\n     (bVar1 = *(int *)(param_1 + 0x40) == param_3 & (byte)~(byte)((ulong)param_4 >> 0x38) >> 7,\n     bVar1 != 0)) {\n    if (param_4 <= (long)(ulong)*(uint *)(param_1 + 0x58)) {\n      *param_5 = param_4;\n      return bVar1;\n    }\n    return 0;\n  }\n  return bVar1;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (expression_statement "bVar1 = 0;" (assignment_expression "bVar1 = 0" identifier = number_literal) ;) (if_statement "if ((param_2 == *(long *)(param_1 + 0x38)) &&\n     (bVar1 = *(int *)(param_1 + 0x40) == param_3 & (byte)~(byte)((ulong)param_4 >> 0x38) >> 7,\n     bVar1 != 0)) {\n    if (param_4 <= (long)(ulong)*(uint *)(param_1 + 0x58)) {\n      *param_5 = param_4;\n      return bVar1;\n    }\n    return 0;\n  }" if (parenthesized_expression "((param_2 == *(long *)(param_1 + 0x38)) &&\n     (bVar1 = *(int *)(param_1 + 0x40) == param_3 & (byte)~(byte)((ulong)param_4 >> 0x38) >> 7,\n     bVar1 != 0))" ( (binary_expression "(param_2 == *(long *)(param_1 + 0x38)) &&\n     (bVar1 = *(int *)(param_1 + 0x40) == param_3 & (byte)~(byte)((ulong)param_4 >> 0x38) >> 7,\n     bVar1 != 0)" (parenthesized_expression "(param_2 == *(long *)(param_1 + 0x38))" ( (binary_expression "param_2 == *(long *)(param_1 + 0x38)" identifier == (pointer_expression "*(long *)(param_1 + 0x38)" * (cast_expression "(long *)(param_1 + 0x38)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) ))))) )) && (parenthesized_expression "(bVar1 = *(int *)(param_1 + 0x40) == param_3 & (byte)~(byte)((ulong)param_4 >> 0x38) >> 7,\n     bVar1 != 0)" ( (comma_expression "bVar1 = *(int *)(param_1 + 0x40) == param_3 & (byte)~(byte)((ulong)param_4 >> 0x38) >> 7,\n     bVar1 != 0" (assignment_expression "bVar1 = *(int *)(param_1 + 0x40) == param_3 & (byte)~(byte)((ulong)param_4 >> 0x38) >> 7" identifier = (binary_expression "*(int *)(param_1 + 0x40) == param_3 & (byte)~(byte)((ulong)param_4 >> 0x38) >> 7" (binary_expression "*(int *)(param_1 + 0x40) == param_3" (pointer_expression "*(int *)(param_1 + 0x40)" * (cast_expression "(int *)(param_1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) == identifier) & (binary_expression "(byte)~(byte)((ulong)param_4 >> 0x38) >> 7" (cast_expression "(byte)~(byte)((ulong)param_4 >> 0x38)" ( (type_descriptor "byte" type_identifier) ) (unary_expression "~(byte)((ulong)param_4 >> 0x38)" ~ (call_expression "(byte)((ulong)param_4 >> 0x38)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((ulong)param_4 >> 0x38)" ( (binary_expression "(ulong)param_4 >> 0x38" (cast_expression "(ulong)param_4" ( (type_descriptor "ulong" type_identifier) ) identifier) >> number_literal) ))))) >> number_literal))) , (binary_expression "bVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    if (param_4 <= (long)(ulong)*(uint *)(param_1 + 0x58)) {\n      *param_5 = param_4;\n      return bVar1;\n    }\n    return 0;\n  }" { (if_statement "if (param_4 <= (long)(ulong)*(uint *)(param_1 + 0x58)) {\n      *param_5 = param_4;\n      return bVar1;\n    }" if (parenthesized_expression "(param_4 <= (long)(ulong)*(uint *)(param_1 + 0x58))" ( (binary_expression "param_4 <= (long)(ulong)*(uint *)(param_1 + 0x58)" identifier <= (binary_expression "(long)(ulong)*(uint *)(param_1 + 0x58)" (cast_expression "(long)(ulong)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(ulong)" ( identifier ))) * (cast_expression "(uint *)(param_1 + 0x58)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) ))))) )) (compound_statement "{\n      *param_5 = param_4;\n      return bVar1;\n    }" { (expression_statement "*param_5 = param_4;" (assignment_expression "*param_5 = param_4" (pointer_expression "*param_5" * identifier) = identifier) ;) (return_statement "return bVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })) (return_statement "return bVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT) & (binary_expression (cast_expression ( (type_descriptor TYPE) ) (unary_expression ~ (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))))) >> LIT))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( IDENT ))) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })) (return_statement return IDENT ;) })))
(function_definition "byte FUN_002eb1d0(long param_1,long param_2,int param_3,long param_4,long *param_5)\n\n{\n  byte bVar1;\n  \n  bVar1 = 0;\n  if ((param_2 == *(long *)(param_1 + 0x38)) &&\n     (bVar1 = *(int *)(param_1 + 0x40) == param_3 & (byte)~(byte)((ulong)param_4 >> 0x38) >> 7,\n     bVar1 != 0)) {\n    if (param_4 <= (long)(ulong)*(uint *)(param_1 + 0x58)) {\n      *param_5 = param_4;\n      return bVar1;\n    }\n    return 0;\n  }\n  return bVar1;\n}" (type_identifier "byte") (function_declarator "FUN_002eb1d0(long param_1,long param_2,int param_3,long param_4,long *param_5)" (identifier "FUN_002eb1d0") (parameter_list "(long param_1,long param_2,int param_3,long param_4,long *param_5)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "long param_4" (sized_type_specifier "long" (long "long")) (identifier "param_4")) (, ",") (parameter_declaration "long *param_5" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")"))) (compound_statement "{\n  byte bVar1;\n  \n  bVar1 = 0;\n  if ((param_2 == *(long *)(param_1 + 0x38)) &&\n     (bVar1 = *(int *)(param_1 + 0x40) == param_3 & (byte)~(byte)((ulong)param_4 >> 0x38) >> 7,\n     bVar1 != 0)) {\n    if (param_4 <= (long)(ulong)*(uint *)(param_1 + 0x58)) {\n      *param_5 = param_4;\n      return bVar1;\n    }\n    return 0;\n  }\n  return bVar1;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (expression_statement "bVar1 = 0;" (assignment_expression "bVar1 = 0" (identifier "bVar1") (= "=") (number_literal "0")) (; ";")) (if_statement "if ((param_2 == *(long *)(param_1 + 0x38)) &&\n     (bVar1 = *(int *)(param_1 + 0x40) == param_3 & (byte)~(byte)((ulong)param_4 >> 0x38) >> 7,\n     bVar1 != 0)) {\n    if (param_4 <= (long)(ulong)*(uint *)(param_1 + 0x58)) {\n      *param_5 = param_4;\n      return bVar1;\n    }\n    return 0;\n  }" (if "if") (parenthesized_expression "((param_2 == *(long *)(param_1 + 0x38)) &&\n     (bVar1 = *(int *)(param_1 + 0x40) == param_3 & (byte)~(byte)((ulong)param_4 >> 0x38) >> 7,\n     bVar1 != 0))" (( "(") (binary_expression "(param_2 == *(long *)(param_1 + 0x38)) &&\n     (bVar1 = *(int *)(param_1 + 0x40) == param_3 & (byte)~(byte)((ulong)param_4 >> 0x38) >> 7,\n     bVar1 != 0)" (parenthesized_expression "(param_2 == *(long *)(param_1 + 0x38))" (( "(") (binary_expression "param_2 == *(long *)(param_1 + 0x38)" (identifier "param_2") (== "==") (pointer_expression "*(long *)(param_1 + 0x38)" (* "*") (cast_expression "(long *)(param_1 + 0x38)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")"))))) () ")")) (&& "&&") (parenthesized_expression "(bVar1 = *(int *)(param_1 + 0x40) == param_3 & (byte)~(byte)((ulong)param_4 >> 0x38) >> 7,\n     bVar1 != 0)" (( "(") (comma_expression "bVar1 = *(int *)(param_1 + 0x40) == param_3 & (byte)~(byte)((ulong)param_4 >> 0x38) >> 7,\n     bVar1 != 0" (assignment_expression "bVar1 = *(int *)(param_1 + 0x40) == param_3 & (byte)~(byte)((ulong)param_4 >> 0x38) >> 7" (identifier "bVar1") (= "=") (binary_expression "*(int *)(param_1 + 0x40) == param_3 & (byte)~(byte)((ulong)param_4 >> 0x38) >> 7" (binary_expression "*(int *)(param_1 + 0x40) == param_3" (pointer_expression "*(int *)(param_1 + 0x40)" (* "*") (cast_expression "(int *)(param_1 + 0x40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")")))) (== "==") (identifier "param_3")) (& "&") (binary_expression "(byte)~(byte)((ulong)param_4 >> 0x38) >> 7" (cast_expression "(byte)~(byte)((ulong)param_4 >> 0x38)" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (unary_expression "~(byte)((ulong)param_4 >> 0x38)" (~ "~") (call_expression "(byte)((ulong)param_4 >> 0x38)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "((ulong)param_4 >> 0x38)" (( "(") (binary_expression "(ulong)param_4 >> 0x38" (cast_expression "(ulong)param_4" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "param_4")) (>> ">>") (number_literal "0x38")) () ")"))))) (>> ">>") (number_literal "7")))) (, ",") (binary_expression "bVar1 != 0" (identifier "bVar1") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    if (param_4 <= (long)(ulong)*(uint *)(param_1 + 0x58)) {\n      *param_5 = param_4;\n      return bVar1;\n    }\n    return 0;\n  }" ({ "{") (if_statement "if (param_4 <= (long)(ulong)*(uint *)(param_1 + 0x58)) {\n      *param_5 = param_4;\n      return bVar1;\n    }" (if "if") (parenthesized_expression "(param_4 <= (long)(ulong)*(uint *)(param_1 + 0x58))" (( "(") (binary_expression "param_4 <= (long)(ulong)*(uint *)(param_1 + 0x58)" (identifier "param_4") (<= "<=") (binary_expression "(long)(ulong)*(uint *)(param_1 + 0x58)" (cast_expression "(long)(ulong)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")"))) (* "*") (cast_expression "(uint *)(param_1 + 0x58)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x58)" (( "(") (binary_expression "param_1 + 0x58" (identifier "param_1") (+ "+") (number_literal "0x58")) () ")"))))) () ")")) (compound_statement "{\n      *param_5 = param_4;\n      return bVar1;\n    }" ({ "{") (expression_statement "*param_5 = param_4;" (assignment_expression "*param_5 = param_4" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (identifier "param_4")) (; ";")) (return_statement "return bVar1;" (return "return") (identifier "bVar1") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (return_statement "return bVar1;" (return "return") (identifier "bVar1") (; ";")) (} "}")))

/* DWARF original prototype: bool do_output_offset(AArch64_input_section<32,_true> * this, Relobj *
   object, uint shndx, section_offset_type offset, section_offset_type * poutput) */

bool __thiscall
anon_unknown.dwarf_12235f4::AArch64_input_section<32,_true>::do_output_offset
          (AArch64_input_section<32,_true> *this,Relobj *var_1,uint var_2,
          section_offset_type var_4,section_offset_type *poutput)

{
  bool var_3;
  
  var_3 = false;
  if (var_1 == (this->super_Output_relaxed_input_section).relobj_) {
    var_3 = (bool)((this->super_Output_relaxed_input_section).shndx_ == var_2 &
                  (type_1)~(type_1)((type_2)var_4 >> 0x38) >> 7);
    if (var_3 != false) {
      if (var_4 <= (long)(type_2)this->original_size_) {
        *poutput = var_4;
        return var_3;
      }
      return false;
    }
  }
  return var_3;
}


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

byte MASKED(long param_1,long param_2,int param_3,long param_4,long *param_5)

{
  byte bVar1;
  
  bVar1 = 0;
  if ((param_2 == *(long *)(param_1 + 0x38)) &&
     (bVar1 = *(int *)(param_1 + 0x40) == param_3 & (byte)~(byte)((ulong)param_4 >> 0x38) >> 7,
     bVar1 != 0)) {
    if (param_4 <= (long)(ulong)*(uint *)(param_1 + 0x58)) {
      *param_5 = param_4;
      return bVar1;
    }
    return 0;
  }
  return bVar1;
}

