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

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

%"class.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.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.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.P3D::Graphics::AbstractMesh" = type <{ ptr, ptr, i32, [4 x i8] }>

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3P3D8Graphics11IndexedMesh5closeEv(ptr noundef nonnull align 8 dereferenceable(96) %0) unnamed_addr #1 align 2 {
  %2 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %3 = load ptr, ptr %2, align 8
  %4 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %3, i32 0, i32 2
  %5 = call noundef zeroext i1 @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #2
  br i1 %5, label %6, label %12

6:                                                ; preds = %1
  %7 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %3, i32 0, i32 2
  %8 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #2
  %9 = load ptr, ptr %8, align 8, !tbaa !9
  %10 = getelementptr inbounds ptr, ptr %9, i64 2
  %11 = load ptr, ptr %10, align 8
  call void %11(ptr noundef nonnull align 8 dereferenceable(64) %8)
  br label %12

12:                                               ; preds = %6, %1
  %13 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %3, i32 0, i32 1
  %14 = call noundef zeroext i1 @_ZNKSt10unique_ptrIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #2
  br i1 %14, label %15, label %21

15:                                               ; preds = %12
  %16 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %3, i32 0, i32 1
  %17 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #2
  %18 = load ptr, ptr %17, align 8, !tbaa !9
  %19 = getelementptr inbounds ptr, ptr %18, i64 2
  %20 = load ptr, ptr %19, align 8
  call void %20(ptr noundef nonnull align 8 dereferenceable(12) %17)
  br label %21

21:                                               ; preds = %15, %12
  %22 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %3, i32 0, i32 3
  %23 = call noundef zeroext i1 @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #2
  br i1 %23, label %24, label %30

24:                                               ; preds = %21
  %25 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %3, i32 0, i32 3
  %26 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #2
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  %28 = getelementptr inbounds ptr, ptr %27, i64 2
  %29 = load ptr, ptr %28, align 8
  call void %29(ptr noundef nonnull align 8 dereferenceable(64) %26)
  br label %30

30:                                               ; preds = %24, %21
  %31 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %3, i32 0, i32 4
  %32 = call noundef zeroext i1 @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #2
  br i1 %32, label %33, label %39

33:                                               ; preds = %30
  %34 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %3, i32 0, i32 4
  %35 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %34) #2
  %36 = load ptr, ptr %35, align 8, !tbaa !9
  %37 = getelementptr inbounds ptr, ptr %36, i64 2
  %38 = load ptr, ptr %37, align 8
  call void %38(ptr noundef nonnull align 8 dereferenceable(64) %35)
  br label %39

39:                                               ; preds = %33, %30
  %40 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %3, i32 0, i32 5
  %41 = call noundef zeroext i1 @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %40) #2
  br i1 %41, label %42, label %48

42:                                               ; preds = %39
  %43 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %3, i32 0, i32 5
  %44 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %43) #2
  %45 = load ptr, ptr %44, align 8, !tbaa !9
  %46 = getelementptr inbounds ptr, ptr %45, i64 2
  %47 = load ptr, ptr %46, align 8
  call void %47(ptr noundef nonnull align 8 dereferenceable(64) %44)
  br label %48

48:                                               ; preds = %42, %39
  %49 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %3, i32 0, i32 6
  %50 = call noundef zeroext i1 @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %49) #2
  br i1 %50, label %51, label %57

51:                                               ; preds = %48
  %52 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %3, i32 0, i32 6
  %53 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %52) #2
  %54 = load ptr, ptr %53, align 8, !tbaa !9
  %55 = getelementptr inbounds ptr, ptr %54, i64 2
  %56 = load ptr, ptr %55, align 8
  call void %56(ptr noundef nonnull align 8 dereferenceable(64) %53)
  br label %57

57:                                               ; preds = %51, %48
  %58 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %3, i32 0, i32 7
  %59 = call noundef zeroext i1 @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %58) #2
  br i1 %59, label %60, label %66

60:                                               ; preds = %57
  %61 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %3, i32 0, i32 7
  %62 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %61) #2
  %63 = load ptr, ptr %62, align 8, !tbaa !9
  %64 = getelementptr inbounds ptr, ptr %63, i64 2
  %65 = load ptr, ptr %64, align 8
  call void %65(ptr noundef nonnull align 8 dereferenceable(64) %62)
  br label %66

66:                                               ; preds = %60, %57
  %67 = getelementptr inbounds %"class.P3D::Graphics::AbstractMesh", ptr %3, i32 0, i32 1
  %68 = load ptr, ptr %67, align 8, !tbaa !11
  %69 = icmp ne ptr %68, null
  br i1 %69, label %70, label %76

70:                                               ; preds = %66
  %71 = getelementptr inbounds %"class.P3D::Graphics::AbstractMesh", ptr %3, i32 0, i32 1
  %72 = load ptr, ptr %71, align 8, !tbaa !11
  %73 = load ptr, ptr %72, align 8, !tbaa !9
  %74 = getelementptr inbounds ptr, ptr %73, i64 2
  %75 = load ptr, ptr %74, align 8
  call void %75(ptr noundef nonnull align 8 dereferenceable(16) %72)
  br label %76

76:                                               ; preds = %70, %66
  %77 = getelementptr inbounds %"class.P3D::Graphics::AbstractMesh", ptr %3, i32 0, i32 1
  store ptr null, ptr %77, align 8, !tbaa !11
  %78 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %3, i32 0, i32 1
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EEaSEDn(ptr noundef nonnull align 8 dereferenceable(8) %78, ptr null) #2
  %80 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %3, i32 0, i32 2
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEDn(ptr noundef nonnull align 8 dereferenceable(8) %80, ptr null) #2
  %82 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %3, i32 0, i32 3
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEDn(ptr noundef nonnull align 8 dereferenceable(8) %82, ptr null) #2
  %84 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %3, i32 0, i32 4
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEDn(ptr noundef nonnull align 8 dereferenceable(8) %84, ptr null) #2
  %86 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %3, i32 0, i32 5
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEDn(ptr noundef nonnull align 8 dereferenceable(8) %86, ptr null) #2
  %88 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %3, i32 0, i32 6
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEDn(ptr noundef nonnull align 8 dereferenceable(8) %88, ptr null) #2
  %90 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %3, i32 0, i32 7
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEDn(ptr noundef nonnull align 8 dereferenceable(8) %90, ptr null) #2
  %92 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %3, i32 0, i32 9
  store i64 0, ptr %92, align 8, !tbaa !14
  %93 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %3, i32 0, i32 8
  store i64 0, ptr %93, align 8, !tbaa !29
  ret void
}

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

attributes #0 = { 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 #1 = { 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 #2 = { nounwind }

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

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


; 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"

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3P3D8Graphics11IndexedMesh5closeEv(ptr noundef nonnull align 8 dereferenceable(96) %0) unnamed_addr #1 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 32
  %3 = tail call noundef zeroext i1 @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #3
  br i1 %3, label %4, label %9

4:                                                ; preds = %1
  %5 = tail call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #3
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %6, i64 16
  %8 = load ptr, ptr %7, align 8
  tail call void %8(ptr noundef nonnull align 8 dereferenceable(64) %5)
  br label %9

9:                                                ; preds = %4, %1
  %10 = getelementptr inbounds i8, ptr %0, i64 24
  %11 = tail call noundef zeroext i1 @_ZNKSt10unique_ptrIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #3
  br i1 %11, label %12, label %17

12:                                               ; preds = %9
  %13 = tail call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #3
  %14 = load ptr, ptr %13, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %14, i64 16
  %16 = load ptr, ptr %15, align 8
  tail call void %16(ptr noundef nonnull align 8 dereferenceable(12) %13)
  br label %17

17:                                               ; preds = %12, %9
  %18 = getelementptr inbounds i8, ptr %0, i64 40
  %19 = tail call noundef zeroext i1 @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #3
  br i1 %19, label %20, label %25

20:                                               ; preds = %17
  %21 = tail call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #3
  %22 = load ptr, ptr %21, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %22, i64 16
  %24 = load ptr, ptr %23, align 8
  tail call void %24(ptr noundef nonnull align 8 dereferenceable(64) %21)
  br label %25

25:                                               ; preds = %20, %17
  %26 = getelementptr inbounds i8, ptr %0, i64 48
  %27 = tail call noundef zeroext i1 @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #3
  br i1 %27, label %28, label %33

28:                                               ; preds = %25
  %29 = tail call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #3
  %30 = load ptr, ptr %29, align 8, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %30, i64 16
  %32 = load ptr, ptr %31, align 8
  tail call void %32(ptr noundef nonnull align 8 dereferenceable(64) %29)
  br label %33

33:                                               ; preds = %28, %25
  %34 = getelementptr inbounds i8, ptr %0, i64 56
  %35 = tail call noundef zeroext i1 @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %34) #3
  br i1 %35, label %36, label %41

36:                                               ; preds = %33
  %37 = tail call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %34) #3
  %38 = load ptr, ptr %37, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %38, i64 16
  %40 = load ptr, ptr %39, align 8
  tail call void %40(ptr noundef nonnull align 8 dereferenceable(64) %37)
  br label %41

41:                                               ; preds = %36, %33
  %42 = getelementptr inbounds i8, ptr %0, i64 64
  %43 = tail call noundef zeroext i1 @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %42) #3
  br i1 %43, label %44, label %49

44:                                               ; preds = %41
  %45 = tail call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %42) #3
  %46 = load ptr, ptr %45, align 8, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %46, i64 16
  %48 = load ptr, ptr %47, align 8
  tail call void %48(ptr noundef nonnull align 8 dereferenceable(64) %45)
  br label %49

49:                                               ; preds = %44, %41
  %50 = getelementptr inbounds i8, ptr %0, i64 72
  %51 = tail call noundef zeroext i1 @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %50) #3
  br i1 %51, label %52, label %57

52:                                               ; preds = %49
  %53 = tail call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %50) #3
  %54 = load ptr, ptr %53, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %54, i64 16
  %56 = load ptr, ptr %55, align 8
  tail call void %56(ptr noundef nonnull align 8 dereferenceable(64) %53)
  br label %57

57:                                               ; preds = %52, %49
  %58 = getelementptr inbounds i8, ptr %0, i64 8
  %59 = load ptr, ptr %58, align 8, !tbaa !8
  %.not = icmp eq ptr %59, null
  br i1 %.not, label %64, label %60

60:                                               ; preds = %57
  %61 = load ptr, ptr %59, align 8, !tbaa !5
  %62 = getelementptr inbounds i8, ptr %61, i64 16
  %63 = load ptr, ptr %62, align 8
  tail call void %63(ptr noundef nonnull align 8 dereferenceable(16) %59)
  br label %64

64:                                               ; preds = %60, %57
  store ptr null, ptr %58, align 8, !tbaa !8
  %65 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EEaSEDn(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr null) #3
  %66 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEDn(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr null) #3
  %67 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEDn(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr null) #3
  %68 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEDn(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr null) #3
  %69 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEDn(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr null) #3
  %70 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEDn(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr null) #3
  %71 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEDn(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr null) #3
  %72 = getelementptr inbounds i8, ptr %0, i64 80
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %72, i8 0, i64 16, i1 false)
  ret void
}

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

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

attributes #0 = { 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 #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !10, i64 8}
!9 = !{!"_ZTSN3P3D8Graphics12AbstractMeshE", !10, i64 8, !12, i64 16}
!10 = !{!"any pointer", !11, i64 0}
!11 = !{!"omnipotent char", !7, i64 0}
!12 = !{!"int", !11, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InstCombinePass,MemCpyOptPass,SROAPass,TailCallElimPass