
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: bfd_boolean is_merged_note_section(bfd * abfd, asection * sec, asection
   * sec) */

bfd_boolean __regparm3 is_merged_note_section(bfd *abfd,asection *sec,asection *sec_1)

{
  bfd_boolean bVar1;
  int iVar2;
  byte *pbVar3;
  byte *pbVar4;
  bool bVar5;
  bool bVar6;
  
  bVar1 = 0;
  if (*(int *)(sec->name + 4) == 7) {
    bVar1 = 1;
    bVar5 = false;
    bVar6 = (sec->name[10] & 0x10U) == 0;
    if (bVar6) {
      iVar2 = 0x16;
      pbVar3 = (byte *)abfd->filename;
      pbVar4 = (byte *)".gnu.build.attributes";
      do {
        if (iVar2 == 0) break;
        iVar2 = iVar2 + -1;
        bVar5 = *pbVar3 < *pbVar4;
        bVar6 = *pbVar3 == *pbVar4;
        pbVar3 = pbVar3 + 1;
        pbVar4 = pbVar4 + 1;
      } while (bVar6);
      return (uint)((!bVar5 && !bVar6) == bVar5);
    }
  }
  return bVar1;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

bool __regparm3 FUN_000176d0(undefined4 *param_1,int *param_2)

{
  bool bVar1;
  int iVar2;
  byte *pbVar3;
  byte *pbVar4;
  bool bVar5;
  bool bVar6;
  
  bVar1 = false;
  if (*(int *)(*param_2 + 4) == 7) {
    bVar1 = true;
    bVar5 = false;
    bVar6 = (*(byte *)(*param_2 + 10) & 0x10) == 0;
    if (bVar6) {
      iVar2 = 0x16;
      pbVar3 = (byte *)*param_1;
      pbVar4 = (byte *)".gnu.build.attributes";
      do {
        if (iVar2 == 0) break;
        iVar2 = iVar2 + -1;
        bVar5 = *pbVar3 < *pbVar4;
        bVar6 = *pbVar3 == *pbVar4;
        pbVar3 = pbVar3 + 1;
        pbVar4 = pbVar4 + 1;
      } while (bVar6);
      return (!bVar5 && !bVar6) == bVar5;
    }
  }
  return bVar1;
}


PUSH EDI
XOR ECX,ECX
PUSH ESI
PUSH EBX
MOV EDX,dword ptr [EDX]
CALL 0x000166c0
ADD EBX,0x28924
CMP dword ptr [EDX + 0x4],0x7
JZ 0x000176f0
POP EBX
MOV EAX,ECX
POP ESI
POP EDI
RET
MOV ECX,0x1
TEST byte ptr [EDX + 0xa],0x10
JNZ 0x000176e8
MOV ESI,dword ptr [EAX]
LEA EDI,[EBX + 0xfffef0bf]
MOV ECX,0x16
POP EBX
CMPSB.REPE ES:EDI,ESI
POP ESI
POP EDI
SETA AL
SBB AL,0x0
XOR ECX,ECX
TEST AL,AL
SETZ CL
MOV EAX,ECX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbool __regparm3 FUN_000176d0(undefined4 *param_1,int *param_2)\n\n{\n  bool bVar1;\n  int iVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  bool bVar5;\n  bool bVar6;\n  \n  bVar1 = false;\n  if (*(int *)(*param_2 + 4) == 7) {\n    bVar1 = true;\n    bVar5 = false;\n    bVar6 = (*(byte *)(*param_2 + 10) & 0x10) == 0;\n    if (bVar6) {\n      iVar2 = 0x16;\n      pbVar3 = (byte *)*param_1;\n      pbVar4 = (byte *)".gnu.build.attributes";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) == bVar5;\n    }\n  }\n  return bVar1;\n}\n\n" comment (function_definition "bool __regparm3 FUN_000176d0(undefined4 *param_1,int *param_2)\n\n{\n  bool bVar1;\n  int iVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  bool bVar5;\n  bool bVar6;\n  \n  bVar1 = false;\n  if (*(int *)(*param_2 + 4) == 7) {\n    bVar1 = true;\n    bVar5 = false;\n    bVar6 = (*(byte *)(*param_2 + 10) & 0x10) == 0;\n    if (bVar6) {\n      iVar2 = 0x16;\n      pbVar3 = (byte *)*param_1;\n      pbVar4 = (byte *)".gnu.build.attributes";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) == bVar5;\n    }\n  }\n  return bVar1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000176d0(undefined4 *param_1,int *param_2)" identifier (parameter_list "(undefined4 *param_1,int *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  bool bVar5;\n  bool bVar6;\n  \n  bVar1 = false;\n  if (*(int *)(*param_2 + 4) == 7) {\n    bVar1 = true;\n    bVar5 = false;\n    bVar6 = (*(byte *)(*param_2 + 10) & 0x10) == 0;\n    if (bVar6) {\n      iVar2 = 0x16;\n      pbVar3 = (byte *)*param_1;\n      pbVar4 = (byte *)".gnu.build.attributes";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) == bVar5;\n    }\n  }\n  return bVar1;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (if_statement "if (*(int *)(*param_2 + 4) == 7) {\n    bVar1 = true;\n    bVar5 = false;\n    bVar6 = (*(byte *)(*param_2 + 10) & 0x10) == 0;\n    if (bVar6) {\n      iVar2 = 0x16;\n      pbVar3 = (byte *)*param_1;\n      pbVar4 = (byte *)".gnu.build.attributes";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) == bVar5;\n    }\n  }" if (parenthesized_expression "(*(int *)(*param_2 + 4) == 7)" ( (binary_expression "*(int *)(*param_2 + 4) == 7" (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) )))) == number_literal) )) (compound_statement "{\n    bVar1 = true;\n    bVar5 = false;\n    bVar6 = (*(byte *)(*param_2 + 10) & 0x10) == 0;\n    if (bVar6) {\n      iVar2 = 0x16;\n      pbVar3 = (byte *)*param_1;\n      pbVar4 = (byte *)".gnu.build.attributes";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) == bVar5;\n    }\n  }" { (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) (expression_statement "bVar6 = (*(byte *)(*param_2 + 10) & 0x10) == 0;" (assignment_expression "bVar6 = (*(byte *)(*param_2 + 10) & 0x10) == 0" identifier = (binary_expression "(*(byte *)(*param_2 + 10) & 0x10) == 0" (parenthesized_expression "(*(byte *)(*param_2 + 10) & 0x10)" ( (binary_expression "*(byte *)(*param_2 + 10) & 0x10" (pointer_expression "*(byte *)(*param_2 + 10)" * (cast_expression "(byte *)(*param_2 + 10)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + 10)" ( (binary_expression "*param_2 + 10" (pointer_expression "*param_2" * identifier) + number_literal) )))) & number_literal) )) == number_literal)) ;) (if_statement "if (bVar6) {\n      iVar2 = 0x16;\n      pbVar3 = (byte *)*param_1;\n      pbVar4 = (byte *)".gnu.build.attributes";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) == bVar5;\n    }" if (parenthesized_expression "(bVar6)" ( identifier )) (compound_statement "{\n      iVar2 = 0x16;\n      pbVar3 = (byte *)*param_1;\n      pbVar4 = (byte *)".gnu.build.attributes";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) == bVar5;\n    }" { (expression_statement "iVar2 = 0x16;" (assignment_expression "iVar2 = 0x16" identifier = number_literal) ;) (expression_statement "pbVar3 = (byte *)*param_1;" (assignment_expression "pbVar3 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "pbVar4 = (byte *)".gnu.build.attributes";" (assignment_expression "pbVar4 = (byte *)".gnu.build.attributes"" identifier = (cast_expression "(byte *)".gnu.build.attributes"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal "".gnu.build.attributes"" " string_content "))) ;) (do_statement "do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);" do (compound_statement "{\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      }" { (if_statement "if (iVar2 == 0) break;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "bVar5 = *pbVar3 < *pbVar4;" (assignment_expression "bVar5 = *pbVar3 < *pbVar4" identifier = (binary_expression "*pbVar3 < *pbVar4" (pointer_expression "*pbVar3" * identifier) < (pointer_expression "*pbVar4" * identifier))) ;) (expression_statement "bVar6 = *pbVar3 == *pbVar4;" (assignment_expression "bVar6 = *pbVar3 == *pbVar4" identifier = (binary_expression "*pbVar3 == *pbVar4" (pointer_expression "*pbVar3" * identifier) == (pointer_expression "*pbVar4" * identifier))) ;) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar6)" ( identifier )) ;) (return_statement "return (!bVar5 && !bVar6) == bVar5;" return (binary_expression "(!bVar5 && !bVar6) == bVar5" (parenthesized_expression "(!bVar5 && !bVar6)" ( (binary_expression "!bVar5 && !bVar6" (unary_expression "!bVar5" ! identifier) && (unary_expression "!bVar6" ! identifier)) )) == identifier) ;) })) })) (return_statement "return bVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: bfd_boolean is_merged_note_section(bfd * abfd, asection * sec, asection\n   * sec) */\n\nbfd_boolean __regparm3 is_merged_note_section(bfd *abfd,asection *sec,asection *sec_1)\n\n{\n  bfd_boolean bVar1;\n  int iVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  bool bVar5;\n  bool bVar6;\n  \n  bVar1 = 0;\n  if (*(int *)(sec->name + 4) == 7) {\n    bVar1 = 1;\n    bVar5 = false;\n    bVar6 = (sec->name[10] & 0x10U) == 0;\n    if (bVar6) {\n      iVar2 = 0x16;\n      pbVar3 = (byte *)abfd->filename;\n      pbVar4 = (byte *)".gnu.build.attributes";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);\n      return (uint)((!bVar5 && !bVar6) == bVar5);\n    }\n  }\n  return bVar1;\n}\n\n" comment comment (function_definition "bfd_boolean __regparm3 is_merged_note_section(bfd *abfd,asection *sec,asection *sec_1)\n\n{\n  bfd_boolean bVar1;\n  int iVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  bool bVar5;\n  bool bVar6;\n  \n  bVar1 = 0;\n  if (*(int *)(sec->name + 4) == 7) {\n    bVar1 = 1;\n    bVar5 = false;\n    bVar6 = (sec->name[10] & 0x10U) == 0;\n    if (bVar6) {\n      iVar2 = 0x16;\n      pbVar3 = (byte *)abfd->filename;\n      pbVar4 = (byte *)".gnu.build.attributes";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);\n      return (uint)((!bVar5 && !bVar6) == bVar5);\n    }\n  }\n  return bVar1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "is_merged_note_section(bfd *abfd,asection *sec,asection *sec_1)" identifier (parameter_list "(bfd *abfd,asection *sec,asection *sec_1)" ( (parameter_declaration "bfd *abfd" type_identifier (pointer_declarator "*abfd" * identifier)) , (parameter_declaration "asection *sec" type_identifier (pointer_declarator "*sec" * identifier)) , (parameter_declaration "asection *sec_1" type_identifier (pointer_declarator "*sec_1" * identifier)) ))) (compound_statement "{\n  bfd_boolean bVar1;\n  int iVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  bool bVar5;\n  bool bVar6;\n  \n  bVar1 = 0;\n  if (*(int *)(sec->name + 4) == 7) {\n    bVar1 = 1;\n    bVar5 = false;\n    bVar6 = (sec->name[10] & 0x10U) == 0;\n    if (bVar6) {\n      iVar2 = 0x16;\n      pbVar3 = (byte *)abfd->filename;\n      pbVar4 = (byte *)".gnu.build.attributes";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);\n      return (uint)((!bVar5 && !bVar6) == bVar5);\n    }\n  }\n  return bVar1;\n}" { (declaration "bfd_boolean bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (expression_statement "bVar1 = 0;" (assignment_expression "bVar1 = 0" identifier = number_literal) ;) (if_statement "if (*(int *)(sec->name + 4) == 7) {\n    bVar1 = 1;\n    bVar5 = false;\n    bVar6 = (sec->name[10] & 0x10U) == 0;\n    if (bVar6) {\n      iVar2 = 0x16;\n      pbVar3 = (byte *)abfd->filename;\n      pbVar4 = (byte *)".gnu.build.attributes";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);\n      return (uint)((!bVar5 && !bVar6) == bVar5);\n    }\n  }" if (parenthesized_expression "(*(int *)(sec->name + 4) == 7)" ( (binary_expression "*(int *)(sec->name + 4) == 7" (pointer_expression "*(int *)(sec->name + 4)" * (cast_expression "(int *)(sec->name + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(sec->name + 4)" ( (binary_expression "sec->name + 4" (field_expression "sec->name" identifier -> field_identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\n    bVar1 = 1;\n    bVar5 = false;\n    bVar6 = (sec->name[10] & 0x10U) == 0;\n    if (bVar6) {\n      iVar2 = 0x16;\n      pbVar3 = (byte *)abfd->filename;\n      pbVar4 = (byte *)".gnu.build.attributes";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);\n      return (uint)((!bVar5 && !bVar6) == bVar5);\n    }\n  }" { (expression_statement "bVar1 = 1;" (assignment_expression "bVar1 = 1" identifier = number_literal) ;) (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) (expression_statement "bVar6 = (sec->name[10] & 0x10U) == 0;" (assignment_expression "bVar6 = (sec->name[10] & 0x10U) == 0" identifier = (binary_expression "(sec->name[10] & 0x10U) == 0" (parenthesized_expression "(sec->name[10] & 0x10U)" ( (binary_expression "sec->name[10] & 0x10U" (subscript_expression "sec->name[10]" (field_expression "sec->name" identifier -> field_identifier) [ number_literal ]) & number_literal) )) == number_literal)) ;) (if_statement "if (bVar6) {\n      iVar2 = 0x16;\n      pbVar3 = (byte *)abfd->filename;\n      pbVar4 = (byte *)".gnu.build.attributes";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);\n      return (uint)((!bVar5 && !bVar6) == bVar5);\n    }" if (parenthesized_expression "(bVar6)" ( identifier )) (compound_statement "{\n      iVar2 = 0x16;\n      pbVar3 = (byte *)abfd->filename;\n      pbVar4 = (byte *)".gnu.build.attributes";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);\n      return (uint)((!bVar5 && !bVar6) == bVar5);\n    }" { (expression_statement "iVar2 = 0x16;" (assignment_expression "iVar2 = 0x16" identifier = number_literal) ;) (expression_statement "pbVar3 = (byte *)abfd->filename;" (assignment_expression "pbVar3 = (byte *)abfd->filename" identifier = (cast_expression "(byte *)abfd->filename" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "abfd->filename" identifier -> field_identifier))) ;) (expression_statement "pbVar4 = (byte *)".gnu.build.attributes";" (assignment_expression "pbVar4 = (byte *)".gnu.build.attributes"" identifier = (cast_expression "(byte *)".gnu.build.attributes"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal "".gnu.build.attributes"" " string_content "))) ;) (do_statement "do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);" do (compound_statement "{\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      }" { (if_statement "if (iVar2 == 0) break;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "bVar5 = *pbVar3 < *pbVar4;" (assignment_expression "bVar5 = *pbVar3 < *pbVar4" identifier = (binary_expression "*pbVar3 < *pbVar4" (pointer_expression "*pbVar3" * identifier) < (pointer_expression "*pbVar4" * identifier))) ;) (expression_statement "bVar6 = *pbVar3 == *pbVar4;" (assignment_expression "bVar6 = *pbVar3 == *pbVar4" identifier = (binary_expression "*pbVar3 == *pbVar4" (pointer_expression "*pbVar3" * identifier) == (pointer_expression "*pbVar4" * identifier))) ;) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar6)" ( identifier )) ;) (return_statement "return (uint)((!bVar5 && !bVar6) == bVar5);" return (call_expression "(uint)((!bVar5 && !bVar6) == bVar5)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((!bVar5 && !bVar6) == bVar5)" ( (binary_expression "(!bVar5 && !bVar6) == bVar5" (parenthesized_expression "(!bVar5 && !bVar6)" ( (binary_expression "!bVar5 && !bVar6" (unary_expression "!bVar5" ! identifier) && (unary_expression "!bVar6" ! identifier)) )) == identifier) ))) ;) })) })) (return_statement "return bVar1;" return identifier ;) })))
(translation_unit "bool __regparm3 FUN_000176d0(undefined4 *param_1,int *param_2)\n\n{\n  bool bVar1;\n  int iVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  bool bVar5;\n  bool bVar6;\n  \n  bVar1 = false;\n  if (*(int *)(*param_2 + 4) == 7) {\n    bVar1 = true;\n    bVar5 = false;\n    bVar6 = (*(byte *)(*param_2 + 10) & 0x10) == 0;\n    if (bVar6) {\n      iVar2 = 0x16;\n      pbVar3 = (byte *)*param_1;\n      pbVar4 = (byte *)".gnu.build.attributes";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) == bVar5;\n    }\n  }\n  return bVar1;\n}\n\n" (function_definition "bool __regparm3 FUN_000176d0(undefined4 *param_1,int *param_2)\n\n{\n  bool bVar1;\n  int iVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  bool bVar5;\n  bool bVar6;\n  \n  bVar1 = false;\n  if (*(int *)(*param_2 + 4) == 7) {\n    bVar1 = true;\n    bVar5 = false;\n    bVar6 = (*(byte *)(*param_2 + 10) & 0x10) == 0;\n    if (bVar6) {\n      iVar2 = 0x16;\n      pbVar3 = (byte *)*param_1;\n      pbVar4 = (byte *)".gnu.build.attributes";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) == bVar5;\n    }\n  }\n  return bVar1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000176d0(undefined4 *param_1,int *param_2)" identifier (parameter_list "(undefined4 *param_1,int *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  bool bVar5;\n  bool bVar6;\n  \n  bVar1 = false;\n  if (*(int *)(*param_2 + 4) == 7) {\n    bVar1 = true;\n    bVar5 = false;\n    bVar6 = (*(byte *)(*param_2 + 10) & 0x10) == 0;\n    if (bVar6) {\n      iVar2 = 0x16;\n      pbVar3 = (byte *)*param_1;\n      pbVar4 = (byte *)".gnu.build.attributes";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) == bVar5;\n    }\n  }\n  return bVar1;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (if_statement "if (*(int *)(*param_2 + 4) == 7) {\n    bVar1 = true;\n    bVar5 = false;\n    bVar6 = (*(byte *)(*param_2 + 10) & 0x10) == 0;\n    if (bVar6) {\n      iVar2 = 0x16;\n      pbVar3 = (byte *)*param_1;\n      pbVar4 = (byte *)".gnu.build.attributes";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) == bVar5;\n    }\n  }" if (parenthesized_expression "(*(int *)(*param_2 + 4) == 7)" ( (binary_expression "*(int *)(*param_2 + 4) == 7" (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) )))) == number_literal) )) (compound_statement "{\n    bVar1 = true;\n    bVar5 = false;\n    bVar6 = (*(byte *)(*param_2 + 10) & 0x10) == 0;\n    if (bVar6) {\n      iVar2 = 0x16;\n      pbVar3 = (byte *)*param_1;\n      pbVar4 = (byte *)".gnu.build.attributes";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) == bVar5;\n    }\n  }" { (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) (expression_statement "bVar6 = (*(byte *)(*param_2 + 10) & 0x10) == 0;" (assignment_expression "bVar6 = (*(byte *)(*param_2 + 10) & 0x10) == 0" identifier = (binary_expression "(*(byte *)(*param_2 + 10) & 0x10) == 0" (parenthesized_expression "(*(byte *)(*param_2 + 10) & 0x10)" ( (binary_expression "*(byte *)(*param_2 + 10) & 0x10" (pointer_expression "*(byte *)(*param_2 + 10)" * (cast_expression "(byte *)(*param_2 + 10)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + 10)" ( (binary_expression "*param_2 + 10" (pointer_expression "*param_2" * identifier) + number_literal) )))) & number_literal) )) == number_literal)) ;) (if_statement "if (bVar6) {\n      iVar2 = 0x16;\n      pbVar3 = (byte *)*param_1;\n      pbVar4 = (byte *)".gnu.build.attributes";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) == bVar5;\n    }" if (parenthesized_expression "(bVar6)" ( identifier )) (compound_statement "{\n      iVar2 = 0x16;\n      pbVar3 = (byte *)*param_1;\n      pbVar4 = (byte *)".gnu.build.attributes";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) == bVar5;\n    }" { (expression_statement "iVar2 = 0x16;" (assignment_expression "iVar2 = 0x16" identifier = number_literal) ;) (expression_statement "pbVar3 = (byte *)*param_1;" (assignment_expression "pbVar3 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "pbVar4 = (byte *)".gnu.build.attributes";" (assignment_expression "pbVar4 = (byte *)".gnu.build.attributes"" identifier = (cast_expression "(byte *)".gnu.build.attributes"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal "".gnu.build.attributes"" " string_content "))) ;) (do_statement "do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);" do (compound_statement "{\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      }" { (if_statement "if (iVar2 == 0) break;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "bVar5 = *pbVar3 < *pbVar4;" (assignment_expression "bVar5 = *pbVar3 < *pbVar4" identifier = (binary_expression "*pbVar3 < *pbVar4" (pointer_expression "*pbVar3" * identifier) < (pointer_expression "*pbVar4" * identifier))) ;) (expression_statement "bVar6 = *pbVar3 == *pbVar4;" (assignment_expression "bVar6 = *pbVar3 == *pbVar4" identifier = (binary_expression "*pbVar3 == *pbVar4" (pointer_expression "*pbVar3" * identifier) == (pointer_expression "*pbVar4" * identifier))) ;) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar6)" ( identifier )) ;) (return_statement "return (!bVar5 && !bVar6) == bVar5;" return (binary_expression "(!bVar5 && !bVar6) == bVar5" (parenthesized_expression "(!bVar5 && !bVar6)" ( (binary_expression "!bVar5 && !bVar6" (unary_expression "!bVar5" ! identifier) && (unary_expression "!bVar6" ! identifier)) )) == identifier) ;) })) })) (return_statement "return bVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) & LIT) )) == LIT)) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (string_literal " string_content "))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) (return_statement return (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! IDENT) && (unary_expression ! IDENT)) )) == IDENT) ;) })) })) (return_statement return IDENT ;) })))
(function_definition "bool __regparm3 FUN_000176d0(undefined4 *param_1,int *param_2)\n\n{\n  bool bVar1;\n  int iVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  bool bVar5;\n  bool bVar6;\n  \n  bVar1 = false;\n  if (*(int *)(*param_2 + 4) == 7) {\n    bVar1 = true;\n    bVar5 = false;\n    bVar6 = (*(byte *)(*param_2 + 10) & 0x10) == 0;\n    if (bVar6) {\n      iVar2 = 0x16;\n      pbVar3 = (byte *)*param_1;\n      pbVar4 = (byte *)".gnu.build.attributes";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) == bVar5;\n    }\n  }\n  return bVar1;\n}" (primitive_type "bool") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000176d0(undefined4 *param_1,int *param_2)" (identifier "FUN_000176d0") (parameter_list "(undefined4 *param_1,int *param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  bool bVar5;\n  bool bVar6;\n  \n  bVar1 = false;\n  if (*(int *)(*param_2 + 4) == 7) {\n    bVar1 = true;\n    bVar5 = false;\n    bVar6 = (*(byte *)(*param_2 + 10) & 0x10) == 0;\n    if (bVar6) {\n      iVar2 = 0x16;\n      pbVar3 = (byte *)*param_1;\n      pbVar4 = (byte *)".gnu.build.attributes";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) == bVar5;\n    }\n  }\n  return bVar1;\n}" ({ "{") (declaration "bool bVar1;" (primitive_type "bool") (identifier "bVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "byte *pbVar4;" (type_identifier "byte") (pointer_declarator "*pbVar4" (* "*") (identifier "pbVar4")) (; ";")) (declaration "bool bVar5;" (primitive_type "bool") (identifier "bVar5") (; ";")) (declaration "bool bVar6;" (primitive_type "bool") (identifier "bVar6") (; ";")) (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" (identifier "bVar1") (= "=") (false "false")) (; ";")) (if_statement "if (*(int *)(*param_2 + 4) == 7) {\n    bVar1 = true;\n    bVar5 = false;\n    bVar6 = (*(byte *)(*param_2 + 10) & 0x10) == 0;\n    if (bVar6) {\n      iVar2 = 0x16;\n      pbVar3 = (byte *)*param_1;\n      pbVar4 = (byte *)".gnu.build.attributes";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) == bVar5;\n    }\n  }" (if "if") (parenthesized_expression "(*(int *)(*param_2 + 4) == 7)" (( "(") (binary_expression "*(int *)(*param_2 + 4) == 7" (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")) () ")")))) (== "==") (number_literal "7")) () ")")) (compound_statement "{\n    bVar1 = true;\n    bVar5 = false;\n    bVar6 = (*(byte *)(*param_2 + 10) & 0x10) == 0;\n    if (bVar6) {\n      iVar2 = 0x16;\n      pbVar3 = (byte *)*param_1;\n      pbVar4 = (byte *)".gnu.build.attributes";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) == bVar5;\n    }\n  }" ({ "{") (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" (identifier "bVar1") (= "=") (true "true")) (; ";")) (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" (identifier "bVar5") (= "=") (false "false")) (; ";")) (expression_statement "bVar6 = (*(byte *)(*param_2 + 10) & 0x10) == 0;" (assignment_expression "bVar6 = (*(byte *)(*param_2 + 10) & 0x10) == 0" (identifier "bVar6") (= "=") (binary_expression "(*(byte *)(*param_2 + 10) & 0x10) == 0" (parenthesized_expression "(*(byte *)(*param_2 + 10) & 0x10)" (( "(") (binary_expression "*(byte *)(*param_2 + 10) & 0x10" (pointer_expression "*(byte *)(*param_2 + 10)" (* "*") (cast_expression "(byte *)(*param_2 + 10)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_2 + 10)" (( "(") (binary_expression "*param_2 + 10" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "10")) () ")")))) (& "&") (number_literal "0x10")) () ")")) (== "==") (number_literal "0"))) (; ";")) (if_statement "if (bVar6) {\n      iVar2 = 0x16;\n      pbVar3 = (byte *)*param_1;\n      pbVar4 = (byte *)".gnu.build.attributes";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) == bVar5;\n    }" (if "if") (parenthesized_expression "(bVar6)" (( "(") (identifier "bVar6") () ")")) (compound_statement "{\n      iVar2 = 0x16;\n      pbVar3 = (byte *)*param_1;\n      pbVar4 = (byte *)".gnu.build.attributes";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) == bVar5;\n    }" ({ "{") (expression_statement "iVar2 = 0x16;" (assignment_expression "iVar2 = 0x16" (identifier "iVar2") (= "=") (number_literal "0x16")) (; ";")) (expression_statement "pbVar3 = (byte *)*param_1;" (assignment_expression "pbVar3 = (byte *)*param_1" (identifier "pbVar3") (= "=") (cast_expression "(byte *)*param_1" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "pbVar4 = (byte *)".gnu.build.attributes";" (assignment_expression "pbVar4 = (byte *)".gnu.build.attributes"" (identifier "pbVar4") (= "=") (cast_expression "(byte *)".gnu.build.attributes"" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (string_literal "".gnu.build.attributes"" (" """) (string_content ".gnu.build.attributes") (" """)))) (; ";")) (do_statement "do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);" (do "do") (compound_statement "{\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      }" ({ "{") (if_statement "if (iVar2 == 0) break;" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar5 = *pbVar3 < *pbVar4;" (assignment_expression "bVar5 = *pbVar3 < *pbVar4" (identifier "bVar5") (= "=") (binary_expression "*pbVar3 < *pbVar4" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (< "<") (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4")))) (; ";")) (expression_statement "bVar6 = *pbVar3 == *pbVar4;" (assignment_expression "bVar6 = *pbVar3 == *pbVar4" (identifier "bVar6") (= "=") (binary_expression "*pbVar3 == *pbVar4" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (== "==") (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4")))) (; ";")) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" (identifier "pbVar3") (= "=") (binary_expression "pbVar3 + 1" (identifier "pbVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" (identifier "pbVar4") (= "=") (binary_expression "pbVar4 + 1" (identifier "pbVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar6)" (( "(") (identifier "bVar6") () ")")) (; ";")) (return_statement "return (!bVar5 && !bVar6) == bVar5;" (return "return") (binary_expression "(!bVar5 && !bVar6) == bVar5" (parenthesized_expression "(!bVar5 && !bVar6)" (( "(") (binary_expression "!bVar5 && !bVar6" (unary_expression "!bVar5" (! "!") (identifier "bVar5")) (&& "&&") (unary_expression "!bVar6" (! "!") (identifier "bVar6"))) () ")")) (== "==") (identifier "bVar5")) (; ";")) (} "}"))) (} "}"))) (return_statement "return bVar1;" (return "return") (identifier "bVar1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: bfd_boolean is_merged_note_section(bfd * abfd, asection * sec, asection
   * sec) */

type_1 __regparm3 function_1(type_2 *abfd,type_3 *sec,type_3 *sec_1)

{
  type_1 bVar1;
  int var_1;
  type_4 *var_2;
  type_4 *var_3;
  bool var_4;
  bool bVar6;
  
  bVar1 = 0;
  if (*(int *)(sec->name + 4) == 7) {
    bVar1 = 1;
    var_4 = false;
    bVar6 = (sec->name[10] & 0x10U) == 0;
    if (bVar6) {
      var_1 = 0x16;
      var_2 = (type_4 *)abfd->filename;
      var_3 = (type_4 *)".gnu.build.attributes";
      do {
        if (var_1 == 0) break;
        var_1 = var_1 + -1;
        var_4 = *var_2 < *var_3;
        bVar6 = *var_2 == *var_3;
        var_2 = var_2 + 1;
        var_3 = var_3 + 1;
      } while (bVar6);
      return (uint)((!var_4 && !bVar6) == var_4);
    }
  }
  return bVar1;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (false))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (true))) (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (number_literal))) right: (number_literal)))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (string_literal (string_content))))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (identifier))) (return_statement (binary_expression left: (parenthesized_expression (binary_expression left: (unary_expression argument: (identifier)) right: (unary_expression argument: (identifier)))) right: (identifier))))))) (return_statement (identifier)))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

bool __regparm3 MASKED(undefined4 *param_1,int *param_2)

{
  bool bVar1;
  int iVar2;
  byte *pbVar3;
  byte *pbVar4;
  bool bVar5;
  bool bVar6;
  
  bVar1 = false;
  if (*(int *)(*param_2 + 4) == 7) {
    bVar1 = true;
    bVar5 = false;
    bVar6 = (*(byte *)(*param_2 + 10) & 0x10) == 0;
    if (bVar6) {
      iVar2 = 0x16;
      pbVar3 = (byte *)*param_1;
      pbVar4 = (byte *)".gnu.build.attributes";
      do {
        if (iVar2 == 0) break;
        iVar2 = iVar2 + -1;
        bVar5 = *pbVar3 < *pbVar4;
        bVar6 = *pbVar3 == *pbVar4;
        pbVar3 = pbVar3 + 1;
        pbVar4 = pbVar4 + 1;
      } while (bVar6);
      return (!bVar5 && !bVar6) == bVar5;
    }
  }
  return bVar1;
}

