; LLVM IR from Try/Tempest :: Engine/thirdparty/squish/clusterfit.ll (ZN6squish10ClusterFit9Compress4EPv)

; 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 { float, float, float, 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", [4 x i8] }
%"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 nounwind uwtable
declare dso_local void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 4 dereferenceable(16), float noundef) unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6squish10ClusterFit17ConstructOrderingERKNS_4Vec3Ei(ptr noundef nonnull align 8 dereferenceable(468), ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) #3 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

98:                                               ; preds = %431, %2
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #6
  call void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 4 dereferenceable(16) %24, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  store i32 0, ptr %25, align 4, !tbaa !12
  br label %99

99:                                               ; preds = %401, %98
  %100 = load i32, ptr %25, align 4, !tbaa !12
  %101 = load i32, ptr %5, align 4, !tbaa !12
  %102 = icmp slt i32 %100, %101
  br i1 %102, label %104, label %103

103:                                              ; preds = %99
  store i32 4, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %404

104:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #6
  call void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 4 dereferenceable(16) %27, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %105 = load i32, ptr %25, align 4, !tbaa !12
  store i32 %105, ptr %28, align 4, !tbaa !12
  br label %106

106:                                              ; preds = %393, %104
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #6
  %107 = load i32, ptr %28, align 4, !tbaa !12
  %108 = icmp eq i32 %107, 0
  br i1 %108, label %109, label %112

109:                                              ; preds = %106
  %110 = getelementptr inbounds %"class.squish::ClusterFit", ptr %91, i32 0, i32 4
  %111 = getelementptr inbounds [16 x %"class.squish::Vec4"], ptr %110, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 4 %111, i64 16, i1 false), !tbaa.struct !13
  br label %113

112:                                              ; preds = %106
  call void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 4 dereferenceable(16) %29, float noundef 0.000000e+00)
  br label %113

113:                                              ; preds = %112, %109
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  %114 = load i32, ptr %28, align 4, !tbaa !12
  %115 = icmp eq i32 %114, 0
  br i1 %115, label %116, label %117

116:                                              ; preds = %113
  br label %119

117:                                              ; preds = %113
  %118 = load i32, ptr %28, align 4, !tbaa !12
  br label %119

119:                                              ; preds = %117, %116
  %120 = phi i32 [ 1, %116 ], [ %118, %117 ]
  store i32 %120, ptr %30, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  %121 = load i32, ptr %30, align 4, !tbaa !12
  store i32 %121, ptr %31, align 4, !tbaa !12
  br label %122

122:                                              ; preds = %376, %119
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #6
  %123 = getelementptr inbounds %"class.squish::ClusterFit", ptr %91, i32 0, i32 5
  %124 = call { <2 x float>, <2 x float> } @_ZN6squishmiERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %123, ptr noundef nonnull align 4 dereferenceable(16) %29)
  %125 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %34, i32 0, i32 0
  %126 = extractvalue { <2 x float>, <2 x float> } %124, 0
  store <2 x float> %126, ptr %125, align 4
  %127 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %34, i32 0, i32 1
  %128 = extractvalue { <2 x float>, <2 x float> } %124, 1
  store <2 x float> %128, ptr %127, align 4
  %129 = call { <2 x float>, <2 x float> } @_ZN6squishmiERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %34, ptr noundef nonnull align 4 dereferenceable(16) %27)
  %130 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %33, i32 0, i32 0
  %131 = extractvalue { <2 x float>, <2 x float> } %129, 0
  store <2 x float> %131, ptr %130, align 4
  %132 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %33, i32 0, i32 1
  %133 = extractvalue { <2 x float>, <2 x float> } %129, 1
  store <2 x float> %133, ptr %132, align 4
  %134 = call { <2 x float>, <2 x float> } @_ZN6squishmiERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %33, ptr noundef nonnull align 4 dereferenceable(16) %24)
  %135 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %32, i32 0, i32 0
  %136 = extractvalue { <2 x float>, <2 x float> } %134, 0
  store <2 x float> %136, ptr %135, align 4
  %137 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %32, i32 0, i32 1
  %138 = extractvalue { <2 x float>, <2 x float> } %134, 1
  store <2 x float> %138, ptr %137, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #6
  %139 = call { <2 x float>, <2 x float> } @_ZN6squish11MultiplyAddERKNS_4Vec4ES2_S2_(ptr noundef nonnull align 4 dereferenceable(16) %27, ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(16) %24)
  %140 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %36, i32 0, i32 0
  %141 = extractvalue { <2 x float>, <2 x float> } %139, 0
  store <2 x float> %141, ptr %140, align 4
  %142 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %36, i32 0, i32 1
  %143 = extractvalue { <2 x float>, <2 x float> } %139, 1
  store <2 x float> %143, ptr %142, align 4
  %144 = call { <2 x float>, <2 x float> } @_ZN6squish11MultiplyAddERKNS_4Vec4ES2_S2_(ptr noundef nonnull align 4 dereferenceable(16) %29, ptr noundef nonnull align 4 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(16) %36)
  %145 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %35, i32 0, i32 0
  %146 = extractvalue { <2 x float>, <2 x float> } %144, 0
  store <2 x float> %146, ptr %145, align 4
  %147 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %35, i32 0, i32 1
  %148 = extractvalue { <2 x float>, <2 x float> } %144, 1
  store <2 x float> %148, ptr %147, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #6
  %149 = call { <2 x float>, <2 x float> } @_ZNK6squish4Vec46SplatWEv(ptr noundef nonnull align 4 dereferenceable(16) %35)
  %150 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %37, i32 0, i32 0
  %151 = extractvalue { <2 x float>, <2 x float> } %149, 0
  store <2 x float> %151, ptr %150, align 4
  %152 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %37, i32 0, i32 1
  %153 = extractvalue { <2 x float>, <2 x float> } %149, 1
  store <2 x float> %153, ptr %152, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #6
  %154 = call { <2 x float>, <2 x float> } @_ZN6squish11MultiplyAddERKNS_4Vec4ES2_S2_(ptr noundef nonnull align 4 dereferenceable(16) %29, ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(16) %32)
  %155 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %39, i32 0, i32 0
  %156 = extractvalue { <2 x float>, <2 x float> } %154, 0
  store <2 x float> %156, ptr %155, align 4
  %157 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %39, i32 0, i32 1
  %158 = extractvalue { <2 x float>, <2 x float> } %154, 1
  store <2 x float> %158, ptr %157, align 4
  %159 = call { <2 x float>, <2 x float> } @_ZN6squish11MultiplyAddERKNS_4Vec4ES2_S2_(ptr noundef nonnull align 4 dereferenceable(16) %27, ptr noundef nonnull align 4 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(16) %39)
  %160 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %38, i32 0, i32 0
  %161 = extractvalue { <2 x float>, <2 x float> } %159, 0
  store <2 x float> %161, ptr %160, align 4
  %162 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %38, i32 0, i32 1
  %163 = extractvalue { <2 x float>, <2 x float> } %159, 1
  store <2 x float> %163, ptr %162, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #6
  %164 = call { <2 x float>, <2 x float> } @_ZNK6squish4Vec46SplatWEv(ptr noundef nonnull align 4 dereferenceable(16) %38)
  %165 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %40, i32 0, i32 0
  %166 = extractvalue { <2 x float>, <2 x float> } %164, 0
  store <2 x float> %166, ptr %165, align 4
  %167 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %40, i32 0, i32 1
  %168 = extractvalue { <2 x float>, <2 x float> } %164, 1
  store <2 x float> %168, ptr %167, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %42) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %43) #6
  %169 = call { <2 x float>, <2 x float> } @_ZN6squishplERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %27, ptr noundef nonnull align 4 dereferenceable(16) %29)
  %170 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %43, i32 0, i32 0
  %171 = extractvalue { <2 x float>, <2 x float> } %169, 0
  store <2 x float> %171, ptr %170, align 4
  %172 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %43, i32 0, i32 1
  %173 = extractvalue { <2 x float>, <2 x float> } %169, 1
  store <2 x float> %173, ptr %172, align 4
  %174 = call { <2 x float>, <2 x float> } @_ZNK6squish4Vec46SplatWEv(ptr noundef nonnull align 4 dereferenceable(16) %43)
  %175 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %42, i32 0, i32 0
  %176 = extractvalue { <2 x float>, <2 x float> } %174, 0
  store <2 x float> %176, ptr %175, align 4
  %177 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %42, i32 0, i32 1
  %178 = extractvalue { <2 x float>, <2 x float> } %174, 1
  store <2 x float> %178, ptr %177, align 4
  %179 = call { <2 x float>, <2 x float> } @_ZN6squishmlERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %10, ptr noundef nonnull align 4 dereferenceable(16) %42)
  %180 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %41, i32 0, i32 0
  %181 = extractvalue { <2 x float>, <2 x float> } %179, 0
  store <2 x float> %181, ptr %180, align 4
  %182 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %41, i32 0, i32 1
  %183 = extractvalue { <2 x float>, <2 x float> } %179, 1
  store <2 x float> %183, ptr %182, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %44) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %45) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %46) #6
  %184 = call { <2 x float>, <2 x float> } @_ZN6squishmlERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %37, ptr noundef nonnull align 4 dereferenceable(16) %40)
  %185 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %46, i32 0, i32 0
  %186 = extractvalue { <2 x float>, <2 x float> } %184, 0
  store <2 x float> %186, ptr %185, align 4
  %187 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %46, i32 0, i32 1
  %188 = extractvalue { <2 x float>, <2 x float> } %184, 1
  store <2 x float> %188, ptr %187, align 4
  %189 = call { <2 x float>, <2 x float> } @_ZN6squish24NegativeMultiplySubtractERKNS_4Vec4ES2_S2_(ptr noundef nonnull align 4 dereferenceable(16) %41, ptr noundef nonnull align 4 dereferenceable(16) %41, ptr noundef nonnull align 4 dereferenceable(16) %46)
  %190 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %45, i32 0, i32 0
  %191 = extractvalue { <2 x float>, <2 x float> } %189, 0
  store <2 x float> %191, ptr %190, align 4
  %192 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %45, i32 0, i32 1
  %193 = extractvalue { <2 x float>, <2 x float> } %189, 1
  store <2 x float> %193, ptr %192, align 4
  %194 = call { <2 x float>, <2 x float> } @_ZN6squish10ReciprocalERKNS_4Vec4E(ptr noundef nonnull align 4 dereferenceable(16) %45)
  %195 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %44, i32 0, i32 0
  %196 = extractvalue { <2 x float>, <2 x float> } %194, 0
  store <2 x float> %196, ptr %195, align 4
  %197 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %44, i32 0, i32 1
  %198 = extractvalue { <2 x float>, <2 x float> } %194, 1
  store <2 x float> %198, ptr %197, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %46) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %45) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %47) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %48) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %49) #6
  %199 = call { <2 x float>, <2 x float> } @_ZN6squishmlERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %35, ptr noundef nonnull align 4 dereferenceable(16) %40)
  %200 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %49, i32 0, i32 0
  %201 = extractvalue { <2 x float>, <2 x float> } %199, 0
  store <2 x float> %201, ptr %200, align 4
  %202 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %49, i32 0, i32 1
  %203 = extractvalue { <2 x float>, <2 x float> } %199, 1
  store <2 x float> %203, ptr %202, align 4
  %204 = call { <2 x float>, <2 x float> } @_ZN6squish24NegativeMultiplySubtractERKNS_4Vec4ES2_S2_(ptr noundef nonnull align 4 dereferenceable(16) %38, ptr noundef nonnull align 4 dereferenceable(16) %41, ptr noundef nonnull align 4 dereferenceable(16) %49)
  %205 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %48, i32 0, i32 0
  %206 = extractvalue { <2 x float>, <2 x float> } %204, 0
  store <2 x float> %206, ptr %205, align 4
  %207 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %48, i32 0, i32 1
  %208 = extractvalue { <2 x float>, <2 x float> } %204, 1
  store <2 x float> %208, ptr %207, align 4
  %209 = call { <2 x float>, <2 x float> } @_ZN6squishmlERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %48, ptr noundef nonnull align 4 dereferenceable(16) %44)
  %210 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %47, i32 0, i32 0
  %211 = extractvalue { <2 x float>, <2 x float> } %209, 0
  store <2 x float> %211, ptr %210, align 4
  %212 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %47, i32 0, i32 1
  %213 = extractvalue { <2 x float>, <2 x float> } %209, 1
  store <2 x float> %213, ptr %212, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %49) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %48) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %50) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %51) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %52) #6
  %214 = call { <2 x float>, <2 x float> } @_ZN6squishmlERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %38, ptr noundef nonnull align 4 dereferenceable(16) %37)
  %215 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %52, i32 0, i32 0
  %216 = extractvalue { <2 x float>, <2 x float> } %214, 0
  store <2 x float> %216, ptr %215, align 4
  %217 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %52, i32 0, i32 1
  %218 = extractvalue { <2 x float>, <2 x float> } %214, 1
  store <2 x float> %218, ptr %217, align 4
  %219 = call { <2 x float>, <2 x float> } @_ZN6squish24NegativeMultiplySubtractERKNS_4Vec4ES2_S2_(ptr noundef nonnull align 4 dereferenceable(16) %35, ptr noundef nonnull align 4 dereferenceable(16) %41, ptr noundef nonnull align 4 dereferenceable(16) %52)
  %220 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %51, i32 0, i32 0
  %221 = extractvalue { <2 x float>, <2 x float> } %219, 0
  store <2 x float> %221, ptr %220, align 4
  %222 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %51, i32 0, i32 1
  %223 = extractvalue { <2 x float>, <2 x float> } %219, 1
  store <2 x float> %223, ptr %222, align 4
  %224 = call { <2 x float>, <2 x float> } @_ZN6squishmlERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %51, ptr noundef nonnull align 4 dereferenceable(16) %44)
  %225 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %50, i32 0, i32 0
  %226 = extractvalue { <2 x float>, <2 x float> } %224, 0
  store <2 x float> %226, ptr %225, align 4
  %227 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %50, i32 0, i32 1
  %228 = extractvalue { <2 x float>, <2 x float> } %224, 1
  store <2 x float> %228, ptr %227, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %52) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %51) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %53) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %54) #6
  %229 = call { <2 x float>, <2 x float> } @_ZN6squish3MaxERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(16) %47)
  %230 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %54, i32 0, i32 0
  %231 = extractvalue { <2 x float>, <2 x float> } %229, 0
  store <2 x float> %231, ptr %230, align 4
  %232 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %54, i32 0, i32 1
  %233 = extractvalue { <2 x float>, <2 x float> } %229, 1
  store <2 x float> %233, ptr %232, align 4
  %234 = call { <2 x float>, <2 x float> } @_ZN6squish3MinERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(16) %54)
  %235 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %53, i32 0, i32 0
  %236 = extractvalue { <2 x float>, <2 x float> } %234, 0
  store <2 x float> %236, ptr %235, align 4
  %237 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %53, i32 0, i32 1
  %238 = extractvalue { <2 x float>, <2 x float> } %234, 1
  store <2 x float> %238, ptr %237, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %47, ptr align 4 %53, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %54) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %53) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %55) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %56) #6
  %239 = call { <2 x float>, <2 x float> } @_ZN6squish3MaxERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(16) %50)
  %240 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %56, i32 0, i32 0
  %241 = extractvalue { <2 x float>, <2 x float> } %239, 0
  store <2 x float> %241, ptr %240, align 4
  %242 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %56, i32 0, i32 1
  %243 = extractvalue { <2 x float>, <2 x float> } %239, 1
  store <2 x float> %243, ptr %242, align 4
  %244 = call { <2 x float>, <2 x float> } @_ZN6squish3MinERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(16) %56)
  %245 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %55, i32 0, i32 0
  %246 = extractvalue { <2 x float>, <2 x float> } %244, 0
  store <2 x float> %246, ptr %245, align 4
  %247 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %55, i32 0, i32 1
  %248 = extractvalue { <2 x float>, <2 x float> } %244, 1
  store <2 x float> %248, ptr %247, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %50, ptr align 4 %55, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %56) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %55) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %57) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %58) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %59) #6
  %249 = call { <2 x float>, <2 x float> } @_ZN6squish11MultiplyAddERKNS_4Vec4ES2_S2_(ptr noundef nonnull align 4 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(16) %47, ptr noundef nonnull align 4 dereferenceable(16) %12)
  %250 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %59, i32 0, i32 0
  %251 = extractvalue { <2 x float>, <2 x float> } %249, 0
  store <2 x float> %251, ptr %250, align 4
  %252 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %59, i32 0, i32 1
  %253 = extractvalue { <2 x float>, <2 x float> } %249, 1
  store <2 x float> %253, ptr %252, align 4
  %254 = call { <2 x float>, <2 x float> } @_ZN6squish8TruncateERKNS_4Vec4E(ptr noundef nonnull align 4 dereferenceable(16) %59)
  %255 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %58, i32 0, i32 0
  %256 = extractvalue { <2 x float>, <2 x float> } %254, 0
  store <2 x float> %256, ptr %255, align 4
  %257 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %58, i32 0, i32 1
  %258 = extractvalue { <2 x float>, <2 x float> } %254, 1
  store <2 x float> %258, ptr %257, align 4
  %259 = call { <2 x float>, <2 x float> } @_ZN6squishmlERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %58, ptr noundef nonnull align 4 dereferenceable(16) %14)
  %260 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %57, i32 0, i32 0
  %261 = extractvalue { <2 x float>, <2 x float> } %259, 0
  store <2 x float> %261, ptr %260, align 4
  %262 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %57, i32 0, i32 1
  %263 = extractvalue { <2 x float>, <2 x float> } %259, 1
  store <2 x float> %263, ptr %262, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %47, ptr align 4 %57, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %59) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %58) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %57) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %60) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %61) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %62) #6
  %264 = call { <2 x float>, <2 x float> } @_ZN6squish11MultiplyAddERKNS_4Vec4ES2_S2_(ptr noundef nonnull align 4 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(16) %50, ptr noundef nonnull align 4 dereferenceable(16) %12)
  %265 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %62, i32 0, i32 0
  %266 = extractvalue { <2 x float>, <2 x float> } %264, 0
  store <2 x float> %266, ptr %265, align 4
  %267 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %62, i32 0, i32 1
  %268 = extractvalue { <2 x float>, <2 x float> } %264, 1
  store <2 x float> %268, ptr %267, align 4
  %269 = call { <2 x float>, <2 x float> } @_ZN6squish8TruncateERKNS_4Vec4E(ptr noundef nonnull align 4 dereferenceable(16) %62)
  %270 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %61, i32 0, i32 0
  %271 = extractvalue { <2 x float>, <2 x float> } %269, 0
  store <2 x float> %271, ptr %270, align 4
  %272 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %61, i32 0, i32 1
  %273 = extractvalue { <2 x float>, <2 x float> } %269, 1
  store <2 x float> %273, ptr %272, align 4
  %274 = call { <2 x float>, <2 x float> } @_ZN6squishmlERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %61, ptr noundef nonnull align 4 dereferenceable(16) %14)
  %275 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %60, i32 0, i32 0
  %276 = extractvalue { <2 x float>, <2 x float> } %274, 0
  store <2 x float> %276, ptr %275, align 4
  %277 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %60, i32 0, i32 1
  %278 = extractvalue { <2 x float>, <2 x float> } %274, 1
  store <2 x float> %278, ptr %277, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %50, ptr align 4 %60, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %62) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %61) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %60) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %63) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %64) #6
  %279 = call { <2 x float>, <2 x float> } @_ZN6squishmlERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %47, ptr noundef nonnull align 4 dereferenceable(16) %47)
  %280 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %64, i32 0, i32 0
  %281 = extractvalue { <2 x float>, <2 x float> } %279, 0
  store <2 x float> %281, ptr %280, align 4
  %282 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %64, i32 0, i32 1
  %283 = extractvalue { <2 x float>, <2 x float> } %279, 1
  store <2 x float> %283, ptr %282, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %65) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %66) #6
  %284 = call { <2 x float>, <2 x float> } @_ZN6squishmlERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %50, ptr noundef nonnull align 4 dereferenceable(16) %50)
  %285 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %66, i32 0, i32 0
  %286 = extractvalue { <2 x float>, <2 x float> } %284, 0
  store <2 x float> %286, ptr %285, align 4
  %287 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %66, i32 0, i32 1
  %288 = extractvalue { <2 x float>, <2 x float> } %284, 1
  store <2 x float> %288, ptr %287, align 4
  %289 = call { <2 x float>, <2 x float> } @_ZN6squishmlERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %66, ptr noundef nonnull align 4 dereferenceable(16) %40)
  %290 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %65, i32 0, i32 0
  %291 = extractvalue { <2 x float>, <2 x float> } %289, 0
  store <2 x float> %291, ptr %290, align 4
  %292 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %65, i32 0, i32 1
  %293 = extractvalue { <2 x float>, <2 x float> } %289, 1
  store <2 x float> %293, ptr %292, align 4
  %294 = call { <2 x float>, <2 x float> } @_ZN6squish11MultiplyAddERKNS_4Vec4ES2_S2_(ptr noundef nonnull align 4 dereferenceable(16) %64, ptr noundef nonnull align 4 dereferenceable(16) %37, ptr noundef nonnull align 4 dereferenceable(16) %65)
  %295 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %63, i32 0, i32 0
  %296 = extractvalue { <2 x float>, <2 x float> } %294, 0
  store <2 x float> %296, ptr %295, align 4
  %297 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %63, i32 0, i32 1
  %298 = extractvalue { <2 x float>, <2 x float> } %294, 1
  store <2 x float> %298, ptr %297, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %66) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %65) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %64) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %67) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %68) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %69) #6
  %299 = call { <2 x float>, <2 x float> } @_ZN6squishmlERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %47, ptr noundef nonnull align 4 dereferenceable(16) %50)
  %300 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %69, i32 0, i32 0
  %301 = extractvalue { <2 x float>, <2 x float> } %299, 0
  store <2 x float> %301, ptr %300, align 4
  %302 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %69, i32 0, i32 1
  %303 = extractvalue { <2 x float>, <2 x float> } %299, 1
  store <2 x float> %303, ptr %302, align 4
  %304 = call { <2 x float>, <2 x float> } @_ZN6squishmlERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %69, ptr noundef nonnull align 4 dereferenceable(16) %41)
  %305 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %68, i32 0, i32 0
  %306 = extractvalue { <2 x float>, <2 x float> } %304, 0
  store <2 x float> %306, ptr %305, align 4
  %307 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %68, i32 0, i32 1
  %308 = extractvalue { <2 x float>, <2 x float> } %304, 1
  store <2 x float> %308, ptr %307, align 4
  %309 = call { <2 x float>, <2 x float> } @_ZN6squish24NegativeMultiplySubtractERKNS_4Vec4ES2_S2_(ptr noundef nonnull align 4 dereferenceable(16) %47, ptr noundef nonnull align 4 dereferenceable(16) %35, ptr noundef nonnull align 4 dereferenceable(16) %68)
  %310 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %67, i32 0, i32 0
  %311 = extractvalue { <2 x float>, <2 x float> } %309, 0
  store <2 x float> %311, ptr %310, align 4
  %312 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %67, i32 0, i32 1
  %313 = extractvalue { <2 x float>, <2 x float> } %309, 1
  store <2 x float> %313, ptr %312, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %69) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %68) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %70) #6
  %314 = call { <2 x float>, <2 x float> } @_ZN6squish24NegativeMultiplySubtractERKNS_4Vec4ES2_S2_(ptr noundef nonnull align 4 dereferenceable(16) %50, ptr noundef nonnull align 4 dereferenceable(16) %38, ptr noundef nonnull align 4 dereferenceable(16) %67)
  %315 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %70, i32 0, i32 0
  %316 = extractvalue { <2 x float>, <2 x float> } %314, 0
  store <2 x float> %316, ptr %315, align 4
  %317 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %70, i32 0, i32 1
  %318 = extractvalue { <2 x float>, <2 x float> } %314, 1
  store <2 x float> %318, ptr %317, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %71) #6
  %319 = call { <2 x float>, <2 x float> } @_ZN6squish11MultiplyAddERKNS_4Vec4ES2_S2_(ptr noundef nonnull align 4 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(16) %70, ptr noundef nonnull align 4 dereferenceable(16) %63)
  %320 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %71, i32 0, i32 0
  %321 = extractvalue { <2 x float>, <2 x float> } %319, 0
  store <2 x float> %321, ptr %320, align 4
  %322 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %71, i32 0, i32 1
  %323 = extractvalue { <2 x float>, <2 x float> } %319, 1
  store <2 x float> %323, ptr %322, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %72) #6
  %324 = getelementptr inbounds %"class.squish::ClusterFit", ptr %91, i32 0, i32 6
  %325 = call { <2 x float>, <2 x float> } @_ZN6squishmlERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %71, ptr noundef nonnull align 4 dereferenceable(16) %324)
  %326 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %72, i32 0, i32 0
  %327 = extractvalue { <2 x float>, <2 x float> } %325, 0
  store <2 x float> %327, ptr %326, align 4
  %328 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %72, i32 0, i32 1
  %329 = extractvalue { <2 x float>, <2 x float> } %325, 1
  store <2 x float> %329, ptr %328, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %73) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %74) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %75) #6
  %330 = call { <2 x float>, <2 x float> } @_ZNK6squish4Vec46SplatXEv(ptr noundef nonnull align 4 dereferenceable(16) %72)
  %331 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %75, i32 0, i32 0
  %332 = extractvalue { <2 x float>, <2 x float> } %330, 0
  store <2 x float> %332, ptr %331, align 4
  %333 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %75, i32 0, i32 1
  %334 = extractvalue { <2 x float>, <2 x float> } %330, 1
  store <2 x float> %334, ptr %333, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %76) #6
  %335 = call { <2 x float>, <2 x float> } @_ZNK6squish4Vec46SplatYEv(ptr noundef nonnull align 4 dereferenceable(16) %72)
  %336 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %76, i32 0, i32 0
  %337 = extractvalue { <2 x float>, <2 x float> } %335, 0
  store <2 x float> %337, ptr %336, align 4
  %338 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %76, i32 0, i32 1
  %339 = extractvalue { <2 x float>, <2 x float> } %335, 1
  store <2 x float> %339, ptr %338, align 4
  %340 = call { <2 x float>, <2 x float> } @_ZN6squishplERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %75, ptr noundef nonnull align 4 dereferenceable(16) %76)
  %341 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %74, i32 0, i32 0
  %342 = extractvalue { <2 x float>, <2 x float> } %340, 0
  store <2 x float> %342, ptr %341, align 4
  %343 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %74, i32 0, i32 1
  %344 = extractvalue { <2 x float>, <2 x float> } %340, 1
  store <2 x float> %344, ptr %343, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %77) #6
  %345 = call { <2 x float>, <2 x float> } @_ZNK6squish4Vec46SplatZEv(ptr noundef nonnull align 4 dereferenceable(16) %72)
  %346 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %77, i32 0, i32 0
  %347 = extractvalue { <2 x float>, <2 x float> } %345, 0
  store <2 x float> %347, ptr %346, align 4
  %348 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %77, i32 0, i32 1
  %349 = extractvalue { <2 x float>, <2 x float> } %345, 1
  store <2 x float> %349, ptr %348, align 4
  %350 = call { <2 x float>, <2 x float> } @_ZN6squishplERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %74, ptr noundef nonnull align 4 dereferenceable(16) %77)
  %351 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %73, i32 0, i32 0
  %352 = extractvalue { <2 x float>, <2 x float> } %350, 0
  store <2 x float> %352, ptr %351, align 4
  %353 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %73, i32 0, i32 1
  %354 = extractvalue { <2 x float>, <2 x float> } %350, 1
  store <2 x float> %354, ptr %353, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %77) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %76) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %75) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %74) #6
  %355 = call noundef zeroext i1 @_ZN6squish18CompareAnyLessThanERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %73, ptr noundef nonnull align 4 dereferenceable(16) %17)
  br i1 %355, label %356, label %361

356:                                              ; preds = %122
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %47, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %50, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %73, i64 16, i1 false), !tbaa.struct !13
  %357 = load i32, ptr %25, align 4, !tbaa !12
  store i32 %357, ptr %20, align 4, !tbaa !12
  %358 = load i32, ptr %28, align 4, !tbaa !12
  store i32 %358, ptr %21, align 4, !tbaa !12
  %359 = load i32, ptr %31, align 4, !tbaa !12
  store i32 %359, ptr %22, align 4, !tbaa !12
  %360 = load i32, ptr %23, align 4, !tbaa !12
  store i32 %360, ptr %19, align 4, !tbaa !12
  br label %361

361:                                              ; preds = %356, %122
  %362 = load i32, ptr %31, align 4, !tbaa !12
  %363 = load i32, ptr %5, align 4, !tbaa !12
  %364 = icmp eq i32 %362, %363
  br i1 %364, label %365, label %366

365:                                              ; preds = %361
  store i32 9, ptr %26, align 4
  br label %374

366:                                              ; preds = %361
  %367 = getelementptr inbounds %"class.squish::ClusterFit", ptr %91, i32 0, i32 4
  %368 = load i32, ptr %31, align 4, !tbaa !12
  %369 = sext i32 %368 to i64
  %370 = getelementptr inbounds [16 x %"class.squish::Vec4"], ptr %367, i64 0, i64 %369
  %371 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN6squish4Vec4pLERKS0_(ptr noundef nonnull align 4 dereferenceable(16) %29, ptr noundef nonnull align 4 dereferenceable(16) %370)
  %372 = load i32, ptr %31, align 4, !tbaa !12
  %373 = add nsw i32 %372, 1
  store i32 %373, ptr %31, align 4, !tbaa !12
  store i32 0, ptr %26, align 4
  br label %374

374:                                              ; preds = %366, %365
  call void @llvm.lifetime.end.p0(i64 16, ptr %73) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %72) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %71) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %70) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %67) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %63) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %50) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %47) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #6
  %375 = load i32, ptr %26, align 4
  switch i32 %375, label %377 [
    i32 0, label %376
  ]

376:                                              ; preds = %374
  br label %122, !llvm.loop !16

377:                                              ; preds = %374
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  br label %378

378:                                              ; preds = %377
  %379 = load i32, ptr %28, align 4, !tbaa !12
  %380 = load i32, ptr %5, align 4, !tbaa !12
  %381 = icmp eq i32 %379, %380
  br i1 %381, label %382, label %383

382:                                              ; preds = %378
  store i32 7, ptr %26, align 4
  br label %391

383:                                              ; preds = %378
  %384 = getelementptr inbounds %"class.squish::ClusterFit", ptr %91, i32 0, i32 4
  %385 = load i32, ptr %28, align 4, !tbaa !12
  %386 = sext i32 %385 to i64
  %387 = getelementptr inbounds [16 x %"class.squish::Vec4"], ptr %384, i64 0, i64 %386
  %388 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN6squish4Vec4pLERKS0_(ptr noundef nonnull align 4 dereferenceable(16) %27, ptr noundef nonnull align 4 dereferenceable(16) %387)
  %389 = load i32, ptr %28, align 4, !tbaa !12
  %390 = add nsw i32 %389, 1
  store i32 %390, ptr %28, align 4, !tbaa !12
  store i32 0, ptr %26, align 4
  br label %391

391:                                              ; preds = %383, %382
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #6
  %392 = load i32, ptr %26, align 4
  switch i32 %392, label %394 [
    i32 0, label %393
  ]

393:                                              ; preds = %391
  br label %106, !llvm.loop !18

394:                                              ; preds = %391
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  br label %395

395:                                              ; preds = %394
  %396 = getelementptr inbounds %"class.squish::ClusterFit", ptr %91, i32 0, i32 4
  %397 = load i32, ptr %25, align 4, !tbaa !12
  %398 = sext i32 %397 to i64
  %399 = getelementptr inbounds [16 x %"class.squish::Vec4"], ptr %396, i64 0, i64 %398
  %400 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN6squish4Vec4pLERKS0_(ptr noundef nonnull align 4 dereferenceable(16) %24, ptr noundef nonnull align 4 dereferenceable(16) %399)
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #6
  br label %401

401:                                              ; preds = %395
  %402 = load i32, ptr %25, align 4, !tbaa !12
  %403 = add nsw i32 %402, 1
  store i32 %403, ptr %25, align 4, !tbaa !12
  br label %99, !llvm.loop !19

404:                                              ; preds = %103
  %405 = load i32, ptr %19, align 4, !tbaa !12
  %406 = load i32, ptr %23, align 4, !tbaa !12
  %407 = icmp ne i32 %405, %406
  br i1 %407, label %408, label %409

408:                                              ; preds = %404
  store i32 2, ptr %26, align 4
  br label %429

409:                                              ; preds = %404
  %410 = load i32, ptr %23, align 4, !tbaa !12
  %411 = add nsw i32 %410, 1
  store i32 %411, ptr %23, align 4, !tbaa !12
  %412 = load i32, ptr %23, align 4, !tbaa !12
  %413 = getelementptr inbounds %"class.squish::ClusterFit", ptr %91, i32 0, i32 1
  %414 = load i32, ptr %413, align 4, !tbaa !20
  %415 = icmp eq i32 %412, %414
  br i1 %415, label %416, label %417

416:                                              ; preds = %409
  store i32 2, ptr %26, align 4
  br label %429

417:                                              ; preds = %409
  call void @llvm.lifetime.start.p0(i64 12, ptr %78) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %79) #6
  %418 = call { <2 x float>, <2 x float> } @_ZN6squishmiERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %16, ptr noundef nonnull align 4 dereferenceable(16) %15)
  %419 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %79, i32 0, i32 0
  %420 = extractvalue { <2 x float>, <2 x float> } %418, 0
  store <2 x float> %420, ptr %419, align 4
  %421 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %79, i32 0, i32 1
  %422 = extractvalue { <2 x float>, <2 x float> } %418, 1
  store <2 x float> %422, ptr %421, align 4
  %423 = call { <2 x float>, float } @_ZNK6squish4Vec47GetVec3Ev(ptr noundef nonnull align 4 dereferenceable(16) %79)
  store { <2 x float>, float } %423, ptr %80, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %78, ptr align 8 %80, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 16, ptr %79) #6
  %424 = load i32, ptr %23, align 4, !tbaa !12
  %425 = call noundef zeroext i1 @_ZN6squish10ClusterFit17ConstructOrderingERKNS_4Vec3Ei(ptr noundef nonnull align 8 dereferenceable(468) %91, ptr noundef nonnull align 4 dereferenceable(12) %78, i32 noundef %424)
  br i1 %425, label %427, label %426

426:                                              ; preds = %417
  store i32 2, ptr %26, align 4
  br label %428

427:                                              ; preds = %417
  store i32 0, ptr %26, align 4
  br label %428

428:                                              ; preds = %427, %426
  call void @llvm.lifetime.end.p0(i64 12, ptr %78) #6
  br label %429

429:                                              ; preds = %428, %416, %408
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #6
  %430 = load i32, ptr %26, align 4
  switch i32 %430, label %432 [
    i32 0, label %431
  ]

431:                                              ; preds = %429
  br label %98, !llvm.loop !24

432:                                              ; preds = %429
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %433

433:                                              ; preds = %432
  %434 = getelementptr inbounds %"class.squish::ClusterFit", ptr %91, i32 0, i32 7
  %435 = call noundef zeroext i1 @_ZN6squish18CompareAnyLessThanERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %17, ptr noundef nonnull align 4 dereferenceable(16) %434)
  br i1 %435, label %436, label %523

436:                                              ; preds = %433
  call void @llvm.lifetime.start.p0(i64 8, ptr %81) #6
  %437 = getelementptr inbounds %"class.squish::ClusterFit", ptr %91, i32 0, i32 3
  %438 = getelementptr inbounds [128 x i8], ptr %437, i64 0, i64 0
  %439 = load i32, ptr %19, align 4, !tbaa !12
  %440 = mul nsw i32 16, %439
  %441 = sext i32 %440 to i64
  %442 = getelementptr inbounds i8, ptr %438, i64 %441
  store ptr %442, ptr %81, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %82) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %83) #6
  store i32 0, ptr %83, align 4, !tbaa !12
  br label %443

443:                                              ; preds = %456, %436
  %444 = load i32, ptr %83, align 4, !tbaa !12
  %445 = load i32, ptr %20, align 4, !tbaa !12
  %446 = icmp slt i32 %444, %445
  br i1 %446, label %448, label %447

447:                                              ; preds = %443
  store i32 11, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %83) #6
  br label %459

448:                                              ; preds = %443
  %449 = load ptr, ptr %81, align 8, !tbaa !5
  %450 = load i32, ptr %83, align 4, !tbaa !12
  %451 = sext i32 %450 to i64
  %452 = getelementptr inbounds i8, ptr %449, i64 %451
  %453 = load i8, ptr %452, align 1, !tbaa !25
  %454 = zext i8 %453 to i64
  %455 = getelementptr inbounds [16 x i8], ptr %82, i64 0, i64 %454
  store i8 0, ptr %455, align 1, !tbaa !25
  br label %456

456:                                              ; preds = %448
  %457 = load i32, ptr %83, align 4, !tbaa !12
  %458 = add nsw i32 %457, 1
  store i32 %458, ptr %83, align 4, !tbaa !12
  br label %443, !llvm.loop !26

459:                                              ; preds = %447
  call void @llvm.lifetime.start.p0(i64 4, ptr %84) #6
  %460 = load i32, ptr %20, align 4, !tbaa !12
  store i32 %460, ptr %84, align 4, !tbaa !12
  br label %461

461:                                              ; preds = %474, %459
  %462 = load i32, ptr %84, align 4, !tbaa !12
  %463 = load i32, ptr %21, align 4, !tbaa !12
  %464 = icmp slt i32 %462, %463
  br i1 %464, label %466, label %465

465:                                              ; preds = %461
  store i32 14, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %84) #6
  br label %477

466:                                              ; preds = %461
  %467 = load ptr, ptr %81, align 8, !tbaa !5
  %468 = load i32, ptr %84, align 4, !tbaa !12
  %469 = sext i32 %468 to i64
  %470 = getelementptr inbounds i8, ptr %467, i64 %469
  %471 = load i8, ptr %470, align 1, !tbaa !25
  %472 = zext i8 %471 to i64
  %473 = getelementptr inbounds [16 x i8], ptr %82, i64 0, i64 %472
  store i8 2, ptr %473, align 1, !tbaa !25
  br label %474

474:                                              ; preds = %466
  %475 = load i32, ptr %84, align 4, !tbaa !12
  %476 = add nsw i32 %475, 1
  store i32 %476, ptr %84, align 4, !tbaa !12
  br label %461, !llvm.loop !27

477:                                              ; preds = %465
  call void @llvm.lifetime.start.p0(i64 4, ptr %85) #6
  %478 = load i32, ptr %21, align 4, !tbaa !12
  store i32 %478, ptr %85, align 4, !tbaa !12
  br label %479

479:                                              ; preds = %492, %477
  %480 = load i32, ptr %85, align 4, !tbaa !12
  %481 = load i32, ptr %22, align 4, !tbaa !12
  %482 = icmp slt i32 %480, %481
  br i1 %482, label %484, label %483

483:                                              ; preds = %479
  store i32 17, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %85) #6
  br label %495

484:                                              ; preds = %479
  %485 = load ptr, ptr %81, align 8, !tbaa !5
  %486 = load i32, ptr %85, align 4, !tbaa !12
  %487 = sext i32 %486 to i64
  %488 = getelementptr inbounds i8, ptr %485, i64 %487
  %489 = load i8, ptr %488, align 1, !tbaa !25
  %490 = zext i8 %489 to i64
  %491 = getelementptr inbounds [16 x i8], ptr %82, i64 0, i64 %490
  store i8 3, ptr %491, align 1, !tbaa !25
  br label %492

492:                                              ; preds = %484
  %493 = load i32, ptr %85, align 4, !tbaa !12
  %494 = add nsw i32 %493, 1
  store i32 %494, ptr %85, align 4, !tbaa !12
  br label %479, !llvm.loop !28

495:                                              ; preds = %483
  call void @llvm.lifetime.start.p0(i64 4, ptr %86) #6
  %496 = load i32, ptr %22, align 4, !tbaa !12
  store i32 %496, ptr %86, align 4, !tbaa !12
  br label %497

497:                                              ; preds = %510, %495
  %498 = load i32, ptr %86, align 4, !tbaa !12
  %499 = load i32, ptr %5, align 4, !tbaa !12
  %500 = icmp slt i32 %498, %499
  br i1 %500, label %502, label %501

501:                                              ; preds = %497
  store i32 20, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %86) #6
  br label %513

502:                                              ; preds = %497
  %503 = load ptr, ptr %81, align 8, !tbaa !5
  %504 = load i32, ptr %86, align 4, !tbaa !12
  %505 = sext i32 %504 to i64
  %506 = getelementptr inbounds i8, ptr %503, i64 %505
  %507 = load i8, ptr %506, align 1, !tbaa !25
  %508 = zext i8 %507 to i64
  %509 = getelementptr inbounds [16 x i8], ptr %82, i64 0, i64 %508
  store i8 1, ptr %509, align 1, !tbaa !25
  br label %510

510:                                              ; preds = %502
  %511 = load i32, ptr %86, align 4, !tbaa !12
  %512 = add nsw i32 %511, 1
  store i32 %512, ptr %86, align 4, !tbaa !12
  br label %497, !llvm.loop !29

513:                                              ; preds = %501
  %514 = getelementptr inbounds %"class.squish::ColourFit", ptr %91, i32 0, i32 1
  %515 = load ptr, ptr %514, align 8, !tbaa !9
  %516 = getelementptr inbounds [16 x i8], ptr %82, i64 0, i64 0
  %517 = getelementptr inbounds [16 x i8], ptr %18, i64 0, i64 0
  call void @_ZNK6squish9ColourSet12RemapIndicesEPKhPh(ptr noundef nonnull align 4 dereferenceable(325) %515, ptr noundef %516, ptr noundef %517)
  call void @llvm.lifetime.start.p0(i64 12, ptr %87) #6
  %518 = call { <2 x float>, float } @_ZNK6squish4Vec47GetVec3Ev(ptr noundef nonnull align 4 dereferenceable(16) %15)
  store { <2 x float>, float } %518, ptr %88, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %87, ptr align 8 %88, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %89) #6
  %519 = call { <2 x float>, float } @_ZNK6squish4Vec47GetVec3Ev(ptr noundef nonnull align 4 dereferenceable(16) %16)
  store { <2 x float>, float } %519, ptr %90, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %89, ptr align 8 %90, i64 12, i1 false)
  %520 = getelementptr inbounds [16 x i8], ptr %18, i64 0, i64 0
  %521 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN6squish17WriteColourBlock4ERKNS_4Vec3ES2_PKhPv(ptr noundef nonnull align 4 dereferenceable(12) %87, ptr noundef nonnull align 4 dereferenceable(12) %89, ptr noundef %520, ptr noundef %521)
  call void @llvm.lifetime.end.p0(i64 12, ptr %89) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %87) #6
  %522 = getelementptr inbounds %"class.squish::ClusterFit", ptr %91, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %522, ptr align 4 %17, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %82) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %81) #6
  br label %523

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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 = { "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 = { 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 = !{i64 0, i64 4, !14, i64 4, i64 4, !14, i64 8, i64 4, !14, i64 12, i64 4, !14}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = !{!21, !11, i64 20}
!21 = !{!"_ZTSN6squish10ClusterFitE", !10, i64 0, !11, i64 20, !22, i64 24, !7, i64 36, !7, i64 164, !23, i64 420, !23, i64 436, !23, i64 452}
!22 = !{!"_ZTSN6squish4Vec3E", !15, i64 0, !15, i64 4, !15, i64 8}
!23 = !{!"_ZTSN6squish4Vec4E", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!24 = distinct !{!24, !17}
!25 = !{!7, !7, i64 0}
!26 = distinct !{!26, !17}
!27 = distinct !{!27, !17}
!28 = distinct !{!28, !17}
!29 = distinct !{!29, !17}


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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6squish10ClusterFit17ConstructOrderingERKNS_4Vec3Ei(ptr noundef nonnull align 8 dereferenceable(468), ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) local_unnamed_addr #3 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6squish10ClusterFit9Compress4EPv(ptr noundef nonnull align 8 dereferenceable(468) %0, ptr noundef %1) unnamed_addr #3 align 2 {
  %3 = alloca %"class.squish::Vec4", align 4
  %4 = alloca %"class.squish::Vec4", align 4
  %5 = alloca %"class.squish::Vec4", align 4
  %6 = alloca %"class.squish::Vec4", align 4
  %7 = alloca %"class.squish::Vec4", align 4
  %8 = alloca %"class.squish::Vec4", align 4
  %9 = alloca %"class.squish::Vec4", align 4
  %10 = alloca %"class.squish::Vec4", align 4
  %11 = alloca %"class.squish::Vec4", align 4
  %12 = alloca %"class.squish::Vec4", align 4
  %13 = alloca %"class.squish::Vec4", align 4
  %14 = alloca %"class.squish::Vec4", align 4
  %15 = alloca [16 x i8], align 16
  %16 = alloca %"class.squish::Vec4", align 4
  %17 = alloca %"class.squish::Vec4", align 4
  %18 = alloca %"class.squish::Vec4", align 4
  %19 = alloca %"class.squish::Vec4", align 8
  %20 = alloca %"class.squish::Vec4", align 8
  %21 = alloca %"class.squish::Vec4", align 8
  %22 = alloca %"class.squish::Vec4", align 8
  %23 = alloca %"class.squish::Vec4", align 8
  %24 = alloca %"class.squish::Vec4", align 8
  %25 = alloca %"class.squish::Vec4", align 8
  %26 = alloca %"class.squish::Vec4", align 8
  %27 = alloca %"class.squish::Vec4", align 8
  %28 = alloca %"class.squish::Vec4", align 8
  %29 = alloca %"class.squish::Vec4", align 8
  %30 = alloca %"class.squish::Vec4", align 8
  %31 = alloca %"class.squish::Vec4", align 8
  %32 = alloca %"class.squish::Vec4", align 8
  %33 = alloca %"class.squish::Vec4", align 8
  %34 = alloca %"class.squish::Vec4", align 8
  %35 = alloca %"class.squish::Vec4", align 8
  %36 = alloca %"class.squish::Vec4", align 8
  %37 = alloca %"class.squish::Vec4", align 8
  %38 = alloca %"class.squish::Vec4", align 8
  %39 = alloca %"class.squish::Vec4", align 8
  %40 = alloca %"class.squish::Vec4", align 8
  %41 = alloca %"class.squish::Vec4", align 8
  %42 = alloca %"class.squish::Vec4", align 8
  %43 = alloca %"class.squish::Vec4", align 8
  %44 = alloca %"class.squish::Vec4", align 8
  %45 = alloca %"class.squish::Vec4", align 8
  %46 = alloca %"class.squish::Vec4", align 8
  %47 = alloca %"class.squish::Vec4", align 8
  %48 = alloca %"class.squish::Vec4", align 8
  %49 = alloca %"class.squish::Vec4", align 8
  %50 = alloca %"class.squish::Vec4", align 8
  %51 = alloca %"class.squish::Vec4", align 8
  %52 = alloca %"class.squish::Vec4", align 8
  %53 = alloca %"class.squish::Vec4", align 8
  %54 = alloca %"class.squish::Vec4", align 8
  %55 = alloca %"class.squish::Vec4", align 8
  %56 = alloca %"class.squish::Vec4", align 8
  %57 = alloca %"class.squish::Vec4", align 8
  %58 = alloca %"class.squish::Vec4", align 8
  %59 = alloca %"class.squish::Vec4", align 8
  %60 = alloca %"class.squish::Vec4", align 8
  %61 = alloca %"class.squish::Vec3", align 8
  %62 = alloca %"class.squish::Vec4", align 8
  %63 = alloca [16 x i8], align 16
  %64 = alloca %"class.squish::Vec3", align 8
  %65 = alloca %"class.squish::Vec3", align 8
  %66 = getelementptr inbounds i8, ptr %0, i64 8
  %67 = load ptr, ptr %66, align 8, !tbaa !5
  %68 = tail call noundef i32 @_ZNK6squish9ColourSet8GetCountEv(ptr noundef nonnull align 4 dereferenceable(325) %67)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #7
  call void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 4 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 4 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 4 dereferenceable(16) %5, float noundef 0x3FD5555560000000, float noundef 0x3FD5555560000000, float noundef 0x3FD5555560000000, float noundef 0x3FBC71C720000000)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #7
  call void @_ZN6squish4Vec4C2Effff(ptr noundef nonnull align 4 dereferenceable(16) %6, float noundef 0x3FE5555560000000, float noundef 0x3FE5555560000000, float noundef 0x3FE5555560000000, float noundef 0x3FDC71C720000000)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  call void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 4 dereferenceable(16) %7, float noundef 0x3FCC71C720000000)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  call void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 4 dereferenceable(16) %8, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  call void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 4 dereferenceable(16) %9, float noundef 5.000000e-01)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #7
  call void @_ZN6squish4Vec4C2Effff(ptr noundef nonnull align 4 dereferenceable(16) %10, 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 %11) #7
  call void @_ZN6squish4Vec4C2Effff(ptr noundef nonnull align 4 dereferenceable(16) %11, float noundef 0x3FA0842100000000, float noundef 0x3F90410420000000, float noundef 0x3FA0842100000000, float noundef 0.000000e+00)
  %69 = getelementptr inbounds i8, ptr %0, i64 24
  %70 = call noundef zeroext i1 @_ZN6squish10ClusterFit17ConstructOrderingERKNS_4Vec3Ei(ptr noundef nonnull align 8 dereferenceable(468) %0, ptr noundef nonnull align 4 dereferenceable(12) %69, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #7
  call void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 4 dereferenceable(16) %12, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  call void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 4 dereferenceable(16) %13, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #7
  %71 = getelementptr inbounds i8, ptr %0, i64 452
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(16) %71, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #7
  %72 = icmp sgt i32 %68, 0
  %73 = getelementptr inbounds i8, ptr %0, i64 164
  %74 = getelementptr inbounds i8, ptr %0, i64 420
  %75 = getelementptr inbounds i8, ptr %21, i64 8
  %76 = getelementptr inbounds i8, ptr %20, i64 8
  %77 = getelementptr inbounds i8, ptr %19, i64 8
  %78 = getelementptr inbounds i8, ptr %23, i64 8
  %79 = getelementptr inbounds i8, ptr %22, i64 8
  %80 = getelementptr inbounds i8, ptr %24, i64 8
  %81 = getelementptr inbounds i8, ptr %26, i64 8
  %82 = getelementptr inbounds i8, ptr %25, i64 8
  %83 = getelementptr inbounds i8, ptr %27, i64 8
  %84 = getelementptr inbounds i8, ptr %30, i64 8
  %85 = getelementptr inbounds i8, ptr %29, i64 8
  %86 = getelementptr inbounds i8, ptr %28, i64 8
  %87 = getelementptr inbounds i8, ptr %33, i64 8
  %88 = getelementptr inbounds i8, ptr %32, i64 8
  %89 = getelementptr inbounds i8, ptr %31, i64 8
  %90 = getelementptr inbounds i8, ptr %36, i64 8
  %91 = getelementptr inbounds i8, ptr %35, i64 8
  %92 = getelementptr inbounds i8, ptr %34, i64 8
  %93 = getelementptr inbounds i8, ptr %39, i64 8
  %94 = getelementptr inbounds i8, ptr %38, i64 8
  %95 = getelementptr inbounds i8, ptr %37, i64 8
  %96 = getelementptr inbounds i8, ptr %40, i64 8
  %97 = getelementptr inbounds i8, ptr %41, i64 8
  %98 = getelementptr inbounds i8, ptr %43, i64 8
  %99 = getelementptr inbounds i8, ptr %42, i64 8
  %100 = getelementptr inbounds i8, ptr %45, i64 8
  %101 = getelementptr inbounds i8, ptr %44, i64 8
  %102 = getelementptr inbounds i8, ptr %47, i64 8
  %103 = getelementptr inbounds i8, ptr %49, i64 8
  %104 = getelementptr inbounds i8, ptr %48, i64 8
  %105 = getelementptr inbounds i8, ptr %46, i64 8
  %106 = getelementptr inbounds i8, ptr %52, i64 8
  %107 = getelementptr inbounds i8, ptr %51, i64 8
  %108 = getelementptr inbounds i8, ptr %50, i64 8
  %109 = getelementptr inbounds i8, ptr %53, i64 8
  %110 = getelementptr inbounds i8, ptr %54, i64 8
  %111 = getelementptr inbounds i8, ptr %0, i64 436
  %112 = getelementptr inbounds i8, ptr %55, i64 8
  %113 = getelementptr inbounds i8, ptr %58, i64 8
  %114 = getelementptr inbounds i8, ptr %59, i64 8
  %115 = getelementptr inbounds i8, ptr %57, i64 8
  %116 = getelementptr inbounds i8, ptr %60, i64 8
  %117 = getelementptr inbounds i8, ptr %56, i64 8
  %118 = getelementptr inbounds i8, ptr %0, i64 20
  %119 = getelementptr inbounds i8, ptr %62, i64 8
  %.sroa.224.0..sroa_idx = getelementptr inbounds i8, ptr %61, i64 8
  %120 = zext i32 %68 to i64
  br label %121

121:                                              ; preds = %292, %2
  %.090 = phi i32 [ 0, %2 ], [ %283, %292 ]
  %.081 = phi i32 [ 0, %2 ], [ %.182.lcssa, %292 ]
  %.076 = phi i32 [ 0, %2 ], [ %.177.lcssa, %292 ]
  %.071 = phi i32 [ 0, %2 ], [ %.172.lcssa, %292 ]
  %.0 = phi i32 [ 0, %2 ], [ %.090, %292 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #7
  call void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 4 dereferenceable(16) %16, float noundef 0.000000e+00)
  br i1 %72, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %279, %121
  %.182.lcssa = phi i32 [ %.081, %121 ], [ %.485, %279 ]
  %.177.lcssa = phi i32 [ %.076, %121 ], [ %.480, %279 ]
  %.172.lcssa = phi i32 [ %.071, %121 ], [ %.475, %279 ]
  %.1.lcssa = phi i32 [ %.0, %121 ], [ %.4, %279 ]
  %.not = icmp eq i32 %.1.lcssa, %.090
  br i1 %.not, label %282, label %293

.lr.ph:                                           ; preds = %121, %279
  %indvars.iv = phi i64 [ %indvars.iv.next, %279 ], [ 0, %121 ]
  %.1120 = phi i32 [ %.4, %279 ], [ %.0, %121 ]
  %.172119 = phi i32 [ %.475, %279 ], [ %.071, %121 ]
  %.177118 = phi i32 [ %.480, %279 ], [ %.076, %121 ]
  %.182117 = phi i32 [ %.485, %279 ], [ %.081, %121 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #7
  call void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 4 dereferenceable(16) %17, float noundef 0.000000e+00)
  %122 = trunc nuw nsw i64 %indvars.iv to i32
  br label %123

123:                                              ; preds = %276, %.lr.ph
  %indvars.iv134 = phi i64 [ %indvars.iv.next135, %276 ], [ %indvars.iv, %.lr.ph ]
  %.283 = phi i32 [ %.485, %276 ], [ %.182117, %.lr.ph ]
  %.278 = phi i32 [ %.480, %276 ], [ %.177118, %.lr.ph ]
  %.273 = phi i32 [ %.475, %276 ], [ %.172119, %.lr.ph ]
  %.2 = phi i32 [ %.4, %276 ], [ %.1120, %.lr.ph ]
  %umax = call i64 @llvm.umax.i64(i64 %indvars.iv134, i64 1)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #7
  %124 = icmp eq i64 %indvars.iv134, 0
  br i1 %124, label %125, label %126

125:                                              ; preds = %123
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %18, ptr noundef nonnull align 4 dereferenceable(16) %73, i64 16, i1 false), !tbaa.struct !11
  br label %127

126:                                              ; preds = %123
  call void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 4 dereferenceable(16) %18, float noundef 0.000000e+00)
  br label %127

127:                                              ; preds = %126, %125
  %128 = trunc nuw nsw i64 %indvars.iv134 to i32
  br label %129

129:                                              ; preds = %272, %127
  %indvars.iv136 = phi i64 [ %indvars.iv.next137, %272 ], [ %umax, %127 ]
  %.384 = phi i32 [ %.485, %272 ], [ %.283, %127 ]
  %.379 = phi i32 [ %.480, %272 ], [ %.278, %127 ]
  %.374 = phi i32 [ %.475, %272 ], [ %.273, %127 ]
  %.3 = phi i32 [ %.4, %272 ], [ %.2, %127 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #7
  %130 = call { <2 x float>, <2 x float> } @_ZN6squishmiERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %74, ptr noundef nonnull align 4 dereferenceable(16) %18)
  %131 = extractvalue { <2 x float>, <2 x float> } %130, 0
  store <2 x float> %131, ptr %21, align 8
  %132 = extractvalue { <2 x float>, <2 x float> } %130, 1
  store <2 x float> %132, ptr %75, align 8
  %133 = call { <2 x float>, <2 x float> } @_ZN6squishmiERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %21, ptr noundef nonnull align 4 dereferenceable(16) %17)
  %134 = extractvalue { <2 x float>, <2 x float> } %133, 0
  store <2 x float> %134, ptr %20, align 8
  %135 = extractvalue { <2 x float>, <2 x float> } %133, 1
  store <2 x float> %135, ptr %76, align 8
  %136 = call { <2 x float>, <2 x float> } @_ZN6squishmiERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %20, ptr noundef nonnull align 4 dereferenceable(16) %16)
  %137 = extractvalue { <2 x float>, <2 x float> } %136, 0
  store <2 x float> %137, ptr %19, align 8
  %138 = extractvalue { <2 x float>, <2 x float> } %136, 1
  store <2 x float> %138, ptr %77, align 8
  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.start.p0(i64 16, ptr nonnull %22) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #7
  %139 = call { <2 x float>, <2 x float> } @_ZN6squish11MultiplyAddERKNS_4Vec4ES2_S2_(ptr noundef nonnull align 4 dereferenceable(16) %17, ptr noundef nonnull align 4 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(16) %16)
  %140 = extractvalue { <2 x float>, <2 x float> } %139, 0
  store <2 x float> %140, ptr %23, align 8
  %141 = extractvalue { <2 x float>, <2 x float> } %139, 1
  store <2 x float> %141, ptr %78, align 8
  %142 = call { <2 x float>, <2 x float> } @_ZN6squish11MultiplyAddERKNS_4Vec4ES2_S2_(ptr noundef nonnull align 4 dereferenceable(16) %18, ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(16) %23)
  %143 = extractvalue { <2 x float>, <2 x float> } %142, 0
  store <2 x float> %143, ptr %22, align 8
  %144 = extractvalue { <2 x float>, <2 x float> } %142, 1
  store <2 x float> %144, ptr %79, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #7
  %145 = call { <2 x float>, <2 x float> } @_ZNK6squish4Vec46SplatWEv(ptr noundef nonnull align 4 dereferenceable(16) %22)
  %146 = extractvalue { <2 x float>, <2 x float> } %145, 0
  store <2 x float> %146, ptr %24, align 8
  %147 = extractvalue { <2 x float>, <2 x float> } %145, 1
  store <2 x float> %147, ptr %80, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %25) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %26) #7
  %148 = call { <2 x float>, <2 x float> } @_ZN6squish11MultiplyAddERKNS_4Vec4ES2_S2_(ptr noundef nonnull align 4 dereferenceable(16) %18, ptr noundef nonnull align 4 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(16) %19)
  %149 = extractvalue { <2 x float>, <2 x float> } %148, 0
  store <2 x float> %149, ptr %26, align 8
  %150 = extractvalue { <2 x float>, <2 x float> } %148, 1
  store <2 x float> %150, ptr %81, align 8
  %151 = call { <2 x float>, <2 x float> } @_ZN6squish11MultiplyAddERKNS_4Vec4ES2_S2_(ptr noundef nonnull align 4 dereferenceable(16) %17, ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(16) %26)
  %152 = extractvalue { <2 x float>, <2 x float> } %151, 0
  store <2 x float> %152, ptr %25, align 8
  %153 = extractvalue { <2 x float>, <2 x float> } %151, 1
  store <2 x float> %153, ptr %82, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %26) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %27) #7
  %154 = call { <2 x float>, <2 x float> } @_ZNK6squish4Vec46SplatWEv(ptr noundef nonnull align 4 dereferenceable(16) %25)
  %155 = extractvalue { <2 x float>, <2 x float> } %154, 0
  store <2 x float> %155, ptr %27, align 8
  %156 = extractvalue { <2 x float>, <2 x float> } %154, 1
  store <2 x float> %156, ptr %83, align 8
  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 @llvm.lifetime.start.p0(i64 16, ptr nonnull %30) #7
  %157 = call { <2 x float>, <2 x float> } @_ZN6squishplERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %17, ptr noundef nonnull align 4 dereferenceable(16) %18)
  %158 = extractvalue { <2 x float>, <2 x float> } %157, 0
  store <2 x float> %158, ptr %30, align 8
  %159 = extractvalue { <2 x float>, <2 x float> } %157, 1
  store <2 x float> %159, ptr %84, align 8
  %160 = call { <2 x float>, <2 x float> } @_ZNK6squish4Vec46SplatWEv(ptr noundef nonnull align 4 dereferenceable(16) %30)
  %161 = extractvalue { <2 x float>, <2 x float> } %160, 0
  store <2 x float> %161, ptr %29, align 8
  %162 = extractvalue { <2 x float>, <2 x float> } %160, 1
  store <2 x float> %162, ptr %85, align 8
  %163 = call { <2 x float>, <2 x float> } @_ZN6squishmlERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(16) %29)
  %164 = extractvalue { <2 x float>, <2 x float> } %163, 0
  store <2 x float> %164, ptr %28, align 8
  %165 = extractvalue { <2 x float>, <2 x float> } %163, 1
  store <2 x float> %165, ptr %86, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %30) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %29) #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 @llvm.lifetime.start.p0(i64 16, ptr nonnull %33) #7
  %166 = call { <2 x float>, <2 x float> } @_ZN6squishmlERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %24, ptr noundef nonnull align 4 dereferenceable(16) %27)
  %167 = extractvalue { <2 x float>, <2 x float> } %166, 0
  store <2 x float> %167, ptr %33, align 8
  %168 = extractvalue { <2 x float>, <2 x float> } %166, 1
  store <2 x float> %168, ptr %87, align 8
  %169 = call { <2 x float>, <2 x float> } @_ZN6squish24NegativeMultiplySubtractERKNS_4Vec4ES2_S2_(ptr noundef nonnull align 4 dereferenceable(16) %28, ptr noundef nonnull align 4 dereferenceable(16) %28, ptr noundef nonnull align 4 dereferenceable(16) %33)
  %170 = extractvalue { <2 x float>, <2 x float> } %169, 0
  store <2 x float> %170, ptr %32, align 8
  %171 = extractvalue { <2 x float>, <2 x float> } %169, 1
  store <2 x float> %171, ptr %88, align 8
  %172 = call { <2 x float>, <2 x float> } @_ZN6squish10ReciprocalERKNS_4Vec4E(ptr noundef nonnull align 4 dereferenceable(16) %32)
  %173 = extractvalue { <2 x float>, <2 x float> } %172, 0
  store <2 x float> %173, ptr %31, align 8
  %174 = extractvalue { <2 x float>, <2 x float> } %172, 1
  store <2 x float> %174, ptr %89, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %33) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %32) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %34) #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
  %175 = call { <2 x float>, <2 x float> } @_ZN6squishmlERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %22, ptr noundef nonnull align 4 dereferenceable(16) %27)
  %176 = extractvalue { <2 x float>, <2 x float> } %175, 0
  store <2 x float> %176, ptr %36, align 8
  %177 = extractvalue { <2 x float>, <2 x float> } %175, 1
  store <2 x float> %177, ptr %90, align 8
  %178 = call { <2 x float>, <2 x float> } @_ZN6squish24NegativeMultiplySubtractERKNS_4Vec4ES2_S2_(ptr noundef nonnull align 4 dereferenceable(16) %25, ptr noundef nonnull align 4 dereferenceable(16) %28, ptr noundef nonnull align 4 dereferenceable(16) %36)
  %179 = extractvalue { <2 x float>, <2 x float> } %178, 0
  store <2 x float> %179, ptr %35, align 8
  %180 = extractvalue { <2 x float>, <2 x float> } %178, 1
  store <2 x float> %180, ptr %91, align 8
  %181 = call { <2 x float>, <2 x float> } @_ZN6squishmlERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %35, ptr noundef nonnull align 4 dereferenceable(16) %31)
  %182 = extractvalue { <2 x float>, <2 x float> } %181, 0
  store <2 x float> %182, ptr %34, align 8
  %183 = extractvalue { <2 x float>, <2 x float> } %181, 1
  store <2 x float> %183, ptr %92, align 8
  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
  %184 = call { <2 x float>, <2 x float> } @_ZN6squishmlERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %25, ptr noundef nonnull align 4 dereferenceable(16) %24)
  %185 = extractvalue { <2 x float>, <2 x float> } %184, 0
  store <2 x float> %185, ptr %39, align 8
  %186 = extractvalue { <2 x float>, <2 x float> } %184, 1
  store <2 x float> %186, ptr %93, align 8
  %187 = call { <2 x float>, <2 x float> } @_ZN6squish24NegativeMultiplySubtractERKNS_4Vec4ES2_S2_(ptr noundef nonnull align 4 dereferenceable(16) %22, ptr noundef nonnull align 4 dereferenceable(16) %28, ptr noundef nonnull align 4 dereferenceable(16) %39)
  %188 = extractvalue { <2 x float>, <2 x float> } %187, 0
  store <2 x float> %188, ptr %38, align 8
  %189 = extractvalue { <2 x float>, <2 x float> } %187, 1
  store <2 x float> %189, ptr %94, align 8
  %190 = call { <2 x float>, <2 x float> } @_ZN6squishmlERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %38, ptr noundef nonnull align 4 dereferenceable(16) %31)
  %191 = extractvalue { <2 x float>, <2 x float> } %190, 0
  store <2 x float> %191, ptr %37, align 8
  %192 = extractvalue { <2 x float>, <2 x float> } %190, 1
  store <2 x float> %192, ptr %95, align 8
  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.start.p0(i64 16, ptr nonnull %40) #7
  %193 = call { <2 x float>, <2 x float> } @_ZN6squish3MaxERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(16) %34)
  %194 = extractvalue { <2 x float>, <2 x float> } %193, 0
  store <2 x float> %194, ptr %40, align 8
  %195 = extractvalue { <2 x float>, <2 x float> } %193, 1
  store <2 x float> %195, ptr %96, align 8
  %196 = call { <2 x float>, <2 x float> } @_ZN6squish3MinERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(16) %40)
  %197 = extractvalue { <2 x float>, <2 x float> } %196, 0
  %198 = extractvalue { <2 x float>, <2 x float> } %196, 1
  store <2 x float> %197, ptr %34, align 8
  store <2 x float> %198, ptr %92, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %40) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %41) #7
  %199 = call { <2 x float>, <2 x float> } @_ZN6squish3MaxERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(16) %37)
  %200 = extractvalue { <2 x float>, <2 x float> } %199, 0
  store <2 x float> %200, ptr %41, align 8
  %201 = extractvalue { <2 x float>, <2 x float> } %199, 1
  store <2 x float> %201, ptr %97, align 8
  %202 = call { <2 x float>, <2 x float> } @_ZN6squish3MinERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(16) %41)
  %203 = extractvalue { <2 x float>, <2 x float> } %202, 0
  %204 = extractvalue { <2 x float>, <2 x float> } %202, 1
  store <2 x float> %203, ptr %37, align 8
  store <2 x float> %204, ptr %95, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %41) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %42) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %43) #7
  %205 = call { <2 x float>, <2 x float> } @_ZN6squish11MultiplyAddERKNS_4Vec4ES2_S2_(ptr noundef nonnull align 4 dereferenceable(16) %10, ptr noundef nonnull align 4 dereferenceable(16) %34, ptr noundef nonnull align 4 dereferenceable(16) %9)
  %206 = extractvalue { <2 x float>, <2 x float> } %205, 0
  store <2 x float> %206, ptr %43, align 8
  %207 = extractvalue { <2 x float>, <2 x float> } %205, 1
  store <2 x float> %207, ptr %98, align 8
  %208 = call { <2 x float>, <2 x float> } @_ZN6squish8TruncateERKNS_4Vec4E(ptr noundef nonnull align 4 dereferenceable(16) %43)
  %209 = extractvalue { <2 x float>, <2 x float> } %208, 0
  store <2 x float> %209, ptr %42, align 8
  %210 = extractvalue { <2 x float>, <2 x float> } %208, 1
  store <2 x float> %210, ptr %99, align 8
  %211 = call { <2 x float>, <2 x float> } @_ZN6squishmlERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %42, ptr noundef nonnull align 4 dereferenceable(16) %11)
  %212 = extractvalue { <2 x float>, <2 x float> } %211, 0
  %213 = extractvalue { <2 x float>, <2 x float> } %211, 1
  store <2 x float> %212, ptr %34, align 8
  store <2 x float> %213, ptr %92, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %43) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %42) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %44) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %45) #7
  %214 = call { <2 x float>, <2 x float> } @_ZN6squish11MultiplyAddERKNS_4Vec4ES2_S2_(ptr noundef nonnull align 4 dereferenceable(16) %10, ptr noundef nonnull align 4 dereferenceable(16) %37, ptr noundef nonnull align 4 dereferenceable(16) %9)
  %215 = extractvalue { <2 x float>, <2 x float> } %214, 0
  store <2 x float> %215, ptr %45, align 8
  %216 = extractvalue { <2 x float>, <2 x float> } %214, 1
  store <2 x float> %216, ptr %100, align 8
  %217 = call { <2 x float>, <2 x float> } @_ZN6squish8TruncateERKNS_4Vec4E(ptr noundef nonnull align 4 dereferenceable(16) %45)
  %218 = extractvalue { <2 x float>, <2 x float> } %217, 0
  store <2 x float> %218, ptr %44, align 8
  %219 = extractvalue { <2 x float>, <2 x float> } %217, 1
  store <2 x float> %219, ptr %101, align 8
  %220 = call { <2 x float>, <2 x float> } @_ZN6squishmlERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %44, ptr noundef nonnull align 4 dereferenceable(16) %11)
  %221 = extractvalue { <2 x float>, <2 x float> } %220, 0
  %222 = extractvalue { <2 x float>, <2 x float> } %220, 1
  store <2 x float> %221, ptr %37, align 8
  store <2 x float> %222, ptr %95, align 8
  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 %46) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %47) #7
  %223 = call { <2 x float>, <2 x float> } @_ZN6squishmlERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %34, ptr noundef nonnull align 4 dereferenceable(16) %34)
  %224 = extractvalue { <2 x float>, <2 x float> } %223, 0
  store <2 x float> %224, ptr %47, align 8
  %225 = extractvalue { <2 x float>, <2 x float> } %223, 1
  store <2 x float> %225, ptr %102, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %48) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %49) #7
  %226 = call { <2 x float>, <2 x float> } @_ZN6squishmlERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %37, ptr noundef nonnull align 4 dereferenceable(16) %37)
  %227 = extractvalue { <2 x float>, <2 x float> } %226, 0
  store <2 x float> %227, ptr %49, align 8
  %228 = extractvalue { <2 x float>, <2 x float> } %226, 1
  store <2 x float> %228, ptr %103, align 8
  %229 = call { <2 x float>, <2 x float> } @_ZN6squishmlERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %49, ptr noundef nonnull align 4 dereferenceable(16) %27)
  %230 = extractvalue { <2 x float>, <2 x float> } %229, 0
  store <2 x float> %230, ptr %48, align 8
  %231 = extractvalue { <2 x float>, <2 x float> } %229, 1
  store <2 x float> %231, ptr %104, align 8
  %232 = call { <2 x float>, <2 x float> } @_ZN6squish11MultiplyAddERKNS_4Vec4ES2_S2_(ptr noundef nonnull align 4 dereferenceable(16) %47, ptr noundef nonnull align 4 dereferenceable(16) %24, ptr noundef nonnull align 4 dereferenceable(16) %48)
  %233 = extractvalue { <2 x float>, <2 x float> } %232, 0
  store <2 x float> %233, ptr %46, align 8
  %234 = extractvalue { <2 x float>, <2 x float> } %232, 1
  store <2 x float> %234, ptr %105, align 8
  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.end.p0(i64 16, ptr nonnull %47) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %50) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %51) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %52) #7
  %235 = call { <2 x float>, <2 x float> } @_ZN6squishmlERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %34, ptr noundef nonnull align 4 dereferenceable(16) %37)
  %236 = extractvalue { <2 x float>, <2 x float> } %235, 0
  store <2 x float> %236, ptr %52, align 8
  %237 = extractvalue { <2 x float>, <2 x float> } %235, 1
  store <2 x float> %237, ptr %106, align 8
  %238 = call { <2 x float>, <2 x float> } @_ZN6squishmlERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %52, ptr noundef nonnull align 4 dereferenceable(16) %28)
  %239 = extractvalue { <2 x float>, <2 x float> } %238, 0
  store <2 x float> %239, ptr %51, align 8
  %240 = extractvalue { <2 x float>, <2 x float> } %238, 1
  store <2 x float> %240, ptr %107, align 8
  %241 = call { <2 x float>, <2 x float> } @_ZN6squish24NegativeMultiplySubtractERKNS_4Vec4ES2_S2_(ptr noundef nonnull align 4 dereferenceable(16) %34, ptr noundef nonnull align 4 dereferenceable(16) %22, ptr noundef nonnull align 4 dereferenceable(16) %51)
  %242 = extractvalue { <2 x float>, <2 x float> } %241, 0
  store <2 x float> %242, ptr %50, align 8
  %243 = extractvalue { <2 x float>, <2 x float> } %241, 1
  store <2 x float> %243, ptr %108, align 8
  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.start.p0(i64 16, ptr nonnull %53) #7
  %244 = call { <2 x float>, <2 x float> } @_ZN6squish24NegativeMultiplySubtractERKNS_4Vec4ES2_S2_(ptr noundef nonnull align 4 dereferenceable(16) %37, ptr noundef nonnull align 4 dereferenceable(16) %25, ptr noundef nonnull align 4 dereferenceable(16) %50)
  %245 = extractvalue { <2 x float>, <2 x float> } %244, 0
  store <2 x float> %245, ptr %53, align 8
  %246 = extractvalue { <2 x float>, <2 x float> } %244, 1
  store <2 x float> %246, ptr %109, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %54) #7
  %247 = call { <2 x float>, <2 x float> } @_ZN6squish11MultiplyAddERKNS_4Vec4ES2_S2_(ptr noundef nonnull align 4 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(16) %53, ptr noundef nonnull align 4 dereferenceable(16) %46)
  %248 = extractvalue { <2 x float>, <2 x float> } %247, 0
  store <2 x float> %248, ptr %54, align 8
  %249 = extractvalue { <2 x float>, <2 x float> } %247, 1
  store <2 x float> %249, ptr %110, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %55) #7
  %250 = call { <2 x float>, <2 x float> } @_ZN6squishmlERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %54, ptr noundef nonnull align 4 dereferenceable(16) %111)
  %251 = extractvalue { <2 x float>, <2 x float> } %250, 0
  store <2 x float> %251, ptr %55, align 8
  %252 = extractvalue { <2 x float>, <2 x float> } %250, 1
  store <2 x float> %252, ptr %112, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %56) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %57) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %58) #7
  %253 = call { <2 x float>, <2 x float> } @_ZNK6squish4Vec46SplatXEv(ptr noundef nonnull align 4 dereferenceable(16) %55)
  %254 = extractvalue { <2 x float>, <2 x float> } %253, 0
  store <2 x float> %254, ptr %58, align 8
  %255 = extractvalue { <2 x float>, <2 x float> } %253, 1
  store <2 x float> %255, ptr %113, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %59) #7
  %256 = call { <2 x float>, <2 x float> } @_ZNK6squish4Vec46SplatYEv(ptr noundef nonnull align 4 dereferenceable(16) %55)
  %257 = extractvalue { <2 x float>, <2 x float> } %256, 0
  store <2 x float> %257, ptr %59, align 8
  %258 = extractvalue { <2 x float>, <2 x float> } %256, 1
  store <2 x float> %258, ptr %114, align 8
  %259 = call { <2 x float>, <2 x float> } @_ZN6squishplERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %58, ptr noundef nonnull align 4 dereferenceable(16) %59)
  %260 = extractvalue { <2 x float>, <2 x float> } %259, 0
  store <2 x float> %260, ptr %57, align 8
  %261 = extractvalue { <2 x float>, <2 x float> } %259, 1
  store <2 x float> %261, ptr %115, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %60) #7
  %262 = call { <2 x float>, <2 x float> } @_ZNK6squish4Vec46SplatZEv(ptr noundef nonnull align 4 dereferenceable(16) %55)
  %263 = extractvalue { <2 x float>, <2 x float> } %262, 0
  store <2 x float> %263, ptr %60, align 8
  %264 = extractvalue { <2 x float>, <2 x float> } %262, 1
  store <2 x float> %264, ptr %116, align 8
  %265 = call { <2 x float>, <2 x float> } @_ZN6squishplERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %57, ptr noundef nonnull align 4 dereferenceable(16) %60)
  %266 = extractvalue { <2 x float>, <2 x float> } %265, 0
  store <2 x float> %266, ptr %56, align 8
  %267 = extractvalue { <2 x float>, <2 x float> } %265, 1
  store <2 x float> %267, ptr %117, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %60) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %59) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %58) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %57) #7
  %268 = call noundef zeroext i1 @_ZN6squish18CompareAnyLessThanERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %56, ptr noundef nonnull align 4 dereferenceable(16) %14)
  br i1 %268, label %269, label %271

269:                                              ; preds = %129
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %34, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %37, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(16) %56, i64 16, i1 false), !tbaa.struct !11
  %270 = trunc nuw nsw i64 %indvars.iv136 to i32
  br label %271

271:                                              ; preds = %269, %129
  %.485 = phi i32 [ %270, %269 ], [ %.384, %129 ]
  %.480 = phi i32 [ %128, %269 ], [ %.379, %129 ]
  %.475 = phi i32 [ %122, %269 ], [ %.374, %129 ]
  %.4 = phi i32 [ %.090, %269 ], [ %.3, %129 ]
  %.not105 = icmp eq i64 %indvars.iv136, %120
  br i1 %.not105, label %275, label %272

272:                                              ; preds = %271
  %273 = getelementptr inbounds [16 x %"class.squish::Vec4"], ptr %73, i64 0, i64 %indvars.iv136
  %274 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN6squish4Vec4pLERKS0_(ptr noundef nonnull align 4 dereferenceable(16) %18, ptr noundef nonnull align 4 dereferenceable(16) %273)
  %indvars.iv.next137 = add nuw nsw i64 %indvars.iv136, 1
  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
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %53) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %50) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %46) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %37) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %34) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %31) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %28) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #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 %19) #7
  br label %129

275:                                              ; preds = %271
  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
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %53) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %50) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %46) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %37) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %34) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %31) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %28) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #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 %19) #7
  %.not106 = icmp eq i64 %indvars.iv134, %120
  br i1 %.not106, label %279, label %276

276:                                              ; preds = %275
  %277 = getelementptr inbounds [16 x %"class.squish::Vec4"], ptr %73, i64 0, i64 %indvars.iv134
  %278 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN6squish4Vec4pLERKS0_(ptr noundef nonnull align 4 dereferenceable(16) %17, ptr noundef nonnull align 4 dereferenceable(16) %277)
  %indvars.iv.next135 = add nuw nsw i64 %indvars.iv134, 1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  br label %123

279:                                              ; preds = %275
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  %280 = getelementptr inbounds [16 x %"class.squish::Vec4"], ptr %73, i64 0, i64 %indvars.iv
  %281 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN6squish4Vec4pLERKS0_(ptr noundef nonnull align 4 dereferenceable(16) %16, ptr noundef nonnull align 4 dereferenceable(16) %280)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %120
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !14

282:                                              ; preds = %._crit_edge
  %283 = add nuw nsw i32 %.090, 1
  %284 = load i32, ptr %118, align 4, !tbaa !16
  %285 = icmp eq i32 %283, %284
  br i1 %285, label %293, label %286

286:                                              ; preds = %282
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %61) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %62) #7
  %287 = call { <2 x float>, <2 x float> } @_ZN6squishmiERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(16) %12)
  %288 = extractvalue { <2 x float>, <2 x float> } %287, 0
  store <2 x float> %288, ptr %62, align 8
  %289 = extractvalue { <2 x float>, <2 x float> } %287, 1
  store <2 x float> %289, ptr %119, align 8
  %290 = call { <2 x float>, float } @_ZNK6squish4Vec47GetVec3Ev(ptr noundef nonnull align 4 dereferenceable(16) %62)
  %.fca.0.extract21 = extractvalue { <2 x float>, float } %290, 0
  %.fca.1.extract22 = extractvalue { <2 x float>, float } %290, 1
  store <2 x float> %.fca.0.extract21, ptr %61, align 8
  store float %.fca.1.extract22, ptr %.sroa.224.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %62) #7
  %291 = call noundef zeroext i1 @_ZN6squish10ClusterFit17ConstructOrderingERKNS_4Vec3Ei(ptr noundef nonnull align 8 dereferenceable(468) %0, ptr noundef nonnull align 4 dereferenceable(12) %61, i32 noundef %283)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %61) #7
  br i1 %291, label %292, label %293

292:                                              ; preds = %286
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #7
  br label %121, !llvm.loop !20

293:                                              ; preds = %286, %._crit_edge, %282
  %.1.lcssa.lcssa = phi i32 [ %.090, %286 ], [ %.1.lcssa, %._crit_edge ], [ %.090, %282 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #7
  %294 = call noundef zeroext i1 @_ZN6squish18CompareAnyLessThanERKNS_4Vec4ES2_(ptr noundef nonnull align 4 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(16) %71)
  br i1 %294, label %295, label %391

295:                                              ; preds = %293
  %296 = getelementptr inbounds i8, ptr %0, i64 36
  %297 = shl nsw i32 %.1.lcssa.lcssa, 4
  %298 = sext i32 %297 to i64
  %299 = getelementptr inbounds i8, ptr %296, i64 %298
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %63) #7
  %300 = icmp sgt i32 %.172.lcssa, 0
  br i1 %300, label %.lr.ph126.preheader, label %.preheader115

.lr.ph126.preheader:                              ; preds = %295
  %wide.trip.count143 = zext nneg i32 %.172.lcssa to i64
  %xtraiter = and i64 %wide.trip.count143, 3
  %301 = icmp ult i32 %.172.lcssa, 4
  br i1 %301, label %.preheader115.loopexit.unr-lcssa, label %.lr.ph126.preheader.new

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

.preheader115.loopexit.unr-lcssa:                 ; preds = %.lr.ph126, %.lr.ph126.preheader
  %indvars.iv140.unr = phi i64 [ 0, %.lr.ph126.preheader ], [ %indvars.iv.next141.3, %.lr.ph126 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader115, label %.lr.ph126.epil

.lr.ph126.epil:                                   ; preds = %.preheader115.loopexit.unr-lcssa, %.lr.ph126.epil
  %indvars.iv140.epil = phi i64 [ %indvars.iv.next141.epil, %.lr.ph126.epil ], [ %indvars.iv140.unr, %.preheader115.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph126.epil ], [ 0, %.preheader115.loopexit.unr-lcssa ]
  %302 = getelementptr inbounds i8, ptr %299, i64 %indvars.iv140.epil
  %303 = load i8, ptr %302, align 1, !tbaa !21
  %304 = zext i8 %303 to i64
  %305 = getelementptr inbounds [16 x i8], ptr %63, i64 0, i64 %304
  store i8 0, ptr %305, align 1, !tbaa !21
  %indvars.iv.next141.epil = add nuw nsw i64 %indvars.iv140.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 %.preheader115, label %.lr.ph126.epil, !llvm.loop !22

.preheader115:                                    ; preds = %.preheader115.loopexit.unr-lcssa, %.lr.ph126.epil, %295
  %306 = icmp slt i32 %.172.lcssa, %.177.lcssa
  br i1 %306, label %.lr.ph128.preheader, label %.preheader114

.lr.ph128.preheader:                              ; preds = %.preheader115
  %307 = sext i32 %.172.lcssa to i64
  %wide.trip.count148 = sext i32 %.177.lcssa to i64
  %308 = sub nsw i64 %wide.trip.count148, %307
  %xtraiter160 = and i64 %308, 3
  %lcmp.mod161.not = icmp eq i64 %xtraiter160, 0
  br i1 %lcmp.mod161.not, label %.lr.ph128.prol.loopexit, label %.lr.ph128.prol

.lr.ph128.prol:                                   ; preds = %.lr.ph128.preheader, %.lr.ph128.prol
  %indvars.iv145.prol = phi i64 [ %indvars.iv.next146.prol, %.lr.ph128.prol ], [ %307, %.lr.ph128.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph128.prol ], [ 0, %.lr.ph128.preheader ]
  %309 = getelementptr inbounds i8, ptr %299, i64 %indvars.iv145.prol
  %310 = load i8, ptr %309, align 1, !tbaa !21
  %311 = zext i8 %310 to i64
  %312 = getelementptr inbounds [16 x i8], ptr %63, i64 0, i64 %311
  store i8 2, ptr %312, align 1, !tbaa !21
  %indvars.iv.next146.prol = add nsw i64 %indvars.iv145.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter160
  br i1 %prol.iter.cmp.not, label %.lr.ph128.prol.loopexit, label %.lr.ph128.prol, !llvm.loop !24

.lr.ph128.prol.loopexit:                          ; preds = %.lr.ph128.prol, %.lr.ph128.preheader
  %indvars.iv145.unr = phi i64 [ %307, %.lr.ph128.preheader ], [ %indvars.iv.next146.prol, %.lr.ph128.prol ]
  %313 = sub nsw i64 %307, %wide.trip.count148
  %314 = icmp ugt i64 %313, -4
  br i1 %314, label %.preheader114, label %.lr.ph128.preheader.new

.lr.ph128.preheader.new:                          ; preds = %.lr.ph128.prol.loopexit
  %invariant.gep = getelementptr i8, ptr %299, i64 1
  %invariant.gep168 = getelementptr i8, ptr %299, i64 2
  %invariant.gep170 = getelementptr i8, ptr %299, i64 3
  br label %.lr.ph128

.lr.ph126:                                        ; preds = %.lr.ph126, %.lr.ph126.preheader.new
  %indvars.iv140 = phi i64 [ 0, %.lr.ph126.preheader.new ], [ %indvars.iv.next141.3, %.lr.ph126 ]
  %niter = phi i64 [ 0, %.lr.ph126.preheader.new ], [ %niter.next.3, %.lr.ph126 ]
  %315 = getelementptr inbounds i8, ptr %299, i64 %indvars.iv140
  %316 = load i8, ptr %315, align 4, !tbaa !21
  %317 = zext i8 %316 to i64
  %318 = getelementptr inbounds [16 x i8], ptr %63, i64 0, i64 %317
  store i8 0, ptr %318, align 1, !tbaa !21
  %indvars.iv.next141 = or disjoint i64 %indvars.iv140, 1
  %319 = getelementptr inbounds i8, ptr %299, i64 %indvars.iv.next141
  %320 = load i8, ptr %319, align 1, !tbaa !21
  %321 = zext i8 %320 to i64
  %322 = getelementptr inbounds [16 x i8], ptr %63, i64 0, i64 %321
  store i8 0, ptr %322, align 1, !tbaa !21
  %indvars.iv.next141.1 = or disjoint i64 %indvars.iv140, 2
  %323 = getelementptr inbounds i8, ptr %299, i64 %indvars.iv.next141.1
  %324 = load i8, ptr %323, align 2, !tbaa !21
  %325 = zext i8 %324 to i64
  %326 = getelementptr inbounds [16 x i8], ptr %63, i64 0, i64 %325
  store i8 0, ptr %326, align 1, !tbaa !21
  %indvars.iv.next141.2 = or disjoint i64 %indvars.iv140, 3
  %327 = getelementptr inbounds i8, ptr %299, i64 %indvars.iv.next141.2
  %328 = load i8, ptr %327, align 1, !tbaa !21
  %329 = zext i8 %328 to i64
  %330 = getelementptr inbounds [16 x i8], ptr %63, i64 0, i64 %329
  store i8 0, ptr %330, align 1, !tbaa !21
  %indvars.iv.next141.3 = add nuw nsw i64 %indvars.iv140, 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 %.preheader115.loopexit.unr-lcssa, label %.lr.ph126, !llvm.loop !25

.preheader114:                                    ; preds = %.lr.ph128.prol.loopexit, %.lr.ph128, %.preheader115
  %331 = icmp slt i32 %.177.lcssa, %.182.lcssa
  br i1 %331, label %.lr.ph130.preheader, label %.preheader

.lr.ph130.preheader:                              ; preds = %.preheader114
  %332 = sext i32 %.177.lcssa to i64
  %wide.trip.count153 = sext i32 %.182.lcssa to i64
  %333 = sub nsw i64 %wide.trip.count153, %332
  %xtraiter162 = and i64 %333, 3
  %lcmp.mod163.not = icmp eq i64 %xtraiter162, 0
  br i1 %lcmp.mod163.not, label %.lr.ph130.prol.loopexit, label %.lr.ph130.prol

.lr.ph130.prol:                                   ; preds = %.lr.ph130.preheader, %.lr.ph130.prol
  %indvars.iv150.prol = phi i64 [ %indvars.iv.next151.prol, %.lr.ph130.prol ], [ %332, %.lr.ph130.preheader ]
  %prol.iter164 = phi i64 [ %prol.iter164.next, %.lr.ph130.prol ], [ 0, %.lr.ph130.preheader ]
  %334 = getelementptr inbounds i8, ptr %299, i64 %indvars.iv150.prol
  %335 = load i8, ptr %334, align 1, !tbaa !21
  %336 = zext i8 %335 to i64
  %337 = getelementptr inbounds [16 x i8], ptr %63, i64 0, i64 %336
  store i8 3, ptr %337, align 1, !tbaa !21
  %indvars.iv.next151.prol = add nsw i64 %indvars.iv150.prol, 1
  %prol.iter164.next = add i64 %prol.iter164, 1
  %prol.iter164.cmp.not = icmp eq i64 %prol.iter164.next, %xtraiter162
  br i1 %prol.iter164.cmp.not, label %.lr.ph130.prol.loopexit, label %.lr.ph130.prol, !llvm.loop !26

.lr.ph130.prol.loopexit:                          ; preds = %.lr.ph130.prol, %.lr.ph130.preheader
  %indvars.iv150.unr = phi i64 [ %332, %.lr.ph130.preheader ], [ %indvars.iv.next151.prol, %.lr.ph130.prol ]
  %338 = sub nsw i64 %332, %wide.trip.count153
  %339 = icmp ugt i64 %338, -4
  br i1 %339, label %.preheader, label %.lr.ph130.preheader.new

.lr.ph130.preheader.new:                          ; preds = %.lr.ph130.prol.loopexit
  %invariant.gep172 = getelementptr i8, ptr %299, i64 1
  %invariant.gep174 = getelementptr i8, ptr %299, i64 2
  %invariant.gep176 = getelementptr i8, ptr %299, i64 3
  br label %.lr.ph130

.lr.ph128:                                        ; preds = %.lr.ph128, %.lr.ph128.preheader.new
  %indvars.iv145 = phi i64 [ %indvars.iv145.unr, %.lr.ph128.preheader.new ], [ %indvars.iv.next146.3, %.lr.ph128 ]
  %340 = getelementptr inbounds i8, ptr %299, i64 %indvars.iv145
  %341 = load i8, ptr %340, align 1, !tbaa !21
  %342 = zext i8 %341 to i64
  %343 = getelementptr inbounds [16 x i8], ptr %63, i64 0, i64 %342
  store i8 2, ptr %343, align 1, !tbaa !21
  %gep = getelementptr i8, ptr %invariant.gep, i64 %indvars.iv145
  %344 = load i8, ptr %gep, align 1, !tbaa !21
  %345 = zext i8 %344 to i64
  %346 = getelementptr inbounds [16 x i8], ptr %63, i64 0, i64 %345
  store i8 2, ptr %346, align 1, !tbaa !21
  %gep169 = getelementptr i8, ptr %invariant.gep168, i64 %indvars.iv145
  %347 = load i8, ptr %gep169, align 1, !tbaa !21
  %348 = zext i8 %347 to i64
  %349 = getelementptr inbounds [16 x i8], ptr %63, i64 0, i64 %348
  store i8 2, ptr %349, align 1, !tbaa !21
  %gep171 = getelementptr i8, ptr %invariant.gep170, i64 %indvars.iv145
  %350 = load i8, ptr %gep171, align 1, !tbaa !21
  %351 = zext i8 %350 to i64
  %352 = getelementptr inbounds [16 x i8], ptr %63, i64 0, i64 %351
  store i8 2, ptr %352, align 1, !tbaa !21
  %indvars.iv.next146.3 = add nsw i64 %indvars.iv145, 4
  %exitcond149.not.3 = icmp eq i64 %indvars.iv.next146.3, %wide.trip.count148
  br i1 %exitcond149.not.3, label %.preheader114, label %.lr.ph128, !llvm.loop !27

.preheader:                                       ; preds = %.lr.ph130.prol.loopexit, %.lr.ph130, %.preheader114
  %353 = icmp slt i32 %.182.lcssa, %68
  br i1 %353, label %.lr.ph132.preheader, label %._crit_edge133

.lr.ph132.preheader:                              ; preds = %.preheader
  %354 = sext i32 %.182.lcssa to i64
  %wide.trip.count158 = sext i32 %68 to i64
  %355 = sub nsw i64 %wide.trip.count158, %354
  %xtraiter165 = and i64 %355, 3
  %lcmp.mod166.not = icmp eq i64 %xtraiter165, 0
  br i1 %lcmp.mod166.not, label %.lr.ph132.prol.loopexit, label %.lr.ph132.prol

.lr.ph132.prol:                                   ; preds = %.lr.ph132.preheader, %.lr.ph132.prol
  %indvars.iv155.prol = phi i64 [ %indvars.iv.next156.prol, %.lr.ph132.prol ], [ %354, %.lr.ph132.preheader ]
  %prol.iter167 = phi i64 [ %prol.iter167.next, %.lr.ph132.prol ], [ 0, %.lr.ph132.preheader ]
  %356 = getelementptr inbounds i8, ptr %299, i64 %indvars.iv155.prol
  %357 = load i8, ptr %356, align 1, !tbaa !21
  %358 = zext i8 %357 to i64
  %359 = getelementptr inbounds [16 x i8], ptr %63, i64 0, i64 %358
  store i8 1, ptr %359, align 1, !tbaa !21
  %indvars.iv.next156.prol = add nsw i64 %indvars.iv155.prol, 1
  %prol.iter167.next = add i64 %prol.iter167, 1
  %prol.iter167.cmp.not = icmp eq i64 %prol.iter167.next, %xtraiter165
  br i1 %prol.iter167.cmp.not, label %.lr.ph132.prol.loopexit, label %.lr.ph132.prol, !llvm.loop !28

.lr.ph132.prol.loopexit:                          ; preds = %.lr.ph132.prol, %.lr.ph132.preheader
  %indvars.iv155.unr = phi i64 [ %354, %.lr.ph132.preheader ], [ %indvars.iv.next156.prol, %.lr.ph132.prol ]
  %360 = sub nsw i64 %354, %wide.trip.count158
  %361 = icmp ugt i64 %360, -4
  br i1 %361, label %._crit_edge133, label %.lr.ph132.preheader.new

.lr.ph132.preheader.new:                          ; preds = %.lr.ph132.prol.loopexit
  %invariant.gep178 = getelementptr i8, ptr %299, i64 1
  %invariant.gep180 = getelementptr i8, ptr %299, i64 2
  %invariant.gep182 = getelementptr i8, ptr %299, i64 3
  br label %.lr.ph132

.lr.ph130:                                        ; preds = %.lr.ph130, %.lr.ph130.preheader.new
  %indvars.iv150 = phi i64 [ %indvars.iv150.unr, %.lr.ph130.preheader.new ], [ %indvars.iv.next151.3, %.lr.ph130 ]
  %362 = getelementptr inbounds i8, ptr %299, i64 %indvars.iv150
  %363 = load i8, ptr %362, align 1, !tbaa !21
  %364 = zext i8 %363 to i64
  %365 = getelementptr inbounds [16 x i8], ptr %63, i64 0, i64 %364
  store i8 3, ptr %365, align 1, !tbaa !21
  %gep173 = getelementptr i8, ptr %invariant.gep172, i64 %indvars.iv150
  %366 = load i8, ptr %gep173, align 1, !tbaa !21
  %367 = zext i8 %366 to i64
  %368 = getelementptr inbounds [16 x i8], ptr %63, i64 0, i64 %367
  store i8 3, ptr %368, align 1, !tbaa !21
  %gep175 = getelementptr i8, ptr %invariant.gep174, i64 %indvars.iv150
  %369 = load i8, ptr %gep175, align 1, !tbaa !21
  %370 = zext i8 %369 to i64
  %371 = getelementptr inbounds [16 x i8], ptr %63, i64 0, i64 %370
  store i8 3, ptr %371, align 1, !tbaa !21
  %gep177 = getelementptr i8, ptr %invariant.gep176, i64 %indvars.iv150
  %372 = load i8, ptr %gep177, align 1, !tbaa !21
  %373 = zext i8 %372 to i64
  %374 = getelementptr inbounds [16 x i8], ptr %63, i64 0, i64 %373
  store i8 3, ptr %374, align 1, !tbaa !21
  %indvars.iv.next151.3 = add nsw i64 %indvars.iv150, 4
  %exitcond154.not.3 = icmp eq i64 %indvars.iv.next151.3, %wide.trip.count153
  br i1 %exitcond154.not.3, label %.preheader, label %.lr.ph130, !llvm.loop !29

._crit_edge133:                                   ; preds = %.lr.ph132.prol.loopexit, %.lr.ph132, %.preheader
  %375 = load ptr, ptr %66, align 8, !tbaa !5
  call void @_ZNK6squish9ColourSet12RemapIndicesEPKhPh(ptr noundef nonnull align 4 dereferenceable(325) %375, ptr noundef nonnull %63, ptr noundef nonnull %15)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %64) #7
  %376 = call { <2 x float>, float } @_ZNK6squish4Vec47GetVec3Ev(ptr noundef nonnull align 4 dereferenceable(16) %12)
  %.fca.0.extract3 = extractvalue { <2 x float>, float } %376, 0
  %.fca.1.extract4 = extractvalue { <2 x float>, float } %376, 1
  store <2 x float> %.fca.0.extract3, ptr %64, align 8
  %.sroa.26.0..sroa_idx = getelementptr inbounds i8, ptr %64, i64 8
  store float %.fca.1.extract4, ptr %.sroa.26.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %65) #7
  %377 = call { <2 x float>, float } @_ZNK6squish4Vec47GetVec3Ev(ptr noundef nonnull align 4 dereferenceable(16) %13)
  %.fca.0.extract = extractvalue { <2 x float>, float } %377, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %377, 1
  store <2 x float> %.fca.0.extract, ptr %65, align 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %65, i64 8
  store float %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  call void @_ZN6squish17WriteColourBlock4ERKNS_4Vec3ES2_PKhPv(ptr noundef nonnull align 4 dereferenceable(12) %64, ptr noundef nonnull align 4 dereferenceable(12) %65, ptr noundef nonnull %15, ptr noundef %1)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %65) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %64) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %71, ptr noundef nonnull align 4 dereferenceable(16) %14, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %63) #7
  br label %391

.lr.ph132:                                        ; preds = %.lr.ph132, %.lr.ph132.preheader.new
  %indvars.iv155 = phi i64 [ %indvars.iv155.unr, %.lr.ph132.preheader.new ], [ %indvars.iv.next156.3, %.lr.ph132 ]
  %378 = getelementptr inbounds i8, ptr %299, i64 %indvars.iv155
  %379 = load i8, ptr %378, align 1, !tbaa !21
  %380 = zext i8 %379 to i64
  %381 = getelementptr inbounds [16 x i8], ptr %63, i64 0, i64 %380
  store i8 1, ptr %381, align 1, !tbaa !21
  %gep179 = getelementptr i8, ptr %invariant.gep178, i64 %indvars.iv155
  %382 = load i8, ptr %gep179, align 1, !tbaa !21
  %383 = zext i8 %382 to i64
  %384 = getelementptr inbounds [16 x i8], ptr %63, i64 0, i64 %383
  store i8 1, ptr %384, align 1, !tbaa !21
  %gep181 = getelementptr i8, ptr %invariant.gep180, i64 %indvars.iv155
  %385 = load i8, ptr %gep181, align 1, !tbaa !21
  %386 = zext i8 %385 to i64
  %387 = getelementptr inbounds [16 x i8], ptr %63, i64 0, i64 %386
  store i8 1, ptr %387, align 1, !tbaa !21
  %gep183 = getelementptr i8, ptr %invariant.gep182, i64 %indvars.iv155
  %388 = load i8, ptr %gep183, align 1, !tbaa !21
  %389 = zext i8 %388 to i64
  %390 = getelementptr inbounds [16 x i8], ptr %63, i64 0, i64 %389
  store i8 1, ptr %390, align 1, !tbaa !21
  %indvars.iv.next156.3 = add nsw i64 %indvars.iv155, 4
  %exitcond159.not.3 = icmp eq i64 %indvars.iv.next156.3, %wide.trip.count158
  br i1 %exitcond159.not.3, label %._crit_edge133, label %.lr.ph132, !llvm.loop !30

391:                                              ; preds = %._crit_edge133, %293
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  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
}

declare void @_ZN6squish17WriteColourBlock4ERKNS_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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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 = { "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 = !{i64 0, i64 4, !12, i64 4, i64 4, !12, i64 8, i64 4, !12, i64 12, i64 4, !12}
!12 = !{!13, !13, i64 0}
!13 = !{!"float", !8, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !10, i64 20}
!17 = !{!"_ZTSN6squish10ClusterFitE", !6, i64 0, !10, i64 20, !18, i64 24, !8, i64 36, !8, i64 164, !19, i64 420, !19, i64 436, !19, i64 452}
!18 = !{!"_ZTSN6squish4Vec3E", !13, i64 0, !13, i64 4, !13, i64 8}
!19 = !{!"_ZTSN6squish4Vec4E", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12}
!20 = distinct !{!20, !15}
!21 = !{!8, !8, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.unroll.disable"}
!24 = distinct !{!24, !23}
!25 = distinct !{!25, !15}
!26 = distinct !{!26, !23}
!27 = distinct !{!27, !15}
!28 = distinct !{!28, !23}
!29 = distinct !{!29, !15}
!30 = distinct !{!30, !15}


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