; LLVM IR from aras-p/ToyPathTracer :: Cpp/Source/Maths.ll (Z10HitSpheresRK3RayRK10SpheresSoAffR3Hit)

; 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.float4 = type { <4 x float> }
%struct.float3 = type { <4 x float> }
%struct.Ray = type { %struct.float3, %struct.float3 }
%struct.SpheresSoA = type { ptr, ptr, ptr, ptr, ptr, i32, i32 }
%struct.Hit = type <{ %struct.float3, %struct.float3, float, [12 x i8] }>

@_ZZ10HitSpheresRK3RayRK10SpheresSoAffR3HitE6laneId = external hidden constant [16 x i32], align 16

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local <4 x float> @_Zmi6float3S_(<4 x float>, <4 x float>) #1

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN6float3C2Efff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef) unnamed_addr #1 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) #2

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

172:                                              ; preds = %381, %5
  %173 = load i32, ptr %22, align 4, !tbaa !12
  %174 = load ptr, ptr %8, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.SpheresSoA, ptr %174, i32 0, i32 5
  %176 = load i32, ptr %175, align 8, !tbaa !14
  %177 = icmp slt i32 %173, %176
  br i1 %177, label %179, label %178

178:                                              ; preds = %172
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %384

179:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #5
  %180 = load ptr, ptr %8, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.SpheresSoA, ptr %180, i32 0, i32 0
  %182 = load ptr, ptr %181, align 8, !tbaa !16
  %183 = load i32, ptr %22, align 4, !tbaa !12
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds float, ptr %182, i64 %184
  call void @_ZN6float4C2EPKf(ptr noundef nonnull align 16 dereferenceable(16) %23, ptr noundef %185)
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #5
  %186 = load ptr, ptr %8, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.SpheresSoA, ptr %186, i32 0, i32 1
  %188 = load ptr, ptr %187, align 8, !tbaa !17
  %189 = load i32, ptr %22, align 4, !tbaa !12
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds float, ptr %188, i64 %190
  call void @_ZN6float4C2EPKf(ptr noundef nonnull align 16 dereferenceable(16) %24, ptr noundef %191)
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #5
  %192 = load ptr, ptr %8, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.SpheresSoA, ptr %192, i32 0, i32 2
  %194 = load ptr, ptr %193, align 8, !tbaa !18
  %195 = load i32, ptr %22, align 4, !tbaa !12
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds float, ptr %194, i64 %196
  call void @_ZN6float4C2EPKf(ptr noundef nonnull align 16 dereferenceable(16) %25, ptr noundef %197)
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #5
  %198 = load ptr, ptr %8, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.SpheresSoA, ptr %198, i32 0, i32 3
  %200 = load ptr, ptr %199, align 8, !tbaa !19
  %201 = load i32, ptr %22, align 4, !tbaa !12
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds float, ptr %200, i64 %202
  call void @_ZN6float4C2EPKf(ptr noundef nonnull align 16 dereferenceable(16) %26, ptr noundef %203)
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %28, ptr align 16 %23, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %29, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !20
  %204 = getelementptr inbounds %struct.float4, ptr %28, i32 0, i32 0
  %205 = load <4 x float>, ptr %204, align 16
  %206 = getelementptr inbounds %struct.float4, ptr %29, i32 0, i32 0
  %207 = load <4 x float>, ptr %206, align 16
  %208 = call <4 x float> @_Zmi6float4S_(<4 x float> %205, <4 x float> %207)
  %209 = getelementptr inbounds %struct.float4, ptr %27, i32 0, i32 0
  store <4 x float> %208, ptr %209, align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %31, ptr align 16 %24, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %32, ptr align 16 %15, i64 16, i1 false), !tbaa.struct !20
  %210 = getelementptr inbounds %struct.float4, ptr %31, i32 0, i32 0
  %211 = load <4 x float>, ptr %210, align 16
  %212 = getelementptr inbounds %struct.float4, ptr %32, i32 0, i32 0
  %213 = load <4 x float>, ptr %212, align 16
  %214 = call <4 x float> @_Zmi6float4S_(<4 x float> %211, <4 x float> %213)
  %215 = getelementptr inbounds %struct.float4, ptr %30, i32 0, i32 0
  store <4 x float> %214, ptr %215, align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %34, ptr align 16 %25, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %35, ptr align 16 %16, i64 16, i1 false), !tbaa.struct !20
  %216 = getelementptr inbounds %struct.float4, ptr %34, i32 0, i32 0
  %217 = load <4 x float>, ptr %216, align 16
  %218 = getelementptr inbounds %struct.float4, ptr %35, i32 0, i32 0
  %219 = load <4 x float>, ptr %218, align 16
  %220 = call <4 x float> @_Zmi6float4S_(<4 x float> %217, <4 x float> %219)
  %221 = getelementptr inbounds %struct.float4, ptr %33, i32 0, i32 0
  store <4 x float> %220, ptr %221, align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %39, ptr align 16 %27, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %40, ptr align 16 %17, i64 16, i1 false), !tbaa.struct !20
  %222 = getelementptr inbounds %struct.float4, ptr %39, i32 0, i32 0
  %223 = load <4 x float>, ptr %222, align 16
  %224 = getelementptr inbounds %struct.float4, ptr %40, i32 0, i32 0
  %225 = load <4 x float>, ptr %224, align 16
  %226 = call <4 x float> @_Zml6float4S_(<4 x float> %223, <4 x float> %225)
  %227 = getelementptr inbounds %struct.float4, ptr %38, i32 0, i32 0
  store <4 x float> %226, ptr %227, align 16
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %42, ptr align 16 %30, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %43, ptr align 16 %18, i64 16, i1 false), !tbaa.struct !20
  %228 = getelementptr inbounds %struct.float4, ptr %42, i32 0, i32 0
  %229 = load <4 x float>, ptr %228, align 16
  %230 = getelementptr inbounds %struct.float4, ptr %43, i32 0, i32 0
  %231 = load <4 x float>, ptr %230, align 16
  %232 = call <4 x float> @_Zml6float4S_(<4 x float> %229, <4 x float> %231)
  %233 = getelementptr inbounds %struct.float4, ptr %41, i32 0, i32 0
  store <4 x float> %232, ptr %233, align 16
  %234 = getelementptr inbounds %struct.float4, ptr %38, i32 0, i32 0
  %235 = load <4 x float>, ptr %234, align 16
  %236 = getelementptr inbounds %struct.float4, ptr %41, i32 0, i32 0
  %237 = load <4 x float>, ptr %236, align 16
  %238 = call <4 x float> @_Zpl6float4S_(<4 x float> %235, <4 x float> %237)
  %239 = getelementptr inbounds %struct.float4, ptr %37, i32 0, i32 0
  store <4 x float> %238, ptr %239, align 16
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %45, ptr align 16 %33, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %46, ptr align 16 %19, i64 16, i1 false), !tbaa.struct !20
  %240 = getelementptr inbounds %struct.float4, ptr %45, i32 0, i32 0
  %241 = load <4 x float>, ptr %240, align 16
  %242 = getelementptr inbounds %struct.float4, ptr %46, i32 0, i32 0
  %243 = load <4 x float>, ptr %242, align 16
  %244 = call <4 x float> @_Zml6float4S_(<4 x float> %241, <4 x float> %243)
  %245 = getelementptr inbounds %struct.float4, ptr %44, i32 0, i32 0
  store <4 x float> %244, ptr %245, align 16
  %246 = getelementptr inbounds %struct.float4, ptr %37, i32 0, i32 0
  %247 = load <4 x float>, ptr %246, align 16
  %248 = getelementptr inbounds %struct.float4, ptr %44, i32 0, i32 0
  %249 = load <4 x float>, ptr %248, align 16
  %250 = call <4 x float> @_Zpl6float4S_(<4 x float> %247, <4 x float> %249)
  %251 = getelementptr inbounds %struct.float4, ptr %36, i32 0, i32 0
  store <4 x float> %250, ptr %251, align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr %47) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %51, ptr align 16 %27, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %52, ptr align 16 %27, i64 16, i1 false), !tbaa.struct !20
  %252 = getelementptr inbounds %struct.float4, ptr %51, i32 0, i32 0
  %253 = load <4 x float>, ptr %252, align 16
  %254 = getelementptr inbounds %struct.float4, ptr %52, i32 0, i32 0
  %255 = load <4 x float>, ptr %254, align 16
  %256 = call <4 x float> @_Zml6float4S_(<4 x float> %253, <4 x float> %255)
  %257 = getelementptr inbounds %struct.float4, ptr %50, i32 0, i32 0
  store <4 x float> %256, ptr %257, align 16
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %54, ptr align 16 %30, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %55, ptr align 16 %30, i64 16, i1 false), !tbaa.struct !20
  %258 = getelementptr inbounds %struct.float4, ptr %54, i32 0, i32 0
  %259 = load <4 x float>, ptr %258, align 16
  %260 = getelementptr inbounds %struct.float4, ptr %55, i32 0, i32 0
  %261 = load <4 x float>, ptr %260, align 16
  %262 = call <4 x float> @_Zml6float4S_(<4 x float> %259, <4 x float> %261)
  %263 = getelementptr inbounds %struct.float4, ptr %53, i32 0, i32 0
  store <4 x float> %262, ptr %263, align 16
  %264 = getelementptr inbounds %struct.float4, ptr %50, i32 0, i32 0
  %265 = load <4 x float>, ptr %264, align 16
  %266 = getelementptr inbounds %struct.float4, ptr %53, i32 0, i32 0
  %267 = load <4 x float>, ptr %266, align 16
  %268 = call <4 x float> @_Zpl6float4S_(<4 x float> %265, <4 x float> %267)
  %269 = getelementptr inbounds %struct.float4, ptr %49, i32 0, i32 0
  store <4 x float> %268, ptr %269, align 16
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %57, ptr align 16 %33, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %58, ptr align 16 %33, i64 16, i1 false), !tbaa.struct !20
  %270 = getelementptr inbounds %struct.float4, ptr %57, i32 0, i32 0
  %271 = load <4 x float>, ptr %270, align 16
  %272 = getelementptr inbounds %struct.float4, ptr %58, i32 0, i32 0
  %273 = load <4 x float>, ptr %272, align 16
  %274 = call <4 x float> @_Zml6float4S_(<4 x float> %271, <4 x float> %273)
  %275 = getelementptr inbounds %struct.float4, ptr %56, i32 0, i32 0
  store <4 x float> %274, ptr %275, align 16
  %276 = getelementptr inbounds %struct.float4, ptr %49, i32 0, i32 0
  %277 = load <4 x float>, ptr %276, align 16
  %278 = getelementptr inbounds %struct.float4, ptr %56, i32 0, i32 0
  %279 = load <4 x float>, ptr %278, align 16
  %280 = call <4 x float> @_Zpl6float4S_(<4 x float> %277, <4 x float> %279)
  %281 = getelementptr inbounds %struct.float4, ptr %48, i32 0, i32 0
  store <4 x float> %280, ptr %281, align 16
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %59, ptr align 16 %26, i64 16, i1 false), !tbaa.struct !20
  %282 = getelementptr inbounds %struct.float4, ptr %48, i32 0, i32 0
  %283 = load <4 x float>, ptr %282, align 16
  %284 = getelementptr inbounds %struct.float4, ptr %59, i32 0, i32 0
  %285 = load <4 x float>, ptr %284, align 16
  %286 = call <4 x float> @_Zmi6float4S_(<4 x float> %283, <4 x float> %285)
  %287 = getelementptr inbounds %struct.float4, ptr %47, i32 0, i32 0
  store <4 x float> %286, ptr %287, align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr %60) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %62, ptr align 16 %36, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %63, ptr align 16 %36, i64 16, i1 false), !tbaa.struct !20
  %288 = getelementptr inbounds %struct.float4, ptr %62, i32 0, i32 0
  %289 = load <4 x float>, ptr %288, align 16
  %290 = getelementptr inbounds %struct.float4, ptr %63, i32 0, i32 0
  %291 = load <4 x float>, ptr %290, align 16
  %292 = call <4 x float> @_Zml6float4S_(<4 x float> %289, <4 x float> %291)
  %293 = getelementptr inbounds %struct.float4, ptr %61, i32 0, i32 0
  store <4 x float> %292, ptr %293, align 16
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %64, ptr align 16 %47, i64 16, i1 false), !tbaa.struct !20
  %294 = getelementptr inbounds %struct.float4, ptr %61, i32 0, i32 0
  %295 = load <4 x float>, ptr %294, align 16
  %296 = getelementptr inbounds %struct.float4, ptr %64, i32 0, i32 0
  %297 = load <4 x float>, ptr %296, align 16
  %298 = call <4 x float> @_Zmi6float4S_(<4 x float> %295, <4 x float> %297)
  %299 = getelementptr inbounds %struct.float4, ptr %60, i32 0, i32 0
  store <4 x float> %298, ptr %299, align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr %65) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %66, ptr align 16 %60, i64 16, i1 false), !tbaa.struct !20
  call void @_ZN6float4C2Ef(ptr noundef nonnull align 16 dereferenceable(16) %67, float noundef 0.000000e+00)
  %300 = getelementptr inbounds %struct.float4, ptr %66, i32 0, i32 0
  %301 = load <4 x float>, ptr %300, align 16
  %302 = getelementptr inbounds %struct.float4, ptr %67, i32 0, i32 0
  %303 = load <4 x float>, ptr %302, align 16
  %304 = call <4 x float> @_Zgt6float4S_(<4 x float> %301, <4 x float> %303)
  %305 = getelementptr inbounds %struct.float4, ptr %65, i32 0, i32 0
  store <4 x float> %304, ptr %305, align 16
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %68, ptr align 16 %65, i64 16, i1 false), !tbaa.struct !20
  %306 = getelementptr inbounds %struct.float4, ptr %68, i32 0, i32 0
  %307 = load <4 x float>, ptr %306, align 16
  %308 = call noundef zeroext i1 @_Z3any6float4(<4 x float> %307)
  br i1 %308, label %309, label %377

309:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 16, ptr %69) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %70, ptr align 16 %60, i64 16, i1 false), !tbaa.struct !20
  %310 = getelementptr inbounds %struct.float4, ptr %70, i32 0, i32 0
  %311 = load <4 x float>, ptr %310, align 16
  %312 = call <4 x float> @_Z5sqrtf6float4(<4 x float> %311)
  %313 = getelementptr inbounds %struct.float4, ptr %69, i32 0, i32 0
  store <4 x float> %312, ptr %313, align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr %71) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %72, ptr align 16 %36, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %73, ptr align 16 %69, i64 16, i1 false), !tbaa.struct !20
  %314 = getelementptr inbounds %struct.float4, ptr %72, i32 0, i32 0
  %315 = load <4 x float>, ptr %314, align 16
  %316 = getelementptr inbounds %struct.float4, ptr %73, i32 0, i32 0
  %317 = load <4 x float>, ptr %316, align 16
  %318 = call <4 x float> @_Zmi6float4S_(<4 x float> %315, <4 x float> %317)
  %319 = getelementptr inbounds %struct.float4, ptr %71, i32 0, i32 0
  store <4 x float> %318, ptr %319, align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr %74) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %75, ptr align 16 %36, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %76, ptr align 16 %69, i64 16, i1 false), !tbaa.struct !20
  %320 = getelementptr inbounds %struct.float4, ptr %75, i32 0, i32 0
  %321 = load <4 x float>, ptr %320, align 16
  %322 = getelementptr inbounds %struct.float4, ptr %76, i32 0, i32 0
  %323 = load <4 x float>, ptr %322, align 16
  %324 = call <4 x float> @_Zpl6float4S_(<4 x float> %321, <4 x float> %323)
  %325 = getelementptr inbounds %struct.float4, ptr %74, i32 0, i32 0
  store <4 x float> %324, ptr %325, align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr %77) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %78, ptr align 16 %74, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %79, ptr align 16 %71, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %81, ptr align 16 %71, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %82, ptr align 16 %20, i64 16, i1 false), !tbaa.struct !20
  %326 = getelementptr inbounds %struct.float4, ptr %81, i32 0, i32 0
  %327 = load <4 x float>, ptr %326, align 16
  %328 = getelementptr inbounds %struct.float4, ptr %82, i32 0, i32 0
  %329 = load <4 x float>, ptr %328, align 16
  %330 = call <4 x float> @_Zgt6float4S_(<4 x float> %327, <4 x float> %329)
  %331 = getelementptr inbounds %struct.float4, ptr %80, i32 0, i32 0
  store <4 x float> %330, ptr %331, align 16
  %332 = getelementptr inbounds %struct.float4, ptr %78, i32 0, i32 0
  %333 = load <4 x float>, ptr %332, align 16
  %334 = getelementptr inbounds %struct.float4, ptr %79, i32 0, i32 0
  %335 = load <4 x float>, ptr %334, align 16
  %336 = getelementptr inbounds %struct.float4, ptr %80, i32 0, i32 0
  %337 = load <4 x float>, ptr %336, align 16
  %338 = call <4 x float> @_Z6select6float4S_S_(<4 x float> %333, <4 x float> %335, <4 x float> %337)
  %339 = getelementptr inbounds %struct.float4, ptr %77, i32 0, i32 0
  store <4 x float> %338, ptr %339, align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr %83) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %85, ptr align 16 %65, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %87, ptr align 16 %77, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %88, ptr align 16 %20, i64 16, i1 false), !tbaa.struct !20
  %340 = getelementptr inbounds %struct.float4, ptr %87, i32 0, i32 0
  %341 = load <4 x float>, ptr %340, align 16
  %342 = getelementptr inbounds %struct.float4, ptr %88, i32 0, i32 0
  %343 = load <4 x float>, ptr %342, align 16
  %344 = call <4 x float> @_Zgt6float4S_(<4 x float> %341, <4 x float> %343)
  %345 = getelementptr inbounds %struct.float4, ptr %86, i32 0, i32 0
  store <4 x float> %344, ptr %345, align 16
  %346 = getelementptr inbounds %struct.float4, ptr %85, i32 0, i32 0
  %347 = load <4 x float>, ptr %346, align 16
  %348 = getelementptr inbounds %struct.float4, ptr %86, i32 0, i32 0
  %349 = load <4 x float>, ptr %348, align 16
  %350 = call <4 x float> @_Zan6float4S_(<4 x float> %347, <4 x float> %349)
  %351 = getelementptr inbounds %struct.float4, ptr %84, i32 0, i32 0
  store <4 x float> %350, ptr %351, align 16
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %90, ptr align 16 %77, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %91, ptr align 16 %12, i64 16, i1 false), !tbaa.struct !20
  %352 = getelementptr inbounds %struct.float4, ptr %90, i32 0, i32 0
  %353 = load <4 x float>, ptr %352, align 16
  %354 = getelementptr inbounds %struct.float4, ptr %91, i32 0, i32 0
  %355 = load <4 x float>, ptr %354, align 16
  %356 = call <4 x float> @_Zlt6float4S_(<4 x float> %353, <4 x float> %355)
  %357 = getelementptr inbounds %struct.float4, ptr %89, i32 0, i32 0
  store <4 x float> %356, ptr %357, align 16
  %358 = getelementptr inbounds %struct.float4, ptr %84, i32 0, i32 0
  %359 = load <4 x float>, ptr %358, align 16
  %360 = getelementptr inbounds %struct.float4, ptr %89, i32 0, i32 0
  %361 = load <4 x float>, ptr %360, align 16
  %362 = call <4 x float> @_Zan6float4S_(<4 x float> %359, <4 x float> %361)
  %363 = getelementptr inbounds %struct.float4, ptr %83, i32 0, i32 0
  store <4 x float> %362, ptr %363, align 16
  %364 = load <2 x i64>, ptr %13, align 16, !tbaa !11
  %365 = load <2 x i64>, ptr %21, align 16, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %92, ptr align 16 %83, i64 16, i1 false), !tbaa.struct !20
  %366 = getelementptr inbounds %struct.float4, ptr %92, i32 0, i32 0
  %367 = load <4 x float>, ptr %366, align 16
  %368 = call noundef <2 x i64> @_Z6selectDv2_xS_6float4(<2 x i64> noundef %364, <2 x i64> noundef %365, <4 x float> %367)
  store <2 x i64> %368, ptr %13, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %93) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %94, ptr align 16 %12, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %95, ptr align 16 %77, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %96, ptr align 16 %83, i64 16, i1 false), !tbaa.struct !20
  %369 = getelementptr inbounds %struct.float4, ptr %94, i32 0, i32 0
  %370 = load <4 x float>, ptr %369, align 16
  %371 = getelementptr inbounds %struct.float4, ptr %95, i32 0, i32 0
  %372 = load <4 x float>, ptr %371, align 16
  %373 = getelementptr inbounds %struct.float4, ptr %96, i32 0, i32 0
  %374 = load <4 x float>, ptr %373, align 16
  %375 = call <4 x float> @_Z6select6float4S_S_(<4 x float> %370, <4 x float> %372, <4 x float> %374)
  %376 = getelementptr inbounds %struct.float4, ptr %93, i32 0, i32 0
  store <4 x float> %375, ptr %376, align 16
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %12, ptr align 16 %93, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 16, ptr %93) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %83) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %77) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %74) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %71) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %69) #5
  br label %377

377:                                              ; preds = %309, %179
  %378 = load <2 x i64>, ptr %21, align 16, !tbaa !11
  %379 = call noundef <2 x i64> @_ZL14_mm_set1_epi32i(i32 noundef 4)
  %380 = call noundef <2 x i64> @_ZL13_mm_add_epi32Dv2_xS_(<2 x i64> noundef %378, <2 x i64> noundef %379)
  store <2 x i64> %380, ptr %21, align 16, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %65) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %60) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %47) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #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
  br label %381

381:                                              ; preds = %377
  %382 = load i32, ptr %22, align 4, !tbaa !12
  %383 = add nsw i32 %382, 4
  store i32 %383, ptr %22, align 4, !tbaa !12
  br label %172, !llvm.loop !21

384:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 4, ptr %97) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %98, ptr align 16 %12, i64 16, i1 false), !tbaa.struct !20
  %385 = getelementptr inbounds %struct.float4, ptr %98, i32 0, i32 0
  %386 = load <4 x float>, ptr %385, align 16
  %387 = call noundef float @_Z4hmin6float4(<4 x float> %386)
  store float %387, ptr %97, align 4, !tbaa !9
  %388 = load float, ptr %97, align 4, !tbaa !9
  %389 = load float, ptr %10, align 4, !tbaa !9
  %390 = fcmp olt float %388, %389
  br i1 %390, label %391, label %478

391:                                              ; preds = %384
  call void @llvm.lifetime.start.p0(i64 4, ptr %99) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %101, ptr align 16 %12, i64 16, i1 false), !tbaa.struct !20
  %392 = load float, ptr %97, align 4, !tbaa !9
  call void @_ZN6float4C2Ef(ptr noundef nonnull align 16 dereferenceable(16) %102, float noundef %392)
  %393 = getelementptr inbounds %struct.float4, ptr %101, i32 0, i32 0
  %394 = load <4 x float>, ptr %393, align 16
  %395 = getelementptr inbounds %struct.float4, ptr %102, i32 0, i32 0
  %396 = load <4 x float>, ptr %395, align 16
  %397 = call <4 x float> @_Zeq6float4S_(<4 x float> %394, <4 x float> %396)
  %398 = getelementptr inbounds %struct.float4, ptr %100, i32 0, i32 0
  store <4 x float> %397, ptr %398, align 16
  %399 = getelementptr inbounds %struct.float4, ptr %100, i32 0, i32 0
  %400 = load <4 x float>, ptr %399, align 16
  %401 = call noundef i32 @_Z4mask6float4(<4 x float> %400)
  store i32 %401, ptr %99, align 4, !tbaa !12
  %402 = load i32, ptr %99, align 4, !tbaa !12
  %403 = icmp ne i32 %402, 0
  br i1 %403, label %404, label %474

404:                                              ; preds = %391
  call void @llvm.lifetime.start.p0(i64 16, ptr %103) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %104) #5
  %405 = getelementptr inbounds [4 x i32], ptr %103, i64 0, i64 0
  %406 = load <2 x i64>, ptr %13, align 16, !tbaa !11
  call void @_ZL16_mm_storeu_si128PDv2_xS_(ptr noundef %405, <2 x i64> noundef %406)
  %407 = getelementptr inbounds [4 x float], ptr %104, i64 0, i64 0
  %408 = getelementptr inbounds %struct.float4, ptr %12, i32 0, i32 0
  %409 = load <4 x float>, ptr %408, align 16, !tbaa !11
  call void @_ZL13_mm_storeu_psPfDv4_f(ptr noundef %407, <4 x float> noundef %409)
  call void @llvm.lifetime.start.p0(i64 4, ptr %105) #5
  %410 = load i32, ptr %99, align 4, !tbaa !12
  %411 = sext i32 %410 to i64
  %412 = getelementptr inbounds [16 x i32], ptr @_ZZ10HitSpheresRK3RayRK10SpheresSoAffR3HitE6laneId, i64 0, i64 %411
  %413 = load i32, ptr %412, align 4, !tbaa !12
  store i32 %413, ptr %105, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %106) #5
  %414 = load i32, ptr %105, align 4, !tbaa !12
  %415 = sext i32 %414 to i64
  %416 = getelementptr inbounds [4 x i32], ptr %103, i64 0, i64 %415
  %417 = load i32, ptr %416, align 4, !tbaa !12
  store i32 %417, ptr %106, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %107) #5
  %418 = load i32, ptr %105, align 4, !tbaa !12
  %419 = sext i32 %418 to i64
  %420 = getelementptr inbounds [4 x float], ptr %104, i64 0, i64 %419
  %421 = load float, ptr %420, align 4, !tbaa !9
  store float %421, ptr %107, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %108) #5
  %422 = load ptr, ptr %7, align 8, !tbaa !5
  %423 = load float, ptr %107, align 4, !tbaa !9
  %424 = call <4 x float> @_ZNK3Ray7pointAtEf(ptr noundef nonnull align 16 dereferenceable(32) %422, float noundef %423)
  %425 = getelementptr inbounds %struct.float3, ptr %108, i32 0, i32 0
  store <4 x float> %424, ptr %425, align 16
  %426 = load ptr, ptr %11, align 8, !tbaa !5
  %427 = getelementptr inbounds %struct.Hit, ptr %426, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %427, ptr align 16 %108, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 16, ptr %108) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %109) #5
  %428 = load ptr, ptr %11, align 8, !tbaa !5
  %429 = getelementptr inbounds %struct.Hit, ptr %428, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %111, ptr align 16 %429, i64 16, i1 false), !tbaa.struct !20
  %430 = load ptr, ptr %8, align 8, !tbaa !5
  %431 = getelementptr inbounds %struct.SpheresSoA, ptr %430, i32 0, i32 0
  %432 = load ptr, ptr %431, align 8, !tbaa !16
  %433 = load i32, ptr %106, align 4, !tbaa !12
  %434 = sext i32 %433 to i64
  %435 = getelementptr inbounds float, ptr %432, i64 %434
  %436 = load float, ptr %435, align 4, !tbaa !9
  %437 = load ptr, ptr %8, align 8, !tbaa !5
  %438 = getelementptr inbounds %struct.SpheresSoA, ptr %437, i32 0, i32 1
  %439 = load ptr, ptr %438, align 8, !tbaa !17
  %440 = load i32, ptr %106, align 4, !tbaa !12
  %441 = sext i32 %440 to i64
  %442 = getelementptr inbounds float, ptr %439, i64 %441
  %443 = load float, ptr %442, align 4, !tbaa !9
  %444 = load ptr, ptr %8, align 8, !tbaa !5
  %445 = getelementptr inbounds %struct.SpheresSoA, ptr %444, i32 0, i32 2
  %446 = load ptr, ptr %445, align 8, !tbaa !18
  %447 = load i32, ptr %106, align 4, !tbaa !12
  %448 = sext i32 %447 to i64
  %449 = getelementptr inbounds float, ptr %446, i64 %448
  %450 = load float, ptr %449, align 4, !tbaa !9
  call void @_ZN6float3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %112, float noundef %436, float noundef %443, float noundef %450)
  %451 = getelementptr inbounds %struct.float3, ptr %111, i32 0, i32 0
  %452 = load <4 x float>, ptr %451, align 16
  %453 = getelementptr inbounds %struct.float3, ptr %112, i32 0, i32 0
  %454 = load <4 x float>, ptr %453, align 16
  %455 = call <4 x float> @_Zmi6float3S_(<4 x float> %452, <4 x float> %454)
  %456 = getelementptr inbounds %struct.float3, ptr %110, i32 0, i32 0
  store <4 x float> %455, ptr %456, align 16
  %457 = load ptr, ptr %8, align 8, !tbaa !5
  %458 = getelementptr inbounds %struct.SpheresSoA, ptr %457, i32 0, i32 4
  %459 = load ptr, ptr %458, align 8, !tbaa !23
  %460 = load i32, ptr %106, align 4, !tbaa !12
  %461 = sext i32 %460 to i64
  %462 = getelementptr inbounds float, ptr %459, i64 %461
  %463 = load float, ptr %462, align 4, !tbaa !9
  %464 = getelementptr inbounds %struct.float3, ptr %110, i32 0, i32 0
  %465 = load <4 x float>, ptr %464, align 16
  %466 = call <4 x float> @_Zml6float3f(<4 x float> %465, float noundef %463)
  %467 = getelementptr inbounds %struct.float3, ptr %109, i32 0, i32 0
  store <4 x float> %466, ptr %467, align 16
  %468 = load ptr, ptr %11, align 8, !tbaa !5
  %469 = getelementptr inbounds %struct.Hit, ptr %468, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %469, ptr align 16 %109, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 16, ptr %109) #5
  %470 = load float, ptr %107, align 4, !tbaa !9
  %471 = load ptr, ptr %11, align 8, !tbaa !5
  %472 = getelementptr inbounds %struct.Hit, ptr %471, i32 0, i32 2
  store float %470, ptr %472, align 16, !tbaa !24
  %473 = load i32, ptr %106, align 4, !tbaa !12
  store i32 %473, ptr %6, align 4
  store i32 1, ptr %113, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %107) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %106) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %105) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %104) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %103) #5
  br label %475

474:                                              ; preds = %391
  store i32 0, ptr %113, align 4
  br label %475

475:                                              ; preds = %474, %404
  call void @llvm.lifetime.end.p0(i64 4, ptr %99) #5
  %476 = load i32, ptr %113, align 4
  switch i32 %476, label %479 [
    i32 0, label %477
  ]

477:                                              ; preds = %475
  br label %478

478:                                              ; preds = %477, %384
  store i32 -1, ptr %6, align 4
  store i32 1, ptr %113, align 4
  br label %479

479:                                              ; preds = %478, %475
  call void @llvm.lifetime.end.p0(i64 4, ptr %97) #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 16, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  %480 = load i32, ptr %6, align 4
  ret i32 %480
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN6float4C2Ef(ptr noundef nonnull align 16 dereferenceable(16), float noundef) unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare hidden noundef <2 x i64> @_ZL14_mm_set1_epi32i(i32 noundef) #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN6float4C2EDv4_f(ptr noundef nonnull align 16 dereferenceable(16), <4 x float> noundef) unnamed_addr #4 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <2 x i64> @_ZL13_mm_set_epi32iiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #4

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN6float4C2EPKf(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef) unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local <4 x float> @_Zmi6float4S_(<4 x float>, <4 x float>) #4

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local <4 x float> @_Zpl6float4S_(<4 x float>, <4 x float>) #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local <4 x float> @_Zml6float4S_(<4 x float>, <4 x float>) #4

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local <4 x float> @_Zgt6float4S_(<4 x float>, <4 x float>) #1

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z3any6float4(<4 x float>) #1

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local <4 x float> @_Z5sqrtf6float4(<4 x float>) #1

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local <4 x float> @_Z6select6float4S_S_(<4 x float>, <4 x float>, <4 x float>) #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local <4 x float> @_Zan6float4S_(<4 x float>, <4 x float>) #4

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local <4 x float> @_Zlt6float4S_(<4 x float>, <4 x float>) #1

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef <2 x i64> @_Z6selectDv2_xS_6float4(<2 x i64> noundef, <2 x i64> noundef, <4 x float>) #1

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_Z4hmin6float4(<4 x float>) #1

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef i32 @_Z4mask6float4(<4 x float>) #1

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local <4 x float> @_Zeq6float4S_(<4 x float>, <4 x float>) #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden void @_ZL16_mm_storeu_si128PDv2_xS_(ptr noundef, <2 x i64> noundef) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local <4 x float> @_ZNK3Ray7pointAtEf(ptr noundef nonnull align 16 dereferenceable(32), float noundef) #3 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { alwaysinline 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !13, i64 40}
!15 = !{!"_ZTS10SpheresSoA", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !13, i64 40, !13, i64 44}
!16 = !{!15, !6, i64 0}
!17 = !{!15, !6, i64 8}
!18 = !{!15, !6, i64 16}
!19 = !{!15, !6, i64 24}
!20 = !{i64 0, i64 16, !11}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!15, !6, i64 32}
!24 = !{!25, !10, i64 32}
!25 = !{!"_ZTS3Hit", !26, i64 0, !26, i64 16, !10, i64 32}
!26 = !{!"_ZTS6float3", !7, 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.float4 = type { <4 x float> }
%struct.float3 = type { <4 x float> }

@_ZZ10HitSpheresRK3RayRK10SpheresSoAffR3HitE6laneId = external hidden local_unnamed_addr constant [16 x i32], align 16

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local <4 x float> @_Zmi6float3S_(<4 x float>, <4 x float>) local_unnamed_addr #1

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN6float3C2Efff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z10HitSpheresRK3RayRK10SpheresSoAffR3Hit(ptr noundef nonnull align 16 dereferenceable(32) %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(48) %1, float noundef %2, float noundef %3, ptr nocapture noundef nonnull writeonly align 16 dereferenceable(36) %4) local_unnamed_addr #2 {
  %6 = alloca %struct.float4, align 16
  %7 = alloca %struct.float4, align 16
  %8 = alloca %struct.float4, align 16
  %9 = alloca %struct.float4, align 16
  %10 = alloca %struct.float4, align 16
  %11 = alloca %struct.float4, align 16
  %12 = alloca %struct.float4, align 16
  %13 = alloca %struct.float4, align 16
  %14 = alloca %struct.float4, align 16
  %15 = alloca %struct.float4, align 16
  %16 = alloca %struct.float4, align 16
  %17 = alloca %struct.float4, align 16
  %18 = alloca %struct.float4, align 16
  %19 = alloca %struct.float4, align 16
  %20 = alloca [4 x i32], align 16
  %21 = alloca [4 x float], align 16
  %22 = alloca %struct.float3, align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  call void @_ZN6float4C2Ef(ptr noundef nonnull align 16 dereferenceable(16) %6, float noundef %3)
  %23 = call noundef <2 x i64> @_ZL14_mm_set1_epi32i(i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #4
  %24 = load <4 x float>, ptr %0, align 16, !tbaa !5
  %25 = shufflevector <4 x float> %24, <4 x float> poison, <4 x i32> zeroinitializer
  call void @_ZN6float4C2EDv4_f(ptr noundef nonnull align 16 dereferenceable(16) %7, <4 x float> noundef %25)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #4
  %26 = load <4 x float>, ptr %0, align 16, !tbaa !5
  %27 = shufflevector <4 x float> %26, <4 x float> poison, <4 x i32> <i32 1, i32 1, i32 1, i32 1>
  call void @_ZN6float4C2EDv4_f(ptr noundef nonnull align 16 dereferenceable(16) %8, <4 x float> noundef %27)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #4
  %28 = load <4 x float>, ptr %0, align 16, !tbaa !5
  %29 = shufflevector <4 x float> %28, <4 x float> poison, <4 x i32> <i32 2, i32 2, i32 2, i32 2>
  call void @_ZN6float4C2EDv4_f(ptr noundef nonnull align 16 dereferenceable(16) %9, <4 x float> noundef %29)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #4
  %30 = getelementptr inbounds i8, ptr %0, i64 16
  %31 = load <4 x float>, ptr %30, align 16, !tbaa !5
  %32 = shufflevector <4 x float> %31, <4 x float> poison, <4 x i32> zeroinitializer
  call void @_ZN6float4C2EDv4_f(ptr noundef nonnull align 16 dereferenceable(16) %10, <4 x float> noundef %32)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #4
  %33 = load <4 x float>, ptr %30, align 16, !tbaa !5
  %34 = shufflevector <4 x float> %33, <4 x float> poison, <4 x i32> <i32 1, i32 1, i32 1, i32 1>
  call void @_ZN6float4C2EDv4_f(ptr noundef nonnull align 16 dereferenceable(16) %11, <4 x float> noundef %34)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #4
  %35 = load <4 x float>, ptr %30, align 16, !tbaa !5
  %36 = shufflevector <4 x float> %35, <4 x float> poison, <4 x i32> <i32 2, i32 2, i32 2, i32 2>
  call void @_ZN6float4C2EDv4_f(ptr noundef nonnull align 16 dereferenceable(16) %12, <4 x float> noundef %36)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #4
  call void @_ZN6float4C2Ef(ptr noundef nonnull align 16 dereferenceable(16) %13, float noundef %2)
  %37 = call noundef <2 x i64> @_ZL13_mm_set_epi32iiii(i32 noundef 3, i32 noundef 2, i32 noundef 1, i32 noundef 0)
  %38 = getelementptr inbounds i8, ptr %1, i64 40
  %39 = load i32, ptr %38, align 8, !tbaa !8
  %40 = icmp sgt i32 %39, 0
  br i1 %40, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %5
  %41 = getelementptr inbounds i8, ptr %1, i64 8
  %42 = getelementptr inbounds i8, ptr %1, i64 16
  %43 = getelementptr inbounds i8, ptr %1, i64 24
  br label %46

._crit_edge:                                      ; preds = %86, %5
  %.0145.lcssa = phi <2 x i64> [ %23, %5 ], [ %.1146, %86 ]
  %.sroa.016.0.copyload = load <4 x float>, ptr %6, align 16, !tbaa !5
  %44 = call noundef float @_Z4hmin6float4(<4 x float> %.sroa.016.0.copyload)
  %45 = fcmp olt float %44, %3
  br i1 %45, label %92, label %.thread

46:                                               ; preds = %.lr.ph, %86
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %86 ]
  %.0145154 = phi <2 x i64> [ %23, %.lr.ph ], [ %.1146, %86 ]
  %.0147153 = phi <2 x i64> [ %37, %.lr.ph ], [ %88, %86 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #4
  %47 = load ptr, ptr %1, align 8, !tbaa !12
  %48 = getelementptr inbounds float, ptr %47, i64 %indvars.iv
  call void @_ZN6float4C2EPKf(ptr noundef nonnull align 16 dereferenceable(16) %14, ptr noundef %48)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #4
  %49 = load ptr, ptr %41, align 8, !tbaa !13
  %50 = getelementptr inbounds float, ptr %49, i64 %indvars.iv
  call void @_ZN6float4C2EPKf(ptr noundef nonnull align 16 dereferenceable(16) %15, ptr noundef %50)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #4
  %51 = load ptr, ptr %42, align 8, !tbaa !14
  %52 = getelementptr inbounds float, ptr %51, i64 %indvars.iv
  call void @_ZN6float4C2EPKf(ptr noundef nonnull align 16 dereferenceable(16) %16, ptr noundef %52)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #4
  %53 = load ptr, ptr %43, align 8, !tbaa !15
  %54 = getelementptr inbounds float, ptr %53, i64 %indvars.iv
  call void @_ZN6float4C2EPKf(ptr noundef nonnull align 16 dereferenceable(16) %17, ptr noundef %54)
  %.sroa.0100.0.copyload = load <4 x float>, ptr %14, align 16, !tbaa !5
  %.sroa.099.0.copyload = load <4 x float>, ptr %7, align 16, !tbaa !5
  %55 = call <4 x float> @_Zmi6float4S_(<4 x float> %.sroa.0100.0.copyload, <4 x float> %.sroa.099.0.copyload)
  %.sroa.095.0.copyload = load <4 x float>, ptr %15, align 16, !tbaa !5
  %.sroa.094.0.copyload = load <4 x float>, ptr %8, align 16, !tbaa !5
  %56 = call <4 x float> @_Zmi6float4S_(<4 x float> %.sroa.095.0.copyload, <4 x float> %.sroa.094.0.copyload)
  %.sroa.090.0.copyload = load <4 x float>, ptr %16, align 16, !tbaa !5
  %.sroa.089.0.copyload = load <4 x float>, ptr %9, align 16, !tbaa !5
  %57 = call <4 x float> @_Zmi6float4S_(<4 x float> %.sroa.090.0.copyload, <4 x float> %.sroa.089.0.copyload)
  %.sroa.081.0.copyload = load <4 x float>, ptr %10, align 16, !tbaa !5
  %58 = call <4 x float> @_Zml6float4S_(<4 x float> %55, <4 x float> %.sroa.081.0.copyload)
  %.sroa.078.0.copyload = load <4 x float>, ptr %11, align 16, !tbaa !5
  %59 = call <4 x float> @_Zml6float4S_(<4 x float> %56, <4 x float> %.sroa.078.0.copyload)
  %60 = call <4 x float> @_Zpl6float4S_(<4 x float> %58, <4 x float> %59)
  %.sroa.075.0.copyload = load <4 x float>, ptr %12, align 16, !tbaa !5
  %61 = call <4 x float> @_Zml6float4S_(<4 x float> %57, <4 x float> %.sroa.075.0.copyload)
  %62 = call <4 x float> @_Zpl6float4S_(<4 x float> %60, <4 x float> %61)
  %63 = call <4 x float> @_Zml6float4S_(<4 x float> %55, <4 x float> %55)
  %64 = call <4 x float> @_Zml6float4S_(<4 x float> %56, <4 x float> %56)
  %65 = call <4 x float> @_Zpl6float4S_(<4 x float> %63, <4 x float> %64)
  %66 = call <4 x float> @_Zml6float4S_(<4 x float> %57, <4 x float> %57)
  %67 = call <4 x float> @_Zpl6float4S_(<4 x float> %65, <4 x float> %66)
  %.sroa.062.0.copyload = load <4 x float>, ptr %17, align 16, !tbaa !5
  %68 = call <4 x float> @_Zmi6float4S_(<4 x float> %67, <4 x float> %.sroa.062.0.copyload)
  %69 = call <4 x float> @_Zml6float4S_(<4 x float> %62, <4 x float> %62)
  %70 = call <4 x float> @_Zmi6float4S_(<4 x float> %69, <4 x float> %68)
  call void @_ZN6float4C2Ef(ptr noundef nonnull align 16 dereferenceable(16) %18, float noundef 0.000000e+00)
  %71 = load <4 x float>, ptr %18, align 16
  %72 = call <4 x float> @_Zgt6float4S_(<4 x float> %70, <4 x float> %71)
  %73 = call noundef zeroext i1 @_Z3any6float4(<4 x float> %72)
  br i1 %73, label %74, label %86

74:                                               ; preds = %46
  %75 = call <4 x float> @_Z5sqrtf6float4(<4 x float> %70)
  %76 = call <4 x float> @_Zmi6float4S_(<4 x float> %62, <4 x float> %75)
  %77 = call <4 x float> @_Zpl6float4S_(<4 x float> %62, <4 x float> %75)
  %.sroa.034.0.copyload = load <4 x float>, ptr %13, align 16, !tbaa !5
  %78 = call <4 x float> @_Zgt6float4S_(<4 x float> %76, <4 x float> %.sroa.034.0.copyload)
  %79 = call <4 x float> @_Z6select6float4S_S_(<4 x float> %77, <4 x float> %76, <4 x float> %78)
  %.sroa.027.0.copyload = load <4 x float>, ptr %13, align 16, !tbaa !5
  %80 = call <4 x float> @_Zgt6float4S_(<4 x float> %79, <4 x float> %.sroa.027.0.copyload)
  %81 = call <4 x float> @_Zan6float4S_(<4 x float> %72, <4 x float> %80)
  %.sroa.024.0.copyload = load <4 x float>, ptr %6, align 16, !tbaa !5
  %82 = call <4 x float> @_Zlt6float4S_(<4 x float> %79, <4 x float> %.sroa.024.0.copyload)
  %83 = call <4 x float> @_Zan6float4S_(<4 x float> %81, <4 x float> %82)
  %84 = call noundef <2 x i64> @_Z6selectDv2_xS_6float4(<2 x i64> noundef %.0145154, <2 x i64> noundef %.0147153, <4 x float> %83)
  %.sroa.021.0.copyload = load <4 x float>, ptr %6, align 16, !tbaa !5
  %85 = call <4 x float> @_Z6select6float4S_S_(<4 x float> %.sroa.021.0.copyload, <4 x float> %79, <4 x float> %83)
  store <4 x float> %85, ptr %6, align 16, !tbaa !5
  br label %86

86:                                               ; preds = %74, %46
  %.1146 = phi <2 x i64> [ %84, %74 ], [ %.0145154, %46 ]
  %87 = call noundef <2 x i64> @_ZL14_mm_set1_epi32i(i32 noundef 4)
  %88 = call noundef <2 x i64> @_ZL13_mm_add_epi32Dv2_xS_(<2 x i64> noundef %.0147153, <2 x i64> noundef %87)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 4
  %89 = load i32, ptr %38, align 8, !tbaa !8
  %90 = trunc nuw i64 %indvars.iv.next to i32
  %91 = icmp sgt i32 %89, %90
  br i1 %91, label %46, label %._crit_edge, !llvm.loop !16

92:                                               ; preds = %._crit_edge
  %.sroa.012.0.copyload = load <4 x float>, ptr %6, align 16, !tbaa !5
  call void @_ZN6float4C2Ef(ptr noundef nonnull align 16 dereferenceable(16) %19, float noundef %44)
  %93 = load <4 x float>, ptr %19, align 16
  %94 = call <4 x float> @_Zeq6float4S_(<4 x float> %.sroa.012.0.copyload, <4 x float> %93)
  %95 = call noundef i32 @_Z4mask6float4(<4 x float> %94)
  %.not = icmp eq i32 %95, 0
  br i1 %.not, label %.thread, label %96

96:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #4
  call void @_ZL16_mm_storeu_si128PDv2_xS_(ptr noundef nonnull %20, <2 x i64> noundef %.0145.lcssa)
  %97 = load <4 x float>, ptr %6, align 16, !tbaa !5
  call void @_ZL13_mm_storeu_psPfDv4_f(ptr noundef nonnull %21, <4 x float> noundef %97)
  %98 = sext i32 %95 to i64
  %99 = getelementptr inbounds [16 x i32], ptr @_ZZ10HitSpheresRK3RayRK10SpheresSoAffR3HitE6laneId, i64 0, i64 %98
  %100 = load i32, ptr %99, align 4, !tbaa !18
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [4 x i32], ptr %20, i64 0, i64 %101
  %103 = load i32, ptr %102, align 4, !tbaa !18
  %104 = getelementptr inbounds [4 x float], ptr %21, i64 0, i64 %101
  %105 = load float, ptr %104, align 4, !tbaa !19
  %106 = call <4 x float> @_ZNK3Ray7pointAtEf(ptr noundef nonnull align 16 dereferenceable(32) %0, float noundef %105)
  store <4 x float> %106, ptr %4, align 16, !tbaa !5
  %107 = load ptr, ptr %1, align 8, !tbaa !12
  %108 = sext i32 %103 to i64
  %109 = getelementptr inbounds float, ptr %107, i64 %108
  %110 = load float, ptr %109, align 4, !tbaa !19
  %111 = getelementptr inbounds i8, ptr %1, i64 8
  %112 = load ptr, ptr %111, align 8, !tbaa !13
  %113 = getelementptr inbounds float, ptr %112, i64 %108
  %114 = load float, ptr %113, align 4, !tbaa !19
  %115 = getelementptr inbounds i8, ptr %1, i64 16
  %116 = load ptr, ptr %115, align 8, !tbaa !14
  %117 = getelementptr inbounds float, ptr %116, i64 %108
  %118 = load float, ptr %117, align 4, !tbaa !19
  call void @_ZN6float3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %22, float noundef %110, float noundef %114, float noundef %118)
  %119 = load <4 x float>, ptr %22, align 16
  %120 = call <4 x float> @_Zmi6float3S_(<4 x float> %106, <4 x float> %119)
  %121 = getelementptr inbounds i8, ptr %1, i64 32
  %122 = load ptr, ptr %121, align 8, !tbaa !21
  %123 = getelementptr inbounds float, ptr %122, i64 %108
  %124 = load float, ptr %123, align 4, !tbaa !19
  %125 = call <4 x float> @_Zml6float3f(<4 x float> %120, float noundef %124)
  %126 = getelementptr inbounds i8, ptr %4, i64 16
  store <4 x float> %125, ptr %126, align 16, !tbaa !5
  %127 = getelementptr inbounds i8, ptr %4, i64 32
  store float %105, ptr %127, align 16, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #4
  br label %.thread

.thread:                                          ; preds = %92, %._crit_edge, %96
  %.1 = phi i32 [ %103, %96 ], [ -1, %._crit_edge ], [ -1, %92 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  ret i32 %.1
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN6float4C2Ef(ptr noundef nonnull align 16 dereferenceable(16), float noundef) unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare hidden noundef <2 x i64> @_ZL14_mm_set1_epi32i(i32 noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN6float4C2EDv4_f(ptr noundef nonnull align 16 dereferenceable(16), <4 x float> noundef) unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <2 x i64> @_ZL13_mm_set_epi32iiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN6float4C2EPKf(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef) unnamed_addr #1 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local <4 x float> @_Zpl6float4S_(<4 x float>, <4 x float>) local_unnamed_addr #1

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local <4 x float> @_Zgt6float4S_(<4 x float>, <4 x float>) local_unnamed_addr #1

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z3any6float4(<4 x float>) local_unnamed_addr #1

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local <4 x float> @_Z5sqrtf6float4(<4 x float>) local_unnamed_addr #1

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local <4 x float> @_Z6select6float4S_S_(<4 x float>, <4 x float>, <4 x float>) local_unnamed_addr #1

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local <4 x float> @_Zlt6float4S_(<4 x float>, <4 x float>) local_unnamed_addr #1

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef <2 x i64> @_Z6selectDv2_xS_6float4(<2 x i64> noundef, <2 x i64> noundef, <4 x float>) local_unnamed_addr #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <2 x i64> @_ZL13_mm_add_epi32Dv2_xS_(<2 x i64> noundef, <2 x i64> noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_Z4hmin6float4(<4 x float>) local_unnamed_addr #1

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef i32 @_Z4mask6float4(<4 x float>) local_unnamed_addr #1

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local <4 x float> @_Zeq6float4S_(<4 x float>, <4 x float>) local_unnamed_addr #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden void @_ZL16_mm_storeu_si128PDv2_xS_(ptr noundef, <2 x i64> noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local <4 x float> @_ZNK3Ray7pointAtEf(ptr noundef nonnull align 16 dereferenceable(32), float noundef) local_unnamed_addr #2 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { alwaysinline 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 #2 = { 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 #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 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !11, i64 40}
!9 = !{!"_ZTS10SpheresSoA", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !11, i64 40, !11, i64 44}
!10 = !{!"any pointer", !6, i64 0}
!11 = !{!"int", !6, i64 0}
!12 = !{!9, !10, i64 0}
!13 = !{!9, !10, i64 8}
!14 = !{!9, !10, i64 16}
!15 = !{!9, !10, i64 24}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!11, !11, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"float", !6, i64 0}
!21 = !{!9, !10, i64 32}
!22 = !{!23, !20, i64 32}
!23 = !{!"_ZTS3Hit", !24, i64 0, !24, i64 16, !20, i64 32}
!24 = !{!"_ZTS6float3", !6, i64 0}


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