; LLVM IR from KonajuGames/libsquish :: maths.ll (ZN6squish25ComputePrincipleComponentERKNS_6Sym3x3E)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.squish::Vec3" = type { float, float, float }
%"class.squish::Vec4" = type { <4 x float> }

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

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

; 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 { <2 x float>, float } @_ZN6squish25ComputePrincipleComponentERKNS_6Sym3x3E(ptr noundef nonnull align 4 dereferenceable(24) %0) #2 {
  %2 = alloca %"class.squish::Vec3", align 4
  %3 = alloca ptr, align 8
  %4 = alloca %"class.squish::Vec4", align 16
  %5 = alloca %"class.squish::Vec4", align 16
  %6 = alloca %"class.squish::Vec4", align 16
  %7 = alloca %"class.squish::Vec4", align 16
  %8 = alloca i32, align 4
  %9 = alloca %"class.squish::Vec4", align 16
  %10 = alloca %"class.squish::Vec4", align 16
  %11 = alloca %"class.squish::Vec4", align 16
  %12 = alloca %"class.squish::Vec4", align 16
  %13 = alloca %"class.squish::Vec4", align 16
  %14 = alloca %"class.squish::Vec4", align 16
  %15 = alloca %"class.squish::Vec4", align 16
  %16 = alloca %"class.squish::Vec4", align 16
  %17 = alloca %"class.squish::Vec4", align 16
  %18 = alloca %"class.squish::Vec4", align 16
  %19 = alloca %"class.squish::Vec4", align 16
  %20 = alloca %"class.squish::Vec4", align 16
  %21 = alloca %"class.squish::Vec4", align 16
  %22 = alloca { <2 x float>, float }, align 8
  %23 = alloca { <2 x float>, float }, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #5
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = call noundef float @_ZNK6squish6Sym3x3ixEi(ptr noundef nonnull align 4 dereferenceable(24) %24, i32 noundef 0)
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = call noundef float @_ZNK6squish6Sym3x3ixEi(ptr noundef nonnull align 4 dereferenceable(24) %26, i32 noundef 1)
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = call noundef float @_ZNK6squish6Sym3x3ixEi(ptr noundef nonnull align 4 dereferenceable(24) %28, i32 noundef 2)
  call void @_ZN6squish4Vec4C2Effff(ptr noundef nonnull align 16 dereferenceable(16) %4, float noundef %25, float noundef %27, float noundef %29, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #5
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = call noundef float @_ZNK6squish6Sym3x3ixEi(ptr noundef nonnull align 4 dereferenceable(24) %30, i32 noundef 1)
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = call noundef float @_ZNK6squish6Sym3x3ixEi(ptr noundef nonnull align 4 dereferenceable(24) %32, i32 noundef 3)
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = call noundef float @_ZNK6squish6Sym3x3ixEi(ptr noundef nonnull align 4 dereferenceable(24) %34, i32 noundef 4)
  call void @_ZN6squish4Vec4C2Effff(ptr noundef nonnull align 16 dereferenceable(16) %5, float noundef %31, float noundef %33, float noundef %35, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #5
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = call noundef float @_ZNK6squish6Sym3x3ixEi(ptr noundef nonnull align 4 dereferenceable(24) %36, i32 noundef 2)
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = call noundef float @_ZNK6squish6Sym3x3ixEi(ptr noundef nonnull align 4 dereferenceable(24) %38, i32 noundef 4)
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = call noundef float @_ZNK6squish6Sym3x3ixEi(ptr noundef nonnull align 4 dereferenceable(24) %40, i32 noundef 5)
  call void @_ZN6squish4Vec4C2Effff(ptr noundef nonnull align 16 dereferenceable(16) %6, float noundef %37, float noundef %39, float noundef %41, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #5
  call void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 16 dereferenceable(16) %7, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %42

42:                                               ; preds = %50, %1
  %43 = load i32, ptr %8, align 4, !tbaa !9
  %44 = icmp slt i32 %43, 8
  br i1 %44, label %46, label %45

45:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %53

46:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  call void @_ZNK6squish4Vec46SplatXEv(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %10, ptr noundef nonnull align 16 dereferenceable(16) %7)
  call void @_ZN6squishmlERKNS_4Vec4ES2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %9, ptr noundef nonnull align 16 dereferenceable(16) %4, ptr noundef nonnull align 16 dereferenceable(16) %10)
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  call void @_ZNK6squish4Vec46SplatYEv(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %12, ptr noundef nonnull align 16 dereferenceable(16) %7)
  call void @_ZN6squish11MultiplyAddERKNS_4Vec4ES2_S2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %11, ptr noundef nonnull align 16 dereferenceable(16) %5, ptr noundef nonnull align 16 dereferenceable(16) %12, ptr noundef nonnull align 16 dereferenceable(16) %9)
  %47 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN6squish4Vec4aSERKS0_(ptr noundef nonnull align 16 dereferenceable(16) %9, ptr noundef nonnull align 16 dereferenceable(16) %11)
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #5
  call void @_ZNK6squish4Vec46SplatZEv(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %14, ptr noundef nonnull align 16 dereferenceable(16) %7)
  call void @_ZN6squish11MultiplyAddERKNS_4Vec4ES2_S2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %13, ptr noundef nonnull align 16 dereferenceable(16) %6, ptr noundef nonnull align 16 dereferenceable(16) %14, ptr noundef nonnull align 16 dereferenceable(16) %9)
  %48 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN6squish4Vec4aSERKS0_(ptr noundef nonnull align 16 dereferenceable(16) %9, ptr noundef nonnull align 16 dereferenceable(16) %13)
  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.start.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #5
  call void @_ZNK6squish4Vec46SplatXEv(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %16, ptr noundef nonnull align 16 dereferenceable(16) %9)
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #5
  call void @_ZNK6squish4Vec46SplatYEv(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %18, ptr noundef nonnull align 16 dereferenceable(16) %9)
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #5
  call void @_ZNK6squish4Vec46SplatZEv(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %19, ptr noundef nonnull align 16 dereferenceable(16) %9)
  call void @_ZN6squish3MaxERKNS_4Vec4ES2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %17, ptr noundef nonnull align 16 dereferenceable(16) %18, ptr noundef nonnull align 16 dereferenceable(16) %19)
  call void @_ZN6squish3MaxERKNS_4Vec4ES2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %15, ptr noundef nonnull align 16 dereferenceable(16) %16, ptr noundef nonnull align 16 dereferenceable(16) %17)
  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.start.p0(i64 16, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #5
  call void @_ZN6squish10ReciprocalERKNS_4Vec4E(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %21, ptr noundef nonnull align 16 dereferenceable(16) %15)
  call void @_ZN6squishmlERKNS_4Vec4ES2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %20, ptr noundef nonnull align 16 dereferenceable(16) %9, ptr noundef nonnull align 16 dereferenceable(16) %21)
  %49 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN6squish4Vec4aSERKS0_(ptr noundef nonnull align 16 dereferenceable(16) %7, ptr noundef nonnull align 16 dereferenceable(16) %20)
  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 %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #5
  br label %50

50:                                               ; preds = %46
  %51 = load i32, ptr %8, align 4, !tbaa !9
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %8, align 4, !tbaa !9
  br label %42, !llvm.loop !11

53:                                               ; preds = %45
  %54 = call { <2 x float>, float } @_ZNK6squish4Vec47GetVec3Ev(ptr noundef nonnull align 16 dereferenceable(16) %7)
  store { <2 x float>, float } %54, ptr %22, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %2, ptr align 8 %22, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 4 %2, i64 12, i1 false)
  %55 = load { <2 x float>, float }, ptr %23, align 8
  ret { <2 x float>, float } %55
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK6squish6Sym3x3ixEi(ptr noundef nonnull align 4 dereferenceable(24), i32 noundef) #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6squishmlERKNS_4Vec4ES2_(ptr dead_on_unwind noalias writable sret(%"class.squish::Vec4") align 16, ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK6squish4Vec46SplatXEv(ptr dead_on_unwind noalias writable sret(%"class.squish::Vec4") align 16, ptr noundef nonnull align 16 dereferenceable(16)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6squish11MultiplyAddERKNS_4Vec4ES2_S2_(ptr dead_on_unwind noalias writable sret(%"class.squish::Vec4") align 16, ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK6squish4Vec46SplatYEv(ptr dead_on_unwind noalias writable sret(%"class.squish::Vec4") align 16, ptr noundef nonnull align 16 dereferenceable(16)) #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK6squish4Vec46SplatZEv(ptr dead_on_unwind noalias writable sret(%"class.squish::Vec4") align 16, ptr noundef nonnull align 16 dereferenceable(16)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6squish3MaxERKNS_4Vec4ES2_(ptr dead_on_unwind noalias writable sret(%"class.squish::Vec4") align 16, ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6squish10ReciprocalERKNS_4Vec4E(ptr dead_on_unwind noalias writable sret(%"class.squish::Vec4") align 16, ptr noundef nonnull align 16 dereferenceable(16)) #4

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.squish::Vec4" = type { <4 x float> }

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

; 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 { <2 x float>, float } @_ZN6squish25ComputePrincipleComponentERKNS_6Sym3x3E(ptr noundef nonnull align 4 dereferenceable(24) %0) local_unnamed_addr #1 {
  %2 = alloca %"class.squish::Vec4", align 16
  %3 = alloca %"class.squish::Vec4", align 16
  %4 = alloca %"class.squish::Vec4", align 16
  %5 = alloca %"class.squish::Vec4", align 16
  %6 = alloca %"class.squish::Vec4", align 16
  %7 = alloca %"class.squish::Vec4", align 16
  %8 = alloca %"class.squish::Vec4", align 16
  %9 = alloca %"class.squish::Vec4", align 16
  %10 = alloca %"class.squish::Vec4", align 16
  %11 = alloca %"class.squish::Vec4", align 16
  %12 = alloca %"class.squish::Vec4", align 16
  %13 = alloca %"class.squish::Vec4", align 16
  %14 = alloca %"class.squish::Vec4", align 16
  %15 = alloca %"class.squish::Vec4", align 16
  %16 = alloca %"class.squish::Vec4", align 16
  %17 = alloca %"class.squish::Vec4", align 16
  %18 = alloca %"class.squish::Vec4", align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #4
  %19 = tail call noundef float @_ZNK6squish6Sym3x3ixEi(ptr noundef nonnull align 4 dereferenceable(24) %0, i32 noundef 0)
  %20 = tail call noundef float @_ZNK6squish6Sym3x3ixEi(ptr noundef nonnull align 4 dereferenceable(24) %0, i32 noundef 1)
  %21 = tail call noundef float @_ZNK6squish6Sym3x3ixEi(ptr noundef nonnull align 4 dereferenceable(24) %0, i32 noundef 2)
  call void @_ZN6squish4Vec4C2Effff(ptr noundef nonnull align 16 dereferenceable(16) %2, float noundef %19, float noundef %20, float noundef %21, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #4
  %22 = call noundef float @_ZNK6squish6Sym3x3ixEi(ptr noundef nonnull align 4 dereferenceable(24) %0, i32 noundef 1)
  %23 = call noundef float @_ZNK6squish6Sym3x3ixEi(ptr noundef nonnull align 4 dereferenceable(24) %0, i32 noundef 3)
  %24 = call noundef float @_ZNK6squish6Sym3x3ixEi(ptr noundef nonnull align 4 dereferenceable(24) %0, i32 noundef 4)
  call void @_ZN6squish4Vec4C2Effff(ptr noundef nonnull align 16 dereferenceable(16) %3, float noundef %22, float noundef %23, float noundef %24, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #4
  %25 = call noundef float @_ZNK6squish6Sym3x3ixEi(ptr noundef nonnull align 4 dereferenceable(24) %0, i32 noundef 2)
  %26 = call noundef float @_ZNK6squish6Sym3x3ixEi(ptr noundef nonnull align 4 dereferenceable(24) %0, i32 noundef 4)
  %27 = call noundef float @_ZNK6squish6Sym3x3ixEi(ptr noundef nonnull align 4 dereferenceable(24) %0, i32 noundef 5)
  call void @_ZN6squish4Vec4C2Effff(ptr noundef nonnull align 16 dereferenceable(16) %4, float noundef %25, float noundef %26, float noundef %27, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  call void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 16 dereferenceable(16) %5, float noundef 1.000000e+00)
  br label %30

28:                                               ; preds = %30
  %29 = call { <2 x float>, float } @_ZNK6squish4Vec47GetVec3Ev(ptr noundef nonnull align 16 dereferenceable(16) %5)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #4
  ret { <2 x float>, float } %29

30:                                               ; preds = %1, %30
  %.014 = phi i32 [ 0, %1 ], [ %34, %30 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #4
  call void @_ZNK6squish4Vec46SplatXEv(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %7, ptr noundef nonnull align 16 dereferenceable(16) %5)
  call void @_ZN6squishmlERKNS_4Vec4ES2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %6, ptr noundef nonnull align 16 dereferenceable(16) %2, ptr noundef nonnull align 16 dereferenceable(16) %7)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #4
  call void @_ZNK6squish4Vec46SplatYEv(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %9, ptr noundef nonnull align 16 dereferenceable(16) %5)
  call void @_ZN6squish11MultiplyAddERKNS_4Vec4ES2_S2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %8, ptr noundef nonnull align 16 dereferenceable(16) %3, ptr noundef nonnull align 16 dereferenceable(16) %9, ptr noundef nonnull align 16 dereferenceable(16) %6)
  %31 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN6squish4Vec4aSERKS0_(ptr noundef nonnull align 16 dereferenceable(16) %6, ptr noundef nonnull align 16 dereferenceable(16) %8)
  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.start.p0(i64 16, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #4
  call void @_ZNK6squish4Vec46SplatZEv(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %11, ptr noundef nonnull align 16 dereferenceable(16) %5)
  call void @_ZN6squish11MultiplyAddERKNS_4Vec4ES2_S2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %10, ptr noundef nonnull align 16 dereferenceable(16) %4, ptr noundef nonnull align 16 dereferenceable(16) %11, ptr noundef nonnull align 16 dereferenceable(16) %6)
  %32 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN6squish4Vec4aSERKS0_(ptr noundef nonnull align 16 dereferenceable(16) %6, ptr noundef nonnull align 16 dereferenceable(16) %10)
  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.start.p0(i64 16, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #4
  call void @_ZNK6squish4Vec46SplatXEv(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %13, ptr noundef nonnull align 16 dereferenceable(16) %6)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #4
  call void @_ZNK6squish4Vec46SplatYEv(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %15, ptr noundef nonnull align 16 dereferenceable(16) %6)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #4
  call void @_ZNK6squish4Vec46SplatZEv(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %16, ptr noundef nonnull align 16 dereferenceable(16) %6)
  call void @_ZN6squish3MaxERKNS_4Vec4ES2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %14, ptr noundef nonnull align 16 dereferenceable(16) %15, ptr noundef nonnull align 16 dereferenceable(16) %16)
  call void @_ZN6squish3MaxERKNS_4Vec4ES2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %12, ptr noundef nonnull align 16 dereferenceable(16) %13, ptr noundef nonnull align 16 dereferenceable(16) %14)
  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
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #4
  call void @_ZN6squish10ReciprocalERKNS_4Vec4E(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %18, ptr noundef nonnull align 16 dereferenceable(16) %12)
  call void @_ZN6squishmlERKNS_4Vec4ES2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %17, ptr noundef nonnull align 16 dereferenceable(16) %6, ptr noundef nonnull align 16 dereferenceable(16) %18)
  %33 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN6squish4Vec4aSERKS0_(ptr noundef nonnull align 16 dereferenceable(16) %5, ptr noundef nonnull align 16 dereferenceable(16) %17)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  %34 = add nuw nsw i32 %.014, 1
  %exitcond.not = icmp eq i32 %34, 8
  br i1 %exitcond.not, label %28, label %30, !llvm.loop !5
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK6squish6Sym3x3ixEi(ptr noundef nonnull align 4 dereferenceable(24), i32 noundef) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6squishmlERKNS_4Vec4ES2_(ptr dead_on_unwind noalias writable sret(%"class.squish::Vec4") align 16, ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK6squish4Vec46SplatXEv(ptr dead_on_unwind noalias writable sret(%"class.squish::Vec4") align 16, ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6squish11MultiplyAddERKNS_4Vec4ES2_S2_(ptr dead_on_unwind noalias writable sret(%"class.squish::Vec4") align 16, ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK6squish4Vec46SplatYEv(ptr dead_on_unwind noalias writable sret(%"class.squish::Vec4") align 16, ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK6squish4Vec46SplatZEv(ptr dead_on_unwind noalias writable sret(%"class.squish::Vec4") align 16, ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6squish3MaxERKNS_4Vec4ES2_(ptr dead_on_unwind noalias writable sret(%"class.squish::Vec4") align 16, ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6squish10ReciprocalERKNS_4Vec4E(ptr dead_on_unwind noalias writable sret(%"class.squish::Vec4") align 16, ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZNK6squish4Vec47GetVec3Ev(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #3 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="64" "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 = { 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 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,SROAPass,SimplifyCFGPass,TailCallElimPass