; LLVM IR from zeux/meshoptimizer :: src (clusterizer)

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

%struct.meshopt_Bounds = type { [3 x float], float, [3 x float], [3 x float], float, [3 x i8], i8 }

@.str = external hidden unnamed_addr constant [21 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [57 x i8], align 1
@__PRETTY_FUNCTION__.meshopt_computeClusterBounds = external hidden unnamed_addr constant [105 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #0

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: nounwind
declare float @sqrtf(float noundef) #3

; 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: mustprogress uwtable
define dso_local void @meshopt_computeClusterBounds(ptr dead_on_unwind noalias writable sret(%struct.meshopt_Bounds) align 4 %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4, i64 noundef %5) #5 {
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca [512 x [3 x float]], align 16
  %14 = alloca [512 x [3 x [3 x float]]], align 16
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca [3 x float], align 4
  %25 = alloca [3 x float], align 4
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  %28 = alloca float, align 4
  %29 = alloca float, align 4
  %30 = alloca float, align 4
  %31 = alloca [4 x float], align 16
  %32 = alloca [3 x float], align 4
  %33 = alloca [4 x float], align 16
  %34 = alloca [3 x float], align 4
  %35 = alloca float, align 4
  %36 = alloca float, align 4
  %37 = alloca float, align 4
  %38 = alloca i64, align 8
  %39 = alloca float, align 4
  %40 = alloca float, align 4
  %41 = alloca i64, align 8
  %42 = alloca float, align 4
  %43 = alloca float, align 4
  %44 = alloca float, align 4
  %45 = alloca float, align 4
  %46 = alloca float, align 4
  %47 = alloca float, align 4
  %48 = alloca float, align 4
  %49 = alloca float, align 4
  %50 = alloca float, align 4
  %51 = alloca i32, align 4
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i64 %2, ptr %8, align 8, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  store i64 %4, ptr %10, align 8, !tbaa !9
  store i64 %5, ptr %11, align 8, !tbaa !9
  %52 = load i64, ptr %8, align 8, !tbaa !9
  %53 = urem i64 %52, 3
  %54 = icmp eq i64 %53, 0
  br i1 %54, label %55, label %56

55:                                               ; preds = %6
  br label %58

56:                                               ; preds = %6
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 1408, ptr noundef @__PRETTY_FUNCTION__.meshopt_computeClusterBounds) #9
  unreachable

57:                                               ; No predecessors!
  br label %58

58:                                               ; preds = %57, %55
  %59 = load i64, ptr %8, align 8, !tbaa !9
  %60 = udiv i64 %59, 3
  %61 = icmp ule i64 %60, 512
  br i1 %61, label %62, label %63

62:                                               ; preds = %58
  br label %65

63:                                               ; preds = %58
  call void @__assert_fail(ptr noundef @.str.19, ptr noundef @.str.1, i32 noundef 1409, ptr noundef @__PRETTY_FUNCTION__.meshopt_computeClusterBounds) #9
  unreachable

64:                                               ; No predecessors!
  br label %65

65:                                               ; preds = %64, %62
  %66 = load i64, ptr %11, align 8, !tbaa !9
  %67 = icmp uge i64 %66, 12
  br i1 %67, label %68, label %71

68:                                               ; preds = %65
  %69 = load i64, ptr %11, align 8, !tbaa !9
  %70 = icmp ule i64 %69, 256
  br label %71

71:                                               ; preds = %68, %65
  %72 = phi i1 [ false, %65 ], [ %70, %68 ]
  br i1 %72, label %73, label %74

73:                                               ; preds = %71
  br label %76

74:                                               ; preds = %71
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 1410, ptr noundef @__PRETTY_FUNCTION__.meshopt_computeClusterBounds) #9
  unreachable

75:                                               ; No predecessors!
  br label %76

76:                                               ; preds = %75, %73
  %77 = load i64, ptr %11, align 8, !tbaa !9
  %78 = urem i64 %77, 4
  %79 = icmp eq i64 %78, 0
  br i1 %79, label %80, label %81

80:                                               ; preds = %76
  br label %83

81:                                               ; preds = %76
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 1411, ptr noundef @__PRETTY_FUNCTION__.meshopt_computeClusterBounds) #9
  unreachable

82:                                               ; No predecessors!
  br label %83

83:                                               ; preds = %82, %80
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #10
  %84 = load i64, ptr %11, align 8, !tbaa !9
  %85 = udiv i64 %84, 4
  store i64 %85, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 6144, ptr %13) #10
  call void @llvm.lifetime.start.p0(i64 18432, ptr %14) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #10
  store i64 0, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #10
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %86

86:                                               ; preds = %276, %83
  %87 = load i64, ptr %16, align 8, !tbaa !9
  %88 = load i64, ptr %8, align 8, !tbaa !9
  %89 = icmp ult i64 %87, %88
  br i1 %89, label %91, label %90

90:                                               ; preds = %86
  store i32 2, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  br label %279

91:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #10
  %92 = load ptr, ptr %7, align 8, !tbaa !5
  %93 = load i64, ptr %16, align 8, !tbaa !9
  %94 = add i64 %93, 0
  %95 = getelementptr inbounds i32, ptr %92, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !11
  store i32 %96, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #10
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  %98 = load i64, ptr %16, align 8, !tbaa !9
  %99 = add i64 %98, 1
  %100 = getelementptr inbounds i32, ptr %97, i64 %99
  %101 = load i32, ptr %100, align 4, !tbaa !11
  store i32 %101, ptr %19, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #10
  %102 = load ptr, ptr %7, align 8, !tbaa !5
  %103 = load i64, ptr %16, align 8, !tbaa !9
  %104 = add i64 %103, 2
  %105 = getelementptr inbounds i32, ptr %102, i64 %104
  %106 = load i32, ptr %105, align 4, !tbaa !11
  store i32 %106, ptr %20, align 4, !tbaa !11
  %107 = load i32, ptr %18, align 4, !tbaa !11
  %108 = zext i32 %107 to i64
  %109 = load i64, ptr %10, align 8, !tbaa !9
  %110 = icmp ult i64 %108, %109
  br i1 %110, label %111, label %121

111:                                              ; preds = %91
  %112 = load i32, ptr %19, align 4, !tbaa !11
  %113 = zext i32 %112 to i64
  %114 = load i64, ptr %10, align 8, !tbaa !9
  %115 = icmp ult i64 %113, %114
  br i1 %115, label %116, label %121

116:                                              ; preds = %111
  %117 = load i32, ptr %20, align 4, !tbaa !11
  %118 = zext i32 %117 to i64
  %119 = load i64, ptr %10, align 8, !tbaa !9
  %120 = icmp ult i64 %118, %119
  br label %121

121:                                              ; preds = %116, %111, %91
  %122 = phi i1 [ false, %111 ], [ false, %91 ], [ %120, %116 ]
  br i1 %122, label %123, label %124

123:                                              ; preds = %121
  br label %126

124:                                              ; preds = %121
  call void @__assert_fail(ptr noundef @.str.11, ptr noundef @.str.1, i32 noundef 1425, ptr noundef @__PRETTY_FUNCTION__.meshopt_computeClusterBounds) #9
  unreachable

125:                                              ; No predecessors!
  br label %126

126:                                              ; preds = %125, %123
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #10
  %127 = load ptr, ptr %9, align 8, !tbaa !5
  %128 = load i64, ptr %12, align 8, !tbaa !9
  %129 = load i32, ptr %18, align 4, !tbaa !11
  %130 = zext i32 %129 to i64
  %131 = mul i64 %128, %130
  %132 = getelementptr inbounds float, ptr %127, i64 %131
  store ptr %132, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #10
  %133 = load ptr, ptr %9, align 8, !tbaa !5
  %134 = load i64, ptr %12, align 8, !tbaa !9
  %135 = load i32, ptr %19, align 4, !tbaa !11
  %136 = zext i32 %135 to i64
  %137 = mul i64 %134, %136
  %138 = getelementptr inbounds float, ptr %133, i64 %137
  store ptr %138, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #10
  %139 = load ptr, ptr %9, align 8, !tbaa !5
  %140 = load i64, ptr %12, align 8, !tbaa !9
  %141 = load i32, ptr %20, align 4, !tbaa !11
  %142 = zext i32 %141 to i64
  %143 = mul i64 %140, %142
  %144 = getelementptr inbounds float, ptr %139, i64 %143
  store ptr %144, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %24) #10
  %145 = load ptr, ptr %22, align 8, !tbaa !5
  %146 = getelementptr inbounds float, ptr %145, i64 0
  %147 = load float, ptr %146, align 4, !tbaa !13
  %148 = load ptr, ptr %21, align 8, !tbaa !5
  %149 = getelementptr inbounds float, ptr %148, i64 0
  %150 = load float, ptr %149, align 4, !tbaa !13
  %151 = fsub float %147, %150
  store float %151, ptr %24, align 4, !tbaa !13
  %152 = getelementptr inbounds float, ptr %24, i64 1
  %153 = load ptr, ptr %22, align 8, !tbaa !5
  %154 = getelementptr inbounds float, ptr %153, i64 1
  %155 = load float, ptr %154, align 4, !tbaa !13
  %156 = load ptr, ptr %21, align 8, !tbaa !5
  %157 = getelementptr inbounds float, ptr %156, i64 1
  %158 = load float, ptr %157, align 4, !tbaa !13
  %159 = fsub float %155, %158
  store float %159, ptr %152, align 4, !tbaa !13
  %160 = getelementptr inbounds float, ptr %24, i64 2
  %161 = load ptr, ptr %22, align 8, !tbaa !5
  %162 = getelementptr inbounds float, ptr %161, i64 2
  %163 = load float, ptr %162, align 4, !tbaa !13
  %164 = load ptr, ptr %21, align 8, !tbaa !5
  %165 = getelementptr inbounds float, ptr %164, i64 2
  %166 = load float, ptr %165, align 4, !tbaa !13
  %167 = fsub float %163, %166
  store float %167, ptr %160, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 12, ptr %25) #10
  %168 = load ptr, ptr %23, align 8, !tbaa !5
  %169 = getelementptr inbounds float, ptr %168, i64 0
  %170 = load float, ptr %169, align 4, !tbaa !13
  %171 = load ptr, ptr %21, align 8, !tbaa !5
  %172 = getelementptr inbounds float, ptr %171, i64 0
  %173 = load float, ptr %172, align 4, !tbaa !13
  %174 = fsub float %170, %173
  store float %174, ptr %25, align 4, !tbaa !13
  %175 = getelementptr inbounds float, ptr %25, i64 1
  %176 = load ptr, ptr %23, align 8, !tbaa !5
  %177 = getelementptr inbounds float, ptr %176, i64 1
  %178 = load float, ptr %177, align 4, !tbaa !13
  %179 = load ptr, ptr %21, align 8, !tbaa !5
  %180 = getelementptr inbounds float, ptr %179, i64 1
  %181 = load float, ptr %180, align 4, !tbaa !13
  %182 = fsub float %178, %181
  store float %182, ptr %175, align 4, !tbaa !13
  %183 = getelementptr inbounds float, ptr %25, i64 2
  %184 = load ptr, ptr %23, align 8, !tbaa !5
  %185 = getelementptr inbounds float, ptr %184, i64 2
  %186 = load float, ptr %185, align 4, !tbaa !13
  %187 = load ptr, ptr %21, align 8, !tbaa !5
  %188 = getelementptr inbounds float, ptr %187, i64 2
  %189 = load float, ptr %188, align 4, !tbaa !13
  %190 = fsub float %186, %189
  store float %190, ptr %183, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #10
  %191 = getelementptr inbounds [3 x float], ptr %24, i64 0, i64 1
  %192 = load float, ptr %191, align 4, !tbaa !13
  %193 = getelementptr inbounds [3 x float], ptr %25, i64 0, i64 2
  %194 = load float, ptr %193, align 4, !tbaa !13
  %195 = getelementptr inbounds [3 x float], ptr %24, i64 0, i64 2
  %196 = load float, ptr %195, align 4, !tbaa !13
  %197 = getelementptr inbounds [3 x float], ptr %25, i64 0, i64 1
  %198 = load float, ptr %197, align 4, !tbaa !13
  %199 = fmul float %196, %198
  %200 = fneg float %199
  %201 = call float @llvm.fmuladd.f32(float %192, float %194, float %200)
  store float %201, ptr %26, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #10
  %202 = getelementptr inbounds [3 x float], ptr %24, i64 0, i64 2
  %203 = load float, ptr %202, align 4, !tbaa !13
  %204 = getelementptr inbounds [3 x float], ptr %25, i64 0, i64 0
  %205 = load float, ptr %204, align 4, !tbaa !13
  %206 = getelementptr inbounds [3 x float], ptr %24, i64 0, i64 0
  %207 = load float, ptr %206, align 4, !tbaa !13
  %208 = getelementptr inbounds [3 x float], ptr %25, i64 0, i64 2
  %209 = load float, ptr %208, align 4, !tbaa !13
  %210 = fmul float %207, %209
  %211 = fneg float %210
  %212 = call float @llvm.fmuladd.f32(float %203, float %205, float %211)
  store float %212, ptr %27, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #10
  %213 = getelementptr inbounds [3 x float], ptr %24, i64 0, i64 0
  %214 = load float, ptr %213, align 4, !tbaa !13
  %215 = getelementptr inbounds [3 x float], ptr %25, i64 0, i64 1
  %216 = load float, ptr %215, align 4, !tbaa !13
  %217 = getelementptr inbounds [3 x float], ptr %24, i64 0, i64 1
  %218 = load float, ptr %217, align 4, !tbaa !13
  %219 = getelementptr inbounds [3 x float], ptr %25, i64 0, i64 0
  %220 = load float, ptr %219, align 4, !tbaa !13
  %221 = fmul float %218, %220
  %222 = fneg float %221
  %223 = call float @llvm.fmuladd.f32(float %214, float %216, float %222)
  store float %223, ptr %28, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #10
  %224 = load float, ptr %26, align 4, !tbaa !13
  %225 = load float, ptr %26, align 4, !tbaa !13
  %226 = load float, ptr %27, align 4, !tbaa !13
  %227 = load float, ptr %27, align 4, !tbaa !13
  %228 = fmul float %226, %227
  %229 = call float @llvm.fmuladd.f32(float %224, float %225, float %228)
  %230 = load float, ptr %28, align 4, !tbaa !13
  %231 = load float, ptr %28, align 4, !tbaa !13
  %232 = call float @llvm.fmuladd.f32(float %230, float %231, float %229)
  %233 = call float @sqrtf(float noundef %232) #10
  store float %233, ptr %29, align 4, !tbaa !13
  %234 = load float, ptr %29, align 4, !tbaa !13
  %235 = fcmp oeq float %234, 0.000000e+00
  br i1 %235, label %236, label %237

236:                                              ; preds = %126
  store i32 4, ptr %17, align 4
  br label %273

237:                                              ; preds = %126
  %238 = load float, ptr %26, align 4, !tbaa !13
  %239 = load float, ptr %29, align 4, !tbaa !13
  %240 = fdiv float %238, %239
  %241 = load i64, ptr %15, align 8, !tbaa !9
  %242 = getelementptr inbounds [512 x [3 x float]], ptr %13, i64 0, i64 %241
  %243 = getelementptr inbounds [3 x float], ptr %242, i64 0, i64 0
  store float %240, ptr %243, align 4, !tbaa !13
  %244 = load float, ptr %27, align 4, !tbaa !13
  %245 = load float, ptr %29, align 4, !tbaa !13
  %246 = fdiv float %244, %245
  %247 = load i64, ptr %15, align 8, !tbaa !9
  %248 = getelementptr inbounds [512 x [3 x float]], ptr %13, i64 0, i64 %247
  %249 = getelementptr inbounds [3 x float], ptr %248, i64 0, i64 1
  store float %246, ptr %249, align 4, !tbaa !13
  %250 = load float, ptr %28, align 4, !tbaa !13
  %251 = load float, ptr %29, align 4, !tbaa !13
  %252 = fdiv float %250, %251
  %253 = load i64, ptr %15, align 8, !tbaa !9
  %254 = getelementptr inbounds [512 x [3 x float]], ptr %13, i64 0, i64 %253
  %255 = getelementptr inbounds [3 x float], ptr %254, i64 0, i64 2
  store float %252, ptr %255, align 4, !tbaa !13
  %256 = load i64, ptr %15, align 8, !tbaa !9
  %257 = getelementptr inbounds [512 x [3 x [3 x float]]], ptr %14, i64 0, i64 %256
  %258 = getelementptr inbounds [3 x [3 x float]], ptr %257, i64 0, i64 0
  %259 = getelementptr inbounds [3 x float], ptr %258, i64 0, i64 0
  %260 = load ptr, ptr %21, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %259, ptr align 4 %260, i64 12, i1 false)
  %261 = load i64, ptr %15, align 8, !tbaa !9
  %262 = getelementptr inbounds [512 x [3 x [3 x float]]], ptr %14, i64 0, i64 %261
  %263 = getelementptr inbounds [3 x [3 x float]], ptr %262, i64 0, i64 1
  %264 = getelementptr inbounds [3 x float], ptr %263, i64 0, i64 0
  %265 = load ptr, ptr %22, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %264, ptr align 4 %265, i64 12, i1 false)
  %266 = load i64, ptr %15, align 8, !tbaa !9
  %267 = getelementptr inbounds [512 x [3 x [3 x float]]], ptr %14, i64 0, i64 %266
  %268 = getelementptr inbounds [3 x [3 x float]], ptr %267, i64 0, i64 2
  %269 = getelementptr inbounds [3 x float], ptr %268, i64 0, i64 0
  %270 = load ptr, ptr %23, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %269, ptr align 4 %270, i64 12, i1 false)
  %271 = load i64, ptr %15, align 8, !tbaa !9
  %272 = add i64 %271, 1
  store i64 %272, ptr %15, align 8, !tbaa !9
  store i32 0, ptr %17, align 4
  br label %273

273:                                              ; preds = %237, %236
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #10
  %274 = load i32, ptr %17, align 4
  switch i32 %274, label %620 [
    i32 0, label %275
    i32 4, label %276
  ]

275:                                              ; preds = %273
  br label %276

276:                                              ; preds = %275, %273
  %277 = load i64, ptr %16, align 8, !tbaa !9
  %278 = add i64 %277, 3
  store i64 %278, ptr %16, align 8, !tbaa !9
  br label %86, !llvm.loop !15

279:                                              ; preds = %90
  call void @llvm.memset.p0.i64(ptr align 4 %0, i8 0, i64 48, i1 false)
  %280 = load i64, ptr %15, align 8, !tbaa !9
  %281 = icmp eq i64 %280, 0
  br i1 %281, label %282, label %283

282:                                              ; preds = %279
  store i32 1, ptr %17, align 4
  br label %619

283:                                              ; preds = %279
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #10
  store float 0.000000e+00, ptr %30, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #10
  call void @llvm.memset.p0.i64(ptr align 16 %31, i8 0, i64 16, i1 false)
  %284 = getelementptr inbounds [4 x float], ptr %31, i64 0, i64 0
  %285 = getelementptr inbounds [512 x [3 x [3 x float]]], ptr %14, i64 0, i64 0
  %286 = getelementptr inbounds [3 x [3 x float]], ptr %285, i64 0, i64 0
  %287 = getelementptr inbounds [3 x float], ptr %286, i64 0, i64 0
  %288 = load i64, ptr %15, align 8, !tbaa !9
  %289 = mul i64 %288, 3
  call void @_ZN7meshoptL21computeBoundingSphereEPfPKfmmS2_mm(ptr noundef %284, ptr noundef %287, i64 noundef %289, i64 noundef 12, ptr noundef %30, i64 noundef 0, i64 noundef 7)
  call void @llvm.lifetime.start.p0(i64 12, ptr %32) #10
  %290 = getelementptr inbounds [4 x float], ptr %31, i64 0, i64 0
  %291 = load float, ptr %290, align 16, !tbaa !13
  store float %291, ptr %32, align 4, !tbaa !13
  %292 = getelementptr inbounds float, ptr %32, i64 1
  %293 = getelementptr inbounds [4 x float], ptr %31, i64 0, i64 1
  %294 = load float, ptr %293, align 4, !tbaa !13
  store float %294, ptr %292, align 4, !tbaa !13
  %295 = getelementptr inbounds float, ptr %32, i64 2
  %296 = getelementptr inbounds [4 x float], ptr %31, i64 0, i64 2
  %297 = load float, ptr %296, align 8, !tbaa !13
  store float %297, ptr %295, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #10
  call void @llvm.memset.p0.i64(ptr align 16 %33, i8 0, i64 16, i1 false)
  %298 = getelementptr inbounds [4 x float], ptr %33, i64 0, i64 0
  %299 = getelementptr inbounds [512 x [3 x float]], ptr %13, i64 0, i64 0
  %300 = getelementptr inbounds [3 x float], ptr %299, i64 0, i64 0
  %301 = load i64, ptr %15, align 8, !tbaa !9
  call void @_ZN7meshoptL21computeBoundingSphereEPfPKfmmS2_mm(ptr noundef %298, ptr noundef %300, i64 noundef %301, i64 noundef 12, ptr noundef %30, i64 noundef 0, i64 noundef 3)
  call void @llvm.lifetime.start.p0(i64 12, ptr %34) #10
  %302 = getelementptr inbounds [4 x float], ptr %33, i64 0, i64 0
  %303 = load float, ptr %302, align 16, !tbaa !13
  store float %303, ptr %34, align 4, !tbaa !13
  %304 = getelementptr inbounds float, ptr %34, i64 1
  %305 = getelementptr inbounds [4 x float], ptr %33, i64 0, i64 1
  %306 = load float, ptr %305, align 4, !tbaa !13
  store float %306, ptr %304, align 4, !tbaa !13
  %307 = getelementptr inbounds float, ptr %34, i64 2
  %308 = getelementptr inbounds [4 x float], ptr %33, i64 0, i64 2
  %309 = load float, ptr %308, align 8, !tbaa !13
  store float %309, ptr %307, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #10
  %310 = getelementptr inbounds [3 x float], ptr %34, i64 0, i64 0
  %311 = load float, ptr %310, align 4, !tbaa !13
  %312 = getelementptr inbounds [3 x float], ptr %34, i64 0, i64 0
  %313 = load float, ptr %312, align 4, !tbaa !13
  %314 = getelementptr inbounds [3 x float], ptr %34, i64 0, i64 1
  %315 = load float, ptr %314, align 4, !tbaa !13
  %316 = getelementptr inbounds [3 x float], ptr %34, i64 0, i64 1
  %317 = load float, ptr %316, align 4, !tbaa !13
  %318 = fmul float %315, %317
  %319 = call float @llvm.fmuladd.f32(float %311, float %313, float %318)
  %320 = getelementptr inbounds [3 x float], ptr %34, i64 0, i64 2
  %321 = load float, ptr %320, align 4, !tbaa !13
  %322 = getelementptr inbounds [3 x float], ptr %34, i64 0, i64 2
  %323 = load float, ptr %322, align 4, !tbaa !13
  %324 = call float @llvm.fmuladd.f32(float %321, float %323, float %319)
  %325 = call float @sqrtf(float noundef %324) #10
  store float %325, ptr %35, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #10
  %326 = load float, ptr %35, align 4, !tbaa !13
  %327 = fcmp oeq float %326, 0.000000e+00
  br i1 %327, label %328, label %329

328:                                              ; preds = %283
  br label %332

329:                                              ; preds = %283
  %330 = load float, ptr %35, align 4, !tbaa !13
  %331 = fdiv float 1.000000e+00, %330
  br label %332

332:                                              ; preds = %329, %328
  %333 = phi float [ 0.000000e+00, %328 ], [ %331, %329 ]
  store float %333, ptr %36, align 4, !tbaa !13
  %334 = load float, ptr %36, align 4, !tbaa !13
  %335 = getelementptr inbounds [3 x float], ptr %34, i64 0, i64 0
  %336 = load float, ptr %335, align 4, !tbaa !13
  %337 = fmul float %336, %334
  store float %337, ptr %335, align 4, !tbaa !13
  %338 = load float, ptr %36, align 4, !tbaa !13
  %339 = getelementptr inbounds [3 x float], ptr %34, i64 0, i64 1
  %340 = load float, ptr %339, align 4, !tbaa !13
  %341 = fmul float %340, %338
  store float %341, ptr %339, align 4, !tbaa !13
  %342 = load float, ptr %36, align 4, !tbaa !13
  %343 = getelementptr inbounds [3 x float], ptr %34, i64 0, i64 2
  %344 = load float, ptr %343, align 4, !tbaa !13
  %345 = fmul float %344, %342
  store float %345, ptr %343, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #10
  store float 1.000000e+00, ptr %37, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #10
  store i64 0, ptr %38, align 8, !tbaa !9
  br label %346

346:                                              ; preds = %382, %332
  %347 = load i64, ptr %38, align 8, !tbaa !9
  %348 = load i64, ptr %15, align 8, !tbaa !9
  %349 = icmp ult i64 %347, %348
  br i1 %349, label %351, label %350

350:                                              ; preds = %346
  store i32 5, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #10
  br label %385

351:                                              ; preds = %346
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #10
  %352 = load i64, ptr %38, align 8, !tbaa !9
  %353 = getelementptr inbounds [512 x [3 x float]], ptr %13, i64 0, i64 %352
  %354 = getelementptr inbounds [3 x float], ptr %353, i64 0, i64 0
  %355 = load float, ptr %354, align 4, !tbaa !13
  %356 = getelementptr inbounds [3 x float], ptr %34, i64 0, i64 0
  %357 = load float, ptr %356, align 4, !tbaa !13
  %358 = load i64, ptr %38, align 8, !tbaa !9
  %359 = getelementptr inbounds [512 x [3 x float]], ptr %13, i64 0, i64 %358
  %360 = getelementptr inbounds [3 x float], ptr %359, i64 0, i64 1
  %361 = load float, ptr %360, align 4, !tbaa !13
  %362 = getelementptr inbounds [3 x float], ptr %34, i64 0, i64 1
  %363 = load float, ptr %362, align 4, !tbaa !13
  %364 = fmul float %361, %363
  %365 = call float @llvm.fmuladd.f32(float %355, float %357, float %364)
  %366 = load i64, ptr %38, align 8, !tbaa !9
  %367 = getelementptr inbounds [512 x [3 x float]], ptr %13, i64 0, i64 %366
  %368 = getelementptr inbounds [3 x float], ptr %367, i64 0, i64 2
  %369 = load float, ptr %368, align 4, !tbaa !13
  %370 = getelementptr inbounds [3 x float], ptr %34, i64 0, i64 2
  %371 = load float, ptr %370, align 4, !tbaa !13
  %372 = call float @llvm.fmuladd.f32(float %369, float %371, float %365)
  store float %372, ptr %39, align 4, !tbaa !13
  %373 = load float, ptr %39, align 4, !tbaa !13
  %374 = load float, ptr %37, align 4, !tbaa !13
  %375 = fcmp olt float %373, %374
  br i1 %375, label %376, label %378

376:                                              ; preds = %351
  %377 = load float, ptr %39, align 4, !tbaa !13
  br label %380

378:                                              ; preds = %351
  %379 = load float, ptr %37, align 4, !tbaa !13
  br label %380

380:                                              ; preds = %378, %376
  %381 = phi float [ %377, %376 ], [ %379, %378 ]
  store float %381, ptr %37, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #10
  br label %382

382:                                              ; preds = %380
  %383 = load i64, ptr %38, align 8, !tbaa !9
  %384 = add i64 %383, 1
  store i64 %384, ptr %38, align 8, !tbaa !9
  br label %346, !llvm.loop !17

385:                                              ; preds = %350
  %386 = getelementptr inbounds [3 x float], ptr %32, i64 0, i64 0
  %387 = load float, ptr %386, align 4, !tbaa !13
  %388 = getelementptr inbounds %struct.meshopt_Bounds, ptr %0, i32 0, i32 0
  %389 = getelementptr inbounds [3 x float], ptr %388, i64 0, i64 0
  store float %387, ptr %389, align 4, !tbaa !13
  %390 = getelementptr inbounds [3 x float], ptr %32, i64 0, i64 1
  %391 = load float, ptr %390, align 4, !tbaa !13
  %392 = getelementptr inbounds %struct.meshopt_Bounds, ptr %0, i32 0, i32 0
  %393 = getelementptr inbounds [3 x float], ptr %392, i64 0, i64 1
  store float %391, ptr %393, align 4, !tbaa !13
  %394 = getelementptr inbounds [3 x float], ptr %32, i64 0, i64 2
  %395 = load float, ptr %394, align 4, !tbaa !13
  %396 = getelementptr inbounds %struct.meshopt_Bounds, ptr %0, i32 0, i32 0
  %397 = getelementptr inbounds [3 x float], ptr %396, i64 0, i64 2
  store float %395, ptr %397, align 4, !tbaa !13
  %398 = getelementptr inbounds [4 x float], ptr %31, i64 0, i64 3
  %399 = load float, ptr %398, align 4, !tbaa !13
  %400 = getelementptr inbounds %struct.meshopt_Bounds, ptr %0, i32 0, i32 1
  store float %399, ptr %400, align 4, !tbaa !18
  %401 = load float, ptr %37, align 4, !tbaa !13
  %402 = fcmp ole float %401, 0x3FB99999A0000000
  br i1 %402, label %403, label %406

403:                                              ; preds = %385
  %404 = getelementptr inbounds %struct.meshopt_Bounds, ptr %0, i32 0, i32 4
  store float 1.000000e+00, ptr %404, align 4, !tbaa !20
  %405 = getelementptr inbounds %struct.meshopt_Bounds, ptr %0, i32 0, i32 6
  store i8 127, ptr %405, align 1, !tbaa !21
  store i32 1, ptr %17, align 4
  br label %618

406:                                              ; preds = %385
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #10
  store float 0.000000e+00, ptr %40, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #10
  store i64 0, ptr %41, align 8, !tbaa !9
  br label %407

407:                                              ; preds = %494, %406
  %408 = load i64, ptr %41, align 8, !tbaa !9
  %409 = load i64, ptr %15, align 8, !tbaa !9
  %410 = icmp ult i64 %408, %409
  br i1 %410, label %412, label %411

411:                                              ; preds = %407
  store i32 8, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #10
  br label %497

412:                                              ; preds = %407
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #10
  %413 = getelementptr inbounds [3 x float], ptr %32, i64 0, i64 0
  %414 = load float, ptr %413, align 4, !tbaa !13
  %415 = load i64, ptr %41, align 8, !tbaa !9
  %416 = getelementptr inbounds [512 x [3 x [3 x float]]], ptr %14, i64 0, i64 %415
  %417 = getelementptr inbounds [3 x [3 x float]], ptr %416, i64 0, i64 0
  %418 = getelementptr inbounds [3 x float], ptr %417, i64 0, i64 0
  %419 = load float, ptr %418, align 4, !tbaa !13
  %420 = fsub float %414, %419
  store float %420, ptr %42, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #10
  %421 = getelementptr inbounds [3 x float], ptr %32, i64 0, i64 1
  %422 = load float, ptr %421, align 4, !tbaa !13
  %423 = load i64, ptr %41, align 8, !tbaa !9
  %424 = getelementptr inbounds [512 x [3 x [3 x float]]], ptr %14, i64 0, i64 %423
  %425 = getelementptr inbounds [3 x [3 x float]], ptr %424, i64 0, i64 0
  %426 = getelementptr inbounds [3 x float], ptr %425, i64 0, i64 1
  %427 = load float, ptr %426, align 4, !tbaa !13
  %428 = fsub float %422, %427
  store float %428, ptr %43, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #10
  %429 = getelementptr inbounds [3 x float], ptr %32, i64 0, i64 2
  %430 = load float, ptr %429, align 4, !tbaa !13
  %431 = load i64, ptr %41, align 8, !tbaa !9
  %432 = getelementptr inbounds [512 x [3 x [3 x float]]], ptr %14, i64 0, i64 %431
  %433 = getelementptr inbounds [3 x [3 x float]], ptr %432, i64 0, i64 0
  %434 = getelementptr inbounds [3 x float], ptr %433, i64 0, i64 2
  %435 = load float, ptr %434, align 4, !tbaa !13
  %436 = fsub float %430, %435
  store float %436, ptr %44, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #10
  %437 = load float, ptr %42, align 4, !tbaa !13
  %438 = load i64, ptr %41, align 8, !tbaa !9
  %439 = getelementptr inbounds [512 x [3 x float]], ptr %13, i64 0, i64 %438
  %440 = getelementptr inbounds [3 x float], ptr %439, i64 0, i64 0
  %441 = load float, ptr %440, align 4, !tbaa !13
  %442 = load float, ptr %43, align 4, !tbaa !13
  %443 = load i64, ptr %41, align 8, !tbaa !9
  %444 = getelementptr inbounds [512 x [3 x float]], ptr %13, i64 0, i64 %443
  %445 = getelementptr inbounds [3 x float], ptr %444, i64 0, i64 1
  %446 = load float, ptr %445, align 4, !tbaa !13
  %447 = fmul float %442, %446
  %448 = call float @llvm.fmuladd.f32(float %437, float %441, float %447)
  %449 = load float, ptr %44, align 4, !tbaa !13
  %450 = load i64, ptr %41, align 8, !tbaa !9
  %451 = getelementptr inbounds [512 x [3 x float]], ptr %13, i64 0, i64 %450
  %452 = getelementptr inbounds [3 x float], ptr %451, i64 0, i64 2
  %453 = load float, ptr %452, align 4, !tbaa !13
  %454 = call float @llvm.fmuladd.f32(float %449, float %453, float %448)
  store float %454, ptr %45, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #10
  %455 = getelementptr inbounds [3 x float], ptr %34, i64 0, i64 0
  %456 = load float, ptr %455, align 4, !tbaa !13
  %457 = load i64, ptr %41, align 8, !tbaa !9
  %458 = getelementptr inbounds [512 x [3 x float]], ptr %13, i64 0, i64 %457
  %459 = getelementptr inbounds [3 x float], ptr %458, i64 0, i64 0
  %460 = load float, ptr %459, align 4, !tbaa !13
  %461 = getelementptr inbounds [3 x float], ptr %34, i64 0, i64 1
  %462 = load float, ptr %461, align 4, !tbaa !13
  %463 = load i64, ptr %41, align 8, !tbaa !9
  %464 = getelementptr inbounds [512 x [3 x float]], ptr %13, i64 0, i64 %463
  %465 = getelementptr inbounds [3 x float], ptr %464, i64 0, i64 1
  %466 = load float, ptr %465, align 4, !tbaa !13
  %467 = fmul float %462, %466
  %468 = call float @llvm.fmuladd.f32(float %456, float %460, float %467)
  %469 = getelementptr inbounds [3 x float], ptr %34, i64 0, i64 2
  %470 = load float, ptr %469, align 4, !tbaa !13
  %471 = load i64, ptr %41, align 8, !tbaa !9
  %472 = getelementptr inbounds [512 x [3 x float]], ptr %13, i64 0, i64 %471
  %473 = getelementptr inbounds [3 x float], ptr %472, i64 0, i64 2
  %474 = load float, ptr %473, align 4, !tbaa !13
  %475 = call float @llvm.fmuladd.f32(float %470, float %474, float %468)
  store float %475, ptr %46, align 4, !tbaa !13
  %476 = load float, ptr %46, align 4, !tbaa !13
  %477 = fcmp ogt float %476, 0.000000e+00
  br i1 %477, label %478, label %479

478:                                              ; preds = %412
  br label %481

479:                                              ; preds = %412
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.1, i32 noundef 1521, ptr noundef @__PRETTY_FUNCTION__.meshopt_computeClusterBounds) #9
  unreachable

480:                                              ; No predecessors!
  br label %481

481:                                              ; preds = %480, %478
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #10
  %482 = load float, ptr %45, align 4, !tbaa !13
  %483 = load float, ptr %46, align 4, !tbaa !13
  %484 = fdiv float %482, %483
  store float %484, ptr %47, align 4, !tbaa !13
  %485 = load float, ptr %47, align 4, !tbaa !13
  %486 = load float, ptr %40, align 4, !tbaa !13
  %487 = fcmp ogt float %485, %486
  br i1 %487, label %488, label %490

488:                                              ; preds = %481
  %489 = load float, ptr %47, align 4, !tbaa !13
  br label %492

490:                                              ; preds = %481
  %491 = load float, ptr %40, align 4, !tbaa !13
  br label %492

492:                                              ; preds = %490, %488
  %493 = phi float [ %489, %488 ], [ %491, %490 ]
  store float %493, ptr %40, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #10
  br label %494

494:                                              ; preds = %492
  %495 = load i64, ptr %41, align 8, !tbaa !9
  %496 = add i64 %495, 1
  store i64 %496, ptr %41, align 8, !tbaa !9
  br label %407, !llvm.loop !22

497:                                              ; preds = %411
  %498 = getelementptr inbounds [3 x float], ptr %32, i64 0, i64 0
  %499 = load float, ptr %498, align 4, !tbaa !13
  %500 = getelementptr inbounds [3 x float], ptr %34, i64 0, i64 0
  %501 = load float, ptr %500, align 4, !tbaa !13
  %502 = load float, ptr %40, align 4, !tbaa !13
  %503 = fneg float %501
  %504 = call float @llvm.fmuladd.f32(float %503, float %502, float %499)
  %505 = getelementptr inbounds %struct.meshopt_Bounds, ptr %0, i32 0, i32 2
  %506 = getelementptr inbounds [3 x float], ptr %505, i64 0, i64 0
  store float %504, ptr %506, align 4, !tbaa !13
  %507 = getelementptr inbounds [3 x float], ptr %32, i64 0, i64 1
  %508 = load float, ptr %507, align 4, !tbaa !13
  %509 = getelementptr inbounds [3 x float], ptr %34, i64 0, i64 1
  %510 = load float, ptr %509, align 4, !tbaa !13
  %511 = load float, ptr %40, align 4, !tbaa !13
  %512 = fneg float %510
  %513 = call float @llvm.fmuladd.f32(float %512, float %511, float %508)
  %514 = getelementptr inbounds %struct.meshopt_Bounds, ptr %0, i32 0, i32 2
  %515 = getelementptr inbounds [3 x float], ptr %514, i64 0, i64 1
  store float %513, ptr %515, align 4, !tbaa !13
  %516 = getelementptr inbounds [3 x float], ptr %32, i64 0, i64 2
  %517 = load float, ptr %516, align 4, !tbaa !13
  %518 = getelementptr inbounds [3 x float], ptr %34, i64 0, i64 2
  %519 = load float, ptr %518, align 4, !tbaa !13
  %520 = load float, ptr %40, align 4, !tbaa !13
  %521 = fneg float %519
  %522 = call float @llvm.fmuladd.f32(float %521, float %520, float %517)
  %523 = getelementptr inbounds %struct.meshopt_Bounds, ptr %0, i32 0, i32 2
  %524 = getelementptr inbounds [3 x float], ptr %523, i64 0, i64 2
  store float %522, ptr %524, align 4, !tbaa !13
  %525 = getelementptr inbounds [3 x float], ptr %34, i64 0, i64 0
  %526 = load float, ptr %525, align 4, !tbaa !13
  %527 = getelementptr inbounds %struct.meshopt_Bounds, ptr %0, i32 0, i32 3
  %528 = getelementptr inbounds [3 x float], ptr %527, i64 0, i64 0
  store float %526, ptr %528, align 4, !tbaa !13
  %529 = getelementptr inbounds [3 x float], ptr %34, i64 0, i64 1
  %530 = load float, ptr %529, align 4, !tbaa !13
  %531 = getelementptr inbounds %struct.meshopt_Bounds, ptr %0, i32 0, i32 3
  %532 = getelementptr inbounds [3 x float], ptr %531, i64 0, i64 1
  store float %530, ptr %532, align 4, !tbaa !13
  %533 = getelementptr inbounds [3 x float], ptr %34, i64 0, i64 2
  %534 = load float, ptr %533, align 4, !tbaa !13
  %535 = getelementptr inbounds %struct.meshopt_Bounds, ptr %0, i32 0, i32 3
  %536 = getelementptr inbounds [3 x float], ptr %535, i64 0, i64 2
  store float %534, ptr %536, align 4, !tbaa !13
  %537 = load float, ptr %37, align 4, !tbaa !13
  %538 = load float, ptr %37, align 4, !tbaa !13
  %539 = fneg float %537
  %540 = call float @llvm.fmuladd.f32(float %539, float %538, float 1.000000e+00)
  %541 = call float @sqrtf(float noundef %540) #10
  %542 = getelementptr inbounds %struct.meshopt_Bounds, ptr %0, i32 0, i32 4
  store float %541, ptr %542, align 4, !tbaa !20
  %543 = getelementptr inbounds %struct.meshopt_Bounds, ptr %0, i32 0, i32 3
  %544 = getelementptr inbounds [3 x float], ptr %543, i64 0, i64 0
  %545 = load float, ptr %544, align 4, !tbaa !13
  %546 = call noundef i32 @_Z21meshopt_quantizeSnormfi(float noundef %545, i32 noundef 8)
  %547 = trunc i32 %546 to i8
  %548 = getelementptr inbounds %struct.meshopt_Bounds, ptr %0, i32 0, i32 5
  %549 = getelementptr inbounds [3 x i8], ptr %548, i64 0, i64 0
  store i8 %547, ptr %549, align 4, !tbaa !23
  %550 = getelementptr inbounds %struct.meshopt_Bounds, ptr %0, i32 0, i32 3
  %551 = getelementptr inbounds [3 x float], ptr %550, i64 0, i64 1
  %552 = load float, ptr %551, align 4, !tbaa !13
  %553 = call noundef i32 @_Z21meshopt_quantizeSnormfi(float noundef %552, i32 noundef 8)
  %554 = trunc i32 %553 to i8
  %555 = getelementptr inbounds %struct.meshopt_Bounds, ptr %0, i32 0, i32 5
  %556 = getelementptr inbounds [3 x i8], ptr %555, i64 0, i64 1
  store i8 %554, ptr %556, align 1, !tbaa !23
  %557 = getelementptr inbounds %struct.meshopt_Bounds, ptr %0, i32 0, i32 3
  %558 = getelementptr inbounds [3 x float], ptr %557, i64 0, i64 2
  %559 = load float, ptr %558, align 4, !tbaa !13
  %560 = call noundef i32 @_Z21meshopt_quantizeSnormfi(float noundef %559, i32 noundef 8)
  %561 = trunc i32 %560 to i8
  %562 = getelementptr inbounds %struct.meshopt_Bounds, ptr %0, i32 0, i32 5
  %563 = getelementptr inbounds [3 x i8], ptr %562, i64 0, i64 2
  store i8 %561, ptr %563, align 2, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #10
  %564 = getelementptr inbounds %struct.meshopt_Bounds, ptr %0, i32 0, i32 5
  %565 = getelementptr inbounds [3 x i8], ptr %564, i64 0, i64 0
  %566 = load i8, ptr %565, align 4, !tbaa !23
  %567 = sext i8 %566 to i32
  %568 = sitofp i32 %567 to float
  %569 = fdiv float %568, 1.270000e+02
  %570 = getelementptr inbounds %struct.meshopt_Bounds, ptr %0, i32 0, i32 3
  %571 = getelementptr inbounds [3 x float], ptr %570, i64 0, i64 0
  %572 = load float, ptr %571, align 4, !tbaa !13
  %573 = fsub float %569, %572
  %574 = call float @llvm.fabs.f32(float %573)
  store float %574, ptr %48, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #10
  %575 = getelementptr inbounds %struct.meshopt_Bounds, ptr %0, i32 0, i32 5
  %576 = getelementptr inbounds [3 x i8], ptr %575, i64 0, i64 1
  %577 = load i8, ptr %576, align 1, !tbaa !23
  %578 = sext i8 %577 to i32
  %579 = sitofp i32 %578 to float
  %580 = fdiv float %579, 1.270000e+02
  %581 = getelementptr inbounds %struct.meshopt_Bounds, ptr %0, i32 0, i32 3
  %582 = getelementptr inbounds [3 x float], ptr %581, i64 0, i64 1
  %583 = load float, ptr %582, align 4, !tbaa !13
  %584 = fsub float %580, %583
  %585 = call float @llvm.fabs.f32(float %584)
  store float %585, ptr %49, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #10
  %586 = getelementptr inbounds %struct.meshopt_Bounds, ptr %0, i32 0, i32 5
  %587 = getelementptr inbounds [3 x i8], ptr %586, i64 0, i64 2
  %588 = load i8, ptr %587, align 2, !tbaa !23
  %589 = sext i8 %588 to i32
  %590 = sitofp i32 %589 to float
  %591 = fdiv float %590, 1.270000e+02
  %592 = getelementptr inbounds %struct.meshopt_Bounds, ptr %0, i32 0, i32 3
  %593 = getelementptr inbounds [3 x float], ptr %592, i64 0, i64 2
  %594 = load float, ptr %593, align 4, !tbaa !13
  %595 = fsub float %591, %594
  %596 = call float @llvm.fabs.f32(float %595)
  store float %596, ptr %50, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #10
  %597 = getelementptr inbounds %struct.meshopt_Bounds, ptr %0, i32 0, i32 4
  %598 = load float, ptr %597, align 4, !tbaa !20
  %599 = load float, ptr %48, align 4, !tbaa !13
  %600 = fadd float %598, %599
  %601 = load float, ptr %49, align 4, !tbaa !13
  %602 = fadd float %600, %601
  %603 = load float, ptr %50, align 4, !tbaa !13
  %604 = fadd float %602, %603
  %605 = call float @llvm.fmuladd.f32(float 1.270000e+02, float %604, float 1.000000e+00)
  %606 = fptosi float %605 to i32
  store i32 %606, ptr %51, align 4, !tbaa !11
  %607 = load i32, ptr %51, align 4, !tbaa !11
  %608 = icmp sgt i32 %607, 127
  br i1 %608, label %609, label %610

609:                                              ; preds = %497
  br label %614

610:                                              ; preds = %497
  %611 = load i32, ptr %51, align 4, !tbaa !11
  %612 = trunc i32 %611 to i8
  %613 = sext i8 %612 to i32
  br label %614

614:                                              ; preds = %610, %609
  %615 = phi i32 [ 127, %609 ], [ %613, %610 ]
  %616 = trunc i32 %615 to i8
  %617 = getelementptr inbounds %struct.meshopt_Bounds, ptr %0, i32 0, i32 6
  store i8 %616, ptr %617, align 1, !tbaa !21
  store i32 1, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #10
  br label %618

618:                                              ; preds = %614, %403
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %34) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %32) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #10
  br label %619

619:                                              ; preds = %618, %282
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 18432, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 6144, ptr %13) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #10
  ret void

620:                                              ; preds = %273
  unreachable
}

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN7meshoptL21computeBoundingSphereEPfPKfmmS2_mm(ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) #7

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z21meshopt_quantizeSnormfi(float noundef, i32 noundef) #8

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #6

attributes #0 = { noreturn 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 #8 = { inlinehint 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 #9 = { noreturn nounwind }
attributes #10 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = !{!19, !14, i64 12}
!19 = !{!"_ZTS14meshopt_Bounds", !7, i64 0, !14, i64 12, !7, i64 16, !7, i64 28, !14, i64 40, !7, i64 44, !7, i64 47}
!20 = !{!19, !14, i64 40}
!21 = !{!19, !7, i64 47}
!22 = distinct !{!22, !16}
!23 = !{!7, !7, i64 0}


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

%struct.meshopt_Bounds = type { [3 x float], float, [3 x float], [3 x float], float, [3 x i8], i8 }

@.str = external hidden unnamed_addr constant [21 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [57 x i8], align 1
@__PRETTY_FUNCTION__.meshopt_computeClusterBounds = external hidden unnamed_addr constant [105 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @sqrtf(float noundef) local_unnamed_addr #3

; 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 nounwind uwtable
define dso_local void @meshopt_computeClusterBounds(ptr dead_on_unwind noalias nocapture writable writeonly sret(%struct.meshopt_Bounds) align 4 %0, ptr nocapture noundef readonly %1, i64 noundef %2, ptr nocapture noundef readonly %3, i64 noundef %4, i64 noundef %5) local_unnamed_addr #5 {
  %7 = alloca [512 x [3 x float]], align 16
  %8 = alloca [512 x [3 x [3 x float]]], align 16
  %9 = alloca float, align 4
  %10 = alloca [4 x float], align 16
  %11 = alloca [4 x float], align 16
  %12 = urem i64 %2, 3
  %13 = icmp eq i64 %12, 0
  br i1 %13, label %15, label %14

14:                                               ; preds = %6
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 1408, ptr noundef nonnull @__PRETTY_FUNCTION__.meshopt_computeClusterBounds) #9
  unreachable

15:                                               ; preds = %6
  %16 = icmp ult i64 %2, 1539
  br i1 %16, label %18, label %17

17:                                               ; preds = %15
  tail call void @__assert_fail(ptr noundef nonnull @.str.19, ptr noundef nonnull @.str.1, i32 noundef 1409, ptr noundef nonnull @__PRETTY_FUNCTION__.meshopt_computeClusterBounds) #9
  unreachable

18:                                               ; preds = %15
  %19 = add i64 %5, -12
  %20 = icmp ult i64 %19, 245
  br i1 %20, label %22, label %21

21:                                               ; preds = %18
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 1410, ptr noundef nonnull @__PRETTY_FUNCTION__.meshopt_computeClusterBounds) #9
  unreachable

22:                                               ; preds = %18
  %23 = and i64 %5, 3
  %24 = icmp eq i64 %23, 0
  br i1 %24, label %26, label %25

25:                                               ; preds = %22
  tail call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 1411, ptr noundef nonnull @__PRETTY_FUNCTION__.meshopt_computeClusterBounds) #9
  unreachable

26:                                               ; preds = %22
  %27 = lshr exact i64 %5, 2
  call void @llvm.lifetime.start.p0(i64 6144, ptr nonnull %7) #10
  call void @llvm.lifetime.start.p0(i64 18432, ptr nonnull %8) #10
  %.not = icmp eq i64 %2, 0
  br i1 %.not, label %._crit_edge.thread, label %.lr.ph

._crit_edge.thread:                               ; preds = %26
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(48) %0, i8 0, i64 48, i1 false)
  br label %221

._crit_edge:                                      ; preds = %99
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(48) %0, i8 0, i64 48, i1 false)
  %28 = icmp eq i64 %.1, 0
  br i1 %28, label %221, label %102

.lr.ph:                                           ; preds = %26, %99
  %.0167 = phi i64 [ %.1, %99 ], [ 0, %26 ]
  %.0150166 = phi i64 [ %100, %99 ], [ 0, %26 ]
  %29 = getelementptr inbounds i32, ptr %1, i64 %.0150166
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %31 = getelementptr i8, ptr %29, i64 8
  %32 = load i32, ptr %31, align 4, !tbaa !5
  %33 = zext i32 %30 to i64
  %34 = icmp ult i64 %33, %4
  br i1 %34, label %35, label %.critedge

35:                                               ; preds = %.lr.ph
  %36 = getelementptr i8, ptr %29, i64 4
  %37 = load i32, ptr %36, align 4, !tbaa !5
  %38 = zext i32 %37 to i64
  %39 = icmp ult i64 %38, %4
  br i1 %39, label %40, label %.critedge

40:                                               ; preds = %35
  %41 = zext i32 %32 to i64
  %42 = icmp ult i64 %41, %4
  br i1 %42, label %43, label %.critedge

.critedge:                                        ; preds = %35, %.lr.ph, %40
  tail call void @__assert_fail(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.1, i32 noundef 1425, ptr noundef nonnull @__PRETTY_FUNCTION__.meshopt_computeClusterBounds) #9
  unreachable

43:                                               ; preds = %40
  %44 = mul nuw nsw i64 %27, %33
  %45 = getelementptr inbounds float, ptr %3, i64 %44
  %46 = mul nuw nsw i64 %27, %38
  %47 = getelementptr inbounds float, ptr %3, i64 %46
  %48 = mul nuw nsw i64 %27, %41
  %49 = getelementptr inbounds float, ptr %3, i64 %48
  %50 = load float, ptr %47, align 4, !tbaa !9
  %51 = load float, ptr %45, align 4, !tbaa !9
  %52 = fsub float %50, %51
  %53 = getelementptr inbounds i8, ptr %47, i64 4
  %54 = getelementptr inbounds i8, ptr %45, i64 4
  %55 = load float, ptr %49, align 4, !tbaa !9
  %56 = getelementptr inbounds i8, ptr %49, i64 4
  %57 = load float, ptr %56, align 4, !tbaa !9
  %58 = getelementptr inbounds i8, ptr %49, i64 8
  %59 = load float, ptr %58, align 4, !tbaa !9
  %60 = load <2 x float>, ptr %53, align 4, !tbaa !9
  %61 = load <2 x float>, ptr %54, align 4, !tbaa !9
  %62 = fsub <2 x float> %60, %61
  %63 = extractelement <2 x float> %61, i64 0
  %64 = fsub float %57, %63
  %65 = insertelement <2 x float> poison, float %59, i64 0
  %66 = insertelement <2 x float> %65, float %55, i64 1
  %67 = shufflevector <2 x float> %61, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %68 = insertelement <2 x float> %67, float %51, i64 1
  %69 = fsub <2 x float> %66, %68
  %70 = shufflevector <2 x float> %62, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %71 = insertelement <2 x float> %70, float %52, i64 1
  %72 = fneg <2 x float> %71
  %73 = shufflevector <2 x float> %69, <2 x float> poison, <2 x i32> <i32 poison, i32 0>
  %74 = insertelement <2 x float> %73, float %64, i64 0
  %75 = fmul <2 x float> %74, %72
  %76 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %62, <2 x float> %69, <2 x float> %75)
  %77 = extractelement <2 x float> %62, i64 0
  %78 = fneg float %77
  %79 = extractelement <2 x float> %69, i64 1
  %80 = fmul float %79, %78
  %81 = tail call float @llvm.fmuladd.f32(float %52, float %64, float %80)
  %82 = fmul <2 x float> %76, %76
  %83 = extractelement <2 x float> %82, i64 1
  %84 = extractelement <2 x float> %76, i64 0
  %85 = tail call float @llvm.fmuladd.f32(float %84, float %84, float %83)
  %86 = tail call float @llvm.fmuladd.f32(float %81, float %81, float %85)
  %sqrt = tail call float @llvm.sqrt.f32(float %86)
  %87 = fcmp oeq float %sqrt, 0.000000e+00
  br i1 %87, label %99, label %88

88:                                               ; preds = %43
  %89 = insertelement <2 x float> poison, float %sqrt, i64 0
  %90 = shufflevector <2 x float> %89, <2 x float> poison, <2 x i32> zeroinitializer
  %91 = fdiv <2 x float> %76, %90
  %92 = getelementptr inbounds [512 x [3 x float]], ptr %7, i64 0, i64 %.0167
  store <2 x float> %91, ptr %92, align 4, !tbaa !9
  %93 = fdiv float %81, %sqrt
  %94 = getelementptr inbounds i8, ptr %92, i64 8
  store float %93, ptr %94, align 4, !tbaa !9
  %95 = getelementptr inbounds [512 x [3 x [3 x float]]], ptr %8, i64 0, i64 %.0167
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %95, ptr noundef nonnull align 4 dereferenceable(12) %45, i64 12, i1 false)
  %96 = getelementptr inbounds i8, ptr %95, i64 12
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %96, ptr noundef nonnull align 4 dereferenceable(12) %47, i64 12, i1 false)
  %97 = getelementptr inbounds i8, ptr %95, i64 24
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %97, ptr noundef nonnull align 4 dereferenceable(12) %49, i64 12, i1 false)
  %98 = add i64 %.0167, 1
  br label %99

99:                                               ; preds = %43, %88
  %.1 = phi i64 [ %98, %88 ], [ %.0167, %43 ]
  %100 = add i64 %.0150166, 3
  %101 = icmp ult i64 %100, %2
  br i1 %101, label %.lr.ph, label %._crit_edge, !llvm.loop !11

102:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #10
  store float 0.000000e+00, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #10
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %10, i8 0, i64 16, i1 false)
  %103 = mul i64 %.1, 3
  call void @_ZN7meshoptL21computeBoundingSphereEPfPKfmmS2_mm(ptr noundef nonnull %10, ptr noundef nonnull %8, i64 noundef %103, i64 noundef 12, ptr noundef nonnull %9, i64 noundef 0, i64 noundef 7)
  %104 = load <2 x float>, ptr %10, align 16, !tbaa !9
  %105 = getelementptr inbounds i8, ptr %10, i64 8
  %106 = load float, ptr %105, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #10
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %11, i8 0, i64 16, i1 false)
  call void @_ZN7meshoptL21computeBoundingSphereEPfPKfmmS2_mm(ptr noundef nonnull %11, ptr noundef nonnull %7, i64 noundef %.1, i64 noundef 12, ptr noundef nonnull %9, i64 noundef 0, i64 noundef 3)
  %107 = load <2 x float>, ptr %11, align 16, !tbaa !9
  %108 = getelementptr inbounds i8, ptr %11, i64 8
  %109 = load float, ptr %108, align 8, !tbaa !9
  %110 = fmul <2 x float> %107, %107
  %111 = extractelement <2 x float> %110, i64 1
  %112 = extractelement <2 x float> %107, i64 0
  %113 = call float @llvm.fmuladd.f32(float %112, float %112, float %111)
  %114 = call float @llvm.fmuladd.f32(float %109, float %109, float %113)
  %sqrt163 = call float @llvm.sqrt.f32(float %114)
  %115 = fcmp oeq float %sqrt163, 0.000000e+00
  %116 = fdiv float 1.000000e+00, %sqrt163
  %117 = select i1 %115, float 0.000000e+00, float %116
  %118 = insertelement <2 x float> poison, float %117, i64 0
  %119 = shufflevector <2 x float> %118, <2 x float> poison, <2 x i32> zeroinitializer
  %120 = fmul <2 x float> %107, %119
  %121 = fmul float %109, %117
  %122 = extractelement <2 x float> %120, i64 0
  %123 = extractelement <2 x float> %120, i64 1
  br label %132

124:                                              ; preds = %132
  store <2 x float> %104, ptr %0, align 4, !tbaa !9
  %125 = getelementptr inbounds i8, ptr %0, i64 8
  store float %106, ptr %125, align 4, !tbaa !9
  %126 = getelementptr inbounds i8, ptr %10, i64 12
  %127 = load float, ptr %126, align 4, !tbaa !9
  %128 = getelementptr inbounds i8, ptr %0, i64 12
  store float %127, ptr %128, align 4, !tbaa !13
  %129 = fcmp ugt float %143, 0x3FB99999A0000000
  br i1 %129, label %.preheader.preheader, label %145

.preheader.preheader:                             ; preds = %124
  %130 = extractelement <2 x float> %104, i64 0
  %131 = extractelement <2 x float> %104, i64 1
  br label %.preheader

132:                                              ; preds = %102, %132
  %.0151169 = phi float [ 1.000000e+00, %102 ], [ %143, %132 ]
  %.0152168 = phi i64 [ 0, %102 ], [ %144, %132 ]
  %133 = getelementptr inbounds [512 x [3 x float]], ptr %7, i64 0, i64 %.0152168
  %134 = load float, ptr %133, align 4, !tbaa !9
  %135 = getelementptr inbounds i8, ptr %133, i64 4
  %136 = load float, ptr %135, align 4, !tbaa !9
  %137 = fmul float %123, %136
  %138 = call float @llvm.fmuladd.f32(float %134, float %122, float %137)
  %139 = getelementptr inbounds i8, ptr %133, i64 8
  %140 = load float, ptr %139, align 4, !tbaa !9
  %141 = call float @llvm.fmuladd.f32(float %140, float %121, float %138)
  %142 = fcmp olt float %141, %.0151169
  %143 = select i1 %142, float %141, float %.0151169
  %144 = add nuw i64 %.0152168, 1
  %exitcond.not = icmp eq i64 %144, %.1
  br i1 %exitcond.not, label %124, label %132, !llvm.loop !15

145:                                              ; preds = %124
  %146 = getelementptr inbounds i8, ptr %0, i64 40
  store float 1.000000e+00, ptr %146, align 4, !tbaa !16
  br label %219

147:                                              ; preds = %202
  %148 = getelementptr inbounds i8, ptr %0, i64 16
  %149 = fneg <2 x float> %120
  %150 = insertelement <2 x float> poison, float %217, i64 0
  %151 = shufflevector <2 x float> %150, <2 x float> poison, <2 x i32> zeroinitializer
  %152 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %149, <2 x float> %151, <2 x float> %104)
  store <2 x float> %152, ptr %148, align 4, !tbaa !9
  %153 = fneg float %121
  %154 = call float @llvm.fmuladd.f32(float %153, float %217, float %106)
  %155 = getelementptr inbounds i8, ptr %0, i64 24
  store float %154, ptr %155, align 4, !tbaa !9
  %156 = getelementptr inbounds i8, ptr %0, i64 28
  store <2 x float> %120, ptr %156, align 4, !tbaa !9
  %157 = getelementptr inbounds i8, ptr %0, i64 36
  store float %121, ptr %157, align 4, !tbaa !9
  %158 = fneg float %143
  %159 = call float @llvm.fmuladd.f32(float %158, float %143, float 1.000000e+00)
  %160 = call float @sqrtf(float noundef %159) #10
  %161 = getelementptr inbounds i8, ptr %0, i64 40
  store float %160, ptr %161, align 4, !tbaa !16
  %162 = call noundef i32 @_Z21meshopt_quantizeSnormfi(float noundef %122, i32 noundef 8)
  %163 = trunc i32 %162 to i8
  %164 = getelementptr inbounds i8, ptr %0, i64 44
  store i8 %163, ptr %164, align 4, !tbaa !17
  %165 = call noundef i32 @_Z21meshopt_quantizeSnormfi(float noundef %123, i32 noundef 8)
  %166 = trunc i32 %165 to i8
  %167 = getelementptr inbounds i8, ptr %0, i64 45
  store i8 %166, ptr %167, align 1, !tbaa !17
  %168 = call noundef i32 @_Z21meshopt_quantizeSnormfi(float noundef %121, i32 noundef 8)
  %169 = trunc i32 %168 to i8
  %170 = getelementptr inbounds i8, ptr %0, i64 46
  store i8 %169, ptr %170, align 2, !tbaa !17
  %171 = sitofp i8 %163 to float
  %172 = fdiv float %171, 1.270000e+02
  %173 = fsub float %172, %122
  %174 = call float @llvm.fabs.f32(float %173)
  %175 = sitofp i8 %166 to float
  %176 = fdiv float %175, 1.270000e+02
  %177 = fsub float %176, %123
  %178 = call float @llvm.fabs.f32(float %177)
  %sext = shl i32 %168, 24
  %179 = ashr exact i32 %sext, 24
  %180 = sitofp i32 %179 to float
  %181 = fdiv float %180, 1.270000e+02
  %182 = fsub float %181, %121
  %183 = call float @llvm.fabs.f32(float %182)
  %184 = fadd float %160, %174
  %185 = fadd float %184, %178
  %186 = fadd float %185, %183
  %187 = call float @llvm.fmuladd.f32(float %186, float 1.270000e+02, float 1.000000e+00)
  %188 = fptosi float %187 to i32
  %189 = call i32 @llvm.smin.i32(i32 %188, i32 127)
  %190 = trunc i32 %189 to i8
  br label %219

.preheader:                                       ; preds = %.preheader.preheader, %202
  %.0153171 = phi float [ %217, %202 ], [ 0.000000e+00, %.preheader.preheader ]
  %.0154170 = phi i64 [ %218, %202 ], [ 0, %.preheader.preheader ]
  %191 = getelementptr inbounds [512 x [3 x float]], ptr %7, i64 0, i64 %.0154170
  %192 = load float, ptr %191, align 4, !tbaa !9
  %193 = getelementptr inbounds i8, ptr %191, i64 4
  %194 = load float, ptr %193, align 4, !tbaa !9
  %195 = getelementptr inbounds i8, ptr %191, i64 8
  %196 = load float, ptr %195, align 4, !tbaa !9
  %197 = fmul float %123, %194
  %198 = call float @llvm.fmuladd.f32(float %122, float %192, float %197)
  %199 = call float @llvm.fmuladd.f32(float %121, float %196, float %198)
  %200 = fcmp ogt float %199, 0.000000e+00
  br i1 %200, label %202, label %201

201:                                              ; preds = %.preheader
  call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.1, i32 noundef 1521, ptr noundef nonnull @__PRETTY_FUNCTION__.meshopt_computeClusterBounds) #9
  unreachable

202:                                              ; preds = %.preheader
  %203 = getelementptr inbounds [512 x [3 x [3 x float]]], ptr %8, i64 0, i64 %.0154170
  %204 = getelementptr inbounds i8, ptr %203, i64 8
  %205 = load float, ptr %204, align 4, !tbaa !9
  %206 = fsub float %106, %205
  %207 = load float, ptr %203, align 4, !tbaa !9
  %208 = fsub float %130, %207
  %209 = getelementptr inbounds i8, ptr %203, i64 4
  %210 = load float, ptr %209, align 4, !tbaa !9
  %211 = fsub float %131, %210
  %212 = fmul float %194, %211
  %213 = call float @llvm.fmuladd.f32(float %208, float %192, float %212)
  %214 = call float @llvm.fmuladd.f32(float %206, float %196, float %213)
  %215 = fdiv float %214, %199
  %216 = fcmp ogt float %215, %.0153171
  %217 = select i1 %216, float %215, float %.0153171
  %218 = add nuw i64 %.0154170, 1
  %exitcond173.not = icmp eq i64 %218, %.1
  br i1 %exitcond173.not, label %147, label %.preheader, !llvm.loop !18

219:                                              ; preds = %147, %145
  %.sink = phi i8 [ %190, %147 ], [ 127, %145 ]
  %220 = getelementptr inbounds i8, ptr %0, i64 47
  store i8 %.sink, ptr %220, align 1, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #10
  br label %221

221:                                              ; preds = %._crit_edge.thread, %._crit_edge, %219
  call void @llvm.lifetime.end.p0(i64 18432, ptr nonnull %8) #10
  call void @llvm.lifetime.end.p0(i64 6144, ptr nonnull %7) #10
  ret void
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #6

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN7meshoptL21computeBoundingSphereEPfPKfmmS2_mm(ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z21meshopt_quantizeSnormfi(float noundef, i32 noundef) local_unnamed_addr #7

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #6

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #8

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.sqrt.f32(float) #8

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x float> @llvm.fmuladd.v2f32(<2 x float>, <2 x float>, <2 x float>) #8

attributes #0 = { noreturn 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { mustprogress nofree nounwind willreturn memory(write) "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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { inlinehint 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 #8 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { noreturn nounwind }
attributes #10 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !10, i64 12}
!14 = !{!"_ZTS14meshopt_Bounds", !7, i64 0, !10, i64 12, !7, i64 16, !7, i64 28, !10, i64 40, !7, i64 44, !7, i64 47}
!15 = distinct !{!15, !12}
!16 = !{!14, !10, i64 40}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !12}
!19 = !{!14, !7, i64 47}


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass