; LLVM IR from merpheus-dev/LavaEngine :: src/Platforms/OpenGL (GLRenderObject)

; 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.Lava::Mesh" = type { ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32 }
%"struct.Lava::Material" = type <{ ptr, ptr, ptr, %"struct.glm::vec", [4 x i8], ptr, i32, i8, i8, [2 x i8], [3 x float], float, float, [4 x i8] }>
%"struct.glm::vec" = type { %union.anon, %union.anon.0, %union.anon.1 }
%union.anon = type { float }
%union.anon.0 = type { float }
%union.anon.1 = type { float }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.8" = type { %"class.std::__shared_ptr.9" }
%"class.std::__shared_ptr.9" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.2" = type { %"class.std::__shared_ptr.3" }
%"class.std::__shared_ptr.3" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.5" = type { %"class.std::__shared_ptr.6" }
%"class.std::__shared_ptr.6" = type { ptr, %"class.std::__shared_count" }
%"struct.Lava::OpenGL::GLRenderObject" = type { %"struct.Lava::RenderObject", %"class.std::shared_ptr", %"class.std::shared_ptr", %"class.std::shared_ptr.2", %"class.std::shared_ptr", %"class.std::shared_ptr", ptr, ptr }
%"struct.Lava::RenderObject" = type { %"struct.Lava::Mesh", %"struct.Lava::Material" }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Lava6OpenGL14GLRenderObjectC2ENS_4MeshENS_8MaterialE(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef byval(%"struct.Lava::Mesh") align 8 %1, ptr noundef byval(%"struct.Lava::Material") align 8 %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::shared_ptr", align 8
  %8 = alloca %"class.std::shared_ptr.8", align 8
  %9 = alloca %"class.std::shared_ptr", align 8
  %10 = alloca %"class.std::shared_ptr.8", align 8
  %11 = alloca %"class.std::shared_ptr", align 8
  %12 = alloca %"class.std::shared_ptr.8", align 8
  %13 = alloca %"class.std::shared_ptr", align 8
  %14 = alloca %"class.std::shared_ptr.8", align 8
  %15 = alloca %"class.std::shared_ptr.2", align 8
  %16 = alloca %"class.std::shared_ptr.5", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  %17 = load ptr, ptr %4, align 8
  call void @_ZN4Lava12RenderObjectC2Ev(ptr noundef nonnull align 8 dereferenceable(176) %17) #8
  %18 = getelementptr inbounds %"struct.Lava::OpenGL::GLRenderObject", ptr %17, i32 0, i32 1
  call void @_ZNSt10shared_ptrIN4Lava6OpenGL14GLVertexBufferEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #8
  %19 = getelementptr inbounds %"struct.Lava::OpenGL::GLRenderObject", ptr %17, i32 0, i32 2
  call void @_ZNSt10shared_ptrIN4Lava6OpenGL14GLVertexBufferEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #8
  %20 = getelementptr inbounds %"struct.Lava::OpenGL::GLRenderObject", ptr %17, i32 0, i32 3
  call void @_ZNSt10shared_ptrIN4Lava6OpenGL13GLIndexBufferEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #8
  %21 = getelementptr inbounds %"struct.Lava::OpenGL::GLRenderObject", ptr %17, i32 0, i32 4
  call void @_ZNSt10shared_ptrIN4Lava6OpenGL14GLVertexBufferEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #8
  %22 = getelementptr inbounds %"struct.Lava::OpenGL::GLRenderObject", ptr %17, i32 0, i32 5
  call void @_ZNSt10shared_ptrIN4Lava6OpenGL14GLVertexBufferEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #8
  %23 = getelementptr inbounds %"struct.Lava::RenderObject", ptr %17, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 8 %1, i64 96, i1 false), !tbaa.struct !9
  %24 = getelementptr inbounds %"struct.Lava::RenderObject", ptr %17, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %2, i64 76, i1 false), !tbaa.struct !12
  %25 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 56) #9
          to label %26 unwind label %143

26:                                               ; preds = %3
  invoke void @_ZN4Lava6OpenGL5GLVAOC1Ev(ptr noundef nonnull align 8 dereferenceable(56) %25)
          to label %27 unwind label %147

27:                                               ; preds = %26
  %28 = getelementptr inbounds %"struct.Lava::OpenGL::GLRenderObject", ptr %17, i32 0, i32 6
  store ptr %25, ptr %28, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #8
  %29 = getelementptr inbounds %"struct.Lava::RenderObject", ptr %17, i32 0, i32 0
  %30 = getelementptr inbounds %"struct.Lava::Mesh", ptr %29, i32 0, i32 0
  %31 = getelementptr inbounds %"struct.Lava::RenderObject", ptr %17, i32 0, i32 0
  %32 = getelementptr inbounds %"struct.Lava::Mesh", ptr %31, i32 0, i32 1
  invoke void @_Z9CreateRefIN4Lava6OpenGL14GLVertexBufferEJRPfRjEESt10shared_ptrIT_EDpOT0_(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %7, ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 4 dereferenceable(4) %32)
          to label %33 unwind label %151

33:                                               ; preds = %27
  %34 = getelementptr inbounds %"struct.Lava::OpenGL::GLRenderObject", ptr %17, i32 0, i32 1
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN4Lava6OpenGL14GLVertexBufferEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef nonnull align 8 dereferenceable(16) %7) #8
  call void @_ZNSt12__shared_ptrIN4Lava6OpenGL14GLVertexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #8
  %36 = getelementptr inbounds %"struct.Lava::OpenGL::GLRenderObject", ptr %17, i32 0, i32 1
  %37 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4Lava6OpenGL14GLVertexBufferELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %36) #8
  %38 = getelementptr inbounds %"struct.Lava::RenderObject", ptr %17, i32 0, i32 0
  %39 = getelementptr inbounds %"struct.Lava::Mesh", ptr %38, i32 0, i32 10
  %40 = load ptr, ptr %39, align 8, !tbaa !29
  %41 = getelementptr inbounds %"struct.Lava::RenderObject", ptr %17, i32 0, i32 0
  %42 = getelementptr inbounds %"struct.Lava::Mesh", ptr %41, i32 0, i32 11
  %43 = load ptr, ptr %37, align 8, !tbaa !30
  %44 = getelementptr inbounds ptr, ptr %43, i64 6
  %45 = load ptr, ptr %44, align 8
  invoke void %45(ptr noundef nonnull align 8 dereferenceable(36) %37, ptr noundef %40, ptr noundef %42)
          to label %46 unwind label %143

46:                                               ; preds = %33
  %47 = getelementptr inbounds %"struct.Lava::OpenGL::GLRenderObject", ptr %17, i32 0, i32 6
  %48 = load ptr, ptr %47, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #8
  %49 = getelementptr inbounds %"struct.Lava::OpenGL::GLRenderObject", ptr %17, i32 0, i32 1
  call void @_ZNSt10shared_ptrIN4Lava12VertexBufferEEC2INS0_6OpenGL14GLVertexBufferEvEERKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %49) #8
  %50 = load ptr, ptr %48, align 8, !tbaa !30
  %51 = getelementptr inbounds ptr, ptr %50, i64 4
  %52 = load ptr, ptr %51, align 8
  invoke void %52(ptr noundef nonnull align 8 dereferenceable(56) %48, ptr noundef nonnull align 8 dereferenceable(16) %8, i32 noundef 0)
          to label %53 unwind label %155

53:                                               ; preds = %46
  call void @_ZNSt12__shared_ptrIN4Lava12VertexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #8
  %54 = getelementptr inbounds %"struct.Lava::RenderObject", ptr %17, i32 0, i32 0
  %55 = getelementptr inbounds %"struct.Lava::Mesh", ptr %54, i32 0, i32 8
  %56 = getelementptr inbounds %"struct.Lava::RenderObject", ptr %17, i32 0, i32 0
  %57 = getelementptr inbounds %"struct.Lava::Mesh", ptr %56, i32 0, i32 9
  invoke void @_Z9CreateRefIN4Lava6OpenGL14GLVertexBufferEJRPfRjEESt10shared_ptrIT_EDpOT0_(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %9, ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull align 4 dereferenceable(4) %57)
          to label %58 unwind label %159

58:                                               ; preds = %53
  %59 = getelementptr inbounds %"struct.Lava::OpenGL::GLRenderObject", ptr %17, i32 0, i32 4
  %60 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN4Lava6OpenGL14GLVertexBufferEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(16) %59, ptr noundef nonnull align 8 dereferenceable(16) %9) #8
  call void @_ZNSt12__shared_ptrIN4Lava6OpenGL14GLVertexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #8
  %61 = getelementptr inbounds %"struct.Lava::OpenGL::GLRenderObject", ptr %17, i32 0, i32 4
  %62 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4Lava6OpenGL14GLVertexBufferELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %61) #8
  %63 = getelementptr inbounds %"struct.Lava::RenderObject", ptr %17, i32 0, i32 0
  %64 = getelementptr inbounds %"struct.Lava::Mesh", ptr %63, i32 0, i32 10
  %65 = load ptr, ptr %64, align 8, !tbaa !29
  %66 = getelementptr inbounds %"struct.Lava::RenderObject", ptr %17, i32 0, i32 0
  %67 = getelementptr inbounds %"struct.Lava::Mesh", ptr %66, i32 0, i32 11
  %68 = load ptr, ptr %62, align 8, !tbaa !30
  %69 = getelementptr inbounds ptr, ptr %68, i64 6
  %70 = load ptr, ptr %69, align 8
  invoke void %70(ptr noundef nonnull align 8 dereferenceable(36) %62, ptr noundef %65, ptr noundef %67)
          to label %71 unwind label %143

71:                                               ; preds = %58
  %72 = getelementptr inbounds %"struct.Lava::OpenGL::GLRenderObject", ptr %17, i32 0, i32 6
  %73 = load ptr, ptr %72, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #8
  %74 = getelementptr inbounds %"struct.Lava::OpenGL::GLRenderObject", ptr %17, i32 0, i32 4
  call void @_ZNSt10shared_ptrIN4Lava12VertexBufferEEC2INS0_6OpenGL14GLVertexBufferEvEERKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %74) #8
  %75 = load ptr, ptr %73, align 8, !tbaa !30
  %76 = getelementptr inbounds ptr, ptr %75, i64 4
  %77 = load ptr, ptr %76, align 8
  invoke void %77(ptr noundef nonnull align 8 dereferenceable(56) %73, ptr noundef nonnull align 8 dereferenceable(16) %10, i32 noundef 1)
          to label %78 unwind label %163

78:                                               ; preds = %71
  call void @_ZNSt12__shared_ptrIN4Lava12VertexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #8
  %79 = getelementptr inbounds %"struct.Lava::RenderObject", ptr %17, i32 0, i32 0
  %80 = getelementptr inbounds %"struct.Lava::Mesh", ptr %79, i32 0, i32 2
  %81 = getelementptr inbounds %"struct.Lava::RenderObject", ptr %17, i32 0, i32 0
  %82 = getelementptr inbounds %"struct.Lava::Mesh", ptr %81, i32 0, i32 3
  invoke void @_Z9CreateRefIN4Lava6OpenGL14GLVertexBufferEJRPfRjEESt10shared_ptrIT_EDpOT0_(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %11, ptr noundef nonnull align 8 dereferenceable(8) %80, ptr noundef nonnull align 4 dereferenceable(4) %82)
          to label %83 unwind label %167

83:                                               ; preds = %78
  %84 = getelementptr inbounds %"struct.Lava::OpenGL::GLRenderObject", ptr %17, i32 0, i32 2
  %85 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN4Lava6OpenGL14GLVertexBufferEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(16) %84, ptr noundef nonnull align 8 dereferenceable(16) %11) #8
  call void @_ZNSt12__shared_ptrIN4Lava6OpenGL14GLVertexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  %86 = getelementptr inbounds %"struct.Lava::OpenGL::GLRenderObject", ptr %17, i32 0, i32 2
  %87 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4Lava6OpenGL14GLVertexBufferELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %86) #8
  %88 = getelementptr inbounds %"struct.Lava::RenderObject", ptr %17, i32 0, i32 0
  %89 = getelementptr inbounds %"struct.Lava::Mesh", ptr %88, i32 0, i32 10
  %90 = load ptr, ptr %89, align 8, !tbaa !29
  %91 = getelementptr inbounds %"struct.Lava::RenderObject", ptr %17, i32 0, i32 0
  %92 = getelementptr inbounds %"struct.Lava::Mesh", ptr %91, i32 0, i32 11
  %93 = load ptr, ptr %87, align 8, !tbaa !30
  %94 = getelementptr inbounds ptr, ptr %93, i64 6
  %95 = load ptr, ptr %94, align 8
  invoke void %95(ptr noundef nonnull align 8 dereferenceable(36) %87, ptr noundef %90, ptr noundef %92)
          to label %96 unwind label %143

96:                                               ; preds = %83
  %97 = getelementptr inbounds %"struct.Lava::OpenGL::GLRenderObject", ptr %17, i32 0, i32 6
  %98 = load ptr, ptr %97, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #8
  %99 = getelementptr inbounds %"struct.Lava::OpenGL::GLRenderObject", ptr %17, i32 0, i32 2
  call void @_ZNSt10shared_ptrIN4Lava12VertexBufferEEC2INS0_6OpenGL14GLVertexBufferEvEERKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %99) #8
  %100 = load ptr, ptr %98, align 8, !tbaa !30
  %101 = getelementptr inbounds ptr, ptr %100, i64 4
  %102 = load ptr, ptr %101, align 8
  invoke void %102(ptr noundef nonnull align 8 dereferenceable(56) %98, ptr noundef nonnull align 8 dereferenceable(16) %12, i32 noundef 2)
          to label %103 unwind label %171

103:                                              ; preds = %96
  call void @_ZNSt12__shared_ptrIN4Lava12VertexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #8
  %104 = getelementptr inbounds %"struct.Lava::RenderObject", ptr %17, i32 0, i32 0
  %105 = getelementptr inbounds %"struct.Lava::Mesh", ptr %104, i32 0, i32 4
  %106 = getelementptr inbounds %"struct.Lava::RenderObject", ptr %17, i32 0, i32 0
  %107 = getelementptr inbounds %"struct.Lava::Mesh", ptr %106, i32 0, i32 5
  invoke void @_Z9CreateRefIN4Lava6OpenGL14GLVertexBufferEJRPfRjEESt10shared_ptrIT_EDpOT0_(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %13, ptr noundef nonnull align 8 dereferenceable(8) %105, ptr noundef nonnull align 4 dereferenceable(4) %107)
          to label %108 unwind label %175

108:                                              ; preds = %103
  %109 = getelementptr inbounds %"struct.Lava::OpenGL::GLRenderObject", ptr %17, i32 0, i32 5
  %110 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN4Lava6OpenGL14GLVertexBufferEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(16) %109, ptr noundef nonnull align 8 dereferenceable(16) %13) #8
  call void @_ZNSt12__shared_ptrIN4Lava6OpenGL14GLVertexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #8
  %111 = getelementptr inbounds %"struct.Lava::OpenGL::GLRenderObject", ptr %17, i32 0, i32 5
  %112 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4Lava6OpenGL14GLVertexBufferELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %111) #8
  %113 = getelementptr inbounds %"struct.Lava::RenderObject", ptr %17, i32 0, i32 0
  %114 = getelementptr inbounds %"struct.Lava::Mesh", ptr %113, i32 0, i32 10
  %115 = load ptr, ptr %114, align 8, !tbaa !29
  %116 = getelementptr inbounds %"struct.Lava::RenderObject", ptr %17, i32 0, i32 0
  %117 = getelementptr inbounds %"struct.Lava::Mesh", ptr %116, i32 0, i32 11
  %118 = load ptr, ptr %112, align 8, !tbaa !30
  %119 = getelementptr inbounds ptr, ptr %118, i64 6
  %120 = load ptr, ptr %119, align 8
  invoke void %120(ptr noundef nonnull align 8 dereferenceable(36) %112, ptr noundef %115, ptr noundef %117)
          to label %121 unwind label %143

121:                                              ; preds = %108
  %122 = getelementptr inbounds %"struct.Lava::OpenGL::GLRenderObject", ptr %17, i32 0, i32 6
  %123 = load ptr, ptr %122, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #8
  %124 = getelementptr inbounds %"struct.Lava::OpenGL::GLRenderObject", ptr %17, i32 0, i32 5
  call void @_ZNSt10shared_ptrIN4Lava12VertexBufferEEC2INS0_6OpenGL14GLVertexBufferEvEERKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(16) %124) #8
  %125 = load ptr, ptr %123, align 8, !tbaa !30
  %126 = getelementptr inbounds ptr, ptr %125, i64 4
  %127 = load ptr, ptr %126, align 8
  invoke void %127(ptr noundef nonnull align 8 dereferenceable(56) %123, ptr noundef nonnull align 8 dereferenceable(16) %14, i32 noundef 3)
          to label %128 unwind label %179

128:                                              ; preds = %121
  call void @_ZNSt12__shared_ptrIN4Lava12VertexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #8
  %129 = getelementptr inbounds %"struct.Lava::RenderObject", ptr %17, i32 0, i32 0
  %130 = getelementptr inbounds %"struct.Lava::Mesh", ptr %129, i32 0, i32 6
  %131 = getelementptr inbounds %"struct.Lava::RenderObject", ptr %17, i32 0, i32 0
  %132 = getelementptr inbounds %"struct.Lava::Mesh", ptr %131, i32 0, i32 7
  invoke void @_Z9CreateRefIN4Lava6OpenGL13GLIndexBufferEJRPiRjEESt10shared_ptrIT_EDpOT0_(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.2") align 8 %15, ptr noundef nonnull align 8 dereferenceable(8) %130, ptr noundef nonnull align 4 dereferenceable(4) %132)
          to label %133 unwind label %183

133:                                              ; preds = %128
  %134 = getelementptr inbounds %"struct.Lava::OpenGL::GLRenderObject", ptr %17, i32 0, i32 3
  %135 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN4Lava6OpenGL13GLIndexBufferEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(16) %134, ptr noundef nonnull align 8 dereferenceable(16) %15) #8
  call void @_ZNSt12__shared_ptrIN4Lava6OpenGL13GLIndexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #8
  %136 = getelementptr inbounds %"struct.Lava::OpenGL::GLRenderObject", ptr %17, i32 0, i32 6
  %137 = load ptr, ptr %136, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #8
  %138 = getelementptr inbounds %"struct.Lava::OpenGL::GLRenderObject", ptr %17, i32 0, i32 3
  call void @_ZNSt10shared_ptrIN4Lava11IndexBufferEEC2INS0_6OpenGL13GLIndexBufferEvEERKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %138) #8
  %139 = load ptr, ptr %137, align 8, !tbaa !30
  %140 = getelementptr inbounds ptr, ptr %139, i64 5
  %141 = load ptr, ptr %140, align 8
  invoke void %141(ptr noundef nonnull align 8 dereferenceable(56) %137, ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %142 unwind label %187

142:                                              ; preds = %133
  call void @_ZNSt12__shared_ptrIN4Lava11IndexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #8
  ret void

143:                                              ; preds = %108, %83, %58, %33, %3
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %5, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %6, align 4
  br label %191

147:                                              ; preds = %26
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %5, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %6, align 4
  call void @_ZdlPvm(ptr noundef %25, i64 noundef 56) #10
  br label %191

151:                                              ; preds = %27
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %5, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #8
  br label %191

155:                                              ; preds = %46
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %5, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %6, align 4
  call void @_ZNSt12__shared_ptrIN4Lava12VertexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #8
  br label %191

159:                                              ; preds = %53
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %5, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #8
  br label %191

163:                                              ; preds = %71
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %5, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %6, align 4
  call void @_ZNSt12__shared_ptrIN4Lava12VertexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #8
  br label %191

167:                                              ; preds = %78
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %5, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  br label %191

171:                                              ; preds = %96
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %5, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %6, align 4
  call void @_ZNSt12__shared_ptrIN4Lava12VertexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  br label %191

175:                                              ; preds = %103
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %5, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #8
  br label %191

179:                                              ; preds = %121
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %5, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %6, align 4
  call void @_ZNSt12__shared_ptrIN4Lava12VertexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #8
  br label %191

183:                                              ; preds = %128
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %5, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #8
  br label %191

187:                                              ; preds = %133
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %5, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %6, align 4
  call void @_ZNSt12__shared_ptrIN4Lava11IndexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #8
  br label %191

191:                                              ; preds = %187, %183, %179, %175, %171, %167, %163, %159, %155, %151, %147, %143
  call void @_ZNSt12__shared_ptrIN4Lava6OpenGL14GLVertexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #8
  call void @_ZNSt12__shared_ptrIN4Lava6OpenGL14GLVertexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #8
  call void @_ZNSt12__shared_ptrIN4Lava6OpenGL13GLIndexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #8
  call void @_ZNSt12__shared_ptrIN4Lava6OpenGL14GLVertexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #8
  call void @_ZNSt12__shared_ptrIN4Lava6OpenGL14GLVertexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #8
  br label %192

192:                                              ; preds = %191
  %193 = load ptr, ptr %5, align 8
  %194 = load i32, ptr %6, align 4
  %195 = insertvalue { ptr, i32 } poison, ptr %193, 0
  %196 = insertvalue { ptr, i32 } %195, i32 %194, 1
  resume { ptr, i32 } %196
}

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

declare void @_ZN4Lava6OpenGL5GLVAOC1Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #5

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #6

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9CreateRefIN4Lava6OpenGL14GLVertexBufferEJRPfRjEESt10shared_ptrIT_EDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) #0

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9CreateRefIN4Lava6OpenGL13GLIndexBufferEJRPiRjEESt10shared_ptrIT_EDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.2") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) #0

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 8, !5, i64 8, i64 4, !10, i64 16, i64 8, !5, i64 24, i64 4, !10, i64 32, i64 8, !5, i64 40, i64 4, !10, i64 48, i64 8, !5, i64 56, i64 4, !10, i64 64, i64 8, !5, i64 72, i64 4, !10, i64 80, i64 8, !5, i64 88, i64 4, !10}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !5, i64 24, i64 4, !13, i64 28, i64 4, !13, i64 32, i64 4, !13, i64 40, i64 8, !5, i64 48, i64 4, !10, i64 52, i64 1, !14, i64 53, i64 1, !14, i64 56, i64 12, !13, i64 68, i64 4, !16, i64 72, i64 4, !16}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"float", !7, i64 0}
!18 = !{!19, !6, i64 256}
!19 = !{!"_ZTSN4Lava6OpenGL14GLRenderObjectE", !20, i64 0, !24, i64 176, !24, i64 192, !27, i64 208, !24, i64 224, !24, i64 240, !6, i64 256, !6, i64 264}
!20 = !{!"_ZTSN4Lava12RenderObjectE", !21, i64 0, !22, i64 96}
!21 = !{!"_ZTSN4Lava4MeshE", !6, i64 0, !11, i64 8, !6, i64 16, !11, i64 24, !6, i64 32, !11, i64 40, !6, i64 48, !11, i64 56, !6, i64 64, !11, i64 72, !6, i64 80, !11, i64 88}
!22 = !{!"_ZTSN4Lava8MaterialE", !6, i64 0, !6, i64 8, !6, i64 16, !23, i64 24, !6, i64 40, !11, i64 48, !15, i64 52, !15, i64 53, !7, i64 56, !17, i64 68, !17, i64 72}
!23 = !{!"_ZTSN3glm3vecILi3EfLNS_9qualifierE0EEE", !7, i64 0, !7, i64 4, !7, i64 8}
!24 = !{!"_ZTSSt10shared_ptrIN4Lava6OpenGL14GLVertexBufferEE", !25, i64 0}
!25 = !{!"_ZTSSt12__shared_ptrIN4Lava6OpenGL14GLVertexBufferELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !26, i64 8}
!26 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!27 = !{!"_ZTSSt10shared_ptrIN4Lava6OpenGL13GLIndexBufferEE", !28, i64 0}
!28 = !{!"_ZTSSt12__shared_ptrIN4Lava6OpenGL13GLIndexBufferELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !26, i64 8}
!29 = !{!20, !6, i64 80}
!30 = !{!31, !31, i64 0}
!31 = !{!"vtable pointer", !8, i64 0}


; 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.Lava::Mesh" = type { ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32 }
%"struct.Lava::Material" = type <{ ptr, ptr, ptr, %"struct.glm::vec", [4 x i8], ptr, i32, i8, i8, [2 x i8], [3 x float], float, float, [4 x i8] }>
%"struct.glm::vec" = type { %union.anon, %union.anon.0, %union.anon.1 }
%union.anon = type { float }
%union.anon.0 = type { float }
%union.anon.1 = type { float }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.8" = type { %"class.std::__shared_ptr.9" }
%"class.std::__shared_ptr.9" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.2" = type { %"class.std::__shared_ptr.3" }
%"class.std::__shared_ptr.3" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.5" = type { %"class.std::__shared_ptr.6" }
%"class.std::__shared_ptr.6" = type { ptr, %"class.std::__shared_count" }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Lava6OpenGL14GLRenderObjectC2ENS_4MeshENS_8MaterialE(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr nocapture noundef readonly byval(%"struct.Lava::Mesh") align 8 %1, ptr nocapture noundef readonly byval(%"struct.Lava::Material") align 8 %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::shared_ptr", align 8
  %5 = alloca %"class.std::shared_ptr.8", align 8
  %6 = alloca %"class.std::shared_ptr", align 8
  %7 = alloca %"class.std::shared_ptr.8", align 8
  %8 = alloca %"class.std::shared_ptr", align 8
  %9 = alloca %"class.std::shared_ptr.8", align 8
  %10 = alloca %"class.std::shared_ptr", align 8
  %11 = alloca %"class.std::shared_ptr.8", align 8
  %12 = alloca %"class.std::shared_ptr.2", align 8
  %13 = alloca %"class.std::shared_ptr.5", align 8
  tail call void @_ZN4Lava12RenderObjectC2Ev(ptr noundef nonnull align 8 dereferenceable(176) %0) #8
  %14 = getelementptr inbounds i8, ptr %0, i64 176
  tail call void @_ZNSt10shared_ptrIN4Lava6OpenGL14GLVertexBufferEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #8
  %15 = getelementptr inbounds i8, ptr %0, i64 192
  tail call void @_ZNSt10shared_ptrIN4Lava6OpenGL14GLVertexBufferEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #8
  %16 = getelementptr inbounds i8, ptr %0, i64 208
  tail call void @_ZNSt10shared_ptrIN4Lava6OpenGL13GLIndexBufferEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #8
  %17 = getelementptr inbounds i8, ptr %0, i64 224
  tail call void @_ZNSt10shared_ptrIN4Lava6OpenGL14GLVertexBufferEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #8
  %18 = getelementptr inbounds i8, ptr %0, i64 240
  tail call void @_ZNSt10shared_ptrIN4Lava6OpenGL14GLVertexBufferEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef nonnull align 8 dereferenceable(96) %1, i64 96, i1 false), !tbaa.struct !5
  %19 = getelementptr inbounds i8, ptr %0, i64 96
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(76) %19, ptr noundef nonnull align 8 dereferenceable(76) %2, i64 76, i1 false), !tbaa.struct !12
  %20 = invoke noalias noundef nonnull dereferenceable(56) ptr @_Znwm(i64 noundef 56) #9
          to label %21 unwind label %94

21:                                               ; preds = %3
  invoke void @_ZN4Lava6OpenGL5GLVAOC1Ev(ptr noundef nonnull align 8 dereferenceable(56) %20)
          to label %22 unwind label %96

22:                                               ; preds = %21
  %23 = getelementptr inbounds i8, ptr %0, i64 256
  store ptr %20, ptr %23, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #8
  %24 = getelementptr inbounds i8, ptr %0, i64 8
  invoke void @_Z9CreateRefIN4Lava6OpenGL14GLVertexBufferEJRPfRjEESt10shared_ptrIT_EDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr") align 8 %4, ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 4 dereferenceable(4) %24)
          to label %25 unwind label %98

25:                                               ; preds = %22
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN4Lava6OpenGL14GLVertexBufferEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(16) %4) #8
  call void @_ZNSt12__shared_ptrIN4Lava6OpenGL14GLVertexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #8
  %27 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4Lava6OpenGL14GLVertexBufferELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %14) #8
  %28 = getelementptr inbounds i8, ptr %0, i64 80
  %29 = load ptr, ptr %28, align 8, !tbaa !29
  %30 = getelementptr inbounds i8, ptr %0, i64 88
  %31 = load ptr, ptr %27, align 8, !tbaa !30
  %32 = getelementptr inbounds i8, ptr %31, i64 48
  %33 = load ptr, ptr %32, align 8
  invoke void %33(ptr noundef nonnull align 8 dereferenceable(36) %27, ptr noundef %29, ptr noundef nonnull %30)
          to label %34 unwind label %94

34:                                               ; preds = %25
  %35 = load ptr, ptr %23, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #8
  call void @_ZNSt10shared_ptrIN4Lava12VertexBufferEEC2INS0_6OpenGL14GLVertexBufferEvEERKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %14) #8
  %36 = load ptr, ptr %35, align 8, !tbaa !30
  %37 = getelementptr inbounds i8, ptr %36, i64 32
  %38 = load ptr, ptr %37, align 8
  invoke void %38(ptr noundef nonnull align 8 dereferenceable(56) %35, ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef 0)
          to label %39 unwind label %100

39:                                               ; preds = %34
  call void @_ZNSt12__shared_ptrIN4Lava12VertexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #8
  %40 = getelementptr inbounds i8, ptr %0, i64 64
  %41 = getelementptr inbounds i8, ptr %0, i64 72
  invoke void @_Z9CreateRefIN4Lava6OpenGL14GLVertexBufferEJRPfRjEESt10shared_ptrIT_EDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr") align 8 %6, ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef nonnull align 4 dereferenceable(4) %41)
          to label %42 unwind label %102

42:                                               ; preds = %39
  %43 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN4Lava6OpenGL14GLVertexBufferEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %6) #8
  call void @_ZNSt12__shared_ptrIN4Lava6OpenGL14GLVertexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #8
  %44 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4Lava6OpenGL14GLVertexBufferELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %17) #8
  %45 = load ptr, ptr %28, align 8, !tbaa !29
  %46 = load ptr, ptr %44, align 8, !tbaa !30
  %47 = getelementptr inbounds i8, ptr %46, i64 48
  %48 = load ptr, ptr %47, align 8
  invoke void %48(ptr noundef nonnull align 8 dereferenceable(36) %44, ptr noundef %45, ptr noundef nonnull %30)
          to label %49 unwind label %94

49:                                               ; preds = %42
  %50 = load ptr, ptr %23, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #8
  call void @_ZNSt10shared_ptrIN4Lava12VertexBufferEEC2INS0_6OpenGL14GLVertexBufferEvEERKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %17) #8
  %51 = load ptr, ptr %50, align 8, !tbaa !30
  %52 = getelementptr inbounds i8, ptr %51, i64 32
  %53 = load ptr, ptr %52, align 8
  invoke void %53(ptr noundef nonnull align 8 dereferenceable(56) %50, ptr noundef nonnull align 8 dereferenceable(16) %7, i32 noundef 1)
          to label %54 unwind label %104

54:                                               ; preds = %49
  call void @_ZNSt12__shared_ptrIN4Lava12VertexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #8
  %55 = getelementptr inbounds i8, ptr %0, i64 16
  %56 = getelementptr inbounds i8, ptr %0, i64 24
  invoke void @_Z9CreateRefIN4Lava6OpenGL14GLVertexBufferEJRPfRjEESt10shared_ptrIT_EDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr") align 8 %8, ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull align 4 dereferenceable(4) %56)
          to label %57 unwind label %106

57:                                               ; preds = %54
  %58 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN4Lava6OpenGL14GLVertexBufferEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %8) #8
  call void @_ZNSt12__shared_ptrIN4Lava6OpenGL14GLVertexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #8
  %59 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4Lava6OpenGL14GLVertexBufferELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %15) #8
  %60 = load ptr, ptr %28, align 8, !tbaa !29
  %61 = load ptr, ptr %59, align 8, !tbaa !30
  %62 = getelementptr inbounds i8, ptr %61, i64 48
  %63 = load ptr, ptr %62, align 8
  invoke void %63(ptr noundef nonnull align 8 dereferenceable(36) %59, ptr noundef %60, ptr noundef nonnull %30)
          to label %64 unwind label %94

64:                                               ; preds = %57
  %65 = load ptr, ptr %23, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #8
  call void @_ZNSt10shared_ptrIN4Lava12VertexBufferEEC2INS0_6OpenGL14GLVertexBufferEvEERKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %15) #8
  %66 = load ptr, ptr %65, align 8, !tbaa !30
  %67 = getelementptr inbounds i8, ptr %66, i64 32
  %68 = load ptr, ptr %67, align 8
  invoke void %68(ptr noundef nonnull align 8 dereferenceable(56) %65, ptr noundef nonnull align 8 dereferenceable(16) %9, i32 noundef 2)
          to label %69 unwind label %108

69:                                               ; preds = %64
  call void @_ZNSt12__shared_ptrIN4Lava12VertexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #8
  %70 = getelementptr inbounds i8, ptr %0, i64 32
  %71 = getelementptr inbounds i8, ptr %0, i64 40
  invoke void @_Z9CreateRefIN4Lava6OpenGL14GLVertexBufferEJRPfRjEESt10shared_ptrIT_EDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr") align 8 %10, ptr noundef nonnull align 8 dereferenceable(8) %70, ptr noundef nonnull align 4 dereferenceable(4) %71)
          to label %72 unwind label %110

72:                                               ; preds = %69
  %73 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN4Lava6OpenGL14GLVertexBufferEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %10) #8
  call void @_ZNSt12__shared_ptrIN4Lava6OpenGL14GLVertexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #8
  %74 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4Lava6OpenGL14GLVertexBufferELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %18) #8
  %75 = load ptr, ptr %28, align 8, !tbaa !29
  %76 = load ptr, ptr %74, align 8, !tbaa !30
  %77 = getelementptr inbounds i8, ptr %76, i64 48
  %78 = load ptr, ptr %77, align 8
  invoke void %78(ptr noundef nonnull align 8 dereferenceable(36) %74, ptr noundef %75, ptr noundef nonnull %30)
          to label %79 unwind label %94

79:                                               ; preds = %72
  %80 = load ptr, ptr %23, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #8
  call void @_ZNSt10shared_ptrIN4Lava12VertexBufferEEC2INS0_6OpenGL14GLVertexBufferEvEERKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %18) #8
  %81 = load ptr, ptr %80, align 8, !tbaa !30
  %82 = getelementptr inbounds i8, ptr %81, i64 32
  %83 = load ptr, ptr %82, align 8
  invoke void %83(ptr noundef nonnull align 8 dereferenceable(56) %80, ptr noundef nonnull align 8 dereferenceable(16) %11, i32 noundef 3)
          to label %84 unwind label %112

84:                                               ; preds = %79
  call void @_ZNSt12__shared_ptrIN4Lava12VertexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #8
  %85 = getelementptr inbounds i8, ptr %0, i64 48
  %86 = getelementptr inbounds i8, ptr %0, i64 56
  invoke void @_Z9CreateRefIN4Lava6OpenGL13GLIndexBufferEJRPiRjEESt10shared_ptrIT_EDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.2") align 8 %12, ptr noundef nonnull align 8 dereferenceable(8) %85, ptr noundef nonnull align 4 dereferenceable(4) %86)
          to label %87 unwind label %114

87:                                               ; preds = %84
  %88 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN4Lava6OpenGL13GLIndexBufferEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %12) #8
  call void @_ZNSt12__shared_ptrIN4Lava6OpenGL13GLIndexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #8
  %89 = load ptr, ptr %23, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #8
  call void @_ZNSt10shared_ptrIN4Lava11IndexBufferEEC2INS0_6OpenGL13GLIndexBufferEvEERKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %16) #8
  %90 = load ptr, ptr %89, align 8, !tbaa !30
  %91 = getelementptr inbounds i8, ptr %90, i64 40
  %92 = load ptr, ptr %91, align 8
  invoke void %92(ptr noundef nonnull align 8 dereferenceable(56) %89, ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %93 unwind label %116

93:                                               ; preds = %87
  call void @_ZNSt12__shared_ptrIN4Lava11IndexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #8
  ret void

94:                                               ; preds = %72, %57, %42, %25, %3
  %95 = landingpad { ptr, i32 }
          cleanup
  br label %118

96:                                               ; preds = %21
  %97 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %20, i64 noundef 56) #10
  br label %118

98:                                               ; preds = %22
  %99 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #8
  br label %118

100:                                              ; preds = %34
  %101 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN4Lava12VertexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #8
  br label %118

102:                                              ; preds = %39
  %103 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #8
  br label %118

104:                                              ; preds = %49
  %105 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN4Lava12VertexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  br label %118

106:                                              ; preds = %54
  %107 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #8
  br label %118

108:                                              ; preds = %64
  %109 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN4Lava12VertexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  br label %118

110:                                              ; preds = %69
  %111 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #8
  br label %118

112:                                              ; preds = %79
  %113 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN4Lava12VertexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #8
  br label %118

114:                                              ; preds = %84
  %115 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #8
  br label %118

116:                                              ; preds = %87
  %117 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN4Lava11IndexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #8
  br label %118

118:                                              ; preds = %116, %114, %112, %110, %108, %106, %104, %102, %100, %98, %96, %94
  %.pn = phi { ptr, i32 } [ %117, %116 ], [ %115, %114 ], [ %113, %112 ], [ %95, %94 ], [ %111, %110 ], [ %109, %108 ], [ %107, %106 ], [ %105, %104 ], [ %103, %102 ], [ %101, %100 ], [ %99, %98 ], [ %97, %96 ]
  call void @_ZNSt12__shared_ptrIN4Lava6OpenGL14GLVertexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #8
  call void @_ZNSt12__shared_ptrIN4Lava6OpenGL14GLVertexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #8
  call void @_ZNSt12__shared_ptrIN4Lava6OpenGL13GLIndexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #8
  call void @_ZNSt12__shared_ptrIN4Lava6OpenGL14GLVertexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #8
  call void @_ZNSt12__shared_ptrIN4Lava6OpenGL14GLVertexBufferELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #8
  resume { ptr, i32 } %.pn
}

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

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

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

; Function Attrs: mustprogress 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) #3

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

declare i32 @__gxx_personality_v0(...)

declare void @_ZN4Lava6OpenGL5GLVAOC1Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #5

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #6

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9CreateRefIN4Lava6OpenGL14GLVertexBufferEJRPfRjEESt10shared_ptrIT_EDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0

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

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

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

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

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{i64 0, i64 8, !6, i64 8, i64 4, !10, i64 16, i64 8, !6, i64 24, i64 4, !10, i64 32, i64 8, !6, i64 40, i64 4, !10, i64 48, i64 8, !6, i64 56, i64 4, !10, i64 64, i64 8, !6, i64 72, i64 4, !10, i64 80, i64 8, !6, i64 88, i64 4, !10}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{i64 0, i64 8, !6, i64 8, i64 8, !6, i64 16, i64 8, !6, i64 24, i64 4, !13, i64 28, i64 4, !13, i64 32, i64 4, !13, i64 40, i64 8, !6, i64 48, i64 4, !10, i64 52, i64 1, !14, i64 53, i64 1, !14, i64 56, i64 12, !13, i64 68, i64 4, !16, i64 72, i64 4, !16}
!13 = !{!8, !8, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"bool", !8, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"float", !8, i64 0}
!18 = !{!19, !7, i64 256}
!19 = !{!"_ZTSN4Lava6OpenGL14GLRenderObjectE", !20, i64 0, !24, i64 176, !24, i64 192, !27, i64 208, !24, i64 224, !24, i64 240, !7, i64 256, !7, i64 264}
!20 = !{!"_ZTSN4Lava12RenderObjectE", !21, i64 0, !22, i64 96}
!21 = !{!"_ZTSN4Lava4MeshE", !7, i64 0, !11, i64 8, !7, i64 16, !11, i64 24, !7, i64 32, !11, i64 40, !7, i64 48, !11, i64 56, !7, i64 64, !11, i64 72, !7, i64 80, !11, i64 88}
!22 = !{!"_ZTSN4Lava8MaterialE", !7, i64 0, !7, i64 8, !7, i64 16, !23, i64 24, !7, i64 40, !11, i64 48, !15, i64 52, !15, i64 53, !8, i64 56, !17, i64 68, !17, i64 72}
!23 = !{!"_ZTSN3glm3vecILi3EfLNS_9qualifierE0EEE", !8, i64 0, !8, i64 4, !8, i64 8}
!24 = !{!"_ZTSSt10shared_ptrIN4Lava6OpenGL14GLVertexBufferEE", !25, i64 0}
!25 = !{!"_ZTSSt12__shared_ptrIN4Lava6OpenGL14GLVertexBufferELN9__gnu_cxx12_Lock_policyE2EE", !7, i64 0, !26, i64 8}
!26 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !7, i64 0}
!27 = !{!"_ZTSSt10shared_ptrIN4Lava6OpenGL13GLIndexBufferEE", !28, i64 0}
!28 = !{!"_ZTSSt12__shared_ptrIN4Lava6OpenGL13GLIndexBufferELN9__gnu_cxx12_Lock_policyE2EE", !7, i64 0, !26, i64 8}
!29 = !{!20, !7, i64 80}
!30 = !{!31, !31, i64 0}
!31 = !{!"vtable pointer", !9, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass