; LLVM IR from zeux/meshoptimizer :: gltf/mesh.ll (Z13debugMeshletsRK4MeshRS_i)

; 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.Mesh = type { i32, %"class.std::vector", %"class.std::vector.0", ptr, ptr, %struct.cgltf_extras, i32, %"class.std::vector.5", %"class.std::vector.10", i8, [2 x i64], i64, %"class.std::vector.15", %"class.std::vector.20", %"class.std::vector.25" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = 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.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = 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.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = 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.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = 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.25" = type { %"struct.std::_Vector_base.26" }
%"struct.std::_Vector_base.26" = 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 }
%"class.std::vector.48" = type { %"struct.std::_Vector_base.49" }
%"struct.std::_Vector_base.49" = type { %"struct.std::_Vector_base<meshopt_Meshlet, std::allocator<meshopt_Meshlet>>::_Vector_impl" }
%"struct.std::_Vector_base<meshopt_Meshlet, std::allocator<meshopt_Meshlet>>::_Vector_impl" = type { %"struct.std::_Vector_base<meshopt_Meshlet, std::allocator<meshopt_Meshlet>>::_Vector_impl_data" }
%"struct.std::_Vector_base<meshopt_Meshlet, std::allocator<meshopt_Meshlet>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.50" = type { i8 }
%"class.std::allocator.12" = type { i8 }
%"class.std::vector.53" = type { %"struct.std::_Vector_base.54" }
%"struct.std::_Vector_base.54" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.55" = type { i8 }
%struct.Stream = type { i32, i32, i32, ptr, %"class.std::vector.30" }
%"class.std::vector.30" = type { %"struct.std::_Vector_base.31" }
%"struct.std::_Vector_base.31" = 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.meshopt_Meshlet = type { i32, i32, i32, i32 }

@.str.1 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [44 x i8], align 1
@__PRETTY_FUNCTION__._Z13debugMeshletsRK4MeshRS_i = external hidden unnamed_addr constant [46 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [10 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: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI4AttrSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4MeshC2ERKS_(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4MeshD2Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL11reindexMeshR4Meshb(ptr noundef nonnull align 8 dereferenceable(256), i1 noundef zeroext) #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIP10cgltf_nodeSaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI6StreamSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(48)) #5 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6StreamD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z13debugMeshletsRK4MeshRS_i(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef nonnull align 8 dereferenceable(256) %1, i32 noundef %2) #5 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %struct.Mesh, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca float, align 4
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca %"class.std::vector.48", align 8
  %15 = alloca %"class.std::allocator.50", align 1
  %16 = alloca %"class.std::vector.10", align 8
  %17 = alloca %"class.std::allocator.12", align 1
  %18 = alloca %"class.std::vector.53", align 8
  %19 = alloca %"class.std::allocator.55", align 1
  %20 = alloca %struct.Stream, align 8
  %21 = alloca %struct.Stream, align 8
  %22 = alloca i64, align 8
  %23 = alloca i32, align 4
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca %struct.Attr, align 4
  %27 = alloca i32, align 4
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 256, ptr %7) #8
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN4MeshC2ERKS_(ptr noundef nonnull align 8 dereferenceable(256) %7, ptr noundef nonnull align 8 dereferenceable(256) %33)
  %34 = getelementptr inbounds %struct.Mesh, ptr %7, i32 0, i32 6
  %35 = load i32, ptr %34, align 8, !tbaa !11
  %36 = icmp eq i32 %35, 5
  br i1 %36, label %37, label %38

37:                                               ; preds = %3
  br label %40

38:                                               ; preds = %3
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.1, i32 noundef 1206, ptr noundef @__PRETTY_FUNCTION__._Z13debugMeshletsRK4MeshRS_i) #9
  unreachable

39:                                               ; No predecessors!
  br label %40

40:                                               ; preds = %39, %37
  invoke void @_ZL11reindexMeshR4Meshb(ptr noundef nonnull align 8 dereferenceable(256) %7, i1 noundef zeroext true)
          to label %41 unwind label %48

41:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %42 = invoke noundef ptr @_ZL9getStreamR4Mesh20cgltf_attribute_typei(ptr noundef nonnull align 8 dereferenceable(256) %7, i32 noundef 1, i32 noundef 0)
          to label %43 unwind label %52

43:                                               ; preds = %41
  store ptr %42, ptr %10, align 8, !tbaa !5
  %44 = load ptr, ptr %10, align 8, !tbaa !5
  %45 = icmp ne ptr %44, null
  br i1 %45, label %46, label %47

46:                                               ; preds = %43
  br label %57

47:                                               ; preds = %43
  call void @__assert_fail(ptr noundef @.str.9, ptr noundef @.str.1, i32 noundef 1211, ptr noundef @__PRETTY_FUNCTION__._Z13debugMeshletsRK4MeshRS_i) #9
  unreachable

48:                                               ; preds = %40
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %8, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %9, align 4
  br label %310

52:                                               ; preds = %41
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %8, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %9, align 4
  br label %309

56:                                               ; No predecessors!
  br label %57

57:                                               ; preds = %56, %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store float 0.000000e+00, ptr %11, align 4, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %58 = load i32, ptr %6, align 4, !tbaa !9
  %59 = mul nsw i32 %58, 2
  %60 = add nsw i32 %59, 3
  %61 = and i32 %60, -4
  %62 = sext i32 %61 to i64
  store i64 %62, ptr %12, align 8, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %63 = getelementptr inbounds %struct.Mesh, ptr %7, i32 0, i32 8
  %64 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %63) #8
  %65 = load i32, ptr %6, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = load i64, ptr %12, align 8, !tbaa !47
  %68 = invoke i64 @meshopt_buildMeshletsBound(i64 noundef %64, i64 noundef %66, i64 noundef %67)
          to label %69 unwind label %123

69:                                               ; preds = %57
  store i64 %68, ptr %13, align 8, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #8
  %70 = load i64, ptr %13, align 8, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #8
  call void @_ZNSaI15meshopt_MeshletEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #8
  invoke void @_ZNSt6vectorI15meshopt_MeshletSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %70, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %71 unwind label %127

71:                                               ; preds = %69
  call void @_ZNSt15__new_allocatorI15meshopt_MeshletED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #8
  %72 = load i64, ptr %13, align 8, !tbaa !47
  %73 = load i32, ptr %6, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = mul i64 %72, %74
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #8
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #8
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %75, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %76 unwind label %131

76:                                               ; preds = %71
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #8
  %77 = load i64, ptr %13, align 8, !tbaa !47
  %78 = load i64, ptr %12, align 8, !tbaa !47
  %79 = mul i64 %77, %78
  %80 = mul i64 %79, 3
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #8
  call void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #8
  invoke void @_ZNSt6vectorIhSaIhEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %80, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %81 unwind label %135

81:                                               ; preds = %76
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #8
  %82 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI15meshopt_MeshletSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef 0) #8
  %83 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef 0) #8
  %84 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef 0) #8
  %85 = getelementptr inbounds %struct.Mesh, ptr %7, i32 0, i32 8
  %86 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %85, i64 noundef 0) #8
  %87 = getelementptr inbounds %struct.Mesh, ptr %7, i32 0, i32 8
  %88 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %87) #8
  %89 = load ptr, ptr %10, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.Stream, ptr %89, i32 0, i32 4
  %91 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI4AttrSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %90, i64 noundef 0) #8
  %92 = getelementptr inbounds %struct.Attr, ptr %91, i32 0, i32 0
  %93 = getelementptr inbounds [4 x float], ptr %92, i64 0, i64 0
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.Stream, ptr %94, i32 0, i32 4
  %96 = call noundef i64 @_ZNKSt6vectorI4AttrSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %95) #8
  %97 = load i32, ptr %6, align 4, !tbaa !9
  %98 = sext i32 %97 to i64
  %99 = load i64, ptr %12, align 8, !tbaa !47
  %100 = invoke i64 @meshopt_buildMeshlets(ptr noundef %82, ptr noundef %83, ptr noundef %84, ptr noundef %86, i64 noundef %88, ptr noundef %93, i64 noundef %96, i64 noundef 16, i64 noundef %98, i64 noundef %99, float noundef 0.000000e+00)
          to label %101 unwind label %139

101:                                              ; preds = %81
  invoke void @_ZNSt6vectorI15meshopt_MeshletSaIS0_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %100)
          to label %102 unwind label %139

102:                                              ; preds = %101
  %103 = getelementptr inbounds %struct.Mesh, ptr %7, i32 0, i32 1
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.Mesh, ptr %104, i32 0, i32 1
  %106 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIP10cgltf_nodeSaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %105, ptr noundef nonnull align 8 dereferenceable(24) %103)
          to label %107 unwind label %139

107:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 48, ptr %20) #8
  %108 = getelementptr inbounds %struct.Stream, ptr %20, i32 0, i32 0
  store i32 1, ptr %108, align 8, !tbaa !48
  %109 = getelementptr inbounds %struct.Stream, ptr %20, i32 0, i32 1
  store i32 0, ptr %109, align 4, !tbaa !55
  %110 = getelementptr inbounds %struct.Stream, ptr %20, i32 0, i32 2
  store i32 0, ptr %110, align 8, !tbaa !56
  %111 = getelementptr inbounds %struct.Stream, ptr %20, i32 0, i32 3
  store ptr null, ptr %111, align 8, !tbaa !57
  %112 = getelementptr inbounds %struct.Stream, ptr %20, i32 0, i32 4
  call void @llvm.memset.p0.i64(ptr align 8 %112, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorI4AttrSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %112) #8
  call void @llvm.lifetime.start.p0(i64 48, ptr %21) #8
  %113 = getelementptr inbounds %struct.Stream, ptr %21, i32 0, i32 0
  store i32 5, ptr %113, align 8, !tbaa !48
  %114 = getelementptr inbounds %struct.Stream, ptr %21, i32 0, i32 1
  store i32 0, ptr %114, align 4, !tbaa !55
  %115 = getelementptr inbounds %struct.Stream, ptr %21, i32 0, i32 2
  store i32 0, ptr %115, align 8, !tbaa !56
  %116 = getelementptr inbounds %struct.Stream, ptr %21, i32 0, i32 3
  store ptr null, ptr %116, align 8, !tbaa !57
  %117 = getelementptr inbounds %struct.Stream, ptr %21, i32 0, i32 4
  call void @llvm.memset.p0.i64(ptr align 8 %117, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorI4AttrSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %117) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  store i64 0, ptr %22, align 8, !tbaa !47
  br label %118

118:                                              ; preds = %286, %107
  %119 = load i64, ptr %22, align 8, !tbaa !47
  %120 = call noundef i64 @_ZNKSt6vectorI15meshopt_MeshletSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  %121 = icmp ult i64 %119, %120
  br i1 %121, label %143, label %122

122:                                              ; preds = %118
  store i32 2, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %290

123:                                              ; preds = %57
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %8, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %9, align 4
  br label %308

127:                                              ; preds = %69
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %8, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %9, align 4
  call void @_ZNSt15__new_allocatorI15meshopt_MeshletED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #8
  br label %307

131:                                              ; preds = %71
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %8, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %9, align 4
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #8
  br label %306

135:                                              ; preds = %76
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %8, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %9, align 4
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #8
  br label %305

139:                                              ; preds = %102, %101, %81
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %8, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %9, align 4
  br label %304

143:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %144 = load i64, ptr %22, align 8, !tbaa !47
  %145 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI15meshopt_MeshletSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %144) #8
  store ptr %145, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %146 = load i64, ptr %22, align 8, !tbaa !47
  %147 = trunc i64 %146 to i32
  store i32 %147, ptr %25, align 4, !tbaa !9
  %148 = load i32, ptr %25, align 4, !tbaa !9
  %149 = lshr i32 %148, 13
  %150 = load i32, ptr %25, align 4, !tbaa !9
  %151 = xor i32 %150, %149
  store i32 %151, ptr %25, align 4, !tbaa !9
  %152 = load i32, ptr %25, align 4, !tbaa !9
  %153 = mul i32 %152, 1540483477
  store i32 %153, ptr %25, align 4, !tbaa !9
  %154 = load i32, ptr %25, align 4, !tbaa !9
  %155 = lshr i32 %154, 15
  %156 = load i32, ptr %25, align 4, !tbaa !9
  %157 = xor i32 %156, %155
  store i32 %157, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #8
  %158 = getelementptr inbounds %struct.Attr, ptr %26, i32 0, i32 0
  %159 = load i32, ptr %25, align 4, !tbaa !9
  %160 = and i32 %159, 255
  %161 = uitofp i32 %160 to float
  %162 = fdiv float %161, 2.550000e+02
  store float %162, ptr %158, align 4, !tbaa !45
  %163 = getelementptr inbounds float, ptr %158, i64 1
  %164 = load i32, ptr %25, align 4, !tbaa !9
  %165 = lshr i32 %164, 8
  %166 = and i32 %165, 255
  %167 = uitofp i32 %166 to float
  %168 = fdiv float %167, 2.550000e+02
  store float %168, ptr %163, align 4, !tbaa !45
  %169 = getelementptr inbounds float, ptr %158, i64 2
  %170 = load i32, ptr %25, align 4, !tbaa !9
  %171 = lshr i32 %170, 16
  %172 = and i32 %171, 255
  %173 = uitofp i32 %172 to float
  %174 = fdiv float %173, 2.550000e+02
  store float %174, ptr %169, align 4, !tbaa !45
  %175 = getelementptr inbounds float, ptr %158, i64 3
  store float 1.000000e+00, ptr %175, align 4, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  %176 = getelementptr inbounds %struct.Stream, ptr %20, i32 0, i32 4
  %177 = call noundef i64 @_ZNKSt6vectorI4AttrSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %176) #8
  %178 = trunc i64 %177 to i32
  store i32 %178, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  store i64 0, ptr %28, align 8, !tbaa !47
  br label %179

179:                                              ; preds = %204, %143
  %180 = load i64, ptr %28, align 8, !tbaa !47
  %181 = load ptr, ptr %24, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.meshopt_Meshlet, ptr %181, i32 0, i32 2
  %183 = load i32, ptr %182, align 4, !tbaa !58
  %184 = zext i32 %183 to i64
  %185 = icmp ult i64 %180, %184
  br i1 %185, label %187, label %186

186:                                              ; preds = %179
  store i32 5, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  br label %211

187:                                              ; preds = %179
  %188 = getelementptr inbounds %struct.Stream, ptr %20, i32 0, i32 4
  %189 = load ptr, ptr %10, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.Stream, ptr %189, i32 0, i32 4
  %191 = load ptr, ptr %24, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.meshopt_Meshlet, ptr %191, i32 0, i32 0
  %193 = load i32, ptr %192, align 4, !tbaa !60
  %194 = zext i32 %193 to i64
  %195 = load i64, ptr %28, align 8, !tbaa !47
  %196 = add i64 %194, %195
  %197 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %196) #8
  %198 = load i32, ptr %197, align 4, !tbaa !9
  %199 = zext i32 %198 to i64
  %200 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI4AttrSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %190, i64 noundef %199) #8
  invoke void @_ZNSt6vectorI4AttrSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %188, ptr noundef nonnull align 4 dereferenceable(16) %200)
          to label %201 unwind label %207

201:                                              ; preds = %187
  %202 = getelementptr inbounds %struct.Stream, ptr %21, i32 0, i32 4
  invoke void @_ZNSt6vectorI4AttrSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %202, ptr noundef nonnull align 4 dereferenceable(16) %26)
          to label %203 unwind label %207

203:                                              ; preds = %201
  br label %204

204:                                              ; preds = %203
  %205 = load i64, ptr %28, align 8, !tbaa !47
  %206 = add i64 %205, 1
  store i64 %206, ptr %28, align 8, !tbaa !47
  br label %179, !llvm.loop !61

207:                                              ; preds = %201, %187
  %208 = landingpad { ptr, i32 }
          cleanup
  %209 = extractvalue { ptr, i32 } %208, 0
  store ptr %209, ptr %8, align 8
  %210 = extractvalue { ptr, i32 } %208, 1
  store i32 %210, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  br label %289

211:                                              ; preds = %186
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  store i64 0, ptr %29, align 8, !tbaa !47
  br label %212

212:                                              ; preds = %269, %211
  %213 = load i64, ptr %29, align 8, !tbaa !47
  %214 = load ptr, ptr %24, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.meshopt_Meshlet, ptr %214, i32 0, i32 3
  %216 = load i32, ptr %215, align 4, !tbaa !63
  %217 = zext i32 %216 to i64
  %218 = icmp ult i64 %213, %217
  br i1 %218, label %220, label %219

219:                                              ; preds = %212
  store i32 8, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  br label %285

220:                                              ; preds = %212
  %221 = load ptr, ptr %5, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.Mesh, ptr %221, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  %223 = load i32, ptr %27, align 4, !tbaa !9
  %224 = load ptr, ptr %24, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.meshopt_Meshlet, ptr %224, i32 0, i32 1
  %226 = load i32, ptr %225, align 4, !tbaa !64
  %227 = zext i32 %226 to i64
  %228 = load i64, ptr %29, align 8, !tbaa !47
  %229 = mul i64 %228, 3
  %230 = add i64 %227, %229
  %231 = add i64 %230, 0
  %232 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %231) #8
  %233 = load i8, ptr %232, align 1, !tbaa !65
  %234 = zext i8 %233 to i32
  %235 = add i32 %223, %234
  store i32 %235, ptr %30, align 4, !tbaa !9
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %222, ptr noundef nonnull align 4 dereferenceable(4) %30)
          to label %236 unwind label %272

236:                                              ; preds = %220
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  %237 = load ptr, ptr %5, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.Mesh, ptr %237, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  %239 = load i32, ptr %27, align 4, !tbaa !9
  %240 = load ptr, ptr %24, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.meshopt_Meshlet, ptr %240, i32 0, i32 1
  %242 = load i32, ptr %241, align 4, !tbaa !64
  %243 = zext i32 %242 to i64
  %244 = load i64, ptr %29, align 8, !tbaa !47
  %245 = mul i64 %244, 3
  %246 = add i64 %243, %245
  %247 = add i64 %246, 1
  %248 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %247) #8
  %249 = load i8, ptr %248, align 1, !tbaa !65
  %250 = zext i8 %249 to i32
  %251 = add i32 %239, %250
  store i32 %251, ptr %31, align 4, !tbaa !9
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %238, ptr noundef nonnull align 4 dereferenceable(4) %31)
          to label %252 unwind label %276

252:                                              ; preds = %236
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  %253 = load ptr, ptr %5, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.Mesh, ptr %253, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  %255 = load i32, ptr %27, align 4, !tbaa !9
  %256 = load ptr, ptr %24, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.meshopt_Meshlet, ptr %256, i32 0, i32 1
  %258 = load i32, ptr %257, align 4, !tbaa !64
  %259 = zext i32 %258 to i64
  %260 = load i64, ptr %29, align 8, !tbaa !47
  %261 = mul i64 %260, 3
  %262 = add i64 %259, %261
  %263 = add i64 %262, 2
  %264 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %263) #8
  %265 = load i8, ptr %264, align 1, !tbaa !65
  %266 = zext i8 %265 to i32
  %267 = add i32 %255, %266
  store i32 %267, ptr %32, align 4, !tbaa !9
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %254, ptr noundef nonnull align 4 dereferenceable(4) %32)
          to label %268 unwind label %280

268:                                              ; preds = %252
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  br label %269

269:                                              ; preds = %268
  %270 = load i64, ptr %29, align 8, !tbaa !47
  %271 = add i64 %270, 1
  store i64 %271, ptr %29, align 8, !tbaa !47
  br label %212, !llvm.loop !66

272:                                              ; preds = %220
  %273 = landingpad { ptr, i32 }
          cleanup
  %274 = extractvalue { ptr, i32 } %273, 0
  store ptr %274, ptr %8, align 8
  %275 = extractvalue { ptr, i32 } %273, 1
  store i32 %275, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  br label %284

276:                                              ; preds = %236
  %277 = landingpad { ptr, i32 }
          cleanup
  %278 = extractvalue { ptr, i32 } %277, 0
  store ptr %278, ptr %8, align 8
  %279 = extractvalue { ptr, i32 } %277, 1
  store i32 %279, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  br label %284

280:                                              ; preds = %252
  %281 = landingpad { ptr, i32 }
          cleanup
  %282 = extractvalue { ptr, i32 } %281, 0
  store ptr %282, ptr %8, align 8
  %283 = extractvalue { ptr, i32 } %281, 1
  store i32 %283, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  br label %284

284:                                              ; preds = %280, %276, %272
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  br label %289

285:                                              ; preds = %219
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %286

286:                                              ; preds = %285
  %287 = load i64, ptr %22, align 8, !tbaa !47
  %288 = add i64 %287, 1
  store i64 %288, ptr %22, align 8, !tbaa !47
  br label %118, !llvm.loop !67

289:                                              ; preds = %284, %207
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %303

290:                                              ; preds = %122
  %291 = load ptr, ptr %5, align 8, !tbaa !5
  %292 = getelementptr inbounds %struct.Mesh, ptr %291, i32 0, i32 6
  store i32 5, ptr %292, align 8, !tbaa !11
  %293 = load ptr, ptr %5, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.Mesh, ptr %293, i32 0, i32 7
  invoke void @_ZNSt6vectorI6StreamSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %294, ptr noundef nonnull align 8 dereferenceable(48) %20)
          to label %295 unwind label %299

295:                                              ; preds = %290
  %296 = load ptr, ptr %5, align 8, !tbaa !5
  %297 = getelementptr inbounds %struct.Mesh, ptr %296, i32 0, i32 7
  invoke void @_ZNSt6vectorI6StreamSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %297, ptr noundef nonnull align 8 dereferenceable(48) %21)
          to label %298 unwind label %299

298:                                              ; preds = %295
  call void @_ZN6StreamD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %21) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %21) #8
  call void @_ZN6StreamD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %20) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %20) #8
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #8
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #8
  call void @_ZNSt6vectorI15meshopt_MeshletSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @_ZN4MeshD2Ev(ptr noundef nonnull align 8 dereferenceable(256) %7) #8
  call void @llvm.lifetime.end.p0(i64 256, ptr %7) #8
  ret void

299:                                              ; preds = %295, %290
  %300 = landingpad { ptr, i32 }
          cleanup
  %301 = extractvalue { ptr, i32 } %300, 0
  store ptr %301, ptr %8, align 8
  %302 = extractvalue { ptr, i32 } %300, 1
  store i32 %302, ptr %9, align 4
  br label %303

303:                                              ; preds = %299, %289
  call void @_ZN6StreamD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %21) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %21) #8
  call void @_ZN6StreamD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %20) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %20) #8
  br label %304

304:                                              ; preds = %303, %139
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  br label %305

305:                                              ; preds = %304, %135
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #8
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  br label %306

306:                                              ; preds = %305, %131
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #8
  call void @_ZNSt6vectorI15meshopt_MeshletSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  br label %307

307:                                              ; preds = %306, %127
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #8
  br label %308

308:                                              ; preds = %307, %123
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %309

309:                                              ; preds = %308, %52
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %310

310:                                              ; preds = %309, %48
  call void @_ZN4MeshD2Ev(ptr noundef nonnull align 8 dereferenceable(256) %7) #8
  call void @llvm.lifetime.end.p0(i64 256, ptr %7) #8
  br label %311

311:                                              ; preds = %310
  %312 = load ptr, ptr %8, align 8
  %313 = load i32, ptr %9, align 4
  %314 = insertvalue { ptr, i32 } poison, ptr %312, 0
  %315 = insertvalue { ptr, i32 } %314, i32 %313, 1
  resume { ptr, i32 } %315
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef ptr @_ZL9getStreamR4Mesh20cgltf_attribute_typei(ptr noundef nonnull align 8 dereferenceable(256), i32 noundef, i32 noundef) #1

declare i64 @meshopt_buildMeshletsBound(i64 noundef, i64 noundef, i64 noundef) #7

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

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

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

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

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

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

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

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

declare i64 @meshopt_buildMeshlets(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, float noundef) #7

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(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(16) ptr @_ZNKSt6vectorI4AttrSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI4AttrSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(16)) #5 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorI15meshopt_MeshletED2Ev(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 = { 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 = { inlinehint 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 #4 = { 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 #5 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !23, i64 96}
!12 = !{!"_ZTS4Mesh", !10, i64 0, !13, i64 8, !17, i64 32, !6, i64 56, !6, i64 64, !21, i64 72, !23, i64 96, !24, i64 104, !28, i64 128, !32, i64 152, !7, i64 160, !22, i64 176, !33, i64 184, !37, i64 208, !41, i64 232}
!13 = !{!"_ZTSSt6vectorIP10cgltf_nodeSaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIP10cgltf_nodeSaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIP10cgltf_nodeSaIS1_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIP10cgltf_nodeSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"_ZTSSt6vectorI9TransformSaIS0_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseI9TransformSaIS0_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseI9TransformSaIS0_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseI9TransformSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTS12cgltf_extras", !22, i64 0, !22, i64 8, !6, i64 16}
!22 = !{!"long", !7, i64 0}
!23 = !{!"_ZTS20cgltf_primitive_type", !7, i64 0}
!24 = !{!"_ZTSSt6vectorI6StreamSaIS0_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseI6StreamSaIS0_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseI6StreamSaIS0_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseI6StreamSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!28 = !{!"_ZTSSt6vectorIjSaIjEE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!32 = !{!"bool", !7, i64 0}
!33 = !{!"_ZTSSt6vectorIfSaIfEE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!37 = !{!"_ZTSSt6vectorIPKcSaIS1_EE", !38, i64 0}
!38 = !{!"_ZTSSt12_Vector_baseIPKcSaIS1_EE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIPKcSaIS1_EE12_Vector_implE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIPKcSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!41 = !{!"_ZTSSt6vectorI22cgltf_material_mappingSaIS0_EE", !42, i64 0}
!42 = !{!"_ZTSSt12_Vector_baseI22cgltf_material_mappingSaIS0_EE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseI22cgltf_material_mappingSaIS0_EE12_Vector_implE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseI22cgltf_material_mappingSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!45 = !{!46, !46, i64 0}
!46 = !{!"float", !7, i64 0}
!47 = !{!22, !22, i64 0}
!48 = !{!49, !50, i64 0}
!49 = !{!"_ZTS6Stream", !50, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !51, i64 24}
!50 = !{!"_ZTS20cgltf_attribute_type", !7, i64 0}
!51 = !{!"_ZTSSt6vectorI4AttrSaIS0_EE", !52, i64 0}
!52 = !{!"_ZTSSt12_Vector_baseI4AttrSaIS0_EE", !53, i64 0}
!53 = !{!"_ZTSNSt12_Vector_baseI4AttrSaIS0_EE12_Vector_implE", !54, i64 0}
!54 = !{!"_ZTSNSt12_Vector_baseI4AttrSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!55 = !{!49, !10, i64 4}
!56 = !{!49, !10, i64 8}
!57 = !{!49, !6, i64 16}
!58 = !{!59, !10, i64 8}
!59 = !{!"_ZTS15meshopt_Meshlet", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!60 = !{!59, !10, i64 0}
!61 = distinct !{!61, !62}
!62 = !{!"llvm.loop.mustprogress"}
!63 = !{!59, !10, i64 12}
!64 = !{!59, !10, i64 4}
!65 = !{!7, !7, i64 0}
!66 = distinct !{!66, !62}
!67 = distinct !{!67, !62}


; 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.Mesh = type { i32, %"class.std::vector", %"class.std::vector.0", ptr, ptr, %struct.cgltf_extras, i32, %"class.std::vector.5", %"class.std::vector.10", i8, [2 x i64], i64, %"class.std::vector.15", %"class.std::vector.20", %"class.std::vector.25" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = 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.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = 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.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = 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.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = 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.25" = type { %"struct.std::_Vector_base.26" }
%"struct.std::_Vector_base.26" = 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 }
%"class.std::vector.48" = type { %"struct.std::_Vector_base.49" }
%"struct.std::_Vector_base.49" = type { %"struct.std::_Vector_base<meshopt_Meshlet, std::allocator<meshopt_Meshlet>>::_Vector_impl" }
%"struct.std::_Vector_base<meshopt_Meshlet, std::allocator<meshopt_Meshlet>>::_Vector_impl" = type { %"struct.std::_Vector_base<meshopt_Meshlet, std::allocator<meshopt_Meshlet>>::_Vector_impl_data" }
%"struct.std::_Vector_base<meshopt_Meshlet, std::allocator<meshopt_Meshlet>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.50" = type { i8 }
%"class.std::allocator.12" = type { i8 }
%"class.std::vector.53" = type { %"struct.std::_Vector_base.54" }
%"struct.std::_Vector_base.54" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.55" = type { i8 }
%struct.Stream = type { i32, i32, i32, ptr, %"class.std::vector.30" }
%"class.std::vector.30" = type { %"struct.std::_Vector_base.31" }
%"struct.std::_Vector_base.31" = 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] }

@.str.1 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [44 x i8], align 1
@__PRETTY_FUNCTION__._Z13debugMeshletsRK4MeshRS_i = external hidden unnamed_addr constant [46 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [10 x i8], align 1

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4MeshC2ERKS_(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4MeshD2Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL11reindexMeshR4Meshb(ptr noundef nonnull align 8 dereferenceable(256), i1 noundef zeroext) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIP10cgltf_nodeSaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI6StreamSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #5 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6StreamD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z13debugMeshletsRK4MeshRS_i(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef nonnull align 8 dereferenceable(256) %1, i32 noundef %2) local_unnamed_addr #5 personality ptr @__gxx_personality_v0 {
  %4 = alloca %struct.Mesh, align 8
  %5 = alloca %"class.std::vector.48", align 8
  %6 = alloca %"class.std::allocator.50", align 1
  %7 = alloca %"class.std::vector.10", align 8
  %8 = alloca %"class.std::allocator.12", align 1
  %9 = alloca %"class.std::vector.53", align 8
  %10 = alloca %"class.std::allocator.55", align 1
  %11 = alloca %struct.Stream, align 8
  %12 = alloca %struct.Stream, align 8
  %13 = alloca %struct.Attr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %4) #8
  call void @_ZN4MeshC2ERKS_(ptr noundef nonnull align 8 dereferenceable(256) %4, ptr noundef nonnull align 8 dereferenceable(256) %0)
  %17 = getelementptr inbounds i8, ptr %4, i64 96
  %18 = load i32, ptr %17, align 8, !tbaa !5
  %19 = icmp eq i32 %18, 5
  br i1 %19, label %21, label %20

20:                                               ; preds = %3
  call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.1, i32 noundef 1206, ptr noundef nonnull @__PRETTY_FUNCTION__._Z13debugMeshletsRK4MeshRS_i) #9
  unreachable

21:                                               ; preds = %3
  invoke void @_ZL11reindexMeshR4Meshb(ptr noundef nonnull align 8 dereferenceable(256) %4, i1 noundef zeroext true)
          to label %22 unwind label %25

22:                                               ; preds = %21
  %23 = call noundef ptr @_ZL9getStreamR4Mesh20cgltf_attribute_typei(ptr noundef nonnull align 8 dereferenceable(256) %4, i32 noundef 1, i32 noundef 0)
  %.not = icmp eq ptr %23, null
  br i1 %.not, label %24, label %27

24:                                               ; preds = %22
  call void @__assert_fail(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.1, i32 noundef 1211, ptr noundef nonnull @__PRETTY_FUNCTION__._Z13debugMeshletsRK4MeshRS_i) #9
  unreachable

25:                                               ; preds = %21
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %173

27:                                               ; preds = %22
  %28 = shl nsw i32 %2, 1
  %29 = add nsw i32 %28, 3
  %30 = and i32 %29, -4
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds i8, ptr %4, i64 128
  %33 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #8
  %34 = sext i32 %2 to i64
  %35 = invoke i64 @meshopt_buildMeshletsBound(i64 noundef %33, i64 noundef %34, i64 noundef %31)
          to label %36 unwind label %72

36:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #8
  call void @_ZNSaI15meshopt_MeshletEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  invoke void @_ZNSt6vectorI15meshopt_MeshletSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %35, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %37 unwind label %74

37:                                               ; preds = %36
  call void @_ZNSt15__new_allocatorI15meshopt_MeshletED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #8
  %38 = mul i64 %35, %34
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #8
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %38, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %39 unwind label %76

39:                                               ; preds = %37
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #8
  %40 = mul nsw i64 %31, 3
  %41 = mul i64 %40, %35
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #8
  call void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  invoke void @_ZNSt6vectorIhSaIhEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %41, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %42 unwind label %78

42:                                               ; preds = %39
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #8
  %43 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI15meshopt_MeshletSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #8
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 0) #8
  %45 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 0) #8
  %46 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef 0) #8
  %47 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #8
  %48 = getelementptr inbounds i8, ptr %23, i64 24
  %49 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI4AttrSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef 0) #8
  %50 = call noundef i64 @_ZNKSt6vectorI4AttrSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %48) #8
  %51 = invoke i64 @meshopt_buildMeshlets(ptr noundef nonnull %43, ptr noundef nonnull %44, ptr noundef nonnull %45, ptr noundef nonnull %46, i64 noundef %47, ptr noundef nonnull %49, i64 noundef %50, i64 noundef 16, i64 noundef %34, i64 noundef %31, float noundef 0.000000e+00)
          to label %52 unwind label %80

52:                                               ; preds = %42
  invoke void @_ZNSt6vectorI15meshopt_MeshletSaIS0_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %51)
          to label %53 unwind label %80

53:                                               ; preds = %52
  %54 = getelementptr inbounds i8, ptr %4, i64 8
  %55 = getelementptr inbounds i8, ptr %1, i64 8
  %56 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIP10cgltf_nodeSaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %55, ptr noundef nonnull align 8 dereferenceable(24) %54)
          to label %57 unwind label %80

57:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %11) #8
  store i32 1, ptr %11, align 8, !tbaa !43
  %58 = getelementptr inbounds i8, ptr %11, i64 4
  store i32 0, ptr %58, align 4, !tbaa !50
  %59 = getelementptr inbounds i8, ptr %11, i64 8
  store i32 0, ptr %59, align 8, !tbaa !51
  %60 = getelementptr inbounds i8, ptr %11, i64 16
  %61 = getelementptr inbounds i8, ptr %11, i64 24
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %60, i8 0, i64 32, i1 false)
  call void @_ZNSt6vectorI4AttrSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %61) #8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %12) #8
  store i32 5, ptr %12, align 8, !tbaa !43
  %62 = getelementptr inbounds i8, ptr %12, i64 4
  store i32 0, ptr %62, align 4, !tbaa !50
  %63 = getelementptr inbounds i8, ptr %12, i64 8
  store i32 0, ptr %63, align 8, !tbaa !51
  %64 = getelementptr inbounds i8, ptr %12, i64 16
  %65 = getelementptr inbounds i8, ptr %12, i64 24
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %64, i8 0, i64 32, i1 false)
  call void @_ZNSt6vectorI4AttrSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %65) #8
  %66 = call noundef i64 @_ZNKSt6vectorI15meshopt_MeshletSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  %.not82 = icmp eq i64 %66, 0
  br i1 %.not82, label %._crit_edge81, label %.lr.ph80

.lr.ph80:                                         ; preds = %57
  %67 = getelementptr inbounds i8, ptr %13, i64 8
  %68 = getelementptr inbounds i8, ptr %13, i64 12
  %69 = getelementptr inbounds i8, ptr %1, i64 128
  br label %82

._crit_edge81:                                    ; preds = %._crit_edge, %57
  %70 = getelementptr inbounds i8, ptr %1, i64 96
  store i32 5, ptr %70, align 8, !tbaa !5
  %71 = getelementptr inbounds i8, ptr %1, i64 104
  invoke void @_ZNSt6vectorI6StreamSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %71, ptr noundef nonnull align 8 dereferenceable(48) %11)
          to label %164 unwind label %166

72:                                               ; preds = %27
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %173

74:                                               ; preds = %36
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI15meshopt_MeshletED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  br label %172

76:                                               ; preds = %37
  %77 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #8
  br label %171

78:                                               ; preds = %39
  %79 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #8
  br label %170

80:                                               ; preds = %53, %52, %42
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %169

82:                                               ; preds = %.lr.ph80, %._crit_edge
  %.06378 = phi i64 [ 0, %.lr.ph80 ], [ %122, %._crit_edge ]
  %83 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI15meshopt_MeshletSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.06378) #8
  %84 = trunc i64 %.06378 to i32
  %85 = lshr i32 %84, 13
  %86 = xor i32 %85, %84
  %87 = mul i32 %86, 1540483477
  %88 = lshr i32 %87, 15
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #8
  %89 = xor i32 %88, %87
  %90 = lshr i32 %89, 8
  %91 = insertelement <2 x i32> poison, i32 %89, i64 0
  %92 = insertelement <2 x i32> %91, i32 %90, i64 1
  %93 = and <2 x i32> %92, <i32 255, i32 255>
  %94 = uitofp nneg <2 x i32> %93 to <2 x float>
  %95 = fdiv <2 x float> %94, <float 2.550000e+02, float 2.550000e+02>
  store <2 x float> %95, ptr %13, align 8, !tbaa !52
  %96 = lshr i32 %89, 16
  %97 = and i32 %96, 255
  %98 = uitofp nneg i32 %97 to float
  %99 = fdiv float %98, 2.550000e+02
  store float %99, ptr %67, align 8, !tbaa !52
  store float 1.000000e+00, ptr %68, align 4, !tbaa !52
  %100 = call noundef i64 @_ZNKSt6vectorI4AttrSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %61) #8
  %101 = trunc i64 %100 to i32
  %102 = getelementptr inbounds i8, ptr %83, i64 8
  %103 = load i32, ptr %102, align 4, !tbaa !54
  %.not83 = icmp eq i32 %103, 0
  br i1 %.not83, label %.preheader, label %.lr.ph

.preheader:                                       ; preds = %115, %82
  %104 = getelementptr inbounds i8, ptr %83, i64 12
  %105 = load i32, ptr %104, align 4, !tbaa !56
  %.not84 = icmp eq i32 %105, 0
  br i1 %.not84, label %._crit_edge, label %.lr.ph77

.lr.ph77:                                         ; preds = %.preheader
  %106 = getelementptr inbounds i8, ptr %83, i64 4
  br label %125

.lr.ph:                                           ; preds = %82, %115
  %.05275 = phi i64 [ %116, %115 ], [ 0, %82 ]
  %107 = load i32, ptr %83, align 4, !tbaa !57
  %108 = zext i32 %107 to i64
  %109 = add nuw nsw i64 %.05275, %108
  %110 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %109) #8
  %111 = load i32, ptr %110, align 4, !tbaa !58
  %112 = zext i32 %111 to i64
  %113 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI4AttrSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %112) #8
  invoke void @_ZNSt6vectorI4AttrSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %61, ptr noundef nonnull align 4 dereferenceable(16) %113)
          to label %114 unwind label %120

114:                                              ; preds = %.lr.ph
  invoke void @_ZNSt6vectorI4AttrSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %65, ptr noundef nonnull align 4 dereferenceable(16) %13)
          to label %115 unwind label %120

115:                                              ; preds = %114
  %116 = add nuw nsw i64 %.05275, 1
  %117 = load i32, ptr %102, align 4, !tbaa !54
  %118 = zext i32 %117 to i64
  %119 = icmp ult i64 %116, %118
  br i1 %119, label %.lr.ph, label %.preheader, !llvm.loop !59

120:                                              ; preds = %114, %.lr.ph
  %121 = landingpad { ptr, i32 }
          cleanup
  br label %163

._crit_edge:                                      ; preds = %152, %.preheader
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #8
  %122 = add nuw i64 %.06378, 1
  %123 = call noundef i64 @_ZNKSt6vectorI15meshopt_MeshletSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  %124 = icmp ult i64 %122, %123
  br i1 %124, label %82, label %._crit_edge81, !llvm.loop !61

125:                                              ; preds = %.lr.ph77, %152
  %.076 = phi i64 [ 0, %.lr.ph77 ], [ %153, %152 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #8
  %126 = load i32, ptr %106, align 4, !tbaa !62
  %127 = zext i32 %126 to i64
  %128 = mul nuw nsw i64 %.076, 3
  %129 = add nuw nsw i64 %128, %127
  %130 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %129) #8
  %131 = load i8, ptr %130, align 1, !tbaa !63
  %132 = zext i8 %131 to i32
  %133 = add i32 %132, %101
  store i32 %133, ptr %14, align 4, !tbaa !58
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %69, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %134 unwind label %157

134:                                              ; preds = %125
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #8
  %135 = load i32, ptr %106, align 4, !tbaa !62
  %136 = zext i32 %135 to i64
  %137 = add nuw nsw i64 %128, 1
  %138 = add nuw nsw i64 %137, %136
  %139 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %138) #8
  %140 = load i8, ptr %139, align 1, !tbaa !63
  %141 = zext i8 %140 to i32
  %142 = add i32 %141, %101
  store i32 %142, ptr %15, align 4, !tbaa !58
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %69, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %143 unwind label %159

143:                                              ; preds = %134
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #8
  %144 = load i32, ptr %106, align 4, !tbaa !62
  %145 = zext i32 %144 to i64
  %146 = add nuw nsw i64 %128, 2
  %147 = add nuw nsw i64 %146, %145
  %148 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %147) #8
  %149 = load i8, ptr %148, align 1, !tbaa !63
  %150 = zext i8 %149 to i32
  %151 = add i32 %150, %101
  store i32 %151, ptr %16, align 4, !tbaa !58
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %69, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %152 unwind label %161

152:                                              ; preds = %143
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #8
  %153 = add nuw nsw i64 %.076, 1
  %154 = load i32, ptr %104, align 4, !tbaa !56
  %155 = zext i32 %154 to i64
  %156 = icmp ult i64 %153, %155
  br i1 %156, label %125, label %._crit_edge, !llvm.loop !64

157:                                              ; preds = %125
  %158 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #8
  br label %163

159:                                              ; preds = %134
  %160 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #8
  br label %163

161:                                              ; preds = %143
  %162 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #8
  br label %163

163:                                              ; preds = %157, %159, %161, %120
  %.pn66 = phi { ptr, i32 } [ %121, %120 ], [ %162, %161 ], [ %160, %159 ], [ %158, %157 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #8
  br label %168

164:                                              ; preds = %._crit_edge81
  invoke void @_ZNSt6vectorI6StreamSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %71, ptr noundef nonnull align 8 dereferenceable(48) %12)
          to label %165 unwind label %166

165:                                              ; preds = %164
  call void @_ZN6StreamD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %12) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %12) #8
  call void @_ZN6StreamD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %11) #8
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #8
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  call void @_ZNSt6vectorI15meshopt_MeshletSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  call void @_ZN4MeshD2Ev(ptr noundef nonnull align 8 dereferenceable(256) %4) #8
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %4) #8
  ret void

166:                                              ; preds = %164, %._crit_edge81
  %167 = landingpad { ptr, i32 }
          cleanup
  br label %168

168:                                              ; preds = %166, %163
  %.pn66.pn = phi { ptr, i32 } [ %.pn66, %163 ], [ %167, %166 ]
  call void @_ZN6StreamD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %12) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %12) #8
  call void @_ZN6StreamD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %11) #8
  br label %169

169:                                              ; preds = %168, %80
  %.pn66.pn.pn = phi { ptr, i32 } [ %.pn66.pn, %168 ], [ %81, %80 ]
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  br label %170

170:                                              ; preds = %169, %78
  %.pn66.pn.pn.pn = phi { ptr, i32 } [ %.pn66.pn.pn, %169 ], [ %79, %78 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #8
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  br label %171

171:                                              ; preds = %170, %76
  %.pn66.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn66.pn.pn.pn, %170 ], [ %77, %76 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  call void @_ZNSt6vectorI15meshopt_MeshletSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  br label %172

172:                                              ; preds = %171, %74
  %.pn66.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn66.pn.pn.pn.pn, %171 ], [ %75, %74 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  br label %173

173:                                              ; preds = %72, %172, %25
  %.pn66.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %26, %25 ], [ %.pn66.pn.pn.pn.pn.pn, %172 ], [ %73, %72 ]
  call void @_ZN4MeshD2Ev(ptr noundef nonnull align 8 dereferenceable(256) %4) #8
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %4) #8
  resume { ptr, i32 } %.pn66.pn.pn.pn.pn.pn.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef ptr @_ZL9getStreamR4Mesh20cgltf_attribute_typei(ptr noundef nonnull align 8 dereferenceable(256), i32 noundef, i32 noundef) local_unnamed_addr #1

declare i64 @meshopt_buildMeshletsBound(i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #7

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI15meshopt_MeshletSaIS0_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #5 align 2

declare i64 @meshopt_buildMeshlets(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, float noundef) local_unnamed_addr #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI15meshopt_MeshletSaIS0_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 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(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(16) ptr @_ZNKSt6vectorI4AttrSaIS0_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 @_ZNKSt6vectorI15meshopt_MeshletSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI4AttrSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #5 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorI15meshopt_MeshletED2Ev(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 = { 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 = { inlinehint 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 #4 = { 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 #5 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { noreturn 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, !21, i64 96}
!6 = !{!"_ZTS4Mesh", !7, i64 0, !10, i64 8, !15, i64 32, !14, i64 56, !14, i64 64, !19, i64 72, !21, i64 96, !22, i64 104, !26, i64 128, !30, i64 152, !8, i64 160, !20, i64 176, !31, i64 184, !35, i64 208, !39, i64 232}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt6vectorIP10cgltf_nodeSaIS1_EE", !11, i64 0}
!11 = !{!"_ZTSSt12_Vector_baseIP10cgltf_nodeSaIS1_EE", !12, i64 0}
!12 = !{!"_ZTSNSt12_Vector_baseIP10cgltf_nodeSaIS1_EE12_Vector_implE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIP10cgltf_nodeSaIS1_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"_ZTSSt6vectorI9TransformSaIS0_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseI9TransformSaIS0_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseI9TransformSaIS0_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseI9TransformSaIS0_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!19 = !{!"_ZTS12cgltf_extras", !20, i64 0, !20, i64 8, !14, i64 16}
!20 = !{!"long", !8, i64 0}
!21 = !{!"_ZTS20cgltf_primitive_type", !8, i64 0}
!22 = !{!"_ZTSSt6vectorI6StreamSaIS0_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseI6StreamSaIS0_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseI6StreamSaIS0_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseI6StreamSaIS0_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!26 = !{!"_ZTSSt6vectorIjSaIjEE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!30 = !{!"bool", !8, i64 0}
!31 = !{!"_ZTSSt6vectorIfSaIfEE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!35 = !{!"_ZTSSt6vectorIPKcSaIS1_EE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseIPKcSaIS1_EE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIPKcSaIS1_EE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIPKcSaIS1_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!39 = !{!"_ZTSSt6vectorI22cgltf_material_mappingSaIS0_EE", !40, i64 0}
!40 = !{!"_ZTSSt12_Vector_baseI22cgltf_material_mappingSaIS0_EE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseI22cgltf_material_mappingSaIS0_EE12_Vector_implE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseI22cgltf_material_mappingSaIS0_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!43 = !{!44, !45, i64 0}
!44 = !{!"_ZTS6Stream", !45, i64 0, !7, i64 4, !7, i64 8, !14, i64 16, !46, i64 24}
!45 = !{!"_ZTS20cgltf_attribute_type", !8, i64 0}
!46 = !{!"_ZTSSt6vectorI4AttrSaIS0_EE", !47, i64 0}
!47 = !{!"_ZTSSt12_Vector_baseI4AttrSaIS0_EE", !48, i64 0}
!48 = !{!"_ZTSNSt12_Vector_baseI4AttrSaIS0_EE12_Vector_implE", !49, i64 0}
!49 = !{!"_ZTSNSt12_Vector_baseI4AttrSaIS0_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!50 = !{!44, !7, i64 4}
!51 = !{!44, !7, i64 8}
!52 = !{!53, !53, i64 0}
!53 = !{!"float", !8, i64 0}
!54 = !{!55, !7, i64 8}
!55 = !{!"_ZTS15meshopt_Meshlet", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12}
!56 = !{!55, !7, i64 12}
!57 = !{!55, !7, i64 0}
!58 = !{!7, !7, i64 0}
!59 = distinct !{!59, !60}
!60 = !{!"llvm.loop.mustprogress"}
!61 = distinct !{!61, !60}
!62 = !{!55, !7, i64 4}
!63 = !{!8, !8, i64 0}
!64 = distinct !{!64, !60}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass