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

; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef) #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) #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) #3

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

; 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) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3P3D12TriangleMesh12getBoundsSSEERKNS_6MatrixIfLm3ELm3EEE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::BoundingBoxTemplate") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(36) %2) #4 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca <4 x float>, align 16
  %19 = alloca <4 x float>, align 16
  %20 = alloca <4 x float>, align 16
  %21 = alloca <4 x float>, align 16
  %22 = alloca <4 x float>, align 16
  %23 = alloca <4 x float>, align 16
  %24 = alloca <4 x float>, align 16
  %25 = alloca <4 x float>, align 16
  %26 = alloca <4 x float>, align 16
  %27 = alloca <4 x float>, align 16
  %28 = alloca <4 x float>, align 16
  %29 = alloca <4 x float>, align 16
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca <4 x float>, align 16
  %33 = alloca <4 x float>, align 16
  %34 = alloca <4 x float>, align 16
  %35 = alloca <4 x float>, align 16
  %36 = alloca <4 x float>, align 16
  %37 = alloca <4 x float>, align 16
  store ptr %1, ptr %4, align 8, !tbaa !5
  store ptr %2, ptr %5, align 8, !tbaa !5
  %38 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %39 = getelementptr inbounds %"class.P3D::MeshPrototype", ptr %38, i32 0, i32 2
  %40 = load i32, ptr %39, align 8, !tbaa !9
  %41 = sext i32 %40 to i64
  store i64 %41, ptr %6, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %42 = load i64, ptr %6, align 8, !tbaa !14
  %43 = call noundef i64 @_ZN3P3DL9getOffsetEm(i64 noundef %42)
  store i64 %43, ptr %7, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %44 = getelementptr inbounds %"class.P3D::MeshPrototype", ptr %38, i32 0, i32 0
  %45 = call noundef ptr @_ZNK3P3D20UniqueAlignedPointerIfEcvPfEv(ptr noundef nonnull align 8 dereferenceable(8) %44)
  store ptr %45, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = call noundef float @_ZNK3P3D6MatrixIfLm3ELm3EEclEmm(ptr noundef nonnull align 4 dereferenceable(36) %46, i64 noundef 0, i64 noundef 0)
  store float %47, ptr %9, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = call noundef float @_ZNK3P3D6MatrixIfLm3ELm3EEclEmm(ptr noundef nonnull align 4 dereferenceable(36) %48, i64 noundef 0, i64 noundef 1)
  store float %49, ptr %10, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = call noundef float @_ZNK3P3D6MatrixIfLm3ELm3EEclEmm(ptr noundef nonnull align 4 dereferenceable(36) %50, i64 noundef 0, i64 noundef 2)
  store float %51, ptr %11, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = call noundef float @_ZNK3P3D6MatrixIfLm3ELm3EEclEmm(ptr noundef nonnull align 4 dereferenceable(36) %52, i64 noundef 1, i64 noundef 0)
  store float %53, ptr %12, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = call noundef float @_ZNK3P3D6MatrixIfLm3ELm3EEclEmm(ptr noundef nonnull align 4 dereferenceable(36) %54, i64 noundef 1, i64 noundef 1)
  store float %55, ptr %13, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = call noundef float @_ZNK3P3D6MatrixIfLm3ELm3EEclEmm(ptr noundef nonnull align 4 dereferenceable(36) %56, i64 noundef 1, i64 noundef 2)
  store float %57, ptr %14, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = call noundef float @_ZNK3P3D6MatrixIfLm3ELm3EEclEmm(ptr noundef nonnull align 4 dereferenceable(36) %58, i64 noundef 2, i64 noundef 0)
  store float %59, ptr %15, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = call noundef float @_ZNK3P3D6MatrixIfLm3ELm3EEclEmm(ptr noundef nonnull align 4 dereferenceable(36) %60, i64 noundef 2, i64 noundef 1)
  store float %61, ptr %16, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = call noundef float @_ZNK3P3D6MatrixIfLm3ELm3EEclEmm(ptr noundef nonnull align 4 dereferenceable(36) %62, i64 noundef 2, i64 noundef 2)
  store float %63, ptr %17, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #5
  %64 = load ptr, ptr %8, align 8, !tbaa !5
  %65 = call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef %64)
  store <4 x float> %65, ptr %18, align 16, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #5
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = getelementptr inbounds float, ptr %66, i64 8
  %68 = call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef %67)
  store <4 x float> %68, ptr %19, align 16, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #5
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  %70 = getelementptr inbounds float, ptr %69, i64 16
  %71 = call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef %70)
  store <4 x float> %71, ptr %20, align 16, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #5
  %72 = load float, ptr %11, align 4, !tbaa !16
  %73 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %72)
  %74 = load <4 x float>, ptr %20, align 16, !tbaa !18
  %75 = load float, ptr %10, align 4, !tbaa !16
  %76 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %75)
  %77 = load <4 x float>, ptr %19, align 16, !tbaa !18
  %78 = load float, ptr %9, align 4, !tbaa !16
  %79 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %78)
  %80 = load <4 x float>, ptr %18, align 16, !tbaa !18
  %81 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %79, <4 x float> noundef %80)
  %82 = call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %76, <4 x float> noundef %77, <4 x float> noundef %81)
  %83 = call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %73, <4 x float> noundef %74, <4 x float> noundef %82)
  store <4 x float> %83, ptr %21, align 16, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #5
  %84 = load float, ptr %14, align 4, !tbaa !16
  %85 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %84)
  %86 = load <4 x float>, ptr %20, align 16, !tbaa !18
  %87 = load float, ptr %13, align 4, !tbaa !16
  %88 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %87)
  %89 = load <4 x float>, ptr %19, align 16, !tbaa !18
  %90 = load float, ptr %12, align 4, !tbaa !16
  %91 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %90)
  %92 = load <4 x float>, ptr %18, align 16, !tbaa !18
  %93 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %91, <4 x float> noundef %92)
  %94 = call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %88, <4 x float> noundef %89, <4 x float> noundef %93)
  %95 = call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %85, <4 x float> noundef %86, <4 x float> noundef %94)
  store <4 x float> %95, ptr %22, align 16, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #5
  %96 = load float, ptr %17, align 4, !tbaa !16
  %97 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %96)
  %98 = load <4 x float>, ptr %20, align 16, !tbaa !18
  %99 = load float, ptr %16, align 4, !tbaa !16
  %100 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %99)
  %101 = load <4 x float>, ptr %19, align 16, !tbaa !18
  %102 = load float, ptr %15, align 4, !tbaa !16
  %103 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %102)
  %104 = load <4 x float>, ptr %18, align 16, !tbaa !18
  %105 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %103, <4 x float> noundef %104)
  %106 = call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %100, <4 x float> noundef %101, <4 x float> noundef %105)
  %107 = call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %97, <4 x float> noundef %98, <4 x float> noundef %106)
  store <4 x float> %107, ptr %23, align 16, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #5
  %108 = load <4 x float>, ptr %21, align 16, !tbaa !18
  store <4 x float> %108, ptr %24, align 16, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #5
  %109 = load <4 x float>, ptr %22, align 16, !tbaa !18
  store <4 x float> %109, ptr %25, align 16, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #5
  %110 = load <4 x float>, ptr %23, align 16, !tbaa !18
  store <4 x float> %110, ptr %26, align 16, !tbaa !18
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %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 %18, align 16, !tbaa !18
  %114 = load ptr, ptr %8, align 8, !tbaa !5
  %115 = getelementptr inbounds float, ptr %114, i64 8
  %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 %19, align 16, !tbaa !18
  %118 = load ptr, ptr %8, align 8, !tbaa !5
  %119 = getelementptr inbounds float, ptr %118, i64 16
  %120 = getelementptr inbounds float, ptr %119, i64 4
  %121 = call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef %120)
  store <4 x float> %121, ptr %20, align 16, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #5
  %122 = load float, ptr %11, align 4, !tbaa !16
  %123 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %122)
  %124 = load <4 x float>, ptr %20, align 16, !tbaa !18
  %125 = load float, ptr %10, align 4, !tbaa !16
  %126 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %125)
  %127 = load <4 x float>, ptr %19, align 16, !tbaa !18
  %128 = load float, ptr %9, align 4, !tbaa !16
  %129 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %128)
  %130 = load <4 x float>, ptr %18, align 16, !tbaa !18
  %131 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %129, <4 x float> noundef %130)
  %132 = call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %126, <4 x float> noundef %127, <4 x float> noundef %131)
  %133 = call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %123, <4 x float> noundef %124, <4 x float> noundef %132)
  store <4 x float> %133, ptr %27, align 16, !tbaa !18
  %134 = load <4 x float>, ptr %21, align 16, !tbaa !18
  %135 = load <4 x float>, ptr %27, align 16, !tbaa !18
  %136 = call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %134, <4 x float> noundef %135)
  store <4 x float> %136, ptr %21, align 16, !tbaa !18
  %137 = load <4 x float>, ptr %24, align 16, !tbaa !18
  %138 = load <4 x float>, ptr %27, align 16, !tbaa !18
  %139 = call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %137, <4 x float> noundef %138)
  store <4 x float> %139, ptr %24, align 16, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #5
  %140 = load float, ptr %14, align 4, !tbaa !16
  %141 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %140)
  %142 = load <4 x float>, ptr %20, align 16, !tbaa !18
  %143 = load float, ptr %13, align 4, !tbaa !16
  %144 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %143)
  %145 = load <4 x float>, ptr %19, align 16, !tbaa !18
  %146 = load float, ptr %12, align 4, !tbaa !16
  %147 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %146)
  %148 = load <4 x float>, ptr %18, align 16, !tbaa !18
  %149 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %147, <4 x float> noundef %148)
  %150 = call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %144, <4 x float> noundef %145, <4 x float> noundef %149)
  %151 = call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %141, <4 x float> noundef %142, <4 x float> noundef %150)
  store <4 x float> %151, ptr %28, align 16, !tbaa !18
  %152 = load <4 x float>, ptr %22, align 16, !tbaa !18
  %153 = load <4 x float>, ptr %28, align 16, !tbaa !18
  %154 = call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %152, <4 x float> noundef %153)
  store <4 x float> %154, ptr %22, align 16, !tbaa !18
  %155 = load <4 x float>, ptr %25, align 16, !tbaa !18
  %156 = load <4 x float>, ptr %28, align 16, !tbaa !18
  %157 = call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %155, <4 x float> noundef %156)
  store <4 x float> %157, ptr %25, align 16, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #5
  %158 = load float, ptr %17, align 4, !tbaa !16
  %159 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %158)
  %160 = load <4 x float>, ptr %20, align 16, !tbaa !18
  %161 = load float, ptr %16, align 4, !tbaa !16
  %162 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %161)
  %163 = load <4 x float>, ptr %19, align 16, !tbaa !18
  %164 = load float, ptr %15, align 4, !tbaa !16
  %165 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %164)
  %166 = load <4 x float>, ptr %18, align 16, !tbaa !18
  %167 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %165, <4 x float> noundef %166)
  %168 = call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %162, <4 x float> noundef %163, <4 x float> noundef %167)
  %169 = call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %159, <4 x float> noundef %160, <4 x float> noundef %168)
  store <4 x float> %169, ptr %29, align 16, !tbaa !18
  %170 = load <4 x float>, ptr %23, align 16, !tbaa !18
  %171 = load <4 x float>, ptr %29, align 16, !tbaa !18
  %172 = call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %170, <4 x float> noundef %171)
  store <4 x float> %172, ptr %23, align 16, !tbaa !18
  %173 = load <4 x float>, ptr %26, align 16, !tbaa !18
  %174 = load <4 x float>, ptr %29, align 16, !tbaa !18
  %175 = call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %173, <4 x float> noundef %174)
  store <4 x float> %175, ptr %26, align 16, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  %176 = load ptr, ptr %8, align 8, !tbaa !5
  %177 = load i64, ptr %7, align 8, !tbaa !14
  %178 = mul i64 %177, 3
  %179 = getelementptr inbounds float, ptr %176, i64 %178
  store ptr %179, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  %180 = load ptr, ptr %8, align 8, !tbaa !5
  %181 = getelementptr inbounds float, ptr %180, i64 24
  store ptr %181, ptr %31, align 8, !tbaa !5
  br label %182

