; LLVM IR from AF-GRILL/DISPluginForUnreal :: Source/ThirdParty/include/dis7/EngineFuelReload.ll (ZNK3DIS16EngineFuelReloadeqERKS0_)

; 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::EngineFuelReload" = type <{ ptr, i32, i32, i32, i32, i8, i8, i8, [5 x i8] }>

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZNK3DIS16EngineFuelReloadeqERKS0_(ptr noundef nonnull align 8 dereferenceable(27) %0, ptr noundef nonnull align 8 dereferenceable(27) %1) #0 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %6 = 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
  %7 = getelementptr inbounds %"class.DIS::EngineFuelReload", ptr %6, i32 0, i32 1
  %8 = load i32, ptr %7, align 8, !tbaa !11
  %9 = load ptr, ptr %4, align 8, !tbaa !5
  %10 = getelementptr inbounds %"class.DIS::EngineFuelReload", ptr %9, i32 0, i32 1
  %11 = load i32, ptr %10, align 8, !tbaa !11
  %12 = icmp eq i32 %8, %11
  br i1 %12, label %14, label %13

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

14:                                               ; preds = %13, %2
  %15 = getelementptr inbounds %"class.DIS::EngineFuelReload", ptr %6, i32 0, i32 2
  %16 = load i32, ptr %15, align 4, !tbaa !14
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %"class.DIS::EngineFuelReload", ptr %17, i32 0, i32 2
  %19 = load i32, ptr %18, align 4, !tbaa !14
  %20 = icmp eq i32 %16, %19
  br i1 %20, label %22, label %21

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

22:                                               ; preds = %21, %14
  %23 = getelementptr inbounds %"class.DIS::EngineFuelReload", ptr %6, i32 0, i32 3
  %24 = load i32, ptr %23, align 8, !tbaa !15
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %"class.DIS::EngineFuelReload", ptr %25, i32 0, i32 3
  %27 = load i32, ptr %26, align 8, !tbaa !15
  %28 = icmp eq i32 %24, %27
  br i1 %28, label %30, label %29

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

30:                                               ; preds = %29, %22
  %31 = getelementptr inbounds %"class.DIS::EngineFuelReload", ptr %6, i32 0, i32 4
  %32 = load i32, ptr %31, align 4, !tbaa !16
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %"class.DIS::EngineFuelReload", ptr %33, i32 0, i32 4
  %35 = load i32, ptr %34, align 4, !tbaa !16
  %36 = icmp eq i32 %32, %35
  br i1 %36, label %38, label %37

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

38:                                               ; preds = %37, %30
  %39 = getelementptr inbounds %"class.DIS::EngineFuelReload", ptr %6, i32 0, i32 5
  %40 = load i8, ptr %39, align 8, !tbaa !17
  %41 = zext i8 %40 to i32
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %"class.DIS::EngineFuelReload", ptr %42, i32 0, i32 5
  %44 = load i8, ptr %43, align 8, !tbaa !17
  %45 = zext i8 %44 to i32
  %46 = icmp eq i32 %41, %45
  br i1 %46, label %48, label %47

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

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

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

58:                                               ; preds = %57, %48
  %59 = getelementptr inbounds %"class.DIS::EngineFuelReload", ptr %6, i32 0, i32 7
  %60 = load i8, ptr %59, align 2, !tbaa !19
  %61 = zext i8 %60 to i32
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = getelementptr inbounds %"class.DIS::EngineFuelReload", ptr %62, i32 0, i32 7
  %64 = load i8, ptr %63, align 2, !tbaa !19
  %65 = zext i8 %64 to i32
  %66 = icmp eq i32 %61, %65
  br i1 %66, label %68, label %67

67:                                               ; preds = %58
  store i8 0, ptr %5, align 1, !tbaa !9
  br label %68

68:                                               ; preds = %67, %58
  %69 = load i8, ptr %5, align 1, !tbaa !9, !range !20, !noundef !21
  %70 = trunc i8 %69 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #2
  ret i1 %70
}

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!"_ZTSN3DIS16EngineFuelReloadE", !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !7, i64 24, !7, i64 25, !7, i64 26}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !13, i64 12}
!15 = !{!12, !13, i64 16}
!16 = !{!12, !13, i64 20}
!17 = !{!12, !7, i64 24}
!18 = !{!12, !7, i64 25}
!19 = !{!12, !7, i64 26}
!20 = !{i8 0, i8 2}
!21 = !{}


; 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 @_ZNK3DIS16EngineFuelReloadeqERKS0_(ptr nocapture noundef nonnull readonly align 8 dereferenceable(27) %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(27) %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 i32>, ptr %3, align 8, !tbaa !5
  %6 = load <4 x i32>, ptr %4, align 8, !tbaa !5
  %7 = icmp eq <4 x i32> %5, %6
  %8 = getelementptr inbounds i8, ptr %0, i64 24
  %9 = getelementptr inbounds i8, ptr %1, i64 24
  %10 = load <2 x i8>, ptr %8, align 8, !tbaa !9
  %11 = load <2 x i8>, ptr %9, align 8, !tbaa !9
  %12 = icmp eq <2 x i8> %10, %11
  %.fr = freeze <2 x i1> %12
  %13 = getelementptr inbounds i8, ptr %0, i64 26
  %14 = load i8, ptr %13, align 2, !tbaa !10
  %15 = getelementptr inbounds i8, ptr %1, i64 26
  %16 = load i8, ptr %15, align 2, !tbaa !10
  %17 = icmp eq i8 %14, %16
  %18 = freeze <4 x i1> %7
  %19 = bitcast <4 x i1> %18 to i4
  %20 = icmp eq i4 %19, -1
  %.fr16 = freeze i1 %17
  %op.rdx = and i1 %.fr16, %20
  %21 = extractelement <2 x i1> %.fr, i64 1
  %22 = extractelement <2 x i1> %.fr, i64 0
  %op.rdx14 = and i1 %21, %22
  %op.rdx15 = and i1 %op.rdx, %op.rdx14
  ret i1 %op.rdx15
}

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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !7, i64 26}
!11 = !{!"_ZTSN3DIS16EngineFuelReloadE", !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !7, i64 24, !7, i64 25, !7, i64 26}


; Effective O3 passes: GlobalDCEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass