; LLVM IR from KonajuGames/libsquish :: clusterfit.ll (ZN6squish10ClusterFit9Compress3EPv)

; 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::Vec4" = type { <4 x float> }
%"class.squish::Vec3" = type { float, float, float }
%"class.squish::ColourFit" = type <{ ptr, ptr, i32, [4 x i8] }>
%"class.squish::ClusterFit" = type { %"class.squish::ColourFit.base", i32, %"class.squish::Vec3", [128 x i8], [16 x %"class.squish::Vec4"], %"class.squish::Vec4", %"class.squish::Vec4", %"class.squish::Vec4" }
%"class.squish::ColourFit.base" = type <{ ptr, ptr, i32 }>

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

; 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 #1 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)) #2 align 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
declare dso_local void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 16 dereferenceable(16), float noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6squish9ColourSet8GetCountEv(ptr noundef nonnull align 4 dereferenceable(325)) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6squish10ClusterFit17ConstructOrderingERKNS_4Vec3Ei(ptr noundef nonnull align 16 dereferenceable(480), ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) #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)) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6squish10ClusterFit9Compress3EPv(ptr noundef nonnull align 16 dereferenceable(480) %0, ptr noundef %1) unnamed_addr #5 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %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 [16 x i8], align 16
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %"class.squish::Vec4", align 16
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca %"class.squish::Vec4", align 16
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca %"class.squish::Vec4", align 16
  %28 = alloca %"class.squish::Vec4", align 16
  %29 = alloca %"class.squish::Vec4", align 16
  %30 = alloca %"class.squish::Vec4", align 16
  %31 = alloca %"class.squish::Vec4", align 16
  %32 = alloca %"class.squish::Vec4", align 16
  %33 = alloca %"class.squish::Vec4", align 16
  %34 = alloca %"class.squish::Vec4", align 16
  %35 = alloca %"class.squish::Vec4", align 16
  %36 = alloca %"class.squish::Vec4", align 16
  %37 = alloca %"class.squish::Vec4", align 16
  %38 = alloca %"class.squish::Vec4", align 16
  %39 = alloca %"class.squish::Vec4", align 16
  %40 = alloca %"class.squish::Vec4", align 16
  %41 = alloca %"class.squish::Vec4", align 16
  %42 = alloca %"class.squish::Vec4", align 16
  %43 = alloca %"class.squish::Vec4", align 16
  %44 = alloca %"class.squish::Vec4", align 16
  %45 = alloca %"class.squish::Vec4", align 16
  %46 = alloca %"class.squish::Vec4", align 16
  %47 = alloca %"class.squish::Vec4", align 16
  %48 = alloca %"class.squish::Vec4", align 16
  %49 = alloca %"class.squish::Vec4", align 16
  %50 = alloca %"class.squish::Vec4", align 16
  %51 = alloca %"class.squish::Vec4", align 16
  %52 = alloca %"class.squish::Vec4", align 16
  %53 = alloca %"class.squish::Vec4", align 16
  %54 = alloca %"class.squish::Vec4", align 16
  %55 = alloca %"class.squish::Vec4", align 16
  %56 = alloca %"class.squish::Vec4", align 16
  %57 = alloca %"class.squish::Vec4", align 16
  %58 = alloca %"class.squish::Vec4", align 16
  %59 = alloca %"class.squish::Vec4", align 16
  %60 = alloca %"class.squish::Vec4", align 16
  %61 = alloca %"class.squish::Vec4", align 16
  %62 = alloca %"class.squish::Vec4", align 16
  %63 = alloca %"class.squish::Vec4", align 16
  %64 = alloca %"class.squish::Vec4", align 16
  %65 = alloca %"class.squish::Vec4", align 16
  %66 = alloca %"class.squish::Vec4", align 16
  %67 = alloca %"class.squish::Vec4", align 16
  %68 = alloca %"class.squish::Vec4", align 16
  %69 = alloca %"class.squish::Vec3", align 4
  %70 = alloca %"class.squish::Vec4", align 16
  %71 = alloca { <2 x float>, float }, align 8
  %72 = alloca ptr, align 8
  %73 = alloca [16 x i8], align 16
  %74 = alloca i32, align 4
  %75 = alloca i32, align 4
  %76 = alloca i32, align 4
  %77 = alloca %"class.squish::Vec3", align 4
  %78 = alloca { <2 x float>, float }, align 8
  %79 = alloca %"class.squish::Vec3", align 4
  %80 = alloca { <2 x float>, float }, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %81 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  %82 = getelementptr inbounds %"class.squish::ColourFit", ptr %81, i32 0, i32 1
  %83 = load ptr, ptr %82, align 8, !tbaa !9
  %84 = call noundef i32 @_ZNK6squish9ColourSet8GetCountEv(ptr noundef nonnull align 4 dereferenceable(325) %83)
  store i32 %84, ptr %5, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #7
  call void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 16 dereferenceable(16) %6, float noundef 2.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #7
  call void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 16 dereferenceable(16) %7, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #7
  call void @_ZN6squish4Vec4C2Effff(ptr noundef nonnull align 16 dereferenceable(16) %8, float noundef 5.000000e-01, float noundef 5.000000e-01, float noundef 5.000000e-01, float noundef 2.500000e-01)
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #7
  call void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 16 dereferenceable(16) %9, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #7
  call void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 16 dereferenceable(16) %10, float noundef 5.000000e-01)
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #7
  call void @_ZN6squish4Vec4C2Effff(ptr noundef nonnull align 16 dereferenceable(16) %11, float noundef 3.100000e+01, float noundef 6.300000e+01, float noundef 3.100000e+01, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #7
  call void @_ZN6squish4Vec4C2Effff(ptr noundef nonnull align 16 dereferenceable(16) %12, float noundef 0x3FA0842100000000, float noundef 0x3F90410420000000, float noundef 0x3FA0842100000000, float noundef 0.000000e+00)
  %85 = getelementptr inbounds %"class.squish::ClusterFit", ptr %81, i32 0, i32 2
  %86 = call noundef zeroext i1 @_ZN6squish10ClusterFit17ConstructOrderingERKNS_4Vec3Ei(ptr noundef nonnull align 16 dereferenceable(480) %81, ptr noundef nonnull align 4 dereferenceable(12) %85, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #7
  call void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 16 dereferenceable(16) %13, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #7
  call void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 16 dereferenceable(16) %14, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #7
  %87 = getelementptr inbounds %"class.squish::ClusterFit", ptr %81, i32 0, i32 7
  call void @_ZN6squish4Vec4C2ERKS0_(ptr noundef nonnull align 16 dereferenceable(16) %15, ptr noundef nonnull align 16 dereferenceable(16) %87)
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !12
  br label %88

88:                                               ; preds = %173, %2
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #7
  call void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 16 dereferenceable(16) %21, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 0, ptr %22, align 4, !tbaa !12
  br label %89

89:                                               ; preds = %148, %88
  %90 = load i32, ptr %22, align 4, !tbaa !12
  %91 = load i32, ptr %5, align 4, !tbaa !12
  %92 = icmp slt i32 %90, %91
  br i1 %92, label %94, label %93

93:                                               ; preds = %89
  store i32 4, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %151

94:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #7
  %95 = load i32, ptr %22, align 4, !tbaa !12
  %96 = icmp eq i32 %95, 0
  br i1 %96, label %97, label %100

97:                                               ; preds = %94
  %98 = getelementptr inbounds %"class.squish::ClusterFit", ptr %81, i32 0, i32 4
  %99 = getelementptr inbounds [16 x %"class.squish::Vec4"], ptr %98, i64 0, i64 0
  call void @_ZN6squish4Vec4C2ERKS0_(ptr noundef nonnull align 16 dereferenceable(16) %24, ptr noundef nonnull align 16 dereferenceable(16) %99)
  br label %101

100:                                              ; preds = %94
  call void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 16 dereferenceable(16) %24, float noundef 0.000000e+00)
  br label %101

101:                                              ; preds = %100, %97
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  %102 = load i32, ptr %22, align 4, !tbaa !12
  %103 = icmp eq i32 %102, 0
  br i1 %103, label %104, label %105

104:                                              ; preds = %101
  br label %107

105:                                              ; preds = %101
  %106 = load i32, ptr %22, align 4, !tbaa !12
  br label %107

107:                                              ; preds = %105, %104
  %108 = phi i32 [ 1, %104 ], [ %106, %105 ]
  store i32 %108, ptr %25, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %109 = load i32, ptr %25, align 4, !tbaa !12
  store i32 %109, ptr %26, align 4, !tbaa !12
  br label %110

110:                                              ; preds = %140, %107
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #7
  %111 = getelementptr inbounds %"class.squish::ClusterFit", ptr %81, i32 0, i32 5
  call void @_ZN6squishmiERKNS_4Vec4ES2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %28, ptr noundef nonnull align 16 dereferenceable(16) %111, ptr noundef nonnull align 16 dereferenceable(16) %24)
  call void @_ZN6squishmiERKNS_4Vec4ES2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %27, ptr noundef nonnull align 16 dereferenceable(16) %28, ptr noundef nonnull align 16 dereferenceable(16) %21)
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #7
  call void @_ZN6squish11MultiplyAddERKNS_4Vec4ES2_S2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %29, ptr noundef nonnull align 16 dereferenceable(16) %24, ptr noundef nonnull align 16 dereferenceable(16) %8, ptr noundef nonnull align 16 dereferenceable(16) %21)
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #7
  call void @_ZNK6squish4Vec46SplatWEv(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %30, ptr noundef nonnull align 16 dereferenceable(16) %29)
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #7
  call void @_ZN6squish11MultiplyAddERKNS_4Vec4ES2_S2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %31, ptr noundef nonnull align 16 dereferenceable(16) %24, ptr noundef nonnull align 16 dereferenceable(16) %8, ptr noundef nonnull align 16 dereferenceable(16) %27)
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #7
  call void @_ZNK6squish4Vec46SplatWEv(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %32, ptr noundef nonnull align 16 dereferenceable(16) %31)
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #7
  call void @_ZN6squishmlERKNS_4Vec4ES2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %34, ptr noundef nonnull align 16 dereferenceable(16) %24, ptr noundef nonnull align 16 dereferenceable(16) %8)
  call void @_ZNK6squish4Vec46SplatWEv(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %33, ptr noundef nonnull align 16 dereferenceable(16) %34)
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #7
  call void @_ZN6squishmlERKNS_4Vec4ES2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %37, ptr noundef nonnull align 16 dereferenceable(16) %30, ptr noundef nonnull align 16 dereferenceable(16) %32)
  call void @_ZN6squish24NegativeMultiplySubtractERKNS_4Vec4ES2_S2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %36, ptr noundef nonnull align 16 dereferenceable(16) %33, ptr noundef nonnull align 16 dereferenceable(16) %33, ptr noundef nonnull align 16 dereferenceable(16) %37)
  call void @_ZN6squish10ReciprocalERKNS_4Vec4E(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %35, ptr noundef nonnull align 16 dereferenceable(16) %36)
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #7
  call void @_ZN6squishmlERKNS_4Vec4ES2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %40, ptr noundef nonnull align 16 dereferenceable(16) %29, ptr noundef nonnull align 16 dereferenceable(16) %32)
  call void @_ZN6squish24NegativeMultiplySubtractERKNS_4Vec4ES2_S2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %39, ptr noundef nonnull align 16 dereferenceable(16) %31, ptr noundef nonnull align 16 dereferenceable(16) %33, ptr noundef nonnull align 16 dereferenceable(16) %40)
  call void @_ZN6squishmlERKNS_4Vec4ES2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %38, ptr noundef nonnull align 16 dereferenceable(16) %39, ptr noundef nonnull align 16 dereferenceable(16) %35)
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %42) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %43) #7
  call void @_ZN6squishmlERKNS_4Vec4ES2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %43, ptr noundef nonnull align 16 dereferenceable(16) %31, ptr noundef nonnull align 16 dereferenceable(16) %30)
  call void @_ZN6squish24NegativeMultiplySubtractERKNS_4Vec4ES2_S2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %42, ptr noundef nonnull align 16 dereferenceable(16) %29, ptr noundef nonnull align 16 dereferenceable(16) %33, ptr noundef nonnull align 16 dereferenceable(16) %43)
  call void @_ZN6squishmlERKNS_4Vec4ES2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %41, ptr noundef nonnull align 16 dereferenceable(16) %42, ptr noundef nonnull align 16 dereferenceable(16) %35)
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %44) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %45) #7
  call void @_ZN6squish3MaxERKNS_4Vec4ES2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %45, ptr noundef nonnull align 16 dereferenceable(16) %9, ptr noundef nonnull align 16 dereferenceable(16) %38)
  call void @_ZN6squish3MinERKNS_4Vec4ES2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %44, ptr noundef nonnull align 16 dereferenceable(16) %7, ptr noundef nonnull align 16 dereferenceable(16) %45)
  %112 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN6squish4Vec4aSERKS0_(ptr noundef nonnull align 16 dereferenceable(16) %38, ptr noundef nonnull align 16 dereferenceable(16) %44)
  call void @llvm.lifetime.end.p0(i64 16, ptr %45) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %46) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %47) #7
  call void @_ZN6squish3MaxERKNS_4Vec4ES2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %47, ptr noundef nonnull align 16 dereferenceable(16) %9, ptr noundef nonnull align 16 dereferenceable(16) %41)
  call void @_ZN6squish3MinERKNS_4Vec4ES2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %46, ptr noundef nonnull align 16 dereferenceable(16) %7, ptr noundef nonnull align 16 dereferenceable(16) %47)
  %113 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN6squish4Vec4aSERKS0_(ptr noundef nonnull align 16 dereferenceable(16) %41, ptr noundef nonnull align 16 dereferenceable(16) %46)
  call void @llvm.lifetime.end.p0(i64 16, ptr %47) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %46) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %48) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %49) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %50) #7
  call void @_ZN6squish11MultiplyAddERKNS_4Vec4ES2_S2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %50, ptr noundef nonnull align 16 dereferenceable(16) %11, ptr noundef nonnull align 16 dereferenceable(16) %38, ptr noundef nonnull align 16 dereferenceable(16) %10)
  call void @_ZN6squish8TruncateERKNS_4Vec4E(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %49, ptr noundef nonnull align 16 dereferenceable(16) %50)
  call void @_ZN6squishmlERKNS_4Vec4ES2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %48, ptr noundef nonnull align 16 dereferenceable(16) %49, ptr noundef nonnull align 16 dereferenceable(16) %12)
  %114 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN6squish4Vec4aSERKS0_(ptr noundef nonnull align 16 dereferenceable(16) %38, ptr noundef nonnull align 16 dereferenceable(16) %48)
  call void @llvm.lifetime.end.p0(i64 16, ptr %50) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %49) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %48) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %51) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %52) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %53) #7
  call void @_ZN6squish11MultiplyAddERKNS_4Vec4ES2_S2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %53, ptr noundef nonnull align 16 dereferenceable(16) %11, ptr noundef nonnull align 16 dereferenceable(16) %41, ptr noundef nonnull align 16 dereferenceable(16) %10)
  call void @_ZN6squish8TruncateERKNS_4Vec4E(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %52, ptr noundef nonnull align 16 dereferenceable(16) %53)
  call void @_ZN6squishmlERKNS_4Vec4ES2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %51, ptr noundef nonnull align 16 dereferenceable(16) %52, ptr noundef nonnull align 16 dereferenceable(16) %12)
  %115 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN6squish4Vec4aSERKS0_(ptr noundef nonnull align 16 dereferenceable(16) %41, ptr noundef nonnull align 16 dereferenceable(16) %51)
  call void @llvm.lifetime.end.p0(i64 16, ptr %53) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %52) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %51) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %54) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %55) #7
  call void @_ZN6squishmlERKNS_4Vec4ES2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %55, ptr noundef nonnull align 16 dereferenceable(16) %38, ptr noundef nonnull align 16 dereferenceable(16) %38)
  call void @llvm.lifetime.start.p0(i64 16, ptr %56) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %57) #7
  call void @_ZN6squishmlERKNS_4Vec4ES2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %57, ptr noundef nonnull align 16 dereferenceable(16) %41, ptr noundef nonnull align 16 dereferenceable(16) %41)
  call void @_ZN6squishmlERKNS_4Vec4ES2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %56, ptr noundef nonnull align 16 dereferenceable(16) %57, ptr noundef nonnull align 16 dereferenceable(16) %32)
  call void @_ZN6squish11MultiplyAddERKNS_4Vec4ES2_S2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %54, ptr noundef nonnull align 16 dereferenceable(16) %55, ptr noundef nonnull align 16 dereferenceable(16) %30, ptr noundef nonnull align 16 dereferenceable(16) %56)
  call void @llvm.lifetime.end.p0(i64 16, ptr %57) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %56) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %55) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %58) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %59) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %60) #7
  call void @_ZN6squishmlERKNS_4Vec4ES2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %60, ptr noundef nonnull align 16 dereferenceable(16) %38, ptr noundef nonnull align 16 dereferenceable(16) %41)
  call void @_ZN6squishmlERKNS_4Vec4ES2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %59, ptr noundef nonnull align 16 dereferenceable(16) %60, ptr noundef nonnull align 16 dereferenceable(16) %33)
  call void @_ZN6squish24NegativeMultiplySubtractERKNS_4Vec4ES2_S2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %58, ptr noundef nonnull align 16 dereferenceable(16) %38, ptr noundef nonnull align 16 dereferenceable(16) %29, ptr noundef nonnull align 16 dereferenceable(16) %59)
  call void @llvm.lifetime.end.p0(i64 16, ptr %60) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %59) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %61) #7
  call void @_ZN6squish24NegativeMultiplySubtractERKNS_4Vec4ES2_S2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %61, ptr noundef nonnull align 16 dereferenceable(16) %41, ptr noundef nonnull align 16 dereferenceable(16) %31, ptr noundef nonnull align 16 dereferenceable(16) %58)
  call void @llvm.lifetime.start.p0(i64 16, ptr %62) #7
  call void @_ZN6squish11MultiplyAddERKNS_4Vec4ES2_S2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %62, ptr noundef nonnull align 16 dereferenceable(16) %6, ptr noundef nonnull align 16 dereferenceable(16) %61, ptr noundef nonnull align 16 dereferenceable(16) %54)
  call void @llvm.lifetime.start.p0(i64 16, ptr %63) #7
  %116 = getelementptr inbounds %"class.squish::ClusterFit", ptr %81, i32 0, i32 6
  call void @_ZN6squishmlERKNS_4Vec4ES2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %63, ptr noundef nonnull align 16 dereferenceable(16) %62, ptr noundef nonnull align 16 dereferenceable(16) %116)
  call void @llvm.lifetime.start.p0(i64 16, ptr %64) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %65) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %66) #7
  call void @_ZNK6squish4Vec46SplatXEv(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %66, ptr noundef nonnull align 16 dereferenceable(16) %63)
  call void @llvm.lifetime.start.p0(i64 16, ptr %67) #7
  call void @_ZNK6squish4Vec46SplatYEv(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %67, ptr noundef nonnull align 16 dereferenceable(16) %63)
  call void @_ZN6squishplERKNS_4Vec4ES2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %65, ptr noundef nonnull align 16 dereferenceable(16) %66, ptr noundef nonnull align 16 dereferenceable(16) %67)
  call void @llvm.lifetime.start.p0(i64 16, ptr %68) #7
  call void @_ZNK6squish4Vec46SplatZEv(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %68, ptr noundef nonnull align 16 dereferenceable(16) %63)
  call void @_ZN6squishplERKNS_4Vec4ES2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %64, ptr noundef nonnull align 16 dereferenceable(16) %65, ptr noundef nonnull align 16 dereferenceable(16) %68)
  call void @llvm.lifetime.end.p0(i64 16, ptr %68) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %67) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %66) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %65) #7
  %117 = call noundef zeroext i1 @_ZN6squish18CompareAnyLessThanERKNS_4Vec4ES2_(ptr noundef nonnull align 16 dereferenceable(16) %64, ptr noundef nonnull align 16 dereferenceable(16) %15)
  br i1 %117, label %118, label %125

118:                                              ; preds = %110
  %119 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN6squish4Vec4aSERKS0_(ptr noundef nonnull align 16 dereferenceable(16) %13, ptr noundef nonnull align 16 dereferenceable(16) %38)
  %120 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN6squish4Vec4aSERKS0_(ptr noundef nonnull align 16 dereferenceable(16) %14, ptr noundef nonnull align 16 dereferenceable(16) %41)
  %121 = load i32, ptr %22, align 4, !tbaa !12
  store i32 %121, ptr %18, align 4, !tbaa !12
  %122 = load i32, ptr %26, align 4, !tbaa !12
  store i32 %122, ptr %19, align 4, !tbaa !12
  %123 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN6squish4Vec4aSERKS0_(ptr noundef nonnull align 16 dereferenceable(16) %15, ptr noundef nonnull align 16 dereferenceable(16) %64)
  %124 = load i32, ptr %20, align 4, !tbaa !12
  store i32 %124, ptr %17, align 4, !tbaa !12
  br label %125

125:                                              ; preds = %118, %110
  %126 = load i32, ptr %26, align 4, !tbaa !12
  %127 = load i32, ptr %5, align 4, !tbaa !12
  %128 = icmp eq i32 %126, %127
  br i1 %128, label %129, label %130

129:                                              ; preds = %125
  store i32 7, ptr %23, align 4
  br label %138

130:                                              ; preds = %125
  %131 = getelementptr inbounds %"class.squish::ClusterFit", ptr %81, i32 0, i32 4
  %132 = load i32, ptr %26, align 4, !tbaa !12
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [16 x %"class.squish::Vec4"], ptr %131, i64 0, i64 %133
  %135 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN6squish4Vec4pLERKS0_(ptr noundef nonnull align 16 dereferenceable(16) %24, ptr noundef nonnull align 16 dereferenceable(16) %134)
  %136 = load i32, ptr %26, align 4, !tbaa !12
  %137 = add nsw i32 %136, 1
  store i32 %137, ptr %26, align 4, !tbaa !12
  store i32 0, ptr %23, align 4
  br label %138

138:                                              ; preds = %130, %129
  call void @llvm.lifetime.end.p0(i64 16, ptr %64) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %63) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %62) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %61) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %58) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %54) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #7
  %139 = load i32, ptr %23, align 4
  switch i32 %139, label %141 [
    i32 0, label %140
  ]

140:                                              ; preds = %138
  br label %110, !llvm.loop !13

141:                                              ; preds = %138
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %142

142:                                              ; preds = %141
  %143 = getelementptr inbounds %"class.squish::ClusterFit", ptr %81, i32 0, i32 4
  %144 = load i32, ptr %22, align 4, !tbaa !12
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [16 x %"class.squish::Vec4"], ptr %143, i64 0, i64 %145
  %147 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN6squish4Vec4pLERKS0_(ptr noundef nonnull align 16 dereferenceable(16) %21, ptr noundef nonnull align 16 dereferenceable(16) %146)
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #7
  br label %148

148:                                              ; preds = %142
  %149 = load i32, ptr %22, align 4, !tbaa !12
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %22, align 4, !tbaa !12
  br label %89, !llvm.loop !15

151:                                              ; preds = %93
  %152 = load i32, ptr %17, align 4, !tbaa !12
  %153 = load i32, ptr %20, align 4, !tbaa !12
  %154 = icmp ne i32 %152, %153
  br i1 %154, label %155, label %156

155:                                              ; preds = %151
  store i32 2, ptr %23, align 4
  br label %171

156:                                              ; preds = %151
  %157 = load i32, ptr %20, align 4, !tbaa !12
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %20, align 4, !tbaa !12
  %159 = load i32, ptr %20, align 4, !tbaa !12
  %160 = getelementptr inbounds %"class.squish::ClusterFit", ptr %81, i32 0, i32 1
  %161 = load i32, ptr %160, align 4, !tbaa !16
  %162 = icmp eq i32 %159, %161
  br i1 %162, label %163, label %164

163:                                              ; preds = %156
  store i32 2, ptr %23, align 4
  br label %171

164:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 12, ptr %69) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %70) #7
  call void @_ZN6squishmiERKNS_4Vec4ES2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %70, ptr noundef nonnull align 16 dereferenceable(16) %14, ptr noundef nonnull align 16 dereferenceable(16) %13)
  %165 = call { <2 x float>, float } @_ZNK6squish4Vec47GetVec3Ev(ptr noundef nonnull align 16 dereferenceable(16) %70)
  store { <2 x float>, float } %165, ptr %71, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %69, ptr align 8 %71, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 16, ptr %70) #7
  %166 = load i32, ptr %20, align 4, !tbaa !12
  %167 = call noundef zeroext i1 @_ZN6squish10ClusterFit17ConstructOrderingERKNS_4Vec3Ei(ptr noundef nonnull align 16 dereferenceable(480) %81, ptr noundef nonnull align 4 dereferenceable(12) %69, i32 noundef %166)
  br i1 %167, label %169, label %168

168:                                              ; preds = %164
  store i32 2, ptr %23, align 4
  br label %170

169:                                              ; preds = %164
  store i32 0, ptr %23, align 4
  br label %170

170:                                              ; preds = %169, %168
  call void @llvm.lifetime.end.p0(i64 12, ptr %69) #7
  br label %171

171:                                              ; preds = %170, %163, %155
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #7
  %172 = load i32, ptr %23, align 4
  switch i32 %172, label %174 [
    i32 0, label %173
  ]

173:                                              ; preds = %171
  br label %88, !llvm.loop !21

174:                                              ; preds = %171
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %175

175:                                              ; preds = %174
  %176 = getelementptr inbounds %"class.squish::ClusterFit", ptr %81, i32 0, i32 7
  %177 = call noundef zeroext i1 @_ZN6squish18CompareAnyLessThanERKNS_4Vec4ES2_(ptr noundef nonnull align 16 dereferenceable(16) %15, ptr noundef nonnull align 16 dereferenceable(16) %176)
  br i1 %177, label %178, label %248

178:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 8, ptr %72) #7
  %179 = getelementptr inbounds %"class.squish::ClusterFit", ptr %81, i32 0, i32 3
  %180 = getelementptr inbounds [128 x i8], ptr %179, i64 0, i64 0
  %181 = load i32, ptr %17, align 4, !tbaa !12
  %182 = mul nsw i32 16, %181
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds i8, ptr %180, i64 %183
  store ptr %184, ptr %72, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %73) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %74) #7
  store i32 0, ptr %74, align 4, !tbaa !12
  br label %185

185:                                              ; preds = %198, %178
  %186 = load i32, ptr %74, align 4, !tbaa !12
  %187 = load i32, ptr %18, align 4, !tbaa !12
  %188 = icmp slt i32 %186, %187
  br i1 %188, label %190, label %189

189:                                              ; preds = %185
  store i32 9, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %74) #7
  br label %201

190:                                              ; preds = %185
  %191 = load ptr, ptr %72, align 8, !tbaa !5
  %192 = load i32, ptr %74, align 4, !tbaa !12
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds i8, ptr %191, i64 %193
  %195 = load i8, ptr %194, align 1, !tbaa !22
  %196 = zext i8 %195 to i64
  %197 = getelementptr inbounds [16 x i8], ptr %73, i64 0, i64 %196
  store i8 0, ptr %197, align 1, !tbaa !22
  br label %198

198:                                              ; preds = %190
  %199 = load i32, ptr %74, align 4, !tbaa !12
  %200 = add nsw i32 %199, 1
  store i32 %200, ptr %74, align 4, !tbaa !12
  br label %185, !llvm.loop !23

201:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 4, ptr %75) #7
  %202 = load i32, ptr %18, align 4, !tbaa !12
  store i32 %202, ptr %75, align 4, !tbaa !12
  br label %203

203:                                              ; preds = %216, %201
  %204 = load i32, ptr %75, align 4, !tbaa !12
  %205 = load i32, ptr %19, align 4, !tbaa !12
  %206 = icmp slt i32 %204, %205
  br i1 %206, label %208, label %207

207:                                              ; preds = %203
  store i32 12, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %75) #7
  br label %219

208:                                              ; preds = %203
  %209 = load ptr, ptr %72, align 8, !tbaa !5
  %210 = load i32, ptr %75, align 4, !tbaa !12
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds i8, ptr %209, i64 %211
  %213 = load i8, ptr %212, align 1, !tbaa !22
  %214 = zext i8 %213 to i64
  %215 = getelementptr inbounds [16 x i8], ptr %73, i64 0, i64 %214
  store i8 2, ptr %215, align 1, !tbaa !22
  br label %216

216:                                              ; preds = %208
  %217 = load i32, ptr %75, align 4, !tbaa !12
  %218 = add nsw i32 %217, 1
  store i32 %218, ptr %75, align 4, !tbaa !12
  br label %203, !llvm.loop !24

219:                                              ; preds = %207
  call void @llvm.lifetime.start.p0(i64 4, ptr %76) #7
  %220 = load i32, ptr %19, align 4, !tbaa !12
  store i32 %220, ptr %76, align 4, !tbaa !12
  br label %221

221:                                              ; preds = %234, %219
  %222 = load i32, ptr %76, align 4, !tbaa !12
  %223 = load i32, ptr %5, align 4, !tbaa !12
  %224 = icmp slt i32 %222, %223
  br i1 %224, label %226, label %225

225:                                              ; preds = %221
  store i32 15, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %76) #7
  br label %237

226:                                              ; preds = %221
  %227 = load ptr, ptr %72, align 8, !tbaa !5
  %228 = load i32, ptr %76, align 4, !tbaa !12
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds i8, ptr %227, i64 %229
  %231 = load i8, ptr %230, align 1, !tbaa !22
  %232 = zext i8 %231 to i64
  %233 = getelementptr inbounds [16 x i8], ptr %73, i64 0, i64 %232
  store i8 1, ptr %233, align 1, !tbaa !22
  br label %234

234:                                              ; preds = %226
  %235 = load i32, ptr %76, align 4, !tbaa !12
  %236 = add nsw i32 %235, 1
  store i32 %236, ptr %76, align 4, !tbaa !12
  br label %221, !llvm.loop !25

237:                                              ; preds = %225
  %238 = getelementptr inbounds %"class.squish::ColourFit", ptr %81, i32 0, i32 1
  %239 = load ptr, ptr %238, align 8, !tbaa !9
  %240 = getelementptr inbounds [16 x i8], ptr %73, i64 0, i64 0
  %241 = getelementptr inbounds [16 x i8], ptr %16, i64 0, i64 0
  call void @_ZNK6squish9ColourSet12RemapIndicesEPKhPh(ptr noundef nonnull align 4 dereferenceable(325) %239, ptr noundef %240, ptr noundef %241)
  call void @llvm.lifetime.start.p0(i64 12, ptr %77) #7
  %242 = call { <2 x float>, float } @_ZNK6squish4Vec47GetVec3Ev(ptr noundef nonnull align 16 dereferenceable(16) %13)
  store { <2 x float>, float } %242, ptr %78, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %77, ptr align 8 %78, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %79) #7
  %243 = call { <2 x float>, float } @_ZNK6squish4Vec47GetVec3Ev(ptr noundef nonnull align 16 dereferenceable(16) %14)
  store { <2 x float>, float } %243, ptr %80, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %79, ptr align 8 %80, i64 12, i1 false)
  %244 = getelementptr inbounds [16 x i8], ptr %16, i64 0, i64 0
  %245 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN6squish17WriteColourBlock3ERKNS_4Vec3ES2_PKhPv(ptr noundef nonnull align 4 dereferenceable(12) %77, ptr noundef nonnull align 4 dereferenceable(12) %79, ptr noundef %244, ptr noundef %245)
  call void @llvm.lifetime.end.p0(i64 12, ptr %79) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %77) #7
  %246 = getelementptr inbounds %"class.squish::ClusterFit", ptr %81, i32 0, i32 7
  %247 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN6squish4Vec4aSERKS0_(ptr noundef nonnull align 16 dereferenceable(16) %246, ptr noundef nonnull align 16 dereferenceable(16) %15)
  call void @llvm.lifetime.end.p0(i64 16, ptr %73) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #7
  br label %248

248:                                              ; preds = %237, %175
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6squishmiERKNS_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)) #1

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6squish24NegativeMultiplySubtractERKNS_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)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6squish3MinERKNS_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)) #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6squishplERKNS_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)) #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6squish18CompareAnyLessThanERKNS_4Vec4ES2_(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) #1

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

declare void @_ZNK6squish9ColourSet12RemapIndicesEPKhPh(ptr noundef nonnull align 4 dereferenceable(325), ptr noundef, ptr noundef) #6

declare void @_ZN6squish17WriteColourBlock3ERKNS_4Vec3ES2_PKhPv(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, ptr noundef) #6

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress 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 #5 = { 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 #6 = { "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 #7 = { 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, !6, i64 8}
!10 = !{!"_ZTSN6squish9ColourFitE", !6, i64 8, !11, i64 16}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!17, !11, i64 20}
!17 = !{!"_ZTSN6squish10ClusterFitE", !10, i64 0, !11, i64 20, !18, i64 24, !7, i64 36, !7, i64 176, !20, i64 432, !20, i64 448, !20, i64 464}
!18 = !{!"_ZTSN6squish4Vec3E", !19, i64 0, !19, i64 4, !19, i64 8}
!19 = !{!"float", !7, i64 0}
!20 = !{!"_ZTSN6squish4Vec4E", !7, i64 0}
!21 = distinct !{!21, !14}
!22 = !{!7, !7, i64 0}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}
!25 = distinct !{!25, !14}


; 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> }
%"class.squish::Vec3" = type { float, float, 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 uwtable
declare dso_local void @_ZN6squish4Vec4C2Effff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef, float noundef) unnamed_addr #1 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6squish9ColourSet8GetCountEv(ptr noundef nonnull align 4 dereferenceable(325)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6squish10ClusterFit17ConstructOrderingERKNS_4Vec3Ei(ptr noundef nonnull align 16 dereferenceable(480), ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) local_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 #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6squish10ClusterFit9Compress3EPv(ptr noundef nonnull align 16 dereferenceable(480) %0, ptr noundef %1) unnamed_addr #4 align 2 {
  %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 [16 x i8], 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 %"class.squish::Vec4", align 16
  %23 = alloca %"class.squish::Vec4", align 16
  %24 = alloca %"class.squish::Vec4", align 16
  %25 = alloca %"class.squish::Vec4", align 16
  %26 = alloca %"class.squish::Vec4", align 16
  %27 = alloca %"class.squish::Vec4", align 16
  %28 = alloca %"class.squish::Vec4", align 16
  %29 = alloca %"class.squish::Vec4", align 16
  %30 = alloca %"class.squish::Vec4", align 16
  %31 = alloca %"class.squish::Vec4", align 16
  %32 = alloca %"class.squish::Vec4", align 16
  %33 = alloca %"class.squish::Vec4", align 16
  %34 = alloca %"class.squish::Vec4", align 16
  %35 = alloca %"class.squish::Vec4", align 16
  %36 = alloca %"class.squish::Vec4", align 16
  %37 = alloca %"class.squish::Vec4", align 16
  %38 = alloca %"class.squish::Vec4", align 16
  %39 = alloca %"class.squish::Vec4", align 16
  %40 = alloca %"class.squish::Vec4", align 16
  %41 = alloca %"class.squish::Vec4", align 16
  %42 = alloca %"class.squish::Vec4", align 16
  %43 = alloca %"class.squish::Vec4", align 16
  %44 = alloca %"class.squish::Vec4", align 16
  %45 = alloca %"class.squish::Vec4", align 16
  %46 = alloca %"class.squish::Vec4", align 16
  %47 = alloca %"class.squish::Vec4", align 16
  %48 = alloca %"class.squish::Vec4", align 16
  %49 = alloca %"class.squish::Vec4", align 16
  %50 = alloca %"class.squish::Vec4", align 16
  %51 = alloca %"class.squish::Vec4", align 16
  %52 = alloca %"class.squish::Vec4", align 16
  %53 = alloca %"class.squish::Vec4", align 16
  %54 = alloca %"class.squish::Vec4", align 16
  %55 = alloca %"class.squish::Vec4", align 16
  %56 = alloca %"class.squish::Vec4", align 16
  %57 = alloca %"class.squish::Vec4", align 16
  %58 = alloca %"class.squish::Vec3", align 8
  %59 = alloca %"class.squish::Vec4", align 16
  %60 = alloca [16 x i8], align 16
  %61 = alloca %"class.squish::Vec3", align 8
  %62 = alloca %"class.squish::Vec3", align 8
  %63 = getelementptr inbounds i8, ptr %0, i64 8
  %64 = load ptr, ptr %63, align 8, !tbaa !5
  %65 = tail call noundef i32 @_ZNK6squish9ColourSet8GetCountEv(ptr noundef nonnull align 4 dereferenceable(325) %64)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #7
  call void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 16 dereferenceable(16) %3, float noundef 2.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #7
  call void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 16 dereferenceable(16) %4, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  call void @_ZN6squish4Vec4C2Effff(ptr noundef nonnull align 16 dereferenceable(16) %5, float noundef 5.000000e-01, float noundef 5.000000e-01, float noundef 5.000000e-01, float noundef 2.500000e-01)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #7
  call void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 16 dereferenceable(16) %6, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  call void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 16 dereferenceable(16) %7, float noundef 5.000000e-01)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  call void @_ZN6squish4Vec4C2Effff(ptr noundef nonnull align 16 dereferenceable(16) %8, float noundef 3.100000e+01, float noundef 6.300000e+01, float noundef 3.100000e+01, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  call void @_ZN6squish4Vec4C2Effff(ptr noundef nonnull align 16 dereferenceable(16) %9, float noundef 0x3FA0842100000000, float noundef 0x3F90410420000000, float noundef 0x3FA0842100000000, float noundef 0.000000e+00)
  %66 = getelementptr inbounds i8, ptr %0, i64 24
  %67 = call noundef zeroext i1 @_ZN6squish10ClusterFit17ConstructOrderingERKNS_4Vec3Ei(ptr noundef nonnull align 16 dereferenceable(480) %0, ptr noundef nonnull align 4 dereferenceable(12) %66, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #7
  call void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 16 dereferenceable(16) %10, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #7
  call void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 16 dereferenceable(16) %11, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #7
  %68 = getelementptr inbounds i8, ptr %0, i64 464
  call void @_ZN6squish4Vec4C2ERKS0_(ptr noundef nonnull align 16 dereferenceable(16) %12, ptr noundef nonnull align 16 dereferenceable(16) %68)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  %69 = icmp sgt i32 %65, 0
  %70 = getelementptr inbounds i8, ptr %0, i64 176
  %71 = getelementptr inbounds i8, ptr %0, i64 432
  %72 = getelementptr inbounds i8, ptr %0, i64 448
  %73 = getelementptr inbounds i8, ptr %0, i64 20
  %.sroa.219.0..sroa_idx = getelementptr inbounds i8, ptr %58, i64 8
  br i1 %69, label %.lr.ph.us.preheader, label %.split

.lr.ph.us.preheader:                              ; preds = %2
  %74 = zext nneg i32 %65 to i64
  br label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %82
  %.058.us = phi i32 [ %76, %82 ], [ 0, %.lr.ph.us.preheader ]
  %.054.us = phi i32 [ %.357.us, %82 ], [ 0, %.lr.ph.us.preheader ]
  %.050.us = phi i32 [ %.353.us, %82 ], [ 0, %.lr.ph.us.preheader ]
  %.0.us = phi i32 [ %.058.us, %82 ], [ 0, %.lr.ph.us.preheader ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #7
  call void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 16 dereferenceable(16) %14, float noundef 0.000000e+00)
  br label %83

75:                                               ; preds = %._crit_edge.us
  %76 = add nuw nsw i32 %.058.us, 1
  %77 = load i32, ptr %73, align 4, !tbaa !11
  %78 = icmp eq i32 %76, %77
  br i1 %78, label %.split87.us.loopexit, label %79

79:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %58) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %59) #7
  call void @_ZN6squishmiERKNS_4Vec4ES2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %59, ptr noundef nonnull align 16 dereferenceable(16) %11, ptr noundef nonnull align 16 dereferenceable(16) %10)
  %80 = call { <2 x float>, float } @_ZNK6squish4Vec47GetVec3Ev(ptr noundef nonnull align 16 dereferenceable(16) %59)
  %.fca.0.extract16.us = extractvalue { <2 x float>, float } %80, 0
  %.fca.1.extract17.us = extractvalue { <2 x float>, float } %80, 1
  store <2 x float> %.fca.0.extract16.us, ptr %58, align 8
  store float %.fca.1.extract17.us, ptr %.sroa.219.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %59) #7
  %81 = call noundef zeroext i1 @_ZN6squish10ClusterFit17ConstructOrderingERKNS_4Vec3Ei(ptr noundef nonnull align 16 dereferenceable(480) %0, ptr noundef nonnull align 4 dereferenceable(12) %58, i32 noundef %76)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %58) #7
  br i1 %81, label %82, label %.split87.us.loopexit

82:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  br label %.lr.ph.us, !llvm.loop !16

83:                                               ; preds = %.lr.ph.us, %104
  %indvars.iv = phi i64 [ 0, %.lr.ph.us ], [ %indvars.iv.next, %104 ]
  %.183.us = phi i32 [ %.0.us, %.lr.ph.us ], [ %.3.us, %104 ]
  %.15182.us = phi i32 [ %.050.us, %.lr.ph.us ], [ %.353.us, %104 ]
  %.15581.us = phi i32 [ %.054.us, %.lr.ph.us ], [ %.357.us, %104 ]
  %umax = call i64 @llvm.umax.i64(i64 %indvars.iv, i64 1)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #7
  %84 = icmp eq i64 %indvars.iv, 0
  br i1 %84, label %86, label %85

85:                                               ; preds = %83
  call void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 16 dereferenceable(16) %15, float noundef 0.000000e+00)
  br label %87

86:                                               ; preds = %83
  call void @_ZN6squish4Vec4C2ERKS0_(ptr noundef nonnull align 16 dereferenceable(16) %15, ptr noundef nonnull align 16 dereferenceable(16) %70)
  br label %87

87:                                               ; preds = %86, %85
  %88 = trunc nuw nsw i64 %indvars.iv to i32
  br label %89

89:                                               ; preds = %101, %87
  %indvars.iv97 = phi i64 [ %indvars.iv.next98, %101 ], [ %umax, %87 ]
  %.256.us = phi i32 [ %.357.us, %101 ], [ %.15581.us, %87 ]
  %.252.us = phi i32 [ %.353.us, %101 ], [ %.15182.us, %87 ]
  %.2.us = phi i32 [ %.3.us, %101 ], [ %.183.us, %87 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #7
  call void @_ZN6squishmiERKNS_4Vec4ES2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %17, ptr noundef nonnull align 16 dereferenceable(16) %71, ptr noundef nonnull align 16 dereferenceable(16) %15)
  call void @_ZN6squishmiERKNS_4Vec4ES2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %16, ptr noundef nonnull align 16 dereferenceable(16) %17, ptr noundef nonnull align 16 dereferenceable(16) %14)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #7
  call void @_ZN6squish11MultiplyAddERKNS_4Vec4ES2_S2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %18, ptr noundef nonnull align 16 dereferenceable(16) %15, ptr noundef nonnull align 16 dereferenceable(16) %5, ptr noundef nonnull align 16 dereferenceable(16) %14)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #7
  call void @_ZNK6squish4Vec46SplatWEv(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %19, ptr noundef nonnull align 16 dereferenceable(16) %18)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #7
  call void @_ZN6squish11MultiplyAddERKNS_4Vec4ES2_S2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %20, ptr noundef nonnull align 16 dereferenceable(16) %15, ptr noundef nonnull align 16 dereferenceable(16) %5, ptr noundef nonnull align 16 dereferenceable(16) %16)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #7
  call void @_ZNK6squish4Vec46SplatWEv(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %21, ptr noundef nonnull align 16 dereferenceable(16) %20)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #7
  call void @_ZN6squishmlERKNS_4Vec4ES2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %23, ptr noundef nonnull align 16 dereferenceable(16) %15, ptr noundef nonnull align 16 dereferenceable(16) %5)
  call void @_ZNK6squish4Vec46SplatWEv(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %22, ptr noundef nonnull align 16 dereferenceable(16) %23)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %25) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %26) #7
  call void @_ZN6squishmlERKNS_4Vec4ES2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %26, ptr noundef nonnull align 16 dereferenceable(16) %19, ptr noundef nonnull align 16 dereferenceable(16) %21)
  call void @_ZN6squish24NegativeMultiplySubtractERKNS_4Vec4ES2_S2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %25, ptr noundef nonnull align 16 dereferenceable(16) %22, ptr noundef nonnull align 16 dereferenceable(16) %22, ptr noundef nonnull align 16 dereferenceable(16) %26)
  call void @_ZN6squish10ReciprocalERKNS_4Vec4E(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %24, ptr noundef nonnull align 16 dereferenceable(16) %25)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %26) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %27) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %28) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %29) #7
  call void @_ZN6squishmlERKNS_4Vec4ES2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %29, ptr noundef nonnull align 16 dereferenceable(16) %18, ptr noundef nonnull align 16 dereferenceable(16) %21)
  call void @_ZN6squish24NegativeMultiplySubtractERKNS_4Vec4ES2_S2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %28, ptr noundef nonnull align 16 dereferenceable(16) %20, ptr noundef nonnull align 16 dereferenceable(16) %22, ptr noundef nonnull align 16 dereferenceable(16) %29)
  call void @_ZN6squishmlERKNS_4Vec4ES2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %27, ptr noundef nonnull align 16 dereferenceable(16) %28, ptr noundef nonnull align 16 dereferenceable(16) %24)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %29) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %28) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %30) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %31) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %32) #7
  call void @_ZN6squishmlERKNS_4Vec4ES2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %32, ptr noundef nonnull align 16 dereferenceable(16) %20, ptr noundef nonnull align 16 dereferenceable(16) %19)
  call void @_ZN6squish24NegativeMultiplySubtractERKNS_4Vec4ES2_S2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %31, ptr noundef nonnull align 16 dereferenceable(16) %18, ptr noundef nonnull align 16 dereferenceable(16) %22, ptr noundef nonnull align 16 dereferenceable(16) %32)
  call void @_ZN6squishmlERKNS_4Vec4ES2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %30, ptr noundef nonnull align 16 dereferenceable(16) %31, ptr noundef nonnull align 16 dereferenceable(16) %24)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %32) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %31) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %33) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %34) #7
  call void @_ZN6squish3MaxERKNS_4Vec4ES2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %34, ptr noundef nonnull align 16 dereferenceable(16) %6, ptr noundef nonnull align 16 dereferenceable(16) %27)
  call void @_ZN6squish3MinERKNS_4Vec4ES2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %33, ptr noundef nonnull align 16 dereferenceable(16) %4, ptr noundef nonnull align 16 dereferenceable(16) %34)
  %90 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN6squish4Vec4aSERKS0_(ptr noundef nonnull align 16 dereferenceable(16) %27, ptr noundef nonnull align 16 dereferenceable(16) %33)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %34) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %33) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %35) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %36) #7
  call void @_ZN6squish3MaxERKNS_4Vec4ES2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %36, ptr noundef nonnull align 16 dereferenceable(16) %6, ptr noundef nonnull align 16 dereferenceable(16) %30)
  call void @_ZN6squish3MinERKNS_4Vec4ES2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %35, ptr noundef nonnull align 16 dereferenceable(16) %4, ptr noundef nonnull align 16 dereferenceable(16) %36)
  %91 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN6squish4Vec4aSERKS0_(ptr noundef nonnull align 16 dereferenceable(16) %30, ptr noundef nonnull align 16 dereferenceable(16) %35)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %36) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %35) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %37) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %38) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %39) #7
  call void @_ZN6squish11MultiplyAddERKNS_4Vec4ES2_S2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %39, ptr noundef nonnull align 16 dereferenceable(16) %8, ptr noundef nonnull align 16 dereferenceable(16) %27, ptr noundef nonnull align 16 dereferenceable(16) %7)
  call void @_ZN6squish8TruncateERKNS_4Vec4E(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %38, ptr noundef nonnull align 16 dereferenceable(16) %39)
  call void @_ZN6squishmlERKNS_4Vec4ES2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %37, ptr noundef nonnull align 16 dereferenceable(16) %38, ptr noundef nonnull align 16 dereferenceable(16) %9)
  %92 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN6squish4Vec4aSERKS0_(ptr noundef nonnull align 16 dereferenceable(16) %27, ptr noundef nonnull align 16 dereferenceable(16) %37)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %39) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %38) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %37) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %40) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %41) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %42) #7
  call void @_ZN6squish11MultiplyAddERKNS_4Vec4ES2_S2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %42, ptr noundef nonnull align 16 dereferenceable(16) %8, ptr noundef nonnull align 16 dereferenceable(16) %30, ptr noundef nonnull align 16 dereferenceable(16) %7)
  call void @_ZN6squish8TruncateERKNS_4Vec4E(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %41, ptr noundef nonnull align 16 dereferenceable(16) %42)
  call void @_ZN6squishmlERKNS_4Vec4ES2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %40, ptr noundef nonnull align 16 dereferenceable(16) %41, ptr noundef nonnull align 16 dereferenceable(16) %9)
  %93 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN6squish4Vec4aSERKS0_(ptr noundef nonnull align 16 dereferenceable(16) %30, ptr noundef nonnull align 16 dereferenceable(16) %40)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %42) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %41) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %40) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %43) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %44) #7
  call void @_ZN6squishmlERKNS_4Vec4ES2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %44, ptr noundef nonnull align 16 dereferenceable(16) %27, ptr noundef nonnull align 16 dereferenceable(16) %27)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %45) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %46) #7
  call void @_ZN6squishmlERKNS_4Vec4ES2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %46, ptr noundef nonnull align 16 dereferenceable(16) %30, ptr noundef nonnull align 16 dereferenceable(16) %30)
  call void @_ZN6squishmlERKNS_4Vec4ES2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %45, ptr noundef nonnull align 16 dereferenceable(16) %46, ptr noundef nonnull align 16 dereferenceable(16) %21)
  call void @_ZN6squish11MultiplyAddERKNS_4Vec4ES2_S2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %43, ptr noundef nonnull align 16 dereferenceable(16) %44, ptr noundef nonnull align 16 dereferenceable(16) %19, ptr noundef nonnull align 16 dereferenceable(16) %45)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %46) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %45) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %44) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %47) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %48) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %49) #7
  call void @_ZN6squishmlERKNS_4Vec4ES2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %49, ptr noundef nonnull align 16 dereferenceable(16) %27, ptr noundef nonnull align 16 dereferenceable(16) %30)
  call void @_ZN6squishmlERKNS_4Vec4ES2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %48, ptr noundef nonnull align 16 dereferenceable(16) %49, ptr noundef nonnull align 16 dereferenceable(16) %22)
  call void @_ZN6squish24NegativeMultiplySubtractERKNS_4Vec4ES2_S2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %47, ptr noundef nonnull align 16 dereferenceable(16) %27, ptr noundef nonnull align 16 dereferenceable(16) %18, ptr noundef nonnull align 16 dereferenceable(16) %48)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %49) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %48) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %50) #7
  call void @_ZN6squish24NegativeMultiplySubtractERKNS_4Vec4ES2_S2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %50, ptr noundef nonnull align 16 dereferenceable(16) %30, ptr noundef nonnull align 16 dereferenceable(16) %20, ptr noundef nonnull align 16 dereferenceable(16) %47)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %51) #7
  call void @_ZN6squish11MultiplyAddERKNS_4Vec4ES2_S2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %51, ptr noundef nonnull align 16 dereferenceable(16) %3, ptr noundef nonnull align 16 dereferenceable(16) %50, ptr noundef nonnull align 16 dereferenceable(16) %43)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %52) #7
  call void @_ZN6squishmlERKNS_4Vec4ES2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %52, ptr noundef nonnull align 16 dereferenceable(16) %51, ptr noundef nonnull align 16 dereferenceable(16) %72)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %53) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %54) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %55) #7
  call void @_ZNK6squish4Vec46SplatXEv(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %55, ptr noundef nonnull align 16 dereferenceable(16) %52)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %56) #7
  call void @_ZNK6squish4Vec46SplatYEv(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %56, ptr noundef nonnull align 16 dereferenceable(16) %52)
  call void @_ZN6squishplERKNS_4Vec4ES2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %54, ptr noundef nonnull align 16 dereferenceable(16) %55, ptr noundef nonnull align 16 dereferenceable(16) %56)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %57) #7
  call void @_ZNK6squish4Vec46SplatZEv(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %57, ptr noundef nonnull align 16 dereferenceable(16) %52)
  call void @_ZN6squishplERKNS_4Vec4ES2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %53, ptr noundef nonnull align 16 dereferenceable(16) %54, ptr noundef nonnull align 16 dereferenceable(16) %57)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %57) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %56) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %55) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %54) #7
  %94 = call noundef zeroext i1 @_ZN6squish18CompareAnyLessThanERKNS_4Vec4ES2_(ptr noundef nonnull align 16 dereferenceable(16) %53, ptr noundef nonnull align 16 dereferenceable(16) %12)
  br i1 %94, label %95, label %100

95:                                               ; preds = %89
  %96 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN6squish4Vec4aSERKS0_(ptr noundef nonnull align 16 dereferenceable(16) %10, ptr noundef nonnull align 16 dereferenceable(16) %27)
  %97 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN6squish4Vec4aSERKS0_(ptr noundef nonnull align 16 dereferenceable(16) %11, ptr noundef nonnull align 16 dereferenceable(16) %30)
  %98 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN6squish4Vec4aSERKS0_(ptr noundef nonnull align 16 dereferenceable(16) %12, ptr noundef nonnull align 16 dereferenceable(16) %53)
  %99 = trunc nuw nsw i64 %indvars.iv97 to i32
  br label %100

100:                                              ; preds = %95, %89
  %.357.us = phi i32 [ %99, %95 ], [ %.256.us, %89 ]
  %.353.us = phi i32 [ %88, %95 ], [ %.252.us, %89 ]
  %.3.us = phi i32 [ %.058.us, %95 ], [ %.2.us, %89 ]
  %.not73.us = icmp eq i64 %indvars.iv97, %74
  br i1 %.not73.us, label %104, label %101

101:                                              ; preds = %100
  %102 = getelementptr inbounds [16 x %"class.squish::Vec4"], ptr %70, i64 0, i64 %indvars.iv97
  %103 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN6squish4Vec4pLERKS0_(ptr noundef nonnull align 16 dereferenceable(16) %15, ptr noundef nonnull align 16 dereferenceable(16) %102)
  %indvars.iv.next98 = add nuw nsw i64 %indvars.iv97, 1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %53) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %52) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %51) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %50) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %47) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %43) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %30) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #7
  br label %89

104:                                              ; preds = %100
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %53) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %52) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %51) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %50) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %47) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %43) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %30) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #7
  %105 = getelementptr inbounds [16 x %"class.squish::Vec4"], ptr %70, i64 0, i64 %indvars.iv
  %106 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN6squish4Vec4pLERKS0_(ptr noundef nonnull align 16 dereferenceable(16) %14, ptr noundef nonnull align 16 dereferenceable(16) %105)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %74
  br i1 %exitcond.not, label %._crit_edge.us, label %83, !llvm.loop !18

._crit_edge.us:                                   ; preds = %104
  %.not.us = icmp eq i32 %.3.us, %.058.us
  br i1 %.not.us, label %75, label %.split87.us.loopexit

.split:                                           ; preds = %2
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #7
  call void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 16 dereferenceable(16) %14, float noundef 0.000000e+00)
  %107 = load i32, ptr %73, align 4, !tbaa !11
  %108 = icmp eq i32 %107, 1
  br i1 %108, label %.split87.us, label %109

109:                                              ; preds = %.split
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %58) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %59) #7
  call void @_ZN6squishmiERKNS_4Vec4ES2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %59, ptr noundef nonnull align 16 dereferenceable(16) %11, ptr noundef nonnull align 16 dereferenceable(16) %10)
  %110 = call { <2 x float>, float } @_ZNK6squish4Vec47GetVec3Ev(ptr noundef nonnull align 16 dereferenceable(16) %59)
  %.fca.0.extract16 = extractvalue { <2 x float>, float } %110, 0
  %.fca.1.extract17 = extractvalue { <2 x float>, float } %110, 1
  store <2 x float> %.fca.0.extract16, ptr %58, align 8
  store float %.fca.1.extract17, ptr %.sroa.219.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %59) #7
  %111 = call noundef zeroext i1 @_ZN6squish10ClusterFit17ConstructOrderingERKNS_4Vec3Ei(ptr noundef nonnull align 16 dereferenceable(480) %0, ptr noundef nonnull align 4 dereferenceable(12) %58, i32 noundef 1)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %58) #7
  br i1 %111, label %112, label %.split87.us

112:                                              ; preds = %109
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #7
  call void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 16 dereferenceable(16) %14, float noundef 0.000000e+00)
  br label %.split87.us

.split87.us.loopexit:                             ; preds = %79, %75, %._crit_edge.us
  %.3.us.lcssa.lcssa.lcssa = phi i32 [ %.058.us, %79 ], [ %.058.us, %75 ], [ %.3.us, %._crit_edge.us ]
  %113 = shl nsw i32 %.3.us.lcssa.lcssa.lcssa, 4
  %114 = sext i32 %113 to i64
  br label %.split87.us

.split87.us:                                      ; preds = %.split, %109, %112, %.split87.us.loopexit
  %.us-phi = phi i32 [ %.357.us, %.split87.us.loopexit ], [ 0, %112 ], [ 0, %109 ], [ 0, %.split ]
  %.us-phi88 = phi i32 [ %.353.us, %.split87.us.loopexit ], [ 0, %112 ], [ 0, %109 ], [ 0, %.split ]
  %.us-phi89 = phi i64 [ %114, %.split87.us.loopexit ], [ 0, %112 ], [ 0, %109 ], [ 0, %.split ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  %115 = call noundef zeroext i1 @_ZN6squish18CompareAnyLessThanERKNS_4Vec4ES2_(ptr noundef nonnull align 16 dereferenceable(16) %12, ptr noundef nonnull align 16 dereferenceable(16) %68)
  br i1 %115, label %116, label %189

116:                                              ; preds = %.split87.us
  %117 = getelementptr inbounds i8, ptr %0, i64 36
  %118 = getelementptr inbounds i8, ptr %117, i64 %.us-phi89
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %60) #7
  %119 = icmp sgt i32 %.us-phi88, 0
  br i1 %119, label %.lr.ph.preheader, label %.preheader79

.lr.ph.preheader:                                 ; preds = %116
  %wide.trip.count103 = zext nneg i32 %.us-phi88 to i64
  %xtraiter = and i64 %wide.trip.count103, 3
  %120 = icmp ult i32 %.us-phi88, 4
  br i1 %120, label %.preheader79.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %wide.trip.count103, 2147483644
  br label %.lr.ph

.preheader79.loopexit.unr-lcssa:                  ; preds = %.lr.ph, %.lr.ph.preheader
  %indvars.iv100.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next101.3, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader79, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.preheader79.loopexit.unr-lcssa, %.lr.ph.epil
  %indvars.iv100.epil = phi i64 [ %indvars.iv.next101.epil, %.lr.ph.epil ], [ %indvars.iv100.unr, %.preheader79.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %.preheader79.loopexit.unr-lcssa ]
  %121 = getelementptr inbounds i8, ptr %118, i64 %indvars.iv100.epil
  %122 = load i8, ptr %121, align 1, !tbaa !19
  %123 = zext i8 %122 to i64
  %124 = getelementptr inbounds [16 x i8], ptr %60, i64 0, i64 %123
  store i8 0, ptr %124, align 1, !tbaa !19
  %indvars.iv.next101.epil = add nuw nsw i64 %indvars.iv100.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader79, label %.lr.ph.epil, !llvm.loop !20

.preheader79:                                     ; preds = %.preheader79.loopexit.unr-lcssa, %.lr.ph.epil, %116
  %125 = icmp slt i32 %.us-phi88, %.us-phi
  br i1 %125, label %.lr.ph93.preheader, label %.preheader

.lr.ph93.preheader:                               ; preds = %.preheader79
  %126 = sext i32 %.us-phi88 to i64
  %wide.trip.count108 = sext i32 %.us-phi to i64
  %127 = sub nsw i64 %wide.trip.count108, %126
  %xtraiter115 = and i64 %127, 3
  %lcmp.mod116.not = icmp eq i64 %xtraiter115, 0
  br i1 %lcmp.mod116.not, label %.lr.ph93.prol.loopexit, label %.lr.ph93.prol

.lr.ph93.prol:                                    ; preds = %.lr.ph93.preheader, %.lr.ph93.prol
  %indvars.iv105.prol = phi i64 [ %indvars.iv.next106.prol, %.lr.ph93.prol ], [ %126, %.lr.ph93.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph93.prol ], [ 0, %.lr.ph93.preheader ]
  %128 = getelementptr inbounds i8, ptr %118, i64 %indvars.iv105.prol
  %129 = load i8, ptr %128, align 1, !tbaa !19
  %130 = zext i8 %129 to i64
  %131 = getelementptr inbounds [16 x i8], ptr %60, i64 0, i64 %130
  store i8 2, ptr %131, align 1, !tbaa !19
  %indvars.iv.next106.prol = add nsw i64 %indvars.iv105.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter115
  br i1 %prol.iter.cmp.not, label %.lr.ph93.prol.loopexit, label %.lr.ph93.prol, !llvm.loop !22

.lr.ph93.prol.loopexit:                           ; preds = %.lr.ph93.prol, %.lr.ph93.preheader
  %indvars.iv105.unr = phi i64 [ %126, %.lr.ph93.preheader ], [ %indvars.iv.next106.prol, %.lr.ph93.prol ]
  %132 = sub nsw i64 %126, %wide.trip.count108
  %133 = icmp ugt i64 %132, -4
  br i1 %133, label %.preheader, label %.lr.ph93.preheader.new

.lr.ph93.preheader.new:                           ; preds = %.lr.ph93.prol.loopexit
  %invariant.gep = getelementptr i8, ptr %118, i64 1
  %invariant.gep120 = getelementptr i8, ptr %118, i64 2
  %invariant.gep122 = getelementptr i8, ptr %118, i64 3
  br label %.lr.ph93

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv100 = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next101.3, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %134 = getelementptr inbounds i8, ptr %118, i64 %indvars.iv100
  %135 = load i8, ptr %134, align 1, !tbaa !19
  %136 = zext i8 %135 to i64
  %137 = getelementptr inbounds [16 x i8], ptr %60, i64 0, i64 %136
  store i8 0, ptr %137, align 1, !tbaa !19
  %indvars.iv.next101 = or disjoint i64 %indvars.iv100, 1
  %138 = getelementptr inbounds i8, ptr %118, i64 %indvars.iv.next101
  %139 = load i8, ptr %138, align 1, !tbaa !19
  %140 = zext i8 %139 to i64
  %141 = getelementptr inbounds [16 x i8], ptr %60, i64 0, i64 %140
  store i8 0, ptr %141, align 1, !tbaa !19
  %indvars.iv.next101.1 = or disjoint i64 %indvars.iv100, 2
  %142 = getelementptr inbounds i8, ptr %118, i64 %indvars.iv.next101.1
  %143 = load i8, ptr %142, align 1, !tbaa !19
  %144 = zext i8 %143 to i64
  %145 = getelementptr inbounds [16 x i8], ptr %60, i64 0, i64 %144
  store i8 0, ptr %145, align 1, !tbaa !19
  %indvars.iv.next101.2 = or disjoint i64 %indvars.iv100, 3
  %146 = getelementptr inbounds i8, ptr %118, i64 %indvars.iv.next101.2
  %147 = load i8, ptr %146, align 1, !tbaa !19
  %148 = zext i8 %147 to i64
  %149 = getelementptr inbounds [16 x i8], ptr %60, i64 0, i64 %148
  store i8 0, ptr %149, align 1, !tbaa !19
  %indvars.iv.next101.3 = add nuw nsw i64 %indvars.iv100, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader79.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !23

.preheader:                                       ; preds = %.lr.ph93.prol.loopexit, %.lr.ph93, %.preheader79
  %150 = icmp slt i32 %.us-phi, %65
  br i1 %150, label %.lr.ph95.preheader, label %._crit_edge

.lr.ph95.preheader:                               ; preds = %.preheader
  %151 = sext i32 %.us-phi to i64
  %wide.trip.count113 = sext i32 %65 to i64
  %152 = sub nsw i64 %wide.trip.count113, %151
  %xtraiter117 = and i64 %152, 3
  %lcmp.mod118.not = icmp eq i64 %xtraiter117, 0
  br i1 %lcmp.mod118.not, label %.lr.ph95.prol.loopexit, label %.lr.ph95.prol

.lr.ph95.prol:                                    ; preds = %.lr.ph95.preheader, %.lr.ph95.prol
  %indvars.iv110.prol = phi i64 [ %indvars.iv.next111.prol, %.lr.ph95.prol ], [ %151, %.lr.ph95.preheader ]
  %prol.iter119 = phi i64 [ %prol.iter119.next, %.lr.ph95.prol ], [ 0, %.lr.ph95.preheader ]
  %153 = getelementptr inbounds i8, ptr %118, i64 %indvars.iv110.prol
  %154 = load i8, ptr %153, align 1, !tbaa !19
  %155 = zext i8 %154 to i64
  %156 = getelementptr inbounds [16 x i8], ptr %60, i64 0, i64 %155
  store i8 1, ptr %156, align 1, !tbaa !19
  %indvars.iv.next111.prol = add nsw i64 %indvars.iv110.prol, 1
  %prol.iter119.next = add i64 %prol.iter119, 1
  %prol.iter119.cmp.not = icmp eq i64 %prol.iter119.next, %xtraiter117
  br i1 %prol.iter119.cmp.not, label %.lr.ph95.prol.loopexit, label %.lr.ph95.prol, !llvm.loop !24

.lr.ph95.prol.loopexit:                           ; preds = %.lr.ph95.prol, %.lr.ph95.preheader
  %indvars.iv110.unr = phi i64 [ %151, %.lr.ph95.preheader ], [ %indvars.iv.next111.prol, %.lr.ph95.prol ]
  %157 = sub nsw i64 %151, %wide.trip.count113
  %158 = icmp ugt i64 %157, -4
  br i1 %158, label %._crit_edge, label %.lr.ph95.preheader.new

.lr.ph95.preheader.new:                           ; preds = %.lr.ph95.prol.loopexit
  %invariant.gep124 = getelementptr i8, ptr %118, i64 1
  %invariant.gep126 = getelementptr i8, ptr %118, i64 2
  %invariant.gep128 = getelementptr i8, ptr %118, i64 3
  br label %.lr.ph95

.lr.ph93:                                         ; preds = %.lr.ph93, %.lr.ph93.preheader.new
  %indvars.iv105 = phi i64 [ %indvars.iv105.unr, %.lr.ph93.preheader.new ], [ %indvars.iv.next106.3, %.lr.ph93 ]
  %159 = getelementptr inbounds i8, ptr %118, i64 %indvars.iv105
  %160 = load i8, ptr %159, align 1, !tbaa !19
  %161 = zext i8 %160 to i64
  %162 = getelementptr inbounds [16 x i8], ptr %60, i64 0, i64 %161
  store i8 2, ptr %162, align 1, !tbaa !19
  %gep = getelementptr i8, ptr %invariant.gep, i64 %indvars.iv105
  %163 = load i8, ptr %gep, align 1, !tbaa !19
  %164 = zext i8 %163 to i64
  %165 = getelementptr inbounds [16 x i8], ptr %60, i64 0, i64 %164
  store i8 2, ptr %165, align 1, !tbaa !19
  %gep121 = getelementptr i8, ptr %invariant.gep120, i64 %indvars.iv105
  %166 = load i8, ptr %gep121, align 1, !tbaa !19
  %167 = zext i8 %166 to i64
  %168 = getelementptr inbounds [16 x i8], ptr %60, i64 0, i64 %167
  store i8 2, ptr %168, align 1, !tbaa !19
  %gep123 = getelementptr i8, ptr %invariant.gep122, i64 %indvars.iv105
  %169 = load i8, ptr %gep123, align 1, !tbaa !19
  %170 = zext i8 %169 to i64
  %171 = getelementptr inbounds [16 x i8], ptr %60, i64 0, i64 %170
  store i8 2, ptr %171, align 1, !tbaa !19
  %indvars.iv.next106.3 = add nsw i64 %indvars.iv105, 4
  %exitcond109.not.3 = icmp eq i64 %indvars.iv.next106.3, %wide.trip.count108
  br i1 %exitcond109.not.3, label %.preheader, label %.lr.ph93, !llvm.loop !25

._crit_edge:                                      ; preds = %.lr.ph95.prol.loopexit, %.lr.ph95, %.preheader
  %172 = load ptr, ptr %63, align 8, !tbaa !5
  call void @_ZNK6squish9ColourSet12RemapIndicesEPKhPh(ptr noundef nonnull align 4 dereferenceable(325) %172, ptr noundef nonnull %60, ptr noundef nonnull %13)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %61) #7
  %173 = call { <2 x float>, float } @_ZNK6squish4Vec47GetVec3Ev(ptr noundef nonnull align 16 dereferenceable(16) %10)
  %.fca.0.extract2 = extractvalue { <2 x float>, float } %173, 0
  %.fca.1.extract3 = extractvalue { <2 x float>, float } %173, 1
  store <2 x float> %.fca.0.extract2, ptr %61, align 8
  %.sroa.25.0..sroa_idx = getelementptr inbounds i8, ptr %61, i64 8
  store float %.fca.1.extract3, ptr %.sroa.25.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %62) #7
  %174 = call { <2 x float>, float } @_ZNK6squish4Vec47GetVec3Ev(ptr noundef nonnull align 16 dereferenceable(16) %11)
  %.fca.0.extract = extractvalue { <2 x float>, float } %174, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %174, 1
  store <2 x float> %.fca.0.extract, ptr %62, align 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %62, i64 8
  store float %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  call void @_ZN6squish17WriteColourBlock3ERKNS_4Vec3ES2_PKhPv(ptr noundef nonnull align 4 dereferenceable(12) %61, ptr noundef nonnull align 4 dereferenceable(12) %62, ptr noundef nonnull %13, ptr noundef %1)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %62) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %61) #7
  %175 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN6squish4Vec4aSERKS0_(ptr noundef nonnull align 16 dereferenceable(16) %68, ptr noundef nonnull align 16 dereferenceable(16) %12)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %60) #7
  br label %189

.lr.ph95:                                         ; preds = %.lr.ph95, %.lr.ph95.preheader.new
  %indvars.iv110 = phi i64 [ %indvars.iv110.unr, %.lr.ph95.preheader.new ], [ %indvars.iv.next111.3, %.lr.ph95 ]
  %176 = getelementptr inbounds i8, ptr %118, i64 %indvars.iv110
  %177 = load i8, ptr %176, align 1, !tbaa !19
  %178 = zext i8 %177 to i64
  %179 = getelementptr inbounds [16 x i8], ptr %60, i64 0, i64 %178
  store i8 1, ptr %179, align 1, !tbaa !19
  %gep125 = getelementptr i8, ptr %invariant.gep124, i64 %indvars.iv110
  %180 = load i8, ptr %gep125, align 1, !tbaa !19
  %181 = zext i8 %180 to i64
  %182 = getelementptr inbounds [16 x i8], ptr %60, i64 0, i64 %181
  store i8 1, ptr %182, align 1, !tbaa !19
  %gep127 = getelementptr i8, ptr %invariant.gep126, i64 %indvars.iv110
  %183 = load i8, ptr %gep127, align 1, !tbaa !19
  %184 = zext i8 %183 to i64
  %185 = getelementptr inbounds [16 x i8], ptr %60, i64 0, i64 %184
  store i8 1, ptr %185, align 1, !tbaa !19
  %gep129 = getelementptr i8, ptr %invariant.gep128, i64 %indvars.iv110
  %186 = load i8, ptr %gep129, align 1, !tbaa !19
  %187 = zext i8 %186 to i64
  %188 = getelementptr inbounds [16 x i8], ptr %60, i64 0, i64 %187
  store i8 1, ptr %188, align 1, !tbaa !19
  %indvars.iv.next111.3 = add nsw i64 %indvars.iv110, 4
  %exitcond114.not.3 = icmp eq i64 %indvars.iv.next111.3, %wide.trip.count113
  br i1 %exitcond114.not.3, label %._crit_edge, label %.lr.ph95, !llvm.loop !26

189:                                              ; preds = %._crit_edge, %.split87.us
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #7
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6squishmiERKNS_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 #1

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6squish24NegativeMultiplySubtractERKNS_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 #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6squish3MinERKNS_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 #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6squishplERKNS_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 #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6squish18CompareAnyLessThanERKNS_4Vec4ES2_(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #1

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

declare void @_ZNK6squish9ColourSet12RemapIndicesEPKhPh(ptr noundef nonnull align 4 dereferenceable(325), ptr noundef, ptr noundef) local_unnamed_addr #5

declare void @_ZN6squish17WriteColourBlock3ERKNS_4Vec3ES2_PKhPv(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 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"="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"="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 #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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, !7, i64 8}
!6 = !{!"_ZTSN6squish9ColourFitE", !7, i64 8, !10, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !10, i64 20}
!12 = !{!"_ZTSN6squish10ClusterFitE", !6, i64 0, !10, i64 20, !13, i64 24, !8, i64 36, !8, i64 176, !15, i64 432, !15, i64 448, !15, i64 464}
!13 = !{!"_ZTSN6squish4Vec3E", !14, i64 0, !14, i64 4, !14, i64 8}
!14 = !{!"float", !8, i64 0}
!15 = !{!"_ZTSN6squish4Vec4E", !8, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = !{!8, !8, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.unroll.disable"}
!22 = distinct !{!22, !21}
!23 = distinct !{!23, !17}
!24 = distinct !{!24, !21}
!25 = distinct !{!25, !17}
!26 = distinct !{!26, !17}


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