; LLVM IR from zeux/meshoptimizer :: demo/main.ll (Z16simplifyClustersRK4Meshf)

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

%"class.std::vector.25" = type { %"struct.std::_Vector_base.26" }
%"struct.std::_Vector_base.26" = 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.27" = type { i8 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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::allocator.2" = type { i8 }
%"class.std::vector.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = 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.22" = type { i8 }
%"class.std::vector.30" = type { %"struct.std::_Vector_base.31" }
%"struct.std::_Vector_base.31" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.32" = type { i8 }
%struct.Mesh = type { %"class.std::vector", %"class.std::vector.0" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Vertex, std::allocator<Vertex>>::_Vector_impl" }
%"struct.std::_Vector_base<Vertex, std::allocator<Vertex>>::_Vector_impl" = type { %"struct.std::_Vector_base<Vertex, std::allocator<Vertex>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Vertex, std::allocator<Vertex>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.Vertex = type { float, float, float, float, float, float, float, float }
%struct.meshopt_Meshlet = type { i32, i32, i32, i32 }

@.str.15 = external hidden unnamed_addr constant [147 x i8], align 1
@.str.16 = 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 double @_Z9timestampv() #1

declare i32 @printf(ptr noundef, ...) #2

declare i32 @__gxx_personality_v0(...)

; 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 #3 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 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 @_ZNSt6vectorIjSaIjEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 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 noundef i64 @_ZNKSt6vectorI6VertexSaIS0_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

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

declare i64 @meshopt_simplify(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, float noundef, i32 noundef, ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 #3 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 void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z16simplifyClustersRK4Meshf(ptr noundef nonnull align 8 dereferenceable(48) %0, float noundef %1) #3 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca float, align 4
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca double, align 8
  %9 = alloca i64, align 8
  %10 = alloca %"class.std::vector.25", align 8
  %11 = alloca %"class.std::allocator.27", align 1
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::vector.0", align 8
  %15 = alloca %"class.std::allocator.2", align 1
  %16 = alloca %"class.std::vector.20", align 8
  %17 = alloca %"class.std::allocator.22", align 1
  %18 = alloca double, align 8
  %19 = alloca %"class.std::vector.0", align 8
  %20 = alloca %"class.std::vector.0", align 8
  %21 = alloca %"class.std::allocator.2", align 1
  %22 = alloca i64, align 8
  %23 = alloca i32, align 4
  %24 = alloca ptr, align 8
  %25 = alloca i64, align 8
  %26 = alloca %"class.std::vector.0", align 8
  %27 = alloca %"class.std::allocator.2", align 1
  %28 = alloca i64, align 8
  %29 = alloca %"class.std::vector.30", align 8
  %30 = alloca i32, align 4
  %31 = alloca %"class.std::allocator.32", align 1
  %32 = alloca %"class.std::vector.30", align 8
  %33 = alloca i32, align 4
  %34 = alloca %"class.std::allocator.32", align 1
  %35 = alloca i64, align 8
  %36 = alloca i32, align 4
  %37 = alloca double, align 8
  %38 = alloca float, align 4
  %39 = alloca %"class.std::vector.0", align 8
  %40 = alloca float, align 4
  %41 = alloca i64, align 8
  %42 = alloca i64, align 8
  %43 = alloca i32, align 4
  %44 = alloca ptr, align 8
  %45 = alloca i64, align 8
  %46 = alloca i64, align 8
  %47 = alloca i32, align 4
  %48 = alloca float, align 4
  %49 = alloca i64, align 8
  %50 = alloca float, align 4
  %51 = alloca i64, align 8
  %52 = alloca double, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store float %1, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  store i64 64, ptr %5, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store i64 64, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store i64 8, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %53 = call noundef double @_Z9timestampv()
  store double %53, ptr %8, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.Mesh, ptr %54, i32 0, i32 1
  %56 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %55) #4
  %57 = call i64 @meshopt_buildMeshletsBound(i64 noundef %56, i64 noundef 64, i64 noundef 64)
  store i64 %57, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #4
  %58 = load i64, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #4
  call void @_ZNSaI15meshopt_MeshletEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #4
  invoke void @_ZNSt6vectorI15meshopt_MeshletSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %58, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %59 unwind label %98

59:                                               ; preds = %2
  call void @_ZNSt15__new_allocatorI15meshopt_MeshletED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #4
  %60 = load i64, ptr %9, align 8, !tbaa !11
  %61 = mul i64 %60, 64
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #4
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #4
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %61, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %62 unwind label %102

62:                                               ; preds = %59
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #4
  %63 = load i64, ptr %9, align 8, !tbaa !11
  %64 = mul i64 %63, 64
  %65 = mul i64 %64, 3
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #4
  call void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #4
  invoke void @_ZNSt6vectorIhSaIhEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %65, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %66 unwind label %106

66:                                               ; preds = %62
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #4
  %67 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI15meshopt_MeshletSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef 0) #4
  %68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef 0) #4
  %69 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef 0) #4
  %70 = load ptr, ptr %3, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.Mesh, ptr %70, i32 0, i32 1
  %72 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef 0) #4
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.Mesh, ptr %73, i32 0, i32 1
  %75 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %74) #4
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.Mesh, ptr %76, i32 0, i32 0
  %78 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNKSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef 0) #4
  %79 = getelementptr inbounds %struct.Vertex, ptr %78, i32 0, i32 0
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.Mesh, ptr %80, i32 0, i32 0
  %82 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %81) #4
  %83 = invoke i64 @meshopt_buildMeshlets(ptr noundef %67, ptr noundef %68, ptr noundef %69, ptr noundef %72, i64 noundef %75, ptr noundef %79, i64 noundef %82, i64 noundef 32, i64 noundef 64, i64 noundef 64, float noundef 0.000000e+00)
          to label %84 unwind label %110

84:                                               ; preds = %66
  invoke void @_ZNSt6vectorI15meshopt_MeshletSaIS0_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %83)
          to label %85 unwind label %110

85:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %86 = call noundef double @_Z9timestampv()
  store double %86, ptr %18, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #4
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #4
  %87 = load ptr, ptr %3, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.Mesh, ptr %87, i32 0, i32 1
  %89 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %88) #4
  invoke void @_ZNSt6vectorIjSaIjEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %89)
          to label %90 unwind label %114

90:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #4
  %91 = call noundef i64 @_ZNKSt6vectorI15meshopt_MeshletSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #4
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #4
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %91, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %92 unwind label %118

92:                                               ; preds = %90
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  store i64 0, ptr %22, align 8, !tbaa !11
  br label %93

93:                                               ; preds = %165, %92
  %94 = load i64, ptr %22, align 8, !tbaa !11
  %95 = call noundef i64 @_ZNKSt6vectorI15meshopt_MeshletSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  %96 = icmp ult i64 %94, %95
  br i1 %96, label %122, label %97

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

98:                                               ; preds = %2
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %12, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %13, align 4
  call void @_ZNSt15__new_allocatorI15meshopt_MeshletED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #4
  br label %445

102:                                              ; preds = %59
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %12, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %13, align 4
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #4
  br label %444

106:                                              ; preds = %62
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %12, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %13, align 4
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #4
  br label %443

110:                                              ; preds = %84, %66
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %12, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %13, align 4
  br label %442

114:                                              ; preds = %85
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %12, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %13, align 4
  br label %441

118:                                              ; preds = %90
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %12, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %13, align 4
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #4
  br label %440

122:                                              ; preds = %93
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  %123 = load i64, ptr %22, align 8, !tbaa !11
  %124 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI15meshopt_MeshletSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %123) #4
  store ptr %124, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  store i64 0, ptr %25, align 8, !tbaa !11
  br label %125

125:                                              ; preds = %151, %122
  %126 = load i64, ptr %25, align 8, !tbaa !11
  %127 = load ptr, ptr %24, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.meshopt_Meshlet, ptr %127, i32 0, i32 3
  %129 = load i32, ptr %128, align 4, !tbaa !15
  %130 = mul i32 %129, 3
  %131 = zext i32 %130 to i64
  %132 = icmp ult i64 %126, %131
  br i1 %132, label %134, label %133

133:                                              ; preds = %125
  store i32 5, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  br label %158

134:                                              ; preds = %125
  %135 = load ptr, ptr %24, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.meshopt_Meshlet, ptr %135, i32 0, i32 0
  %137 = load i32, ptr %136, align 4, !tbaa !18
  %138 = load ptr, ptr %24, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.meshopt_Meshlet, ptr %138, i32 0, i32 1
  %140 = load i32, ptr %139, align 4, !tbaa !19
  %141 = zext i32 %140 to i64
  %142 = load i64, ptr %25, align 8, !tbaa !11
  %143 = add i64 %141, %142
  %144 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %143) #4
  %145 = load i8, ptr %144, align 1, !tbaa !20
  %146 = zext i8 %145 to i32
  %147 = add i32 %137, %146
  %148 = zext i32 %147 to i64
  %149 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %148) #4
  invoke void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 4 dereferenceable(4) %149)
          to label %150 unwind label %154

150:                                              ; preds = %134
  br label %151

151:                                              ; preds = %150
  %152 = load i64, ptr %25, align 8, !tbaa !11
  %153 = add i64 %152, 1
  store i64 %153, ptr %25, align 8, !tbaa !11
  br label %125, !llvm.loop !21

154:                                              ; preds = %134
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %12, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  br label %439

158:                                              ; preds = %133
  %159 = load ptr, ptr %24, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.meshopt_Meshlet, ptr %159, i32 0, i32 3
  %161 = load i32, ptr %160, align 4, !tbaa !15
  %162 = mul i32 %161, 3
  %163 = load i64, ptr %22, align 8, !tbaa !11
  %164 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %163) #4
  store i32 %162, ptr %164, align 4, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  br label %165

165:                                              ; preds = %158
  %166 = load i64, ptr %22, align 8, !tbaa !11
  %167 = add i64 %166, 1
  store i64 %167, ptr %22, align 8, !tbaa !11
  br label %93, !llvm.loop !24

168:                                              ; preds = %97
  %169 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef 0) #4
  %170 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef 0) #4
  %171 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #4
  %172 = load ptr, ptr %3, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.Mesh, ptr %172, i32 0, i32 0
  %174 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNKSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %173, i64 noundef 0) #4
  %175 = getelementptr inbounds %struct.Vertex, ptr %174, i32 0, i32 0
  %176 = load ptr, ptr %3, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.Mesh, ptr %176, i32 0, i32 0
  %178 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %177) #4
  invoke void @meshopt_generateShadowIndexBuffer(ptr noundef %169, ptr noundef %170, i64 noundef %171, ptr noundef %175, i64 noundef %178, i64 noundef 12, i64 noundef 32)
          to label %179 unwind label %201

179:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #4
  %180 = call noundef i64 @_ZNKSt6vectorI15meshopt_MeshletSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #4
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #4
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %180, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %181 unwind label %205

181:                                              ; preds = %179
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  %182 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef 0) #4
  %183 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef 0) #4
  %184 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #4
  %185 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef 0) #4
  %186 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #4
  %187 = load ptr, ptr %3, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.Mesh, ptr %187, i32 0, i32 0
  %189 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %188) #4
  %190 = invoke i64 @meshopt_partitionClusters(ptr noundef %182, ptr noundef %183, i64 noundef %184, ptr noundef %185, i64 noundef %186, i64 noundef %189, i64 noundef 8)
          to label %191 unwind label %209

191:                                              ; preds = %181
  store i64 %190, ptr %28, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %29) #4
  %192 = call noundef i64 @_ZNKSt6vectorI15meshopt_MeshletSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #4
  store i32 -1, ptr %30, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 1, ptr %31) #4
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #4
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %192, ptr noundef nonnull align 4 dereferenceable(4) %30, ptr noundef nonnull align 1 dereferenceable(1) %31)
          to label %193 unwind label %213

193:                                              ; preds = %191
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %32) #4
  %194 = load i64, ptr %28, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #4
  store i32 -1, ptr %33, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 1, ptr %34) #4
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #4
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %194, ptr noundef nonnull align 4 dereferenceable(4) %33, ptr noundef nonnull align 1 dereferenceable(1) %34)
          to label %195 unwind label %217

195:                                              ; preds = %193
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #4
  store i64 0, ptr %35, align 8, !tbaa !11
  br label %196

196:                                              ; preds = %247, %195
  %197 = load i64, ptr %35, align 8, !tbaa !11
  %198 = call noundef i64 @_ZNKSt6vectorI15meshopt_MeshletSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  %199 = icmp ult i64 %197, %198
  br i1 %199, label %221, label %200

200:                                              ; preds = %196
  store i32 8, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #4
  br label %250

201:                                              ; preds = %168
  %202 = landingpad { ptr, i32 }
          cleanup
  %203 = extractvalue { ptr, i32 } %202, 0
  store ptr %203, ptr %12, align 8
  %204 = extractvalue { ptr, i32 } %202, 1
  store i32 %204, ptr %13, align 4
  br label %439

205:                                              ; preds = %179
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %12, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %13, align 4
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #4
  br label %438

209:                                              ; preds = %181
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %12, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %13, align 4
  br label %437

213:                                              ; preds = %191
  %214 = landingpad { ptr, i32 }
          cleanup
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %12, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %13, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #4
  br label %436

217:                                              ; preds = %193
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %12, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %13, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #4
  br label %435

221:                                              ; preds = %196
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #4
  %222 = load i64, ptr %35, align 8, !tbaa !11
  %223 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %222) #4
  %224 = load i32, ptr %223, align 4, !tbaa !23
  store i32 %224, ptr %36, align 4, !tbaa !23
  %225 = load i32, ptr %36, align 4, !tbaa !23
  %226 = zext i32 %225 to i64
  %227 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %226) #4
  %228 = load i32, ptr %227, align 4, !tbaa !23
  %229 = icmp sge i32 %228, 0
  br i1 %229, label %230, label %239

230:                                              ; preds = %221
  %231 = load i64, ptr %35, align 8, !tbaa !11
  %232 = trunc i64 %231 to i32
  %233 = load i32, ptr %36, align 4, !tbaa !23
  %234 = zext i32 %233 to i64
  %235 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %234) #4
  %236 = load i32, ptr %235, align 4, !tbaa !23
  %237 = sext i32 %236 to i64
  %238 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %237) #4
  store i32 %232, ptr %238, align 4, !tbaa !23
  br label %239

239:                                              ; preds = %230, %221
  %240 = load i64, ptr %35, align 8, !tbaa !11
  %241 = trunc i64 %240 to i32
  %242 = load i32, ptr %36, align 4, !tbaa !23
  %243 = zext i32 %242 to i64
  %244 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %243) #4
  store i32 %241, ptr %244, align 4, !tbaa !23
  %245 = load i64, ptr %35, align 8, !tbaa !11
  %246 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %245) #4
  store i32 -1, ptr %246, align 4, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #4
  br label %247

247:                                              ; preds = %239
  %248 = load i64, ptr %35, align 8, !tbaa !11
  %249 = add i64 %248, 1
  store i64 %249, ptr %35, align 8, !tbaa !11
  br label %196, !llvm.loop !25

250:                                              ; preds = %200
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #4
  %251 = call noundef double @_Z9timestampv()
  store double %251, ptr %37, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #4
  %252 = load ptr, ptr %3, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.Mesh, ptr %252, i32 0, i32 0
  %254 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNKSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %253, i64 noundef 0) #4
  %255 = getelementptr inbounds %struct.Vertex, ptr %254, i32 0, i32 0
  %256 = load ptr, ptr %3, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.Mesh, ptr %256, i32 0, i32 0
  %258 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %257) #4
  %259 = invoke float @meshopt_simplifyScale(ptr noundef %255, i64 noundef %258, i64 noundef 32)
          to label %260 unwind label %270

260:                                              ; preds = %250
  store float %259, ptr %38, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %39) #4
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %39) #4
  %261 = load ptr, ptr %3, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.Mesh, ptr %261, i32 0, i32 1
  %263 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %262) #4
  invoke void @_ZNSt6vectorIjSaIjEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %263)
          to label %264 unwind label %274

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

265:                                              ; preds = %387, %264
  %266 = load i64, ptr %41, align 8, !tbaa !11
  %267 = call noundef i64 @_ZNKSt6vectorI15meshopt_MeshletSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  %268 = icmp ult i64 %266, %267
  br i1 %268, label %278, label %269

269:                                              ; preds = %265
  store i32 11, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #4
  br label %395

270:                                              ; preds = %250
  %271 = landingpad { ptr, i32 }
          cleanup
  %272 = extractvalue { ptr, i32 } %271, 0
  store ptr %272, ptr %12, align 8
  %273 = extractvalue { ptr, i32 } %271, 1
  store i32 %273, ptr %13, align 4
  br label %434

274:                                              ; preds = %260
  %275 = landingpad { ptr, i32 }
          cleanup
  %276 = extractvalue { ptr, i32 } %275, 0
  store ptr %276, ptr %12, align 8
  %277 = extractvalue { ptr, i32 } %275, 1
  store i32 %277, ptr %13, align 4
  br label %433

278:                                              ; preds = %265
  %279 = load i64, ptr %41, align 8, !tbaa !11
  %280 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %279) #4
  %281 = load i32, ptr %280, align 4, !tbaa !23
  %282 = zext i32 %281 to i64
  %283 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %282) #4
  %284 = load i32, ptr %283, align 4, !tbaa !23
  %285 = icmp slt i32 %284, 0
  br i1 %285, label %286, label %287

286:                                              ; preds = %278
  br label %387

287:                                              ; preds = %278
  %288 = load i64, ptr %41, align 8, !tbaa !11
  %289 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %288) #4
  %290 = load i32, ptr %289, align 4, !tbaa !23
  %291 = zext i32 %290 to i64
  %292 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %291) #4
  store i32 -1, ptr %292, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #4
  %293 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #4
  store i64 %293, ptr %42, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #4
  %294 = load i64, ptr %41, align 8, !tbaa !11
  %295 = trunc i64 %294 to i32
  store i32 %295, ptr %43, align 4, !tbaa !23
  br label %296

296:                                              ; preds = %338, %287
  %297 = load i32, ptr %43, align 4, !tbaa !23
  %298 = icmp sge i32 %297, 0
  br i1 %298, label %300, label %299

299:                                              ; preds = %296
  store i32 14, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #4
  br label %343

300:                                              ; preds = %296
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #4
  %301 = load i32, ptr %43, align 4, !tbaa !23
  %302 = sext i32 %301 to i64
  %303 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI15meshopt_MeshletSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %302) #4
  store ptr %303, ptr %44, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #4
  store i64 0, ptr %45, align 8, !tbaa !11
  br label %304

304:                                              ; preds = %330, %300
  %305 = load i64, ptr %45, align 8, !tbaa !11
  %306 = load ptr, ptr %44, align 8, !tbaa !5
  %307 = getelementptr inbounds %struct.meshopt_Meshlet, ptr %306, i32 0, i32 3
  %308 = load i32, ptr %307, align 4, !tbaa !15
  %309 = mul i32 %308, 3
  %310 = zext i32 %309 to i64
  %311 = icmp ult i64 %305, %310
  br i1 %311, label %313, label %312

312:                                              ; preds = %304
  store i32 17, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #4
  br label %337

313:                                              ; preds = %304
  %314 = load ptr, ptr %44, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.meshopt_Meshlet, ptr %314, i32 0, i32 0
  %316 = load i32, ptr %315, align 4, !tbaa !18
  %317 = load ptr, ptr %44, align 8, !tbaa !5
  %318 = getelementptr inbounds %struct.meshopt_Meshlet, ptr %317, i32 0, i32 1
  %319 = load i32, ptr %318, align 4, !tbaa !19
  %320 = zext i32 %319 to i64
  %321 = load i64, ptr %45, align 8, !tbaa !11
  %322 = add i64 %320, %321
  %323 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %322) #4
  %324 = load i8, ptr %323, align 1, !tbaa !20
  %325 = zext i8 %324 to i32
  %326 = add i32 %316, %325
  %327 = zext i32 %326 to i64
  %328 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %327) #4
  invoke void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %39, ptr noundef nonnull align 4 dereferenceable(4) %328)
          to label %329 unwind label %333

329:                                              ; preds = %313
  br label %330

330:                                              ; preds = %329
  %331 = load i64, ptr %45, align 8, !tbaa !11
  %332 = add i64 %331, 1
  store i64 %332, ptr %45, align 8, !tbaa !11
  br label %304, !llvm.loop !26

333:                                              ; preds = %313
  %334 = landingpad { ptr, i32 }
          cleanup
  %335 = extractvalue { ptr, i32 } %334, 0
  store ptr %335, ptr %12, align 8
  %336 = extractvalue { ptr, i32 } %334, 1
  store i32 %336, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #4
  br label %394

337:                                              ; preds = %312
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #4
  br label %338

338:                                              ; preds = %337
  %339 = load i32, ptr %43, align 4, !tbaa !23
  %340 = sext i32 %339 to i64
  %341 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %340) #4
  %342 = load i32, ptr %341, align 4, !tbaa !23
  store i32 %342, ptr %43, align 4, !tbaa !23
  br label %296, !llvm.loop !27

343:                                              ; preds = %299
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #4
  %344 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #4
  %345 = load i64, ptr %42, align 8, !tbaa !11
  %346 = sub i64 %344, %345
  %347 = udiv i64 %346, 3
  store i64 %347, ptr %46, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #4
  store i32 7, ptr %47, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #4
  %348 = load float, ptr %38, align 4, !tbaa !9
  %349 = fmul float 0x3F847AE140000000, %348
  store float %349, ptr %48, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #4
  %350 = load i64, ptr %46, align 8, !tbaa !11
  %351 = uitofp i64 %350 to float
  %352 = load float, ptr %4, align 4, !tbaa !9
  %353 = fmul float %351, %352
  %354 = fptoui float %353 to i64
  %355 = mul i64 %354, 3
  store i64 %355, ptr %49, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #4
  store float 0.000000e+00, ptr %50, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #4
  %356 = load i64, ptr %42, align 8, !tbaa !11
  %357 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %356) #4
  %358 = load i64, ptr %42, align 8, !tbaa !11
  %359 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %358) #4
  %360 = load i64, ptr %46, align 8, !tbaa !11
  %361 = mul i64 %360, 3
  %362 = load ptr, ptr %3, align 8, !tbaa !5
  %363 = getelementptr inbounds %struct.Mesh, ptr %362, i32 0, i32 0
  %364 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNKSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %363, i64 noundef 0) #4
  %365 = getelementptr inbounds %struct.Vertex, ptr %364, i32 0, i32 0
  %366 = load ptr, ptr %3, align 8, !tbaa !5
  %367 = getelementptr inbounds %struct.Mesh, ptr %366, i32 0, i32 0
  %368 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %367) #4
  %369 = load i64, ptr %49, align 8, !tbaa !11
  %370 = load float, ptr %48, align 4, !tbaa !9
  %371 = load i32, ptr %47, align 4, !tbaa !23
  %372 = invoke i64 @meshopt_simplify(ptr noundef %357, ptr noundef %359, i64 noundef %361, ptr noundef %365, i64 noundef %368, i64 noundef 32, i64 noundef %369, float noundef %370, i32 noundef %371, ptr noundef %50)
          to label %373 unwind label %390

373:                                              ; preds = %343
  store i64 %372, ptr %51, align 8, !tbaa !11
  %374 = load float, ptr %50, align 4, !tbaa !9
  %375 = load float, ptr %40, align 4, !tbaa !9
  %376 = fcmp ogt float %374, %375
  br i1 %376, label %377, label %379

377:                                              ; preds = %373
  %378 = load float, ptr %50, align 4, !tbaa !9
  br label %381

379:                                              ; preds = %373
  %380 = load float, ptr %40, align 4, !tbaa !9
  br label %381

381:                                              ; preds = %379, %377
  %382 = phi float [ %378, %377 ], [ %380, %379 ]
  store float %382, ptr %40, align 4, !tbaa !9
  %383 = load i64, ptr %42, align 8, !tbaa !11
  %384 = load i64, ptr %51, align 8, !tbaa !11
  %385 = add i64 %383, %384
  invoke void @_ZNSt6vectorIjSaIjEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %385)
          to label %386 unwind label %390

386:                                              ; preds = %381
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #4
  br label %387

387:                                              ; preds = %386, %286
  %388 = load i64, ptr %41, align 8, !tbaa !11
  %389 = add i64 %388, 1
  store i64 %389, ptr %41, align 8, !tbaa !11
  br label %265, !llvm.loop !28

390:                                              ; preds = %381, %343
  %391 = landingpad { ptr, i32 }
          cleanup
  %392 = extractvalue { ptr, i32 } %391, 0
  store ptr %392, ptr %12, align 8
  %393 = extractvalue { ptr, i32 } %391, 1
  store i32 %393, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #4
  br label %394

394:                                              ; preds = %390, %333
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #4
  br label %432

395:                                              ; preds = %269
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #4
  %396 = call noundef double @_Z9timestampv()
  store double %396, ptr %52, align 8, !tbaa !13
  %397 = load ptr, ptr %3, align 8, !tbaa !5
  %398 = getelementptr inbounds %struct.Mesh, ptr %397, i32 0, i32 1
  %399 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %398) #4
  %400 = udiv i64 %399, 3
  %401 = trunc i64 %400 to i32
  %402 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #4
  %403 = udiv i64 %402, 3
  %404 = trunc i64 %403 to i32
  %405 = load float, ptr %40, align 4, !tbaa !9
  %406 = load float, ptr %38, align 4, !tbaa !9
  %407 = fdiv float %405, %406
  %408 = fmul float %407, 1.000000e+02
  %409 = fpext float %408 to double
  %410 = load double, ptr %52, align 8, !tbaa !13
  %411 = load double, ptr %37, align 8, !tbaa !13
  %412 = fsub double %410, %411
  %413 = fmul double %412, 1.000000e+03
  %414 = load double, ptr %18, align 8, !tbaa !13
  %415 = load double, ptr %8, align 8, !tbaa !13
  %416 = fsub double %414, %415
  %417 = fmul double %416, 1.000000e+03
  %418 = load double, ptr %37, align 8, !tbaa !13
  %419 = load double, ptr %18, align 8, !tbaa !13
  %420 = fsub double %418, %419
  %421 = fmul double %420, 1.000000e+03
  %422 = call noundef i64 @_ZNKSt6vectorI15meshopt_MeshletSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  %423 = trunc i64 %422 to i32
  %424 = load i64, ptr %28, align 8, !tbaa !11
  %425 = trunc i64 %424 to i32
  %426 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.15, ptr noundef @.str.16, i32 noundef %401, i32 noundef %404, double noundef %409, double noundef %413, double noundef %417, double noundef %421, i32 noundef %423, i32 noundef %425)
          to label %427 unwind label %428

427:                                              ; preds = %395
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #4
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %39) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %39) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #4
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #4
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #4
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #4
  call void @_ZNSt6vectorI15meshopt_MeshletSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret void

428:                                              ; preds = %395
  %429 = landingpad { ptr, i32 }
          cleanup
  %430 = extractvalue { ptr, i32 } %429, 0
  store ptr %430, ptr %12, align 8
  %431 = extractvalue { ptr, i32 } %429, 1
  store i32 %431, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #4
  br label %432

432:                                              ; preds = %428, %394
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #4
  br label %433

433:                                              ; preds = %432, %274
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %39) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %39) #4
  br label %434

434:                                              ; preds = %433, %270
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #4
  br label %435

435:                                              ; preds = %434, %217
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #4
  br label %436

436:                                              ; preds = %435, %213
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #4
  br label %437

437:                                              ; preds = %436, %209
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #4
  br label %438

438:                                              ; preds = %437, %205
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #4
  br label %439

439:                                              ; preds = %438, %201, %154
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #4
  br label %440

440:                                              ; preds = %439, %118
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #4
  br label %441

441:                                              ; preds = %440, %114
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  br label %442

442:                                              ; preds = %441, %110
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #4
  br label %443

443:                                              ; preds = %442, %106
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #4
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #4
  br label %444

444:                                              ; preds = %443, %102
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #4
  call void @_ZNSt6vectorI15meshopt_MeshletSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  br label %445

445:                                              ; preds = %444, %98
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  br label %446

446:                                              ; preds = %445
  %447 = load ptr, ptr %12, align 8
  %448 = load i32, ptr %13, align 4
  %449 = insertvalue { ptr, i32 } poison, ptr %447, 0
  %450 = insertvalue { ptr, i32 } %449, i32 %448, 1
  resume { ptr, i32 } %450
}

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

; 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 #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI15meshopt_MeshletSaIS0_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 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) #2

; 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 uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 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 @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

declare void @meshopt_generateShadowIndexBuffer(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef) #2

declare i64 @meshopt_partitionClusters(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef) #2

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

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

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

declare float @meshopt_simplifyScale(ptr noundef, i64 noundef, i64 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { 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 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!16, !17, i64 12}
!16 = !{!"_ZTS15meshopt_Meshlet", !17, i64 0, !17, i64 4, !17, i64 8, !17, i64 12}
!17 = !{!"int", !7, i64 0}
!18 = !{!16, !17, i64 0}
!19 = !{!16, !17, i64 4}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!17, !17, i64 0}
!24 = distinct !{!24, !22}
!25 = distinct !{!25, !22}
!26 = distinct !{!26, !22}
!27 = distinct !{!27, !22}
!28 = distinct !{!28, !22}


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

%"class.std::vector.25" = type { %"struct.std::_Vector_base.26" }
%"struct.std::_Vector_base.26" = 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.27" = type { i8 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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::allocator.2" = type { i8 }
%"class.std::vector.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = 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.22" = type { i8 }
%"class.std::vector.30" = type { %"struct.std::_Vector_base.31" }
%"struct.std::_Vector_base.31" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.32" = type { i8 }

@.str.15 = external hidden unnamed_addr constant [147 x i8], align 1
@.str.16 = 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 double @_Z9timestampv() local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

; 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 #3 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 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 @_ZNSt6vectorIjSaIjEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 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 noundef i64 @_ZNKSt6vectorI6VertexSaIS0_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

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

declare i64 @meshopt_simplify(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, float noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 #3 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 void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z16simplifyClustersRK4Meshf(ptr noundef nonnull align 8 dereferenceable(48) %0, float noundef %1) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector.25", align 8
  %4 = alloca %"class.std::allocator.27", align 1
  %5 = alloca %"class.std::vector.0", align 8
  %6 = alloca %"class.std::allocator.2", align 1
  %7 = alloca %"class.std::vector.20", align 8
  %8 = alloca %"class.std::allocator.22", align 1
  %9 = alloca %"class.std::vector.0", align 8
  %10 = alloca %"class.std::vector.0", align 8
  %11 = alloca %"class.std::allocator.2", align 1
  %12 = alloca %"class.std::vector.0", align 8
  %13 = alloca %"class.std::allocator.2", align 1
  %14 = alloca %"class.std::vector.30", align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.std::allocator.32", align 1
  %17 = alloca %"class.std::vector.30", align 8
  %18 = alloca i32, align 4
  %19 = alloca %"class.std::allocator.32", align 1
  %20 = alloca %"class.std::vector.0", align 8
  %21 = alloca float, align 4
  %22 = tail call noundef double @_Z9timestampv()
  %23 = getelementptr inbounds i8, ptr %0, i64 24
  %24 = tail call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #5
  %25 = tail call i64 @meshopt_buildMeshletsBound(i64 noundef %24, i64 noundef 64, i64 noundef 64)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #5
  call void @_ZNSaI15meshopt_MeshletEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  invoke void @_ZNSt6vectorI15meshopt_MeshletSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %25, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %26 unwind label %52

26:                                               ; preds = %2
  call void @_ZNSt15__new_allocatorI15meshopt_MeshletED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #5
  %27 = shl i64 %25, 6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #5
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %27, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %28 unwind label %54

28:                                               ; preds = %26
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #5
  %29 = mul i64 %25, 192
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #5
  call void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  invoke void @_ZNSt6vectorIhSaIhEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %29, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %30 unwind label %56

30:                                               ; preds = %28
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #5
  %31 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI15meshopt_MeshletSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #5
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #5
  %33 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 0) #5
  %34 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef 0) #5
  %35 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #5
  %36 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNKSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #5
  %37 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %38 = invoke i64 @meshopt_buildMeshlets(ptr noundef nonnull %31, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef nonnull %34, i64 noundef %35, ptr noundef nonnull %36, i64 noundef %37, i64 noundef 32, i64 noundef 64, i64 noundef 64, float noundef 0.000000e+00)
          to label %39 unwind label %58

39:                                               ; preds = %30
  invoke void @_ZNSt6vectorI15meshopt_MeshletSaIS0_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %38)
          to label %40 unwind label %58

40:                                               ; preds = %39
  %41 = call noundef double @_Z9timestampv()
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #5
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  %42 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #5
  invoke void @_ZNSt6vectorIjSaIjEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %42)
          to label %43 unwind label %60

43:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #5
  %44 = call noundef i64 @_ZNKSt6vectorI15meshopt_MeshletSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #5
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %44, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %45 unwind label %62

45:                                               ; preds = %43
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #5
  %46 = call noundef i64 @_ZNKSt6vectorI15meshopt_MeshletSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  %.not = icmp eq i64 %46, 0
  br i1 %.not, label %._crit_edge121, label %.lr.ph120

._crit_edge121:                                   ; preds = %._crit_edge, %45
  %47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 0) #5
  %48 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 0) #5
  %49 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  %50 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNKSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #5
  %51 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  invoke void @meshopt_generateShadowIndexBuffer(ptr noundef nonnull %47, ptr noundef nonnull %48, i64 noundef %49, ptr noundef nonnull %50, i64 noundef %51, i64 noundef 12, i64 noundef 32)
          to label %91 unwind label %110

52:                                               ; preds = %2
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI15meshopt_MeshletED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #5
  br label %244

54:                                               ; preds = %26
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  br label %243

56:                                               ; preds = %28
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #5
  br label %242

58:                                               ; preds = %39, %30
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %241

60:                                               ; preds = %40
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %240

62:                                               ; preds = %43
  %63 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #5
  br label %239

.lr.ph120:                                        ; preds = %45, %._crit_edge
  %.091118 = phi i64 [ %69, %._crit_edge ], [ 0, %45 ]
  %64 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI15meshopt_MeshletSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.091118) #5
  %65 = getelementptr inbounds i8, ptr %64, i64 12
  %66 = load i32, ptr %65, align 4, !tbaa !5
  %.not139 = icmp eq i32 %66, 0
  br i1 %.not139, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph120
  %67 = getelementptr inbounds i8, ptr %64, i64 4
  br label %72

._crit_edge:                                      ; preds = %83, %.lr.ph120
  %.lcssa = phi i32 [ 0, %.lr.ph120 ], [ %86, %83 ]
  %68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %.091118) #5
  store i32 %.lcssa, ptr %68, align 4, !tbaa !10
  %69 = add nuw i64 %.091118, 1
  %70 = call noundef i64 @_ZNKSt6vectorI15meshopt_MeshletSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  %71 = icmp ult i64 %69, %70
  br i1 %71, label %.lr.ph120, label %._crit_edge121, !llvm.loop !11

72:                                               ; preds = %.lr.ph, %83
  %.092117 = phi i64 [ 0, %.lr.ph ], [ %84, %83 ]
  %73 = load i32, ptr %64, align 4, !tbaa !13
  %74 = load i32, ptr %67, align 4, !tbaa !14
  %75 = zext i32 %74 to i64
  %76 = add nuw nsw i64 %.092117, %75
  %77 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %76) #5
  %78 = load i8, ptr %77, align 1, !tbaa !15
  %79 = zext i8 %78 to i32
  %80 = add i32 %73, %79
  %81 = zext i32 %80 to i64
  %82 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %81) #5
  invoke void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 4 dereferenceable(4) %82)
          to label %83 unwind label %89

83:                                               ; preds = %72
  %84 = add nuw nsw i64 %.092117, 1
  %85 = load i32, ptr %65, align 4, !tbaa !5
  %86 = mul i32 %85, 3
  %87 = zext i32 %86 to i64
  %88 = icmp ult i64 %84, %87
  br i1 %88, label %72, label %._crit_edge, !llvm.loop !16

89:                                               ; preds = %72
  %90 = landingpad { ptr, i32 }
          cleanup
  br label %238

91:                                               ; preds = %._crit_edge121
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #5
  %92 = call noundef i64 @_ZNKSt6vectorI15meshopt_MeshletSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #5
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %92, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %93 unwind label %112

93:                                               ; preds = %91
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #5
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef 0) #5
  %95 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 0) #5
  %96 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  %97 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef 0) #5
  %98 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  %99 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %100 = invoke i64 @meshopt_partitionClusters(ptr noundef nonnull %94, ptr noundef nonnull %95, i64 noundef %96, ptr noundef nonnull %97, i64 noundef %98, i64 noundef %99, i64 noundef 8)
          to label %101 unwind label %114

101:                                              ; preds = %93
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #5
  %102 = call noundef i64 @_ZNKSt6vectorI15meshopt_MeshletSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #5
  store i32 -1, ptr %15, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #5
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %102, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %103 unwind label %116

103:                                              ; preds = %101
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #5
  store i32 -1, ptr %18, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %19) #5
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #5
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %100, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %104 unwind label %118

104:                                              ; preds = %103
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #5
  %105 = call noundef i64 @_ZNKSt6vectorI15meshopt_MeshletSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  %.not140 = icmp eq i64 %105, 0
  br i1 %.not140, label %._crit_edge125, label %.lr.ph124

._crit_edge125:                                   ; preds = %.lr.ph124._crit_edge, %104
  %106 = call noundef double @_Z9timestampv()
  %107 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNKSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #5
  %108 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %109 = invoke float @meshopt_simplifyScale(ptr noundef nonnull %107, i64 noundef %108, i64 noundef 32)
          to label %137 unwind label %161

110:                                              ; preds = %._crit_edge121
  %111 = landingpad { ptr, i32 }
          cleanup
  br label %238

112:                                              ; preds = %91
  %113 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #5
  br label %237

114:                                              ; preds = %93
  %115 = landingpad { ptr, i32 }
          cleanup
  br label %236

116:                                              ; preds = %101
  %117 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #5
  br label %235

118:                                              ; preds = %103
  %119 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #5
  br label %234

.lr.ph124:                                        ; preds = %104, %.lr.ph124._crit_edge
  %.093122 = phi i64 [ %134, %.lr.ph124._crit_edge ], [ 0, %104 ]
  %120 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %.093122) #5
  %121 = load i32, ptr %120, align 4, !tbaa !10
  %122 = zext i32 %121 to i64
  %123 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %122) #5
  %124 = load i32, ptr %123, align 4, !tbaa !10
  %125 = icmp sgt i32 %124, -1
  %126 = trunc i64 %.093122 to i32
  br i1 %125, label %127, label %.lr.ph124._crit_edge

127:                                              ; preds = %.lr.ph124
  %128 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %122) #5
  %129 = load i32, ptr %128, align 4, !tbaa !10
  %130 = sext i32 %129 to i64
  %131 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %130) #5
  store i32 %126, ptr %131, align 4, !tbaa !10
  br label %.lr.ph124._crit_edge

.lr.ph124._crit_edge:                             ; preds = %.lr.ph124, %127
  %132 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %122) #5
  store i32 %126, ptr %132, align 4, !tbaa !10
  %133 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %.093122) #5
  store i32 -1, ptr %133, align 4, !tbaa !10
  %134 = add nuw i64 %.093122, 1
  %135 = call noundef i64 @_ZNKSt6vectorI15meshopt_MeshletSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  %136 = icmp ult i64 %134, %135
  br i1 %136, label %.lr.ph124, label %._crit_edge125, !llvm.loop !17

137:                                              ; preds = %._crit_edge125
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %20) #5
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #5
  %138 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #5
  invoke void @_ZNSt6vectorIjSaIjEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %138)
          to label %.preheader unwind label %163

.preheader:                                       ; preds = %137
  %139 = call noundef i64 @_ZNKSt6vectorI15meshopt_MeshletSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  %.not141 = icmp eq i64 %139, 0
  br i1 %.not141, label %._crit_edge137, label %.lr.ph136

.lr.ph136:                                        ; preds = %.preheader
  %140 = fmul float %109, 0x3F847AE140000000
  br label %165

._crit_edge137:                                   ; preds = %226, %.preheader
  %.095.lcssa = phi float [ 0.000000e+00, %.preheader ], [ %.196, %226 ]
  %141 = call noundef double @_Z9timestampv()
  %142 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #5
  %143 = udiv i64 %142, 3
  %144 = trunc i64 %143 to i32
  %145 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #5
  %146 = udiv i64 %145, 3
  %147 = trunc i64 %146 to i32
  %148 = fdiv float %.095.lcssa, %109
  %149 = fmul float %148, 1.000000e+02
  %150 = fpext float %149 to double
  %151 = fsub double %141, %106
  %152 = fmul double %151, 1.000000e+03
  %153 = fsub double %41, %22
  %154 = fmul double %153, 1.000000e+03
  %155 = fsub double %106, %41
  %156 = fmul double %155, 1.000000e+03
  %157 = call noundef i64 @_ZNKSt6vectorI15meshopt_MeshletSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  %158 = trunc i64 %157 to i32
  %159 = trunc i64 %100 to i32
  %160 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, ptr noundef nonnull @.str.16, i32 noundef %144, i32 noundef %147, double noundef %150, double noundef %152, double noundef %154, double noundef %156, i32 noundef %158, i32 noundef %159)
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #5
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #5
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #5
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  call void @_ZNSt6vectorI15meshopt_MeshletSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  ret void

161:                                              ; preds = %._crit_edge125
  %162 = landingpad { ptr, i32 }
          cleanup
  br label %233

163:                                              ; preds = %137
  %164 = landingpad { ptr, i32 }
          cleanup
  br label %232

165:                                              ; preds = %.lr.ph136, %226
  %.095135 = phi float [ 0.000000e+00, %.lr.ph136 ], [ %.196, %226 ]
  %.098134 = phi i64 [ 0, %.lr.ph136 ], [ %227, %226 ]
  %166 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %.098134) #5
  %167 = load i32, ptr %166, align 4, !tbaa !10
  %168 = zext i32 %167 to i64
  %169 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %168) #5
  %170 = load i32, ptr %169, align 4, !tbaa !10
  %171 = icmp slt i32 %170, 0
  br i1 %171, label %226, label %172

172:                                              ; preds = %165
  %173 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %.098134) #5
  %174 = load i32, ptr %173, align 4, !tbaa !10
  %175 = zext i32 %174 to i64
  %176 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %175) #5
  store i32 -1, ptr %176, align 4, !tbaa !10
  %177 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #5
  %178 = trunc i64 %.098134 to i32
  %179 = icmp sgt i32 %178, -1
  br i1 %179, label %.lr.ph132, label %._crit_edge133

._crit_edge133:                                   ; preds = %._crit_edge129, %172
  %180 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #5
  %181 = sub i64 %180, %177
  %182 = udiv i64 %181, 3
  %183 = uitofp nneg i64 %182 to float
  %184 = fmul float %183, %1
  %185 = fptoui float %184 to i64
  %186 = mul i64 %185, 3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #5
  store float 0.000000e+00, ptr %21, align 4, !tbaa !18
  %187 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %177) #5
  %188 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %177) #5
  %189 = mul nuw i64 %182, 3
  %190 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNKSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #5
  %191 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %192 = invoke i64 @meshopt_simplify(ptr noundef nonnull %187, ptr noundef nonnull %188, i64 noundef %189, ptr noundef nonnull %190, i64 noundef %191, i64 noundef 32, i64 noundef %186, float noundef %140, i32 noundef 7, ptr noundef nonnull %21)
          to label %220 unwind label %230

.lr.ph132:                                        ; preds = %172, %._crit_edge129
  %.097130 = phi i32 [ %199, %._crit_edge129 ], [ %178, %172 ]
  %193 = zext nneg i32 %.097130 to i64
  %194 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI15meshopt_MeshletSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %193) #5
  %195 = getelementptr inbounds i8, ptr %194, i64 12
  %196 = load i32, ptr %195, align 4, !tbaa !5
  %.not142 = icmp eq i32 %196, 0
  br i1 %.not142, label %._crit_edge129, label %.lr.ph128

.lr.ph128:                                        ; preds = %.lr.ph132
  %197 = getelementptr inbounds i8, ptr %194, i64 4
  br label %201

._crit_edge129:                                   ; preds = %212, %.lr.ph132
  %198 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %193) #5
  %199 = load i32, ptr %198, align 4, !tbaa !10
  %200 = icmp sgt i32 %199, -1
  br i1 %200, label %.lr.ph132, label %._crit_edge133, !llvm.loop !20

201:                                              ; preds = %.lr.ph128, %212
  %.094126 = phi i64 [ 0, %.lr.ph128 ], [ %213, %212 ]
  %202 = load i32, ptr %194, align 4, !tbaa !13
  %203 = load i32, ptr %197, align 4, !tbaa !14
  %204 = zext i32 %203 to i64
  %205 = add nuw nsw i64 %.094126, %204
  %206 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %205) #5
  %207 = load i8, ptr %206, align 1, !tbaa !15
  %208 = zext i8 %207 to i32
  %209 = add i32 %202, %208
  %210 = zext i32 %209 to i64
  %211 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %210) #5
  invoke void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 4 dereferenceable(4) %211)
          to label %212 unwind label %218

212:                                              ; preds = %201
  %213 = add nuw nsw i64 %.094126, 1
  %214 = load i32, ptr %195, align 4, !tbaa !5
  %215 = mul i32 %214, 3
  %216 = zext i32 %215 to i64
  %217 = icmp ult i64 %213, %216
  br i1 %217, label %201, label %._crit_edge129, !llvm.loop !21

218:                                              ; preds = %201
  %219 = landingpad { ptr, i32 }
          cleanup
  br label %232

220:                                              ; preds = %._crit_edge133
  %221 = load float, ptr %21, align 4
  %222 = add i64 %192, %177
  invoke void @_ZNSt6vectorIjSaIjEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %222)
          to label %223 unwind label %230

223:                                              ; preds = %220
  %224 = fcmp ogt float %221, %.095135
  %225 = select i1 %224, float %221, float %.095135
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #5
  br label %226

226:                                              ; preds = %165, %223
  %.196 = phi float [ %.095135, %165 ], [ %225, %223 ]
  %227 = add nuw i64 %.098134, 1
  %228 = call noundef i64 @_ZNKSt6vectorI15meshopt_MeshletSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  %229 = icmp ult i64 %227, %228
  br i1 %229, label %165, label %._crit_edge137, !llvm.loop !22

230:                                              ; preds = %220, %._crit_edge133
  %231 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #5
  br label %232

232:                                              ; preds = %218, %230, %163
  %.pn.pn = phi { ptr, i32 } [ %164, %163 ], [ %219, %218 ], [ %231, %230 ]
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #5
  br label %233

233:                                              ; preds = %232, %161
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %232 ], [ %162, %161 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  br label %234

234:                                              ; preds = %233, %118
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %233 ], [ %119, %118 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  br label %235

235:                                              ; preds = %234, %116
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %234 ], [ %117, %116 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #5
  br label %236

236:                                              ; preds = %235, %114
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %235 ], [ %115, %114 ]
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  br label %237

237:                                              ; preds = %236, %112
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn, %236 ], [ %113, %112 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #5
  br label %238

238:                                              ; preds = %237, %110, %89
  %.pn106 = phi { ptr, i32 } [ %90, %89 ], [ %.pn.pn.pn.pn.pn.pn.pn, %237 ], [ %111, %110 ]
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  br label %239

239:                                              ; preds = %238, %62
  %.pn106.pn = phi { ptr, i32 } [ %.pn106, %238 ], [ %63, %62 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #5
  br label %240

240:                                              ; preds = %239, %60
  %.pn106.pn.pn = phi { ptr, i32 } [ %.pn106.pn, %239 ], [ %61, %60 ]
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  br label %241

241:                                              ; preds = %240, %58
  %.pn106.pn.pn.pn = phi { ptr, i32 } [ %.pn106.pn.pn, %240 ], [ %59, %58 ]
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  br label %242

242:                                              ; preds = %241, %56
  %.pn106.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn106.pn.pn.pn, %241 ], [ %57, %56 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  br label %243

243:                                              ; preds = %242, %54
  %.pn106.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn106.pn.pn.pn.pn, %242 ], [ %55, %54 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  call void @_ZNSt6vectorI15meshopt_MeshletSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  br label %244

244:                                              ; preds = %243, %52
  %.pn106.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn106.pn.pn.pn.pn.pn, %243 ], [ %53, %52 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn106.pn.pn.pn.pn.pn.pn
}

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

; 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 #3 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 #3 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 #4

; 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 uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 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 @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

declare void @meshopt_generateShadowIndexBuffer(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #4

declare i64 @meshopt_partitionClusters(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #4

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

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

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

declare float @meshopt_simplifyScale(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(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

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

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

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


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