; LLVM IR from ThePhysicsGuys/Physics3D :: graphics/mesh/indexedMesh.ll (ZN3P3D8Graphics11IndexedMeshC2EPKfS3_S3_PKjmm)

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

%"struct.P3D::Graphics::BufferDataType::Info" = type <{ %"class.std::__cxx11::basic_string", i32, i32, i32, i8, [3 x i8] }>
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.19 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.19 = type { i64, [8 x i8] }
%"struct.P3D::Graphics::BufferLayout" = type <{ %"class.std::vector", i32, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<P3D::Graphics::BufferElement, std::allocator<P3D::Graphics::BufferElement>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::Graphics::BufferElement, std::allocator<P3D::Graphics::BufferElement>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::Graphics::BufferElement, std::allocator<P3D::Graphics::BufferElement>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::Graphics::BufferElement, std::allocator<P3D::Graphics::BufferElement>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::initializer_list" = type { ptr, i64 }
%"struct.P3D::Graphics::BufferElement" = type <{ %"class.std::__cxx11::basic_string", %"struct.P3D::Graphics::BufferDataType::Info", i8, i8, [6 x i8] }>
%"class.std::allocator.16" = type { i8 }
%"class.std::allocator" = type { i8 }
%"class.std::unique_ptr.2" = type { %"struct.std::__uniq_ptr_data.3" }
%"struct.std::__uniq_ptr_data.3" = type { %"class.std::__uniq_ptr_impl.4" }
%"class.std::__uniq_ptr_impl.4" = type { %"class.std::tuple.5" }
%"class.std::tuple.5" = type { %"struct.std::_Tuple_impl.6" }
%"struct.std::_Tuple_impl.6" = type { %"struct.std::_Head_base.9" }
%"struct.std::_Head_base.9" = type { ptr }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }
%"class.P3D::Graphics::IndexedMesh" = type { %"class.P3D::Graphics::AbstractMesh.base", %"class.std::unique_ptr", %"class.std::unique_ptr.2", %"class.std::unique_ptr.2", %"class.std::unique_ptr.2", %"class.std::unique_ptr.2", %"class.std::unique_ptr.2", %"class.std::unique_ptr.2", i64, i64 }
%"class.P3D::Graphics::AbstractMesh.base" = type <{ ptr, ptr, i32 }>
%"class.P3D::Graphics::AbstractMesh" = type <{ ptr, ptr, i32, [4 x i8] }>

@_ZTVN3P3D8Graphics11IndexedMeshE = external dso_local unnamed_addr constant { [6 x ptr] }, align 8
@_ZN3P3D8Graphics14BufferDataType6FLOAT3E = external global %"struct.P3D::Graphics::BufferDataType::Info", align 8
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@_ZN3P3D8Graphics14BufferDataType6FLOAT2E = external global %"struct.P3D::Graphics::BufferDataType::Info", align 8
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [8 x i8], align 1

declare void @_ZN3P3D8Graphics12AbstractMeshC2Ev(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #0

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D8Graphics13BufferElementC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_14BufferDataType4InfoEbb(ptr noundef nonnull align 8 dereferenceable(82), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(45), i1 noundef zeroext, i1 noundef zeroext) unnamed_addr #3 align 2

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

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

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

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

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

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

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

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

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

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

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

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

declare void @_ZN3P3D8Graphics11VertexArray9addBufferEPNS0_12VertexBufferE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3P3D8Graphics11IndexedMeshC2EPKfS3_S3_PKjmm(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i64 noundef %5, i64 noundef %6) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca %"struct.P3D::Graphics::BufferLayout", align 8
  %16 = alloca %"class.std::vector", align 8
  %17 = alloca %"class.std::initializer_list", align 8
  %18 = alloca [1 x %"struct.P3D::Graphics::BufferElement"], align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.std::allocator.16", align 1
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca i1, align 1
  %25 = alloca %"class.std::allocator", align 1
  %26 = alloca %"class.std::unique_ptr.2", align 8
  %27 = alloca i64, align 8
  %28 = alloca %"struct.P3D::Graphics::BufferLayout", align 8
  %29 = alloca %"class.std::vector", align 8
  %30 = alloca %"class.std::initializer_list", align 8
  %31 = alloca [1 x %"struct.P3D::Graphics::BufferElement"], align 8
  %32 = alloca ptr, align 8
  %33 = alloca %"class.std::__cxx11::basic_string", align 8
  %34 = alloca %"class.std::allocator.16", align 1
  %35 = alloca i1, align 1
  %36 = alloca %"class.std::allocator", align 1
  %37 = alloca %"class.std::unique_ptr.2", align 8
  %38 = alloca i64, align 8
  %39 = alloca %"struct.P3D::Graphics::BufferLayout", align 8
  %40 = alloca %"class.std::vector", align 8
  %41 = alloca %"class.std::initializer_list", align 8
  %42 = alloca [1 x %"struct.P3D::Graphics::BufferElement"], align 8
  %43 = alloca ptr, align 8
  %44 = alloca %"class.std::__cxx11::basic_string", align 8
  %45 = alloca %"class.std::allocator.16", align 1
  %46 = alloca i1, align 1
  %47 = alloca %"class.std::allocator", align 1
  %48 = alloca %"class.std::unique_ptr.2", align 8
  %49 = alloca i64, align 8
  %50 = alloca %"struct.P3D::Graphics::BufferLayout", align 8
  %51 = alloca %"class.std::vector", align 8
  %52 = alloca %"class.std::initializer_list", align 8
  %53 = alloca [1 x %"struct.P3D::Graphics::BufferElement"], align 8
  %54 = alloca ptr, align 8
  %55 = alloca %"class.std::__cxx11::basic_string", align 8
  %56 = alloca %"class.std::allocator.16", align 1
  %57 = alloca i1, align 1
  %58 = alloca %"class.std::allocator", align 1
  %59 = alloca %"class.std::unique_ptr.2", align 8
  %60 = alloca ptr, align 8
  %61 = alloca i32, align 4
  %62 = alloca %"struct.P3D::Graphics::BufferLayout", align 8
  %63 = alloca %"class.std::vector", align 8
  %64 = alloca %"class.std::initializer_list", align 8
  %65 = alloca [1 x %"struct.P3D::Graphics::BufferElement"], align 8
  %66 = alloca ptr, align 8
  %67 = alloca %"class.std::__cxx11::basic_string", align 8
  %68 = alloca %"class.std::allocator.16", align 1
  %69 = alloca i1, align 1
  %70 = alloca %"class.std::allocator", align 1
  %71 = alloca %"class.std::unique_ptr.2", align 8
  %72 = alloca ptr, align 8
  %73 = alloca i32, align 4
  %74 = alloca %"class.std::unique_ptr", align 8
  %75 = alloca i64, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store i64 %5, ptr %13, align 8, !tbaa !9
  store i64 %6, ptr %14, align 8, !tbaa !9
  %76 = load ptr, ptr %8, align 8
  call void @_ZN3P3D8Graphics12AbstractMeshC2Ev(ptr noundef nonnull align 8 dereferenceable(20) %76)
  store ptr getelementptr inbounds inrange(-16, 32) ({ [6 x ptr] }, ptr @_ZTVN3P3D8Graphics11IndexedMeshE, i32 0, i32 0, i32 2), ptr %76, align 8, !tbaa !11
  %77 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 1
  call void @_ZNSt10unique_ptrIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EEC2IS4_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %77, ptr null) #6
  %78 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 2
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEC2IS4_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %78, ptr null) #6
  %79 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 3
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEC2IS4_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %79, ptr null) #6
  %80 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 4
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEC2IS4_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %80, ptr null) #6
  %81 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 5
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEC2IS4_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %81, ptr null) #6
  %82 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 6
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEC2IS4_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %82, ptr null) #6
  %83 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 7
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEC2IS4_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %83, ptr null) #6
  %84 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 8
  %85 = load i64, ptr %13, align 8, !tbaa !9
  store i64 %85, ptr %84, align 8, !tbaa !13
  %86 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 9
  %87 = load i64, ptr %14, align 8, !tbaa !9
  store i64 %87, ptr %86, align 8, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 88, ptr %18) #6
  store i1 true, ptr %24, align 1
  store ptr %18, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef @.str.5, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %88 unwind label %227

88:                                               ; preds = %7
  invoke void @_ZN3P3D8Graphics13BufferElementC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_14BufferDataType4InfoEbb(ptr noundef nonnull align 8 dereferenceable(82) %18, ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(45) @_ZN3P3D8Graphics14BufferDataType6FLOAT3E, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %89 unwind label %231

89:                                               ; preds = %88
  store i1 false, ptr %24, align 1
  %90 = getelementptr inbounds %"class.std::initializer_list", ptr %17, i32 0, i32 0
  store ptr %18, ptr %90, align 8, !tbaa !30
  %91 = getelementptr inbounds %"class.std::initializer_list", ptr %17, i32 0, i32 1
  store i64 1, ptr %91, align 8, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #6
  call void @_ZNSaIN3P3D8Graphics13BufferElementEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #6
  %92 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 0
  %93 = load ptr, ptr %92, align 8
  %94 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 1
  %95 = load i64, ptr %94, align 8
  invoke void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EEC2ESt16initializer_listIS2_ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr %93, i64 %95, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %96 unwind label %235

96:                                               ; preds = %89
  invoke void @_ZN3P3D8Graphics12BufferLayoutC2ERKSt6vectorINS0_13BufferElementESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(28) %15, ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %97 unwind label %239

97:                                               ; preds = %96
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #6
  %98 = getelementptr inbounds [1 x %"struct.P3D::Graphics::BufferElement"], ptr %18, i32 0, i32 0
  %99 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %98, i64 1
  br label %100

100:                                              ; preds = %100, %97
  %101 = phi ptr [ %99, %97 ], [ %102, %100 ]
  %102 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %101, i64 -1
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %102) #6
  %103 = icmp eq ptr %102, %98
  br i1 %103, label %104, label %100

104:                                              ; preds = %100
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %105 = load i64, ptr %13, align 8, !tbaa !9
  %106 = mul i64 3, %105
  %107 = mul i64 %106, 4
  store i64 %107, ptr %27, align 8, !tbaa !9
  invoke void @_ZSt11make_uniqueIN3P3D8Graphics12VertexBufferEJRNS1_12BufferLayoutERPKfmEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr.2") align 8 %26, ptr noundef nonnull align 8 dereferenceable(28) %15, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %27)
          to label %108 unwind label %263

108:                                              ; preds = %104
  %109 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 2
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(8) %109, ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %29) #6
  call void @llvm.lifetime.start.p0(i64 88, ptr %31) #6
  store i1 true, ptr %35, align 1
  store ptr %31, ptr %32, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %33) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %34) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %34)
          to label %111 unwind label %267

111:                                              ; preds = %108
  invoke void @_ZN3P3D8Graphics13BufferElementC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_14BufferDataType4InfoEbb(ptr noundef nonnull align 8 dereferenceable(82) %31, ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef nonnull align 8 dereferenceable(45) @_ZN3P3D8Graphics14BufferDataType6FLOAT3E, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %112 unwind label %271

112:                                              ; preds = %111
  store i1 false, ptr %35, align 1
  %113 = getelementptr inbounds %"class.std::initializer_list", ptr %30, i32 0, i32 0
  store ptr %31, ptr %113, align 8, !tbaa !30
  %114 = getelementptr inbounds %"class.std::initializer_list", ptr %30, i32 0, i32 1
  store i64 1, ptr %114, align 8, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 1, ptr %36) #6
  call void @_ZNSaIN3P3D8Graphics13BufferElementEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #6
  %115 = getelementptr inbounds { ptr, i64 }, ptr %30, i32 0, i32 0
  %116 = load ptr, ptr %115, align 8
  %117 = getelementptr inbounds { ptr, i64 }, ptr %30, i32 0, i32 1
  %118 = load i64, ptr %117, align 8
  invoke void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EEC2ESt16initializer_listIS2_ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr %116, i64 %118, ptr noundef nonnull align 1 dereferenceable(1) %36)
          to label %119 unwind label %275

119:                                              ; preds = %112
  invoke void @_ZN3P3D8Graphics12BufferLayoutC2ERKSt6vectorINS0_13BufferElementESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(28) %28, ptr noundef nonnull align 8 dereferenceable(24) %29)
          to label %120 unwind label %279

120:                                              ; preds = %119
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #6
  %121 = getelementptr inbounds [1 x %"struct.P3D::Graphics::BufferElement"], ptr %31, i32 0, i32 0
  %122 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %121, i64 1
  br label %123

123:                                              ; preds = %123, %120
  %124 = phi ptr [ %122, %120 ], [ %125, %123 ]
  %125 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %124, i64 -1
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %125) #6
  %126 = icmp eq ptr %125, %121
  br i1 %126, label %127, label %123

127:                                              ; preds = %123
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #6
  %128 = load i64, ptr %13, align 8, !tbaa !9
  %129 = mul i64 3, %128
  %130 = mul i64 %129, 4
  store i64 %130, ptr %38, align 8, !tbaa !9
  invoke void @_ZSt11make_uniqueIN3P3D8Graphics12VertexBufferEJRNS1_12BufferLayoutERPKfmEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr.2") align 8 %37, ptr noundef nonnull align 8 dereferenceable(28) %28, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %38)
          to label %131 unwind label %303

131:                                              ; preds = %127
  %132 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 3
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(8) %132, ptr noundef nonnull align 8 dereferenceable(8) %37) #6
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %37) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %39) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %40) #6
  call void @llvm.lifetime.start.p0(i64 88, ptr %42) #6
  store i1 true, ptr %46, align 1
  store ptr %42, ptr %43, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %44) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %45) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %45) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %44, ptr noundef @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %45)
          to label %134 unwind label %307

134:                                              ; preds = %131
  invoke void @_ZN3P3D8Graphics13BufferElementC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_14BufferDataType4InfoEbb(ptr noundef nonnull align 8 dereferenceable(82) %42, ptr noundef nonnull align 8 dereferenceable(32) %44, ptr noundef nonnull align 8 dereferenceable(45) @_ZN3P3D8Graphics14BufferDataType6FLOAT2E, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %135 unwind label %311

135:                                              ; preds = %134
  store i1 false, ptr %46, align 1
  %136 = getelementptr inbounds %"class.std::initializer_list", ptr %41, i32 0, i32 0
  store ptr %42, ptr %136, align 8, !tbaa !30
  %137 = getelementptr inbounds %"class.std::initializer_list", ptr %41, i32 0, i32 1
  store i64 1, ptr %137, align 8, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 1, ptr %47) #6
  call void @_ZNSaIN3P3D8Graphics13BufferElementEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %47) #6
  %138 = getelementptr inbounds { ptr, i64 }, ptr %41, i32 0, i32 0
  %139 = load ptr, ptr %138, align 8
  %140 = getelementptr inbounds { ptr, i64 }, ptr %41, i32 0, i32 1
  %141 = load i64, ptr %140, align 8
  invoke void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EEC2ESt16initializer_listIS2_ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %40, ptr %139, i64 %141, ptr noundef nonnull align 1 dereferenceable(1) %47)
          to label %142 unwind label %315

142:                                              ; preds = %135
  invoke void @_ZN3P3D8Graphics12BufferLayoutC2ERKSt6vectorINS0_13BufferElementESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(28) %39, ptr noundef nonnull align 8 dereferenceable(24) %40)
          to label %143 unwind label %319

143:                                              ; preds = %142
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %40) #6
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %47) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %47) #6
  %144 = getelementptr inbounds [1 x %"struct.P3D::Graphics::BufferElement"], ptr %42, i32 0, i32 0
  %145 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %144, i64 1
  br label %146

146:                                              ; preds = %146, %143
  %147 = phi ptr [ %145, %143 ], [ %148, %146 ]
  %148 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %147, i64 -1
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %148) #6
  %149 = icmp eq ptr %148, %144
  br i1 %149, label %150, label %146

150:                                              ; preds = %146
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %44) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %45) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %45) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %44) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %40) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #6
  %151 = load i64, ptr %13, align 8, !tbaa !9
  %152 = mul i64 2, %151
  %153 = mul i64 %152, 4
  store i64 %153, ptr %49, align 8, !tbaa !9
  invoke void @_ZSt11make_uniqueIN3P3D8Graphics12VertexBufferEJRNS1_12BufferLayoutERPKfmEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr.2") align 8 %48, ptr noundef nonnull align 8 dereferenceable(28) %39, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %49)
          to label %154 unwind label %343

154:                                              ; preds = %150
  %155 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 4
  %156 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(8) %155, ptr noundef nonnull align 8 dereferenceable(8) %48) #6
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %48) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %50) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %51) #6
  call void @llvm.lifetime.start.p0(i64 88, ptr %53) #6
  store i1 true, ptr %57, align 1
  store ptr %53, ptr %54, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %55) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %56) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %56) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %55, ptr noundef @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %56)
          to label %157 unwind label %347

157:                                              ; preds = %154
  invoke void @_ZN3P3D8Graphics13BufferElementC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_14BufferDataType4InfoEbb(ptr noundef nonnull align 8 dereferenceable(82) %53, ptr noundef nonnull align 8 dereferenceable(32) %55, ptr noundef nonnull align 8 dereferenceable(45) @_ZN3P3D8Graphics14BufferDataType6FLOAT3E, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %158 unwind label %351

158:                                              ; preds = %157
  store i1 false, ptr %57, align 1
  %159 = getelementptr inbounds %"class.std::initializer_list", ptr %52, i32 0, i32 0
  store ptr %53, ptr %159, align 8, !tbaa !30
  %160 = getelementptr inbounds %"class.std::initializer_list", ptr %52, i32 0, i32 1
  store i64 1, ptr %160, align 8, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 1, ptr %58) #6
  call void @_ZNSaIN3P3D8Graphics13BufferElementEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %58) #6
  %161 = getelementptr inbounds { ptr, i64 }, ptr %52, i32 0, i32 0
  %162 = load ptr, ptr %161, align 8
  %163 = getelementptr inbounds { ptr, i64 }, ptr %52, i32 0, i32 1
  %164 = load i64, ptr %163, align 8
  invoke void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EEC2ESt16initializer_listIS2_ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %51, ptr %162, i64 %164, ptr noundef nonnull align 1 dereferenceable(1) %58)
          to label %165 unwind label %355

165:                                              ; preds = %158
  invoke void @_ZN3P3D8Graphics12BufferLayoutC2ERKSt6vectorINS0_13BufferElementESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(28) %50, ptr noundef nonnull align 8 dereferenceable(24) %51)
          to label %166 unwind label %359

166:                                              ; preds = %165
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %51) #6
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %58) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %58) #6
  %167 = getelementptr inbounds [1 x %"struct.P3D::Graphics::BufferElement"], ptr %53, i32 0, i32 0
  %168 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %167, i64 1
  br label %169

169:                                              ; preds = %169, %166
  %170 = phi ptr [ %168, %166 ], [ %171, %169 ]
  %171 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %170, i64 -1
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %171) #6
  %172 = icmp eq ptr %171, %167
  br i1 %172, label %173, label %169

173:                                              ; preds = %169
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %55) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %56) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %56) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %55) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr %53) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %51) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #6
  store ptr null, ptr %60, align 8, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 4, ptr %61) #6
  store i32 0, ptr %61, align 4, !tbaa !35
  invoke void @_ZSt11make_uniqueIN3P3D8Graphics12VertexBufferEJRNS1_12BufferLayoutEDniEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr.2") align 8 %59, ptr noundef nonnull align 8 dereferenceable(28) %50, ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef nonnull align 4 dereferenceable(4) %61)
          to label %174 unwind label %383

174:                                              ; preds = %173
  %175 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 5
  %176 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(8) %175, ptr noundef nonnull align 8 dereferenceable(8) %59) #6
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %59) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %62) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %63) #6
  call void @llvm.lifetime.start.p0(i64 88, ptr %65) #6
  store i1 true, ptr %69, align 1
  store ptr %65, ptr %66, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %67) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %68) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %68) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %67, ptr noundef @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %68)
          to label %177 unwind label %387

177:                                              ; preds = %174
  invoke void @_ZN3P3D8Graphics13BufferElementC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_14BufferDataType4InfoEbb(ptr noundef nonnull align 8 dereferenceable(82) %65, ptr noundef nonnull align 8 dereferenceable(32) %67, ptr noundef nonnull align 8 dereferenceable(45) @_ZN3P3D8Graphics14BufferDataType6FLOAT3E, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %178 unwind label %391

178:                                              ; preds = %177
  store i1 false, ptr %69, align 1
  %179 = getelementptr inbounds %"class.std::initializer_list", ptr %64, i32 0, i32 0
  store ptr %65, ptr %179, align 8, !tbaa !30
  %180 = getelementptr inbounds %"class.std::initializer_list", ptr %64, i32 0, i32 1
  store i64 1, ptr %180, align 8, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 1, ptr %70) #6
  call void @_ZNSaIN3P3D8Graphics13BufferElementEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %70) #6
  %181 = getelementptr inbounds { ptr, i64 }, ptr %64, i32 0, i32 0
  %182 = load ptr, ptr %181, align 8
  %183 = getelementptr inbounds { ptr, i64 }, ptr %64, i32 0, i32 1
  %184 = load i64, ptr %183, align 8
  invoke void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EEC2ESt16initializer_listIS2_ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %63, ptr %182, i64 %184, ptr noundef nonnull align 1 dereferenceable(1) %70)
          to label %185 unwind label %395

185:                                              ; preds = %178
  invoke void @_ZN3P3D8Graphics12BufferLayoutC2ERKSt6vectorINS0_13BufferElementESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(28) %62, ptr noundef nonnull align 8 dereferenceable(24) %63)
          to label %186 unwind label %399

186:                                              ; preds = %185
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %63) #6
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %70) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %70) #6
  %187 = getelementptr inbounds [1 x %"struct.P3D::Graphics::BufferElement"], ptr %65, i32 0, i32 0
  %188 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %187, i64 1
  br label %189

189:                                              ; preds = %189, %186
  %190 = phi ptr [ %188, %186 ], [ %191, %189 ]
  %191 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %190, i64 -1
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %191) #6
  %192 = icmp eq ptr %191, %187
  br i1 %192, label %193, label %189

193:                                              ; preds = %189
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %67) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %68) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %68) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %67) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr %65) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %63) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %71) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %72) #6
  store ptr null, ptr %72, align 8, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 4, ptr %73) #6
  store i32 0, ptr %73, align 4, !tbaa !35
  invoke void @_ZSt11make_uniqueIN3P3D8Graphics12VertexBufferEJRNS1_12BufferLayoutEDniEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr.2") align 8 %71, ptr noundef nonnull align 8 dereferenceable(28) %62, ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef nonnull align 4 dereferenceable(4) %73)
          to label %194 unwind label %423

194:                                              ; preds = %193
  %195 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 6
  %196 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(8) %195, ptr noundef nonnull align 8 dereferenceable(8) %71) #6
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %71) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %73) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %74) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %75) #6
  %197 = load i64, ptr %14, align 8, !tbaa !9
  %198 = mul i64 3, %197
  store i64 %198, ptr %75, align 8, !tbaa !9
  invoke void @_ZSt11make_uniqueIN3P3D8Graphics11IndexBufferEJRPKjmEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr") align 8 %74, ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %75)
          to label %199 unwind label %427

199:                                              ; preds = %194
  %200 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 1
  %201 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(8) %200, ptr noundef nonnull align 8 dereferenceable(8) %74) #6
  call void @_ZNSt10unique_ptrIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %74) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %75) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %74) #6
  %202 = getelementptr inbounds %"class.P3D::Graphics::AbstractMesh", ptr %76, i32 0, i32 1
  %203 = load ptr, ptr %202, align 8, !tbaa !36
  %204 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 2
  %205 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %204) #6
  invoke void @_ZN3P3D8Graphics11VertexArray9addBufferEPNS0_12VertexBufferE(ptr noundef nonnull align 8 dereferenceable(16) %203, ptr noundef %205)
          to label %206 unwind label %431

206:                                              ; preds = %199
  %207 = getelementptr inbounds %"class.P3D::Graphics::AbstractMesh", ptr %76, i32 0, i32 1
  %208 = load ptr, ptr %207, align 8, !tbaa !36
  %209 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 3
  %210 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %209) #6
  invoke void @_ZN3P3D8Graphics11VertexArray9addBufferEPNS0_12VertexBufferE(ptr noundef nonnull align 8 dereferenceable(16) %208, ptr noundef %210)
          to label %211 unwind label %431

211:                                              ; preds = %206
  %212 = getelementptr inbounds %"class.P3D::Graphics::AbstractMesh", ptr %76, i32 0, i32 1
  %213 = load ptr, ptr %212, align 8, !tbaa !36
  %214 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 4
  %215 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %214) #6
  invoke void @_ZN3P3D8Graphics11VertexArray9addBufferEPNS0_12VertexBufferE(ptr noundef nonnull align 8 dereferenceable(16) %213, ptr noundef %215)
          to label %216 unwind label %431

216:                                              ; preds = %211
  %217 = getelementptr inbounds %"class.P3D::Graphics::AbstractMesh", ptr %76, i32 0, i32 1
  %218 = load ptr, ptr %217, align 8, !tbaa !36
  %219 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 5
  %220 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %219) #6
  invoke void @_ZN3P3D8Graphics11VertexArray9addBufferEPNS0_12VertexBufferE(ptr noundef nonnull align 8 dereferenceable(16) %218, ptr noundef %220)
          to label %221 unwind label %431

221:                                              ; preds = %216
  %222 = getelementptr inbounds %"class.P3D::Graphics::AbstractMesh", ptr %76, i32 0, i32 1
  %223 = load ptr, ptr %222, align 8, !tbaa !36
  %224 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 6
  %225 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %224) #6
  invoke void @_ZN3P3D8Graphics11VertexArray9addBufferEPNS0_12VertexBufferE(ptr noundef nonnull align 8 dereferenceable(16) %223, ptr noundef %225)
          to label %226 unwind label %431

226:                                              ; preds = %221
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %62) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %62) #6
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %50) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %50) #6
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %39) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %39) #6
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %28) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #6
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  ret void

227:                                              ; preds = %7
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %22, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %23, align 4
  br label %252

231:                                              ; preds = %88
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %22, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %23, align 4
  br label %251

235:                                              ; preds = %89
  %236 = landingpad { ptr, i32 }
          cleanup
  %237 = extractvalue { ptr, i32 } %236, 0
  store ptr %237, ptr %22, align 8
  %238 = extractvalue { ptr, i32 } %236, 1
  store i32 %238, ptr %23, align 4
  br label %243

239:                                              ; preds = %96
  %240 = landingpad { ptr, i32 }
          cleanup
  %241 = extractvalue { ptr, i32 } %240, 0
  store ptr %241, ptr %22, align 8
  %242 = extractvalue { ptr, i32 } %240, 1
  store i32 %242, ptr %23, align 4
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  br label %243

243:                                              ; preds = %239, %235
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #6
  %244 = getelementptr inbounds [1 x %"struct.P3D::Graphics::BufferElement"], ptr %18, i32 0, i32 0
  %245 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %244, i64 1
  br label %246

246:                                              ; preds = %246, %243
  %247 = phi ptr [ %245, %243 ], [ %248, %246 ]
  %248 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %247, i64 -1
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %248) #6
  %249 = icmp eq ptr %248, %244
  br i1 %249, label %250, label %246

250:                                              ; preds = %246
  br label %251

251:                                              ; preds = %250, %231
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  br label %252

252:                                              ; preds = %251, %227
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #6
  %253 = load i1, ptr %24, align 1
  br i1 %253, label %254, label %262

254:                                              ; preds = %252
  %255 = load ptr, ptr %19, align 8
  %256 = icmp eq ptr %18, %255
  br i1 %256, label %261, label %257

257:                                              ; preds = %257, %254
  %258 = phi ptr [ %255, %254 ], [ %259, %257 ]
  %259 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %258, i64 -1
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %259) #6
  %260 = icmp eq ptr %259, %18
  br i1 %260, label %261, label %257

261:                                              ; preds = %257, %254
  br label %262

262:                                              ; preds = %261, %252
  call void @llvm.lifetime.end.p0(i64 88, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #6
  br label %444

263:                                              ; preds = %104
  %264 = landingpad { ptr, i32 }
          cleanup
  %265 = extractvalue { ptr, i32 } %264, 0
  store ptr %265, ptr %22, align 8
  %266 = extractvalue { ptr, i32 } %264, 1
  store i32 %266, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  br label %443

267:                                              ; preds = %108
  %268 = landingpad { ptr, i32 }
          cleanup
  %269 = extractvalue { ptr, i32 } %268, 0
  store ptr %269, ptr %22, align 8
  %270 = extractvalue { ptr, i32 } %268, 1
  store i32 %270, ptr %23, align 4
  br label %292

271:                                              ; preds = %111
  %272 = landingpad { ptr, i32 }
          cleanup
  %273 = extractvalue { ptr, i32 } %272, 0
  store ptr %273, ptr %22, align 8
  %274 = extractvalue { ptr, i32 } %272, 1
  store i32 %274, ptr %23, align 4
  br label %291

275:                                              ; preds = %112
  %276 = landingpad { ptr, i32 }
          cleanup
  %277 = extractvalue { ptr, i32 } %276, 0
  store ptr %277, ptr %22, align 8
  %278 = extractvalue { ptr, i32 } %276, 1
  store i32 %278, ptr %23, align 4
  br label %283

279:                                              ; preds = %119
  %280 = landingpad { ptr, i32 }
          cleanup
  %281 = extractvalue { ptr, i32 } %280, 0
  store ptr %281, ptr %22, align 8
  %282 = extractvalue { ptr, i32 } %280, 1
  store i32 %282, ptr %23, align 4
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  br label %283

283:                                              ; preds = %279, %275
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #6
  %284 = getelementptr inbounds [1 x %"struct.P3D::Graphics::BufferElement"], ptr %31, i32 0, i32 0
  %285 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %284, i64 1
  br label %286

286:                                              ; preds = %286, %283
  %287 = phi ptr [ %285, %283 ], [ %288, %286 ]
  %288 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %287, i64 -1
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %288) #6
  %289 = icmp eq ptr %288, %284
  br i1 %289, label %290, label %286

290:                                              ; preds = %286
  br label %291

291:                                              ; preds = %290, %271
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #6
  br label %292

292:                                              ; preds = %291, %267
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #6
  %293 = load i1, ptr %35, align 1
  br i1 %293, label %294, label %302

294:                                              ; preds = %292
  %295 = load ptr, ptr %32, align 8
  %296 = icmp eq ptr %31, %295
  br i1 %296, label %301, label %297

297:                                              ; preds = %297, %294
  %298 = phi ptr [ %295, %294 ], [ %299, %297 ]
  %299 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %298, i64 -1
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %299) #6
  %300 = icmp eq ptr %299, %31
  br i1 %300, label %301, label %297

301:                                              ; preds = %297, %294
  br label %302

302:                                              ; preds = %301, %292
  call void @llvm.lifetime.end.p0(i64 88, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #6
  br label %442

303:                                              ; preds = %127
  %304 = landingpad { ptr, i32 }
          cleanup
  %305 = extractvalue { ptr, i32 } %304, 0
  store ptr %305, ptr %22, align 8
  %306 = extractvalue { ptr, i32 } %304, 1
  store i32 %306, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  br label %441

307:                                              ; preds = %131
  %308 = landingpad { ptr, i32 }
          cleanup
  %309 = extractvalue { ptr, i32 } %308, 0
  store ptr %309, ptr %22, align 8
  %310 = extractvalue { ptr, i32 } %308, 1
  store i32 %310, ptr %23, align 4
  br label %332

311:                                              ; preds = %134
  %312 = landingpad { ptr, i32 }
          cleanup
  %313 = extractvalue { ptr, i32 } %312, 0
  store ptr %313, ptr %22, align 8
  %314 = extractvalue { ptr, i32 } %312, 1
  store i32 %314, ptr %23, align 4
  br label %331

315:                                              ; preds = %135
  %316 = landingpad { ptr, i32 }
          cleanup
  %317 = extractvalue { ptr, i32 } %316, 0
  store ptr %317, ptr %22, align 8
  %318 = extractvalue { ptr, i32 } %316, 1
  store i32 %318, ptr %23, align 4
  br label %323

319:                                              ; preds = %142
  %320 = landingpad { ptr, i32 }
          cleanup
  %321 = extractvalue { ptr, i32 } %320, 0
  store ptr %321, ptr %22, align 8
  %322 = extractvalue { ptr, i32 } %320, 1
  store i32 %322, ptr %23, align 4
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %40) #6
  br label %323

323:                                              ; preds = %319, %315
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %47) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %47) #6
  %324 = getelementptr inbounds [1 x %"struct.P3D::Graphics::BufferElement"], ptr %42, i32 0, i32 0
  %325 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %324, i64 1
  br label %326

326:                                              ; preds = %326, %323
  %327 = phi ptr [ %325, %323 ], [ %328, %326 ]
  %328 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %327, i64 -1
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %328) #6
  %329 = icmp eq ptr %328, %324
  br i1 %329, label %330, label %326

330:                                              ; preds = %326
  br label %331

331:                                              ; preds = %330, %311
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %44) #6
  br label %332

332:                                              ; preds = %331, %307
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %45) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %45) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %44) #6
  %333 = load i1, ptr %46, align 1
  br i1 %333, label %334, label %342

334:                                              ; preds = %332
  %335 = load ptr, ptr %43, align 8
  %336 = icmp eq ptr %42, %335
  br i1 %336, label %341, label %337

337:                                              ; preds = %337, %334
  %338 = phi ptr [ %335, %334 ], [ %339, %337 ]
  %339 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %338, i64 -1
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %339) #6
  %340 = icmp eq ptr %339, %42
  br i1 %340, label %341, label %337

341:                                              ; preds = %337, %334
  br label %342

342:                                              ; preds = %341, %332
  call void @llvm.lifetime.end.p0(i64 88, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %40) #6
  br label %440

343:                                              ; preds = %150
  %344 = landingpad { ptr, i32 }
          cleanup
  %345 = extractvalue { ptr, i32 } %344, 0
  store ptr %345, ptr %22, align 8
  %346 = extractvalue { ptr, i32 } %344, 1
  store i32 %346, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #6
  br label %439

347:                                              ; preds = %154
  %348 = landingpad { ptr, i32 }
          cleanup
  %349 = extractvalue { ptr, i32 } %348, 0
  store ptr %349, ptr %22, align 8
  %350 = extractvalue { ptr, i32 } %348, 1
  store i32 %350, ptr %23, align 4
  br label %372

351:                                              ; preds = %157
  %352 = landingpad { ptr, i32 }
          cleanup
  %353 = extractvalue { ptr, i32 } %352, 0
  store ptr %353, ptr %22, align 8
  %354 = extractvalue { ptr, i32 } %352, 1
  store i32 %354, ptr %23, align 4
  br label %371

355:                                              ; preds = %158
  %356 = landingpad { ptr, i32 }
          cleanup
  %357 = extractvalue { ptr, i32 } %356, 0
  store ptr %357, ptr %22, align 8
  %358 = extractvalue { ptr, i32 } %356, 1
  store i32 %358, ptr %23, align 4
  br label %363

359:                                              ; preds = %165
  %360 = landingpad { ptr, i32 }
          cleanup
  %361 = extractvalue { ptr, i32 } %360, 0
  store ptr %361, ptr %22, align 8
  %362 = extractvalue { ptr, i32 } %360, 1
  store i32 %362, ptr %23, align 4
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %51) #6
  br label %363

363:                                              ; preds = %359, %355
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %58) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %58) #6
  %364 = getelementptr inbounds [1 x %"struct.P3D::Graphics::BufferElement"], ptr %53, i32 0, i32 0
  %365 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %364, i64 1
  br label %366

366:                                              ; preds = %366, %363
  %367 = phi ptr [ %365, %363 ], [ %368, %366 ]
  %368 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %367, i64 -1
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %368) #6
  %369 = icmp eq ptr %368, %364
  br i1 %369, label %370, label %366

370:                                              ; preds = %366
  br label %371

371:                                              ; preds = %370, %351
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %55) #6
  br label %372

372:                                              ; preds = %371, %347
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %56) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %56) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %55) #6
  %373 = load i1, ptr %57, align 1
  br i1 %373, label %374, label %382

374:                                              ; preds = %372
  %375 = load ptr, ptr %54, align 8
  %376 = icmp eq ptr %53, %375
  br i1 %376, label %381, label %377

377:                                              ; preds = %377, %374
  %378 = phi ptr [ %375, %374 ], [ %379, %377 ]
  %379 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %378, i64 -1
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %379) #6
  %380 = icmp eq ptr %379, %53
  br i1 %380, label %381, label %377

381:                                              ; preds = %377, %374
  br label %382

382:                                              ; preds = %381, %372
  call void @llvm.lifetime.end.p0(i64 88, ptr %53) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %51) #6
  br label %438

383:                                              ; preds = %173
  %384 = landingpad { ptr, i32 }
          cleanup
  %385 = extractvalue { ptr, i32 } %384, 0
  store ptr %385, ptr %22, align 8
  %386 = extractvalue { ptr, i32 } %384, 1
  store i32 %386, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #6
  br label %437

387:                                              ; preds = %174
  %388 = landingpad { ptr, i32 }
          cleanup
  %389 = extractvalue { ptr, i32 } %388, 0
  store ptr %389, ptr %22, align 8
  %390 = extractvalue { ptr, i32 } %388, 1
  store i32 %390, ptr %23, align 4
  br label %412

391:                                              ; preds = %177
  %392 = landingpad { ptr, i32 }
          cleanup
  %393 = extractvalue { ptr, i32 } %392, 0
  store ptr %393, ptr %22, align 8
  %394 = extractvalue { ptr, i32 } %392, 1
  store i32 %394, ptr %23, align 4
  br label %411

395:                                              ; preds = %178
  %396 = landingpad { ptr, i32 }
          cleanup
  %397 = extractvalue { ptr, i32 } %396, 0
  store ptr %397, ptr %22, align 8
  %398 = extractvalue { ptr, i32 } %396, 1
  store i32 %398, ptr %23, align 4
  br label %403

399:                                              ; preds = %185
  %400 = landingpad { ptr, i32 }
          cleanup
  %401 = extractvalue { ptr, i32 } %400, 0
  store ptr %401, ptr %22, align 8
  %402 = extractvalue { ptr, i32 } %400, 1
  store i32 %402, ptr %23, align 4
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %63) #6
  br label %403

403:                                              ; preds = %399, %395
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %70) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %70) #6
  %404 = getelementptr inbounds [1 x %"struct.P3D::Graphics::BufferElement"], ptr %65, i32 0, i32 0
  %405 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %404, i64 1
  br label %406

406:                                              ; preds = %406, %403
  %407 = phi ptr [ %405, %403 ], [ %408, %406 ]
  %408 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %407, i64 -1
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %408) #6
  %409 = icmp eq ptr %408, %404
  br i1 %409, label %410, label %406

410:                                              ; preds = %406
  br label %411

411:                                              ; preds = %410, %391
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %67) #6
  br label %412

412:                                              ; preds = %411, %387
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %68) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %68) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %67) #6
  %413 = load i1, ptr %69, align 1
  br i1 %413, label %414, label %422

414:                                              ; preds = %412
  %415 = load ptr, ptr %66, align 8
  %416 = icmp eq ptr %65, %415
  br i1 %416, label %421, label %417

417:                                              ; preds = %417, %414
  %418 = phi ptr [ %415, %414 ], [ %419, %417 ]
  %419 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %418, i64 -1
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %419) #6
  %420 = icmp eq ptr %419, %65
  br i1 %420, label %421, label %417

421:                                              ; preds = %417, %414
  br label %422

422:                                              ; preds = %421, %412
  call void @llvm.lifetime.end.p0(i64 88, ptr %65) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %63) #6
  br label %436

423:                                              ; preds = %193
  %424 = landingpad { ptr, i32 }
          cleanup
  %425 = extractvalue { ptr, i32 } %424, 0
  store ptr %425, ptr %22, align 8
  %426 = extractvalue { ptr, i32 } %424, 1
  store i32 %426, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %73) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #6
  br label %435

427:                                              ; preds = %194
  %428 = landingpad { ptr, i32 }
          cleanup
  %429 = extractvalue { ptr, i32 } %428, 0
  store ptr %429, ptr %22, align 8
  %430 = extractvalue { ptr, i32 } %428, 1
  store i32 %430, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %75) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %74) #6
  br label %435

431:                                              ; preds = %221, %216, %211, %206, %199
  %432 = landingpad { ptr, i32 }
          cleanup
  %433 = extractvalue { ptr, i32 } %432, 0
  store ptr %433, ptr %22, align 8
  %434 = extractvalue { ptr, i32 } %432, 1
  store i32 %434, ptr %23, align 4
  br label %435

435:                                              ; preds = %431, %427, %423
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %62) #6
  br label %436

436:                                              ; preds = %435, %422
  call void @llvm.lifetime.end.p0(i64 32, ptr %62) #6
  br label %437

437:                                              ; preds = %436, %383
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %50) #6
  br label %438

438:                                              ; preds = %437, %382
  call void @llvm.lifetime.end.p0(i64 32, ptr %50) #6
  br label %439

439:                                              ; preds = %438, %343
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %39) #6
  br label %440

440:                                              ; preds = %439, %342
  call void @llvm.lifetime.end.p0(i64 32, ptr %39) #6
  br label %441

441:                                              ; preds = %440, %303
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %28) #6
  br label %442

442:                                              ; preds = %441, %302
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #6
  br label %443

443:                                              ; preds = %442, %263
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %15) #6
  br label %444

444:                                              ; preds = %443, %262
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %83) #6
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %82) #6
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %81) #6
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %80) #6
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %79) #6
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %78) #6
  call void @_ZNSt10unique_ptrIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %77) #6
  br label %445

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIN3P3D8Graphics12VertexBufferEJRNS1_12BufferLayoutERPKfmEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.2") align 8, ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIN3P3D8Graphics12VertexBufferEJRNS1_12BufferLayoutEDniEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.2") align 8, ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIN3P3D8Graphics11IndexBufferEJRPKjmEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !10, i64 80}
!14 = !{!"_ZTSN3P3D8Graphics11IndexedMeshE", !15, i64 0, !17, i64 24, !23, i64 32, !23, i64 40, !23, i64 48, !23, i64 56, !23, i64 64, !23, i64 72, !10, i64 80, !10, i64 88}
!15 = !{!"_ZTSN3P3D8Graphics12AbstractMeshE", !6, i64 8, !16, i64 16}
!16 = !{!"int", !7, i64 0}
!17 = !{!"_ZTSSt10unique_ptrIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EE", !18, i64 0}
!18 = !{!"_ZTSSt15__uniq_ptr_dataIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_ELb1ELb1EE", !19, i64 0}
!19 = !{!"_ZTSSt15__uniq_ptr_implIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EE", !20, i64 0}
!20 = !{!"_ZTSSt5tupleIJPN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EEE", !21, i64 0}
!21 = !{!"_ZTSSt11_Tuple_implILm0EJPN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EEE", !22, i64 0}
!22 = !{!"_ZTSSt10_Head_baseILm0EPN3P3D8Graphics11IndexBufferELb0EE", !6, i64 0}
!23 = !{!"_ZTSSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE", !24, i64 0}
!24 = !{!"_ZTSSt15__uniq_ptr_dataIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_ELb1ELb1EE", !25, i64 0}
!25 = !{!"_ZTSSt15__uniq_ptr_implIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE", !26, i64 0}
!26 = !{!"_ZTSSt5tupleIJPN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEE", !27, i64 0}
!27 = !{!"_ZTSSt11_Tuple_implILm0EJPN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEE", !28, i64 0}
!28 = !{!"_ZTSSt10_Head_baseILm0EPN3P3D8Graphics12VertexBufferELb0EE", !6, i64 0}
!29 = !{!14, !10, i64 88}
!30 = !{!31, !6, i64 0}
!31 = !{!"_ZTSSt16initializer_listIN3P3D8Graphics13BufferElementEE", !6, i64 0, !10, i64 8}
!32 = !{!31, !10, i64 8}
!33 = !{!34, !34, i64 0}
!34 = !{!"std::nullptr_t", !7, i64 0}
!35 = !{!16, !16, i64 0}
!36 = !{!15, !6, i64 8}


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

%"struct.P3D::Graphics::BufferDataType::Info" = type <{ %"class.std::__cxx11::basic_string", i32, i32, i32, i8, [3 x i8] }>
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.19 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.19 = type { i64, [8 x i8] }
%"struct.P3D::Graphics::BufferLayout" = type <{ %"class.std::vector", i32, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<P3D::Graphics::BufferElement, std::allocator<P3D::Graphics::BufferElement>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::Graphics::BufferElement, std::allocator<P3D::Graphics::BufferElement>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::Graphics::BufferElement, std::allocator<P3D::Graphics::BufferElement>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::Graphics::BufferElement, std::allocator<P3D::Graphics::BufferElement>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.P3D::Graphics::BufferElement" = type <{ %"class.std::__cxx11::basic_string", %"struct.P3D::Graphics::BufferDataType::Info", i8, i8, [6 x i8] }>
%"class.std::allocator.16" = type { i8 }
%"class.std::allocator" = type { i8 }
%"class.std::unique_ptr.2" = type { %"struct.std::__uniq_ptr_data.3" }
%"struct.std::__uniq_ptr_data.3" = type { %"class.std::__uniq_ptr_impl.4" }
%"class.std::__uniq_ptr_impl.4" = type { %"class.std::tuple.5" }
%"class.std::tuple.5" = type { %"struct.std::_Tuple_impl.6" }
%"struct.std::_Tuple_impl.6" = type { %"struct.std::_Head_base.9" }
%"struct.std::_Head_base.9" = type { ptr }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }

@_ZTVN3P3D8Graphics11IndexedMeshE = external dso_local unnamed_addr constant { [6 x ptr] }, align 8
@_ZN3P3D8Graphics14BufferDataType6FLOAT3E = external global %"struct.P3D::Graphics::BufferDataType::Info", align 8
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@_ZN3P3D8Graphics14BufferDataType6FLOAT2E = external global %"struct.P3D::Graphics::BufferDataType::Info", align 8
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [8 x i8], align 1

declare void @_ZN3P3D8Graphics12AbstractMeshC2Ev(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #0

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D8Graphics13BufferElementC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_14BufferDataType4InfoEbb(ptr noundef nonnull align 8 dereferenceable(82), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(45), i1 noundef zeroext, i1 noundef zeroext) unnamed_addr #3 align 2

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

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

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

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

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

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

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

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

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

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

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

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

declare void @_ZN3P3D8Graphics11VertexArray9addBufferEPNS0_12VertexBufferE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3P3D8Graphics11IndexedMeshC2EPKfS3_S3_PKjmm(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i64 noundef %5, i64 noundef %6) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"struct.P3D::Graphics::BufferLayout", align 8
  %13 = alloca %"class.std::vector", align 8
  %14 = alloca [1 x %"struct.P3D::Graphics::BufferElement"], align 8
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::allocator.16", align 1
  %17 = alloca %"class.std::allocator", align 1
  %18 = alloca %"class.std::unique_ptr.2", align 8
  %19 = alloca i64, align 8
  %20 = alloca %"struct.P3D::Graphics::BufferLayout", align 8
  %21 = alloca %"class.std::vector", align 8
  %22 = alloca [1 x %"struct.P3D::Graphics::BufferElement"], align 8
  %23 = alloca %"class.std::__cxx11::basic_string", align 8
  %24 = alloca %"class.std::allocator.16", align 1
  %25 = alloca %"class.std::allocator", align 1
  %26 = alloca %"class.std::unique_ptr.2", align 8
  %27 = alloca i64, align 8
  %28 = alloca %"struct.P3D::Graphics::BufferLayout", align 8
  %29 = alloca %"class.std::vector", align 8
  %30 = alloca [1 x %"struct.P3D::Graphics::BufferElement"], align 8
  %31 = alloca %"class.std::__cxx11::basic_string", align 8
  %32 = alloca %"class.std::allocator.16", align 1
  %33 = alloca %"class.std::allocator", align 1
  %34 = alloca %"class.std::unique_ptr.2", align 8
  %35 = alloca i64, align 8
  %36 = alloca %"struct.P3D::Graphics::BufferLayout", align 8
  %37 = alloca %"class.std::vector", align 8
  %38 = alloca [1 x %"struct.P3D::Graphics::BufferElement"], align 8
  %39 = alloca %"class.std::__cxx11::basic_string", align 8
  %40 = alloca %"class.std::allocator.16", align 1
  %41 = alloca %"class.std::allocator", align 1
  %42 = alloca %"class.std::unique_ptr.2", align 8
  %43 = alloca ptr, align 8
  %44 = alloca i32, align 4
  %45 = alloca %"struct.P3D::Graphics::BufferLayout", align 8
  %46 = alloca %"class.std::vector", align 8
  %47 = alloca [1 x %"struct.P3D::Graphics::BufferElement"], align 8
  %48 = alloca %"class.std::__cxx11::basic_string", align 8
  %49 = alloca %"class.std::allocator.16", align 1
  %50 = alloca %"class.std::allocator", align 1
  %51 = alloca %"class.std::unique_ptr.2", align 8
  %52 = alloca ptr, align 8
  %53 = alloca i32, align 4
  %54 = alloca %"class.std::unique_ptr", align 8
  %55 = alloca i64, align 8
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  tail call void @_ZN3P3D8Graphics12AbstractMeshC2Ev(ptr noundef nonnull align 8 dereferenceable(20) %0)
  store ptr getelementptr inbounds inrange(-16, 32) (i8, ptr @_ZTVN3P3D8Graphics11IndexedMeshE, i64 16), ptr %0, align 8, !tbaa !9
  %56 = getelementptr inbounds i8, ptr %0, i64 24
  tail call void @_ZNSt10unique_ptrIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EEC2IS4_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %56, ptr null) #6
  %57 = getelementptr inbounds i8, ptr %0, i64 32
  tail call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEC2IS4_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr null) #6
  %58 = getelementptr inbounds i8, ptr %0, i64 40
  tail call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEC2IS4_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %58, ptr null) #6
  %59 = getelementptr inbounds i8, ptr %0, i64 48
  tail call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEC2IS4_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr null) #6
  %60 = getelementptr inbounds i8, ptr %0, i64 56
  tail call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEC2IS4_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr null) #6
  %61 = getelementptr inbounds i8, ptr %0, i64 64
  tail call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEC2IS4_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr null) #6
  %62 = getelementptr inbounds i8, ptr %0, i64 72
  tail call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEC2IS4_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr null) #6
  %63 = getelementptr inbounds i8, ptr %0, i64 80
  store i64 %5, ptr %63, align 8, !tbaa !11
  %64 = getelementptr inbounds i8, ptr %0, i64 88
  store i64 %6, ptr %64, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull @.str.5, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %65 unwind label %116

65:                                               ; preds = %7
  invoke void @_ZN3P3D8Graphics13BufferElementC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_14BufferDataType4InfoEbb(ptr noundef nonnull align 8 dereferenceable(82) %14, ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(45) @_ZN3P3D8Graphics14BufferDataType6FLOAT3E, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %66 unwind label %118

66:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #6
  call void @_ZNSaIN3P3D8Graphics13BufferElementEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  invoke void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EEC2ESt16initializer_listIS2_ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr nonnull %14, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %67 unwind label %120

67:                                               ; preds = %66
  invoke void @_ZN3P3D8Graphics12BufferLayoutC2ERKSt6vectorINS0_13BufferElementESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(28) %12, ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %68 unwind label %122

68:                                               ; preds = %67
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #6
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %14) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #6
  %69 = mul i64 %5, 12
  store i64 %69, ptr %19, align 8, !tbaa !29
  invoke void @_ZSt11make_uniqueIN3P3D8Graphics12VertexBufferEJRNS1_12BufferLayoutERPKfmEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr.2") align 8 %18, ptr noundef nonnull align 8 dereferenceable(28) %12, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %70 unwind label %125

70:                                               ; preds = %68
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %20) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %21) #6
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %22) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %23) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %24) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %72 unwind label %127

72:                                               ; preds = %70
  invoke void @_ZN3P3D8Graphics13BufferElementC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_14BufferDataType4InfoEbb(ptr noundef nonnull align 8 dereferenceable(82) %22, ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull align 8 dereferenceable(45) @_ZN3P3D8Graphics14BufferDataType6FLOAT3E, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %73 unwind label %129

73:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %25) #6
  call void @_ZNSaIN3P3D8Graphics13BufferElementEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #6
  invoke void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EEC2ESt16initializer_listIS2_ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr nonnull %22, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %74 unwind label %131

74:                                               ; preds = %73
  invoke void @_ZN3P3D8Graphics12BufferLayoutC2ERKSt6vectorINS0_13BufferElementESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(28) %20, ptr noundef nonnull align 8 dereferenceable(24) %21)
          to label %75 unwind label %133

75:                                               ; preds = %74
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %25) #6
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %22) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %21) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %27) #6
  store i64 %69, ptr %27, align 8, !tbaa !29
  invoke void @_ZSt11make_uniqueIN3P3D8Graphics12VertexBufferEJRNS1_12BufferLayoutERPKfmEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr.2") align 8 %26, ptr noundef nonnull align 8 dereferenceable(28) %20, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %27)
          to label %76 unwind label %136

76:                                               ; preds = %75
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(8) %58, ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %28) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %29) #6
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %30) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %31) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %32) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef nonnull @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %32)
          to label %78 unwind label %138

78:                                               ; preds = %76
  invoke void @_ZN3P3D8Graphics13BufferElementC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_14BufferDataType4InfoEbb(ptr noundef nonnull align 8 dereferenceable(82) %30, ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef nonnull align 8 dereferenceable(45) @_ZN3P3D8Graphics14BufferDataType6FLOAT2E, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %79 unwind label %140

79:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %33) #6
  call void @_ZNSaIN3P3D8Graphics13BufferElementEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #6
  invoke void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EEC2ESt16initializer_listIS2_ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr nonnull %30, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %33)
          to label %80 unwind label %142

80:                                               ; preds = %79
  invoke void @_ZN3P3D8Graphics12BufferLayoutC2ERKSt6vectorINS0_13BufferElementESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(28) %28, ptr noundef nonnull align 8 dereferenceable(24) %29)
          to label %81 unwind label %144

81:                                               ; preds = %80
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %33) #6
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %30) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %32) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %31) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %30) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %29) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %34) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %35) #6
  %82 = shl i64 %5, 3
  store i64 %82, ptr %35, align 8, !tbaa !29
  invoke void @_ZSt11make_uniqueIN3P3D8Graphics12VertexBufferEJRNS1_12BufferLayoutERPKfmEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr.2") align 8 %34, ptr noundef nonnull align 8 dereferenceable(28) %28, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %35)
          to label %83 unwind label %147

83:                                               ; preds = %81
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef nonnull align 8 dereferenceable(8) %34) #6
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %34) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %35) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %34) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %36) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %37) #6
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %38) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %39) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %40) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %40) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %39, ptr noundef nonnull @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %40)
          to label %85 unwind label %149

85:                                               ; preds = %83
  invoke void @_ZN3P3D8Graphics13BufferElementC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_14BufferDataType4InfoEbb(ptr noundef nonnull align 8 dereferenceable(82) %38, ptr noundef nonnull align 8 dereferenceable(32) %39, ptr noundef nonnull align 8 dereferenceable(45) @_ZN3P3D8Graphics14BufferDataType6FLOAT3E, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %86 unwind label %151

86:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %41) #6
  call void @_ZNSaIN3P3D8Graphics13BufferElementEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %41) #6
  invoke void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EEC2ESt16initializer_listIS2_ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %37, ptr nonnull %38, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %41)
          to label %87 unwind label %153

87:                                               ; preds = %86
  invoke void @_ZN3P3D8Graphics12BufferLayoutC2ERKSt6vectorINS0_13BufferElementESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(28) %36, ptr noundef nonnull align 8 dereferenceable(24) %37)
          to label %88 unwind label %155

88:                                               ; preds = %87
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #6
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %41) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %41) #6
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %38) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %40) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %40) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %39) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %38) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %37) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %42) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %43) #6
  store ptr null, ptr %43, align 8, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %44) #6
  store i32 0, ptr %44, align 4, !tbaa !32
  invoke void @_ZSt11make_uniqueIN3P3D8Graphics12VertexBufferEJRNS1_12BufferLayoutEDniEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr.2") align 8 %42, ptr noundef nonnull align 8 dereferenceable(28) %36, ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull align 4 dereferenceable(4) %44)
          to label %89 unwind label %158

89:                                               ; preds = %88
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef nonnull align 8 dereferenceable(8) %42) #6
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %42) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %44) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %43) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %42) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %45) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %46) #6
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %47) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %48) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %49) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %49) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %48, ptr noundef nonnull @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %49)
          to label %91 unwind label %160

91:                                               ; preds = %89
  invoke void @_ZN3P3D8Graphics13BufferElementC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_14BufferDataType4InfoEbb(ptr noundef nonnull align 8 dereferenceable(82) %47, ptr noundef nonnull align 8 dereferenceable(32) %48, ptr noundef nonnull align 8 dereferenceable(45) @_ZN3P3D8Graphics14BufferDataType6FLOAT3E, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %92 unwind label %162

92:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %50) #6
  call void @_ZNSaIN3P3D8Graphics13BufferElementEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %50) #6
  invoke void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EEC2ESt16initializer_listIS2_ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %46, ptr nonnull %47, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %50)
          to label %93 unwind label %164

93:                                               ; preds = %92
  invoke void @_ZN3P3D8Graphics12BufferLayoutC2ERKSt6vectorINS0_13BufferElementESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(28) %45, ptr noundef nonnull align 8 dereferenceable(24) %46)
          to label %94 unwind label %166

94:                                               ; preds = %93
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %46) #6
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %50) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %50) #6
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %47) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %48) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %49) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %49) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %48) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %47) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %46) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %51) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %52) #6
  store ptr null, ptr %52, align 8, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %53) #6
  store i32 0, ptr %53, align 4, !tbaa !32
  invoke void @_ZSt11make_uniqueIN3P3D8Graphics12VertexBufferEJRNS1_12BufferLayoutEDniEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr.2") align 8 %51, ptr noundef nonnull align 8 dereferenceable(28) %45, ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef nonnull align 4 dereferenceable(4) %53)
          to label %95 unwind label %169

95:                                               ; preds = %94
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef nonnull align 8 dereferenceable(8) %51) #6
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %51) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %53) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %52) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %51) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %54) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %55) #6
  %97 = mul i64 %6, 3
  store i64 %97, ptr %55, align 8, !tbaa !29
  invoke void @_ZSt11make_uniqueIN3P3D8Graphics11IndexBufferEJRPKjmEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr") align 8 %54, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %55)
          to label %98 unwind label %171

98:                                               ; preds = %95
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(8) %56, ptr noundef nonnull align 8 dereferenceable(8) %54) #6
  call void @_ZNSt10unique_ptrIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %54) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %55) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %54) #6
  %100 = getelementptr inbounds i8, ptr %0, i64 8
  %101 = load ptr, ptr %100, align 8, !tbaa !33
  %102 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %57) #6
  invoke void @_ZN3P3D8Graphics11VertexArray9addBufferEPNS0_12VertexBufferE(ptr noundef nonnull align 8 dereferenceable(16) %101, ptr noundef %102)
          to label %103 unwind label %173

103:                                              ; preds = %98
  %104 = load ptr, ptr %100, align 8, !tbaa !33
  %105 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %58) #6
  invoke void @_ZN3P3D8Graphics11VertexArray9addBufferEPNS0_12VertexBufferE(ptr noundef nonnull align 8 dereferenceable(16) %104, ptr noundef %105)
          to label %106 unwind label %173

106:                                              ; preds = %103
  %107 = load ptr, ptr %100, align 8, !tbaa !33
  %108 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %59) #6
  invoke void @_ZN3P3D8Graphics11VertexArray9addBufferEPNS0_12VertexBufferE(ptr noundef nonnull align 8 dereferenceable(16) %107, ptr noundef %108)
          to label %109 unwind label %173

109:                                              ; preds = %106
  %110 = load ptr, ptr %100, align 8, !tbaa !33
  %111 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %60) #6
  invoke void @_ZN3P3D8Graphics11VertexArray9addBufferEPNS0_12VertexBufferE(ptr noundef nonnull align 8 dereferenceable(16) %110, ptr noundef %111)
          to label %112 unwind label %173

112:                                              ; preds = %109
  %113 = load ptr, ptr %100, align 8, !tbaa !33
  %114 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %61) #6
  invoke void @_ZN3P3D8Graphics11VertexArray9addBufferEPNS0_12VertexBufferE(ptr noundef nonnull align 8 dereferenceable(16) %113, ptr noundef %114)
          to label %115 unwind label %173

115:                                              ; preds = %112
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %45) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %45) #6
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %36) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %36) #6
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %28) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %28) #6
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %20) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #6
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #6
  ret void

116:                                              ; preds = %7
  %117 = landingpad { ptr, i32 }
          cleanup
  br label %124

118:                                              ; preds = %65
  %119 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit112

120:                                              ; preds = %66
  %121 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit112.loopexit

122:                                              ; preds = %67
  %123 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  br label %.loopexit112.loopexit

.loopexit112.loopexit:                            ; preds = %122, %120
  %.pn = phi { ptr, i32 } [ %123, %122 ], [ %121, %120 ]
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #6
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %14) #6
  br label %.loopexit112

.loopexit112:                                     ; preds = %.loopexit112.loopexit, %118
  %.pn.pn = phi { ptr, i32 } [ %119, %118 ], [ %.pn, %.loopexit112.loopexit ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  br label %124

124:                                              ; preds = %.loopexit112, %116
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %.loopexit112 ], [ %117, %116 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #6
  br label %184

125:                                              ; preds = %68
  %126 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  br label %183

127:                                              ; preds = %70
  %128 = landingpad { ptr, i32 }
          cleanup
  br label %135

129:                                              ; preds = %72
  %130 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit111

131:                                              ; preds = %73
  %132 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit111.loopexit

133:                                              ; preds = %74
  %134 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  br label %.loopexit111.loopexit

.loopexit111.loopexit:                            ; preds = %133, %131
  %.pn82 = phi { ptr, i32 } [ %134, %133 ], [ %132, %131 ]
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %25) #6
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %22) #6
  br label %.loopexit111

.loopexit111:                                     ; preds = %.loopexit111.loopexit, %129
  %.pn82.pn = phi { ptr, i32 } [ %130, %129 ], [ %.pn82, %.loopexit111.loopexit ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #6
  br label %135

135:                                              ; preds = %.loopexit111, %127
  %.pn82.pn.pn = phi { ptr, i32 } [ %.pn82.pn, %.loopexit111 ], [ %128, %127 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %21) #6
  br label %182

136:                                              ; preds = %75
  %137 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #6
  br label %181

138:                                              ; preds = %76
  %139 = landingpad { ptr, i32 }
          cleanup
  br label %146

140:                                              ; preds = %78
  %141 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit110

142:                                              ; preds = %79
  %143 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit110.loopexit

144:                                              ; preds = %80
  %145 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  br label %.loopexit110.loopexit

.loopexit110.loopexit:                            ; preds = %144, %142
  %.pn86 = phi { ptr, i32 } [ %145, %144 ], [ %143, %142 ]
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %33) #6
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %30) #6
  br label %.loopexit110

.loopexit110:                                     ; preds = %.loopexit110.loopexit, %140
  %.pn86.pn = phi { ptr, i32 } [ %141, %140 ], [ %.pn86, %.loopexit110.loopexit ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #6
  br label %146

146:                                              ; preds = %.loopexit110, %138
  %.pn86.pn.pn = phi { ptr, i32 } [ %.pn86.pn, %.loopexit110 ], [ %139, %138 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %32) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %31) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %30) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %29) #6
  br label %180

147:                                              ; preds = %81
  %148 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %35) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %34) #6
  br label %179

149:                                              ; preds = %83
  %150 = landingpad { ptr, i32 }
          cleanup
  br label %157

151:                                              ; preds = %85
  %152 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit109

153:                                              ; preds = %86
  %154 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit109.loopexit

155:                                              ; preds = %87
  %156 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #6
  br label %.loopexit109.loopexit

.loopexit109.loopexit:                            ; preds = %155, %153
  %.pn90 = phi { ptr, i32 } [ %156, %155 ], [ %154, %153 ]
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %41) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %41) #6
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %38) #6
  br label %.loopexit109

.loopexit109:                                     ; preds = %.loopexit109.loopexit, %151
  %.pn90.pn = phi { ptr, i32 } [ %152, %151 ], [ %.pn90, %.loopexit109.loopexit ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #6
  br label %157

157:                                              ; preds = %.loopexit109, %149
  %.pn90.pn.pn = phi { ptr, i32 } [ %.pn90.pn, %.loopexit109 ], [ %150, %149 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %40) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %40) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %39) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %38) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %37) #6
  br label %178

158:                                              ; preds = %88
  %159 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %44) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %43) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %42) #6
  br label %177

160:                                              ; preds = %89
  %161 = landingpad { ptr, i32 }
          cleanup
  br label %168

162:                                              ; preds = %91
  %163 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

164:                                              ; preds = %92
  %165 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.loopexit

166:                                              ; preds = %93
  %167 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %46) #6
  br label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %166, %164
  %.pn94 = phi { ptr, i32 } [ %167, %166 ], [ %165, %164 ]
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %50) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %50) #6
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %47) #6
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %162
  %.pn94.pn = phi { ptr, i32 } [ %163, %162 ], [ %.pn94, %.loopexit.loopexit ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %48) #6
  br label %168

168:                                              ; preds = %.loopexit, %160
  %.pn94.pn.pn = phi { ptr, i32 } [ %.pn94.pn, %.loopexit ], [ %161, %160 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %49) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %49) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %48) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %47) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %46) #6
  br label %176

169:                                              ; preds = %94
  %170 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %53) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %52) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %51) #6
  br label %175

171:                                              ; preds = %95
  %172 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %55) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %54) #6
  br label %175

173:                                              ; preds = %112, %109, %106, %103, %98
  %174 = landingpad { ptr, i32 }
          cleanup
  br label %175

175:                                              ; preds = %173, %171, %169
  %.pn98 = phi { ptr, i32 } [ %174, %173 ], [ %172, %171 ], [ %170, %169 ]
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %45) #6
  br label %176

176:                                              ; preds = %175, %168
  %.pn98.pn = phi { ptr, i32 } [ %.pn98, %175 ], [ %.pn94.pn.pn, %168 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %45) #6
  br label %177

177:                                              ; preds = %176, %158
  %.pn98.pn.pn = phi { ptr, i32 } [ %.pn98.pn, %176 ], [ %159, %158 ]
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %36) #6
  br label %178

178:                                              ; preds = %177, %157
  %.pn98.pn.pn.pn = phi { ptr, i32 } [ %.pn98.pn.pn, %177 ], [ %.pn90.pn.pn, %157 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %36) #6
  br label %179

179:                                              ; preds = %178, %147
  %.pn98.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn98.pn.pn.pn, %178 ], [ %148, %147 ]
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %28) #6
  br label %180

180:                                              ; preds = %179, %146
  %.pn98.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn98.pn.pn.pn.pn, %179 ], [ %.pn86.pn.pn, %146 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %28) #6
  br label %181

181:                                              ; preds = %180, %136
  %.pn98.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn98.pn.pn.pn.pn.pn, %180 ], [ %137, %136 ]
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %20) #6
  br label %182

182:                                              ; preds = %181, %135
  %.pn98.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn98.pn.pn.pn.pn.pn.pn, %181 ], [ %.pn82.pn.pn, %135 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #6
  br label %183

183:                                              ; preds = %182, %125
  %.pn98.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn98.pn.pn.pn.pn.pn.pn.pn, %182 ], [ %126, %125 ]
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %12) #6
  br label %184

184:                                              ; preds = %183, %124
  %.pn98.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn98.pn.pn.pn.pn.pn.pn.pn.pn, %183 ], [ %.pn.pn.pn, %124 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #6
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %62) #6
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %61) #6
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %60) #6
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %59) #6
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %58) #6
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %57) #6
  call void @_ZNSt10unique_ptrIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %56) #6
  resume { ptr, i32 } %.pn98.pn.pn.pn.pn.pn.pn.pn.pn.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIN3P3D8Graphics12VertexBufferEJRNS1_12BufferLayoutERPKfmEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.2") align 8, ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIN3P3D8Graphics12VertexBufferEJRNS1_12BufferLayoutEDniEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.2") align 8, ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIN3P3D8Graphics11IndexBufferEJRPKjmEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !27, i64 80}
!12 = !{!"_ZTSN3P3D8Graphics11IndexedMeshE", !13, i64 0, !15, i64 24, !21, i64 32, !21, i64 40, !21, i64 48, !21, i64 56, !21, i64 64, !21, i64 72, !27, i64 80, !27, i64 88}
!13 = !{!"_ZTSN3P3D8Graphics12AbstractMeshE", !6, i64 8, !14, i64 16}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_ZTSSt10unique_ptrIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EE", !16, i64 0}
!16 = !{!"_ZTSSt15__uniq_ptr_dataIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_ELb1ELb1EE", !17, i64 0}
!17 = !{!"_ZTSSt15__uniq_ptr_implIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EE", !18, i64 0}
!18 = !{!"_ZTSSt5tupleIJPN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EEE", !19, i64 0}
!19 = !{!"_ZTSSt11_Tuple_implILm0EJPN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EEE", !20, i64 0}
!20 = !{!"_ZTSSt10_Head_baseILm0EPN3P3D8Graphics11IndexBufferELb0EE", !6, i64 0}
!21 = !{!"_ZTSSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE", !22, i64 0}
!22 = !{!"_ZTSSt15__uniq_ptr_dataIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_ELb1ELb1EE", !23, i64 0}
!23 = !{!"_ZTSSt15__uniq_ptr_implIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE", !24, i64 0}
!24 = !{!"_ZTSSt5tupleIJPN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEE", !25, i64 0}
!25 = !{!"_ZTSSt11_Tuple_implILm0EJPN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEE", !26, i64 0}
!26 = !{!"_ZTSSt10_Head_baseILm0EPN3P3D8Graphics12VertexBufferELb0EE", !6, i64 0}
!27 = !{!"long", !7, i64 0}
!28 = !{!12, !27, i64 88}
!29 = !{!27, !27, i64 0}
!30 = !{!31, !31, i64 0}
!31 = !{!"std::nullptr_t", !7, i64 0}
!32 = !{!14, !14, i64 0}
!33 = !{!13, !6, i64 8}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopSimplifyPass,SROAPass,SimplifyCFGPass,TailCallElimPass