; LLVM IR from ThePhysicsGuys/Physics3D :: Physics3D/geometry/triangleMeshSSE.ll (ZNK3P3D12TriangleMesh12getBoundsSSEEv)

; 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"

%"struct.P3D::BoundingBoxTemplate" = type { %"struct.P3D::Vector", %"struct.P3D::Vector" }
%"struct.P3D::Vector" = type { %union.anon }
%union.anon = type { [3 x double] }
%"class.P3D::MeshPrototype" = type { %"class.P3D::UniqueAlignedPointer", %"class.P3D::UniqueAlignedPointer.0", i32, i32 }
%"class.P3D::UniqueAlignedPointer" = type { ptr }
%"class.P3D::UniqueAlignedPointer.0" = type { ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3P3D12TriangleMesh12getBoundsSSEEv(ptr dead_on_unwind noalias writable sret(%"struct.P3D::BoundingBoxTemplate") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #0 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca <4 x float>, align 16
  %8 = alloca <4 x float>, align 16
  %9 = alloca <4 x float>, align 16
  %10 = alloca <4 x float>, align 16
  %11 = alloca <4 x float>, align 16
  %12 = alloca <4 x float>, align 16
  %13 = alloca <4 x float>, align 16
  %14 = alloca <4 x float>, align 16
  %15 = alloca <4 x float>, align 16
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca <4 x float>, align 16
  %19 = alloca <4 x float>, align 16
  %20 = alloca <4 x float>, align 16
  store ptr %1, ptr %3, align 8, !tbaa !5
  %21 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %22 = getelementptr inbounds %"class.P3D::MeshPrototype", ptr %21, i32 0, i32 2
  %23 = load i32, ptr %22, align 8, !tbaa !9
  %24 = sext i32 %23 to i64
  store i64 %24, ptr %4, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %25 = load i64, ptr %4, align 8, !tbaa !14
  %26 = call noundef i64 @_ZN3P3DL9getOffsetEm(i64 noundef %25)
  store i64 %26, ptr %5, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %27 = getelementptr inbounds %"class.P3D::MeshPrototype", ptr %21, i32 0, i32 0
  %28 = call noundef ptr @_ZNK3P3D20UniqueAlignedPointerIfEcvPfEv(ptr noundef nonnull align 8 dereferenceable(8) %27)
  store ptr %28, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #5
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef %29)
  store <4 x float> %30, ptr %7, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #5
  %31 = load <4 x float>, ptr %7, align 16, !tbaa !16
  store <4 x float> %31, ptr %8, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #5
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = getelementptr inbounds float, ptr %32, i64 8
  %34 = call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef %33)
  store <4 x float> %34, ptr %9, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  %35 = load <4 x float>, ptr %9, align 16, !tbaa !16
  store <4 x float> %35, ptr %10, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #5
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds float, ptr %36, i64 16
  %38 = call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef %37)
  store <4 x float> %38, ptr %11, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  %39 = load <4 x float>, ptr %11, align 16, !tbaa !16
  store <4 x float> %39, ptr %12, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = getelementptr inbounds float, ptr %40, i64 4
  %42 = call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef %41)
  store <4 x float> %42, ptr %13, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #5
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = getelementptr inbounds float, ptr %43, i64 8
  %45 = getelementptr inbounds float, ptr %44, i64 4
  %46 = call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef %45)
  store <4 x float> %46, ptr %14, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #5
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = getelementptr inbounds float, ptr %47, i64 16
  %49 = getelementptr inbounds float, ptr %48, i64 4
  %50 = call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef %49)
  store <4 x float> %50, ptr %15, align 16, !tbaa !16
  %51 = load <4 x float>, ptr %7, align 16, !tbaa !16
  %52 = load <4 x float>, ptr %13, align 16, !tbaa !16
  %53 = call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %51, <4 x float> noundef %52)
  store <4 x float> %53, ptr %7, align 16, !tbaa !16
  %54 = load <4 x float>, ptr %9, align 16, !tbaa !16
  %55 = load <4 x float>, ptr %14, align 16, !tbaa !16
  %56 = call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %54, <4 x float> noundef %55)
  store <4 x float> %56, ptr %9, align 16, !tbaa !16
  %57 = load <4 x float>, ptr %11, align 16, !tbaa !16
  %58 = load <4 x float>, ptr %15, align 16, !tbaa !16
  %59 = call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %57, <4 x float> noundef %58)
  store <4 x float> %59, ptr %11, align 16, !tbaa !16
  %60 = load <4 x float>, ptr %8, align 16, !tbaa !16
  %61 = load <4 x float>, ptr %13, align 16, !tbaa !16
  %62 = call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %60, <4 x float> noundef %61)
  store <4 x float> %62, ptr %8, align 16, !tbaa !16
  %63 = load <4 x float>, ptr %10, align 16, !tbaa !16
  %64 = load <4 x float>, ptr %14, align 16, !tbaa !16
  %65 = call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %63, <4 x float> noundef %64)
  store <4 x float> %65, ptr %10, align 16, !tbaa !16
  %66 = load <4 x float>, ptr %12, align 16, !tbaa !16
  %67 = load <4 x float>, ptr %15, align 16, !tbaa !16
  %68 = call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %66, <4 x float> noundef %67)
  store <4 x float> %68, ptr %12, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = load i64, ptr %5, align 8, !tbaa !14
  %71 = mul i64 %70, 3
  %72 = getelementptr inbounds float, ptr %69, i64 %71
  store ptr %72, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = getelementptr inbounds float, ptr %73, i64 24
  store ptr %74, ptr %17, align 8, !tbaa !5
  br label %75

75:                                               ; preds = %136, %2
  %76 = load ptr, ptr %17, align 8, !tbaa !5
  %77 = load ptr, ptr %16, align 8, !tbaa !5
  %78 = icmp ne ptr %76, %77
  br i1 %78, label %80, label %79

79:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %139

80:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #5
  %81 = load ptr, ptr %17, align 8, !tbaa !5
  %82 = call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef %81)
  store <4 x float> %82, ptr %18, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #5
  %83 = load ptr, ptr %17, align 8, !tbaa !5
  %84 = getelementptr inbounds float, ptr %83, i64 8
  %85 = call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef %84)
  store <4 x float> %85, ptr %19, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #5
  %86 = load ptr, ptr %17, align 8, !tbaa !5
  %87 = getelementptr inbounds float, ptr %86, i64 16
  %88 = call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef %87)
  store <4 x float> %88, ptr %20, align 16, !tbaa !16
  %89 = load <4 x float>, ptr %7, align 16, !tbaa !16
  %90 = load <4 x float>, ptr %18, align 16, !tbaa !16
  %91 = call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %89, <4 x float> noundef %90)
  store <4 x float> %91, ptr %7, align 16, !tbaa !16
  %92 = load <4 x float>, ptr %9, align 16, !tbaa !16
  %93 = load <4 x float>, ptr %19, align 16, !tbaa !16
  %94 = call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %92, <4 x float> noundef %93)
  store <4 x float> %94, ptr %9, align 16, !tbaa !16
  %95 = load <4 x float>, ptr %11, align 16, !tbaa !16
  %96 = load <4 x float>, ptr %20, align 16, !tbaa !16
  %97 = call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %95, <4 x float> noundef %96)
  store <4 x float> %97, ptr %11, align 16, !tbaa !16
  %98 = load <4 x float>, ptr %8, align 16, !tbaa !16
  %99 = load <4 x float>, ptr %18, align 16, !tbaa !16
  %100 = call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %98, <4 x float> noundef %99)
  store <4 x float> %100, ptr %8, align 16, !tbaa !16
  %101 = load <4 x float>, ptr %10, align 16, !tbaa !16
  %102 = load <4 x float>, ptr %19, align 16, !tbaa !16
  %103 = call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %101, <4 x float> noundef %102)
  store <4 x float> %103, ptr %10, align 16, !tbaa !16
  %104 = load <4 x float>, ptr %12, align 16, !tbaa !16
  %105 = load <4 x float>, ptr %20, align 16, !tbaa !16
  %106 = call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %104, <4 x float> noundef %105)
  store <4 x float> %106, ptr %12, align 16, !tbaa !16
  %107 = load ptr, ptr %17, align 8, !tbaa !5
  %108 = getelementptr inbounds float, ptr %107, i64 4
  %109 = call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef %108)
  store <4 x float> %109, ptr %18, align 16, !tbaa !16
  %110 = load ptr, ptr %17, align 8, !tbaa !5
  %111 = getelementptr inbounds float, ptr %110, i64 8
  %112 = getelementptr inbounds float, ptr %111, i64 4
  %113 = call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef %112)
  store <4 x float> %113, ptr %19, align 16, !tbaa !16
  %114 = load ptr, ptr %17, align 8, !tbaa !5
  %115 = getelementptr inbounds float, ptr %114, i64 16
  %116 = getelementptr inbounds float, ptr %115, i64 4
  %117 = call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef %116)
  store <4 x float> %117, ptr %20, align 16, !tbaa !16
  %118 = load <4 x float>, ptr %7, align 16, !tbaa !16
  %119 = load <4 x float>, ptr %18, align 16, !tbaa !16
  %120 = call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %118, <4 x float> noundef %119)
  store <4 x float> %120, ptr %7, align 16, !tbaa !16
  %121 = load <4 x float>, ptr %9, align 16, !tbaa !16
  %122 = load <4 x float>, ptr %19, align 16, !tbaa !16
  %123 = call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %121, <4 x float> noundef %122)
  store <4 x float> %123, ptr %9, align 16, !tbaa !16
  %124 = load <4 x float>, ptr %11, align 16, !tbaa !16
  %125 = load <4 x float>, ptr %20, align 16, !tbaa !16
  %126 = call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %124, <4 x float> noundef %125)
  store <4 x float> %126, ptr %11, align 16, !tbaa !16
  %127 = load <4 x float>, ptr %8, align 16, !tbaa !16
  %128 = load <4 x float>, ptr %18, align 16, !tbaa !16
  %129 = call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %127, <4 x float> noundef %128)
  store <4 x float> %129, ptr %8, align 16, !tbaa !16
  %130 = load <4 x float>, ptr %10, align 16, !tbaa !16
  %131 = load <4 x float>, ptr %19, align 16, !tbaa !16
  %132 = call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %130, <4 x float> noundef %131)
  store <4 x float> %132, ptr %10, align 16, !tbaa !16
  %133 = load <4 x float>, ptr %12, align 16, !tbaa !16
  %134 = load <4 x float>, ptr %20, align 16, !tbaa !16
  %135 = call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %133, <4 x float> noundef %134)
  store <4 x float> %135, ptr %12, align 16, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  br label %136

136:                                              ; preds = %80
  %137 = load ptr, ptr %17, align 8, !tbaa !5
  %138 = getelementptr inbounds float, ptr %137, i64 24
  store ptr %138, ptr %17, align 8, !tbaa !5
  br label %75, !llvm.loop !17

139:                                              ; preds = %79
  %140 = load <4 x float>, ptr %8, align 16, !tbaa !16
  %141 = load <4 x float>, ptr %7, align 16, !tbaa !16
  %142 = load <4 x float>, ptr %10, align 16, !tbaa !16
  %143 = load <4 x float>, ptr %9, align 16, !tbaa !16
  %144 = load <4 x float>, ptr %12, align 16, !tbaa !16
  %145 = load <4 x float>, ptr %11, align 16, !tbaa !16
  call void @_ZN3P3DL8toBoundsEDv4_fS0_S0_S0_S0_S0_(ptr dead_on_unwind writable sret(%"struct.P3D::BoundingBoxTemplate") align 8 %0, <4 x float> noundef %140, <4 x float> noundef %141, <4 x float> noundef %142, <4 x float> noundef %143, <4 x float> noundef %144, <4 x float> noundef %145)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  ret void
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i64 @_ZN3P3DL9getOffsetEm(i64 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3P3D20UniqueAlignedPointerIfEcvPfEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef) #4

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef, <4 x float> noundef) #4

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef, <4 x float> noundef) #4

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN3P3DL8toBoundsEDv4_fS0_S0_S0_S0_S0_(ptr dead_on_unwind noalias writable sret(%"struct.P3D::BoundingBoxTemplate") align 8, <4 x float> noundef, <4 x float> noundef, <4 x float> noundef, <4 x float> noundef, <4 x float> noundef, <4 x float> noundef) #0

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="128" "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 = { inlinehint 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 #3 = { 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 #4 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="128" "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 #5 = { 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, !13, i64 16}
!10 = !{!"_ZTSN3P3D13MeshPrototypeE", !11, i64 0, !12, i64 8, !13, i64 16, !13, i64 20}
!11 = !{!"_ZTSN3P3D20UniqueAlignedPointerIfEE", !6, i64 0}
!12 = !{!"_ZTSN3P3D20UniqueAlignedPointerIiEE", !6, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


; 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"

%"struct.P3D::BoundingBoxTemplate" = type { %"struct.P3D::Vector", %"struct.P3D::Vector" }
%"struct.P3D::Vector" = type { %union.anon }
%union.anon = type { [3 x double] }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3P3D12TriangleMesh12getBoundsSSEEv(ptr dead_on_unwind noalias writable sret(%"struct.P3D::BoundingBoxTemplate") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1) local_unnamed_addr #0 align 2 {
  %3 = getelementptr inbounds i8, ptr %1, i64 16
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %5 = sext i32 %4 to i64
  %6 = tail call noundef i64 @_ZN3P3DL9getOffsetEm(i64 noundef %5)
  %7 = tail call noundef ptr @_ZNK3P3D20UniqueAlignedPointerIfEcvPfEv(ptr noundef nonnull align 8 dereferenceable(8) %1)
  %8 = tail call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef %7)
  %9 = getelementptr inbounds i8, ptr %7, i64 32
  %10 = tail call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef nonnull %9)
  %11 = getelementptr inbounds i8, ptr %7, i64 64
  %12 = tail call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef nonnull %11)
  %13 = getelementptr inbounds i8, ptr %7, i64 16
  %14 = tail call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef nonnull %13)
  %15 = getelementptr inbounds i8, ptr %7, i64 48
  %16 = tail call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef nonnull %15)
  %17 = getelementptr inbounds i8, ptr %7, i64 80
  %18 = tail call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef nonnull %17)
  %19 = tail call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %8, <4 x float> noundef %14)
  %20 = tail call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %10, <4 x float> noundef %16)
  %21 = tail call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %12, <4 x float> noundef %18)
  %22 = tail call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %8, <4 x float> noundef %14)
  %23 = tail call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %10, <4 x float> noundef %16)
  %24 = tail call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %12, <4 x float> noundef %18)
  %.idx = mul i64 %6, 12
  %25 = getelementptr inbounds i8, ptr %7, i64 %.idx
  %.not71 = icmp eq i64 %.idx, 96
  br i1 %.not71, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %2
  %.06670 = getelementptr inbounds i8, ptr %7, i64 96
  br label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %2
  %.069.lcssa = phi <4 x float> [ %24, %2 ], [ %48, %.lr.ph ]
  %.068.lcssa = phi <4 x float> [ %21, %2 ], [ %45, %.lr.ph ]
  %.067.lcssa = phi <4 x float> [ %23, %2 ], [ %47, %.lr.ph ]
  %.065.lcssa = phi <4 x float> [ %20, %2 ], [ %44, %.lr.ph ]
  %.064.lcssa = phi <4 x float> [ %22, %2 ], [ %46, %.lr.ph ]
  %.0.lcssa = phi <4 x float> [ %19, %2 ], [ %43, %.lr.ph ]
  tail call void @_ZN3P3DL8toBoundsEDv4_fS0_S0_S0_S0_S0_(ptr dead_on_unwind writable sret(%"struct.P3D::BoundingBoxTemplate") align 8 %0, <4 x float> noundef %.064.lcssa, <4 x float> noundef %.0.lcssa, <4 x float> noundef %.067.lcssa, <4 x float> noundef %.065.lcssa, <4 x float> noundef %.069.lcssa, <4 x float> noundef %.068.lcssa)
  ret void

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %.06679 = phi ptr [ %.066, %.lr.ph ], [ %.06670, %.lr.ph.preheader ]
  %.078 = phi <4 x float> [ %43, %.lr.ph ], [ %19, %.lr.ph.preheader ]
  %.06477 = phi <4 x float> [ %46, %.lr.ph ], [ %22, %.lr.ph.preheader ]
  %.06576 = phi <4 x float> [ %44, %.lr.ph ], [ %20, %.lr.ph.preheader ]
  %.pn75 = phi ptr [ %.06679, %.lr.ph ], [ %7, %.lr.ph.preheader ]
  %.06774 = phi <4 x float> [ %47, %.lr.ph ], [ %23, %.lr.ph.preheader ]
  %.06873 = phi <4 x float> [ %45, %.lr.ph ], [ %21, %.lr.ph.preheader ]
  %.06972 = phi <4 x float> [ %48, %.lr.ph ], [ %24, %.lr.ph.preheader ]
  %26 = tail call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef nonnull %.06679)
  %27 = getelementptr inbounds i8, ptr %.pn75, i64 128
  %28 = tail call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef nonnull %27)
  %29 = getelementptr inbounds i8, ptr %.pn75, i64 160
  %30 = tail call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef nonnull %29)
  %31 = tail call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %.078, <4 x float> noundef %26)
  %32 = tail call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %.06576, <4 x float> noundef %28)
  %33 = tail call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %.06873, <4 x float> noundef %30)
  %34 = tail call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %.06477, <4 x float> noundef %26)
  %35 = tail call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %.06774, <4 x float> noundef %28)
  %36 = tail call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %.06972, <4 x float> noundef %30)
  %37 = getelementptr inbounds i8, ptr %.pn75, i64 112
  %38 = tail call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef nonnull %37)
  %39 = getelementptr inbounds i8, ptr %.pn75, i64 144
  %40 = tail call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef nonnull %39)
  %41 = getelementptr inbounds i8, ptr %.pn75, i64 176
  %42 = tail call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef nonnull %41)
  %43 = tail call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %31, <4 x float> noundef %38)
  %44 = tail call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %32, <4 x float> noundef %40)
  %45 = tail call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %33, <4 x float> noundef %42)
  %46 = tail call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %34, <4 x float> noundef %38)
  %47 = tail call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %35, <4 x float> noundef %40)
  %48 = tail call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %36, <4 x float> noundef %42)
  %.066 = getelementptr inbounds i8, ptr %.06679, i64 96
  %.not = icmp eq ptr %.066, %25
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !13
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i64 @_ZN3P3DL9getOffsetEm(i64 noundef) local_unnamed_addr #1

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef, <4 x float> noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef, <4 x float> noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN3P3DL8toBoundsEDv4_fS0_S0_S0_S0_S0_(ptr dead_on_unwind noalias writable sret(%"struct.P3D::BoundingBoxTemplate") align 8, <4 x float> noundef, <4 x float> noundef, <4 x float> noundef, <4 x float> noundef, <4 x float> noundef, <4 x float> noundef) local_unnamed_addr #0

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="128" "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 = { inlinehint 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 = { 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 #3 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="128" "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, !12, i64 16}
!6 = !{!"_ZTSN3P3D13MeshPrototypeE", !7, i64 0, !11, i64 8, !12, i64 16, !12, i64 20}
!7 = !{!"_ZTSN3P3D20UniqueAlignedPointerIfEE", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSN3P3D20UniqueAlignedPointerIiEE", !8, i64 0}
!12 = !{!"int", !9, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


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