; LLVM IR from AF-GRILL/DISPluginForUnreal :: Source/ThirdParty/include/dis6/MinefieldDataPdu.ll (ZNK3DIS16MinefieldDataPdueqERKS0_)

; 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::MinefieldDataPdu" = type { %"class.DIS::MinefieldFamilyPdu.base", [4 x i8], %"class.DIS::EntityID", %"class.DIS::EntityID", i16, i8, i8, i8, i8, i8, i8, i32, %"class.DIS::EntityType", %"class.std::vector", i8, %"class.std::vector.0" }
%"class.DIS::MinefieldFamilyPdu.base" = type { %"class.DIS::Pdu.base" }
%"class.DIS::Pdu.base" = type <{ ptr, i8, i8, i8, i8, i32, i16, i16 }>
%"class.DIS::EntityID" = type <{ ptr, i16, i16, i16, [2 x i8] }>
%"class.DIS::EntityType" = type { ptr, i8, i8, i16, i8, i8, i8, i8 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<DIS::TwoByteChunk, std::allocator<DIS::TwoByteChunk>>::_Vector_impl" }
%"struct.std::_Vector_base<DIS::TwoByteChunk, std::allocator<DIS::TwoByteChunk>>::_Vector_impl" = type { %"struct.std::_Vector_base<DIS::TwoByteChunk, std::allocator<DIS::TwoByteChunk>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DIS::TwoByteChunk, std::allocator<DIS::TwoByteChunk>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<DIS::Vector3Float, std::allocator<DIS::Vector3Float>>::_Vector_impl" }
%"struct.std::_Vector_base<DIS::Vector3Float, std::allocator<DIS::Vector3Float>>::_Vector_impl" = type { %"struct.std::_Vector_base<DIS::Vector3Float, std::allocator<DIS::Vector3Float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DIS::Vector3Float, std::allocator<DIS::Vector3Float>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN3DIS12Vector3FloatESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN3DIS12TwoByteChunkESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(10) ptr @_ZNKSt6vectorIN3DIS12TwoByteChunkESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(20) ptr @_ZNKSt6vectorIN3DIS12Vector3FloatESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK3DIS16MinefieldDataPdueqERKS0_(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr noundef nonnull align 8 dereferenceable(144) %1) #2 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %8 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #4
  store i8 1, ptr %5, align 1, !tbaa !9
  %9 = load ptr, ptr %4, align 8, !tbaa !5
  %10 = call noundef zeroext i1 @_ZNK3DIS18MinefieldFamilyPdueqERKS0_(ptr noundef nonnull align 8 dereferenceable(20) %8, ptr noundef nonnull align 8 dereferenceable(20) %9)
  %11 = zext i1 %10 to i8
  store i8 %11, ptr %5, align 1, !tbaa !9
  %12 = getelementptr inbounds %"class.DIS::MinefieldDataPdu", ptr %8, i32 0, i32 2
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds %"class.DIS::MinefieldDataPdu", ptr %13, i32 0, i32 2
  %15 = call noundef zeroext i1 @_ZNK3DIS8EntityIDeqERKS0_(ptr noundef nonnull align 8 dereferenceable(14) %12, ptr noundef nonnull align 8 dereferenceable(14) %14)
  br i1 %15, label %17, label %16

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

17:                                               ; preds = %16, %2
  %18 = getelementptr inbounds %"class.DIS::MinefieldDataPdu", ptr %8, i32 0, i32 3
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %"class.DIS::MinefieldDataPdu", ptr %19, i32 0, i32 3
  %21 = call noundef zeroext i1 @_ZNK3DIS8EntityIDeqERKS0_(ptr noundef nonnull align 8 dereferenceable(14) %18, ptr noundef nonnull align 8 dereferenceable(14) %20)
  br i1 %21, label %23, label %22

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

23:                                               ; preds = %22, %17
  %24 = getelementptr inbounds %"class.DIS::MinefieldDataPdu", ptr %8, i32 0, i32 4
  %25 = load i16, ptr %24, align 8, !tbaa !11
  %26 = zext i16 %25 to i32
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %"class.DIS::MinefieldDataPdu", ptr %27, i32 0, i32 4
  %29 = load i16, ptr %28, align 8, !tbaa !11
  %30 = zext i16 %29 to i32
  %31 = icmp eq i32 %26, %30
  br i1 %31, label %33, label %32

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

33:                                               ; preds = %32, %23
  %34 = getelementptr inbounds %"class.DIS::MinefieldDataPdu", ptr %8, i32 0, i32 5
  %35 = load i8, ptr %34, align 2, !tbaa !27
  %36 = zext i8 %35 to i32
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %"class.DIS::MinefieldDataPdu", ptr %37, i32 0, i32 5
  %39 = load i8, ptr %38, align 2, !tbaa !27
  %40 = zext i8 %39 to i32
  %41 = icmp eq i32 %36, %40
  br i1 %41, label %43, label %42

42:                                               ; preds = %33
  store i8 0, ptr %5, align 1, !tbaa !9
  br label %43

43:                                               ; preds = %42, %33
  %44 = getelementptr inbounds %"class.DIS::MinefieldDataPdu", ptr %8, i32 0, i32 6
  %45 = load i8, ptr %44, align 1, !tbaa !28
  %46 = zext i8 %45 to i32
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds %"class.DIS::MinefieldDataPdu", ptr %47, i32 0, i32 6
  %49 = load i8, ptr %48, align 1, !tbaa !28
  %50 = zext i8 %49 to i32
  %51 = icmp eq i32 %46, %50
  br i1 %51, label %53, label %52

52:                                               ; preds = %43
  store i8 0, ptr %5, align 1, !tbaa !9
  br label %53

53:                                               ; preds = %52, %43
  %54 = getelementptr inbounds %"class.DIS::MinefieldDataPdu", ptr %8, i32 0, i32 7
  %55 = load i8, ptr %54, align 4, !tbaa !29
  %56 = zext i8 %55 to i32
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %"class.DIS::MinefieldDataPdu", ptr %57, i32 0, i32 7
  %59 = load i8, ptr %58, align 4, !tbaa !29
  %60 = zext i8 %59 to i32
  %61 = icmp eq i32 %56, %60
  br i1 %61, label %63, label %62

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

63:                                               ; preds = %62, %53
  %64 = getelementptr inbounds %"class.DIS::MinefieldDataPdu", ptr %8, i32 0, i32 10
  %65 = load i8, ptr %64, align 1, !tbaa !30
  %66 = zext i8 %65 to i32
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = getelementptr inbounds %"class.DIS::MinefieldDataPdu", ptr %67, i32 0, i32 10
  %69 = load i8, ptr %68, align 1, !tbaa !30
  %70 = zext i8 %69 to i32
  %71 = icmp eq i32 %66, %70
  br i1 %71, label %73, label %72

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

73:                                               ; preds = %72, %63
  %74 = getelementptr inbounds %"class.DIS::MinefieldDataPdu", ptr %8, i32 0, i32 11
  %75 = load i32, ptr %74, align 8, !tbaa !31
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = getelementptr inbounds %"class.DIS::MinefieldDataPdu", ptr %76, i32 0, i32 11
  %78 = load i32, ptr %77, align 8, !tbaa !31
  %79 = icmp eq i32 %75, %78
  br i1 %79, label %81, label %80

80:                                               ; preds = %73
  store i8 0, ptr %5, align 1, !tbaa !9
  br label %81

81:                                               ; preds = %80, %73
  %82 = getelementptr inbounds %"class.DIS::MinefieldDataPdu", ptr %8, i32 0, i32 12
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = getelementptr inbounds %"class.DIS::MinefieldDataPdu", ptr %83, i32 0, i32 12
  %85 = call noundef zeroext i1 @_ZNK3DIS10EntityTypeeqERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %82, ptr noundef nonnull align 8 dereferenceable(16) %84)
  br i1 %85, label %87, label %86

86:                                               ; preds = %81
  store i8 0, ptr %5, align 1, !tbaa !9
  br label %87

87:                                               ; preds = %86, %81
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store i64 0, ptr %6, align 8, !tbaa !32
  br label %88

88:                                               ; preds = %105, %87
  %89 = load i64, ptr %6, align 8, !tbaa !32
  %90 = getelementptr inbounds %"class.DIS::MinefieldDataPdu", ptr %8, i32 0, i32 13
  %91 = call noundef i64 @_ZNKSt6vectorIN3DIS12TwoByteChunkESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %90) #4
  %92 = icmp ult i64 %89, %91
  br i1 %92, label %94, label %93

93:                                               ; preds = %88
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %108

94:                                               ; preds = %88
  %95 = getelementptr inbounds %"class.DIS::MinefieldDataPdu", ptr %8, i32 0, i32 13
  %96 = load i64, ptr %6, align 8, !tbaa !32
  %97 = call noundef nonnull align 8 dereferenceable(10) ptr @_ZNKSt6vectorIN3DIS12TwoByteChunkESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %95, i64 noundef %96) #4
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = getelementptr inbounds %"class.DIS::MinefieldDataPdu", ptr %98, i32 0, i32 13
  %100 = load i64, ptr %6, align 8, !tbaa !32
  %101 = call noundef nonnull align 8 dereferenceable(10) ptr @_ZNKSt6vectorIN3DIS12TwoByteChunkESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %99, i64 noundef %100) #4
  %102 = call noundef zeroext i1 @_ZNK3DIS12TwoByteChunkeqERKS0_(ptr noundef nonnull align 8 dereferenceable(10) %97, ptr noundef nonnull align 8 dereferenceable(10) %101)
  br i1 %102, label %104, label %103

103:                                              ; preds = %94
  store i8 0, ptr %5, align 1, !tbaa !9
  br label %104

104:                                              ; preds = %103, %94
  br label %105

105:                                              ; preds = %104
  %106 = load i64, ptr %6, align 8, !tbaa !32
  %107 = add i64 %106, 1
  store i64 %107, ptr %6, align 8, !tbaa !32
  br label %88, !llvm.loop !34