182:                                              ; preds = %315, %3
  %183 = load ptr, ptr %31, align 8, !tbaa !5
  %184 = load ptr, ptr %30, align 8, !tbaa !5
  %185 = icmp ne ptr %183, %184
  br i1 %185, label %187, label %186

186:                                              ; preds = %182
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  br label %318

187:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #5
  %188 = load ptr, ptr %31, align 8, !tbaa !5
  %189 = call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef %188)
  store <4 x float> %189, ptr %32, align 16, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #5
  %190 = load ptr, ptr %31, align 8, !tbaa !5
  %191 = getelementptr inbounds float, ptr %190, i64 8
  %192 = call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef %191)
  store <4 x float> %192, ptr %33, align 16, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #5
  %193 = load ptr, ptr %31, align 8, !tbaa !5
  %194 = getelementptr inbounds float, ptr %193, i64 16
  %195 = call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef %194)
  store <4 x float> %195, ptr %34, align 16, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #5
  %196 = load float, ptr %11, align 4, !tbaa !16
  %197 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %196)
  %198 = load <4 x float>, ptr %34, align 16, !tbaa !18
  %199 = load float, ptr %10, align 4, !tbaa !16
  %200 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %199)
  %201 = load <4 x float>, ptr %33, align 16, !tbaa !18
  %202 = load float, ptr %9, align 4, !tbaa !16
  %203 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %202)
  %204 = load <4 x float>, ptr %32, align 16, !tbaa !18
  %205 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %203, <4 x float> noundef %204)
  %206 = call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %200, <4 x float> noundef %201, <4 x float> noundef %205)
  %207 = call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %197, <4 x float> noundef %198, <4 x float> noundef %206)
  store <4 x float> %207, ptr %35, align 16, !tbaa !18
  %208 = load <4 x float>, ptr %21, align 16, !tbaa !18
  %209 = load <4 x float>, ptr %35, align 16, !tbaa !18
  %210 = call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %208, <4 x float> noundef %209)
  store <4 x float> %210, ptr %21, align 16, !tbaa !18
  %211 = load <4 x float>, ptr %24, align 16, !tbaa !18
  %212 = load <4 x float>, ptr %35, align 16, !tbaa !18
  %213 = call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %211, <4 x float> noundef %212)
  store <4 x float> %213, ptr %24, align 16, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #5
  %214 = load float, ptr %14, align 4, !tbaa !16
  %215 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %214)
  %216 = load <4 x float>, ptr %34, align 16, !tbaa !18
  %217 = load float, ptr %13, align 4, !tbaa !16
  %218 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %217)
  %219 = load <4 x float>, ptr %33, align 16, !tbaa !18
  %220 = load float, ptr %12, align 4, !tbaa !16
  %221 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %220)
  %222 = load <4 x float>, ptr %32, align 16, !tbaa !18
  %223 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %221, <4 x float> noundef %222)
  %224 = call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %218, <4 x float> noundef %219, <4 x float> noundef %223)
  %225 = call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %215, <4 x float> noundef %216, <4 x float> noundef %224)
  store <4 x float> %225, ptr %36, align 16, !tbaa !18
  %226 = load <4 x float>, ptr %22, align 16, !tbaa !18
  %227 = load <4 x float>, ptr %36, align 16, !tbaa !18
  %228 = call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %226, <4 x float> noundef %227)
  store <4 x float> %228, ptr %22, align 16, !tbaa !18
  %229 = load <4 x float>, ptr %25, align 16, !tbaa !18
  %230 = load <4 x float>, ptr %36, align 16, !tbaa !18
  %231 = call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %229, <4 x float> noundef %230)
  store <4 x float> %231, ptr %25, align 16, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #5
  %232 = load float, ptr %17, align 4, !tbaa !16
  %233 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %232)
  %234 = load <4 x float>, ptr %34, align 16, !tbaa !18
  %235 = load float, ptr %16, align 4, !tbaa !16
  %236 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %235)
  %237 = load <4 x float>, ptr %33, align 16, !tbaa !18
  %238 = load float, ptr %15, align 4, !tbaa !16
  %239 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %238)
  %240 = load <4 x float>, ptr %32, align 16, !tbaa !18
  %241 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %239, <4 x float> noundef %240)
  %242 = call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %236, <4 x float> noundef %237, <4 x float> noundef %241)
  %243 = call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %233, <4 x float> noundef %234, <4 x float> noundef %242)
  store <4 x float> %243, ptr %37, align 16, !tbaa !18
  %244 = load <4 x float>, ptr %23, align 16, !tbaa !18
  %245 = load <4 x float>, ptr %37, align 16, !tbaa !18
  %246 = call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %244, <4 x float> noundef %245)
  store <4 x float> %246, ptr %23, align 16, !tbaa !18
  %247 = load <4 x float>, ptr %26, align 16, !tbaa !18
  %248 = load <4 x float>, ptr %37, align 16, !tbaa !18
  %249 = call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %247, <4 x float> noundef %248)
  store <4 x float> %249, ptr %26, align 16, !tbaa !18
  %250 = load ptr, ptr %31, align 8, !tbaa !5
  %251 = getelementptr inbounds float, ptr %250, i64 4
  %252 = call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef %251)
  store <4 x float> %252, ptr %32, align 16, !tbaa !18
  %253 = load ptr, ptr %31, align 8, !tbaa !5
  %254 = getelementptr inbounds float, ptr %253, i64 8
  %255 = getelementptr inbounds float, ptr %254, i64 4
  %256 = call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef %255)
  store <4 x float> %256, ptr %33, align 16, !tbaa !18
  %257 = load ptr, ptr %31, align 8, !tbaa !5
  %258 = getelementptr inbounds float, ptr %257, i64 16
  %259 = getelementptr inbounds float, ptr %258, i64 4
  %260 = call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef %259)
  store <4 x float> %260, ptr %34, align 16, !tbaa !18
  %261 = load float, ptr %11, align 4, !tbaa !16
  %262 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %261)
  %263 = load <4 x float>, ptr %34, align 16, !tbaa !18
  %264 = load float, ptr %10, align 4, !tbaa !16
  %265 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %264)
  %266 = load <4 x float>, ptr %33, align 16, !tbaa !18
  %267 = load float, ptr %9, align 4, !tbaa !16
  %268 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %267)
  %269 = load <4 x float>, ptr %32, align 16, !tbaa !18
  %270 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %268, <4 x float> noundef %269)
  %271 = call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %265, <4 x float> noundef %266, <4 x float> noundef %270)
  %272 = call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %262, <4 x float> noundef %263, <4 x float> noundef %271)
  store <4 x float> %272, ptr %35, align 16, !tbaa !18
  %273 = load <4 x float>, ptr %21, align 16, !tbaa !18
  %274 = load <4 x float>, ptr %35, align 16, !tbaa !18
  %275 = call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %273, <4 x float> noundef %274)
  store <4 x float> %275, ptr %21, align 16, !tbaa !18
  %276 = load <4 x float>, ptr %24, align 16, !tbaa !18
  %277 = load <4 x float>, ptr %35, align 16, !tbaa !18
  %278 = call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %276, <4 x float> noundef %277)
  store <4 x float> %278, ptr %24, align 16, !tbaa !18
  %279 = load float, ptr %14, align 4, !tbaa !16
  %280 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %279)
  %281 = load <4 x float>, ptr %34, align 16, !tbaa !18
  %282 = load float, ptr %13, align 4, !tbaa !16
  %283 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %282)
  %284 = load <4 x float>, ptr %33, align 16, !tbaa !18
  %285 = load float, ptr %12, align 4, !tbaa !16
  %286 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %285)
  %287 = load <4 x float>, ptr %32, align 16, !tbaa !18
  %288 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %286, <4 x float> noundef %287)
  %289 = call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %283, <4 x float> noundef %284, <4 x float> noundef %288)
  %290 = call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %280, <4 x float> noundef %281, <4 x float> noundef %289)
  store <4 x float> %290, ptr %36, align 16, !tbaa !18
  %291 = load <4 x float>, ptr %22, align 16, !tbaa !18
  %292 = load <4 x float>, ptr %36, align 16, !tbaa !18
  %293 = call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %291, <4 x float> noundef %292)
  store <4 x float> %293, ptr %22, align 16, !tbaa !18
  %294 = load <4 x float>, ptr %25, align 16, !tbaa !18
  %295 = load <4 x float>, ptr %36, align 16, !tbaa !18
  %296 = call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %294, <4 x float> noundef %295)
  store <4 x float> %296, ptr %25, align 16, !tbaa !18
  %297 = load float, ptr %17, align 4, !tbaa !16
  %298 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %297)
  %299 = load <4 x float>, ptr %34, align 16, !tbaa !18
  %300 = load float, ptr %16, align 4, !tbaa !16
  %301 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %300)
  %302 = load <4 x float>, ptr %33, align 16, !tbaa !18
  %303 = load float, ptr %15, align 4, !tbaa !16
  %304 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %303)
  %305 = load <4 x float>, ptr %32, align 16, !tbaa !18
  %306 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %304, <4 x float> noundef %305)
  %307 = call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %301, <4 x float> noundef %302, <4 x float> noundef %306)
  %308 = call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %298, <4 x float> noundef %299, <4 x float> noundef %307)
  store <4 x float> %308, ptr %37, align 16, !tbaa !18
  %309 = load <4 x float>, ptr %23, align 16, !tbaa !18
  %310 = load <4 x float>, ptr %37, align 16, !tbaa !18
  %311 = call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %309, <4 x float> noundef %310)
  store <4 x float> %311, ptr %23, align 16, !tbaa !18
  %312 = load <4 x float>, ptr %26, align 16, !tbaa !18
  %313 = load <4 x float>, ptr %37, align 16, !tbaa !18
  %314 = call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %312, <4 x float> noundef %313)
  store <4 x float> %314, ptr %26, align 16, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #5
  br label %315

315:                                              ; preds = %187
  %316 = load ptr, ptr %31, align 8, !tbaa !5
  %317 = getelementptr inbounds float, ptr %316, i64 24
  store ptr %317, ptr %31, align 8, !tbaa !5
  br label %182, !llvm.loop !19

318:                                              ; preds = %186
  %319 = load <4 x float>, ptr %21, align 16, !tbaa !18
  %320 = load <4 x float>, ptr %24, align 16, !tbaa !18
  %321 = load <4 x float>, ptr %22, align 16, !tbaa !18
  %322 = load <4 x float>, ptr %25, align 16, !tbaa !18
  %323 = load <4 x float>, ptr %23, align 16, !tbaa !18
  %324 = load <4 x float>, ptr %26, align 16, !tbaa !18
  call void @_ZN3P3DL8toBoundsEDv4_fS0_S0_S0_S0_S0_(ptr dead_on_unwind writable sret(%"struct.P3D::BoundingBoxTemplate") align 8 %0, <4 x float> noundef %319, <4 x float> noundef %320, <4 x float> noundef %321, <4 x float> noundef %322, <4 x float> noundef %323, <4 x float> noundef %324)
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #5
  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
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3P3D6MatrixIfLm3ELm3EEclEmm(ptr noundef nonnull align 4 dereferenceable(36), i64 noundef, i64 noundef) #1 align 2

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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" }
attributes #4 = { 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 #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 = !{!17, !17, i64 0}
!17 = !{!"float", !7, i64 0}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"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: inlinehint mustprogress nounwind uwtable
declare hidden noundef i64 @_ZN3P3DL9getOffsetEm(i64 noundef) local_unnamed_addr #0

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

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

; 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 #2

; 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 #2

; 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 #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3P3D12TriangleMesh12getBoundsSSEERKNS_6MatrixIfLm3ELm3EEE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::BoundingBoxTemplate") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(36) %2) local_unnamed_addr #3 align 2 {
  %4 = getelementptr inbounds i8, ptr %1, i64 16
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = sext i32 %5 to i64
  %7 = tail call noundef i64 @_ZN3P3DL9getOffsetEm(i64 noundef %6)
  %8 = tail call noundef ptr @_ZNK3P3D20UniqueAlignedPointerIfEcvPfEv(ptr noundef nonnull align 8 dereferenceable(8) %1)
  %9 = tail call noundef float @_ZNK3P3D6MatrixIfLm3ELm3EEclEmm(ptr noundef nonnull align 4 dereferenceable(36) %2, i64 noundef 0, i64 noundef 0)
  %10 = tail call noundef float @_ZNK3P3D6MatrixIfLm3ELm3EEclEmm(ptr noundef nonnull align 4 dereferenceable(36) %2, i64 noundef 0, i64 noundef 1)
  %11 = tail call noundef float @_ZNK3P3D6MatrixIfLm3ELm3EEclEmm(ptr noundef nonnull align 4 dereferenceable(36) %2, i64 noundef 0, i64 noundef 2)
  %12 = tail call noundef float @_ZNK3P3D6MatrixIfLm3ELm3EEclEmm(ptr noundef nonnull align 4 dereferenceable(36) %2, i64 noundef 1, i64 noundef 0)
  %13 = tail call noundef float @_ZNK3P3D6MatrixIfLm3ELm3EEclEmm(ptr noundef nonnull align 4 dereferenceable(36) %2, i64 noundef 1, i64 noundef 1)
  %14 = tail call noundef float @_ZNK3P3D6MatrixIfLm3ELm3EEclEmm(ptr noundef nonnull align 4 dereferenceable(36) %2, i64 noundef 1, i64 noundef 2)
  %15 = tail call noundef float @_ZNK3P3D6MatrixIfLm3ELm3EEclEmm(ptr noundef nonnull align 4 dereferenceable(36) %2, i64 noundef 2, i64 noundef 0)
  %16 = tail call noundef float @_ZNK3P3D6MatrixIfLm3ELm3EEclEmm(ptr noundef nonnull align 4 dereferenceable(36) %2, i64 noundef 2, i64 noundef 1)
  %17 = tail call noundef float @_ZNK3P3D6MatrixIfLm3ELm3EEclEmm(ptr noundef nonnull align 4 dereferenceable(36) %2, i64 noundef 2, i64 noundef 2)
  %18 = tail call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef %8)
  %19 = getelementptr inbounds i8, ptr %8, i64 32
  %20 = tail call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef nonnull %19)
  %21 = getelementptr inbounds i8, ptr %8, i64 64
  %22 = tail call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef nonnull %21)
  %23 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %11)
  %24 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %10)
  %25 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %9)
  %26 = tail call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %25, <4 x float> noundef %18)
  %27 = tail call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %24, <4 x float> noundef %20, <4 x float> noundef %26)
  %28 = tail call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %23, <4 x float> noundef %22, <4 x float> noundef %27)
  %29 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %14)
  %30 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %13)
  %31 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %12)
  %32 = tail call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %31, <4 x float> noundef %18)
  %33 = tail call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %30, <4 x float> noundef %20, <4 x float> noundef %32)
  %34 = tail call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %29, <4 x float> noundef %22, <4 x float> noundef %33)
  %35 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %17)
  %36 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %16)
  %37 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %15)
  %38 = tail call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %37, <4 x float> noundef %18)
  %39 = tail call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %36, <4 x float> noundef %20, <4 x float> noundef %38)
  %40 = tail call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %35, <4 x float> noundef %22, <4 x float> noundef %39)
  %41 = getelementptr inbounds i8, ptr %8, i64 16
  %42 = tail call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef nonnull %41)
  %43 = getelementptr inbounds i8, ptr %8, i64 48
  %44 = tail call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef nonnull %43)
  %45 = getelementptr inbounds i8, ptr %8, i64 80
  %46 = tail call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef nonnull %45)
  %47 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %11)
  %48 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %10)
  %49 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %9)
  %50 = tail call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %49, <4 x float> noundef %42)
  %51 = tail call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %48, <4 x float> noundef %44, <4 x float> noundef %50)
  %52 = tail call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %47, <4 x float> noundef %46, <4 x float> noundef %51)
  %53 = tail call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %28, <4 x float> noundef %52)
  %54 = tail call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %28, <4 x float> noundef %52)
  %55 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %14)
  %56 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %13)
  %57 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %12)
  %58 = tail call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %57, <4 x float> noundef %42)
  %59 = tail call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %56, <4 x float> noundef %44, <4 x float> noundef %58)
  %60 = tail call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %55, <4 x float> noundef %46, <4 x float> noundef %59)
  %61 = tail call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %34, <4 x float> noundef %60)
  %62 = tail call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %34, <4 x float> noundef %60)
  %63 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %17)
  %64 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %16)
  %65 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %15)
  %66 = tail call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %65, <4 x float> noundef %42)
  %67 = tail call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %64, <4 x float> noundef %44, <4 x float> noundef %66)
  %68 = tail call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %63, <4 x float> noundef %46, <4 x float> noundef %67)
  %69 = tail call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %40, <4 x float> noundef %68)
  %70 = tail call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %40, <4 x float> noundef %68)
  %.idx = mul i64 %7, 12
  %71 = getelementptr inbounds i8, ptr %8, i64 %.idx
  %.not152 = icmp eq i64 %.idx, 96
  br i1 %.not152, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %3
  %.0150151 = getelementptr inbounds i8, ptr %8, i64 96
  br label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %3
  %.0149.lcssa = phi <4 x float> [ %70, %3 ], [ %130, %.lr.ph ]
  %.0148.lcssa = phi <4 x float> [ %62, %3 ], [ %122, %.lr.ph ]
  %.0147.lcssa = phi <4 x float> [ %54, %3 ], [ %114, %.lr.ph ]
  %.0146.lcssa = phi <4 x float> [ %69, %3 ], [ %129, %.lr.ph ]
  %.0145.lcssa = phi <4 x float> [ %61, %3 ], [ %121, %.lr.ph ]
  %.0.lcssa = phi <4 x float> [ %53, %3 ], [ %113, %.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 %.0.lcssa, <4 x float> noundef %.0147.lcssa, <4 x float> noundef %.0145.lcssa, <4 x float> noundef %.0148.lcssa, <4 x float> noundef %.0146.lcssa, <4 x float> noundef %.0149.lcssa)
  ret void

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %.0150160 = phi ptr [ %.0150, %.lr.ph ], [ %.0150151, %.lr.ph.preheader ]
  %.0159 = phi <4 x float> [ %113, %.lr.ph ], [ %53, %.lr.ph.preheader ]
  %.0145158 = phi <4 x float> [ %121, %.lr.ph ], [ %61, %.lr.ph.preheader ]
  %.0146157 = phi <4 x float> [ %129, %.lr.ph ], [ %69, %.lr.ph.preheader ]
  %.0147156 = phi <4 x float> [ %114, %.lr.ph ], [ %54, %.lr.ph.preheader ]
  %.0148155 = phi <4 x float> [ %122, %.lr.ph ], [ %62, %.lr.ph.preheader ]
  %.0149154 = phi <4 x float> [ %130, %.lr.ph ], [ %70, %.lr.ph.preheader ]
  %.pn153 = phi ptr [ %.0150160, %.lr.ph ], [ %8, %.lr.ph.preheader ]
  %72 = tail call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef nonnull %.0150160)
  %73 = getelementptr inbounds i8, ptr %.pn153, i64 128
  %74 = tail call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef nonnull %73)
  %75 = getelementptr inbounds i8, ptr %.pn153, i64 160
  %76 = tail call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef nonnull %75)
  %77 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %11)
  %78 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %10)
  %79 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %9)
  %80 = tail call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %79, <4 x float> noundef %72)
  %81 = tail call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %78, <4 x float> noundef %74, <4 x float> noundef %80)
  %82 = tail call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %77, <4 x float> noundef %76, <4 x float> noundef %81)
  %83 = tail call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %.0159, <4 x float> noundef %82)
  %84 = tail call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %.0147156, <4 x float> noundef %82)
  %85 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %14)
  %86 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %13)
  %87 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %12)
  %88 = tail call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %87, <4 x float> noundef %72)
  %89 = tail call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %86, <4 x float> noundef %74, <4 x float> noundef %88)
  %90 = tail call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %85, <4 x float> noundef %76, <4 x float> noundef %89)
  %91 = tail call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %.0145158, <4 x float> noundef %90)
  %92 = tail call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %.0148155, <4 x float> noundef %90)
  %93 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %17)
  %94 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %16)
  %95 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %15)
  %96 = tail call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %95, <4 x float> noundef %72)
  %97 = tail call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %94, <4 x float> noundef %74, <4 x float> noundef %96)
  %98 = tail call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %93, <4 x float> noundef %76, <4 x float> noundef %97)
  %99 = tail call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %.0146157, <4 x float> noundef %98)
  %100 = tail call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %.0149154, <4 x float> noundef %98)
  %101 = getelementptr inbounds i8, ptr %.pn153, i64 112
  %102 = tail call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef nonnull %101)
  %103 = getelementptr inbounds i8, ptr %.pn153, i64 144
  %104 = tail call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef nonnull %103)
  %105 = getelementptr inbounds i8, ptr %.pn153, i64 176
  %106 = tail call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef nonnull %105)
  %107 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %11)
  %108 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %10)
  %109 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %9)
  %110 = tail call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %109, <4 x float> noundef %102)
  %111 = tail call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %108, <4 x float> noundef %104, <4 x float> noundef %110)
  %112 = tail call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %107, <4 x float> noundef %106, <4 x float> noundef %111)
  %113 = tail call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %83, <4 x float> noundef %112)
  %114 = tail call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %84, <4 x float> noundef %112)
  %115 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %14)
  %116 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %13)
  %117 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %12)
  %118 = tail call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %117, <4 x float> noundef %102)
  %119 = tail call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %116, <4 x float> noundef %104, <4 x float> noundef %118)
  %120 = tail call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %115, <4 x float> noundef %106, <4 x float> noundef %119)
  %121 = tail call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %91, <4 x float> noundef %120)
  %122 = tail call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %92, <4 x float> noundef %120)
  %123 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %17)
  %124 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %16)
  %125 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %15)
  %126 = tail call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %125, <4 x float> noundef %102)
  %127 = tail call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %124, <4 x float> noundef %104, <4 x float> noundef %126)
  %128 = tail call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %123, <4 x float> noundef %106, <4 x float> noundef %127)
  %129 = tail call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %99, <4 x float> noundef %128)
  %130 = tail call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %100, <4 x float> noundef %128)
  %.0150 = getelementptr inbounds i8, ptr %.0150160, i64 96
  %.not = icmp eq ptr %.0150, %71
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !13
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3P3D6MatrixIfLm3ELm3EEclEmm(ptr noundef nonnull align 4 dereferenceable(36), i64 noundef, i64 noundef) local_unnamed_addr #0 align 2

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

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

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

attributes #0 = { 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 #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 = { 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 #3 = { 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" }

!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