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

; 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.Bounds = type { %struct.Attr, %struct.Attr }
%struct.Attr = type { [4 x float] }
%"class.std::vector.40" = type { %"struct.std::_Vector_base.41" }
%"struct.std::_Vector_base.41" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.42" = type { i8 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Bounds, std::allocator<Bounds>>::_Vector_impl" }
%"struct.std::_Vector_base<Bounds, std::allocator<Bounds>>::_Vector_impl" = type { %"struct.std::_Vector_base<Bounds, std::allocator<Bounds>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Bounds, std::allocator<Bounds>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%struct.Mesh = type { i32, %"class.std::vector.5", %"class.std::vector.10", ptr, ptr, %struct.cgltf_extras, i32, %"class.std::vector.15", %"class.std::vector.20", i8, [2 x i64], i64, %"class.std::vector.25", %"class.std::vector.30", %"class.std::vector.35" }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<cgltf_node *, std::allocator<cgltf_node *>>::_Vector_impl" }
%"struct.std::_Vector_base<cgltf_node *, std::allocator<cgltf_node *>>::_Vector_impl" = type { %"struct.std::_Vector_base<cgltf_node *, std::allocator<cgltf_node *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cgltf_node *, std::allocator<cgltf_node *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<Transform, std::allocator<Transform>>::_Vector_impl" }
%"struct.std::_Vector_base<Transform, std::allocator<Transform>>::_Vector_impl" = type { %"struct.std::_Vector_base<Transform, std::allocator<Transform>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Transform, std::allocator<Transform>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.cgltf_extras = type { i64, i64, ptr }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<Stream, std::allocator<Stream>>::_Vector_impl" }
%"struct.std::_Vector_base<Stream, std::allocator<Stream>>::_Vector_impl" = type { %"struct.std::_Vector_base<Stream, std::allocator<Stream>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Stream, std::allocator<Stream>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.25" = type { %"struct.std::_Vector_base.26" }
%"struct.std::_Vector_base.26" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.30" = type { %"struct.std::_Vector_base.31" }
%"struct.std::_Vector_base.31" = type { %"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl" }
%"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.35" = type { %"struct.std::_Vector_base.36" }
%"struct.std::_Vector_base.36" = type { %"struct.std::_Vector_base<cgltf_material_mapping, std::allocator<cgltf_material_mapping>>::_Vector_impl" }
%"struct.std::_Vector_base<cgltf_material_mapping, std::allocator<cgltf_material_mapping>>::_Vector_impl" = type { %"struct.std::_Vector_base<cgltf_material_mapping, std::allocator<cgltf_material_mapping>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cgltf_material_mapping, std::allocator<cgltf_material_mapping>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.cgltf_material_mapping = type { i64, ptr, %struct.cgltf_extras }
%struct.cgltf_data = type { i32, ptr, %struct.cgltf_asset, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, ptr, i64, ptr, i64, %struct.cgltf_extras, i64, ptr, ptr, i64, ptr, i64, ptr, i64, ptr, i64, %struct.cgltf_memory_options, %struct.cgltf_file_options }
%struct.cgltf_asset = type { ptr, ptr, ptr, ptr, %struct.cgltf_extras, i64, ptr }
%struct.cgltf_memory_options = type { ptr, ptr, ptr }
%struct.cgltf_file_options = type { ptr, ptr, ptr }
%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.QuantizationTexture = type { [2 x float], [2 x float], i32, i8 }

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI6BoundsSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL13computeBoundsRK4Mesh20cgltf_attribute_type(ptr dead_on_unwind noalias writable sret(%struct.Bounds) align 4, ptr noundef nonnull align 8 dereferenceable(256), i32 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(256) ptr @_ZNKSt6vectorI4MeshSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Bounds5mergeERKS_(ptr noundef nonnull align 4 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(32)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6Bounds7isValidEv(ptr noundef nonnull align 4 dereferenceable(32)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI6BoundsSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z26prepareQuantizationTextureP10cgltf_dataRSt6vectorI19QuantizationTextureSaIS2_EERS1_ImSaImEERKS1_I4MeshSaIS9_EERK8Settings(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(148) %4) #2 personality ptr @__gxx_personality_v0 {
  %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 %"class.std::vector.40", align 8
  %12 = alloca %"class.std::allocator.42", align 1
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca %"class.std::vector", align 8
  %23 = alloca %"class.std::allocator", align 1
  %24 = alloca i64, align 8
  %25 = alloca ptr, align 8
  %26 = alloca %struct.Bounds, align 4
  %27 = alloca i64, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  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
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #3
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = call noundef i64 @_ZNKSt6vectorI19QuantizationTextureSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #3
  call void @_ZNSaImEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #3
  invoke void @_ZNSt6vectorImSaImEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %31, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %32 unwind label %38

32:                                               ; preds = %5
  call void @_ZNSt15__new_allocatorImED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %33

33:                                               ; preds = %46, %32
  %34 = load i64, ptr %15, align 8, !tbaa !9
  %35 = call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #3
  %36 = icmp ult i64 %34, %35
  br i1 %36, label %42, label %37

37:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  br label %49

38:                                               ; preds = %5
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %13, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %14, align 4
  call void @_ZNSt15__new_allocatorImED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #3
  br label %286

42:                                               ; preds = %33
  %43 = load i64, ptr %15, align 8, !tbaa !9
  %44 = load i64, ptr %15, align 8, !tbaa !9
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %44) #3
  store i64 %43, ptr %45, align 8, !tbaa !9
  br label %46

46:                                               ; preds = %42
  %47 = load i64, ptr %15, align 8, !tbaa !9
  %48 = add i64 %47, 1
  store i64 %48, ptr %15, align 8, !tbaa !9
  br label %33, !llvm.loop !11

49:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %50

50:                                               ; preds = %140, %49
  %51 = load i64, ptr %16, align 8, !tbaa !9
  %52 = load ptr, ptr %9, align 8, !tbaa !5
  %53 = call noundef i64 @_ZNKSt6vectorI4MeshSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %52) #3
  %54 = icmp ult i64 %51, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %50
  store i32 5, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  br label %144

56:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = load i64, ptr %16, align 8, !tbaa !9
  %59 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNKSt6vectorI4MeshSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %57, i64 noundef %58) #3
  store ptr %59, ptr %18, align 8, !tbaa !5
  %60 = load ptr, ptr %18, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.Mesh, ptr %60, i32 0, i32 3
  %62 = load ptr, ptr %61, align 8, !tbaa !13
  %63 = icmp ne ptr %62, null
  br i1 %63, label %69, label %64

64:                                               ; preds = %56
  %65 = load ptr, ptr %18, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.Mesh, ptr %65, i32 0, i32 14
  %67 = call noundef zeroext i1 @_ZNKSt6vectorI22cgltf_material_mappingSaIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %66) #3
  br i1 %67, label %68, label %69

68:                                               ; preds = %64
  store i32 7, ptr %17, align 4
  br label %137

69:                                               ; preds = %64, %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  %70 = load ptr, ptr %18, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.Mesh, ptr %70, i32 0, i32 3
  %72 = load ptr, ptr %71, align 8, !tbaa !13
  %73 = icmp ne ptr %72, null
  br i1 %73, label %74, label %78

74:                                               ; preds = %69
  %75 = load ptr, ptr %18, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.Mesh, ptr %75, i32 0, i32 3
  %77 = load ptr, ptr %76, align 8, !tbaa !13
  br label %84

78:                                               ; preds = %69
  %79 = load ptr, ptr %18, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.Mesh, ptr %79, i32 0, i32 14
  %81 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorI22cgltf_material_mappingSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %80, i64 noundef 0) #3
  %82 = getelementptr inbounds %struct.cgltf_material_mapping, ptr %81, i32 0, i32 1
  %83 = load ptr, ptr %82, align 8, !tbaa !47
  br label %84

84:                                               ; preds = %78, %74
  %85 = phi ptr [ %77, %74 ], [ %83, %78 ]
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.cgltf_data, ptr %86, i32 0, i32 5
  %88 = load ptr, ptr %87, align 8, !tbaa !49
  %89 = ptrtoint ptr %85 to i64
  %90 = ptrtoint ptr %88 to i64
  %91 = sub i64 %89, %90
  %92 = sdiv exact i64 %91, 1352
  %93 = invoke noundef i64 @_ZL6followRSt6vectorImSaImEEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %92)
          to label %94 unwind label %102

94:                                               ; preds = %84
  store i64 %93, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  store i64 0, ptr %20, align 8, !tbaa !9
  br label %95

95:                                               ; preds = %125, %94
  %96 = load i64, ptr %20, align 8, !tbaa !9
  %97 = load ptr, ptr %18, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.Mesh, ptr %97, i32 0, i32 14
  %99 = call noundef i64 @_ZNKSt6vectorI22cgltf_material_mappingSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %98) #3
  %100 = icmp ult i64 %96, %99
  br i1 %100, label %106, label %101

101:                                              ; preds = %95
  store i32 8, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  br label %132

102:                                              ; preds = %84
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %13, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %14, align 4
  br label %143

106:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  %107 = load ptr, ptr %18, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.Mesh, ptr %107, i32 0, i32 14
  %109 = load i64, ptr %20, align 8, !tbaa !9
  %110 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorI22cgltf_material_mappingSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %108, i64 noundef %109) #3
  %111 = getelementptr inbounds %struct.cgltf_material_mapping, ptr %110, i32 0, i32 1
  %112 = load ptr, ptr %111, align 8, !tbaa !47
  %113 = load ptr, ptr %6, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.cgltf_data, ptr %113, i32 0, i32 5
  %115 = load ptr, ptr %114, align 8, !tbaa !49
  %116 = ptrtoint ptr %112 to i64
  %117 = ptrtoint ptr %115 to i64
  %118 = sub i64 %116, %117
  %119 = sdiv exact i64 %118, 1352
  %120 = invoke noundef i64 @_ZL6followRSt6vectorImSaImEEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %119)
          to label %121 unwind label %128

121:                                              ; preds = %106
  store i64 %120, ptr %21, align 8, !tbaa !9
  %122 = load i64, ptr %19, align 8, !tbaa !9
  %123 = load i64, ptr %21, align 8, !tbaa !9
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %123) #3
  store i64 %122, ptr %124, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  br label %125

125:                                              ; preds = %121
  %126 = load i64, ptr %20, align 8, !tbaa !9
  %127 = add i64 %126, 1
  store i64 %127, ptr %20, align 8, !tbaa !9
  br label %95, !llvm.loop !55

128:                                              ; preds = %106
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %13, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  br label %143

132:                                              ; preds = %101
  %133 = load i64, ptr %19, align 8, !tbaa !9
  %134 = load ptr, ptr %8, align 8, !tbaa !5
  %135 = load i64, ptr %16, align 8, !tbaa !9
  %136 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %134, i64 noundef %135) #3
  store i64 %133, ptr %136, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  store i32 0, ptr %17, align 4
  br label %137

137:                                              ; preds = %132, %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  %138 = load i32, ptr %17, align 4
  switch i32 %138, label %292 [
    i32 0, label %139
    i32 7, label %140
  ]

139:                                              ; preds = %137
  br label %140

140:                                              ; preds = %139, %137
  %141 = load i64, ptr %16, align 8, !tbaa !9
  %142 = add i64 %141, 1
  store i64 %142, ptr %16, align 8, !tbaa !9
  br label %50, !llvm.loop !56

143:                                              ; preds = %128, %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  br label %285

144:                                              ; preds = %55
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #3
  %145 = load ptr, ptr %7, align 8, !tbaa !5
  %146 = call noundef i64 @_ZNKSt6vectorI19QuantizationTextureSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %145) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #3
  call void @_ZNSaI6BoundsEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #3
  invoke void @_ZNSt6vectorI6BoundsSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %146, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %147 unwind label %154

147:                                              ; preds = %144
  call void @_ZNSt15__new_allocatorI6BoundsED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  store i64 0, ptr %24, align 8, !tbaa !9
  br label %148

148:                                              ; preds = %192, %147
  %149 = load i64, ptr %24, align 8, !tbaa !9
  %150 = load ptr, ptr %9, align 8, !tbaa !5
  %151 = call noundef i64 @_ZNKSt6vectorI4MeshSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %150) #3
  %152 = icmp ult i64 %149, %151
  br i1 %152, label %158, label %153

153:                                              ; preds = %148
  store i32 11, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  br label %204

154:                                              ; preds = %144
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %13, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %14, align 4
  call void @_ZNSt15__new_allocatorI6BoundsED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #3
  br label %284

158:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #3
  %159 = load ptr, ptr %9, align 8, !tbaa !5
  %160 = load i64, ptr %24, align 8, !tbaa !9
  %161 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNKSt6vectorI4MeshSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %159, i64 noundef %160) #3
  store ptr %161, ptr %25, align 8, !tbaa !5
  %162 = load ptr, ptr %25, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.Mesh, ptr %162, i32 0, i32 3
  %164 = load ptr, ptr %163, align 8, !tbaa !13
  %165 = icmp ne ptr %164, null
  br i1 %165, label %171, label %166

166:                                              ; preds = %158
  %167 = load ptr, ptr %25, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.Mesh, ptr %167, i32 0, i32 14
  %169 = call noundef zeroext i1 @_ZNKSt6vectorI22cgltf_material_mappingSaIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %168) #3
  br i1 %169, label %170, label %171

170:                                              ; preds = %166
  store i32 13, ptr %17, align 4
  br label %189

171:                                              ; preds = %166, %158
  %172 = load ptr, ptr %8, align 8, !tbaa !5
  %173 = load i64, ptr %24, align 8, !tbaa !9
  %174 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %172, i64 noundef %173) #3
  %175 = load i64, ptr %174, align 8, !tbaa !9
  %176 = invoke noundef i64 @_ZL6followRSt6vectorImSaImEEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %175)
          to label %177 unwind label %195

177:                                              ; preds = %171
  %178 = load ptr, ptr %8, align 8, !tbaa !5
  %179 = load i64, ptr %24, align 8, !tbaa !9
  %180 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %178, i64 noundef %179) #3
  store i64 %176, ptr %180, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #3
  %181 = load ptr, ptr %25, align 8, !tbaa !5
  invoke void @_ZL13computeBoundsRK4Mesh20cgltf_attribute_type(ptr dead_on_unwind writable sret(%struct.Bounds) align 4 %26, ptr noundef nonnull align 8 dereferenceable(256) %181, i32 noundef 4)
          to label %182 unwind label %199

182:                                              ; preds = %177
  %183 = load ptr, ptr %8, align 8, !tbaa !5
  %184 = load i64, ptr %24, align 8, !tbaa !9
  %185 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %183, i64 noundef %184) #3
  %186 = load i64, ptr %185, align 8, !tbaa !9
  %187 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNSt6vectorI6BoundsSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %186) #3
  invoke void @_ZN6Bounds5mergeERKS_(ptr noundef nonnull align 4 dereferenceable(32) %187, ptr noundef nonnull align 4 dereferenceable(32) %26)
          to label %188 unwind label %199

188:                                              ; preds = %182
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #3
  store i32 0, ptr %17, align 4
  br label %189

189:                                              ; preds = %188, %170
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  %190 = load i32, ptr %17, align 4
  switch i32 %190, label %292 [
    i32 0, label %191
    i32 13, label %192
  ]

191:                                              ; preds = %189
  br label %192

192:                                              ; preds = %191, %189
  %193 = load i64, ptr %24, align 8, !tbaa !9
  %194 = add i64 %193, 1
  store i64 %194, ptr %24, align 8, !tbaa !9
  br label %148, !llvm.loop !57

195:                                              ; preds = %171
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %13, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %14, align 4
  br label %203

199:                                              ; preds = %182, %177
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %13, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #3
  br label %203

203:                                              ; preds = %199, %195
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  br label %283

204:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #3
  store i64 0, ptr %27, align 8, !tbaa !9
  br label %205

205:                                              ; preds = %279, %204
  %206 = load i64, ptr %27, align 8, !tbaa !9
  %207 = load ptr, ptr %7, align 8, !tbaa !5
  %208 = call noundef i64 @_ZNKSt6vectorI19QuantizationTextureSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %207) #3
  %209 = icmp ult i64 %206, %208
  br i1 %209, label %211, label %210

210:                                              ; preds = %205
  store i32 14, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  br label %282

211:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #3
  %212 = load ptr, ptr %7, align 8, !tbaa !5
  %213 = load i64, ptr %27, align 8, !tbaa !9
  %214 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZNSt6vectorI19QuantizationTextureSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %212, i64 noundef %213) #3
  store ptr %214, ptr %28, align 8, !tbaa !5
  %215 = load ptr, ptr %10, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.Settings, ptr %215, i32 0, i32 1
  %217 = load i32, ptr %216, align 4, !tbaa !58
  %218 = load ptr, ptr %28, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.QuantizationTexture, ptr %218, i32 0, i32 2
  store i32 %217, ptr %219, align 4, !tbaa !61
  %220 = load ptr, ptr %28, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.QuantizationTexture, ptr %220, i32 0, i32 3
  store i8 1, ptr %221, align 4, !tbaa !63
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #3
  %222 = load i64, ptr %27, align 8, !tbaa !9
  %223 = invoke noundef i64 @_ZL6followRSt6vectorImSaImEEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %222)
          to label %224 unwind label %274

224:                                              ; preds = %211
  %225 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNSt6vectorI6BoundsSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %223) #3
  store ptr %225, ptr %29, align 8, !tbaa !5
  %226 = load ptr, ptr %29, align 8, !tbaa !5
  %227 = invoke noundef zeroext i1 @_ZNK6Bounds7isValidEv(ptr noundef nonnull align 4 dereferenceable(32) %226)
          to label %228 unwind label %274

228:                                              ; preds = %224
  br i1 %227, label %229, label %278

229:                                              ; preds = %228
  %230 = load ptr, ptr %29, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.Bounds, ptr %230, i32 0, i32 0
  %232 = getelementptr inbounds %struct.Attr, ptr %231, i32 0, i32 0
  %233 = getelementptr inbounds [4 x float], ptr %232, i64 0, i64 0
  %234 = load float, ptr %233, align 4, !tbaa !64
  %235 = load ptr, ptr %28, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.QuantizationTexture, ptr %235, i32 0, i32 0
  %237 = getelementptr inbounds [2 x float], ptr %236, i64 0, i64 0
  store float %234, ptr %237, align 4, !tbaa !64
  %238 = load ptr, ptr %29, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.Bounds, ptr %238, i32 0, i32 0
  %240 = getelementptr inbounds %struct.Attr, ptr %239, i32 0, i32 0
  %241 = getelementptr inbounds [4 x float], ptr %240, i64 0, i64 1
  %242 = load float, ptr %241, align 4, !tbaa !64
  %243 = load ptr, ptr %28, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.QuantizationTexture, ptr %243, i32 0, i32 0
  %245 = getelementptr inbounds [2 x float], ptr %244, i64 0, i64 1
  store float %242, ptr %245, align 4, !tbaa !64
  %246 = load ptr, ptr %29, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.Bounds, ptr %246, i32 0, i32 1
  %248 = getelementptr inbounds %struct.Attr, ptr %247, i32 0, i32 0
  %249 = getelementptr inbounds [4 x float], ptr %248, i64 0, i64 0
  %250 = load float, ptr %249, align 4, !tbaa !64
  %251 = load ptr, ptr %29, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.Bounds, ptr %251, i32 0, i32 0
  %253 = getelementptr inbounds %struct.Attr, ptr %252, i32 0, i32 0
  %254 = getelementptr inbounds [4 x float], ptr %253, i64 0, i64 0
  %255 = load float, ptr %254, align 4, !tbaa !64
  %256 = fsub float %250, %255
  %257 = load ptr, ptr %28, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.QuantizationTexture, ptr %257, i32 0, i32 1
  %259 = getelementptr inbounds [2 x float], ptr %258, i64 0, i64 0
  store float %256, ptr %259, align 4, !tbaa !64
  %260 = load ptr, ptr %29, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.Bounds, ptr %260, i32 0, i32 1
  %262 = getelementptr inbounds %struct.Attr, ptr %261, i32 0, i32 0
  %263 = getelementptr inbounds [4 x float], ptr %262, i64 0, i64 1
  %264 = load float, ptr %263, align 4, !tbaa !64
  %265 = load ptr, ptr %29, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.Bounds, ptr %265, i32 0, i32 0
  %267 = getelementptr inbounds %struct.Attr, ptr %266, i32 0, i32 0
  %268 = getelementptr inbounds [4 x float], ptr %267, i64 0, i64 1
  %269 = load float, ptr %268, align 4, !tbaa !64
  %270 = fsub float %264, %269
  %271 = load ptr, ptr %28, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.QuantizationTexture, ptr %271, i32 0, i32 1
  %273 = getelementptr inbounds [2 x float], ptr %272, i64 0, i64 1
  store float %270, ptr %273, align 4, !tbaa !64
  br label %278

274:                                              ; preds = %224, %211
  %275 = landingpad { ptr, i32 }
          cleanup
  %276 = extractvalue { ptr, i32 } %275, 0
  store ptr %276, ptr %13, align 8
  %277 = extractvalue { ptr, i32 } %275, 1
  store i32 %277, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  br label %283

278:                                              ; preds = %229, %228
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  br label %279

279:                                              ; preds = %278
  %280 = load i64, ptr %27, align 8, !tbaa !9
  %281 = add i64 %280, 1
  store i64 %281, ptr %27, align 8, !tbaa !9
  br label %205, !llvm.loop !65

282:                                              ; preds = %210
  call void @_ZNSt6vectorI6BoundsSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #3
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #3
  ret void

283:                                              ; preds = %274, %203
  call void @_ZNSt6vectorI6BoundsSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #3
  br label %284

284:                                              ; preds = %283, %154
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #3
  br label %285

285:                                              ; preds = %284, %143
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #3
  br label %286

286:                                              ; preds = %285, %38
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #3
  br label %287

287:                                              ; preds = %286
  %288 = load ptr, ptr %13, align 8
  %289 = load i32, ptr %14, align 4
  %290 = insertvalue { ptr, i32 } poison, ptr %288, 0
  %291 = insertvalue { ptr, i32 } %290, i32 %289, 1
  resume { ptr, i32 } %291

292:                                              ; preds = %189, %137
  unreachable
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorImSaImEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorI22cgltf_material_mappingSaIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i64 @_ZL6followRSt6vectorImSaImEEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorI22cgltf_material_mappingSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !6, i64 56}
!14 = !{!"_ZTS4Mesh", !15, i64 0, !16, i64 8, !20, i64 32, !6, i64 56, !6, i64 64, !24, i64 72, !25, i64 96, !26, i64 104, !30, i64 128, !34, i64 152, !7, i64 160, !10, i64 176, !35, i64 184, !39, i64 208, !43, i64 232}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTSSt6vectorIP10cgltf_nodeSaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIP10cgltf_nodeSaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIP10cgltf_nodeSaIS1_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIP10cgltf_nodeSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"_ZTSSt6vectorI9TransformSaIS0_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseI9TransformSaIS0_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseI9TransformSaIS0_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseI9TransformSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!"_ZTS12cgltf_extras", !10, i64 0, !10, i64 8, !6, i64 16}
!25 = !{!"_ZTS20cgltf_primitive_type", !7, i64 0}
!26 = !{!"_ZTSSt6vectorI6StreamSaIS0_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseI6StreamSaIS0_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseI6StreamSaIS0_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseI6StreamSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = !{!"_ZTSSt6vectorIjSaIjEE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!34 = !{!"bool", !7, i64 0}
!35 = !{!"_ZTSSt6vectorIfSaIfEE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!39 = !{!"_ZTSSt6vectorIPKcSaIS1_EE", !40, i64 0}
!40 = !{!"_ZTSSt12_Vector_baseIPKcSaIS1_EE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseIPKcSaIS1_EE12_Vector_implE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseIPKcSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!43 = !{!"_ZTSSt6vectorI22cgltf_material_mappingSaIS0_EE", !44, i64 0}
!44 = !{!"_ZTSSt12_Vector_baseI22cgltf_material_mappingSaIS0_EE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseI22cgltf_material_mappingSaIS0_EE12_Vector_implE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseI22cgltf_material_mappingSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!47 = !{!48, !6, i64 8}
!48 = !{!"_ZTS22cgltf_material_mapping", !10, i64 0, !6, i64 8, !24, i64 16}
!49 = !{!50, !6, i64 104}
!50 = !{!"_ZTS10cgltf_data", !51, i64 0, !6, i64 8, !52, i64 16, !6, i64 88, !10, i64 96, !6, i64 104, !10, i64 112, !6, i64 120, !10, i64 128, !6, i64 136, !10, i64 144, !6, i64 152, !10, i64 160, !6, i64 168, !10, i64 176, !6, i64 184, !10, i64 192, !6, i64 200, !10, i64 208, !6, i64 216, !10, i64 224, !6, i64 232, !10, i64 240, !6, i64 248, !10, i64 256, !6, i64 264, !10, i64 272, !6, i64 280, !10, i64 288, !6, i64 296, !6, i64 304, !10, i64 312, !6, i64 320, !10, i64 328, !24, i64 336, !10, i64 360, !6, i64 368, !6, i64 376, !10, i64 384, !6, i64 392, !10, i64 400, !6, i64 408, !10, i64 416, !6, i64 424, !10, i64 432, !53, i64 440, !54, i64 464}
!51 = !{!"_ZTS15cgltf_file_type", !7, i64 0}
!52 = !{!"_ZTS11cgltf_asset", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !24, i64 32, !10, i64 56, !6, i64 64}
!53 = !{!"_ZTS20cgltf_memory_options", !6, i64 0, !6, i64 8, !6, i64 16}
!54 = !{!"_ZTS18cgltf_file_options", !6, i64 0, !6, i64 8, !6, i64 16}
!55 = distinct !{!55, !12}
!56 = distinct !{!56, !12}
!57 = distinct !{!57, !12}
!58 = !{!59, !15, i64 4}
!59 = !{!"_ZTS8Settings", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !34, i64 16, !34, i64 17, !34, i64 18, !34, i64 19, !15, i64 20, !15, i64 24, !15, i64 28, !15, i64 32, !34, i64 36, !34, i64 37, !34, i64 38, !34, i64 39, !34, i64 40, !34, i64 41, !34, i64 42, !34, i64 43, !60, i64 44, !60, i64 48, !34, i64 52, !34, i64 53, !34, i64 54, !60, i64 56, !15, i64 60, !34, i64 64, !34, i64 65, !34, i64 66, !34, i64 67, !34, i64 68, !7, i64 72, !7, i64 88, !7, i64 104, !7, i64 120, !15, i64 136, !34, i64 140, !34, i64 141, !34, i64 142, !34, i64 143, !15, i64 144}
!60 = !{!"float", !7, i64 0}
!61 = !{!62, !15, i64 16}
!62 = !{!"_ZTS19QuantizationTexture", !7, i64 0, !7, i64 8, !15, i64 16, !34, i64 20}
!63 = !{!62, !34, i64 20}
!64 = !{!60, !60, i64 0}
!65 = distinct !{!65, !12}


; 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.Bounds = type { %struct.Attr, %struct.Attr }
%struct.Attr = type { [4 x float] }
%"class.std::vector.40" = type { %"struct.std::_Vector_base.41" }
%"struct.std::_Vector_base.41" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.42" = type { i8 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Bounds, std::allocator<Bounds>>::_Vector_impl" }
%"struct.std::_Vector_base<Bounds, std::allocator<Bounds>>::_Vector_impl" = type { %"struct.std::_Vector_base<Bounds, std::allocator<Bounds>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Bounds, std::allocator<Bounds>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI6BoundsSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL13computeBoundsRK4Mesh20cgltf_attribute_type(ptr dead_on_unwind noalias writable sret(%struct.Bounds) align 4, ptr noundef nonnull align 8 dereferenceable(256), i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(256) ptr @_ZNKSt6vectorI4MeshSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Bounds5mergeERKS_(ptr noundef nonnull align 4 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(32)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6Bounds7isValidEv(ptr noundef nonnull align 4 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI6BoundsSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z26prepareQuantizationTextureP10cgltf_dataRSt6vectorI19QuantizationTextureSaIS2_EERS1_ImSaImEERKS1_I4MeshSaIS9_EERK8Settings(ptr nocapture noundef readonly %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr nocapture noundef nonnull readonly align 4 dereferenceable(148) %4) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.std::vector.40", align 8
  %7 = alloca %"class.std::allocator.42", align 1
  %8 = alloca %"class.std::vector", align 8
  %9 = alloca %"class.std::allocator", align 1
  %10 = alloca %struct.Bounds, align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #3
  %11 = tail call noundef i64 @_ZNKSt6vectorI19QuantizationTextureSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #3
  call void @_ZNSaImEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #3
  invoke void @_ZNSt6vectorImSaImEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %11, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %12 unwind label %16

12:                                               ; preds = %5
  call void @_ZNSt15__new_allocatorImED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #3
  %13 = call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #3
  %.not89 = icmp eq i64 %13, 0
  br i1 %.not89, label %.preheader76, label %.lr.ph

.preheader76:                                     ; preds = %.lr.ph, %12
  %14 = call noundef i64 @_ZNKSt6vectorI4MeshSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #3
  %.not90 = icmp eq i64 %14, 0
  br i1 %.not90, label %._crit_edge82, label %.lr.ph81

.lr.ph81:                                         ; preds = %.preheader76
  %15 = getelementptr inbounds i8, ptr %0, i64 104
  br label %23

16:                                               ; preds = %5
  %17 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorImED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #3
  br label %118

.lr.ph:                                           ; preds = %12, %.lr.ph
  %.06677 = phi i64 [ %19, %.lr.ph ], [ 0, %12 ]
  %18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %.06677) #3
  store i64 %.06677, ptr %18, align 8, !tbaa !5
  %19 = add nuw i64 %.06677, 1
  %20 = call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #3
  %21 = icmp ult i64 %19, %20
  br i1 %21, label %.lr.ph, label %.preheader76, !llvm.loop !9

._crit_edge82:                                    ; preds = %58, %.preheader76
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #3
  %22 = call noundef i64 @_ZNKSt6vectorI19QuantizationTextureSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #3
  call void @_ZNSaI6BoundsEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #3
  invoke void @_ZNSt6vectorI6BoundsSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %22, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %62 unwind label %66

23:                                               ; preds = %.lr.ph81, %58
  %.06880 = phi i64 [ 0, %.lr.ph81 ], [ %59, %58 ]
  %24 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNKSt6vectorI4MeshSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.06880) #3
  %25 = getelementptr inbounds i8, ptr %24, i64 56
  %26 = load ptr, ptr %25, align 8, !tbaa !11
  %.not73 = icmp eq ptr %26, null
  br i1 %.not73, label %27, label %.thread

27:                                               ; preds = %23
  %28 = getelementptr inbounds i8, ptr %24, i64 232
  %29 = call noundef zeroext i1 @_ZNKSt6vectorI22cgltf_material_mappingSaIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #3
  br i1 %29, label %58, label %30

30:                                               ; preds = %27
  %.pr = load ptr, ptr %25, align 8, !tbaa !11
  %.not74 = icmp eq ptr %.pr, null
  br i1 %.not74, label %31, label %.thread

31:                                               ; preds = %30
  %32 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorI22cgltf_material_mappingSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef 0) #3
  %33 = getelementptr inbounds i8, ptr %32, i64 8
  %34 = load ptr, ptr %33, align 8, !tbaa !46
  br label %.thread

.thread:                                          ; preds = %23, %30, %31
  %35 = phi ptr [ %34, %31 ], [ %.pr, %30 ], [ %26, %23 ]
  %36 = load ptr, ptr %15, align 8, !tbaa !48
  %37 = ptrtoint ptr %35 to i64
  %38 = ptrtoint ptr %36 to i64
  %39 = sub i64 %37, %38
  %40 = sdiv exact i64 %39, 1352
  %41 = call noundef i64 @_ZL6followRSt6vectorImSaImEEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %40)
  %42 = getelementptr inbounds i8, ptr %24, i64 232
  %43 = call noundef i64 @_ZNKSt6vectorI22cgltf_material_mappingSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %42) #3
  %.not91 = icmp eq i64 %43, 0
  br i1 %.not91, label %._crit_edge, label %.lr.ph79

._crit_edge:                                      ; preds = %.lr.ph79, %.thread
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.06880) #3
  store i64 %41, ptr %44, align 8, !tbaa !5
  br label %58

.lr.ph79:                                         ; preds = %.thread, %.lr.ph79
  %.06978 = phi i64 [ %55, %.lr.ph79 ], [ 0, %.thread ]
  %45 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorI22cgltf_material_mappingSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %42, i64 noundef %.06978) #3
  %46 = getelementptr inbounds i8, ptr %45, i64 8
  %47 = load ptr, ptr %46, align 8, !tbaa !46
  %48 = load ptr, ptr %15, align 8, !tbaa !48
  %49 = ptrtoint ptr %47 to i64
  %50 = ptrtoint ptr %48 to i64
  %51 = sub i64 %49, %50
  %52 = sdiv exact i64 %51, 1352
  %53 = call noundef i64 @_ZL6followRSt6vectorImSaImEEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %52)
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %53) #3
  store i64 %41, ptr %54, align 8, !tbaa !5
  %55 = add nuw i64 %.06978, 1
  %56 = call noundef i64 @_ZNKSt6vectorI22cgltf_material_mappingSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %42) #3
  %57 = icmp ult i64 %55, %56
  br i1 %57, label %.lr.ph79, label %._crit_edge, !llvm.loop !54

58:                                               ; preds = %27, %._crit_edge
  %59 = add nuw i64 %.06880, 1
  %60 = call noundef i64 @_ZNKSt6vectorI4MeshSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #3
  %61 = icmp ult i64 %59, %60
  br i1 %61, label %23, label %._crit_edge82, !llvm.loop !55

62:                                               ; preds = %._crit_edge82
  call void @_ZNSt15__new_allocatorI6BoundsED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #3
  %63 = call noundef i64 @_ZNKSt6vectorI4MeshSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #3
  %.not92 = icmp eq i64 %63, 0
  br i1 %.not92, label %.preheader, label %.lr.ph85

.preheader:                                       ; preds = %84, %62
  %64 = call noundef i64 @_ZNKSt6vectorI19QuantizationTextureSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #3
  %.not93 = icmp eq i64 %64, 0
  br i1 %.not93, label %._crit_edge88, label %.lr.ph87

.lr.ph87:                                         ; preds = %.preheader
  %65 = getelementptr inbounds i8, ptr %4, i64 4
  br label %90

66:                                               ; preds = %._crit_edge82
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI6BoundsED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #3
  br label %117

.lr.ph85:                                         ; preds = %62, %84
  %.06783 = phi i64 [ %85, %84 ], [ 0, %62 ]
  %68 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNKSt6vectorI4MeshSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.06783) #3
  %69 = getelementptr inbounds i8, ptr %68, i64 56
  %70 = load ptr, ptr %69, align 8, !tbaa !11
  %.not = icmp eq ptr %70, null
  br i1 %.not, label %71, label %74

71:                                               ; preds = %.lr.ph85
  %72 = getelementptr inbounds i8, ptr %68, i64 232
  %73 = call noundef zeroext i1 @_ZNKSt6vectorI22cgltf_material_mappingSaIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %72) #3
  br i1 %73, label %84, label %74

74:                                               ; preds = %71, %.lr.ph85
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.06783) #3
  %76 = load i64, ptr %75, align 8, !tbaa !5
  %77 = call noundef i64 @_ZL6followRSt6vectorImSaImEEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %76)
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.06783) #3
  store i64 %77, ptr %78, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #3
  invoke void @_ZL13computeBoundsRK4Mesh20cgltf_attribute_type(ptr dead_on_unwind nonnull writable sret(%struct.Bounds) align 4 %10, ptr noundef nonnull align 8 dereferenceable(256) %68, i32 noundef 4)
          to label %79 unwind label %88

79:                                               ; preds = %74
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.06783) #3
  %81 = load i64, ptr %80, align 8, !tbaa !5
  %82 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNSt6vectorI6BoundsSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %81) #3
  invoke void @_ZN6Bounds5mergeERKS_(ptr noundef nonnull align 4 dereferenceable(32) %82, ptr noundef nonnull align 4 dereferenceable(32) %10)
          to label %83 unwind label %88

83:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #3
  br label %84

84:                                               ; preds = %71, %83
  %85 = add nuw i64 %.06783, 1
  %86 = call noundef i64 @_ZNKSt6vectorI4MeshSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #3
  %87 = icmp ult i64 %85, %86
  br i1 %87, label %.lr.ph85, label %.preheader, !llvm.loop !56

88:                                               ; preds = %79, %74
  %89 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #3
  call void @_ZNSt6vectorI6BoundsSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #3
  br label %117

._crit_edge88:                                    ; preds = %113, %.preheader
  call void @_ZNSt6vectorI6BoundsSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #3
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #3
  ret void

90:                                               ; preds = %.lr.ph87, %113
  %.06586 = phi i64 [ 0, %.lr.ph87 ], [ %114, %113 ]
  %91 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZNSt6vectorI19QuantizationTextureSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.06586) #3
  %92 = load i32, ptr %65, align 4, !tbaa !57
  %93 = getelementptr inbounds i8, ptr %91, i64 16
  store i32 %92, ptr %93, align 4, !tbaa !60
  %94 = getelementptr inbounds i8, ptr %91, i64 20
  store i8 1, ptr %94, align 4, !tbaa !62
  %95 = call noundef i64 @_ZL6followRSt6vectorImSaImEEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %.06586)
  %96 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNSt6vectorI6BoundsSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %95) #3
  %97 = call noundef zeroext i1 @_ZNK6Bounds7isValidEv(ptr noundef nonnull align 4 dereferenceable(32) %96)
  br i1 %97, label %98, label %113

98:                                               ; preds = %90
  %99 = load float, ptr %96, align 4, !tbaa !63
  store float %99, ptr %91, align 4, !tbaa !63
  %100 = getelementptr inbounds i8, ptr %96, i64 4
  %101 = load float, ptr %100, align 4, !tbaa !63
  %102 = getelementptr inbounds i8, ptr %91, i64 4
  store float %101, ptr %102, align 4, !tbaa !63
  %103 = getelementptr inbounds i8, ptr %96, i64 16
  %104 = load float, ptr %103, align 4, !tbaa !63
  %105 = load float, ptr %96, align 4, !tbaa !63
  %106 = fsub float %104, %105
  %107 = getelementptr inbounds i8, ptr %91, i64 8
  store float %106, ptr %107, align 4, !tbaa !63
  %108 = getelementptr inbounds i8, ptr %96, i64 20
  %109 = load float, ptr %108, align 4, !tbaa !63
  %110 = load float, ptr %100, align 4, !tbaa !63
  %111 = fsub float %109, %110
  %112 = getelementptr inbounds i8, ptr %91, i64 12
  store float %111, ptr %112, align 4, !tbaa !63
  br label %113

113:                                              ; preds = %98, %90
  %114 = add nuw i64 %.06586, 1
  %115 = call noundef i64 @_ZNKSt6vectorI19QuantizationTextureSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #3
  %116 = icmp ult i64 %114, %115
  br i1 %116, label %90, label %._crit_edge88, !llvm.loop !64

117:                                              ; preds = %88, %66
  %.pn = phi { ptr, i32 } [ %89, %88 ], [ %67, %66 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #3
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #3
  br label %118

118:                                              ; preds = %117, %16
  %.pn.pn = phi { ptr, i32 } [ %.pn, %117 ], [ %17, %16 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #3
  resume { ptr, i32 } %.pn.pn
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorImSaImEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorI22cgltf_material_mappingSaIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i64 @_ZL6followRSt6vectorImSaImEEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorI22cgltf_material_mappingSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !18, i64 56}
!12 = !{!"_ZTS4Mesh", !13, i64 0, !14, i64 8, !19, i64 32, !18, i64 56, !18, i64 64, !23, i64 72, !24, i64 96, !25, i64 104, !29, i64 128, !33, i64 152, !7, i64 160, !6, i64 176, !34, i64 184, !38, i64 208, !42, i64 232}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTSSt6vectorIP10cgltf_nodeSaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIP10cgltf_nodeSaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIP10cgltf_nodeSaIS1_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIP10cgltf_nodeSaIS1_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!18 = !{!"any pointer", !7, i64 0}
!19 = !{!"_ZTSSt6vectorI9TransformSaIS0_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseI9TransformSaIS0_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseI9TransformSaIS0_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseI9TransformSaIS0_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!23 = !{!"_ZTS12cgltf_extras", !6, i64 0, !6, i64 8, !18, i64 16}
!24 = !{!"_ZTS20cgltf_primitive_type", !7, i64 0}
!25 = !{!"_ZTSSt6vectorI6StreamSaIS0_EE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseI6StreamSaIS0_EE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseI6StreamSaIS0_EE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseI6StreamSaIS0_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!29 = !{!"_ZTSSt6vectorIjSaIjEE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!33 = !{!"bool", !7, i64 0}
!34 = !{!"_ZTSSt6vectorIfSaIfEE", !35, i64 0}
!35 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!38 = !{!"_ZTSSt6vectorIPKcSaIS1_EE", !39, i64 0}
!39 = !{!"_ZTSSt12_Vector_baseIPKcSaIS1_EE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIPKcSaIS1_EE12_Vector_implE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseIPKcSaIS1_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!42 = !{!"_ZTSSt6vectorI22cgltf_material_mappingSaIS0_EE", !43, i64 0}
!43 = !{!"_ZTSSt12_Vector_baseI22cgltf_material_mappingSaIS0_EE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseI22cgltf_material_mappingSaIS0_EE12_Vector_implE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseI22cgltf_material_mappingSaIS0_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!46 = !{!47, !18, i64 8}
!47 = !{!"_ZTS22cgltf_material_mapping", !6, i64 0, !18, i64 8, !23, i64 16}
!48 = !{!49, !18, i64 104}
!49 = !{!"_ZTS10cgltf_data", !50, i64 0, !18, i64 8, !51, i64 16, !18, i64 88, !6, i64 96, !18, i64 104, !6, i64 112, !18, i64 120, !6, i64 128, !18, i64 136, !6, i64 144, !18, i64 152, !6, i64 160, !18, i64 168, !6, i64 176, !18, i64 184, !6, i64 192, !18, i64 200, !6, i64 208, !18, i64 216, !6, i64 224, !18, i64 232, !6, i64 240, !18, i64 248, !6, i64 256, !18, i64 264, !6, i64 272, !18, i64 280, !6, i64 288, !18, i64 296, !18, i64 304, !6, i64 312, !18, i64 320, !6, i64 328, !23, i64 336, !6, i64 360, !18, i64 368, !18, i64 376, !6, i64 384, !18, i64 392, !6, i64 400, !18, i64 408, !6, i64 416, !18, i64 424, !6, i64 432, !52, i64 440, !53, i64 464}
!50 = !{!"_ZTS15cgltf_file_type", !7, i64 0}
!51 = !{!"_ZTS11cgltf_asset", !18, i64 0, !18, i64 8, !18, i64 16, !18, i64 24, !23, i64 32, !6, i64 56, !18, i64 64}
!52 = !{!"_ZTS20cgltf_memory_options", !18, i64 0, !18, i64 8, !18, i64 16}
!53 = !{!"_ZTS18cgltf_file_options", !18, i64 0, !18, i64 8, !18, i64 16}
!54 = distinct !{!54, !10}
!55 = distinct !{!55, !10}
!56 = distinct !{!56, !10}
!57 = !{!58, !13, i64 4}
!58 = !{!"_ZTS8Settings", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !33, i64 16, !33, i64 17, !33, i64 18, !33, i64 19, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !33, i64 36, !33, i64 37, !33, i64 38, !33, i64 39, !33, i64 40, !33, i64 41, !33, i64 42, !33, i64 43, !59, i64 44, !59, i64 48, !33, i64 52, !33, i64 53, !33, i64 54, !59, i64 56, !13, i64 60, !33, i64 64, !33, i64 65, !33, i64 66, !33, i64 67, !33, i64 68, !7, i64 72, !7, i64 88, !7, i64 104, !7, i64 120, !13, i64 136, !33, i64 140, !33, i64 141, !33, i64 142, !33, i64 143, !13, i64 144}
!59 = !{!"float", !7, i64 0}
!60 = !{!61, !13, i64 16}
!61 = !{!"_ZTS19QuantizationTexture", !7, i64 0, !7, i64 8, !13, i64 16, !33, i64 20}
!62 = !{!61, !33, i64 20}
!63 = !{!59, !59, i64 0}
!64 = distinct !{!64, !10}


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