108:                                              ; preds = %93
  %109 = getelementptr inbounds %"class.DIS::MinefieldDataPdu", ptr %8, i32 0, i32 14
  %110 = load i8, ptr %109, align 8, !tbaa !36
  %111 = zext i8 %110 to i32
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = getelementptr inbounds %"class.DIS::MinefieldDataPdu", ptr %112, i32 0, i32 14
  %114 = load i8, ptr %113, align 8, !tbaa !36
  %115 = zext i8 %114 to i32
  %116 = icmp eq i32 %111, %115
  br i1 %116, label %118, label %117

117:                                              ; preds = %108
  store i8 0, ptr %5, align 1, !tbaa !9
  br label %118

118:                                              ; preds = %117, %108
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store i64 0, ptr %7, align 8, !tbaa !32
  br label %119

119:                                              ; preds = %136, %118
  %120 = load i64, ptr %7, align 8, !tbaa !32
  %121 = getelementptr inbounds %"class.DIS::MinefieldDataPdu", ptr %8, i32 0, i32 15
  %122 = call noundef i64 @_ZNKSt6vectorIN3DIS12Vector3FloatESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %121) #4
  %123 = icmp ult i64 %120, %122
  br i1 %123, label %125, label %124

124:                                              ; preds = %119
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %139

125:                                              ; preds = %119
  %126 = getelementptr inbounds %"class.DIS::MinefieldDataPdu", ptr %8, i32 0, i32 15
  %127 = load i64, ptr %7, align 8, !tbaa !32
  %128 = call noundef nonnull align 8 dereferenceable(20) ptr @_ZNKSt6vectorIN3DIS12Vector3FloatESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %126, i64 noundef %127) #4
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  %130 = getelementptr inbounds %"class.DIS::MinefieldDataPdu", ptr %129, i32 0, i32 15
  %131 = load i64, ptr %7, align 8, !tbaa !32
  %132 = call noundef nonnull align 8 dereferenceable(20) ptr @_ZNKSt6vectorIN3DIS12Vector3FloatESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %130, i64 noundef %131) #4
  %133 = call noundef zeroext i1 @_ZNK3DIS12Vector3FloateqERKS0_(ptr noundef nonnull align 8 dereferenceable(20) %128, ptr noundef nonnull align 8 dereferenceable(20) %132)
  br i1 %133, label %135, label %134

134:                                              ; preds = %125
  store i8 0, ptr %5, align 1, !tbaa !9
  br label %135

135:                                              ; preds = %134, %125
  br label %136

136:                                              ; preds = %135
  %137 = load i64, ptr %7, align 8, !tbaa !32
  %138 = add i64 %137, 1
  store i64 %138, ptr %7, align 8, !tbaa !32
  br label %119, !llvm.loop !37

139:                                              ; preds = %124
  %140 = load i8, ptr %5, align 1, !tbaa !9, !range !38, !noundef !39
  %141 = trunc i8 %140 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #4
  ret i1 %141
}

declare noundef zeroext i1 @_ZNK3DIS18MinefieldFamilyPdueqERKS0_(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef nonnull align 8 dereferenceable(20)) #3

declare noundef zeroext i1 @_ZNK3DIS8EntityIDeqERKS0_(ptr noundef nonnull align 8 dereferenceable(14), ptr noundef nonnull align 8 dereferenceable(14)) #3

declare noundef zeroext i1 @_ZNK3DIS10EntityTypeeqERKS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3

declare noundef zeroext i1 @_ZNK3DIS12TwoByteChunkeqERKS0_(ptr noundef nonnull align 8 dereferenceable(10), ptr noundef nonnull align 8 dereferenceable(10)) #3

declare noundef zeroext i1 @_ZNK3DIS12Vector3FloateqERKS0_(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef nonnull align 8 dereferenceable(20)) #3

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 = { mustprogress 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 #3 = { "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 #4 = { 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, !16, i64 56}
!12 = !{!"_ZTSN3DIS16MinefieldDataPduE", !13, i64 0, !17, i64 24, !17, i64 40, !16, i64 56, !7, i64 58, !7, i64 59, !7, i64 60, !7, i64 61, !7, i64 62, !7, i64 63, !15, i64 64, !18, i64 72, !19, i64 88, !7, i64 112, !23, i64 120}
!13 = !{!"_ZTSN3DIS18MinefieldFamilyPduE", !14, i64 0}
!14 = !{!"_ZTSN3DIS3PduE", !7, i64 8, !7, i64 9, !7, i64 10, !7, i64 11, !15, i64 12, !16, i64 16, !16, i64 18}
!15 = !{!"int", !7, i64 0}
!16 = !{!"short", !7, i64 0}
!17 = !{!"_ZTSN3DIS8EntityIDE", !16, i64 8, !16, i64 10, !16, i64 12}
!18 = !{!"_ZTSN3DIS10EntityTypeE", !7, i64 8, !7, i64 9, !16, i64 10, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15}
!19 = !{!"_ZTSSt6vectorIN3DIS12TwoByteChunkESaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIN3DIS12TwoByteChunkESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN3DIS12TwoByteChunkESaIS1_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN3DIS12TwoByteChunkESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"_ZTSSt6vectorIN3DIS12Vector3FloatESaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIN3DIS12Vector3FloatESaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIN3DIS12Vector3FloatESaIS1_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIN3DIS12Vector3FloatESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!12, !7, i64 58}
!28 = !{!12, !7, i64 59}
!29 = !{!12, !7, i64 60}
!30 = !{!12, !7, i64 63}
!31 = !{!12, !15, i64 64}
!32 = !{!33, !33, i64 0}
!33 = !{!"long", !7, i64 0}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = !{!12, !7, i64 112}
!37 = distinct !{!37, !35}
!38 = !{i8 0, i8 2}
!39 = !{}


; 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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN3DIS12Vector3FloatESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN3DIS12TwoByteChunkESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(10) ptr @_ZNKSt6vectorIN3DIS12TwoByteChunkESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(20) ptr @_ZNKSt6vectorIN3DIS12Vector3FloatESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK3DIS16MinefieldDataPdueqERKS0_(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr noundef nonnull align 8 dereferenceable(144) %1) local_unnamed_addr #1 align 2 {
  %3 = tail call noundef zeroext i1 @_ZNK3DIS18MinefieldFamilyPdueqERKS0_(ptr noundef nonnull align 8 dereferenceable(20) %0, ptr noundef nonnull align 8 dereferenceable(20) %1)
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  %5 = getelementptr inbounds i8, ptr %1, i64 24
  %6 = tail call noundef zeroext i1 @_ZNK3DIS8EntityIDeqERKS0_(ptr noundef nonnull align 8 dereferenceable(14) %4, ptr noundef nonnull align 8 dereferenceable(14) %5)
  %narrow = and i1 %3, %6
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  %8 = getelementptr inbounds i8, ptr %1, i64 40
  %9 = tail call noundef zeroext i1 @_ZNK3DIS8EntityIDeqERKS0_(ptr noundef nonnull align 8 dereferenceable(14) %7, ptr noundef nonnull align 8 dereferenceable(14) %8)
  %narrow27 = and i1 %9, %narrow
  %10 = getelementptr inbounds i8, ptr %0, i64 56
  %11 = load i16, ptr %10, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %1, i64 56
  %13 = load i16, ptr %12, align 8, !tbaa !5
  %14 = icmp eq i16 %11, %13
  %narrow28 = and i1 %narrow27, %14
  %15 = getelementptr inbounds i8, ptr %0, i64 58
  %16 = load i8, ptr %15, align 2, !tbaa !24
  %17 = getelementptr inbounds i8, ptr %1, i64 58
  %18 = load i8, ptr %17, align 2, !tbaa !24
  %19 = icmp eq i8 %16, %18
  %20 = getelementptr inbounds i8, ptr %0, i64 59
  %21 = load i8, ptr %20, align 1, !tbaa !25
  %22 = getelementptr inbounds i8, ptr %1, i64 59
  %23 = load i8, ptr %22, align 1, !tbaa !25
  %24 = icmp eq i8 %21, %23
  %25 = getelementptr inbounds i8, ptr %0, i64 60
  %26 = load i8, ptr %25, align 4, !tbaa !26
  %27 = getelementptr inbounds i8, ptr %1, i64 60
  %28 = load i8, ptr %27, align 4, !tbaa !26
  %29 = icmp eq i8 %26, %28
  %30 = getelementptr inbounds i8, ptr %0, i64 63
  %31 = load i8, ptr %30, align 1, !tbaa !27
  %32 = getelementptr inbounds i8, ptr %1, i64 63
  %33 = load i8, ptr %32, align 1, !tbaa !27
  %34 = icmp eq i8 %31, %33
  %35 = getelementptr inbounds i8, ptr %0, i64 64
  %36 = load i32, ptr %35, align 8, !tbaa !28
  %37 = getelementptr inbounds i8, ptr %1, i64 64
  %38 = load i32, ptr %37, align 8, !tbaa !28
  %39 = icmp eq i32 %36, %38
  %40 = getelementptr inbounds i8, ptr %0, i64 72
  %41 = getelementptr inbounds i8, ptr %1, i64 72
  %42 = tail call noundef zeroext i1 @_ZNK3DIS10EntityTypeeqERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %40, ptr noundef nonnull align 8 dereferenceable(16) %41)
  %43 = select i1 %42, i1 %39, i1 false
  %44 = select i1 %43, i1 %34, i1 false
  %45 = select i1 %44, i1 %29, i1 false
  %46 = select i1 %45, i1 %24, i1 false
  %47 = select i1 %46, i1 %19, i1 false
  %narrow34 = select i1 %47, i1 %narrow28, i1 false
  %48 = getelementptr inbounds i8, ptr %0, i64 88
  %49 = tail call noundef i64 @_ZNKSt6vectorIN3DIS12TwoByteChunkESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %48) #3
  %.not = icmp eq i64 %49, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %2
  %50 = getelementptr inbounds i8, ptr %1, i64 88
  br label %59

._crit_edge:                                      ; preds = %59, %2
  %.9.lcssa = phi i1 [ %narrow34, %2 ], [ %spec.select25, %59 ]
  %51 = getelementptr inbounds i8, ptr %0, i64 112
  %52 = load i8, ptr %51, align 8, !tbaa !29
  %53 = getelementptr inbounds i8, ptr %1, i64 112
  %54 = load i8, ptr %53, align 8, !tbaa !29
  %55 = icmp eq i8 %52, %54
  %spec.select24 = select i1 %55, i1 %.9.lcssa, i1 false
  %56 = getelementptr inbounds i8, ptr %0, i64 120
  %57 = tail call noundef i64 @_ZNKSt6vectorIN3DIS12Vector3FloatESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %56) #3
  %.not43 = icmp eq i64 %57, 0
  br i1 %.not43, label %._crit_edge41, label %.lr.ph40

.lr.ph40:                                         ; preds = %._crit_edge
  %58 = getelementptr inbounds i8, ptr %1, i64 120
  br label %66

59:                                               ; preds = %.lr.ph, %59
  %.02236 = phi i64 [ 0, %.lr.ph ], [ %63, %59 ]
  %.935 = phi i1 [ %narrow34, %.lr.ph ], [ %spec.select25, %59 ]
  %60 = tail call noundef nonnull align 8 dereferenceable(10) ptr @_ZNKSt6vectorIN3DIS12TwoByteChunkESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %.02236) #3
  %61 = tail call noundef nonnull align 8 dereferenceable(10) ptr @_ZNKSt6vectorIN3DIS12TwoByteChunkESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef %.02236) #3
  %62 = tail call noundef zeroext i1 @_ZNK3DIS12TwoByteChunkeqERKS0_(ptr noundef nonnull align 8 dereferenceable(10) %60, ptr noundef nonnull align 8 dereferenceable(10) %61)
  %spec.select25 = select i1 %62, i1 %.935, i1 false
  %63 = add nuw i64 %.02236, 1
  %64 = tail call noundef i64 @_ZNKSt6vectorIN3DIS12TwoByteChunkESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %48) #3
  %65 = icmp ult i64 %63, %64
  br i1 %65, label %59, label %._crit_edge, !llvm.loop !30

._crit_edge41:                                    ; preds = %66, %._crit_edge
  %.12.lcssa = phi i1 [ %spec.select24, %._crit_edge ], [ %spec.select26, %66 ]
  ret i1 %.12.lcssa

66:                                               ; preds = %.lr.ph40, %66
  %.038 = phi i64 [ 0, %.lr.ph40 ], [ %70, %66 ]
  %.1237 = phi i1 [ %spec.select24, %.lr.ph40 ], [ %spec.select26, %66 ]
  %67 = tail call noundef nonnull align 8 dereferenceable(20) ptr @_ZNKSt6vectorIN3DIS12Vector3FloatESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %56, i64 noundef %.038) #3
  %68 = tail call noundef nonnull align 8 dereferenceable(20) ptr @_ZNKSt6vectorIN3DIS12Vector3FloatESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef %.038) #3
  %69 = tail call noundef zeroext i1 @_ZNK3DIS12Vector3FloateqERKS0_(ptr noundef nonnull align 8 dereferenceable(20) %67, ptr noundef nonnull align 8 dereferenceable(20) %68)
  %spec.select26 = select i1 %69, i1 %.1237, i1 false
  %70 = add nuw i64 %.038, 1
  %71 = tail call noundef i64 @_ZNKSt6vectorIN3DIS12Vector3FloatESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %56) #3
  %72 = icmp ult i64 %70, %71
  br i1 %72, label %66, label %._crit_edge41, !llvm.loop !32
}

declare noundef zeroext i1 @_ZNK3DIS18MinefieldFamilyPdueqERKS0_(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef nonnull align 8 dereferenceable(20)) local_unnamed_addr #2

declare noundef zeroext i1 @_ZNK3DIS8EntityIDeqERKS0_(ptr noundef nonnull align 8 dereferenceable(14), ptr noundef nonnull align 8 dereferenceable(14)) local_unnamed_addr #2

declare noundef zeroext i1 @_ZNK3DIS10EntityTypeeqERKS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2

declare noundef zeroext i1 @_ZNK3DIS12TwoByteChunkeqERKS0_(ptr noundef nonnull align 8 dereferenceable(10), ptr noundef nonnull align 8 dereferenceable(10)) local_unnamed_addr #2

declare noundef zeroext i1 @_ZNK3DIS12Vector3FloateqERKS0_(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef nonnull align 8 dereferenceable(20)) local_unnamed_addr #2

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 = { mustprogress 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 = { "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 #3 = { 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, !12, i64 56}
!6 = !{!"_ZTSN3DIS16MinefieldDataPduE", !7, i64 0, !13, i64 24, !13, i64 40, !12, i64 56, !9, i64 58, !9, i64 59, !9, i64 60, !9, i64 61, !9, i64 62, !9, i64 63, !11, i64 64, !14, i64 72, !15, i64 88, !9, i64 112, !20, i64 120}
!7 = !{!"_ZTSN3DIS18MinefieldFamilyPduE", !8, i64 0}
!8 = !{!"_ZTSN3DIS3PduE", !9, i64 8, !9, i64 9, !9, i64 10, !9, i64 11, !11, i64 12, !12, i64 16, !12, i64 18}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"short", !9, i64 0}
!13 = !{!"_ZTSN3DIS8EntityIDE", !12, i64 8, !12, i64 10, !12, i64 12}
!14 = !{!"_ZTSN3DIS10EntityTypeE", !9, i64 8, !9, i64 9, !12, i64 10, !9, i64 12, !9, i64 13, !9, i64 14, !9, i64 15}
!15 = !{!"_ZTSSt6vectorIN3DIS12TwoByteChunkESaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIN3DIS12TwoByteChunkESaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN3DIS12TwoByteChunkESaIS1_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN3DIS12TwoByteChunkESaIS1_EE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!19 = !{!"any pointer", !9, i64 0}
!20 = !{!"_ZTSSt6vectorIN3DIS12Vector3FloatESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIN3DIS12Vector3FloatESaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN3DIS12Vector3FloatESaIS1_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN3DIS12Vector3FloatESaIS1_EE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!24 = !{!6, !9, i64 58}
!25 = !{!6, !9, i64 59}
!26 = !{!6, !9, i64 60}
!27 = !{!6, !9, i64 63}
!28 = !{!6, !11, i64 64}
!29 = !{!6, !9, i64 112}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = distinct !{!32, !31}


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass