; LLVM IR from zeux/meshoptimizer :: gltf/stream.ll (Z17getPositionBoundsPfS_RK6StreamRK20QuantizationPositionRK8Settings)

; 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.Stream = type { i32, i32, i32, ptr, %"class.std::vector.50" }
%"class.std::vector.50" = type { %"struct.std::_Vector_base.51" }
%"struct.std::_Vector_base.51" = type { %"struct.std::_Vector_base<Attr, std::allocator<Attr>>::_Vector_impl" }
%"struct.std::_Vector_base<Attr, std::allocator<Attr>>::_Vector_impl" = type { %"struct.std::_Vector_base<Attr, std::allocator<Attr>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Attr, std::allocator<Attr>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.Attr = type { [4 x float] }
%struct.Settings = type { i32, i32, i32, i32, i8, i8, i8, i8, i32, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, float, float, i8, i8, i8, float, i32, i8, i8, i8, i8, i8, [4 x float], [4 x i32], [4 x i32], [4 x i32], i32, i8, i8, i8, i8, i32 }
%struct.QuantizationPosition = type { [3 x float], float, i32, i8, float }

@.str.1 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [68 x i8], align 1
@__PRETTY_FUNCTION__._Z17getPositionBoundsPfS_RK6StreamRK20QuantizationPositionRK8Settings = external hidden unnamed_addr constant [105 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [23 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z17getPositionBoundsPfS_RK6StreamRK20QuantizationPositionRK8Settings(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 4 dereferenceable(28) %3, ptr noundef nonnull align 4 dereferenceable(148) %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca float, align 4
  %17 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %18 = load ptr, ptr %8, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.Stream, ptr %18, i32 0, i32 0
  %20 = load i32, ptr %19, align 8, !tbaa !9
  %21 = icmp eq i32 %20, 1
  br i1 %21, label %22, label %23

22:                                               ; preds = %5
  br label %25

23:                                               ; preds = %5
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 216, ptr noundef @__PRETTY_FUNCTION__._Z17getPositionBoundsPfS_RK6StreamRK20QuantizationPositionRK8Settings) #7
  unreachable

24:                                               ; No predecessors!
  br label %25

25:                                               ; preds = %24, %22
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.Stream, ptr %26, i32 0, i32 4
  %28 = call noundef i64 @_ZNKSt6vectorI4AttrSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #8
  %29 = icmp ugt i64 %28, 0
  br i1 %29, label %30, label %31

30:                                               ; preds = %25
  br label %33

31:                                               ; preds = %25
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.2, i32 noundef 217, ptr noundef @__PRETTY_FUNCTION__._Z17getPositionBoundsPfS_RK6StreamRK20QuantizationPositionRK8Settings) #7
  unreachable

32:                                               ; No predecessors!
  br label %33

33:                                               ; preds = %32, %30
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = getelementptr inbounds float, ptr %34, i64 2
  store float 0x47EFFFFFE0000000, ptr %35, align 4, !tbaa !17
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds float, ptr %36, i64 1
  store float 0x47EFFFFFE0000000, ptr %37, align 4, !tbaa !17
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = getelementptr inbounds float, ptr %38, i64 0
  store float 0x47EFFFFFE0000000, ptr %39, align 4, !tbaa !17
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = getelementptr inbounds float, ptr %40, i64 2
  store float 0xC7EFFFFFE0000000, ptr %41, align 4, !tbaa !17
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = getelementptr inbounds float, ptr %42, i64 1
  store float 0xC7EFFFFFE0000000, ptr %43, align 4, !tbaa !17
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = getelementptr inbounds float, ptr %44, i64 0
  store float 0xC7EFFFFFE0000000, ptr %45, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  store i64 0, ptr %11, align 8, !tbaa !19
  br label %46

46:                                               ; preds = %97, %33
  %47 = load i64, ptr %11, align 8, !tbaa !19
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.Stream, ptr %48, i32 0, i32 4
  %50 = call noundef i64 @_ZNKSt6vectorI4AttrSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %49) #8
  %51 = icmp ult i64 %47, %50
  br i1 %51, label %53, label %52

52:                                               ; preds = %46
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %100

53:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.Stream, ptr %54, i32 0, i32 4
  %56 = load i64, ptr %11, align 8, !tbaa !19
  %57 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI4AttrSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %55, i64 noundef %56) #8
  store ptr %57, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 0, ptr %14, align 4, !tbaa !21
  br label %58

58:                                               ; preds = %93, %53
  %59 = load i32, ptr %14, align 4, !tbaa !21
  %60 = icmp slt i32 %59, 3
  br i1 %60, label %62, label %61

61:                                               ; preds = %58
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %96

62:                                               ; preds = %58
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = load i32, ptr %14, align 4, !tbaa !21
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds float, ptr %63, i64 %65
  %67 = load ptr, ptr %13, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.Attr, ptr %67, i32 0, i32 0
  %69 = load i32, ptr %14, align 4, !tbaa !21
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [4 x float], ptr %68, i64 0, i64 %70
  %72 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %66, ptr noundef nonnull align 4 dereferenceable(4) %71)
  %73 = load float, ptr %72, align 4, !tbaa !17
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = load i32, ptr %14, align 4, !tbaa !21
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds float, ptr %74, i64 %76
  store float %73, ptr %77, align 4, !tbaa !17
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = load i32, ptr %14, align 4, !tbaa !21
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds float, ptr %78, i64 %80
  %82 = load ptr, ptr %13, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.Attr, ptr %82, i32 0, i32 0
  %84 = load i32, ptr %14, align 4, !tbaa !21
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [4 x float], ptr %83, i64 0, i64 %85
  %87 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %81, ptr noundef nonnull align 4 dereferenceable(4) %86)
  %88 = load float, ptr %87, align 4, !tbaa !17
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  %90 = load i32, ptr %14, align 4, !tbaa !21
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds float, ptr %89, i64 %91
  store float %88, ptr %92, align 4, !tbaa !17
  br label %93

93:                                               ; preds = %62
  %94 = load i32, ptr %14, align 4, !tbaa !21
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %14, align 4, !tbaa !21
  br label %58, !llvm.loop !22

96:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %97

97:                                               ; preds = %96
  %98 = load i64, ptr %11, align 8, !tbaa !19
  %99 = add i64 %98, 1
  store i64 %99, ptr %11, align 8, !tbaa !19
  br label %46, !llvm.loop !24

100:                                              ; preds = %52
  %101 = load ptr, ptr %10, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.Settings, ptr %101, i32 0, i32 37
  %103 = load i8, ptr %102, align 4, !tbaa !25, !range !28, !noundef !29
  %104 = trunc i8 %103 to i1
  br i1 %104, label %105, label %288

105:                                              ; preds = %100
  %106 = load ptr, ptr %10, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.Settings, ptr %106, i32 0, i32 5
  %108 = load i8, ptr %107, align 1, !tbaa !30, !range !28, !noundef !29
  %109 = trunc i8 %108 to i1
  br i1 %109, label %110, label %146

110:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 0, ptr %15, align 4, !tbaa !21
  br label %111

111:                                              ; preds = %142, %110
  %112 = load i32, ptr %15, align 4, !tbaa !21
  %113 = icmp slt i32 %112, 3
  br i1 %113, label %115, label %114

114:                                              ; preds = %111
  store i32 8, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %145

115:                                              ; preds = %111
  %116 = load ptr, ptr %6, align 8, !tbaa !5
  %117 = load i32, ptr %15, align 4, !tbaa !21
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds float, ptr %116, i64 %118
  %120 = load float, ptr %119, align 4, !tbaa !17
  %121 = load ptr, ptr %9, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.QuantizationPosition, ptr %121, i32 0, i32 2
  %123 = load i32, ptr %122, align 4, !tbaa !31
  %124 = call float @meshopt_quantizeFloat(float noundef %120, i32 noundef %123)
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = load i32, ptr %15, align 4, !tbaa !21
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds float, ptr %125, i64 %127
  store float %124, ptr %128, align 4, !tbaa !17
  %129 = load ptr, ptr %7, align 8, !tbaa !5
  %130 = load i32, ptr %15, align 4, !tbaa !21
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds float, ptr %129, i64 %131
  %133 = load float, ptr %132, align 4, !tbaa !17
  %134 = load ptr, ptr %9, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.QuantizationPosition, ptr %134, i32 0, i32 2
  %136 = load i32, ptr %135, align 4, !tbaa !31
  %137 = call float @meshopt_quantizeFloat(float noundef %133, i32 noundef %136)
  %138 = load ptr, ptr %7, align 8, !tbaa !5
  %139 = load i32, ptr %15, align 4, !tbaa !21
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds float, ptr %138, i64 %140
  store float %137, ptr %141, align 4, !tbaa !17
  br label %142

142:                                              ; preds = %115
  %143 = load i32, ptr %15, align 4, !tbaa !21
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr %15, align 4, !tbaa !21
  br label %111, !llvm.loop !33

145:                                              ; preds = %114
  br label %287

146:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  %147 = load ptr, ptr %9, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.QuantizationPosition, ptr %147, i32 0, i32 1
  %149 = load float, ptr %148, align 4, !tbaa !34
  %150 = fcmp oeq float %149, 0.000000e+00
  br i1 %150, label %151, label %152

151:                                              ; preds = %146
  br label %171

152:                                              ; preds = %146
  %153 = load ptr, ptr %9, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.QuantizationPosition, ptr %153, i32 0, i32 1
  %155 = load float, ptr %154, align 4, !tbaa !34
  %156 = fdiv float 1.000000e+00, %155
  %157 = load ptr, ptr %8, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.Stream, ptr %157, i32 0, i32 2
  %159 = load i32, ptr %158, align 8, !tbaa !35
  %160 = icmp sgt i32 %159, 0
  br i1 %160, label %161, label %166

161:                                              ; preds = %152
  %162 = load ptr, ptr %9, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.QuantizationPosition, ptr %162, i32 0, i32 3
  %164 = load i8, ptr %163, align 4, !tbaa !36, !range !28, !noundef !29
  %165 = trunc i8 %164 to i1
  br label %166

166:                                              ; preds = %161, %152
  %167 = phi i1 [ false, %152 ], [ %165, %161 ]
  %168 = zext i1 %167 to i64
  %169 = select i1 %167, float 0x3FDFFFE000000000, float 1.000000e+00
  %170 = fmul float %156, %169
  br label %171

171:                                              ; preds = %166, %151
  %172 = phi float [ 0.000000e+00, %151 ], [ %170, %166 ]
  store float %172, ptr %16, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 0, ptr %17, align 4, !tbaa !21
  br label %173

173:                                              ; preds = %283, %171
  %174 = load i32, ptr %17, align 4, !tbaa !21
  %175 = icmp slt i32 %174, 3
  br i1 %175, label %177, label %176

176:                                              ; preds = %173
  store i32 11, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %286

177:                                              ; preds = %173
  %178 = load ptr, ptr %8, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.Stream, ptr %178, i32 0, i32 2
  %180 = load i32, ptr %179, align 8, !tbaa !35
  %181 = icmp eq i32 %180, 0
  br i1 %181, label %182, label %229

182:                                              ; preds = %177
  %183 = load ptr, ptr %6, align 8, !tbaa !5
  %184 = load i32, ptr %17, align 4, !tbaa !21
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds float, ptr %183, i64 %185
  %187 = load float, ptr %186, align 4, !tbaa !17
  %188 = load ptr, ptr %9, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.QuantizationPosition, ptr %188, i32 0, i32 0
  %190 = load i32, ptr %17, align 4, !tbaa !21
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [3 x float], ptr %189, i64 0, i64 %191
  %193 = load float, ptr %192, align 4, !tbaa !17
  %194 = fsub float %187, %193
  %195 = load float, ptr %16, align 4, !tbaa !17
  %196 = fmul float %194, %195
  %197 = load ptr, ptr %9, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.QuantizationPosition, ptr %197, i32 0, i32 2
  %199 = load i32, ptr %198, align 4, !tbaa !31
  %200 = call noundef i32 @_Z21meshopt_quantizeUnormfi(float noundef %196, i32 noundef %199)
  %201 = sitofp i32 %200 to float
  %202 = load ptr, ptr %6, align 8, !tbaa !5
  %203 = load i32, ptr %17, align 4, !tbaa !21
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds float, ptr %202, i64 %204
  store float %201, ptr %205, align 4, !tbaa !17
  %206 = load ptr, ptr %7, align 8, !tbaa !5
  %207 = load i32, ptr %17, align 4, !tbaa !21
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds float, ptr %206, i64 %208
  %210 = load float, ptr %209, align 4, !tbaa !17
  %211 = load ptr, ptr %9, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.QuantizationPosition, ptr %211, i32 0, i32 0
  %213 = load i32, ptr %17, align 4, !tbaa !21
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds [3 x float], ptr %212, i64 0, i64 %214
  %216 = load float, ptr %215, align 4, !tbaa !17
  %217 = fsub float %210, %216
  %218 = load float, ptr %16, align 4, !tbaa !17
  %219 = fmul float %217, %218
  %220 = load ptr, ptr %9, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.QuantizationPosition, ptr %220, i32 0, i32 2
  %222 = load i32, ptr %221, align 4, !tbaa !31
  %223 = call noundef i32 @_Z21meshopt_quantizeUnormfi(float noundef %219, i32 noundef %222)
  %224 = sitofp i32 %223 to float
  %225 = load ptr, ptr %7, align 8, !tbaa !5
  %226 = load i32, ptr %17, align 4, !tbaa !21
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds float, ptr %225, i64 %227
  store float %224, ptr %228, align 4, !tbaa !17
  br label %282

229:                                              ; preds = %177
  %230 = load ptr, ptr %6, align 8, !tbaa !5
  %231 = load i32, ptr %17, align 4, !tbaa !21
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds float, ptr %230, i64 %232
  %234 = load float, ptr %233, align 4, !tbaa !17
  %235 = fcmp oge float %234, 0.000000e+00
  %236 = zext i1 %235 to i64
  %237 = select i1 %235, float 1.000000e+00, float -1.000000e+00
  %238 = load ptr, ptr %6, align 8, !tbaa !5
  %239 = load i32, ptr %17, align 4, !tbaa !21
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds float, ptr %238, i64 %240
  %242 = load float, ptr %241, align 4, !tbaa !17
  %243 = call float @llvm.fabs.f32(float %242)
  %244 = load float, ptr %16, align 4, !tbaa !17
  %245 = fmul float %243, %244
  %246 = load ptr, ptr %9, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.QuantizationPosition, ptr %246, i32 0, i32 2
  %248 = load i32, ptr %247, align 4, !tbaa !31
  %249 = call noundef i32 @_Z21meshopt_quantizeUnormfi(float noundef %245, i32 noundef %248)
  %250 = sitofp i32 %249 to float
  %251 = fmul float %237, %250
  %252 = load ptr, ptr %6, align 8, !tbaa !5
  %253 = load i32, ptr %17, align 4, !tbaa !21
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds float, ptr %252, i64 %254
  store float %251, ptr %255, align 4, !tbaa !17
  %256 = load ptr, ptr %7, align 8, !tbaa !5
  %257 = load i32, ptr %17, align 4, !tbaa !21
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds float, ptr %256, i64 %258
  %260 = load float, ptr %259, align 4, !tbaa !17
  %261 = fcmp oge float %260, 0.000000e+00
  %262 = zext i1 %261 to i64
  %263 = select i1 %261, float 1.000000e+00, float -1.000000e+00
  %264 = load ptr, ptr %7, align 8, !tbaa !5
  %265 = load i32, ptr %17, align 4, !tbaa !21
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds float, ptr %264, i64 %266
  %268 = load float, ptr %267, align 4, !tbaa !17
  %269 = call float @llvm.fabs.f32(float %268)
  %270 = load float, ptr %16, align 4, !tbaa !17
  %271 = fmul float %269, %270
  %272 = load ptr, ptr %9, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.QuantizationPosition, ptr %272, i32 0, i32 2
  %274 = load i32, ptr %273, align 4, !tbaa !31
  %275 = call noundef i32 @_Z21meshopt_quantizeUnormfi(float noundef %271, i32 noundef %274)
  %276 = sitofp i32 %275 to float
  %277 = fmul float %263, %276
  %278 = load ptr, ptr %7, align 8, !tbaa !5
  %279 = load i32, ptr %17, align 4, !tbaa !21
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds float, ptr %278, i64 %280
  store float %277, ptr %281, align 4, !tbaa !17
  br label %282

282:                                              ; preds = %229, %182
  br label %283

283:                                              ; preds = %282
  %284 = load i32, ptr %17, align 4, !tbaa !21
  %285 = add nsw i32 %284, 1
  store i32 %285, ptr %17, align 4, !tbaa !21
  br label %173, !llvm.loop !37

286:                                              ; preds = %176
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %287

287:                                              ; preds = %286, %145
  br label %288

288:                                              ; preds = %287, %100
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI4AttrSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI4AttrSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2

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

declare float @meshopt_quantizeFloat(float noundef, i32 noundef) #5

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #4 = { 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 #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { noreturn nounwind }
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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTS6Stream", !11, i64 0, !12, i64 4, !12, i64 8, !6, i64 16, !13, i64 24}
!11 = !{!"_ZTS20cgltf_attribute_type", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTSSt6vectorI4AttrSaIS0_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseI4AttrSaIS0_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseI4AttrSaIS0_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseI4AttrSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!18, !18, i64 0}
!18 = !{!"float", !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"long", !7, i64 0}
!21 = !{!12, !12, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = !{!26, !27, i64 140}
!26 = !{!"_ZTS8Settings", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !27, i64 16, !27, i64 17, !27, i64 18, !27, i64 19, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !27, i64 36, !27, i64 37, !27, i64 38, !27, i64 39, !27, i64 40, !27, i64 41, !27, i64 42, !27, i64 43, !18, i64 44, !18, i64 48, !27, i64 52, !27, i64 53, !27, i64 54, !18, i64 56, !12, i64 60, !27, i64 64, !27, i64 65, !27, i64 66, !27, i64 67, !27, i64 68, !7, i64 72, !7, i64 88, !7, i64 104, !7, i64 120, !12, i64 136, !27, i64 140, !27, i64 141, !27, i64 142, !27, i64 143, !12, i64 144}
!27 = !{!"bool", !7, i64 0}
!28 = !{i8 0, i8 2}
!29 = !{}
!30 = !{!26, !27, i64 17}
!31 = !{!32, !12, i64 16}
!32 = !{!"_ZTS20QuantizationPosition", !7, i64 0, !18, i64 12, !12, i64 16, !27, i64 20, !18, i64 24}
!33 = distinct !{!33, !23}
!34 = !{!32, !18, i64 12}
!35 = !{!10, !12, i64 8}
!36 = !{!32, !27, i64 20}
!37 = distinct !{!37, !23}


; 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"

@.str.1 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [68 x i8], align 1
@__PRETTY_FUNCTION__._Z17getPositionBoundsPfS_RK6StreamRK20QuantizationPositionRK8Settings = external hidden unnamed_addr constant [105 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [23 x i8], align 1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_Z17getPositionBoundsPfS_RK6StreamRK20QuantizationPositionRK8Settings(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(48) %2, ptr nocapture noundef nonnull readonly align 4 dereferenceable(28) %3, ptr nocapture noundef nonnull readonly align 4 dereferenceable(148) %4) local_unnamed_addr #1 {
  %6 = load i32, ptr %2, align 8, !tbaa !5
  %7 = icmp eq i32 %6, 1
  br i1 %7, label %9, label %8

8:                                                ; preds = %5
  tail call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 216, ptr noundef nonnull @__PRETTY_FUNCTION__._Z17getPositionBoundsPfS_RK6StreamRK20QuantizationPositionRK8Settings) #6
  unreachable

9:                                                ; preds = %5
  %10 = getelementptr inbounds i8, ptr %2, i64 24
  %11 = tail call noundef i64 @_ZNKSt6vectorI4AttrSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  %.not = icmp eq i64 %11, 0
  br i1 %.not, label %12, label %13

12:                                               ; preds = %9
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.2, i32 noundef 217, ptr noundef nonnull @__PRETTY_FUNCTION__._Z17getPositionBoundsPfS_RK6StreamRK20QuantizationPositionRK8Settings) #6
  unreachable

13:                                               ; preds = %9
  %14 = getelementptr inbounds i8, ptr %0, i64 8
  store float 0x47EFFFFFE0000000, ptr %14, align 4, !tbaa !16
  %15 = getelementptr inbounds i8, ptr %0, i64 4
  store <2 x float> <float 0x47EFFFFFE0000000, float 0x47EFFFFFE0000000>, ptr %0, align 4, !tbaa !16
  %16 = getelementptr inbounds i8, ptr %1, i64 8
  store float 0xC7EFFFFFE0000000, ptr %16, align 4, !tbaa !16
  %17 = getelementptr inbounds i8, ptr %1, i64 4
  store <2 x float> <float 0xC7EFFFFFE0000000, float 0xC7EFFFFFE0000000>, ptr %1, align 4, !tbaa !16
  %18 = tail call noundef i64 @_ZNKSt6vectorI4AttrSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  %.not88 = icmp eq i64 %18, 0
  br i1 %.not88, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %13
  %19 = getelementptr inbounds i8, ptr %4, i64 140
  %20 = load i8, ptr %19, align 4, !tbaa !18, !range !21, !noundef !22
  %21 = trunc nuw i8 %20 to i1
  br i1 %21, label %40, label %.loopexit

.lr.ph:                                           ; preds = %13, %.lr.ph
  %.07985 = phi i64 [ %37, %.lr.ph ], [ 0, %13 ]
  %22 = tail call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI4AttrSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %.07985) #7
  %23 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %0, ptr noundef nonnull align 4 dereferenceable(4) %22)
  %24 = load float, ptr %23, align 4, !tbaa !16
  store float %24, ptr %0, align 4, !tbaa !16
  %25 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %22)
  %26 = load float, ptr %25, align 4, !tbaa !16
  store float %26, ptr %1, align 4, !tbaa !16
  %27 = getelementptr inbounds i8, ptr %22, i64 4
  %28 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %27)
  %29 = load float, ptr %28, align 4, !tbaa !16
  store float %29, ptr %15, align 4, !tbaa !16
  %30 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %27)
  %31 = load float, ptr %30, align 4, !tbaa !16
  store float %31, ptr %17, align 4, !tbaa !16
  %32 = getelementptr inbounds i8, ptr %22, i64 8
  %33 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %32)
  %34 = load float, ptr %33, align 4, !tbaa !16
  store float %34, ptr %14, align 4, !tbaa !16
  %35 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %32)
  %36 = load float, ptr %35, align 4, !tbaa !16
  store float %36, ptr %16, align 4, !tbaa !16
  %37 = add nuw i64 %.07985, 1
  %38 = tail call noundef i64 @_ZNKSt6vectorI4AttrSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  %39 = icmp ult i64 %37, %38
  br i1 %39, label %.lr.ph, label %._crit_edge, !llvm.loop !23

40:                                               ; preds = %._crit_edge
  %41 = getelementptr inbounds i8, ptr %4, i64 17
  %42 = load i8, ptr %41, align 1, !tbaa !25, !range !21, !noundef !22
  %43 = trunc nuw i8 %42 to i1
  br i1 %43, label %.preheader, label %63

.preheader:                                       ; preds = %40
  %44 = getelementptr inbounds i8, ptr %3, i64 16
  %45 = load float, ptr %0, align 4, !tbaa !16
  %46 = load i32, ptr %44, align 4, !tbaa !26
  %47 = tail call float @meshopt_quantizeFloat(float noundef %45, i32 noundef %46)
  store float %47, ptr %0, align 4, !tbaa !16
  %48 = load float, ptr %1, align 4, !tbaa !16
  %49 = load i32, ptr %44, align 4, !tbaa !26
  %50 = tail call float @meshopt_quantizeFloat(float noundef %48, i32 noundef %49)
  store float %50, ptr %1, align 4, !tbaa !16
  %51 = load float, ptr %15, align 4, !tbaa !16
  %52 = load i32, ptr %44, align 4, !tbaa !26
  %53 = tail call float @meshopt_quantizeFloat(float noundef %51, i32 noundef %52)
  store float %53, ptr %15, align 4, !tbaa !16
  %54 = load float, ptr %17, align 4, !tbaa !16
  %55 = load i32, ptr %44, align 4, !tbaa !26
  %56 = tail call float @meshopt_quantizeFloat(float noundef %54, i32 noundef %55)
  store float %56, ptr %17, align 4, !tbaa !16
  %57 = load float, ptr %14, align 4, !tbaa !16
  %58 = load i32, ptr %44, align 4, !tbaa !26
  %59 = tail call float @meshopt_quantizeFloat(float noundef %57, i32 noundef %58)
  store float %59, ptr %14, align 4, !tbaa !16
  %60 = load float, ptr %16, align 4, !tbaa !16
  %61 = load i32, ptr %44, align 4, !tbaa !26
  %62 = tail call float @meshopt_quantizeFloat(float noundef %60, i32 noundef %61)
  br label %.loopexit.sink.split

63:                                               ; preds = %40
  %64 = getelementptr inbounds i8, ptr %3, i64 12
  %65 = load float, ptr %64, align 4, !tbaa !28
  %66 = fcmp oeq float %65, 0.000000e+00
  br i1 %66, label %._crit_edge93, label %67

._crit_edge93:                                    ; preds = %63
  %.phi.trans.insert = getelementptr inbounds i8, ptr %2, i64 8
  %.pre = load i32, ptr %.phi.trans.insert, align 8, !tbaa !29
  br label %78

67:                                               ; preds = %63
  %68 = fdiv float 1.000000e+00, %65
  %69 = getelementptr inbounds i8, ptr %2, i64 8
  %70 = load i32, ptr %69, align 8, !tbaa !29
  %71 = icmp sgt i32 %70, 0
  %72 = getelementptr inbounds i8, ptr %3, i64 20
  %73 = load i8, ptr %72, align 4, !range !21
  %74 = trunc nuw i8 %73 to i1
  %75 = select i1 %71, i1 %74, i1 false
  %76 = select i1 %75, float 0x3FDFFFE000000000, float 1.000000e+00
  %77 = fmul float %68, %76
  br label %78

78:                                               ; preds = %._crit_edge93, %67
  %79 = phi i32 [ %70, %67 ], [ %.pre, %._crit_edge93 ]
  %80 = phi float [ %77, %67 ], [ 0.000000e+00, %._crit_edge93 ]
  %81 = getelementptr inbounds i8, ptr %2, i64 8
  %82 = getelementptr inbounds i8, ptr %3, i64 16
  %83 = icmp eq i32 %79, 0
  %84 = load float, ptr %0, align 4, !tbaa !16
  %85 = load i32, ptr %82, align 4, !tbaa !26
  br i1 %83, label %86, label %99

86:                                               ; preds = %78
  %87 = load float, ptr %3, align 4, !tbaa !16
  %88 = fsub float %84, %87
  %89 = fmul float %80, %88
  %90 = tail call noundef i32 @_Z21meshopt_quantizeUnormfi(float noundef %89, i32 noundef %85)
  %91 = sitofp i32 %90 to float
  store float %91, ptr %0, align 4, !tbaa !16
  %92 = load float, ptr %1, align 4, !tbaa !16
  %93 = load float, ptr %3, align 4, !tbaa !16
  %94 = fsub float %92, %93
  %95 = fmul float %80, %94
  %96 = load i32, ptr %82, align 4, !tbaa !26
  %97 = tail call noundef i32 @_Z21meshopt_quantizeUnormfi(float noundef %95, i32 noundef %96)
  %98 = sitofp i32 %97 to float
  br label %116

99:                                               ; preds = %78
  %100 = fcmp oge float %84, 0.000000e+00
  %101 = tail call float @llvm.fabs.f32(float %84)
  %102 = fmul float %80, %101
  %103 = tail call noundef i32 @_Z21meshopt_quantizeUnormfi(float noundef %102, i32 noundef %85)
  %104 = sitofp i32 %103 to float
  %105 = fneg float %104
  %106 = select i1 %100, float %104, float %105
  store float %106, ptr %0, align 4, !tbaa !16
  %107 = load float, ptr %1, align 4, !tbaa !16
  %108 = fcmp oge float %107, 0.000000e+00
  %109 = tail call float @llvm.fabs.f32(float %107)
  %110 = fmul float %80, %109
  %111 = load i32, ptr %82, align 4, !tbaa !26
  %112 = tail call noundef i32 @_Z21meshopt_quantizeUnormfi(float noundef %110, i32 noundef %111)
  %113 = sitofp i32 %112 to float
  %114 = fneg float %113
  %115 = select i1 %108, float %113, float %114
  br label %116

116:                                              ; preds = %86, %99
  %.sink = phi float [ %98, %86 ], [ %115, %99 ]
  store float %.sink, ptr %1, align 4
  %117 = load i32, ptr %81, align 8, !tbaa !29
  %118 = icmp eq i32 %117, 0
  %119 = load float, ptr %15, align 4, !tbaa !16
  br i1 %118, label %138, label %120

120:                                              ; preds = %116
  %121 = fcmp oge float %119, 0.000000e+00
  %122 = tail call float @llvm.fabs.f32(float %119)
  %123 = fmul float %80, %122
  %124 = load i32, ptr %82, align 4, !tbaa !26
  %125 = tail call noundef i32 @_Z21meshopt_quantizeUnormfi(float noundef %123, i32 noundef %124)
  %126 = sitofp i32 %125 to float
  %127 = fneg float %126
  %128 = select i1 %121, float %126, float %127
  store float %128, ptr %15, align 4, !tbaa !16
  %129 = load float, ptr %17, align 4, !tbaa !16
  %130 = fcmp oge float %129, 0.000000e+00
  %131 = tail call float @llvm.fabs.f32(float %129)
  %132 = fmul float %80, %131
  %133 = load i32, ptr %82, align 4, !tbaa !26
  %134 = tail call noundef i32 @_Z21meshopt_quantizeUnormfi(float noundef %132, i32 noundef %133)
  %135 = sitofp i32 %134 to float
  %136 = fneg float %135
  %137 = select i1 %130, float %135, float %136
  br label %153

138:                                              ; preds = %116
  %139 = getelementptr inbounds i8, ptr %3, i64 4
  %140 = load float, ptr %139, align 4, !tbaa !16
  %141 = fsub float %119, %140
  %142 = fmul float %80, %141
  %143 = load i32, ptr %82, align 4, !tbaa !26
  %144 = tail call noundef i32 @_Z21meshopt_quantizeUnormfi(float noundef %142, i32 noundef %143)
  %145 = sitofp i32 %144 to float
  store float %145, ptr %15, align 4, !tbaa !16
  %146 = load float, ptr %17, align 4, !tbaa !16
  %147 = load float, ptr %139, align 4, !tbaa !16
  %148 = fsub float %146, %147
  %149 = fmul float %80, %148
  %150 = load i32, ptr %82, align 4, !tbaa !26
  %151 = tail call noundef i32 @_Z21meshopt_quantizeUnormfi(float noundef %149, i32 noundef %150)
  %152 = sitofp i32 %151 to float
  br label %153

153:                                              ; preds = %138, %120
  %storemerge = phi float [ %137, %120 ], [ %152, %138 ]
  store float %storemerge, ptr %17, align 4, !tbaa !16
  %154 = load i32, ptr %81, align 8, !tbaa !29
  %155 = icmp eq i32 %154, 0
  %156 = load float, ptr %14, align 4, !tbaa !16
  br i1 %155, label %175, label %157

157:                                              ; preds = %153
  %158 = fcmp oge float %156, 0.000000e+00
  %159 = tail call float @llvm.fabs.f32(float %156)
  %160 = fmul float %80, %159
  %161 = load i32, ptr %82, align 4, !tbaa !26
  %162 = tail call noundef i32 @_Z21meshopt_quantizeUnormfi(float noundef %160, i32 noundef %161)
  %163 = sitofp i32 %162 to float
  %164 = fneg float %163
  %165 = select i1 %158, float %163, float %164
  store float %165, ptr %14, align 4, !tbaa !16
  %166 = load float, ptr %16, align 4, !tbaa !16
  %167 = fcmp oge float %166, 0.000000e+00
  %168 = tail call float @llvm.fabs.f32(float %166)
  %169 = fmul float %80, %168
  %170 = load i32, ptr %82, align 4, !tbaa !26
  %171 = tail call noundef i32 @_Z21meshopt_quantizeUnormfi(float noundef %169, i32 noundef %170)
  %172 = sitofp i32 %171 to float
  %173 = fneg float %172
  %174 = select i1 %167, float %172, float %173
  br label %.loopexit.sink.split

175:                                              ; preds = %153
  %176 = getelementptr inbounds i8, ptr %3, i64 8
  %177 = load float, ptr %176, align 4, !tbaa !16
  %178 = fsub float %156, %177
  %179 = fmul float %80, %178
  %180 = load i32, ptr %82, align 4, !tbaa !26
  %181 = tail call noundef i32 @_Z21meshopt_quantizeUnormfi(float noundef %179, i32 noundef %180)
  %182 = sitofp i32 %181 to float
  store float %182, ptr %14, align 4, !tbaa !16
  %183 = load float, ptr %16, align 4, !tbaa !16
  %184 = load float, ptr %176, align 4, !tbaa !16
  %185 = fsub float %183, %184
  %186 = fmul float %80, %185
  %187 = load i32, ptr %82, align 4, !tbaa !26
  %188 = tail call noundef i32 @_Z21meshopt_quantizeUnormfi(float noundef %186, i32 noundef %187)
  %189 = sitofp i32 %188 to float
  br label %.loopexit.sink.split

.loopexit.sink.split:                             ; preds = %157, %175, %.preheader
  %storemerge94.sink = phi float [ %62, %.preheader ], [ %174, %157 ], [ %189, %175 ]
  store float %storemerge94.sink, ptr %16, align 4, !tbaa !16
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.sink.split, %._crit_edge
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI4AttrSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI4AttrSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0

declare float @meshopt_quantizeFloat(float noundef, i32 noundef) local_unnamed_addr #4

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTS6Stream", !7, i64 0, !10, i64 4, !10, i64 8, !11, i64 16, !12, i64 24}
!7 = !{!"_ZTS20cgltf_attribute_type", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"_ZTSSt6vectorI4AttrSaIS0_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseI4AttrSaIS0_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseI4AttrSaIS0_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseI4AttrSaIS0_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!16 = !{!17, !17, i64 0}
!17 = !{!"float", !8, i64 0}
!18 = !{!19, !20, i64 140}
!19 = !{!"_ZTS8Settings", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !20, i64 16, !20, i64 17, !20, i64 18, !20, i64 19, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !20, i64 36, !20, i64 37, !20, i64 38, !20, i64 39, !20, i64 40, !20, i64 41, !20, i64 42, !20, i64 43, !17, i64 44, !17, i64 48, !20, i64 52, !20, i64 53, !20, i64 54, !17, i64 56, !10, i64 60, !20, i64 64, !20, i64 65, !20, i64 66, !20, i64 67, !20, i64 68, !8, i64 72, !8, i64 88, !8, i64 104, !8, i64 120, !10, i64 136, !20, i64 140, !20, i64 141, !20, i64 142, !20, i64 143, !10, i64 144}
!20 = !{!"bool", !8, i64 0}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!19, !20, i64 17}
!26 = !{!27, !10, i64 16}
!27 = !{!"_ZTS20QuantizationPosition", !8, i64 0, !17, i64 12, !10, i64 16, !20, i64 20, !17, i64 24}
!28 = !{!27, !17, i64 12}
!29 = !{!6, !10, i64 8}


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