; LLVM IR from AF-GRILL/DISPluginForUnreal :: Source/ThirdParty/include/dis7 (IFFFundamentalParameterData)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.DIS::IFFFundamentalParameterData" = type { ptr, float, float, float, float, i32, i8, [3 x i8] }

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZNK3DIS27IFFFundamentalParameterDataeqERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %1) #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca i8, align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %7 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #2
  store i8 1, ptr %5, align 1, !tbaa !9
  %8 = getelementptr inbounds %"class.DIS::IFFFundamentalParameterData", ptr %7, i32 0, i32 1
  %9 = load float, ptr %8, align 8, !tbaa !11
  %10 = load ptr, ptr %4, align 8, !tbaa !5
  %11 = getelementptr inbounds %"class.DIS::IFFFundamentalParameterData", ptr %10, i32 0, i32 1
  %12 = load float, ptr %11, align 8, !tbaa !11
  %13 = fcmp oeq float %9, %12
  br i1 %13, label %15, label %14

14:                                               ; preds = %2
  store i8 0, ptr %5, align 1, !tbaa !9
  br label %15

15:                                               ; preds = %14, %2
  %16 = getelementptr inbounds %"class.DIS::IFFFundamentalParameterData", ptr %7, i32 0, i32 2
  %17 = load float, ptr %16, align 4, !tbaa !15
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %"class.DIS::IFFFundamentalParameterData", ptr %18, i32 0, i32 2
  %20 = load float, ptr %19, align 4, !tbaa !15
  %21 = fcmp oeq float %17, %20
  br i1 %21, label %23, label %22

22:                                               ; preds = %15
  store i8 0, ptr %5, align 1, !tbaa !9
  br label %23

23:                                               ; preds = %22, %15
  %24 = getelementptr inbounds %"class.DIS::IFFFundamentalParameterData", ptr %7, i32 0, i32 3
  %25 = load float, ptr %24, align 8, !tbaa !16
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %"class.DIS::IFFFundamentalParameterData", ptr %26, i32 0, i32 3
  %28 = load float, ptr %27, align 8, !tbaa !16
  %29 = fcmp oeq float %25, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %23
  store i8 0, ptr %5, align 1, !tbaa !9
  br label %31

31:                                               ; preds = %30, %23
  %32 = getelementptr inbounds %"class.DIS::IFFFundamentalParameterData", ptr %7, i32 0, i32 4
  %33 = load float, ptr %32, align 4, !tbaa !17
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %"class.DIS::IFFFundamentalParameterData", ptr %34, i32 0, i32 4
  %36 = load float, ptr %35, align 4, !tbaa !17
  %37 = fcmp oeq float %33, %36
  br i1 %37, label %39, label %38

38:                                               ; preds = %31
  store i8 0, ptr %5, align 1, !tbaa !9
  br label %39

39:                                               ; preds = %38, %31
  %40 = getelementptr inbounds %"class.DIS::IFFFundamentalParameterData", ptr %7, i32 0, i32 5
  %41 = load i32, ptr %40, align 8, !tbaa !18
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %"class.DIS::IFFFundamentalParameterData", ptr %42, i32 0, i32 5
  %44 = load i32, ptr %43, align 8, !tbaa !18
  %45 = icmp eq i32 %41, %44
  br i1 %45, label %47, label %46

46:                                               ; preds = %39
  store i8 0, ptr %5, align 1, !tbaa !9
  br label %47

47:                                               ; preds = %46, %39
  %48 = getelementptr inbounds %"class.DIS::IFFFundamentalParameterData", ptr %7, i32 0, i32 6
  %49 = load i8, ptr %48, align 4, !tbaa !19
  %50 = zext i8 %49 to i32
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds %"class.DIS::IFFFundamentalParameterData", ptr %51, i32 0, i32 6
  %53 = load i8, ptr %52, align 4, !tbaa !19
  %54 = zext i8 %53 to i32
  %55 = icmp eq i32 %50, %54
  br i1 %55, label %57, label %56

56:                                               ; preds = %47
  store i8 0, ptr %5, align 1, !tbaa !9
  br label %57

57:                                               ; preds = %56, %47
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #2
  store i8 0, ptr %6, align 1, !tbaa !20
  br label %58

58:                                               ; preds = %80, %57
  %59 = load i8, ptr %6, align 1, !tbaa !20
  %60 = zext i8 %59 to i32
  %61 = icmp slt i32 %60, 3
  br i1 %61, label %63, label %62

62:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #2
  br label %83

63:                                               ; preds = %58
  %64 = getelementptr inbounds %"class.DIS::IFFFundamentalParameterData", ptr %7, i32 0, i32 7
  %65 = load i8, ptr %6, align 1, !tbaa !20
  %66 = zext i8 %65 to i64
  %67 = getelementptr inbounds [3 x i8], ptr %64, i64 0, i64 %66
  %68 = load i8, ptr %67, align 1, !tbaa !20
  %69 = zext i8 %68 to i32
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = getelementptr inbounds %"class.DIS::IFFFundamentalParameterData", ptr %70, i32 0, i32 7
  %72 = load i8, ptr %6, align 1, !tbaa !20
  %73 = zext i8 %72 to i64
  %74 = getelementptr inbounds [3 x i8], ptr %71, i64 0, i64 %73
  %75 = load i8, ptr %74, align 1, !tbaa !20
  %76 = zext i8 %75 to i32
  %77 = icmp eq i32 %69, %76
  br i1 %77, label %79, label %78

78:                                               ; preds = %63
  store i8 0, ptr %5, align 1, !tbaa !9
  br label %79

79:                                               ; preds = %78, %63
  br label %80

80:                                               ; preds = %79
  %81 = load i8, ptr %6, align 1, !tbaa !20
  %82 = add i8 %81, 1
  store i8 %82, ptr %6, align 1, !tbaa !20
  br label %58, !llvm.loop !21

83:                                               ; preds = %62
  %84 = load i8, ptr %5, align 1, !tbaa !9, !range !23, !noundef !24
  %85 = trunc i8 %84 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #2
  ret i1 %85
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !13, i64 8}
!12 = !{!"_ZTSN3DIS27IFFFundamentalParameterDataE", !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !14, i64 24, !7, i64 28, !7, i64 29}
!13 = !{!"float", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!12, !13, i64 12}
!16 = !{!12, !13, i64 16}
!17 = !{!12, !13, i64 20}
!18 = !{!12, !14, i64 24}
!19 = !{!12, !7, i64 28}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{i8 0, i8 2}
!24 = !{}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable
define dso_local noundef zeroext i1 @_ZNK3DIS27IFFFundamentalParameterDataeqERKS0_(ptr nocapture noundef nonnull readonly align 8 dereferenceable(32) %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(32) %1) local_unnamed_addr #0 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 8
  %4 = getelementptr inbounds i8, ptr %1, i64 8
  %5 = load <4 x float>, ptr %3, align 8, !tbaa !5
  %6 = load <4 x float>, ptr %4, align 8, !tbaa !5
  %7 = fcmp oeq <4 x float> %5, %6
  %8 = getelementptr inbounds i8, ptr %0, i64 24
  %9 = load i32, ptr %8, align 8, !tbaa !9
  %10 = getelementptr inbounds i8, ptr %1, i64 24
  %11 = load i32, ptr %10, align 8, !tbaa !9
  %12 = icmp eq i32 %9, %11
  %13 = getelementptr inbounds i8, ptr %0, i64 28
  %14 = getelementptr inbounds i8, ptr %1, i64 28
  %15 = load <4 x i8>, ptr %13, align 4, !tbaa !12
  %16 = load <4 x i8>, ptr %14, align 4, !tbaa !12
  %17 = icmp eq <4 x i8> %15, %16
  %18 = freeze <4 x i1> %17
  %19 = freeze <4 x i1> %7
  %20 = and <4 x i1> %18, %19
  %21 = bitcast <4 x i1> %20 to i4
  %op.rdx = icmp eq i4 %21, -1
  %op.rdx17 = select i1 %op.rdx, i1 %12, i1 false
  ret i1 %op.rdx17
}

attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 24}
!10 = !{!"_ZTSN3DIS27IFFFundamentalParameterDataE", !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !11, i64 24, !7, i64 28, !7, i64 29}
!11 = !{!"int", !7, i64 0}
!12 = !{!7, !7, i64 0}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LICMPass,LoopRotatePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass