; 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::Vector.1" = type { %union.anon.2 }
%union.anon.2 = type { [3 x float] }
%"class.P3D::MeshPrototype" = type { %"class.P3D::UniqueAlignedPointer", %"class.P3D::UniqueAlignedPointer.0", i32, i32 }
%"class.P3D::UniqueAlignedPointer" = type { ptr }
%"class.P3D::UniqueAlignedPointer.0" = type { ptr }
%struct.anon.3 = type { float, float, float }

@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [97 x i8], align 1
@__PRETTY_FUNCTION__._ZNK3P3D12TriangleMesh22furthestInDirectionSSEERKNS_6VectorIfLm3EEE = external hidden unnamed_addr constant [69 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef <4 x float> @_ZN3P3DL16custom_blendv_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> @_ZL12_mm_cmpeq_psDv4_fS_(<4 x float> noundef, <4 x float> noundef) #3

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #5

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

; Function Attrs: mustprogress uwtable
define dso_local { <2 x float>, float } @_ZNK3P3D12TriangleMesh22furthestInDirectionSSEERKNS_6VectorIfLm3EEE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) #4 align 2 {
  %3 = alloca %"struct.P3D::Vector.1", align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, 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 i64, align 8
  %11 = alloca ptr, align 8
  %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 <4 x float>, align 16
  %17 = alloca <4 x float>, align 16
  %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
  %38 = alloca <4 x float>, align 16
  %39 = alloca <4 x float>, align 16
  %40 = alloca <4 x float>, align 16
  %41 = alloca <4 x float>, align 16
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca { <2 x float>, float }, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %45 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %46 = getelementptr inbounds %"class.P3D::MeshPrototype", ptr %45, i32 0, i32 2
  %47 = load i32, ptr %46, align 8, !tbaa !9
  %48 = sext i32 %47 to i64
  store i64 %48, ptr %6, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #7
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.P3D::Vector.1", ptr %49, i32 0, i32 0
  %51 = getelementptr inbounds %struct.anon.3, ptr %50, i32 0, i32 0
  %52 = load float, ptr %51, align 4, !tbaa !16
  %53 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %52)
  store <4 x float> %53, ptr %7, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #7
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.P3D::Vector.1", ptr %54, i32 0, i32 0
  %56 = getelementptr inbounds %struct.anon.3, ptr %55, i32 0, i32 1
  %57 = load float, ptr %56, align 4, !tbaa !16
  %58 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %57)
  store <4 x float> %58, ptr %8, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #7
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.P3D::Vector.1", ptr %59, i32 0, i32 0
  %61 = getelementptr inbounds %struct.anon.3, ptr %60, i32 0, i32 2
  %62 = load float, ptr %61, align 4, !tbaa !16
  %63 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %62)
  store <4 x float> %63, ptr %9, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %64 = load i64, ptr %6, align 8, !tbaa !14
  %65 = call noundef i64 @_ZN3P3DL9getOffsetEm(i64 noundef %64)
  store i64 %65, ptr %10, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %66 = getelementptr inbounds %"class.P3D::MeshPrototype", ptr %45, i32 0, i32 0
  %67 = call noundef ptr @_ZNK3P3D20UniqueAlignedPointerIfEcvPfEv(ptr noundef nonnull align 8 dereferenceable(8) %66)
  store ptr %67, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #7
  %68 = load ptr, ptr %11, align 8, !tbaa !5
  %69 = call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef %68)
  store <4 x float> %69, ptr %12, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #7
  %70 = load ptr, ptr %11, align 8, !tbaa !5
  %71 = getelementptr inbounds float, ptr %70, i64 8
  %72 = call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef %71)
  store <4 x float> %72, ptr %13, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #7
  %73 = load ptr, ptr %11, align 8, !tbaa !5
  %74 = getelementptr inbounds float, ptr %73, i64 16
  %75 = call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef %74)
  store <4 x float> %75, ptr %14, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #7
  %76 = load <4 x float>, ptr %12, align 16, !tbaa !16
  store <4 x float> %76, ptr %15, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #7
  %77 = load <4 x float>, ptr %13, align 16, !tbaa !16
  store <4 x float> %77, ptr %16, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #7
  %78 = load <4 x float>, ptr %14, align 16, !tbaa !16
  store <4 x float> %78, ptr %17, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #7
  %79 = load <4 x float>, ptr %9, align 16, !tbaa !16
  %80 = load <4 x float>, ptr %14, align 16, !tbaa !16
  %81 = load <4 x float>, ptr %8, align 16, !tbaa !16
  %82 = load <4 x float>, ptr %13, align 16, !tbaa !16
  %83 = load <4 x float>, ptr %7, align 16, !tbaa !16
  %84 = load <4 x float>, ptr %12, align 16, !tbaa !16
  %85 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %83, <4 x float> noundef %84)
  %86 = call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %81, <4 x float> noundef %82, <4 x float> noundef %85)
  %87 = call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %79, <4 x float> noundef %80, <4 x float> noundef %86)
  store <4 x float> %87, ptr %18, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #7
  %88 = load <4 x float>, ptr %18, align 16, !tbaa !16
  store <4 x float> %88, ptr %19, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #7
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  %90 = getelementptr inbounds float, ptr %89, i64 4
  %91 = call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef %90)
  store <4 x float> %91, ptr %20, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #7
  %92 = load ptr, ptr %11, align 8, !tbaa !5
  %93 = getelementptr inbounds float, ptr %92, i64 8
  %94 = getelementptr inbounds float, ptr %93, i64 4
  %95 = call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef %94)
  store <4 x float> %95, ptr %21, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #7
  %96 = load ptr, ptr %11, align 8, !tbaa !5
  %97 = getelementptr inbounds float, ptr %96, i64 16
  %98 = getelementptr inbounds float, ptr %97, i64 4
  %99 = call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef %98)
  store <4 x float> %99, ptr %22, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #7
  %100 = load <4 x float>, ptr %20, align 16, !tbaa !16
  store <4 x float> %100, ptr %23, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #7
  %101 = load <4 x float>, ptr %21, align 16, !tbaa !16
  store <4 x float> %101, ptr %24, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #7
  %102 = load <4 x float>, ptr %22, align 16, !tbaa !16
  store <4 x float> %102, ptr %25, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #7
  %103 = load <4 x float>, ptr %9, align 16, !tbaa !16
  %104 = load <4 x float>, ptr %22, align 16, !tbaa !16
  %105 = load <4 x float>, ptr %8, align 16, !tbaa !16
  %106 = load <4 x float>, ptr %21, align 16, !tbaa !16
  %107 = load <4 x float>, ptr %7, align 16, !tbaa !16
  %108 = load <4 x float>, ptr %20, align 16, !tbaa !16
  %109 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %107, <4 x float> noundef %108)
  %110 = call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %105, <4 x float> noundef %106, <4 x float> noundef %109)
  %111 = call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %103, <4 x float> noundef %104, <4 x float> noundef %110)
  store <4 x float> %111, ptr %26, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #7
  %112 = load <4 x float>, ptr %26, align 16, !tbaa !16
  store <4 x float> %112, ptr %27, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #7
  %113 = load <4 x float>, ptr %26, align 16, !tbaa !16
  %114 = load <4 x float>, ptr %18, align 16, !tbaa !16
  %115 = call noundef <4 x float> @_ZL12_mm_cmpgt_psDv4_fS_(<4 x float> noundef %113, <4 x float> noundef %114)
  store <4 x float> %115, ptr %28, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #7
  %116 = load <4 x float>, ptr %28, align 16, !tbaa !16
  store <4 x float> %116, ptr %29, align 16, !tbaa !16
  %117 = load <4 x float>, ptr %18, align 16, !tbaa !16
  %118 = load <4 x float>, ptr %26, align 16, !tbaa !16
  %119 = load <4 x float>, ptr %28, align 16, !tbaa !16
  %120 = call noundef <4 x float> @_ZN3P3DL16custom_blendv_psEDv4_fS0_S0_(<4 x float> noundef %117, <4 x float> noundef %118, <4 x float> noundef %119)
  store <4 x float> %120, ptr %18, align 16, !tbaa !16
  %121 = load <4 x float>, ptr %12, align 16, !tbaa !16
  %122 = load <4 x float>, ptr %20, align 16, !tbaa !16
  %123 = load <4 x float>, ptr %28, align 16, !tbaa !16
  %124 = call noundef <4 x float> @_ZN3P3DL16custom_blendv_psEDv4_fS0_S0_(<4 x float> noundef %121, <4 x float> noundef %122, <4 x float> noundef %123)
  store <4 x float> %124, ptr %12, align 16, !tbaa !16
  %125 = load <4 x float>, ptr %13, align 16, !tbaa !16
  %126 = load <4 x float>, ptr %21, align 16, !tbaa !16
  %127 = load <4 x float>, ptr %28, align 16, !tbaa !16
  %128 = call noundef <4 x float> @_ZN3P3DL16custom_blendv_psEDv4_fS0_S0_(<4 x float> noundef %125, <4 x float> noundef %126, <4 x float> noundef %127)
  store <4 x float> %128, ptr %13, align 16, !tbaa !16
  %129 = load <4 x float>, ptr %14, align 16, !tbaa !16
  %130 = load <4 x float>, ptr %22, align 16, !tbaa !16
  %131 = load <4 x float>, ptr %28, align 16, !tbaa !16
  %132 = call noundef <4 x float> @_ZN3P3DL16custom_blendv_psEDv4_fS0_S0_(<4 x float> noundef %129, <4 x float> noundef %130, <4 x float> noundef %131)
  store <4 x float> %132, ptr %14, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %133 = load ptr, ptr %11, align 8, !tbaa !5
  %134 = load i64, ptr %10, align 8, !tbaa !14
  %135 = mul i64 %134, 3
  %136 = getelementptr inbounds float, ptr %133, i64 %135
  store ptr %136, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  %137 = load ptr, ptr %11, align 8, !tbaa !5
  %138 = getelementptr inbounds float, ptr %137, i64 24
  store ptr %138, ptr %31, align 8, !tbaa !5
  br label %139

139:                                              ; preds = %220, %2
  %140 = load ptr, ptr %31, align 8, !tbaa !5
  %141 = load ptr, ptr %30, align 8, !tbaa !5
  %142 = icmp ne ptr %140, %141
  br i1 %142, label %144, label %143

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

144:                                              ; preds = %139
  %145 = load ptr, ptr %31, align 8, !tbaa !5
  %146 = call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef %145)
  store <4 x float> %146, ptr %20, align 16, !tbaa !16
  %147 = load ptr, ptr %31, align 8, !tbaa !5
  %148 = getelementptr inbounds float, ptr %147, i64 8
  %149 = call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef %148)
  store <4 x float> %149, ptr %21, align 16, !tbaa !16
  %150 = load ptr, ptr %31, align 8, !tbaa !5
  %151 = getelementptr inbounds float, ptr %150, i64 16
  %152 = call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef %151)
  store <4 x float> %152, ptr %22, align 16, !tbaa !16
  %153 = load ptr, ptr %31, align 8, !tbaa !5
  %154 = getelementptr inbounds float, ptr %153, i64 4
  %155 = call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef %154)
  store <4 x float> %155, ptr %23, align 16, !tbaa !16
  %156 = load ptr, ptr %31, align 8, !tbaa !5
  %157 = getelementptr inbounds float, ptr %156, i64 8
  %158 = getelementptr inbounds float, ptr %157, i64 4
  %159 = call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef %158)
  store <4 x float> %159, ptr %24, align 16, !tbaa !16
  %160 = load ptr, ptr %31, align 8, !tbaa !5
  %161 = getelementptr inbounds float, ptr %160, i64 16
  %162 = getelementptr inbounds float, ptr %161, i64 4
  %163 = call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef %162)
  store <4 x float> %163, ptr %25, align 16, !tbaa !16
  %164 = load <4 x float>, ptr %9, align 16, !tbaa !16
  %165 = load <4 x float>, ptr %22, align 16, !tbaa !16
  %166 = load <4 x float>, ptr %8, align 16, !tbaa !16
  %167 = load <4 x float>, ptr %21, align 16, !tbaa !16
  %168 = load <4 x float>, ptr %7, align 16, !tbaa !16
  %169 = load <4 x float>, ptr %20, align 16, !tbaa !16
  %170 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %168, <4 x float> noundef %169)
  %171 = call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %166, <4 x float> noundef %167, <4 x float> noundef %170)
  %172 = call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %164, <4 x float> noundef %165, <4 x float> noundef %171)
  store <4 x float> %172, ptr %26, align 16, !tbaa !16
  %173 = load <4 x float>, ptr %9, align 16, !tbaa !16
  %174 = load <4 x float>, ptr %25, align 16, !tbaa !16
  %175 = load <4 x float>, ptr %8, align 16, !tbaa !16
  %176 = load <4 x float>, ptr %24, align 16, !tbaa !16
  %177 = load <4 x float>, ptr %7, align 16, !tbaa !16
  %178 = load <4 x float>, ptr %23, align 16, !tbaa !16
  %179 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %177, <4 x float> noundef %178)
  %180 = call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %175, <4 x float> noundef %176, <4 x float> noundef %179)
  %181 = call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %173, <4 x float> noundef %174, <4 x float> noundef %180)
  store <4 x float> %181, ptr %27, align 16, !tbaa !16
  %182 = load <4 x float>, ptr %18, align 16, !tbaa !16
  %183 = load <4 x float>, ptr %26, align 16, !tbaa !16
  %184 = call noundef <4 x float> @_ZL12_mm_cmpgt_psDv4_fS_(<4 x float> noundef %182, <4 x float> noundef %183)
  store <4 x float> %184, ptr %28, align 16, !tbaa !16
  %185 = load <4 x float>, ptr %19, align 16, !tbaa !16
  %186 = load <4 x float>, ptr %27, align 16, !tbaa !16
  %187 = call noundef <4 x float> @_ZL12_mm_cmpgt_psDv4_fS_(<4 x float> noundef %185, <4 x float> noundef %186)
  store <4 x float> %187, ptr %29, align 16, !tbaa !16
  %188 = load <4 x float>, ptr %26, align 16, !tbaa !16
  %189 = load <4 x float>, ptr %18, align 16, !tbaa !16
  %190 = load <4 x float>, ptr %28, align 16, !tbaa !16
  %191 = call noundef <4 x float> @_ZN3P3DL16custom_blendv_psEDv4_fS0_S0_(<4 x float> noundef %188, <4 x float> noundef %189, <4 x float> noundef %190)
  store <4 x float> %191, ptr %18, align 16, !tbaa !16
  %192 = load <4 x float>, ptr %27, align 16, !tbaa !16
  %193 = load <4 x float>, ptr %19, align 16, !tbaa !16
  %194 = load <4 x float>, ptr %29, align 16, !tbaa !16
  %195 = call noundef <4 x float> @_ZN3P3DL16custom_blendv_psEDv4_fS0_S0_(<4 x float> noundef %192, <4 x float> noundef %193, <4 x float> noundef %194)
  store <4 x float> %195, ptr %19, align 16, !tbaa !16
  %196 = load <4 x float>, ptr %20, align 16, !tbaa !16
  %197 = load <4 x float>, ptr %12, align 16, !tbaa !16
  %198 = load <4 x float>, ptr %28, align 16, !tbaa !16
  %199 = call noundef <4 x float> @_ZN3P3DL16custom_blendv_psEDv4_fS0_S0_(<4 x float> noundef %196, <4 x float> noundef %197, <4 x float> noundef %198)
  store <4 x float> %199, ptr %12, align 16, !tbaa !16
  %200 = load <4 x float>, ptr %23, align 16, !tbaa !16
  %201 = load <4 x float>, ptr %15, align 16, !tbaa !16
  %202 = load <4 x float>, ptr %29, align 16, !tbaa !16
  %203 = call noundef <4 x float> @_ZN3P3DL16custom_blendv_psEDv4_fS0_S0_(<4 x float> noundef %200, <4 x float> noundef %201, <4 x float> noundef %202)
  store <4 x float> %203, ptr %15, align 16, !tbaa !16
  %204 = load <4 x float>, ptr %21, align 16, !tbaa !16
  %205 = load <4 x float>, ptr %13, align 16, !tbaa !16
  %206 = load <4 x float>, ptr %28, align 16, !tbaa !16
  %207 = call noundef <4 x float> @_ZN3P3DL16custom_blendv_psEDv4_fS0_S0_(<4 x float> noundef %204, <4 x float> noundef %205, <4 x float> noundef %206)
  store <4 x float> %207, ptr %13, align 16, !tbaa !16
  %208 = load <4 x float>, ptr %24, align 16, !tbaa !16
  %209 = load <4 x float>, ptr %16, align 16, !tbaa !16
  %210 = load <4 x float>, ptr %29, align 16, !tbaa !16
  %211 = call noundef <4 x float> @_ZN3P3DL16custom_blendv_psEDv4_fS0_S0_(<4 x float> noundef %208, <4 x float> noundef %209, <4 x float> noundef %210)
  store <4 x float> %211, ptr %16, align 16, !tbaa !16
  %212 = load <4 x float>, ptr %22, align 16, !tbaa !16
  %213 = load <4 x float>, ptr %14, align 16, !tbaa !16
  %214 = load <4 x float>, ptr %28, align 16, !tbaa !16
  %215 = call noundef <4 x float> @_ZN3P3DL16custom_blendv_psEDv4_fS0_S0_(<4 x float> noundef %212, <4 x float> noundef %213, <4 x float> noundef %214)
  store <4 x float> %215, ptr %14, align 16, !tbaa !16
  %216 = load <4 x float>, ptr %25, align 16, !tbaa !16
  %217 = load <4 x float>, ptr %17, align 16, !tbaa !16
  %218 = load <4 x float>, ptr %29, align 16, !tbaa !16
  %219 = call noundef <4 x float> @_ZN3P3DL16custom_blendv_psEDv4_fS0_S0_(<4 x float> noundef %216, <4 x float> noundef %217, <4 x float> noundef %218)
  store <4 x float> %219, ptr %17, align 16, !tbaa !16
  br label %220

220:                                              ; preds = %144
  %221 = load ptr, ptr %31, align 8, !tbaa !5
  %222 = getelementptr inbounds float, ptr %221, i64 24
  store ptr %222, ptr %31, align 8, !tbaa !5
  br label %139, !llvm.loop !17

223:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #7
  %224 = load <4 x float>, ptr %18, align 16, !tbaa !16
  %225 = load <4 x float>, ptr %19, align 16, !tbaa !16
  %226 = call noundef <4 x float> @_ZL12_mm_cmpgt_psDv4_fS_(<4 x float> noundef %224, <4 x float> noundef %225)
  store <4 x float> %226, ptr %32, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #7
  %227 = load <4 x float>, ptr %19, align 16, !tbaa !16
  %228 = load <4 x float>, ptr %18, align 16, !tbaa !16
  %229 = load <4 x float>, ptr %32, align 16, !tbaa !16
  %230 = call noundef <4 x float> @_ZN3P3DL16custom_blendv_psEDv4_fS0_S0_(<4 x float> noundef %227, <4 x float> noundef %228, <4 x float> noundef %229)
  store <4 x float> %230, ptr %33, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #7
  %231 = load <4 x float>, ptr %15, align 16, !tbaa !16
  %232 = load <4 x float>, ptr %12, align 16, !tbaa !16
  %233 = load <4 x float>, ptr %32, align 16, !tbaa !16
  %234 = call noundef <4 x float> @_ZN3P3DL16custom_blendv_psEDv4_fS0_S0_(<4 x float> noundef %231, <4 x float> noundef %232, <4 x float> noundef %233)
  store <4 x float> %234, ptr %34, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #7
  %235 = load <4 x float>, ptr %16, align 16, !tbaa !16
  %236 = load <4 x float>, ptr %13, align 16, !tbaa !16
  %237 = load <4 x float>, ptr %32, align 16, !tbaa !16
  %238 = call noundef <4 x float> @_ZN3P3DL16custom_blendv_psEDv4_fS0_S0_(<4 x float> noundef %235, <4 x float> noundef %236, <4 x float> noundef %237)
  store <4 x float> %238, ptr %35, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #7
  %239 = load <4 x float>, ptr %17, align 16, !tbaa !16
  %240 = load <4 x float>, ptr %14, align 16, !tbaa !16
  %241 = load <4 x float>, ptr %32, align 16, !tbaa !16
  %242 = call noundef <4 x float> @_ZN3P3DL16custom_blendv_psEDv4_fS0_S0_(<4 x float> noundef %239, <4 x float> noundef %240, <4 x float> noundef %241)
  store <4 x float> %242, ptr %36, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #7
  %243 = load <4 x float>, ptr %33, align 16, !tbaa !16
  %244 = load <4 x float>, ptr %33, align 16, !tbaa !16
  %245 = shufflevector <4 x float> %243, <4 x float> %244, <4 x i32> <i32 1, i32 0, i32 4, i32 4>
  store <4 x float> %245, ptr %37, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #7
  %246 = load <4 x float>, ptr %33, align 16, !tbaa !16
  %247 = load <4 x float>, ptr %37, align 16, !tbaa !16
  %248 = call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %246, <4 x float> noundef %247)
  store <4 x float> %248, ptr %38, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #7
  %249 = load <4 x float>, ptr %38, align 16, !tbaa !16
  %250 = load <4 x float>, ptr %38, align 16, !tbaa !16
  %251 = shufflevector <4 x float> %249, <4 x float> %250, <4 x i32> <i32 2, i32 3, i32 4, i32 5>
  store <4 x float> %251, ptr %39, align 16, !tbaa !16
  %252 = load <4 x float>, ptr %38, align 16, !tbaa !16
  %253 = load <4 x float>, ptr %39, align 16, !tbaa !16
  %254 = call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %252, <4 x float> noundef %253)
  store <4 x float> %254, ptr %38, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #7
  %255 = load <4 x float>, ptr %38, align 16, !tbaa !16
  %256 = load <4 x float>, ptr %38, align 16, !tbaa !16
  %257 = shufflevector <4 x float> %255, <4 x float> %256, <4 x i32> <i32 1, i32 0, i32 7, i32 6>
  store <4 x float> %257, ptr %40, align 16, !tbaa !16
  %258 = load <4 x float>, ptr %38, align 16, !tbaa !16
  %259 = load <4 x float>, ptr %40, align 16, !tbaa !16
  %260 = call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %258, <4 x float> noundef %259)
  store <4 x float> %260, ptr %38, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #7
  %261 = load <4 x float>, ptr %38, align 16, !tbaa !16
  %262 = load <4 x float>, ptr %33, align 16, !tbaa !16
  %263 = call noundef <4 x float> @_ZL12_mm_cmpeq_psDv4_fS_(<4 x float> noundef %261, <4 x float> noundef %262)
  store <4 x float> %263, ptr %41, align 16, !tbaa !16
  %264 = load <4 x float>, ptr %41, align 16, !tbaa !16
  %265 = load <4 x float>, ptr %41, align 16, !tbaa !16
  %266 = call noundef <4 x float> @_ZL15_mm_cmpunord_psDv4_fS_(<4 x float> noundef %264, <4 x float> noundef %265)
  store <4 x float> %266, ptr %41, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #7
  %267 = load <4 x float>, ptr %41, align 16, !tbaa !16
  %268 = call noundef i32 @_ZL15_mm_movemask_psDv4_f(<4 x float> noundef %267)
  store i32 %268, ptr %42, align 4, !tbaa !19
  %269 = load i32, ptr %42, align 4, !tbaa !19
  %270 = icmp ne i32 %269, 0
  br i1 %270, label %271, label %272

271:                                              ; preds = %223
  br label %274

272:                                              ; preds = %223
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 387, ptr noundef @__PRETTY_FUNCTION__._ZNK3P3D12TriangleMesh22furthestInDirectionSSEERKNS_6VectorIfLm3EEE) #8
  unreachable

273:                                              ; No predecessors!
  br label %274

274:                                              ; preds = %273, %271
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #7
  %275 = load i32, ptr %42, align 4, !tbaa !19
  %276 = call noundef i32 @_ZN3P3DL10countZerosEj(i32 noundef %275)
  store i32 %276, ptr %43, align 4, !tbaa !19
  %277 = load <4 x float>, ptr %34, align 16, !tbaa !16
  %278 = load i32, ptr %43, align 4, !tbaa !19
  %279 = extractelement <4 x float> %277, i32 %278
  %280 = load <4 x float>, ptr %35, align 16, !tbaa !16
  %281 = load i32, ptr %43, align 4, !tbaa !19
  %282 = extractelement <4 x float> %280, i32 %281
  %283 = load <4 x float>, ptr %36, align 16, !tbaa !16
  %284 = load i32, ptr %43, align 4, !tbaa !19
  %285 = extractelement <4 x float> %283, i32 %284
  call void @_ZN3P3D6VectorIfLm3EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %3, float noundef %279, float noundef %282, float noundef %285) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  %286 = getelementptr inbounds %"struct.P3D::Vector.1", ptr %3, i32 0, i32 0
  %287 = getelementptr inbounds %union.anon.2, ptr %286, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %44, ptr align 4 %287, i64 12, i1 false)
  %288 = load { <2 x float>, float }, ptr %44, align 8
  ret { <2 x float>, float } %288
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D6VectorIfLm3EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) unnamed_addr #2 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

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 = { noreturn nounwind "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 #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nounwind }
attributes #8 = { noreturn 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"}
!19 = !{!13, !13, i64 0}


; 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::Vector.1" = type { %union.anon.2 }
%union.anon.2 = type { [3 x float] }

@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [97 x i8], align 1
@__PRETTY_FUNCTION__._ZNK3P3D12TriangleMesh22furthestInDirectionSSEERKNS_6VectorIfLm3EEE = external hidden unnamed_addr constant [69 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef <4 x float> @_ZN3P3DL16custom_blendv_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> @_ZL12_mm_cmpeq_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> @_ZL15_mm_cmpunord_psDv4_fS_(<4 x float> noundef, <4 x float> noundef) local_unnamed_addr #2

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN3P3DL10countZerosEj(i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local { <2 x float>, float } @_ZNK3P3D12TriangleMesh22furthestInDirectionSSEERKNS_6VectorIfLm3EEE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr nocapture noundef nonnull readonly align 4 dereferenceable(12) %1) local_unnamed_addr #3 align 2 {
  %3 = alloca %"struct.P3D::Vector.1", align 8
  %4 = getelementptr inbounds i8, ptr %0, i64 16
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = sext i32 %5 to i64
  %7 = load float, ptr %1, align 4, !tbaa !13
  %8 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %7)
  %9 = getelementptr inbounds i8, ptr %1, i64 4
  %10 = load float, ptr %9, align 4, !tbaa !13
  %11 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %10)
  %12 = getelementptr inbounds i8, ptr %1, i64 8
  %13 = load float, ptr %12, align 4, !tbaa !13
  %14 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %13)
  %15 = tail call noundef i64 @_ZN3P3DL9getOffsetEm(i64 noundef %6)
  %16 = tail call noundef ptr @_ZNK3P3D20UniqueAlignedPointerIfEcvPfEv(ptr noundef nonnull align 8 dereferenceable(8) %0)
  %17 = tail call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef %16)
  %18 = getelementptr inbounds i8, ptr %16, i64 32
  %19 = tail call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef nonnull %18)
  %20 = getelementptr inbounds i8, ptr %16, i64 64
  %21 = tail call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef nonnull %20)
  %22 = tail call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %8, <4 x float> noundef %17)
  %23 = tail call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %11, <4 x float> noundef %19, <4 x float> noundef %22)
  %24 = tail call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %14, <4 x float> noundef %21, <4 x float> noundef %23)
  %25 = getelementptr inbounds i8, ptr %16, i64 16
  %26 = tail call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef nonnull %25)
  %27 = getelementptr inbounds i8, ptr %16, i64 48
  %28 = tail call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef nonnull %27)
  %29 = getelementptr inbounds i8, ptr %16, i64 80
  %30 = tail call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef nonnull %29)
  %31 = tail call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %8, <4 x float> noundef %26)
  %32 = tail call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %11, <4 x float> noundef %28, <4 x float> noundef %31)
  %33 = tail call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %14, <4 x float> noundef %30, <4 x float> noundef %32)
  %34 = tail call noundef <4 x float> @_ZL12_mm_cmpgt_psDv4_fS_(<4 x float> noundef %33, <4 x float> noundef %24)
  %35 = tail call noundef <4 x float> @_ZN3P3DL16custom_blendv_psEDv4_fS0_S0_(<4 x float> noundef %24, <4 x float> noundef %33, <4 x float> noundef %34)
  %36 = tail call noundef <4 x float> @_ZN3P3DL16custom_blendv_psEDv4_fS0_S0_(<4 x float> noundef %17, <4 x float> noundef %26, <4 x float> noundef %34)
  %37 = tail call noundef <4 x float> @_ZN3P3DL16custom_blendv_psEDv4_fS0_S0_(<4 x float> noundef %19, <4 x float> noundef %28, <4 x float> noundef %34)
  %38 = tail call noundef <4 x float> @_ZN3P3DL16custom_blendv_psEDv4_fS0_S0_(<4 x float> noundef %21, <4 x float> noundef %30, <4 x float> noundef %34)
  %.idx = mul i64 %15, 12
  %39 = getelementptr inbounds i8, ptr %16, i64 %.idx
  %.not147 = icmp eq i64 %.idx, 96
  br i1 %.not147, label %._crit_edge, label %.lr.ph.preheader

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

._crit_edge:                                      ; preds = %.lr.ph, %2
  %.0142.lcssa = phi <4 x float> [ %24, %2 ], [ %74, %.lr.ph ]
  %.0141.lcssa = phi <4 x float> [ %35, %2 ], [ %73, %.lr.ph ]
  %.0140.lcssa = phi <4 x float> [ %21, %2 ], [ %80, %.lr.ph ]
  %.0139.lcssa = phi <4 x float> [ %19, %2 ], [ %78, %.lr.ph ]
  %.0138.lcssa = phi <4 x float> [ %17, %2 ], [ %76, %.lr.ph ]
  %.0137.lcssa = phi <4 x float> [ %38, %2 ], [ %79, %.lr.ph ]
  %.0136.lcssa = phi <4 x float> [ %37, %2 ], [ %77, %.lr.ph ]
  %.0.lcssa = phi <4 x float> [ %36, %2 ], [ %75, %.lr.ph ]
  %40 = tail call noundef <4 x float> @_ZL12_mm_cmpgt_psDv4_fS_(<4 x float> noundef %.0141.lcssa, <4 x float> noundef %.0142.lcssa)
  %41 = tail call noundef <4 x float> @_ZN3P3DL16custom_blendv_psEDv4_fS0_S0_(<4 x float> noundef %.0142.lcssa, <4 x float> noundef %.0141.lcssa, <4 x float> noundef %40)
  %42 = tail call noundef <4 x float> @_ZN3P3DL16custom_blendv_psEDv4_fS0_S0_(<4 x float> noundef %.0138.lcssa, <4 x float> noundef %.0.lcssa, <4 x float> noundef %40)
  %43 = tail call noundef <4 x float> @_ZN3P3DL16custom_blendv_psEDv4_fS0_S0_(<4 x float> noundef %.0139.lcssa, <4 x float> noundef %.0136.lcssa, <4 x float> noundef %40)
  %44 = tail call noundef <4 x float> @_ZN3P3DL16custom_blendv_psEDv4_fS0_S0_(<4 x float> noundef %.0140.lcssa, <4 x float> noundef %.0137.lcssa, <4 x float> noundef %40)
  %45 = shufflevector <4 x float> %41, <4 x float> poison, <4 x i32> <i32 1, i32 0, i32 0, i32 0>
  %46 = tail call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %41, <4 x float> noundef %45)
  %47 = shufflevector <4 x float> %46, <4 x float> poison, <4 x i32> <i32 2, i32 3, i32 0, i32 1>
  %48 = tail call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %46, <4 x float> noundef %47)
  %49 = shufflevector <4 x float> %48, <4 x float> poison, <4 x i32> <i32 1, i32 0, i32 3, i32 2>
  %50 = tail call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %48, <4 x float> noundef %49)
  %51 = tail call noundef <4 x float> @_ZL12_mm_cmpeq_psDv4_fS_(<4 x float> noundef %50, <4 x float> noundef %41)
  %52 = tail call noundef <4 x float> @_ZL15_mm_cmpunord_psDv4_fS_(<4 x float> noundef %51, <4 x float> noundef %51)
  %53 = tail call noundef i32 @_ZL15_mm_movemask_psDv4_f(<4 x float> noundef %52)
  %.not145 = icmp eq i32 %53, 0
  br i1 %.not145, label %81, label %82

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %.0143157 = phi ptr [ %.0143, %.lr.ph ], [ %.0143146, %.lr.ph.preheader ]
  %.0156 = phi <4 x float> [ %75, %.lr.ph ], [ %36, %.lr.ph.preheader ]
  %.0136155 = phi <4 x float> [ %77, %.lr.ph ], [ %37, %.lr.ph.preheader ]
  %.0137154 = phi <4 x float> [ %79, %.lr.ph ], [ %38, %.lr.ph.preheader ]
  %.0138153 = phi <4 x float> [ %76, %.lr.ph ], [ %17, %.lr.ph.preheader ]
  %.0139152 = phi <4 x float> [ %78, %.lr.ph ], [ %19, %.lr.ph.preheader ]
  %.0140151 = phi <4 x float> [ %80, %.lr.ph ], [ %21, %.lr.ph.preheader ]
  %.0141150 = phi <4 x float> [ %73, %.lr.ph ], [ %35, %.lr.ph.preheader ]
  %.0142149 = phi <4 x float> [ %74, %.lr.ph ], [ %24, %.lr.ph.preheader ]
  %.pn148 = phi ptr [ %.0143157, %.lr.ph ], [ %16, %.lr.ph.preheader ]
  %54 = tail call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef nonnull %.0143157)
  %55 = getelementptr inbounds i8, ptr %.pn148, i64 128
  %56 = tail call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef nonnull %55)
  %57 = getelementptr inbounds i8, ptr %.pn148, i64 160
  %58 = tail call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef nonnull %57)
  %59 = getelementptr inbounds i8, ptr %.pn148, i64 112
  %60 = tail call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef nonnull %59)
  %61 = getelementptr inbounds i8, ptr %.pn148, i64 144
  %62 = tail call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef nonnull %61)
  %63 = getelementptr inbounds i8, ptr %.pn148, i64 176
  %64 = tail call noundef <4 x float> @_ZL11_mm_load_psPKf(ptr noundef nonnull %63)
  %65 = tail call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %8, <4 x float> noundef %54)
  %66 = tail call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %11, <4 x float> noundef %56, <4 x float> noundef %65)
  %67 = tail call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %14, <4 x float> noundef %58, <4 x float> noundef %66)
  %68 = tail call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %8, <4 x float> noundef %60)
  %69 = tail call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %11, <4 x float> noundef %62, <4 x float> noundef %68)
  %70 = tail call noundef <4 x float> @_ZN3P3DL15custom_fmadd_psEDv4_fS0_S0_(<4 x float> noundef %14, <4 x float> noundef %64, <4 x float> noundef %69)
  %71 = tail call noundef <4 x float> @_ZL12_mm_cmpgt_psDv4_fS_(<4 x float> noundef %.0141150, <4 x float> noundef %67)
  %72 = tail call noundef <4 x float> @_ZL12_mm_cmpgt_psDv4_fS_(<4 x float> noundef %.0142149, <4 x float> noundef %70)
  %73 = tail call noundef <4 x float> @_ZN3P3DL16custom_blendv_psEDv4_fS0_S0_(<4 x float> noundef %67, <4 x float> noundef %.0141150, <4 x float> noundef %71)
  %74 = tail call noundef <4 x float> @_ZN3P3DL16custom_blendv_psEDv4_fS0_S0_(<4 x float> noundef %70, <4 x float> noundef %.0142149, <4 x float> noundef %72)
  %75 = tail call noundef <4 x float> @_ZN3P3DL16custom_blendv_psEDv4_fS0_S0_(<4 x float> noundef %54, <4 x float> noundef %.0156, <4 x float> noundef %71)
  %76 = tail call noundef <4 x float> @_ZN3P3DL16custom_blendv_psEDv4_fS0_S0_(<4 x float> noundef %60, <4 x float> noundef %.0138153, <4 x float> noundef %72)
  %77 = tail call noundef <4 x float> @_ZN3P3DL16custom_blendv_psEDv4_fS0_S0_(<4 x float> noundef %56, <4 x float> noundef %.0136155, <4 x float> noundef %71)
  %78 = tail call noundef <4 x float> @_ZN3P3DL16custom_blendv_psEDv4_fS0_S0_(<4 x float> noundef %62, <4 x float> noundef %.0139152, <4 x float> noundef %72)
  %79 = tail call noundef <4 x float> @_ZN3P3DL16custom_blendv_psEDv4_fS0_S0_(<4 x float> noundef %58, <4 x float> noundef %.0137154, <4 x float> noundef %71)
  %80 = tail call noundef <4 x float> @_ZN3P3DL16custom_blendv_psEDv4_fS0_S0_(<4 x float> noundef %64, <4 x float> noundef %.0140151, <4 x float> noundef %72)
  %.0143 = getelementptr inbounds i8, ptr %.0143157, i64 96
  %.not = icmp eq ptr %.0143, %39
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !14

81:                                               ; preds = %._crit_edge
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 387, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK3P3D12TriangleMesh22furthestInDirectionSSEERKNS_6VectorIfLm3EEE) #5
  unreachable

82:                                               ; preds = %._crit_edge
  %83 = tail call noundef i32 @_ZN3P3DL10countZerosEj(i32 noundef %53)
  %84 = extractelement <4 x float> %42, i32 %83
  %85 = extractelement <4 x float> %43, i32 %83
  %86 = extractelement <4 x float> %44, i32 %83
  call void @_ZN3P3D6VectorIfLm3EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %3, float noundef %84, float noundef %85, float noundef %86) #6
  %.sroa.0.0.copyload = load <2 x float>, ptr %3, align 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 8
  %.sroa.2.0.copyload = load float, ptr %.sroa.2.0..sroa_idx, align 8
  %.fca.0.insert = insertvalue { <2 x float>, float } poison, <2 x float> %.sroa.0.0.copyload, 0
  %.fca.1.insert = insertvalue { <2 x float>, float } %.fca.0.insert, float %.sroa.2.0.copyload, 1
  ret { <2 x float>, float } %.fca.1.insert
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D6VectorIfLm3EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) unnamed_addr #1 align 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" }
attributes #4 = { noreturn nounwind "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 = { noreturn nounwind }
attributes #6 = { 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 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 = !{!9, !9, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


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