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

; 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::Vector" = type { %union.anon }
%union.anon = type { [3 x float] }
%"struct.P3D::Triangle" = type { %union.anon.14 }
%union.anon.14 = type { %struct.anon.15 }
%struct.anon.15 = type { i32, i32, i32 }
%"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::MeshPrototype" = type { %"class.P3D::UniqueAlignedPointer", %"class.P3D::UniqueAlignedPointer.10", i32, i32 }
%"class.P3D::UniqueAlignedPointer" = type { ptr }
%"class.P3D::UniqueAlignedPointer.10" = type { ptr }
%struct.anon = type { float, float, float }
%"struct.P3D::Graphics::ExtendedTriangleMesh" = type { %"class.P3D::TriangleMesh", %"class.std::shared_ptr", %"class.std::shared_ptr.11", %"class.std::shared_ptr", %"class.std::shared_ptr" }
%"class.P3D::TriangleMesh" = type { %"class.P3D::MeshPrototype" }
%"class.std::shared_ptr.11" = type { %"class.std::__shared_ptr.12" }
%"class.std::__shared_ptr.12" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.P3D::Graphics::AbstractMesh" = type <{ ptr, ptr, i32, [4 x i8] }>

@_ZTVN3P3D8Graphics11IndexedMeshE = external dso_local unnamed_addr constant { [6 x ptr] }, align 8
@.str = external hidden unnamed_addr constant [10 x i8], align 1
@_ZN3P3D8Graphics14BufferDataType6FLOAT3E = external global %"struct.P3D::Graphics::BufferDataType::Info", align 8
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3P3D8Graphics11IndexedMeshC2ERKNS0_20ExtendedTriangleMeshE(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef nonnull align 8 dereferenceable(88) %1) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"struct.P3D::Vector", align 4
  %10 = alloca { <2 x float>, float }, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"struct.P3D::Triangle", align 4
  %14 = alloca { i64, i32 }, 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 i1, align 1
  %23 = alloca %"class.std::allocator", align 1
  %24 = alloca %"class.std::unique_ptr.2", align 8
  %25 = alloca i64, align 8
  %26 = alloca %"struct.P3D::Graphics::BufferLayout", align 8
  %27 = alloca %"class.std::vector", align 8
  %28 = alloca %"class.std::initializer_list", align 8
  %29 = alloca [1 x %"struct.P3D::Graphics::BufferElement"], align 8
  %30 = alloca ptr, align 8
  %31 = alloca %"class.std::__cxx11::basic_string", align 8
  %32 = alloca %"class.std::allocator.16", align 1
  %33 = alloca i1, align 1
  %34 = alloca %"class.std::allocator", align 1
  %35 = alloca %"class.std::unique_ptr.2", align 8
  %36 = alloca ptr, align 8
  %37 = alloca i64, align 8
  %38 = alloca %"struct.P3D::Graphics::BufferLayout", align 8
  %39 = alloca %"class.std::vector", align 8
  %40 = alloca %"class.std::initializer_list", align 8
  %41 = alloca [1 x %"struct.P3D::Graphics::BufferElement"], align 8
  %42 = alloca ptr, align 8
  %43 = alloca %"class.std::__cxx11::basic_string", align 8
  %44 = alloca %"class.std::allocator.16", align 1
  %45 = alloca i1, align 1
  %46 = alloca %"class.std::allocator", align 1
  %47 = alloca %"class.std::unique_ptr.2", align 8
  %48 = alloca ptr, 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 i64, align 8
  %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 i64, align 8
  %74 = alloca %"class.std::unique_ptr", align 8
  %75 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %76 = load ptr, ptr %3, 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 !9
  %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) #10
  %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) #10
  %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) #10
  %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) #10
  %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) #10
  %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) #10
  %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) #10
  %84 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 8
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = getelementptr inbounds %"class.P3D::MeshPrototype", ptr %85, i32 0, i32 2
  %87 = load i32, ptr %86, align 8, !tbaa !11
  %88 = sext i32 %87 to i64
  store i64 %88, ptr %84, align 8, !tbaa !16
  %89 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 9
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = getelementptr inbounds %"class.P3D::MeshPrototype", ptr %90, i32 0, i32 3
  %92 = load i32, ptr %91, align 4, !tbaa !32
  %93 = sext i32 %92 to i64
  store i64 %93, ptr %89, align 8, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #10
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds %"class.P3D::MeshPrototype", ptr %94, i32 0, i32 2
  %96 = load i32, ptr %95, align 8, !tbaa !11
  %97 = mul nsw i32 %96, 3
  %98 = sext i32 %97 to i64
  %99 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %98, i64 4)
  %100 = extractvalue { i64, i1 } %99, 1
  %101 = extractvalue { i64, i1 } %99, 0
  %102 = select i1 %100, i64 -1, i64 %101
  %103 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %102) #11
          to label %104 unwind label %112

104:                                              ; preds = %2
  store ptr %103, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #10
  store i32 0, ptr %8, align 4, !tbaa !34
  br label %105

105:                                              ; preds = %149, %104
  %106 = load i32, ptr %8, align 4, !tbaa !34
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 8
  %109 = load i64, ptr %108, align 8, !tbaa !16
  %110 = icmp ult i64 %107, %109
  br i1 %110, label %116, label %111

111:                                              ; preds = %105
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  br label %156

112:                                              ; preds = %2
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %6, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %7, align 4
  br label %602

116:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 12, ptr %9) #10
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = load i32, ptr %8, align 4, !tbaa !34
  %119 = invoke { <2 x float>, float } @_ZNK3P3D13MeshPrototype9getVertexEi(ptr noundef nonnull align 8 dereferenceable(24) %117, i32 noundef %118)
          to label %120 unwind label %152

120:                                              ; preds = %116
  %121 = getelementptr inbounds %"struct.P3D::Vector", ptr %9, i32 0, i32 0
  %122 = getelementptr inbounds %union.anon, ptr %121, i32 0, i32 0
  store { <2 x float>, float } %119, ptr %10, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %122, ptr align 8 %10, i64 12, i1 false)
  %123 = getelementptr inbounds %"struct.P3D::Vector", ptr %9, i32 0, i32 0
  %124 = getelementptr inbounds %struct.anon, ptr %123, i32 0, i32 0
  %125 = load float, ptr %124, align 4, !tbaa !35
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = load i32, ptr %8, align 4, !tbaa !34
  %128 = mul nsw i32 %127, 3
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds float, ptr %126, i64 %129
  store float %125, ptr %130, align 4, !tbaa !36
  %131 = getelementptr inbounds %"struct.P3D::Vector", ptr %9, i32 0, i32 0
  %132 = getelementptr inbounds %struct.anon, ptr %131, i32 0, i32 1
  %133 = load float, ptr %132, align 4, !tbaa !35
  %134 = load ptr, ptr %5, align 8, !tbaa !5
  %135 = load i32, ptr %8, align 4, !tbaa !34
  %136 = mul nsw i32 %135, 3
  %137 = add nsw i32 %136, 1
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds float, ptr %134, i64 %138
  store float %133, ptr %139, align 4, !tbaa !36
  %140 = getelementptr inbounds %"struct.P3D::Vector", ptr %9, i32 0, i32 0
  %141 = getelementptr inbounds %struct.anon, ptr %140, i32 0, i32 2
  %142 = load float, ptr %141, align 4, !tbaa !35
  %143 = load ptr, ptr %5, align 8, !tbaa !5
  %144 = load i32, ptr %8, align 4, !tbaa !34
  %145 = mul nsw i32 %144, 3
  %146 = add nsw i32 %145, 2
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds float, ptr %143, i64 %147
  store float %142, ptr %148, align 4, !tbaa !36
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #10
  br label %149

149:                                              ; preds = %120
  %150 = load i32, ptr %8, align 4, !tbaa !34
  %151 = add nsw i32 %150, 1
  store i32 %151, ptr %8, align 4, !tbaa !34
  br label %105, !llvm.loop !38

152:                                              ; preds = %116
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %6, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  br label %602

156:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #10
  %157 = load ptr, ptr %4, align 8, !tbaa !5
  %158 = getelementptr inbounds %"class.P3D::MeshPrototype", ptr %157, i32 0, i32 3
  %159 = load i32, ptr %158, align 4, !tbaa !32
  %160 = mul nsw i32 %159, 3
  %161 = sext i32 %160 to i64
  %162 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %161, i64 4)
  %163 = extractvalue { i64, i1 } %162, 1
  %164 = extractvalue { i64, i1 } %162, 0
  %165 = select i1 %163, i64 -1, i64 %164
  %166 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %165) #11
          to label %167 unwind label %175

167:                                              ; preds = %156
  store ptr %166, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #10
  store i32 0, ptr %12, align 4, !tbaa !34
  br label %168

168:                                              ; preds = %212, %167
  %169 = load i32, ptr %12, align 4, !tbaa !34
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 9
  %172 = load i64, ptr %171, align 8, !tbaa !33
  %173 = icmp ult i64 %170, %172
  br i1 %173, label %179, label %174

174:                                              ; preds = %168
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #10
  br label %219

175:                                              ; preds = %156
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %6, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %7, align 4
  br label %601

179:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #10
  %180 = load ptr, ptr %4, align 8, !tbaa !5
  %181 = load i32, ptr %12, align 4, !tbaa !34
  %182 = invoke { i64, i32 } @_ZNK3P3D13MeshPrototype11getTriangleEi(ptr noundef nonnull align 8 dereferenceable(24) %180, i32 noundef %181)
          to label %183 unwind label %215

183:                                              ; preds = %179
  %184 = getelementptr inbounds %"struct.P3D::Triangle", ptr %13, i32 0, i32 0
  %185 = getelementptr inbounds %union.anon.14, ptr %184, i32 0, i32 0
  store { i64, i32 } %182, ptr %14, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %185, ptr align 8 %14, i64 12, i1 false)
  %186 = getelementptr inbounds %"struct.P3D::Triangle", ptr %13, i32 0, i32 0
  %187 = getelementptr inbounds %struct.anon.15, ptr %186, i32 0, i32 0
  %188 = load i32, ptr %187, align 4, !tbaa !35
  %189 = load ptr, ptr %11, align 8, !tbaa !5
  %190 = load i32, ptr %12, align 4, !tbaa !34
  %191 = mul nsw i32 %190, 3
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds i32, ptr %189, i64 %192
  store i32 %188, ptr %193, align 4, !tbaa !34
  %194 = getelementptr inbounds %"struct.P3D::Triangle", ptr %13, i32 0, i32 0
  %195 = getelementptr inbounds %struct.anon.15, ptr %194, i32 0, i32 1
  %196 = load i32, ptr %195, align 4, !tbaa !35
  %197 = load ptr, ptr %11, align 8, !tbaa !5
  %198 = load i32, ptr %12, align 4, !tbaa !34
  %199 = mul nsw i32 %198, 3
  %200 = add nsw i32 %199, 1
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds i32, ptr %197, i64 %201
  store i32 %196, ptr %202, align 4, !tbaa !34
  %203 = getelementptr inbounds %"struct.P3D::Triangle", ptr %13, i32 0, i32 0
  %204 = getelementptr inbounds %struct.anon.15, ptr %203, i32 0, i32 2
  %205 = load i32, ptr %204, align 4, !tbaa !35
  %206 = load ptr, ptr %11, align 8, !tbaa !5
  %207 = load i32, ptr %12, align 4, !tbaa !34
  %208 = mul nsw i32 %207, 3
  %209 = add nsw i32 %208, 2
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds i32, ptr %206, i64 %210
  store i32 %205, ptr %211, align 4, !tbaa !34
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #10
  br label %212

212:                                              ; preds = %183
  %213 = load i32, ptr %12, align 4, !tbaa !34
  %214 = add nsw i32 %213, 1
  store i32 %214, ptr %12, align 4, !tbaa !34
  br label %168, !llvm.loop !40

215:                                              ; preds = %179
  %216 = landingpad { ptr, i32 }
          cleanup
  %217 = extractvalue { ptr, i32 } %216, 0
  store ptr %217, ptr %6, align 8
  %218 = extractvalue { ptr, i32 } %216, 1
  store i32 %218, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #10
  br label %601

219:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #10
  call void @llvm.lifetime.start.p0(i64 88, ptr %18) #10
  store i1 true, ptr %22, align 1
  store ptr %18, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %220 unwind label %383

220:                                              ; preds = %219
  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 %221 unwind label %387

221:                                              ; preds = %220
  store i1 false, ptr %22, align 1
  %222 = getelementptr inbounds %"class.std::initializer_list", ptr %17, i32 0, i32 0
  store ptr %18, ptr %222, align 8, !tbaa !41
  %223 = getelementptr inbounds %"class.std::initializer_list", ptr %17, i32 0, i32 1
  store i64 1, ptr %223, align 8, !tbaa !43
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #10
  call void @_ZNSaIN3P3D8Graphics13BufferElementEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #10
  %224 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 0
  %225 = load ptr, ptr %224, align 8
  %226 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 1
  %227 = load i64, ptr %226, align 8
  invoke void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EEC2ESt16initializer_listIS2_ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr %225, i64 %227, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %228 unwind label %391

228:                                              ; preds = %221
  invoke void @_ZN3P3D8Graphics12BufferLayoutC2ERKSt6vectorINS0_13BufferElementESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(28) %15, ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %229 unwind label %395

229:                                              ; preds = %228
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #10
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #10
  %230 = getelementptr inbounds [1 x %"struct.P3D::Graphics::BufferElement"], ptr %18, i32 0, i32 0
  %231 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %230, i64 1
  br label %232

232:                                              ; preds = %232, %229
  %233 = phi ptr [ %231, %229 ], [ %234, %232 ]
  %234 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %233, i64 -1
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %234) #10
  %235 = icmp eq ptr %234, %230
  br i1 %235, label %236, label %232

236:                                              ; preds = %232
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 88, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #10
  %237 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 8
  %238 = load i64, ptr %237, align 8, !tbaa !16
  %239 = mul i64 3, %238
  %240 = mul i64 %239, 4
  store i64 %240, ptr %25, align 8, !tbaa !44
  invoke void @_ZSt11make_uniqueIN3P3D8Graphics12VertexBufferEJRNS1_12BufferLayoutERPfmEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr.2") align 8 %24, ptr noundef nonnull align 8 dereferenceable(28) %15, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %25)
          to label %241 unwind label %419

241:                                              ; preds = %236
  %242 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 2
  %243 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(8) %242, ptr noundef nonnull align 8 dereferenceable(8) %24) #10
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %24) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr %27) #10
  call void @llvm.lifetime.start.p0(i64 88, ptr %29) #10
  store i1 true, ptr %33, align 1
  store ptr %29, ptr %30, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %31) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %32) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %32)
          to label %244 unwind label %423

244:                                              ; preds = %241
  invoke void @_ZN3P3D8Graphics13BufferElementC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_14BufferDataType4InfoEbb(ptr noundef nonnull align 8 dereferenceable(82) %29, ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef nonnull align 8 dereferenceable(45) @_ZN3P3D8Graphics14BufferDataType6FLOAT3E, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %245 unwind label %427

245:                                              ; preds = %244
  store i1 false, ptr %33, align 1
  %246 = getelementptr inbounds %"class.std::initializer_list", ptr %28, i32 0, i32 0
  store ptr %29, ptr %246, align 8, !tbaa !41
  %247 = getelementptr inbounds %"class.std::initializer_list", ptr %28, i32 0, i32 1
  store i64 1, ptr %247, align 8, !tbaa !43
  call void @llvm.lifetime.start.p0(i64 1, ptr %34) #10
  call void @_ZNSaIN3P3D8Graphics13BufferElementEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #10
  %248 = getelementptr inbounds { ptr, i64 }, ptr %28, i32 0, i32 0
  %249 = load ptr, ptr %248, align 8
  %250 = getelementptr inbounds { ptr, i64 }, ptr %28, i32 0, i32 1
  %251 = load i64, ptr %250, align 8
  invoke void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EEC2ESt16initializer_listIS2_ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr %249, i64 %251, ptr noundef nonnull align 1 dereferenceable(1) %34)
          to label %252 unwind label %431

252:                                              ; preds = %245
  invoke void @_ZN3P3D8Graphics12BufferLayoutC2ERKSt6vectorINS0_13BufferElementESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(28) %26, ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %253 unwind label %435

253:                                              ; preds = %252
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #10
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #10
  %254 = getelementptr inbounds [1 x %"struct.P3D::Graphics::BufferElement"], ptr %29, i32 0, i32 0
  %255 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %254, i64 1
  br label %256

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

260:                                              ; preds = %256
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #10
  call void @llvm.lifetime.end.p0(i64 88, ptr %29) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #10
  %261 = load ptr, ptr %4, align 8, !tbaa !5
  %262 = getelementptr inbounds %"struct.P3D::Graphics::ExtendedTriangleMesh", ptr %261, i32 0, i32 1
  %263 = call noundef ptr @_ZNKSt12__shared_ptrIA_KN3P3D6VectorIfLm3EEELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %262) #10
  store ptr %263, ptr %36, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #10
  %264 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 8
  %265 = load i64, ptr %264, align 8, !tbaa !16
  %266 = mul i64 3, %265
  %267 = mul i64 %266, 4
  store i64 %267, ptr %37, align 8, !tbaa !44
  invoke void @_ZSt11make_uniqueIN3P3D8Graphics12VertexBufferEJRNS1_12BufferLayoutEPKfmEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr.2") align 8 %35, ptr noundef nonnull align 8 dereferenceable(28) %26, ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull align 8 dereferenceable(8) %37)
          to label %268 unwind label %459

268:                                              ; preds = %260
  %269 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 3
  %270 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(8) %269, ptr noundef nonnull align 8 dereferenceable(8) %35) #10
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %35) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %38) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr %39) #10
  call void @llvm.lifetime.start.p0(i64 88, ptr %41) #10
  store i1 true, ptr %45, align 1
  store ptr %41, ptr %42, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %43) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %44) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %44) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %44)
          to label %271 unwind label %463

271:                                              ; preds = %268
  invoke void @_ZN3P3D8Graphics13BufferElementC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_14BufferDataType4InfoEbb(ptr noundef nonnull align 8 dereferenceable(82) %41, ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef nonnull align 8 dereferenceable(45) @_ZN3P3D8Graphics14BufferDataType6FLOAT2E, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %272 unwind label %467

272:                                              ; preds = %271
  store i1 false, ptr %45, align 1
  %273 = getelementptr inbounds %"class.std::initializer_list", ptr %40, i32 0, i32 0
  store ptr %41, ptr %273, align 8, !tbaa !41
  %274 = getelementptr inbounds %"class.std::initializer_list", ptr %40, i32 0, i32 1
  store i64 1, ptr %274, align 8, !tbaa !43
  call void @llvm.lifetime.start.p0(i64 1, ptr %46) #10
  call void @_ZNSaIN3P3D8Graphics13BufferElementEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %46) #10
  %275 = getelementptr inbounds { ptr, i64 }, ptr %40, i32 0, i32 0
  %276 = load ptr, ptr %275, align 8
  %277 = getelementptr inbounds { ptr, i64 }, ptr %40, i32 0, i32 1
  %278 = load i64, ptr %277, align 8
  invoke void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EEC2ESt16initializer_listIS2_ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %39, ptr %276, i64 %278, ptr noundef nonnull align 1 dereferenceable(1) %46)
          to label %279 unwind label %471

279:                                              ; preds = %272
  invoke void @_ZN3P3D8Graphics12BufferLayoutC2ERKSt6vectorINS0_13BufferElementESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(28) %38, ptr noundef nonnull align 8 dereferenceable(24) %39)
          to label %280 unwind label %475

280:                                              ; preds = %279
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %39) #10
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %46) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %46) #10
  %281 = getelementptr inbounds [1 x %"struct.P3D::Graphics::BufferElement"], ptr %41, i32 0, i32 0
  %282 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %281, i64 1
  br label %283

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

287:                                              ; preds = %283
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %44) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %44) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %43) #10
  call void @llvm.lifetime.end.p0(i64 88, ptr %41) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %39) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #10
  %288 = load ptr, ptr %4, align 8, !tbaa !5
  %289 = getelementptr inbounds %"struct.P3D::Graphics::ExtendedTriangleMesh", ptr %288, i32 0, i32 2
  %290 = call noundef ptr @_ZNKSt12__shared_ptrIA_KN3P3D6VectorIfLm2EEELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %289) #10
  store ptr %290, ptr %48, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #10
  %291 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 8
  %292 = load i64, ptr %291, align 8, !tbaa !16
  %293 = mul i64 2, %292
  %294 = mul i64 %293, 4
  store i64 %294, ptr %49, align 8, !tbaa !44
  invoke void @_ZSt11make_uniqueIN3P3D8Graphics12VertexBufferEJRNS1_12BufferLayoutEPKfmEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr.2") align 8 %47, ptr noundef nonnull align 8 dereferenceable(28) %38, ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef nonnull align 8 dereferenceable(8) %49)
          to label %295 unwind label %499

295:                                              ; preds = %287
  %296 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 4
  %297 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(8) %296, ptr noundef nonnull align 8 dereferenceable(8) %47) #10
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %47) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %50) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr %51) #10
  call void @llvm.lifetime.start.p0(i64 88, ptr %53) #10
  store i1 true, ptr %57, align 1
  store ptr %53, ptr %54, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %55) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %56) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %56) #10
  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 %298 unwind label %503

298:                                              ; preds = %295
  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 %299 unwind label %507

299:                                              ; preds = %298
  store i1 false, ptr %57, align 1
  %300 = getelementptr inbounds %"class.std::initializer_list", ptr %52, i32 0, i32 0
  store ptr %53, ptr %300, align 8, !tbaa !41
  %301 = getelementptr inbounds %"class.std::initializer_list", ptr %52, i32 0, i32 1
  store i64 1, ptr %301, align 8, !tbaa !43
  call void @llvm.lifetime.start.p0(i64 1, ptr %58) #10
  call void @_ZNSaIN3P3D8Graphics13BufferElementEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %58) #10
  %302 = getelementptr inbounds { ptr, i64 }, ptr %52, i32 0, i32 0
  %303 = load ptr, ptr %302, align 8
  %304 = getelementptr inbounds { ptr, i64 }, ptr %52, i32 0, i32 1
  %305 = load i64, ptr %304, align 8
  invoke void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EEC2ESt16initializer_listIS2_ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %51, ptr %303, i64 %305, ptr noundef nonnull align 1 dereferenceable(1) %58)
          to label %306 unwind label %511

306:                                              ; preds = %299
  invoke void @_ZN3P3D8Graphics12BufferLayoutC2ERKSt6vectorINS0_13BufferElementESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(28) %50, ptr noundef nonnull align 8 dereferenceable(24) %51)
          to label %307 unwind label %515

307:                                              ; preds = %306
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %51) #10
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %58) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %58) #10
  %308 = getelementptr inbounds [1 x %"struct.P3D::Graphics::BufferElement"], ptr %53, i32 0, i32 0
  %309 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %308, i64 1
  br label %310

310:                                              ; preds = %310, %307
  %311 = phi ptr [ %309, %307 ], [ %312, %310 ]
  %312 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %311, i64 -1
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %312) #10
  %313 = icmp eq ptr %312, %308
  br i1 %313, label %314, label %310

314:                                              ; preds = %310
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %55) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %56) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %56) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %55) #10
  call void @llvm.lifetime.end.p0(i64 88, ptr %53) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %51) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #10
  %315 = load ptr, ptr %4, align 8, !tbaa !5
  %316 = getelementptr inbounds %"struct.P3D::Graphics::ExtendedTriangleMesh", ptr %315, i32 0, i32 3
  %317 = call noundef ptr @_ZNKSt12__shared_ptrIA_KN3P3D6VectorIfLm3EEELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %316) #10
  store ptr %317, ptr %60, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %61) #10
  %318 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 8
  %319 = load i64, ptr %318, align 8, !tbaa !16
  %320 = mul i64 3, %319
  %321 = mul i64 %320, 4
  store i64 %321, ptr %61, align 8, !tbaa !44
  invoke void @_ZSt11make_uniqueIN3P3D8Graphics12VertexBufferEJRNS1_12BufferLayoutEPKfmEENSt8__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 8 dereferenceable(8) %61)
          to label %322 unwind label %539

322:                                              ; preds = %314
  %323 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 5
  %324 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(8) %323, ptr noundef nonnull align 8 dereferenceable(8) %59) #10
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %59) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %62) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr %63) #10
  call void @llvm.lifetime.start.p0(i64 88, ptr %65) #10
  store i1 true, ptr %69, align 1
  store ptr %65, ptr %66, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %67) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %68) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %68) #10
  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 %325 unwind label %543

325:                                              ; preds = %322
  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 %326 unwind label %547

326:                                              ; preds = %325
  store i1 false, ptr %69, align 1
  %327 = getelementptr inbounds %"class.std::initializer_list", ptr %64, i32 0, i32 0
  store ptr %65, ptr %327, align 8, !tbaa !41
  %328 = getelementptr inbounds %"class.std::initializer_list", ptr %64, i32 0, i32 1
  store i64 1, ptr %328, align 8, !tbaa !43
  call void @llvm.lifetime.start.p0(i64 1, ptr %70) #10
  call void @_ZNSaIN3P3D8Graphics13BufferElementEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %70) #10
  %329 = getelementptr inbounds { ptr, i64 }, ptr %64, i32 0, i32 0
  %330 = load ptr, ptr %329, align 8
  %331 = getelementptr inbounds { ptr, i64 }, ptr %64, i32 0, i32 1
  %332 = load i64, ptr %331, align 8
  invoke void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EEC2ESt16initializer_listIS2_ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %63, ptr %330, i64 %332, ptr noundef nonnull align 1 dereferenceable(1) %70)
          to label %333 unwind label %551

333:                                              ; preds = %326
  invoke void @_ZN3P3D8Graphics12BufferLayoutC2ERKSt6vectorINS0_13BufferElementESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(28) %62, ptr noundef nonnull align 8 dereferenceable(24) %63)
          to label %334 unwind label %555

334:                                              ; preds = %333
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %63) #10
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %70) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %70) #10
  %335 = getelementptr inbounds [1 x %"struct.P3D::Graphics::BufferElement"], ptr %65, i32 0, i32 0
  %336 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %335, i64 1
  br label %337

337:                                              ; preds = %337, %334
  %338 = phi ptr [ %336, %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) #10
  %340 = icmp eq ptr %339, %335
  br i1 %340, label %341, label %337

341:                                              ; preds = %337
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %67) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %68) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %68) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %67) #10
  call void @llvm.lifetime.end.p0(i64 88, ptr %65) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %63) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %71) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %72) #10
  %342 = load ptr, ptr %4, align 8, !tbaa !5
  %343 = getelementptr inbounds %"struct.P3D::Graphics::ExtendedTriangleMesh", ptr %342, i32 0, i32 4
  %344 = call noundef ptr @_ZNKSt12__shared_ptrIA_KN3P3D6VectorIfLm3EEELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %343) #10
  store ptr %344, ptr %72, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %73) #10
  %345 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 8
  %346 = load i64, ptr %345, align 8, !tbaa !16
  %347 = mul i64 3, %346
  %348 = mul i64 %347, 4
  store i64 %348, ptr %73, align 8, !tbaa !44
  invoke void @_ZSt11make_uniqueIN3P3D8Graphics12VertexBufferEJRNS1_12BufferLayoutEPKfmEENSt8__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 8 dereferenceable(8) %73)
          to label %349 unwind label %579

349:                                              ; preds = %341
  %350 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 6
  %351 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(8) %350, ptr noundef nonnull align 8 dereferenceable(8) %71) #10
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %71) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %73) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %74) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %75) #10
  %352 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 9
  %353 = load i64, ptr %352, align 8, !tbaa !33
  %354 = mul i64 3, %353
  store i64 %354, ptr %75, align 8, !tbaa !44
  invoke void @_ZSt11make_uniqueIN3P3D8Graphics11IndexBufferEJRPjmEENSt8__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) %11, ptr noundef nonnull align 8 dereferenceable(8) %75)
          to label %355 unwind label %583

355:                                              ; preds = %349
  %356 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 1
  %357 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(8) %356, ptr noundef nonnull align 8 dereferenceable(8) %74) #10
  call void @_ZNSt10unique_ptrIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %74) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %75) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %74) #10
  %358 = getelementptr inbounds %"class.P3D::Graphics::AbstractMesh", ptr %76, i32 0, i32 1
  %359 = load ptr, ptr %358, align 8, !tbaa !45
  %360 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 2
  %361 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %360) #10
  invoke void @_ZN3P3D8Graphics11VertexArray9addBufferEPNS0_12VertexBufferE(ptr noundef nonnull align 8 dereferenceable(16) %359, ptr noundef %361)
          to label %362 unwind label %587

362:                                              ; preds = %355
  %363 = getelementptr inbounds %"class.P3D::Graphics::AbstractMesh", ptr %76, i32 0, i32 1
  %364 = load ptr, ptr %363, align 8, !tbaa !45
  %365 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 3
  %366 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %365) #10
  invoke void @_ZN3P3D8Graphics11VertexArray9addBufferEPNS0_12VertexBufferE(ptr noundef nonnull align 8 dereferenceable(16) %364, ptr noundef %366)
          to label %367 unwind label %587

367:                                              ; preds = %362
  %368 = getelementptr inbounds %"class.P3D::Graphics::AbstractMesh", ptr %76, i32 0, i32 1
  %369 = load ptr, ptr %368, align 8, !tbaa !45
  %370 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 4
  %371 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %370) #10
  invoke void @_ZN3P3D8Graphics11VertexArray9addBufferEPNS0_12VertexBufferE(ptr noundef nonnull align 8 dereferenceable(16) %369, ptr noundef %371)
          to label %372 unwind label %587

372:                                              ; preds = %367
  %373 = getelementptr inbounds %"class.P3D::Graphics::AbstractMesh", ptr %76, i32 0, i32 1
  %374 = load ptr, ptr %373, align 8, !tbaa !45
  %375 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 5
  %376 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %375) #10
  invoke void @_ZN3P3D8Graphics11VertexArray9addBufferEPNS0_12VertexBufferE(ptr noundef nonnull align 8 dereferenceable(16) %374, ptr noundef %376)
          to label %377 unwind label %587

377:                                              ; preds = %372
  %378 = getelementptr inbounds %"class.P3D::Graphics::AbstractMesh", ptr %76, i32 0, i32 1
  %379 = load ptr, ptr %378, align 8, !tbaa !45
  %380 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %76, i32 0, i32 6
  %381 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %380) #10
  invoke void @_ZN3P3D8Graphics11VertexArray9addBufferEPNS0_12VertexBufferE(ptr noundef nonnull align 8 dereferenceable(16) %379, ptr noundef %381)
          to label %382 unwind label %587

382:                                              ; preds = %377
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %62) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %62) #10
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %50) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %50) #10
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %38) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %38) #10
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %26) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #10
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %15) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #10
  ret void

383:                                              ; preds = %219
  %384 = landingpad { ptr, i32 }
          cleanup
  %385 = extractvalue { ptr, i32 } %384, 0
  store ptr %385, ptr %6, align 8
  %386 = extractvalue { ptr, i32 } %384, 1
  store i32 %386, ptr %7, align 4
  br label %408

387:                                              ; preds = %220
  %388 = landingpad { ptr, i32 }
          cleanup
  %389 = extractvalue { ptr, i32 } %388, 0
  store ptr %389, ptr %6, align 8
  %390 = extractvalue { ptr, i32 } %388, 1
  store i32 %390, ptr %7, align 4
  br label %407

391:                                              ; preds = %221
  %392 = landingpad { ptr, i32 }
          cleanup
  %393 = extractvalue { ptr, i32 } %392, 0
  store ptr %393, ptr %6, align 8
  %394 = extractvalue { ptr, i32 } %392, 1
  store i32 %394, ptr %7, align 4
  br label %399

395:                                              ; preds = %228
  %396 = landingpad { ptr, i32 }
          cleanup
  %397 = extractvalue { ptr, i32 } %396, 0
  store ptr %397, ptr %6, align 8
  %398 = extractvalue { ptr, i32 } %396, 1
  store i32 %398, ptr %7, align 4
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #10
  br label %399

399:                                              ; preds = %395, %391
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #10
  %400 = getelementptr inbounds [1 x %"struct.P3D::Graphics::BufferElement"], ptr %18, i32 0, i32 0
  %401 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %400, i64 1
  br label %402

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

406:                                              ; preds = %402
  br label %407

407:                                              ; preds = %406, %387
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #10
  br label %408

408:                                              ; preds = %407, %383
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #10
  %409 = load i1, ptr %22, align 1
  br i1 %409, label %410, label %418

410:                                              ; preds = %408
  %411 = load ptr, ptr %19, align 8
  %412 = icmp eq ptr %18, %411
  br i1 %412, label %417, label %413

413:                                              ; preds = %413, %410
  %414 = phi ptr [ %411, %410 ], [ %415, %413 ]
  %415 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %414, i64 -1
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %415) #10
  %416 = icmp eq ptr %415, %18
  br i1 %416, label %417, label %413

417:                                              ; preds = %413, %410
  br label %418

418:                                              ; preds = %417, %408
  call void @llvm.lifetime.end.p0(i64 88, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #10
  br label %600

419:                                              ; preds = %236
  %420 = landingpad { ptr, i32 }
          cleanup
  %421 = extractvalue { ptr, i32 } %420, 0
  store ptr %421, ptr %6, align 8
  %422 = extractvalue { ptr, i32 } %420, 1
  store i32 %422, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #10
  br label %599

423:                                              ; preds = %241
  %424 = landingpad { ptr, i32 }
          cleanup
  %425 = extractvalue { ptr, i32 } %424, 0
  store ptr %425, ptr %6, align 8
  %426 = extractvalue { ptr, i32 } %424, 1
  store i32 %426, ptr %7, align 4
  br label %448

427:                                              ; preds = %244
  %428 = landingpad { ptr, i32 }
          cleanup
  %429 = extractvalue { ptr, i32 } %428, 0
  store ptr %429, ptr %6, align 8
  %430 = extractvalue { ptr, i32 } %428, 1
  store i32 %430, ptr %7, align 4
  br label %447

431:                                              ; preds = %245
  %432 = landingpad { ptr, i32 }
          cleanup
  %433 = extractvalue { ptr, i32 } %432, 0
  store ptr %433, ptr %6, align 8
  %434 = extractvalue { ptr, i32 } %432, 1
  store i32 %434, ptr %7, align 4
  br label %439

435:                                              ; preds = %252
  %436 = landingpad { ptr, i32 }
          cleanup
  %437 = extractvalue { ptr, i32 } %436, 0
  store ptr %437, ptr %6, align 8
  %438 = extractvalue { ptr, i32 } %436, 1
  store i32 %438, ptr %7, align 4
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #10
  br label %439

439:                                              ; preds = %435, %431
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #10
  %440 = getelementptr inbounds [1 x %"struct.P3D::Graphics::BufferElement"], ptr %29, i32 0, i32 0
  %441 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %440, i64 1
  br label %442

442:                                              ; preds = %442, %439
  %443 = phi ptr [ %441, %439 ], [ %444, %442 ]
  %444 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %443, i64 -1
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %444) #10
  %445 = icmp eq ptr %444, %440
  br i1 %445, label %446, label %442

446:                                              ; preds = %442
  br label %447

447:                                              ; preds = %446, %427
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #10
  br label %448

448:                                              ; preds = %447, %423
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #10
  %449 = load i1, ptr %33, align 1
  br i1 %449, label %450, label %458

450:                                              ; preds = %448
  %451 = load ptr, ptr %30, align 8
  %452 = icmp eq ptr %29, %451
  br i1 %452, label %457, label %453

453:                                              ; preds = %453, %450
  %454 = phi ptr [ %451, %450 ], [ %455, %453 ]
  %455 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %454, i64 -1
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %455) #10
  %456 = icmp eq ptr %455, %29
  br i1 %456, label %457, label %453

457:                                              ; preds = %453, %450
  br label %458

458:                                              ; preds = %457, %448
  call void @llvm.lifetime.end.p0(i64 88, ptr %29) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #10
  br label %598

459:                                              ; preds = %260
  %460 = landingpad { ptr, i32 }
          cleanup
  %461 = extractvalue { ptr, i32 } %460, 0
  store ptr %461, ptr %6, align 8
  %462 = extractvalue { ptr, i32 } %460, 1
  store i32 %462, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #10
  br label %597

463:                                              ; preds = %268
  %464 = landingpad { ptr, i32 }
          cleanup
  %465 = extractvalue { ptr, i32 } %464, 0
  store ptr %465, ptr %6, align 8
  %466 = extractvalue { ptr, i32 } %464, 1
  store i32 %466, ptr %7, align 4
  br label %488

467:                                              ; preds = %271
  %468 = landingpad { ptr, i32 }
          cleanup
  %469 = extractvalue { ptr, i32 } %468, 0
  store ptr %469, ptr %6, align 8
  %470 = extractvalue { ptr, i32 } %468, 1
  store i32 %470, ptr %7, align 4
  br label %487

471:                                              ; preds = %272
  %472 = landingpad { ptr, i32 }
          cleanup
  %473 = extractvalue { ptr, i32 } %472, 0
  store ptr %473, ptr %6, align 8
  %474 = extractvalue { ptr, i32 } %472, 1
  store i32 %474, ptr %7, align 4
  br label %479

475:                                              ; preds = %279
  %476 = landingpad { ptr, i32 }
          cleanup
  %477 = extractvalue { ptr, i32 } %476, 0
  store ptr %477, ptr %6, align 8
  %478 = extractvalue { ptr, i32 } %476, 1
  store i32 %478, ptr %7, align 4
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %39) #10
  br label %479

479:                                              ; preds = %475, %471
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %46) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %46) #10
  %480 = getelementptr inbounds [1 x %"struct.P3D::Graphics::BufferElement"], ptr %41, i32 0, i32 0
  %481 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %480, i64 1
  br label %482

482:                                              ; preds = %482, %479
  %483 = phi ptr [ %481, %479 ], [ %484, %482 ]
  %484 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %483, i64 -1
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %484) #10
  %485 = icmp eq ptr %484, %480
  br i1 %485, label %486, label %482

486:                                              ; preds = %482
  br label %487

487:                                              ; preds = %486, %467
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #10
  br label %488

488:                                              ; preds = %487, %463
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %44) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %44) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %43) #10
  %489 = load i1, ptr %45, align 1
  br i1 %489, label %490, label %498

490:                                              ; preds = %488
  %491 = load ptr, ptr %42, align 8
  %492 = icmp eq ptr %41, %491
  br i1 %492, label %497, label %493

493:                                              ; preds = %493, %490
  %494 = phi ptr [ %491, %490 ], [ %495, %493 ]
  %495 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %494, i64 -1
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %495) #10
  %496 = icmp eq ptr %495, %41
  br i1 %496, label %497, label %493

497:                                              ; preds = %493, %490
  br label %498

498:                                              ; preds = %497, %488
  call void @llvm.lifetime.end.p0(i64 88, ptr %41) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %39) #10
  br label %596

499:                                              ; preds = %287
  %500 = landingpad { ptr, i32 }
          cleanup
  %501 = extractvalue { ptr, i32 } %500, 0
  store ptr %501, ptr %6, align 8
  %502 = extractvalue { ptr, i32 } %500, 1
  store i32 %502, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #10
  br label %595

503:                                              ; preds = %295
  %504 = landingpad { ptr, i32 }
          cleanup
  %505 = extractvalue { ptr, i32 } %504, 0
  store ptr %505, ptr %6, align 8
  %506 = extractvalue { ptr, i32 } %504, 1
  store i32 %506, ptr %7, align 4
  br label %528

507:                                              ; preds = %298
  %508 = landingpad { ptr, i32 }
          cleanup
  %509 = extractvalue { ptr, i32 } %508, 0
  store ptr %509, ptr %6, align 8
  %510 = extractvalue { ptr, i32 } %508, 1
  store i32 %510, ptr %7, align 4
  br label %527

511:                                              ; preds = %299
  %512 = landingpad { ptr, i32 }
          cleanup
  %513 = extractvalue { ptr, i32 } %512, 0
  store ptr %513, ptr %6, align 8
  %514 = extractvalue { ptr, i32 } %512, 1
  store i32 %514, ptr %7, align 4
  br label %519

515:                                              ; preds = %306
  %516 = landingpad { ptr, i32 }
          cleanup
  %517 = extractvalue { ptr, i32 } %516, 0
  store ptr %517, ptr %6, align 8
  %518 = extractvalue { ptr, i32 } %516, 1
  store i32 %518, ptr %7, align 4
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %51) #10
  br label %519

519:                                              ; preds = %515, %511
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %58) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %58) #10
  %520 = getelementptr inbounds [1 x %"struct.P3D::Graphics::BufferElement"], ptr %53, i32 0, i32 0
  %521 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %520, i64 1
  br label %522

522:                                              ; preds = %522, %519
  %523 = phi ptr [ %521, %519 ], [ %524, %522 ]
  %524 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %523, i64 -1
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %524) #10
  %525 = icmp eq ptr %524, %520
  br i1 %525, label %526, label %522

526:                                              ; preds = %522
  br label %527

527:                                              ; preds = %526, %507
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %55) #10
  br label %528

528:                                              ; preds = %527, %503
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %56) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %56) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %55) #10
  %529 = load i1, ptr %57, align 1
  br i1 %529, label %530, label %538

530:                                              ; preds = %528
  %531 = load ptr, ptr %54, align 8
  %532 = icmp eq ptr %53, %531
  br i1 %532, label %537, label %533

533:                                              ; preds = %533, %530
  %534 = phi ptr [ %531, %530 ], [ %535, %533 ]
  %535 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %534, i64 -1
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %535) #10
  %536 = icmp eq ptr %535, %53
  br i1 %536, label %537, label %533

537:                                              ; preds = %533, %530
  br label %538

538:                                              ; preds = %537, %528
  call void @llvm.lifetime.end.p0(i64 88, ptr %53) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %51) #10
  br label %594

539:                                              ; preds = %314
  %540 = landingpad { ptr, i32 }
          cleanup
  %541 = extractvalue { ptr, i32 } %540, 0
  store ptr %541, ptr %6, align 8
  %542 = extractvalue { ptr, i32 } %540, 1
  store i32 %542, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #10
  br label %593

543:                                              ; preds = %322
  %544 = landingpad { ptr, i32 }
          cleanup
  %545 = extractvalue { ptr, i32 } %544, 0
  store ptr %545, ptr %6, align 8
  %546 = extractvalue { ptr, i32 } %544, 1
  store i32 %546, ptr %7, align 4
  br label %568

547:                                              ; preds = %325
  %548 = landingpad { ptr, i32 }
          cleanup
  %549 = extractvalue { ptr, i32 } %548, 0
  store ptr %549, ptr %6, align 8
  %550 = extractvalue { ptr, i32 } %548, 1
  store i32 %550, ptr %7, align 4
  br label %567

551:                                              ; preds = %326
  %552 = landingpad { ptr, i32 }
          cleanup
  %553 = extractvalue { ptr, i32 } %552, 0
  store ptr %553, ptr %6, align 8
  %554 = extractvalue { ptr, i32 } %552, 1
  store i32 %554, ptr %7, align 4
  br label %559

555:                                              ; preds = %333
  %556 = landingpad { ptr, i32 }
          cleanup
  %557 = extractvalue { ptr, i32 } %556, 0
  store ptr %557, ptr %6, align 8
  %558 = extractvalue { ptr, i32 } %556, 1
  store i32 %558, ptr %7, align 4
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %63) #10
  br label %559

559:                                              ; preds = %555, %551
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %70) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %70) #10
  %560 = getelementptr inbounds [1 x %"struct.P3D::Graphics::BufferElement"], ptr %65, i32 0, i32 0
  %561 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %560, i64 1
  br label %562

562:                                              ; preds = %562, %559
  %563 = phi ptr [ %561, %559 ], [ %564, %562 ]
  %564 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %563, i64 -1
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %564) #10
  %565 = icmp eq ptr %564, %560
  br i1 %565, label %566, label %562

566:                                              ; preds = %562
  br label %567

567:                                              ; preds = %566, %547
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %67) #10
  br label %568

568:                                              ; preds = %567, %543
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %68) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %68) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %67) #10
  %569 = load i1, ptr %69, align 1
  br i1 %569, label %570, label %578

570:                                              ; preds = %568
  %571 = load ptr, ptr %66, align 8
  %572 = icmp eq ptr %65, %571
  br i1 %572, label %577, label %573

573:                                              ; preds = %573, %570
  %574 = phi ptr [ %571, %570 ], [ %575, %573 ]
  %575 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %574, i64 -1
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %575) #10
  %576 = icmp eq ptr %575, %65
  br i1 %576, label %577, label %573

577:                                              ; preds = %573, %570
  br label %578

578:                                              ; preds = %577, %568
  call void @llvm.lifetime.end.p0(i64 88, ptr %65) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %63) #10
  br label %592

579:                                              ; preds = %341
  %580 = landingpad { ptr, i32 }
          cleanup
  %581 = extractvalue { ptr, i32 } %580, 0
  store ptr %581, ptr %6, align 8
  %582 = extractvalue { ptr, i32 } %580, 1
  store i32 %582, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %73) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #10
  br label %591

583:                                              ; preds = %349
  %584 = landingpad { ptr, i32 }
          cleanup
  %585 = extractvalue { ptr, i32 } %584, 0
  store ptr %585, ptr %6, align 8
  %586 = extractvalue { ptr, i32 } %584, 1
  store i32 %586, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %75) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %74) #10
  br label %591

587:                                              ; preds = %377, %372, %367, %362, %355
  %588 = landingpad { ptr, i32 }
          cleanup
  %589 = extractvalue { ptr, i32 } %588, 0
  store ptr %589, ptr %6, align 8
  %590 = extractvalue { ptr, i32 } %588, 1
  store i32 %590, ptr %7, align 4
  br label %591

591:                                              ; preds = %587, %583, %579
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %62) #10
  br label %592

592:                                              ; preds = %591, %578
  call void @llvm.lifetime.end.p0(i64 32, ptr %62) #10
  br label %593

593:                                              ; preds = %592, %539
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %50) #10
  br label %594

594:                                              ; preds = %593, %538
  call void @llvm.lifetime.end.p0(i64 32, ptr %50) #10
  br label %595

595:                                              ; preds = %594, %499
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %38) #10
  br label %596

596:                                              ; preds = %595, %498
  call void @llvm.lifetime.end.p0(i64 32, ptr %38) #10
  br label %597

597:                                              ; preds = %596, %459
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %26) #10
  br label %598

598:                                              ; preds = %597, %458
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #10
  br label %599

599:                                              ; preds = %598, %419
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %15) #10
  br label %600

600:                                              ; preds = %599, %418
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #10
  br label %601

601:                                              ; preds = %600, %215, %175
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #10
  br label %602

602:                                              ; preds = %601, %152, %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #10
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %83) #10
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %82) #10
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %81) #10
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %80) #10
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %79) #10
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %78) #10
  call void @_ZNSt10unique_ptrIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %77) #10
  br label %603

603:                                              ; preds = %602
  %604 = load ptr, ptr %6, align 8
  %605 = load i32, ptr %7, align 4
  %606 = insertvalue { ptr, i32 } poison, ptr %604, 0
  %607 = insertvalue { ptr, i32 } %606, i32 %605, 1
  resume { ptr, i32 } %607
}

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #4

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #5

declare i32 @__gxx_personality_v0(...)

declare { <2 x float>, float } @_ZNK3P3D13MeshPrototype9getVertexEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

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

declare { i64, i32 } @_ZNK3P3D13MeshPrototype11getTriangleEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #1

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIN3P3D8Graphics12VertexBufferEJRNS1_12BufferLayoutERPfmEENSt8__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)) #9

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIN3P3D8Graphics12VertexBufferEJRNS1_12BufferLayoutEPKfmEENSt8__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)) #9

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIN3P3D8Graphics11IndexBufferEJRPjmEENSt8__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)) #9

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

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

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

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

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

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

!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, !15, i64 16}
!12 = !{!"_ZTSN3P3D13MeshPrototypeE", !13, i64 0, !14, i64 8, !15, i64 16, !15, i64 20}
!13 = !{!"_ZTSN3P3D20UniqueAlignedPointerIfEE", !6, i64 0}
!14 = !{!"_ZTSN3P3D20UniqueAlignedPointerIiEE", !6, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!17, !31, i64 80}
!17 = !{!"_ZTSN3P3D8Graphics11IndexedMeshE", !18, i64 0, !19, i64 24, !25, i64 32, !25, i64 40, !25, i64 48, !25, i64 56, !25, i64 64, !25, i64 72, !31, i64 80, !31, i64 88}
!18 = !{!"_ZTSN3P3D8Graphics12AbstractMeshE", !6, i64 8, !15, i64 16}
!19 = !{!"_ZTSSt10unique_ptrIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EE", !20, i64 0}
!20 = !{!"_ZTSSt15__uniq_ptr_dataIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_ELb1ELb1EE", !21, i64 0}
!21 = !{!"_ZTSSt15__uniq_ptr_implIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EE", !22, i64 0}
!22 = !{!"_ZTSSt5tupleIJPN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EEE", !23, i64 0}
!23 = !{!"_ZTSSt11_Tuple_implILm0EJPN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EEE", !24, i64 0}
!24 = !{!"_ZTSSt10_Head_baseILm0EPN3P3D8Graphics11IndexBufferELb0EE", !6, i64 0}
!25 = !{!"_ZTSSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE", !26, i64 0}
!26 = !{!"_ZTSSt15__uniq_ptr_dataIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_ELb1ELb1EE", !27, i64 0}
!27 = !{!"_ZTSSt15__uniq_ptr_implIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE", !28, i64 0}
!28 = !{!"_ZTSSt5tupleIJPN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEE", !29, i64 0}
!29 = !{!"_ZTSSt11_Tuple_implILm0EJPN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEE", !30, i64 0}
!30 = !{!"_ZTSSt10_Head_baseILm0EPN3P3D8Graphics12VertexBufferELb0EE", !6, i64 0}
!31 = !{!"long", !7, i64 0}
!32 = !{!12, !15, i64 20}
!33 = !{!17, !31, i64 88}
!34 = !{!15, !15, i64 0}
!35 = !{!7, !7, i64 0}
!36 = !{!37, !37, i64 0}
!37 = !{!"float", !7, i64 0}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}
!40 = distinct !{!40, !39}
!41 = !{!42, !6, i64 0}
!42 = !{!"_ZTSSt16initializer_listIN3P3D8Graphics13BufferElementEE", !6, i64 0, !31, i64 8}
!43 = !{!42, !31, i64 8}
!44 = !{!31, !31, i64 0}
!45 = !{!18, !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
@.str = external hidden unnamed_addr constant [10 x i8], align 1
@_ZN3P3D8Graphics14BufferDataType6FLOAT3E = external global %"struct.P3D::Graphics::BufferDataType::Info", align 8
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.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

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

72:                                               ; preds = %2
  store ptr %71, ptr %3, align 8, !tbaa !33
  %.not = icmp eq i32 %60, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge.loopexit:                             ; preds = %84
  %.pre = load i32, ptr %63, align 4, !tbaa !31
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %72
  %73 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %64, %72 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  %74 = mul nsw i32 %73, 3
  %75 = sext i32 %74 to i64
  %76 = icmp slt i32 %73, 0
  %77 = shl nsw i64 %75, 2
  %78 = select i1 %76, i64 -1, i64 %77
  %79 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %78) #9
          to label %92 unwind label %94

80:                                               ; preds = %2
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %244

.lr.ph:                                           ; preds = %72, %84
  %indvars.iv = phi i64 [ %indvars.iv.next, %84 ], [ 0, %72 ]
  %82 = trunc nuw nsw i64 %indvars.iv to i32
  %83 = invoke { <2 x float>, float } @_ZNK3P3D13MeshPrototype9getVertexEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %82)
          to label %84 unwind label %90

84:                                               ; preds = %.lr.ph
  %.fca.0.extract39 = extractvalue { <2 x float>, float } %83, 0
  %.fca.1.extract40 = extractvalue { <2 x float>, float } %83, 1
  %85 = load ptr, ptr %3, align 8, !tbaa !33
  %.idx = mul i64 %indvars.iv, 12
  %86 = getelementptr inbounds i8, ptr %85, i64 %.idx
  store <2 x float> %.fca.0.extract39, ptr %86, align 4, !tbaa !34
  %87 = getelementptr inbounds i8, ptr %86, i64 8
  store float %.fca.1.extract40, ptr %87, align 4, !tbaa !34
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %88 = load i64, ptr %58, align 8, !tbaa !15
  %89 = icmp ugt i64 %88, %indvars.iv.next
  br i1 %89, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !36

90:                                               ; preds = %.lr.ph
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %244

92:                                               ; preds = %._crit_edge
  store ptr %79, ptr %4, align 8, !tbaa !33
  %93 = load i64, ptr %62, align 8, !tbaa !32
  %.not151 = icmp eq i64 %93, 0
  br i1 %.not151, label %._crit_edge150, label %.lr.ph149

._crit_edge150:                                   ; preds = %98, %92
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %106 unwind label %174

94:                                               ; preds = %._crit_edge
  %95 = landingpad { ptr, i32 }
          cleanup
  br label %243

.lr.ph149:                                        ; preds = %92, %98
  %indvars.iv153 = phi i64 [ %indvars.iv.next154, %98 ], [ 0, %92 ]
  %96 = trunc nuw nsw i64 %indvars.iv153 to i32
  %97 = invoke { i64, i32 } @_ZNK3P3D13MeshPrototype11getTriangleEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %96)
          to label %98 unwind label %104

98:                                               ; preds = %.lr.ph149
  %.fca.0.extract = extractvalue { i64, i32 } %97, 0
  %.fca.1.extract = extractvalue { i64, i32 } %97, 1
  %.sroa.033.0.extract.trunc = trunc i64 %.fca.0.extract to i32
  %.idx156 = mul i64 %indvars.iv153, 12
  %99 = getelementptr inbounds i8, ptr %79, i64 %.idx156
  store i32 %.sroa.033.0.extract.trunc, ptr %99, align 4, !tbaa !38
  %.sroa.033.4.extract.shift = lshr i64 %.fca.0.extract, 32
  %.sroa.033.4.extract.trunc = trunc nuw i64 %.sroa.033.4.extract.shift to i32
  %100 = getelementptr inbounds i8, ptr %99, i64 4
  store i32 %.sroa.033.4.extract.trunc, ptr %100, align 4, !tbaa !38
  %101 = getelementptr inbounds i8, ptr %99, i64 8
  store i32 %.fca.1.extract, ptr %101, align 4, !tbaa !38
  %indvars.iv.next154 = add nuw nsw i64 %indvars.iv153, 1
  %102 = load i64, ptr %62, align 8, !tbaa !32
  %103 = icmp ugt i64 %102, %indvars.iv.next154
  br i1 %103, label %.lr.ph149, label %._crit_edge150, !llvm.loop !39

104:                                              ; preds = %.lr.ph149
  %105 = landingpad { ptr, i32 }
          cleanup
  br label %243

106:                                              ; preds = %._crit_edge150
  invoke void @_ZN3P3D8Graphics13BufferElementC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_14BufferDataType4InfoEbb(ptr noundef nonnull align 8 dereferenceable(82) %7, ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(45) @_ZN3P3D8Graphics14BufferDataType6FLOAT3E, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %107 unwind label %176

107:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #8
  call void @_ZNSaIN3P3D8Graphics13BufferElementEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  invoke void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EEC2ESt16initializer_listIS2_ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr nonnull %7, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %108 unwind label %178

108:                                              ; preds = %107
  invoke void @_ZN3P3D8Graphics12BufferLayoutC2ERKSt6vectorINS0_13BufferElementESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(28) %5, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %109 unwind label %180

109:                                              ; preds = %108
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #8
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %7) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  %110 = load i64, ptr %58, align 8, !tbaa !15
  %111 = mul i64 %110, 12
  store i64 %111, ptr %12, align 8, !tbaa !40
  invoke void @_ZSt11make_uniqueIN3P3D8Graphics12VertexBufferEJRNS1_12BufferLayoutERPfmEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr.2") align 8 %11, ptr noundef nonnull align 8 dereferenceable(28) %5, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %112 unwind label %183

112:                                              ; preds = %109
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #8
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %15) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %114 unwind label %185

114:                                              ; preds = %112
  invoke void @_ZN3P3D8Graphics13BufferElementC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_14BufferDataType4InfoEbb(ptr noundef nonnull align 8 dereferenceable(82) %15, ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(45) @_ZN3P3D8Graphics14BufferDataType6FLOAT3E, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %115 unwind label %187

115:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %18) #8
  call void @_ZNSaIN3P3D8Graphics13BufferElementEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #8
  invoke void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EEC2ESt16initializer_listIS2_ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr nonnull %15, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %116 unwind label %189

116:                                              ; preds = %115
  invoke void @_ZN3P3D8Graphics12BufferLayoutC2ERKSt6vectorINS0_13BufferElementESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(28) %13, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %117 unwind label %191

117:                                              ; preds = %116
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #8
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %15) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #8
  %118 = getelementptr inbounds i8, ptr %1, i64 24
  %119 = call noundef ptr @_ZNKSt12__shared_ptrIA_KN3P3D6VectorIfLm3EEELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %118) #8
  store ptr %119, ptr %20, align 8, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #8
  %120 = load i64, ptr %58, align 8, !tbaa !15
  %121 = mul i64 %120, 12
  store i64 %121, ptr %21, align 8, !tbaa !40
  invoke void @_ZSt11make_uniqueIN3P3D8Graphics12VertexBufferEJRNS1_12BufferLayoutEPKfmEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr.2") align 8 %19, ptr noundef nonnull align 8 dereferenceable(28) %13, ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %122 unwind label %194

122:                                              ; preds = %117
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef nonnull align 8 dereferenceable(8) %19) #8
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %22) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %23) #8
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %24) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %25) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %26) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %26)
          to label %124 unwind label %196

124:                                              ; preds = %122
  invoke void @_ZN3P3D8Graphics13BufferElementC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_14BufferDataType4InfoEbb(ptr noundef nonnull align 8 dereferenceable(82) %24, ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(45) @_ZN3P3D8Graphics14BufferDataType6FLOAT2E, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %125 unwind label %198

125:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %27) #8
  call void @_ZNSaIN3P3D8Graphics13BufferElementEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #8
  invoke void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EEC2ESt16initializer_listIS2_ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr nonnull %24, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %126 unwind label %200

126:                                              ; preds = %125
  invoke void @_ZN3P3D8Graphics12BufferLayoutC2ERKSt6vectorINS0_13BufferElementESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(28) %22, ptr noundef nonnull align 8 dereferenceable(24) %23)
          to label %127 unwind label %202

127:                                              ; preds = %126
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #8
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %27) #8
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %24) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %26) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %24) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %29) #8
  %128 = getelementptr inbounds i8, ptr %1, i64 40
  %129 = call noundef ptr @_ZNKSt12__shared_ptrIA_KN3P3D6VectorIfLm2EEELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %128) #8
  store ptr %129, ptr %29, align 8, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %30) #8
  %130 = load i64, ptr %58, align 8, !tbaa !15
  %131 = shl i64 %130, 3
  store i64 %131, ptr %30, align 8, !tbaa !40
  invoke void @_ZSt11make_uniqueIN3P3D8Graphics12VertexBufferEJRNS1_12BufferLayoutEPKfmEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr.2") align 8 %28, ptr noundef nonnull align 8 dereferenceable(28) %22, ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30)
          to label %132 unwind label %205

132:                                              ; preds = %127
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef nonnull align 8 dereferenceable(8) %28) #8
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %31) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %32) #8
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %33) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %34) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %35) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %35) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %35)
          to label %134 unwind label %207

134:                                              ; preds = %132
  invoke void @_ZN3P3D8Graphics13BufferElementC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_14BufferDataType4InfoEbb(ptr noundef nonnull align 8 dereferenceable(82) %33, ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull align 8 dereferenceable(45) @_ZN3P3D8Graphics14BufferDataType6FLOAT3E, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %135 unwind label %209

135:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %36) #8
  call void @_ZNSaIN3P3D8Graphics13BufferElementEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #8
  invoke void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EEC2ESt16initializer_listIS2_ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %32, ptr nonnull %33, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %36)
          to label %136 unwind label %211

136:                                              ; preds = %135
  invoke void @_ZN3P3D8Graphics12BufferLayoutC2ERKSt6vectorINS0_13BufferElementESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(28) %31, ptr noundef nonnull align 8 dereferenceable(24) %32)
          to label %137 unwind label %213

137:                                              ; preds = %136
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #8
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %36) #8
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %33) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %35) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %35) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %34) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %33) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %32) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %37) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %38) #8
  %138 = getelementptr inbounds i8, ptr %1, i64 56
  %139 = call noundef ptr @_ZNKSt12__shared_ptrIA_KN3P3D6VectorIfLm3EEELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %138) #8
  store ptr %139, ptr %38, align 8, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %39) #8
  %140 = load i64, ptr %58, align 8, !tbaa !15
  %141 = mul i64 %140, 12
  store i64 %141, ptr %39, align 8, !tbaa !40
  invoke void @_ZSt11make_uniqueIN3P3D8Graphics12VertexBufferEJRNS1_12BufferLayoutEPKfmEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr.2") align 8 %37, ptr noundef nonnull align 8 dereferenceable(28) %31, ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull align 8 dereferenceable(8) %39)
          to label %142 unwind label %216

142:                                              ; preds = %137
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull align 8 dereferenceable(8) %37) #8
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %37) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %39) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %38) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %37) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %40) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %41) #8
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %42) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %43) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %44) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %44) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef nonnull @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %44)
          to label %144 unwind label %218

144:                                              ; preds = %142
  invoke void @_ZN3P3D8Graphics13BufferElementC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_14BufferDataType4InfoEbb(ptr noundef nonnull align 8 dereferenceable(82) %42, ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef nonnull align 8 dereferenceable(45) @_ZN3P3D8Graphics14BufferDataType6FLOAT3E, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %145 unwind label %220

145:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %45) #8
  call void @_ZNSaIN3P3D8Graphics13BufferElementEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %45) #8
  invoke void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EEC2ESt16initializer_listIS2_ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %41, ptr nonnull %42, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %45)
          to label %146 unwind label %222

146:                                              ; preds = %145
  invoke void @_ZN3P3D8Graphics12BufferLayoutC2ERKSt6vectorINS0_13BufferElementESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(28) %40, ptr noundef nonnull align 8 dereferenceable(24) %41)
          to label %147 unwind label %224

147:                                              ; preds = %146
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %41) #8
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %45) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %45) #8
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %42) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %44) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %44) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %43) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %42) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %41) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %46) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %47) #8
  %148 = getelementptr inbounds i8, ptr %1, i64 72
  %149 = call noundef ptr @_ZNKSt12__shared_ptrIA_KN3P3D6VectorIfLm3EEELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %148) #8
  store ptr %149, ptr %47, align 8, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %48) #8
  %150 = load i64, ptr %58, align 8, !tbaa !15
  %151 = mul i64 %150, 12
  store i64 %151, ptr %48, align 8, !tbaa !40
  invoke void @_ZSt11make_uniqueIN3P3D8Graphics12VertexBufferEJRNS1_12BufferLayoutEPKfmEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr.2") align 8 %46, ptr noundef nonnull align 8 dereferenceable(28) %40, ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull align 8 dereferenceable(8) %48)
          to label %152 unwind label %227

152:                                              ; preds = %147
  %153 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(8) %56, ptr noundef nonnull align 8 dereferenceable(8) %46) #8
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %46) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %48) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %47) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %46) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %49) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %50) #8
  %154 = load i64, ptr %62, align 8, !tbaa !32
  %155 = mul i64 %154, 3
  store i64 %155, ptr %50, align 8, !tbaa !40
  invoke void @_ZSt11make_uniqueIN3P3D8Graphics11IndexBufferEJRPjmEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr") align 8 %49, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %50)
          to label %156 unwind label %229

156:                                              ; preds = %152
  %157 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef nonnull align 8 dereferenceable(8) %49) #8
  call void @_ZNSt10unique_ptrIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %49) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %50) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %49) #8
  %158 = getelementptr inbounds i8, ptr %0, i64 8
  %159 = load ptr, ptr %158, align 8, !tbaa !41
  %160 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %52) #8
  invoke void @_ZN3P3D8Graphics11VertexArray9addBufferEPNS0_12VertexBufferE(ptr noundef nonnull align 8 dereferenceable(16) %159, ptr noundef %160)
          to label %161 unwind label %231

161:                                              ; preds = %156
  %162 = load ptr, ptr %158, align 8, !tbaa !41
  %163 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %53) #8
  invoke void @_ZN3P3D8Graphics11VertexArray9addBufferEPNS0_12VertexBufferE(ptr noundef nonnull align 8 dereferenceable(16) %162, ptr noundef %163)
          to label %164 unwind label %231

164:                                              ; preds = %161
  %165 = load ptr, ptr %158, align 8, !tbaa !41
  %166 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %54) #8
  invoke void @_ZN3P3D8Graphics11VertexArray9addBufferEPNS0_12VertexBufferE(ptr noundef nonnull align 8 dereferenceable(16) %165, ptr noundef %166)
          to label %167 unwind label %231

167:                                              ; preds = %164
  %168 = load ptr, ptr %158, align 8, !tbaa !41
  %169 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %55) #8
  invoke void @_ZN3P3D8Graphics11VertexArray9addBufferEPNS0_12VertexBufferE(ptr noundef nonnull align 8 dereferenceable(16) %168, ptr noundef %169)
          to label %170 unwind label %231

170:                                              ; preds = %167
  %171 = load ptr, ptr %158, align 8, !tbaa !41
  %172 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %56) #8
  invoke void @_ZN3P3D8Graphics11VertexArray9addBufferEPNS0_12VertexBufferE(ptr noundef nonnull align 8 dereferenceable(16) %171, ptr noundef %172)
          to label %173 unwind label %231

173:                                              ; preds = %170
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %40) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %40) #8
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %31) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %31) #8
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %22) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #8
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %13) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #8
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %5) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  ret void

174:                                              ; preds = %._crit_edge150
  %175 = landingpad { ptr, i32 }
          cleanup
  br label %182

176:                                              ; preds = %106
  %177 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit145

178:                                              ; preds = %107
  %179 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit145.loopexit

180:                                              ; preds = %108
  %181 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  br label %.loopexit145.loopexit

.loopexit145.loopexit:                            ; preds = %180, %178
  %.pn = phi { ptr, i32 } [ %181, %180 ], [ %179, %178 ]
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #8
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %7) #8
  br label %.loopexit145

.loopexit145:                                     ; preds = %.loopexit145.loopexit, %176
  %.pn.pn = phi { ptr, i32 } [ %177, %176 ], [ %.pn, %.loopexit145.loopexit ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  br label %182

182:                                              ; preds = %.loopexit145, %174
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %.loopexit145 ], [ %175, %174 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  br label %242

183:                                              ; preds = %109
  %184 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  br label %241

185:                                              ; preds = %112
  %186 = landingpad { ptr, i32 }
          cleanup
  br label %193

187:                                              ; preds = %114
  %188 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit144

189:                                              ; preds = %115
  %190 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit144.loopexit

191:                                              ; preds = %116
  %192 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  br label %.loopexit144.loopexit

.loopexit144.loopexit:                            ; preds = %191, %189
  %.pn111 = phi { ptr, i32 } [ %192, %191 ], [ %190, %189 ]
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #8
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %15) #8
  br label %.loopexit144

.loopexit144:                                     ; preds = %.loopexit144.loopexit, %187
  %.pn111.pn = phi { ptr, i32 } [ %188, %187 ], [ %.pn111, %.loopexit144.loopexit ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #8
  br label %193

193:                                              ; preds = %.loopexit144, %185
  %.pn111.pn.pn = phi { ptr, i32 } [ %.pn111.pn, %.loopexit144 ], [ %186, %185 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #8
  br label %240

194:                                              ; preds = %117
  %195 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #8
  br label %239

196:                                              ; preds = %122
  %197 = landingpad { ptr, i32 }
          cleanup
  br label %204

198:                                              ; preds = %124
  %199 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit143

200:                                              ; preds = %125
  %201 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit143.loopexit

202:                                              ; preds = %126
  %203 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #8
  br label %.loopexit143.loopexit

.loopexit143.loopexit:                            ; preds = %202, %200
  %.pn115 = phi { ptr, i32 } [ %203, %202 ], [ %201, %200 ]
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %27) #8
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %24) #8
  br label %.loopexit143

.loopexit143:                                     ; preds = %.loopexit143.loopexit, %198
  %.pn115.pn = phi { ptr, i32 } [ %199, %198 ], [ %.pn115, %.loopexit143.loopexit ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #8
  br label %204

204:                                              ; preds = %.loopexit143, %196
  %.pn115.pn.pn = phi { ptr, i32 } [ %.pn115.pn, %.loopexit143 ], [ %197, %196 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %26) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %24) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #8
  br label %238

205:                                              ; preds = %127
  %206 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #8
  br label %237

207:                                              ; preds = %132
  %208 = landingpad { ptr, i32 }
          cleanup
  br label %215

209:                                              ; preds = %134
  %210 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit142

211:                                              ; preds = %135
  %212 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit142.loopexit

213:                                              ; preds = %136
  %214 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #8
  br label %.loopexit142.loopexit

.loopexit142.loopexit:                            ; preds = %213, %211
  %.pn119 = phi { ptr, i32 } [ %214, %213 ], [ %212, %211 ]
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %36) #8
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %33) #8
  br label %.loopexit142

.loopexit142:                                     ; preds = %.loopexit142.loopexit, %209
  %.pn119.pn = phi { ptr, i32 } [ %210, %209 ], [ %.pn119, %.loopexit142.loopexit ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #8
  br label %215

215:                                              ; preds = %.loopexit142, %207
  %.pn119.pn.pn = phi { ptr, i32 } [ %.pn119.pn, %.loopexit142 ], [ %208, %207 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %35) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %35) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %34) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %33) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %32) #8
  br label %236

216:                                              ; preds = %137
  %217 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %39) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %38) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %37) #8
  br label %235

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

220:                                              ; preds = %144
  %221 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

222:                                              ; preds = %145
  %223 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.loopexit

224:                                              ; preds = %146
  %225 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %41) #8
  br label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %224, %222
  %.pn123 = phi { ptr, i32 } [ %225, %224 ], [ %223, %222 ]
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %45) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %45) #8
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %42) #8
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %220
  %.pn123.pn = phi { ptr, i32 } [ %221, %220 ], [ %.pn123, %.loopexit.loopexit ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #8
  br label %226

226:                                              ; preds = %.loopexit, %218
  %.pn123.pn.pn = phi { ptr, i32 } [ %.pn123.pn, %.loopexit ], [ %219, %218 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %44) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %44) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %43) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %42) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %41) #8
  br label %234

227:                                              ; preds = %147
  %228 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %48) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %47) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %46) #8
  br label %233

229:                                              ; preds = %152
  %230 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %50) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %49) #8
  br label %233

231:                                              ; preds = %170, %167, %164, %161, %156
  %232 = landingpad { ptr, i32 }
          cleanup
  br label %233

233:                                              ; preds = %231, %229, %227
  %.pn127 = phi { ptr, i32 } [ %232, %231 ], [ %230, %229 ], [ %228, %227 ]
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %40) #8
  br label %234

234:                                              ; preds = %233, %226
  %.pn127.pn = phi { ptr, i32 } [ %.pn127, %233 ], [ %.pn123.pn.pn, %226 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %40) #8
  br label %235

235:                                              ; preds = %234, %216
  %.pn127.pn.pn = phi { ptr, i32 } [ %.pn127.pn, %234 ], [ %217, %216 ]
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %31) #8
  br label %236

236:                                              ; preds = %235, %215
  %.pn127.pn.pn.pn = phi { ptr, i32 } [ %.pn127.pn.pn, %235 ], [ %.pn119.pn.pn, %215 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %31) #8
  br label %237

237:                                              ; preds = %236, %205
  %.pn127.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn127.pn.pn.pn, %236 ], [ %206, %205 ]
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %22) #8
  br label %238

238:                                              ; preds = %237, %204
  %.pn127.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn127.pn.pn.pn.pn, %237 ], [ %.pn115.pn.pn, %204 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #8
  br label %239

239:                                              ; preds = %238, %194
  %.pn127.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn127.pn.pn.pn.pn.pn, %238 ], [ %195, %194 ]
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %13) #8
  br label %240

240:                                              ; preds = %239, %193
  %.pn127.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn127.pn.pn.pn.pn.pn.pn, %239 ], [ %.pn111.pn.pn, %193 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #8
  br label %241

241:                                              ; preds = %240, %183
  %.pn127.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn127.pn.pn.pn.pn.pn.pn.pn, %240 ], [ %184, %183 ]
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %5) #8
  br label %242

242:                                              ; preds = %241, %182
  %.pn127.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn127.pn.pn.pn.pn.pn.pn.pn.pn, %241 ], [ %.pn.pn.pn, %182 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #8
  br label %243

243:                                              ; preds = %242, %104, %94
  %.pn138 = phi { ptr, i32 } [ %105, %104 ], [ %.pn127.pn.pn.pn.pn.pn.pn.pn.pn.pn, %242 ], [ %95, %94 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  br label %244

244:                                              ; preds = %243, %90, %80
  %.pn140 = phi { ptr, i32 } [ %91, %90 ], [ %.pn138, %243 ], [ %81, %80 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %57) #8
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %56) #8
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %55) #8
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %54) #8
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %53) #8
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %52) #8
  call void @_ZNSt10unique_ptrIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %51) #8
  resume { ptr, i32 } %.pn140
}

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

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

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #4

declare i32 @__gxx_personality_v0(...)

declare { <2 x float>, float } @_ZNK3P3D13MeshPrototype9getVertexEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #1

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

declare { i64, i32 } @_ZNK3P3D13MeshPrototype11getTriangleEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 #5 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 #5 align 2

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIN3P3D8Graphics12VertexBufferEJRNS1_12BufferLayoutERPfmEENSt8__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 #7

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIN3P3D8Graphics12VertexBufferEJRNS1_12BufferLayoutEPKfmEENSt8__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 #7

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIN3P3D8Graphics11IndexBufferEJRPjmEENSt8__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 #7

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

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

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

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

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

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

!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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !14, i64 16}
!9 = !{!"_ZTSN3P3D13MeshPrototypeE", !10, i64 0, !13, i64 8, !14, i64 16, !14, i64 20}
!10 = !{!"_ZTSN3P3D20UniqueAlignedPointerIfEE", !11, i64 0}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!"_ZTSN3P3D20UniqueAlignedPointerIiEE", !11, i64 0}
!14 = !{!"int", !12, i64 0}
!15 = !{!16, !30, i64 80}
!16 = !{!"_ZTSN3P3D8Graphics11IndexedMeshE", !17, i64 0, !18, i64 24, !24, i64 32, !24, i64 40, !24, i64 48, !24, i64 56, !24, i64 64, !24, i64 72, !30, i64 80, !30, i64 88}
!17 = !{!"_ZTSN3P3D8Graphics12AbstractMeshE", !11, i64 8, !14, i64 16}
!18 = !{!"_ZTSSt10unique_ptrIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EE", !19, i64 0}
!19 = !{!"_ZTSSt15__uniq_ptr_dataIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_ELb1ELb1EE", !20, i64 0}
!20 = !{!"_ZTSSt15__uniq_ptr_implIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EE", !21, i64 0}
!21 = !{!"_ZTSSt5tupleIJPN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EEE", !22, i64 0}
!22 = !{!"_ZTSSt11_Tuple_implILm0EJPN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EEE", !23, i64 0}
!23 = !{!"_ZTSSt10_Head_baseILm0EPN3P3D8Graphics11IndexBufferELb0EE", !11, i64 0}
!24 = !{!"_ZTSSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE", !25, i64 0}
!25 = !{!"_ZTSSt15__uniq_ptr_dataIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_ELb1ELb1EE", !26, i64 0}
!26 = !{!"_ZTSSt15__uniq_ptr_implIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE", !27, i64 0}
!27 = !{!"_ZTSSt5tupleIJPN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEE", !28, i64 0}
!28 = !{!"_ZTSSt11_Tuple_implILm0EJPN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEE", !29, i64 0}
!29 = !{!"_ZTSSt10_Head_baseILm0EPN3P3D8Graphics12VertexBufferELb0EE", !11, i64 0}
!30 = !{!"long", !12, i64 0}
!31 = !{!9, !14, i64 20}
!32 = !{!16, !30, i64 88}
!33 = !{!11, !11, i64 0}
!34 = !{!35, !35, i64 0}
!35 = !{!"float", !12, i64 0}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = !{!14, !14, i64 0}
!39 = distinct !{!39, !37}
!40 = !{!30, !30, i64 0}
!41 = !{!17, !11, i64 8}


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