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

; 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] }>

@_ZTVN3P3D8Graphics11IndexedMeshE = external dso_local unnamed_addr constant { [6 x ptr] }, align 8

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3P3D8Graphics11IndexedMeshC2EOS1_(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef nonnull align 8 dereferenceable(96) %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %7 = load ptr, ptr %3, align 8
  call void @_ZN3P3D8Graphics12AbstractMeshC2Ev(ptr noundef nonnull align 8 dereferenceable(20) %7)
  store ptr getelementptr inbounds inrange(-16, 32) ({ [6 x ptr] }, ptr @_ZTVN3P3D8Graphics11IndexedMeshE, i32 0, i32 0, i32 2), ptr %7, align 8, !tbaa !9
  %8 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %7, i32 0, i32 1
  call void @_ZNSt10unique_ptrIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EEC2IS4_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr null) #3
  %9 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %7, i32 0, i32 2
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEC2IS4_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr null) #3
  %10 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %7, i32 0, i32 3
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEC2IS4_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr null) #3
  %11 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %7, i32 0, i32 4
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEC2IS4_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr null) #3
  %12 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %7, i32 0, i32 5
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEC2IS4_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr null) #3
  %13 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %7, i32 0, i32 6
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEC2IS4_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr null) #3
  %14 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %7, i32 0, i32 7
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEC2IS4_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr null) #3
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds %"class.P3D::Graphics::AbstractMesh", ptr %15, i32 0, i32 1
  %17 = load ptr, ptr %16, align 8, !tbaa !11
  %18 = getelementptr inbounds %"class.P3D::Graphics::AbstractMesh", ptr %7, i32 0, i32 1
  store ptr %17, ptr %18, align 8, !tbaa !11
  %19 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %7, i32 0, i32 1
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %20, i32 0, i32 1
  call void @_ZNSt10unique_ptrIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EE4swapERS5_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %21) #3
  %22 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %7, i32 0, i32 2
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %23, i32 0, i32 2
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE4swapERS5_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %24) #3
  %25 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %7, i32 0, i32 3
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %26, i32 0, i32 3
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE4swapERS5_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %27) #3
  %28 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %7, i32 0, i32 4
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %29, i32 0, i32 4
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE4swapERS5_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %30) #3
  %31 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %7, i32 0, i32 5
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %32, i32 0, i32 5
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE4swapERS5_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(8) %33) #3
  %34 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %7, i32 0, i32 6
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %35, i32 0, i32 6
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE4swapERS5_(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull align 8 dereferenceable(8) %36) #3
  %37 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %7, i32 0, i32 7
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %38, i32 0, i32 7
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE4swapERS5_(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull align 8 dereferenceable(8) %39) #3
  %40 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %7, i32 0, i32 1
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %41, i32 0, i32 1
  call void @_ZNSt10unique_ptrIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EE4swapERS5_(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef nonnull align 8 dereferenceable(8) %42) #3
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %43, i32 0, i32 8
  %45 = load i64, ptr %44, align 8, !tbaa !14
  %46 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %7, i32 0, i32 8
  store i64 %45, ptr %46, align 8, !tbaa !14
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %47, i32 0, i32 9
  %49 = load i64, ptr %48, align 8, !tbaa !29
  %50 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %7, i32 0, i32 9
  store i64 %49, ptr %50, align 8, !tbaa !29
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds %"class.P3D::Graphics::AbstractMesh", ptr %51, i32 0, i32 1
  store ptr null, ptr %52, align 8, !tbaa !11
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %53, i32 0, i32 1
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EEaSEDn(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr null) #3
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %56, i32 0, i32 2
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEDn(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr null) #3
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %59, i32 0, i32 3
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEDn(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr null) #3
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %62, i32 0, i32 4
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEDn(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr null) #3
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %65, i32 0, i32 6
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEDn(ptr noundef nonnull align 8 dereferenceable(8) %66, ptr null) #3
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %68, i32 0, i32 5
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEDn(ptr noundef nonnull align 8 dereferenceable(8) %69, ptr null) #3
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = getelementptr inbounds %"class.P3D::Graphics::IndexedMesh", ptr %71, i32 0, i32 7
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEDn(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr null) #3
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = load ptr, ptr %74, align 8, !tbaa !9
  %76 = getelementptr inbounds ptr, ptr %75, i64 1
  %77 = load ptr, ptr %76, align 8
  invoke void %77(ptr noundef nonnull align 8 dereferenceable(96) %74)
          to label %78 unwind label %79

78:                                               ; preds = %2
  ret void

79:                                               ; preds = %2
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %5, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %6, align 4
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #3
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #3
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #3
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #3
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #3
  call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #3
  call void @_ZNSt10unique_ptrIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #3
  br label %83

83:                                               ; preds = %79
  %84 = load ptr, ptr %5, align 8
  %85 = load i32, ptr %6, align 4
  %86 = insertvalue { ptr, i32 } poison, ptr %84, 0
  %87 = insertvalue { ptr, i32 } %86, i32 %85, 1
  resume { ptr, i32 } %87
}

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

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

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

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 = { 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 80}
!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 88}


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

@_ZTVN3P3D8Graphics11IndexedMeshE = external dso_local unnamed_addr constant { [6 x ptr] }, align 8

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3P3D8Graphics11IndexedMeshC2EOS1_(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef nonnull align 8 dereferenceable(96) %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  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
  %3 = getelementptr inbounds i8, ptr %0, i64 24
  tail call void @_ZNSt10unique_ptrIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EEC2IS4_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr null) #3
  %4 = getelementptr inbounds i8, ptr %0, i64 32
  tail call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEC2IS4_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr null) #3
  %5 = getelementptr inbounds i8, ptr %0, i64 40
  tail call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEC2IS4_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr null) #3
  %6 = getelementptr inbounds i8, ptr %0, i64 48
  tail call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEC2IS4_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr null) #3
  %7 = getelementptr inbounds i8, ptr %0, i64 56
  tail call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEC2IS4_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr null) #3
  %8 = getelementptr inbounds i8, ptr %0, i64 64
  tail call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEC2IS4_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr null) #3
  %9 = getelementptr inbounds i8, ptr %0, i64 72
  tail call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEC2IS4_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr null) #3
  %10 = getelementptr inbounds i8, ptr %1, i64 8
  %11 = load ptr, ptr %10, align 8, !tbaa !8
  %12 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %11, ptr %12, align 8, !tbaa !8
  %13 = getelementptr inbounds i8, ptr %1, i64 24
  tail call void @_ZNSt10unique_ptrIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EE4swapERS5_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %13) #3
  %14 = getelementptr inbounds i8, ptr %1, i64 32
  tail call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE4swapERS5_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %14) #3
  %15 = getelementptr inbounds i8, ptr %1, i64 40
  tail call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE4swapERS5_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %15) #3
  %16 = getelementptr inbounds i8, ptr %1, i64 48
  tail call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE4swapERS5_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %16) #3
  %17 = getelementptr inbounds i8, ptr %1, i64 56
  tail call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE4swapERS5_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %17) #3
  %18 = getelementptr inbounds i8, ptr %1, i64 64
  tail call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE4swapERS5_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %18) #3
  %19 = getelementptr inbounds i8, ptr %1, i64 72
  tail call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EE4swapERS5_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %19) #3
  tail call void @_ZNSt10unique_ptrIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EE4swapERS5_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %13) #3
  %20 = getelementptr inbounds i8, ptr %1, i64 80
  %21 = getelementptr inbounds i8, ptr %0, i64 80
  %22 = load <2 x i64>, ptr %20, align 8, !tbaa !13
  store <2 x i64> %22, ptr %21, align 8, !tbaa !13
  store ptr null, ptr %10, align 8, !tbaa !8
  %23 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EEaSEDn(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr null) #3
  %24 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEDn(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr null) #3
  %25 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEDn(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr null) #3
  %26 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEDn(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr null) #3
  %27 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEDn(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr null) #3
  %28 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEDn(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr null) #3
  %29 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EEaSEDn(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr null) #3
  %30 = load ptr, ptr %1, align 8, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %30, i64 8
  %32 = load ptr, ptr %31, align 8
  invoke void %32(ptr noundef nonnull align 8 dereferenceable(96) %1)
          to label %33 unwind label %34

33:                                               ; preds = %2
  ret void

34:                                               ; preds = %2
  %35 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #3
  tail call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #3
  tail call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #3
  tail call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #3
  tail call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #3
  tail call void @_ZNSt10unique_ptrIN3P3D8Graphics12VertexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  tail call void @_ZNSt10unique_ptrIN3P3D8Graphics11IndexBufferESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #3
  resume { ptr, i32 } %35
}

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

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

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

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 = { 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}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !11, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InstCombinePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass