; LLVM IR from KonajuGames/libsquish :: rangefit.ll (ZN6squish8RangeFitC2EPKNS_9ColourSetEiPf)

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

%"class.squish::Vec3" = type { float, float, float }
%"class.squish::Sym3x3" = type { [6 x float] }
%"class.squish::RangeFit" = type { %"class.squish::ColourFit.base", %"class.squish::Vec3", %"class.squish::Vec3", %"class.squish::Vec3", float, [4 x i8] }
%"class.squish::ColourFit.base" = type <{ ptr, ptr, i32 }>
%"class.squish::ColourFit" = type <{ ptr, ptr, i32, [4 x i8] }>

@_ZTVN6squish8RangeFitE = external dso_local unnamed_addr constant { [6 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6squish8RangeFitC2EPKNS_9ColourSetEiPf(ptr noundef nonnull align 8 dereferenceable(60) %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.squish::Vec3", align 4
  %12 = alloca %"class.squish::Vec3", align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"class.squish::Sym3x3", align 4
  %17 = alloca %"class.squish::Vec3", align 4
  %18 = alloca { <2 x float>, float }, align 8
  %19 = alloca %"class.squish::Vec3", align 4
  %20 = alloca %"class.squish::Vec3", align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca i32, align 4
  %24 = alloca float, align 4
  %25 = alloca %"class.squish::Vec3", align 4
  %26 = alloca %"class.squish::Vec3", align 4
  %27 = alloca %"class.squish::Vec3", align 4
  %28 = alloca %"class.squish::Vec3", align 4
  %29 = alloca { <2 x float>, float }, align 8
  %30 = alloca { <2 x float>, float }, align 8
  %31 = alloca %"class.squish::Vec3", align 4
  %32 = alloca %"class.squish::Vec3", align 4
  %33 = alloca { <2 x float>, float }, align 8
  %34 = alloca { <2 x float>, float }, align 8
  %35 = alloca %"class.squish::Vec3", align 4
  %36 = alloca %"class.squish::Vec3", align 4
  %37 = alloca %"class.squish::Vec3", align 4
  %38 = alloca %"class.squish::Vec3", align 4
  %39 = alloca %"class.squish::Vec3", align 4
  %40 = alloca %"class.squish::Vec3", align 4
  %41 = alloca %"class.squish::Vec3", align 4
  %42 = alloca { <2 x float>, float }, align 8
  %43 = alloca { <2 x float>, float }, align 8
  %44 = alloca { <2 x float>, float }, align 8
  %45 = alloca { <2 x float>, float }, align 8
  %46 = alloca %"class.squish::Vec3", align 4
  %47 = alloca %"class.squish::Vec3", align 4
  %48 = alloca %"class.squish::Vec3", align 4
  %49 = alloca %"class.squish::Vec3", align 4
  %50 = alloca { <2 x float>, float }, align 8
  %51 = alloca { <2 x float>, float }, align 8
  %52 = alloca { <2 x float>, float }, align 8
  %53 = alloca { <2 x float>, float }, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !5
  %54 = load ptr, ptr %5, align 8
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = load i32, ptr %7, align 4, !tbaa !9
  call void @_ZN6squish9ColourFitC2EPKNS_9ColourSetEi(ptr noundef nonnull align 8 dereferenceable(20) %54, ptr noundef %55, i32 noundef %56)
  store ptr getelementptr inbounds inrange(-16, 32) ({ [6 x ptr] }, ptr @_ZTVN6squish8RangeFitE, i32 0, i32 0, i32 2), ptr %54, align 8, !tbaa !11
  %57 = getelementptr inbounds %"class.squish::RangeFit", ptr %54, i32 0, i32 1
  invoke void @_ZN6squish4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %57)
          to label %58 unwind label %77

58:                                               ; preds = %4
  %59 = getelementptr inbounds %"class.squish::RangeFit", ptr %54, i32 0, i32 2
  invoke void @_ZN6squish4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %59)
          to label %60 unwind label %77

60:                                               ; preds = %58
  %61 = getelementptr inbounds %"class.squish::RangeFit", ptr %54, i32 0, i32 3
  invoke void @_ZN6squish4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %61)
          to label %62 unwind label %77

62:                                               ; preds = %60
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  %64 = icmp ne ptr %63, null
  br i1 %64, label %65, label %85

65:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #7
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = getelementptr inbounds float, ptr %66, i64 0
  %68 = load float, ptr %67, align 4, !tbaa !13
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  %70 = getelementptr inbounds float, ptr %69, i64 1
  %71 = load float, ptr %70, align 4, !tbaa !13
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  %73 = getelementptr inbounds float, ptr %72, i64 2
  %74 = load float, ptr %73, align 4, !tbaa !13
  invoke void @_ZN6squish4Vec3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %11, float noundef %68, float noundef %71, float noundef %74)
          to label %75 unwind label %81

75:                                               ; preds = %65
  %76 = getelementptr inbounds %"class.squish::RangeFit", ptr %54, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %76, ptr align 4 %11, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #7
  br label %92

77:                                               ; preds = %60, %58, %4
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %9, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %10, align 4
  br label %277

81:                                               ; preds = %65
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %9, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #7
  br label %277

85:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #7
  invoke void @_ZN6squish4Vec3C2Ef(ptr noundef nonnull align 4 dereferenceable(12) %12, float noundef 1.000000e+00)
          to label %86 unwind label %88

86:                                               ; preds = %85
  %87 = getelementptr inbounds %"class.squish::RangeFit", ptr %54, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %87, ptr align 4 %12, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #7
  br label %92

88:                                               ; preds = %85
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %9, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #7
  br label %277

92:                                               ; preds = %86, %75
  %93 = getelementptr inbounds %"class.squish::RangeFit", ptr %54, i32 0, i32 4
  store float 0x47EFFFFFE0000000, ptr %93, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %94 = getelementptr inbounds %"class.squish::ColourFit", ptr %54, i32 0, i32 1
  %95 = load ptr, ptr %94, align 8, !tbaa !20
  %96 = invoke noundef i32 @_ZNK6squish9ColourSet8GetCountEv(ptr noundef nonnull align 4 dereferenceable(325) %95)
          to label %97 unwind label %128

97:                                               ; preds = %92
  store i32 %96, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %98 = getelementptr inbounds %"class.squish::ColourFit", ptr %54, i32 0, i32 1
  %99 = load ptr, ptr %98, align 8, !tbaa !20
  %100 = invoke noundef ptr @_ZNK6squish9ColourSet9GetPointsEv(ptr noundef nonnull align 4 dereferenceable(325) %99)
          to label %101 unwind label %132

101:                                              ; preds = %97
  store ptr %100, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %102 = getelementptr inbounds %"class.squish::ColourFit", ptr %54, i32 0, i32 1
  %103 = load ptr, ptr %102, align 8, !tbaa !20
  %104 = invoke noundef ptr @_ZNK6squish9ColourSet10GetWeightsEv(ptr noundef nonnull align 4 dereferenceable(325) %103)
          to label %105 unwind label %136

105:                                              ; preds = %101
  store ptr %104, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #7
  %106 = load i32, ptr %13, align 4, !tbaa !9
  %107 = load ptr, ptr %14, align 8, !tbaa !5
  %108 = load ptr, ptr %15, align 8, !tbaa !5
  invoke void @_ZN6squish25ComputeWeightedCovarianceEiPKNS_4Vec3EPKf(ptr dead_on_unwind writable sret(%"class.squish::Sym3x3") align 4 %16, i32 noundef %106, ptr noundef %107, ptr noundef %108)
          to label %109 unwind label %140

109:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 12, ptr %17) #7
  %110 = invoke { <2 x float>, float } @_ZN6squish25ComputePrincipleComponentERKNS_6Sym3x3E(ptr noundef nonnull align 4 dereferenceable(24) %16)
          to label %111 unwind label %144

111:                                              ; preds = %109
  store { <2 x float>, float } %110, ptr %18, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 8 %18, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #7
  invoke void @_ZN6squish4Vec3C2Ef(ptr noundef nonnull align 4 dereferenceable(12) %19, float noundef 0.000000e+00)
          to label %112 unwind label %148

112:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #7
  invoke void @_ZN6squish4Vec3C2Ef(ptr noundef nonnull align 4 dereferenceable(12) %20, float noundef 0.000000e+00)
          to label %113 unwind label %152

113:                                              ; preds = %112
  %114 = load i32, ptr %13, align 4, !tbaa !9
  %115 = icmp sgt i32 %114, 0
  br i1 %115, label %116, label %197

116:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %117 = load ptr, ptr %14, align 8, !tbaa !5
  %118 = getelementptr inbounds %"class.squish::Vec3", ptr %117, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 %118, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %20, i64 12, i1 false), !tbaa.struct !15
  %119 = load ptr, ptr %14, align 8, !tbaa !5
  %120 = getelementptr inbounds %"class.squish::Vec3", ptr %119, i64 0
  %121 = invoke noundef float @_ZN6squish3DotERKNS_4Vec3ES2_(ptr noundef nonnull align 4 dereferenceable(12) %120, ptr noundef nonnull align 4 dereferenceable(12) %17)
          to label %122 unwind label %156

122:                                              ; preds = %116
  store float %121, ptr %22, align 4, !tbaa !13
  store float %121, ptr %21, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 1, ptr %23, align 4, !tbaa !9
  br label %123

123:                                              ; preds = %192, %122
  %124 = load i32, ptr %23, align 4, !tbaa !9
  %125 = load i32, ptr %13, align 4, !tbaa !9
  %126 = icmp slt i32 %124, %125
  br i1 %126, label %160, label %127

127:                                              ; preds = %123
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %195

128:                                              ; preds = %92
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %9, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %10, align 4
  br label %276

132:                                              ; preds = %97
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %9, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %10, align 4
  br label %275

136:                                              ; preds = %101
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %9, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %10, align 4
  br label %274

140:                                              ; preds = %105
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %9, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %10, align 4
  br label %273

144:                                              ; preds = %109
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %9, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %10, align 4
  br label %272

148:                                              ; preds = %111
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %9, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %10, align 4
  br label %271

152:                                              ; preds = %112
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %9, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %10, align 4
  br label %270

156:                                              ; preds = %116
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %9, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %10, align 4
  br label %196

160:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %161 = load ptr, ptr %14, align 8, !tbaa !5
  %162 = load i32, ptr %23, align 4, !tbaa !9
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds %"class.squish::Vec3", ptr %161, i64 %163
  %165 = invoke noundef float @_ZN6squish3DotERKNS_4Vec3ES2_(ptr noundef nonnull align 4 dereferenceable(12) %164, ptr noundef nonnull align 4 dereferenceable(12) %17)
          to label %166 unwind label %176

166:                                              ; preds = %160
  store float %165, ptr %24, align 4, !tbaa !13
  %167 = load float, ptr %24, align 4, !tbaa !13
  %168 = load float, ptr %21, align 4, !tbaa !13
  %169 = fcmp olt float %167, %168
  br i1 %169, label %170, label %180

170:                                              ; preds = %166
  %171 = load ptr, ptr %14, align 8, !tbaa !5
  %172 = load i32, ptr %23, align 4, !tbaa !9
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds %"class.squish::Vec3", ptr %171, i64 %173
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %174, i64 12, i1 false), !tbaa.struct !15
  %175 = load float, ptr %24, align 4, !tbaa !13
  store float %175, ptr %21, align 4, !tbaa !13
  br label %191

176:                                              ; preds = %160
  %177 = landingpad { ptr, i32 }
          cleanup
  %178 = extractvalue { ptr, i32 } %177, 0
  store ptr %178, ptr %9, align 8
  %179 = extractvalue { ptr, i32 } %177, 1
  store i32 %179, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %196

180:                                              ; preds = %166
  %181 = load float, ptr %24, align 4, !tbaa !13
  %182 = load float, ptr %22, align 4, !tbaa !13
  %183 = fcmp ogt float %181, %182
  br i1 %183, label %184, label %190

184:                                              ; preds = %180
  %185 = load ptr, ptr %14, align 8, !tbaa !5
  %186 = load i32, ptr %23, align 4, !tbaa !9
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds %"class.squish::Vec3", ptr %185, i64 %187
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 %188, i64 12, i1 false), !tbaa.struct !15
  %189 = load float, ptr %24, align 4, !tbaa !13
  store float %189, ptr %22, align 4, !tbaa !13
  br label %190

190:                                              ; preds = %184, %180
  br label %191

191:                                              ; preds = %190, %170
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %192

192:                                              ; preds = %191
  %193 = load i32, ptr %23, align 4, !tbaa !9
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr %23, align 4, !tbaa !9
  br label %123, !llvm.loop !21

195:                                              ; preds = %127
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %197

196:                                              ; preds = %176, %156
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %270

197:                                              ; preds = %195, %113
  call void @llvm.lifetime.start.p0(i64 12, ptr %25) #7
  invoke void @_ZN6squish4Vec3C2Ef(ptr noundef nonnull align 4 dereferenceable(12) %25, float noundef 1.000000e+00)
          to label %198 unwind label %229

198:                                              ; preds = %197
  call void @llvm.lifetime.start.p0(i64 12, ptr %26) #7
  invoke void @_ZN6squish4Vec3C2Ef(ptr noundef nonnull align 4 dereferenceable(12) %26, float noundef 0.000000e+00)
          to label %199 unwind label %233

199:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 12, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %28) #7
  %200 = invoke { <2 x float>, float } @_ZN6squish3MaxERKNS_4Vec3ES2_(ptr noundef nonnull align 4 dereferenceable(12) %26, ptr noundef nonnull align 4 dereferenceable(12) %19)
          to label %201 unwind label %237

201:                                              ; preds = %199
  store { <2 x float>, float } %200, ptr %29, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 8 %29, i64 12, i1 false)
  %202 = invoke { <2 x float>, float } @_ZN6squish3MinERKNS_4Vec3ES2_(ptr noundef nonnull align 4 dereferenceable(12) %25, ptr noundef nonnull align 4 dereferenceable(12) %28)
          to label %203 unwind label %237

203:                                              ; preds = %201
  store { <2 x float>, float } %202, ptr %30, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 8 %30, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %27, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 12, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %31) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %32) #7
  %204 = invoke { <2 x float>, float } @_ZN6squish3MaxERKNS_4Vec3ES2_(ptr noundef nonnull align 4 dereferenceable(12) %26, ptr noundef nonnull align 4 dereferenceable(12) %20)
          to label %205 unwind label %241

205:                                              ; preds = %203
  store { <2 x float>, float } %204, ptr %33, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 8 %33, i64 12, i1 false)
  %206 = invoke { <2 x float>, float } @_ZN6squish3MinERKNS_4Vec3ES2_(ptr noundef nonnull align 4 dereferenceable(12) %25, ptr noundef nonnull align 4 dereferenceable(12) %32)
          to label %207 unwind label %241

207:                                              ; preds = %205
  store { <2 x float>, float } %206, ptr %34, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 8 %34, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 %31, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 12, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %31) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %35) #7
  invoke void @_ZN6squish4Vec3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %35, float noundef 3.100000e+01, float noundef 6.300000e+01, float noundef 3.100000e+01)
          to label %208 unwind label %245

208:                                              ; preds = %207
  call void @llvm.lifetime.start.p0(i64 12, ptr %36) #7
  invoke void @_ZN6squish4Vec3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %36, float noundef 0x3FA0842100000000, float noundef 0x3F90410420000000, float noundef 0x3FA0842100000000)
          to label %209 unwind label %249

209:                                              ; preds = %208
  call void @llvm.lifetime.start.p0(i64 12, ptr %37) #7
  invoke void @_ZN6squish4Vec3C2Ef(ptr noundef nonnull align 4 dereferenceable(12) %37, float noundef 5.000000e-01)
          to label %210 unwind label %253

210:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 12, ptr %38) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %39) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %40) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %41) #7
  %211 = invoke { <2 x float>, float } @_ZN6squishmlERKNS_4Vec3ES2_(ptr noundef nonnull align 4 dereferenceable(12) %35, ptr noundef nonnull align 4 dereferenceable(12) %19)
          to label %212 unwind label %257

212:                                              ; preds = %210
  store { <2 x float>, float } %211, ptr %42, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %41, ptr align 8 %42, i64 12, i1 false)
  %213 = invoke { <2 x float>, float } @_ZN6squishplERKNS_4Vec3ES2_(ptr noundef nonnull align 4 dereferenceable(12) %41, ptr noundef nonnull align 4 dereferenceable(12) %37)
          to label %214 unwind label %257

214:                                              ; preds = %212
  store { <2 x float>, float } %213, ptr %43, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %40, ptr align 8 %43, i64 12, i1 false)
  %215 = invoke { <2 x float>, float } @_ZN6squish8TruncateERKNS_4Vec3E(ptr noundef nonnull align 4 dereferenceable(12) %40)
          to label %216 unwind label %257

216:                                              ; preds = %214
  store { <2 x float>, float } %215, ptr %44, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %39, ptr align 8 %44, i64 12, i1 false)
  %217 = invoke { <2 x float>, float } @_ZN6squishmlERKNS_4Vec3ES2_(ptr noundef nonnull align 4 dereferenceable(12) %39, ptr noundef nonnull align 4 dereferenceable(12) %36)
          to label %218 unwind label %257

218:                                              ; preds = %216
  store { <2 x float>, float } %217, ptr %45, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %38, ptr align 8 %45, i64 12, i1 false)
  %219 = getelementptr inbounds %"class.squish::RangeFit", ptr %54, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %219, ptr align 4 %38, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 12, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %38) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %46) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %47) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %48) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %49) #7
  %220 = invoke { <2 x float>, float } @_ZN6squishmlERKNS_4Vec3ES2_(ptr noundef nonnull align 4 dereferenceable(12) %35, ptr noundef nonnull align 4 dereferenceable(12) %20)
          to label %221 unwind label %261

221:                                              ; preds = %218
  store { <2 x float>, float } %220, ptr %50, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %49, ptr align 8 %50, i64 12, i1 false)
  %222 = invoke { <2 x float>, float } @_ZN6squishplERKNS_4Vec3ES2_(ptr noundef nonnull align 4 dereferenceable(12) %49, ptr noundef nonnull align 4 dereferenceable(12) %37)
          to label %223 unwind label %261

223:                                              ; preds = %221
  store { <2 x float>, float } %222, ptr %51, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %48, ptr align 8 %51, i64 12, i1 false)
  %224 = invoke { <2 x float>, float } @_ZN6squish8TruncateERKNS_4Vec3E(ptr noundef nonnull align 4 dereferenceable(12) %48)
          to label %225 unwind label %261

225:                                              ; preds = %223
  store { <2 x float>, float } %224, ptr %52, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %47, ptr align 8 %52, i64 12, i1 false)
  %226 = invoke { <2 x float>, float } @_ZN6squishmlERKNS_4Vec3ES2_(ptr noundef nonnull align 4 dereferenceable(12) %47, ptr noundef nonnull align 4 dereferenceable(12) %36)
          to label %227 unwind label %261

227:                                              ; preds = %225
  store { <2 x float>, float } %226, ptr %53, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %46, ptr align 8 %53, i64 12, i1 false)
  %228 = getelementptr inbounds %"class.squish::RangeFit", ptr %54, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %228, ptr align 4 %46, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 12, ptr %49) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %48) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %47) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %46) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  ret void

229:                                              ; preds = %197
  %230 = landingpad { ptr, i32 }
          cleanup
  %231 = extractvalue { ptr, i32 } %230, 0
  store ptr %231, ptr %9, align 8
  %232 = extractvalue { ptr, i32 } %230, 1
  store i32 %232, ptr %10, align 4
  br label %269

233:                                              ; preds = %198
  %234 = landingpad { ptr, i32 }
          cleanup
  %235 = extractvalue { ptr, i32 } %234, 0
  store ptr %235, ptr %9, align 8
  %236 = extractvalue { ptr, i32 } %234, 1
  store i32 %236, ptr %10, align 4
  br label %268

237:                                              ; preds = %201, %199
  %238 = landingpad { ptr, i32 }
          cleanup
  %239 = extractvalue { ptr, i32 } %238, 0
  store ptr %239, ptr %9, align 8
  %240 = extractvalue { ptr, i32 } %238, 1
  store i32 %240, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %27) #7
  br label %268

241:                                              ; preds = %205, %203
  %242 = landingpad { ptr, i32 }
          cleanup
  %243 = extractvalue { ptr, i32 } %242, 0
  store ptr %243, ptr %9, align 8
  %244 = extractvalue { ptr, i32 } %242, 1
  store i32 %244, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %31) #7
  br label %268

245:                                              ; preds = %207
  %246 = landingpad { ptr, i32 }
          cleanup
  %247 = extractvalue { ptr, i32 } %246, 0
  store ptr %247, ptr %9, align 8
  %248 = extractvalue { ptr, i32 } %246, 1
  store i32 %248, ptr %10, align 4
  br label %267

249:                                              ; preds = %208
  %250 = landingpad { ptr, i32 }
          cleanup
  %251 = extractvalue { ptr, i32 } %250, 0
  store ptr %251, ptr %9, align 8
  %252 = extractvalue { ptr, i32 } %250, 1
  store i32 %252, ptr %10, align 4
  br label %266

253:                                              ; preds = %209
  %254 = landingpad { ptr, i32 }
          cleanup
  %255 = extractvalue { ptr, i32 } %254, 0
  store ptr %255, ptr %9, align 8
  %256 = extractvalue { ptr, i32 } %254, 1
  store i32 %256, ptr %10, align 4
  br label %265

257:                                              ; preds = %216, %214, %212, %210
  %258 = landingpad { ptr, i32 }
          cleanup
  %259 = extractvalue { ptr, i32 } %258, 0
  store ptr %259, ptr %9, align 8
  %260 = extractvalue { ptr, i32 } %258, 1
  store i32 %260, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %38) #7
  br label %265

261:                                              ; preds = %225, %223, %221, %218
  %262 = landingpad { ptr, i32 }
          cleanup
  %263 = extractvalue { ptr, i32 } %262, 0
  store ptr %263, ptr %9, align 8
  %264 = extractvalue { ptr, i32 } %262, 1
  store i32 %264, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %49) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %48) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %47) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %46) #7
  br label %265

265:                                              ; preds = %261, %257, %253
  call void @llvm.lifetime.end.p0(i64 12, ptr %37) #7
  br label %266

266:                                              ; preds = %265, %249
  call void @llvm.lifetime.end.p0(i64 12, ptr %36) #7
  br label %267

267:                                              ; preds = %266, %245
  call void @llvm.lifetime.end.p0(i64 12, ptr %35) #7
  br label %268

268:                                              ; preds = %267, %241, %237, %233
  call void @llvm.lifetime.end.p0(i64 12, ptr %26) #7
  br label %269

269:                                              ; preds = %268, %229
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #7
  br label %270

270:                                              ; preds = %269, %196, %152
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #7
  br label %271

271:                                              ; preds = %270, %148
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #7
  br label %272

272:                                              ; preds = %271, %144
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #7
  br label %273

273:                                              ; preds = %272, %140
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #7
  br label %274

274:                                              ; preds = %273, %136
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %275

275:                                              ; preds = %274, %132
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %276

276:                                              ; preds = %275, %128
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %277

277:                                              ; preds = %276, %88, %81, %77
  call void @_ZN6squish9ColourFitD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %54) #7
  br label %278

278:                                              ; preds = %277
  %279 = load ptr, ptr %9, align 8
  %280 = load i32, ptr %10, align 4
  %281 = insertvalue { ptr, i32 } poison, ptr %279, 0
  %282 = insertvalue { ptr, i32 } %281, i32 %280, 1
  resume { ptr, i32 } %282
}

declare void @_ZN6squish9ColourFitC2EPKNS_9ColourSetEi(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef, i32 noundef) unnamed_addr #1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

declare void @_ZN6squish25ComputeWeightedCovarianceEiPKNS_4Vec3EPKf(ptr dead_on_unwind writable sret(%"class.squish::Sym3x3") align 4, i32 noundef, ptr noundef, ptr noundef) #1

declare { <2 x float>, float } @_ZN6squish25ComputePrincipleComponentERKNS_6Sym3x3E(ptr noundef nonnull align 4 dereferenceable(24)) #1

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

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

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

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

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

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

; Function Attrs: nounwind
declare void @_ZN6squish9ColourFitD2Ev(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #6

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{i64 0, i64 4, !13, i64 4, i64 4, !13, i64 8, i64 4, !13}
!16 = !{!17, !14, i64 56}
!17 = !{!"_ZTSN6squish8RangeFitE", !18, i64 0, !19, i64 20, !19, i64 32, !19, i64 44, !14, i64 56}
!18 = !{!"_ZTSN6squish9ColourFitE", !6, i64 8, !10, i64 16}
!19 = !{!"_ZTSN6squish4Vec3E", !14, i64 0, !14, i64 4, !14, i64 8}
!20 = !{!18, !6, i64 8}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}


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

%"class.squish::Vec3" = type { float, float, float }
%"class.squish::Sym3x3" = type { [6 x float] }

@_ZTVN6squish8RangeFitE = external dso_local unnamed_addr constant { [6 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6squish8RangeFitC2EPKNS_9ColourSetEiPf(ptr noundef nonnull align 8 dereferenceable(60) %0, ptr noundef %1, i32 noundef %2, ptr noundef readonly %3) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.squish::Vec3", align 4
  %6 = alloca %"class.squish::Vec3", align 4
  %7 = alloca %"class.squish::Sym3x3", align 4
  %8 = alloca %"class.squish::Vec3", align 8
  %9 = alloca %"class.squish::Vec3", align 8
  %10 = alloca %"class.squish::Vec3", align 8
  %11 = alloca %"class.squish::Vec3", align 4
  %12 = alloca %"class.squish::Vec3", align 4
  %13 = alloca %"class.squish::Vec3", align 8
  %14 = alloca %"class.squish::Vec3", align 8
  %15 = alloca %"class.squish::Vec3", align 4
  %16 = alloca %"class.squish::Vec3", align 4
  %17 = alloca %"class.squish::Vec3", align 4
  %18 = alloca %"class.squish::Vec3", align 8
  %19 = alloca %"class.squish::Vec3", align 8
  %20 = alloca %"class.squish::Vec3", align 8
  %21 = alloca %"class.squish::Vec3", align 8
  %22 = alloca %"class.squish::Vec3", align 8
  %23 = alloca %"class.squish::Vec3", align 8
  tail call void @_ZN6squish9ColourFitC2EPKNS_9ColourSetEi(ptr noundef nonnull align 8 dereferenceable(20) %0, ptr noundef %1, i32 noundef %2)
  store ptr getelementptr inbounds inrange(-16, 32) (i8, ptr @_ZTVN6squish8RangeFitE, i64 16), ptr %0, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %0, i64 20
  tail call void @_ZN6squish4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %24)
  %25 = getelementptr inbounds i8, ptr %0, i64 32
  tail call void @_ZN6squish4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %25)
  %26 = getelementptr inbounds i8, ptr %0, i64 44
  tail call void @_ZN6squish4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %26)
  %.not = icmp eq ptr %3, null
  br i1 %.not, label %33, label %27

27:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #8
  %28 = load float, ptr %3, align 4, !tbaa !8
  %29 = getelementptr inbounds i8, ptr %3, i64 4
  %30 = load float, ptr %29, align 4, !tbaa !8
  %31 = getelementptr inbounds i8, ptr %3, i64 8
  %32 = load float, ptr %31, align 4, !tbaa !8
  call void @_ZN6squish4Vec3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %5, float noundef %28, float noundef %30, float noundef %32)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %24, ptr noundef nonnull align 4 dereferenceable(12) %5, i64 12, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #8
  br label %34

33:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #8
  call void @_ZN6squish4Vec3C2Ef(ptr noundef nonnull align 4 dereferenceable(12) %6, float noundef 1.000000e+00)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %24, ptr noundef nonnull align 4 dereferenceable(12) %6, i64 12, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #8
  br label %34

34:                                               ; preds = %33, %27
  %35 = getelementptr inbounds i8, ptr %0, i64 56
  store float 0x47EFFFFFE0000000, ptr %35, align 8, !tbaa !12
  %36 = getelementptr inbounds i8, ptr %0, i64 8
  %37 = load ptr, ptr %36, align 8, !tbaa !18
  %38 = call noundef i32 @_ZNK6squish9ColourSet8GetCountEv(ptr noundef nonnull align 4 dereferenceable(325) %37)
  %39 = load ptr, ptr %36, align 8, !tbaa !18
  %40 = call noundef ptr @_ZNK6squish9ColourSet9GetPointsEv(ptr noundef nonnull align 4 dereferenceable(325) %39)
  %41 = load ptr, ptr %36, align 8, !tbaa !18
  %42 = call noundef ptr @_ZNK6squish9ColourSet10GetWeightsEv(ptr noundef nonnull align 4 dereferenceable(325) %41)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #8
  invoke void @_ZN6squish25ComputeWeightedCovarianceEiPKNS_4Vec3EPKf(ptr dead_on_unwind nonnull writable sret(%"class.squish::Sym3x3") align 4 %7, i32 noundef %38, ptr noundef %40, ptr noundef %42)
          to label %43 unwind label %49

43:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #8
  %44 = invoke { <2 x float>, float } @_ZN6squish25ComputePrincipleComponentERKNS_6Sym3x3E(ptr noundef nonnull align 4 dereferenceable(24) %7)
          to label %45 unwind label %51

45:                                               ; preds = %43
  %.fca.0.extract61 = extractvalue { <2 x float>, float } %44, 0
  %.fca.1.extract62 = extractvalue { <2 x float>, float } %44, 1
  store <2 x float> %.fca.0.extract61, ptr %8, align 8
  %.sroa.264.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  store float %.fca.1.extract62, ptr %.sroa.264.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #8
  call void @_ZN6squish4Vec3C2Ef(ptr noundef nonnull align 4 dereferenceable(12) %9, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #8
  call void @_ZN6squish4Vec3C2Ef(ptr noundef nonnull align 4 dereferenceable(12) %10, float noundef 0.000000e+00)
  %46 = icmp sgt i32 %38, 0
  br i1 %46, label %47, label %.loopexit

47:                                               ; preds = %45
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %40, i64 12, i1 false), !tbaa.struct !11
  call void @llvm.memmove.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %40, i64 12, i1 false)
  %48 = call noundef float @_ZN6squish3DotERKNS_4Vec3ES2_(ptr noundef nonnull align 4 dereferenceable(12) %40, ptr noundef nonnull align 4 dereferenceable(12) %8)
  %.not104 = icmp eq i32 %38, 1
  br i1 %.not104, label %.loopexit, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %47
  %wide.trip.count = zext nneg i32 %38 to i64
  br label %.lr.ph

49:                                               ; preds = %34
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %94

51:                                               ; preds = %43
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %93

.lr.ph:                                           ; preds = %.lr.ph.preheader, %58
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next, %58 ]
  %.088103 = phi float [ %48, %.lr.ph.preheader ], [ %.189, %58 ]
  %.090102 = phi float [ %48, %.lr.ph.preheader ], [ %.191, %58 ]
  %53 = getelementptr inbounds %"class.squish::Vec3", ptr %40, i64 %indvars.iv
  %54 = call noundef float @_ZN6squish3DotERKNS_4Vec3ES2_(ptr noundef nonnull align 4 dereferenceable(12) %53, ptr noundef nonnull align 4 dereferenceable(12) %8)
  %55 = fcmp olt float %54, %.088103
  br i1 %55, label %.sink.split, label %56

56:                                               ; preds = %.lr.ph
  %57 = fcmp ogt float %54, %.090102
  br i1 %57, label %.sink.split, label %58

.sink.split:                                      ; preds = %56, %.lr.ph
  %.sink = phi ptr [ %9, %.lr.ph ], [ %10, %56 ]
  %.191.ph = phi float [ %.090102, %.lr.ph ], [ %54, %56 ]
  %.189.ph = phi float [ %54, %.lr.ph ], [ %.088103, %56 ]
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %.sink, ptr noundef nonnull align 4 dereferenceable(12) %53, i64 12, i1 false)
  br label %58

58:                                               ; preds = %.sink.split, %56
  %.191 = phi float [ %.090102, %56 ], [ %.191.ph, %.sink.split ]
  %.189 = phi float [ %.088103, %56 ], [ %.189.ph, %.sink.split ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph, !llvm.loop !19

.loopexit:                                        ; preds = %58, %47, %45
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #8
  call void @_ZN6squish4Vec3C2Ef(ptr noundef nonnull align 4 dereferenceable(12) %11, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #8
  call void @_ZN6squish4Vec3C2Ef(ptr noundef nonnull align 4 dereferenceable(12) %12, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #8
  %59 = invoke { <2 x float>, float } @_ZN6squish3MaxERKNS_4Vec3ES2_(ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %9)
          to label %60 unwind label %83

60:                                               ; preds = %.loopexit
  %.fca.0.extract46 = extractvalue { <2 x float>, float } %59, 0
  %.fca.1.extract47 = extractvalue { <2 x float>, float } %59, 1
  store <2 x float> %.fca.0.extract46, ptr %13, align 8
  %.sroa.249.0..sroa_idx = getelementptr inbounds i8, ptr %13, i64 8
  store float %.fca.1.extract47, ptr %.sroa.249.0..sroa_idx, align 8
  %61 = invoke { <2 x float>, float } @_ZN6squish3MinERKNS_4Vec3ES2_(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %13)
          to label %62 unwind label %83

62:                                               ; preds = %60
  %.fca.0.extract42 = extractvalue { <2 x float>, float } %61, 0
  %.fca.1.extract43 = extractvalue { <2 x float>, float } %61, 1
  store <2 x float> %.fca.0.extract42, ptr %9, align 8
  %.sroa.551.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  store float %.fca.1.extract43, ptr %.sroa.551.0..sroa_idx, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #8
  %63 = invoke { <2 x float>, float } @_ZN6squish3MaxERKNS_4Vec3ES2_(ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %10)
          to label %64 unwind label %85

64:                                               ; preds = %62
  %.fca.0.extract36 = extractvalue { <2 x float>, float } %63, 0
  %.fca.1.extract37 = extractvalue { <2 x float>, float } %63, 1
  store <2 x float> %.fca.0.extract36, ptr %14, align 8
  %.sroa.239.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 8
  store float %.fca.1.extract37, ptr %.sroa.239.0..sroa_idx, align 8
  %65 = invoke { <2 x float>, float } @_ZN6squish3MinERKNS_4Vec3ES2_(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %14)
          to label %66 unwind label %85

66:                                               ; preds = %64
  %.fca.0.extract32 = extractvalue { <2 x float>, float } %65, 0
  %.fca.1.extract33 = extractvalue { <2 x float>, float } %65, 1
  store <2 x float> %.fca.0.extract32, ptr %10, align 8
  %.sroa.541.0..sroa_idx = getelementptr inbounds i8, ptr %10, i64 8
  store float %.fca.1.extract33, ptr %.sroa.541.0..sroa_idx, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %15) #8
  call void @_ZN6squish4Vec3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %15, float noundef 3.100000e+01, float noundef 6.300000e+01, float noundef 3.100000e+01)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %16) #8
  call void @_ZN6squish4Vec3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %16, float noundef 0x3FA0842100000000, float noundef 0x3F90410420000000, float noundef 0x3FA0842100000000)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %17) #8
  call void @_ZN6squish4Vec3C2Ef(ptr noundef nonnull align 4 dereferenceable(12) %17, float noundef 5.000000e-01)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %18) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %19) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %20) #8
  %67 = invoke { <2 x float>, float } @_ZN6squishmlERKNS_4Vec3ES2_(ptr noundef nonnull align 4 dereferenceable(12) %15, ptr noundef nonnull align 4 dereferenceable(12) %9)
          to label %68 unwind label %87

68:                                               ; preds = %66
  %.fca.0.extract26 = extractvalue { <2 x float>, float } %67, 0
  %.fca.1.extract27 = extractvalue { <2 x float>, float } %67, 1
  store <2 x float> %.fca.0.extract26, ptr %20, align 8
  %.sroa.229.0..sroa_idx = getelementptr inbounds i8, ptr %20, i64 8
  store float %.fca.1.extract27, ptr %.sroa.229.0..sroa_idx, align 8
  %69 = invoke { <2 x float>, float } @_ZN6squishplERKNS_4Vec3ES2_(ptr noundef nonnull align 4 dereferenceable(12) %20, ptr noundef nonnull align 4 dereferenceable(12) %17)
          to label %70 unwind label %87

70:                                               ; preds = %68
  %.fca.0.extract22 = extractvalue { <2 x float>, float } %69, 0
  %.fca.1.extract23 = extractvalue { <2 x float>, float } %69, 1
  store <2 x float> %.fca.0.extract22, ptr %19, align 8
  %.sroa.225.0..sroa_idx = getelementptr inbounds i8, ptr %19, i64 8
  store float %.fca.1.extract23, ptr %.sroa.225.0..sroa_idx, align 8
  %71 = invoke { <2 x float>, float } @_ZN6squish8TruncateERKNS_4Vec3E(ptr noundef nonnull align 4 dereferenceable(12) %19)
          to label %72 unwind label %87

72:                                               ; preds = %70
  %.fca.0.extract18 = extractvalue { <2 x float>, float } %71, 0
  %.fca.1.extract19 = extractvalue { <2 x float>, float } %71, 1
  store <2 x float> %.fca.0.extract18, ptr %18, align 8
  %.sroa.221.0..sroa_idx = getelementptr inbounds i8, ptr %18, i64 8
  store float %.fca.1.extract19, ptr %.sroa.221.0..sroa_idx, align 8
  %73 = invoke { <2 x float>, float } @_ZN6squishmlERKNS_4Vec3ES2_(ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(12) %16)
          to label %74 unwind label %87

74:                                               ; preds = %72
  %.fca.0.extract14 = extractvalue { <2 x float>, float } %73, 0
  %.fca.1.extract15 = extractvalue { <2 x float>, float } %73, 1
  store <2 x float> %.fca.0.extract14, ptr %25, align 8
  %.sroa.531.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 40
  store float %.fca.1.extract15, ptr %.sroa.531.0..sroa_idx, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %21) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %22) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %23) #8
  %75 = invoke { <2 x float>, float } @_ZN6squishmlERKNS_4Vec3ES2_(ptr noundef nonnull align 4 dereferenceable(12) %15, ptr noundef nonnull align 4 dereferenceable(12) %10)
          to label %76 unwind label %89

76:                                               ; preds = %74
  %.fca.0.extract9 = extractvalue { <2 x float>, float } %75, 0
  %.fca.1.extract10 = extractvalue { <2 x float>, float } %75, 1
  store <2 x float> %.fca.0.extract9, ptr %23, align 8
  %.sroa.212.0..sroa_idx = getelementptr inbounds i8, ptr %23, i64 8
  store float %.fca.1.extract10, ptr %.sroa.212.0..sroa_idx, align 8
  %77 = invoke { <2 x float>, float } @_ZN6squishplERKNS_4Vec3ES2_(ptr noundef nonnull align 4 dereferenceable(12) %23, ptr noundef nonnull align 4 dereferenceable(12) %17)
          to label %78 unwind label %89

78:                                               ; preds = %76
  %.fca.0.extract5 = extractvalue { <2 x float>, float } %77, 0
  %.fca.1.extract6 = extractvalue { <2 x float>, float } %77, 1
  store <2 x float> %.fca.0.extract5, ptr %22, align 8
  %.sroa.28.0..sroa_idx = getelementptr inbounds i8, ptr %22, i64 8
  store float %.fca.1.extract6, ptr %.sroa.28.0..sroa_idx, align 8
  %79 = invoke { <2 x float>, float } @_ZN6squish8TruncateERKNS_4Vec3E(ptr noundef nonnull align 4 dereferenceable(12) %22)
          to label %80 unwind label %89

80:                                               ; preds = %78
  %.fca.0.extract1 = extractvalue { <2 x float>, float } %79, 0
  %.fca.1.extract2 = extractvalue { <2 x float>, float } %79, 1
  store <2 x float> %.fca.0.extract1, ptr %21, align 8
  %.sroa.24.0..sroa_idx = getelementptr inbounds i8, ptr %21, i64 8
  store float %.fca.1.extract2, ptr %.sroa.24.0..sroa_idx, align 8
  %81 = invoke { <2 x float>, float } @_ZN6squishmlERKNS_4Vec3ES2_(ptr noundef nonnull align 4 dereferenceable(12) %21, ptr noundef nonnull align 4 dereferenceable(12) %16)
          to label %82 unwind label %89

82:                                               ; preds = %80
  %.fca.0.extract = extractvalue { <2 x float>, float } %81, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %81, 1
  store <2 x float> %.fca.0.extract, ptr %26, align 4
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 52
  store float %.fca.1.extract, ptr %.sroa.5.0..sroa_idx, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %23) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %21) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  ret void

83:                                               ; preds = %60, %.loopexit
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #8
  br label %92

85:                                               ; preds = %64, %62
  %86 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #8
  br label %92

87:                                               ; preds = %72, %70, %68, %66
  %88 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #8
  br label %91

89:                                               ; preds = %80, %78, %76, %74
  %90 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %23) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %21) #8
  br label %91

91:                                               ; preds = %89, %87
  %.pn = phi { ptr, i32 } [ %90, %89 ], [ %88, %87 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #8
  br label %92

92:                                               ; preds = %91, %85, %83
  %.pn.pn = phi { ptr, i32 } [ %.pn, %91 ], [ %86, %85 ], [ %84, %83 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #8
  br label %93

93:                                               ; preds = %92, %51
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %92 ], [ %52, %51 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #8
  br label %94

94:                                               ; preds = %93, %49
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %93 ], [ %50, %49 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  call void @_ZN6squish9ColourFitD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %0) #8
  resume { ptr, i32 } %.pn.pn.pn.pn
}

declare void @_ZN6squish9ColourFitC2EPKNS_9ColourSetEi(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef, i32 noundef) unnamed_addr #1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

declare void @_ZN6squish25ComputeWeightedCovarianceEiPKNS_4Vec3EPKf(ptr dead_on_unwind writable sret(%"class.squish::Sym3x3") align 4, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare { <2 x float>, float } @_ZN6squish25ComputePrincipleComponentERKNS_6Sym3x3E(ptr noundef nonnull align 4 dereferenceable(24)) local_unnamed_addr #1

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

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

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

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

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

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

; Function Attrs: nounwind
declare void @_ZN6squish9ColourFitD2Ev(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #6

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

attributes #0 = { 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 #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"float", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{i64 0, i64 4, !8, i64 4, i64 4, !8, i64 8, i64 4, !8}
!12 = !{!13, !9, i64 56}
!13 = !{!"_ZTSN6squish8RangeFitE", !14, i64 0, !17, i64 20, !17, i64 32, !17, i64 44, !9, i64 56}
!14 = !{!"_ZTSN6squish9ColourFitE", !15, i64 8, !16, i64 16}
!15 = !{!"any pointer", !10, i64 0}
!16 = !{!"int", !10, i64 0}
!17 = !{!"_ZTSN6squish4Vec3E", !9, i64 0, !9, i64 4, !9, i64 8}
!18 = !{!14, !15, i64 8}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass