
/* WARNING: Enum "<anon>": Some values do not have unique names */
/* DWARF original prototype: bool do_output_offset(Arm_input_section<false> * this, Relobj * object,
   uint shndx, section_offset_type offset, section_offset_type * poutput) */

bool __thiscall
anon_unknown.dwarf_91258a::Arm_input_section<false>::do_output_offset
          (Arm_input_section<false> *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)((uint)offset >> 0x18) >> 7);
    if (bVar1 != false) {
      if (offset <= (int)this->original_size_) {
        *poutput = offset;
        return bVar1;
      }
      return false;
    }
  }
  return bVar1;
}



byte FUN_0010a360(int param_1,int param_2,int param_3,int param_4,int *param_5)

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


MOV EDX,dword ptr [ESP + 0x4]
XOR EAX,EAX
MOV ECX,dword ptr [EDX + 0x2c]
CMP dword ptr [ESP + 0x8],ECX
JZ 0x0010a370
RET
MOV ECX,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [ESP + 0xc]
CMP dword ptr [EDX + 0x30],EAX
NOT ECX
SETZ AL
SHR ECX,0x1f
AND AL,CL
JZ 0x0010a36f
MOV ECX,dword ptr [ESP + 0x10]
CMP dword ptr [EDX + 0x38],ECX
JL 0x0010a3a0
MOV EDX,dword ptr [ESP + 0x14]
MOV dword ptr [EDX],ECX
RET
XOR EAX,EAX
RET
(translation_unit "byte FUN_0010a360(int param_1,int param_2,int param_3,int param_4,int *param_5)\n\n{\n  byte bVar1;\n  \n  bVar1 = 0;\n  if ((param_2 == *(int *)(param_1 + 0x2c)) &&\n     (bVar1 = *(int *)(param_1 + 0x30) == param_3 & (byte)~(byte)((uint)param_4 >> 0x18) >> 7,\n     bVar1 != 0)) {\n    if (param_4 <= *(int *)(param_1 + 0x38)) {\n      *param_5 = param_4;\n      return bVar1;\n    }\n    return 0;\n  }\n  return bVar1;\n}\n\n" (function_definition "byte FUN_0010a360(int param_1,int param_2,int param_3,int param_4,int *param_5)\n\n{\n  byte bVar1;\n  \n  bVar1 = 0;\n  if ((param_2 == *(int *)(param_1 + 0x2c)) &&\n     (bVar1 = *(int *)(param_1 + 0x30) == param_3 & (byte)~(byte)((uint)param_4 >> 0x18) >> 7,\n     bVar1 != 0)) {\n    if (param_4 <= *(int *)(param_1 + 0x38)) {\n      *param_5 = param_4;\n      return bVar1;\n    }\n    return 0;\n  }\n  return bVar1;\n}" type_identifier (function_declarator "FUN_0010a360(int param_1,int param_2,int param_3,int param_4,int *param_5)" identifier (parameter_list "(int param_1,int param_2,int param_3,int param_4,int *param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  \n  bVar1 = 0;\n  if ((param_2 == *(int *)(param_1 + 0x2c)) &&\n     (bVar1 = *(int *)(param_1 + 0x30) == param_3 & (byte)~(byte)((uint)param_4 >> 0x18) >> 7,\n     bVar1 != 0)) {\n    if (param_4 <= *(int *)(param_1 + 0x38)) {\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 == *(int *)(param_1 + 0x2c)) &&\n     (bVar1 = *(int *)(param_1 + 0x30) == param_3 & (byte)~(byte)((uint)param_4 >> 0x18) >> 7,\n     bVar1 != 0)) {\n    if (param_4 <= *(int *)(param_1 + 0x38)) {\n      *param_5 = param_4;\n      return bVar1;\n    }\n    return 0;\n  }" if (parenthesized_expression "((param_2 == *(int *)(param_1 + 0x2c)) &&\n     (bVar1 = *(int *)(param_1 + 0x30) == param_3 & (byte)~(byte)((uint)param_4 >> 0x18) >> 7,\n     bVar1 != 0))" ( (binary_expression "(param_2 == *(int *)(param_1 + 0x2c)) &&\n     (bVar1 = *(int *)(param_1 + 0x30) == param_3 & (byte)~(byte)((uint)param_4 >> 0x18) >> 7,\n     bVar1 != 0)" (parenthesized_expression "(param_2 == *(int *)(param_1 + 0x2c))" ( (binary_expression "param_2 == *(int *)(param_1 + 0x2c)" identifier == (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) ))))) )) && (parenthesized_expression "(bVar1 = *(int *)(param_1 + 0x30) == param_3 & (byte)~(byte)((uint)param_4 >> 0x18) >> 7,\n     bVar1 != 0)" ( (comma_expression "bVar1 = *(int *)(param_1 + 0x30) == param_3 & (byte)~(byte)((uint)param_4 >> 0x18) >> 7,\n     bVar1 != 0" (assignment_expression "bVar1 = *(int *)(param_1 + 0x30) == param_3 & (byte)~(byte)((uint)param_4 >> 0x18) >> 7" identifier = (binary_expression "*(int *)(param_1 + 0x30) == param_3 & (byte)~(byte)((uint)param_4 >> 0x18) >> 7" (binary_expression "*(int *)(param_1 + 0x30) == param_3" (pointer_expression "*(int *)(param_1 + 0x30)" * (cast_expression "(int *)(param_1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) == identifier) & (binary_expression "(byte)~(byte)((uint)param_4 >> 0x18) >> 7" (cast_expression "(byte)~(byte)((uint)param_4 >> 0x18)" ( (type_descriptor "byte" type_identifier) ) (unary_expression "~(byte)((uint)param_4 >> 0x18)" ~ (call_expression "(byte)((uint)param_4 >> 0x18)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((uint)param_4 >> 0x18)" ( (binary_expression "(uint)param_4 >> 0x18" (cast_expression "(uint)param_4" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) ))))) >> number_literal))) , (binary_expression "bVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    if (param_4 <= *(int *)(param_1 + 0x38)) {\n      *param_5 = param_4;\n      return bVar1;\n    }\n    return 0;\n  }" { (if_statement "if (param_4 <= *(int *)(param_1 + 0x38)) {\n      *param_5 = param_4;\n      return bVar1;\n    }" if (parenthesized_expression "(param_4 <= *(int *)(param_1 + 0x38))" ( (binary_expression "param_4 <= *(int *)(param_1 + 0x38)" identifier <= (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" 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 "/* WARNING: Enum "<anon>": Some values do not have unique names */\n/* DWARF original prototype: bool do_output_offset(Arm_input_section<false> * this, Relobj * object,\n   uint shndx, section_offset_type offset, section_offset_type * poutput) */\n\nbool __thiscall\nanon_unknown.dwarf_91258a::Arm_input_section<false>::do_output_offset\n          (Arm_input_section<false> *this,Relobj *object,uint shndx,section_offset_type offset,\n          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)((uint)offset >> 0x18) >> 7);\n    if (bVar1 != false) {\n      if (offset <= (int)this->original_size_) {\n        *poutput = offset;\n        return bVar1;\n      }\n      return false;\n    }\n  }\n  return bVar1;\n}\n\n" comment comment (function_definition "bool __thiscall\nanon_unknown.dwarf_91258a::Arm_input_section<false>::do_output_offset\n          (Arm_input_section<false> *this,Relobj *object,uint shndx,section_offset_type offset,\n          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)((uint)offset >> 0x18) >> 7);\n    if (bVar1 != false) {\n      if (offset <= (int)this->original_size_) {\n        *poutput = offset;\n        return bVar1;\n      }\n      return false;\n    }\n  }\n  return bVar1;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "anon_unknown.dwarf_91258a::Arm_input_section<false>::" identifier . identifier : : identifier < false > : :) (function_declarator "do_output_offset\n          (Arm_input_section<false> *this,Relobj *object,uint shndx,section_offset_type offset,\n          section_offset_type *poutput)" identifier (parameter_list "(Arm_input_section<false> *this,Relobj *object,uint shndx,section_offset_type offset,\n          section_offset_type *poutput)" ( (parameter_declaration "Arm_input_section<false> *this" type_identifier (ERROR "<false>" < false >) (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)) ))) (compound_statement "{\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)((uint)offset >> 0x18) >> 7);\n    if (bVar1 != false) {\n      if (offset <= (int)this->original_size_) {\n        *poutput = offset;\n        return bVar1;\n      }\n      return false;\n    }\n  }\n  return bVar1;\n}" { (declaration "bool bVar1;" 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)((uint)offset >> 0x18) >> 7);\n    if (bVar1 != false) {\n      if (offset <= (int)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)((uint)offset >> 0x18) >> 7);\n    if (bVar1 != false) {\n      if (offset <= (int)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)((uint)offset >> 0x18) >> 7);" (assignment_expression "bVar1 = (bool)((this->super_Output_relaxed_input_section).shndx_ == shndx &\n                  (byte)~(byte)((uint)offset >> 0x18) >> 7)" identifier = (cast_expression "(bool)((this->super_Output_relaxed_input_section).shndx_ == shndx &\n                  (byte)~(byte)((uint)offset >> 0x18) >> 7)" ( (type_descriptor "bool" primitive_type) ) (parenthesized_expression "((this->super_Output_relaxed_input_section).shndx_ == shndx &\n                  (byte)~(byte)((uint)offset >> 0x18) >> 7)" ( (binary_expression "(this->super_Output_relaxed_input_section).shndx_ == shndx &\n                  (byte)~(byte)((uint)offset >> 0x18) >> 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)((uint)offset >> 0x18) >> 7" (cast_expression "(byte)~(byte)((uint)offset >> 0x18)" ( (type_descriptor "byte" type_identifier) ) (unary_expression "~(byte)((uint)offset >> 0x18)" ~ (call_expression "(byte)((uint)offset >> 0x18)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((uint)offset >> 0x18)" ( (binary_expression "(uint)offset >> 0x18" (cast_expression "(uint)offset" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) ))))) >> number_literal)) )))) ;) (if_statement "if (bVar1 != false) {\n      if (offset <= (int)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 <= (int)this->original_size_) {\n        *poutput = offset;\n        return bVar1;\n      }\n      return false;\n    }" { (if_statement "if (offset <= (int)this->original_size_) {\n        *poutput = offset;\n        return bVar1;\n      }" if (parenthesized_expression "(offset <= (int)this->original_size_)" ( (binary_expression "offset <= (int)this->original_size_" identifier <= (cast_expression "(int)this->original_size_" ( (type_descriptor "int" primitive_type) ) (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 ;) })))
(translation_unit "byte FUN_0010a360(int param_1,int param_2,int param_3,int param_4,int *param_5)\n\n{\n  byte bVar1;\n  \n  bVar1 = 0;\n  if ((param_2 == *(int *)(param_1 + 0x2c)) &&\n     (bVar1 = *(int *)(param_1 + 0x30) == param_3 & (byte)~(byte)((uint)param_4 >> 0x18) >> 7,\n     bVar1 != 0)) {\n    if (param_4 <= *(int *)(param_1 + 0x38)) {\n      *param_5 = param_4;\n      return bVar1;\n    }\n    return 0;\n  }\n  return bVar1;\n}\n\n" (function_definition "byte FUN_0010a360(int param_1,int param_2,int param_3,int param_4,int *param_5)\n\n{\n  byte bVar1;\n  \n  bVar1 = 0;\n  if ((param_2 == *(int *)(param_1 + 0x2c)) &&\n     (bVar1 = *(int *)(param_1 + 0x30) == param_3 & (byte)~(byte)((uint)param_4 >> 0x18) >> 7,\n     bVar1 != 0)) {\n    if (param_4 <= *(int *)(param_1 + 0x38)) {\n      *param_5 = param_4;\n      return bVar1;\n    }\n    return 0;\n  }\n  return bVar1;\n}" type_identifier (function_declarator "FUN_0010a360(int param_1,int param_2,int param_3,int param_4,int *param_5)" identifier (parameter_list "(int param_1,int param_2,int param_3,int param_4,int *param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  \n  bVar1 = 0;\n  if ((param_2 == *(int *)(param_1 + 0x2c)) &&\n     (bVar1 = *(int *)(param_1 + 0x30) == param_3 & (byte)~(byte)((uint)param_4 >> 0x18) >> 7,\n     bVar1 != 0)) {\n    if (param_4 <= *(int *)(param_1 + 0x38)) {\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 == *(int *)(param_1 + 0x2c)) &&\n     (bVar1 = *(int *)(param_1 + 0x30) == param_3 & (byte)~(byte)((uint)param_4 >> 0x18) >> 7,\n     bVar1 != 0)) {\n    if (param_4 <= *(int *)(param_1 + 0x38)) {\n      *param_5 = param_4;\n      return bVar1;\n    }\n    return 0;\n  }" if (parenthesized_expression "((param_2 == *(int *)(param_1 + 0x2c)) &&\n     (bVar1 = *(int *)(param_1 + 0x30) == param_3 & (byte)~(byte)((uint)param_4 >> 0x18) >> 7,\n     bVar1 != 0))" ( (binary_expression "(param_2 == *(int *)(param_1 + 0x2c)) &&\n     (bVar1 = *(int *)(param_1 + 0x30) == param_3 & (byte)~(byte)((uint)param_4 >> 0x18) >> 7,\n     bVar1 != 0)" (parenthesized_expression "(param_2 == *(int *)(param_1 + 0x2c))" ( (binary_expression "param_2 == *(int *)(param_1 + 0x2c)" identifier == (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) ))))) )) && (parenthesized_expression "(bVar1 = *(int *)(param_1 + 0x30) == param_3 & (byte)~(byte)((uint)param_4 >> 0x18) >> 7,\n     bVar1 != 0)" ( (comma_expression "bVar1 = *(int *)(param_1 + 0x30) == param_3 & (byte)~(byte)((uint)param_4 >> 0x18) >> 7,\n     bVar1 != 0" (assignment_expression "bVar1 = *(int *)(param_1 + 0x30) == param_3 & (byte)~(byte)((uint)param_4 >> 0x18) >> 7" identifier = (binary_expression "*(int *)(param_1 + 0x30) == param_3 & (byte)~(byte)((uint)param_4 >> 0x18) >> 7" (binary_expression "*(int *)(param_1 + 0x30) == param_3" (pointer_expression "*(int *)(param_1 + 0x30)" * (cast_expression "(int *)(param_1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) == identifier) & (binary_expression "(byte)~(byte)((uint)param_4 >> 0x18) >> 7" (cast_expression "(byte)~(byte)((uint)param_4 >> 0x18)" ( (type_descriptor "byte" type_identifier) ) (unary_expression "~(byte)((uint)param_4 >> 0x18)" ~ (call_expression "(byte)((uint)param_4 >> 0x18)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((uint)param_4 >> 0x18)" ( (binary_expression "(uint)param_4 >> 0x18" (cast_expression "(uint)param_4" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) ))))) >> number_literal))) , (binary_expression "bVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    if (param_4 <= *(int *)(param_1 + 0x38)) {\n      *param_5 = param_4;\n      return bVar1;\n    }\n    return 0;\n  }" { (if_statement "if (param_4 <= *(int *)(param_1 + 0x38)) {\n      *param_5 = param_4;\n      return bVar1;\n    }" if (parenthesized_expression "(param_4 <= *(int *)(param_1 + 0x38))" ( (binary_expression "param_4 <= *(int *)(param_1 + 0x38)" identifier <= (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" 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 TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (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 TYPE (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 <= (pointer_expression * (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_0010a360(int param_1,int param_2,int param_3,int param_4,int *param_5)\n\n{\n  byte bVar1;\n  \n  bVar1 = 0;\n  if ((param_2 == *(int *)(param_1 + 0x2c)) &&\n     (bVar1 = *(int *)(param_1 + 0x30) == param_3 & (byte)~(byte)((uint)param_4 >> 0x18) >> 7,\n     bVar1 != 0)) {\n    if (param_4 <= *(int *)(param_1 + 0x38)) {\n      *param_5 = param_4;\n      return bVar1;\n    }\n    return 0;\n  }\n  return bVar1;\n}" (type_identifier "byte") (function_declarator "FUN_0010a360(int param_1,int param_2,int param_3,int param_4,int *param_5)" (identifier "FUN_0010a360") (parameter_list "(int param_1,int param_2,int param_3,int param_4,int *param_5)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "int *param_5" (primitive_type "int") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")"))) (compound_statement "{\n  byte bVar1;\n  \n  bVar1 = 0;\n  if ((param_2 == *(int *)(param_1 + 0x2c)) &&\n     (bVar1 = *(int *)(param_1 + 0x30) == param_3 & (byte)~(byte)((uint)param_4 >> 0x18) >> 7,\n     bVar1 != 0)) {\n    if (param_4 <= *(int *)(param_1 + 0x38)) {\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 == *(int *)(param_1 + 0x2c)) &&\n     (bVar1 = *(int *)(param_1 + 0x30) == param_3 & (byte)~(byte)((uint)param_4 >> 0x18) >> 7,\n     bVar1 != 0)) {\n    if (param_4 <= *(int *)(param_1 + 0x38)) {\n      *param_5 = param_4;\n      return bVar1;\n    }\n    return 0;\n  }" (if "if") (parenthesized_expression "((param_2 == *(int *)(param_1 + 0x2c)) &&\n     (bVar1 = *(int *)(param_1 + 0x30) == param_3 & (byte)~(byte)((uint)param_4 >> 0x18) >> 7,\n     bVar1 != 0))" (( "(") (binary_expression "(param_2 == *(int *)(param_1 + 0x2c)) &&\n     (bVar1 = *(int *)(param_1 + 0x30) == param_3 & (byte)~(byte)((uint)param_4 >> 0x18) >> 7,\n     bVar1 != 0)" (parenthesized_expression "(param_2 == *(int *)(param_1 + 0x2c))" (( "(") (binary_expression "param_2 == *(int *)(param_1 + 0x2c)" (identifier "param_2") (== "==") (pointer_expression "*(int *)(param_1 + 0x2c)" (* "*") (cast_expression "(int *)(param_1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")"))))) () ")")) (&& "&&") (parenthesized_expression "(bVar1 = *(int *)(param_1 + 0x30) == param_3 & (byte)~(byte)((uint)param_4 >> 0x18) >> 7,\n     bVar1 != 0)" (( "(") (comma_expression "bVar1 = *(int *)(param_1 + 0x30) == param_3 & (byte)~(byte)((uint)param_4 >> 0x18) >> 7,\n     bVar1 != 0" (assignment_expression "bVar1 = *(int *)(param_1 + 0x30) == param_3 & (byte)~(byte)((uint)param_4 >> 0x18) >> 7" (identifier "bVar1") (= "=") (binary_expression "*(int *)(param_1 + 0x30) == param_3 & (byte)~(byte)((uint)param_4 >> 0x18) >> 7" (binary_expression "*(int *)(param_1 + 0x30) == param_3" (pointer_expression "*(int *)(param_1 + 0x30)" (* "*") (cast_expression "(int *)(param_1 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")")))) (== "==") (identifier "param_3")) (& "&") (binary_expression "(byte)~(byte)((uint)param_4 >> 0x18) >> 7" (cast_expression "(byte)~(byte)((uint)param_4 >> 0x18)" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (unary_expression "~(byte)((uint)param_4 >> 0x18)" (~ "~") (call_expression "(byte)((uint)param_4 >> 0x18)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "((uint)param_4 >> 0x18)" (( "(") (binary_expression "(uint)param_4 >> 0x18" (cast_expression "(uint)param_4" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "param_4")) (>> ">>") (number_literal "0x18")) () ")"))))) (>> ">>") (number_literal "7")))) (, ",") (binary_expression "bVar1 != 0" (identifier "bVar1") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    if (param_4 <= *(int *)(param_1 + 0x38)) {\n      *param_5 = param_4;\n      return bVar1;\n    }\n    return 0;\n  }" ({ "{") (if_statement "if (param_4 <= *(int *)(param_1 + 0x38)) {\n      *param_5 = param_4;\n      return bVar1;\n    }" (if "if") (parenthesized_expression "(param_4 <= *(int *)(param_1 + 0x38))" (( "(") (binary_expression "param_4 <= *(int *)(param_1 + 0x38)" (identifier "param_4") (<= "<=") (pointer_expression "*(int *)(param_1 + 0x38)" (* "*") (cast_expression "(int *)(param_1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")"))))) () ")")) (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") (; ";")) (} "}")))

/* WARNING: Enum "<anon>": Some values do not have unique names */
/* DWARF original prototype: bool do_output_offset(Arm_input_section<false> * this, Relobj * object,
   uint shndx, section_offset_type offset, section_offset_type * poutput) */

bool __thiscall
anon_unknown.dwarf_91258a::type_1<false>::function_1
          (type_1<false> *this,type_2 *var_1,type_3 var_2,type_4 var_4,
          type_4 *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_5)~(type_5)((type_3)var_4 >> 0x18) >> 7);
    if (var_3 != false) {
      if (var_4 <= (int)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: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) 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: (primitive_type) 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: (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))))))) 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(int param_1,int param_2,int param_3,int param_4,int *param_5)

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

