; LLVM IR from ThePhysicsGuys/Physics3D :: application (extendedPart)

; 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::Application::Screen" = type { %"class.P3D::Engine::Registry", ptr, ptr, %"struct.P3D::Vector.11", %"struct.P3D::Application::Camera", %"class.P3D::Engine::LayerStack", %"class.P3D::Application::EventHandler", %"class.Util::Properties", %"class.std::shared_ptr", ptr, ptr }
%"class.P3D::Engine::Registry" = type <{ %"class.std::set", %"class.std::vector", %"class.std::unordered_map", %"class.std::queue", i32, [4 x i8] }>
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<unsigned long, unsigned long, std::_Identity<unsigned long>, P3D::Engine::Registry<unsigned long>::entity_compare>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned long, unsigned long, std::_Identity<unsigned long>, P3D::Engine::Registry<unsigned long>::entity_compare>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *, std::allocator<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *, std::allocator<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *, std::allocator<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *, std::allocator<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<unsigned int, std::allocator<unsigned int>>::_Deque_impl" }
%"struct.std::_Deque_base<unsigned int, std::allocator<unsigned int>>::_Deque_impl" = type { %"struct.std::_Deque_base<unsigned int, std::allocator<unsigned int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<unsigned int, std::allocator<unsigned int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"struct.P3D::Vector.11" = type { %union.anon.12 }
%union.anon.12 = type { [2 x i32] }
%"struct.P3D::Application::Camera" = type { i8, double, double, %"struct.P3D::Vector", i8, double, double, %"struct.P3D::Vector", i8, i8, %"class.P3D::GlobalCFrame", double, double, i8, double, float, float, float, float, %"class.P3D::Matrix.14", %"class.P3D::Matrix.14", %"class.P3D::Matrix.14", %"class.P3D::Matrix.14", %"class.P3D::Matrix.14", ptr }
%"struct.P3D::Vector" = type { %union.anon }
%union.anon = type { [3 x double] }
%"class.P3D::GlobalCFrame" = type { %"struct.P3D::PositionTemplate", %"class.P3D::MatrixRotationTemplate" }
%"struct.P3D::PositionTemplate" = type { %"struct.P3D::Fix", %"struct.P3D::Fix", %"struct.P3D::Fix" }
%"struct.P3D::Fix" = type { i64 }
%"class.P3D::MatrixRotationTemplate" = type { %"class.P3D::Matrix" }
%"class.P3D::Matrix" = type { [9 x double] }
%"class.P3D::Matrix.14" = type { [16 x float] }
%"class.P3D::Engine::LayerStack" = type <{ %"class.std::vector.15", i32, [4 x i8] }>
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<P3D::Engine::Layer *, std::allocator<P3D::Engine::Layer *>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::Engine::Layer *, std::allocator<P3D::Engine::Layer *>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::Engine::Layer *, std::allocator<P3D::Engine::Layer *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::Engine::Layer *, std::allocator<P3D::Engine::Layer *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.P3D::Application::EventHandler" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%"class.Util::Properties" = type { %"class.std::__cxx11::basic_string", %"class.std::map" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.23 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.23 = type { i64, [8 x i8] }
%"class.std::map" = type { %"class.std::_Rb_tree.24" }
%"class.std::_Rb_tree.24" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"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.P3D::intrusive_ptr.30" = type { ptr }
%"class.P3D::intrusive_ptr.31" = type { ptr }
%"class.P3D::intrusive_ptr.32" = type { ptr }
%"class.P3D::intrusive_ptr.29" = type { ptr }
%"struct.P3D::Graphics::Comp::Mesh" = type <{ %"struct.P3D::RC", i64, i32, i8, [3 x i8] }>
%"struct.P3D::RC" = type { ptr, i64 }
%"struct.P3D::Application::ExtendedPart" = type <{ %"class.P3D::Part", i32, [4 x i8] }>
%"class.P3D::Part" = type { %"class.P3D::GlobalCFrame", ptr, ptr, %"class.P3D::Shape", double, %"struct.P3D::PartProperties" }
%"class.P3D::Shape" = type { %"class.P3D::intrusive_ptr", %"class.P3D::DiagonalMatrix" }
%"class.P3D::intrusive_ptr" = type { ptr }
%"class.P3D::DiagonalMatrix" = type { [3 x double] }
%"struct.P3D::PartProperties" = type { double, double, double, %"struct.P3D::Vector" }

@_ZN3P3D6Engine8RegistryImE11null_entityE = external dso_local global i32, align 4
@_ZN3P3D11Application6screenE = external global %"class.P3D::Application::Screen", align 8

; Function Attrs: nounwind
declare void @_ZN3P3D4PartC2EOS0_(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(200)) unnamed_addr #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3P3D6Engine8RegistryImE9setParentERKjS4_(ptr noundef nonnull align 8 dereferenceable(212), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D6Engine8RegistryImE3addINS_11Application4Comp6HitboxEJPNS4_12ExtendedPartEEEENS_13intrusive_ptrIT_EERKjDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.P3D::intrusive_ptr.30") align 8, ptr noundef nonnull align 8 dereferenceable(212), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D6Engine8RegistryImE3addINS_11Application4Comp9TransformEJPNS4_12ExtendedPartEEEENS_13intrusive_ptrIT_EERKjDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.P3D::intrusive_ptr.31") align 8, ptr noundef nonnull align 8 dereferenceable(212), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D6Engine8RegistryImE3addINS_11Application4Comp4NameEJRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEENS_13intrusive_ptrIT_EERKjDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.P3D::intrusive_ptr.32") align 8, ptr noundef nonnull align 8 dereferenceable(212), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3P3D11Application12ExtendedPartC2EONS_4PartERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKj(ptr noundef nonnull align 8 dereferenceable(204) %0, ptr noundef nonnull align 8 dereferenceable(200) %1, ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 4 dereferenceable(4) %3) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.P3D::intrusive_ptr.29", align 8
  %10 = alloca %"struct.P3D::Graphics::Comp::Mesh", align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.P3D::intrusive_ptr.30", align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"class.P3D::intrusive_ptr.31", align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"class.P3D::intrusive_ptr.32", align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %18 = load ptr, ptr %5, align 8
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN3P3D4PartC2EOS0_(ptr noundef nonnull align 8 dereferenceable(200) %18, ptr noundef nonnull align 8 dereferenceable(200) %19) #5
  %20 = getelementptr inbounds %"struct.P3D::Application::ExtendedPart", ptr %18, i32 0, i32 1
  store i32 0, ptr %20, align 8, !tbaa !9
  %21 = getelementptr inbounds %"struct.P3D::Application::ExtendedPart", ptr %18, i32 0, i32 1
  %22 = load i32, ptr %21, align 8, !tbaa !9
  %23 = load i32, ptr @_ZN3P3D6Engine8RegistryImE11null_entityE, align 4, !tbaa !25
  %24 = icmp eq i32 %22, %23
  br i1 %24, label %25, label %28

25:                                               ; preds = %4
  %26 = call noundef i32 @_ZN3P3D6Engine8RegistryImE6createERKj(ptr noundef nonnull align 8 dereferenceable(212) @_ZN3P3D11Application6screenE, ptr noundef nonnull align 4 dereferenceable(4) @_ZN3P3D6Engine8RegistryImE11null_entityE) #5
  %27 = getelementptr inbounds %"struct.P3D::Application::ExtendedPart", ptr %18, i32 0, i32 1
  store i32 %26, ptr %27, align 8, !tbaa !9
  br label %28

28:                                               ; preds = %25, %4
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = load i32, ptr %29, align 4, !tbaa !25
  %31 = load i32, ptr @_ZN3P3D6Engine8RegistryImE11null_entityE, align 4, !tbaa !25
  %32 = icmp ne i32 %30, %31
  br i1 %32, label %33, label %37

33:                                               ; preds = %28
  %34 = getelementptr inbounds %"struct.P3D::Application::ExtendedPart", ptr %18, i32 0, i32 1
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = call noundef zeroext i1 @_ZN3P3D6Engine8RegistryImE9setParentERKjS4_(ptr noundef nonnull align 8 dereferenceable(212) @_ZN3P3D11Application6screenE, ptr noundef nonnull align 4 dereferenceable(4) %34, ptr noundef nonnull align 4 dereferenceable(4) %35) #5
  br label %37

37:                                               ; preds = %33, %28
  %38 = getelementptr inbounds %"struct.P3D::Application::ExtendedPart", ptr %18, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #5
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds %"class.P3D::Part", ptr %39, i32 0, i32 3
  %41 = getelementptr inbounds %"class.P3D::Shape", ptr %40, i32 0, i32 0
  %42 = call noundef ptr @_ZNK3P3D13intrusive_ptrIKNS_10ShapeClassEE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %41) #5
  invoke void @_ZN3P3D8Graphics12MeshRegistry7getMeshEPKNS_10ShapeClassE(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Comp::Mesh") align 8 %10, ptr noundef %42)
          to label %43 unwind label %51

43:                                               ; preds = %37
  call void @_ZN3P3D6Engine8RegistryImE3addINS_8Graphics4Comp4MeshEJS6_EEENS_13intrusive_ptrIT_EERKjDpOT0_(ptr dead_on_unwind writable sret(%"class.P3D::intrusive_ptr.29") align 8 %9, ptr noundef nonnull align 8 dereferenceable(212) @_ZN3P3D11Application6screenE, ptr noundef nonnull align 4 dereferenceable(4) %38, ptr noundef nonnull align 8 dereferenceable(29) %10) #5
  call void @_ZN3P3D13intrusive_ptrINS_8Graphics4Comp4MeshEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  call void @_ZN3P3D2RCD2Ev(ptr noundef nonnull align 8 dereferenceable(29) %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #5
  %44 = getelementptr inbounds %"struct.P3D::Application::ExtendedPart", ptr %18, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  store ptr %18, ptr %14, align 8, !tbaa !5
  call void @_ZN3P3D6Engine8RegistryImE3addINS_11Application4Comp6HitboxEJPNS4_12ExtendedPartEEEENS_13intrusive_ptrIT_EERKjDpOT0_(ptr dead_on_unwind writable sret(%"class.P3D::intrusive_ptr.30") align 8 %13, ptr noundef nonnull align 8 dereferenceable(212) @_ZN3P3D11Application6screenE, ptr noundef nonnull align 4 dereferenceable(4) %44, ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  call void @_ZN3P3D13intrusive_ptrINS_11Application4Comp6HitboxEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  %45 = getelementptr inbounds %"struct.P3D::Application::ExtendedPart", ptr %18, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  store ptr %18, ptr %16, align 8, !tbaa !5
  call void @_ZN3P3D6Engine8RegistryImE3addINS_11Application4Comp9TransformEJPNS4_12ExtendedPartEEEENS_13intrusive_ptrIT_EERKjDpOT0_(ptr dead_on_unwind writable sret(%"class.P3D::intrusive_ptr.31") align 8 %15, ptr noundef nonnull align 8 dereferenceable(212) @_ZN3P3D11Application6screenE, ptr noundef nonnull align 4 dereferenceable(4) %45, ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  call void @_ZN3P3D13intrusive_ptrINS_11Application4Comp9TransformEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %46) #5
  br i1 %47, label %55, label %48

48:                                               ; preds = %43
  %49 = getelementptr inbounds %"struct.P3D::Application::ExtendedPart", ptr %18, i32 0, i32 1
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN3P3D6Engine8RegistryImE3addINS_11Application4Comp4NameEJRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEENS_13intrusive_ptrIT_EERKjDpOT0_(ptr dead_on_unwind writable sret(%"class.P3D::intrusive_ptr.32") align 8 %17, ptr noundef nonnull align 8 dereferenceable(212) @_ZN3P3D11Application6screenE, ptr noundef nonnull align 4 dereferenceable(4) %49, ptr noundef nonnull align 8 dereferenceable(32) %50) #5
  call void @_ZN3P3D13intrusive_ptrINS_11Application4Comp4NameEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  br label %55

51:                                               ; preds = %37
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %11, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #5
  call void @_ZN3P3D4PartD2Ev(ptr noundef nonnull align 8 dereferenceable(200) %18) #5
  br label %56

55:                                               ; preds = %48, %43
  ret void

56:                                               ; preds = %51
  %57 = load ptr, ptr %11, align 8
  %58 = load i32, ptr %12, align 4
  %59 = insertvalue { ptr, i32 } poison, ptr %57, 0
  %60 = insertvalue { ptr, i32 } %59, i32 %58, 1
  resume { ptr, i32 } %60
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D6Engine8RegistryImE3addINS_8Graphics4Comp4MeshEJS6_EEENS_13intrusive_ptrIT_EERKjDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.P3D::intrusive_ptr.29") align 8, ptr noundef nonnull align 8 dereferenceable(212), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(29)) #1 align 2

declare void @_ZN3P3D8Graphics12MeshRegistry7getMeshEPKNS_10ShapeClassE(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Comp::Mesh") align 8, ptr noundef) #4

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN3P3D4PartD2Ev(ptr noundef nonnull align 8 dereferenceable(200)) unnamed_addr #0

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

attributes #0 = { 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 #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 = { 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, !24, i64 200}
!10 = !{!"_ZTSN3P3D11Application12ExtendedPartE", !11, i64 0, !24, i64 200}
!11 = !{!"_ZTSN3P3D4PartE", !12, i64 0, !6, i64 96, !6, i64 104, !18, i64 112, !21, i64 144, !22, i64 152}
!12 = !{!"_ZTSN3P3D12GlobalCFrameE", !13, i64 0, !16, i64 24}
!13 = !{!"_ZTSN3P3D16PositionTemplateINS_3FixILl32EEEEE", !14, i64 0, !14, i64 8, !14, i64 16}
!14 = !{!"_ZTSN3P3D3FixILl32EEE", !15, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_ZTSN3P3D22MatrixRotationTemplateIdEE", !17, i64 0}
!17 = !{!"_ZTSN3P3D6MatrixIdLm3ELm3EEE", !7, i64 0}
!18 = !{!"_ZTSN3P3D5ShapeE", !19, i64 0, !20, i64 8}
!19 = !{!"_ZTSN3P3D13intrusive_ptrIKNS_10ShapeClassEEE", !6, i64 0}
!20 = !{!"_ZTSN3P3D14DiagonalMatrixIdLm3EEE", !7, i64 0}
!21 = !{!"double", !7, i64 0}
!22 = !{!"_ZTSN3P3D14PartPropertiesE", !21, i64 0, !21, i64 8, !21, i64 16, !23, i64 24}
!23 = !{!"_ZTSN3P3D6VectorIdLm3EEE", !7, i64 0}
!24 = !{!"int", !7, i64 0}
!25 = !{!24, !24, 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"

%"class.P3D::Application::Screen" = type { %"class.P3D::Engine::Registry", ptr, ptr, %"struct.P3D::Vector.11", %"struct.P3D::Application::Camera", %"class.P3D::Engine::LayerStack", %"class.P3D::Application::EventHandler", %"class.Util::Properties", %"class.std::shared_ptr", ptr, ptr }
%"class.P3D::Engine::Registry" = type <{ %"class.std::set", %"class.std::vector", %"class.std::unordered_map", %"class.std::queue", i32, [4 x i8] }>
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<unsigned long, unsigned long, std::_Identity<unsigned long>, P3D::Engine::Registry<unsigned long>::entity_compare>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned long, unsigned long, std::_Identity<unsigned long>, P3D::Engine::Registry<unsigned long>::entity_compare>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *, std::allocator<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *, std::allocator<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *, std::allocator<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *, std::allocator<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<unsigned int, std::allocator<unsigned int>>::_Deque_impl" }
%"struct.std::_Deque_base<unsigned int, std::allocator<unsigned int>>::_Deque_impl" = type { %"struct.std::_Deque_base<unsigned int, std::allocator<unsigned int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<unsigned int, std::allocator<unsigned int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"struct.P3D::Vector.11" = type { %union.anon.12 }
%union.anon.12 = type { [2 x i32] }
%"struct.P3D::Application::Camera" = type { i8, double, double, %"struct.P3D::Vector", i8, double, double, %"struct.P3D::Vector", i8, i8, %"class.P3D::GlobalCFrame", double, double, i8, double, float, float, float, float, %"class.P3D::Matrix.14", %"class.P3D::Matrix.14", %"class.P3D::Matrix.14", %"class.P3D::Matrix.14", %"class.P3D::Matrix.14", ptr }
%"struct.P3D::Vector" = type { %union.anon }
%union.anon = type { [3 x double] }
%"class.P3D::GlobalCFrame" = type { %"struct.P3D::PositionTemplate", %"class.P3D::MatrixRotationTemplate" }
%"struct.P3D::PositionTemplate" = type { %"struct.P3D::Fix", %"struct.P3D::Fix", %"struct.P3D::Fix" }
%"struct.P3D::Fix" = type { i64 }
%"class.P3D::MatrixRotationTemplate" = type { %"class.P3D::Matrix" }
%"class.P3D::Matrix" = type { [9 x double] }
%"class.P3D::Matrix.14" = type { [16 x float] }
%"class.P3D::Engine::LayerStack" = type <{ %"class.std::vector.15", i32, [4 x i8] }>
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<P3D::Engine::Layer *, std::allocator<P3D::Engine::Layer *>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::Engine::Layer *, std::allocator<P3D::Engine::Layer *>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::Engine::Layer *, std::allocator<P3D::Engine::Layer *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::Engine::Layer *, std::allocator<P3D::Engine::Layer *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.P3D::Application::EventHandler" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%"class.Util::Properties" = type { %"class.std::__cxx11::basic_string", %"class.std::map" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.23 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.23 = type { i64, [8 x i8] }
%"class.std::map" = type { %"class.std::_Rb_tree.24" }
%"class.std::_Rb_tree.24" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"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.P3D::intrusive_ptr.30" = type { ptr }
%"class.P3D::intrusive_ptr.31" = type { ptr }
%"class.P3D::intrusive_ptr.32" = type { ptr }
%"class.P3D::intrusive_ptr.29" = type { ptr }
%"struct.P3D::Graphics::Comp::Mesh" = type <{ %"struct.P3D::RC", i64, i32, i8, [3 x i8] }>
%"struct.P3D::RC" = type { ptr, i64 }

@_ZN3P3D6Engine8RegistryImE11null_entityE = external dso_local global i32, align 4
@_ZN3P3D11Application6screenE = external global %"class.P3D::Application::Screen", align 8

; Function Attrs: nounwind
declare void @_ZN3P3D4PartC2EOS0_(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(200)) unnamed_addr #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3P3D6Engine8RegistryImE9setParentERKjS4_(ptr noundef nonnull align 8 dereferenceable(212), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D6Engine8RegistryImE3addINS_11Application4Comp6HitboxEJPNS4_12ExtendedPartEEEENS_13intrusive_ptrIT_EERKjDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.P3D::intrusive_ptr.30") align 8, ptr noundef nonnull align 8 dereferenceable(212), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D6Engine8RegistryImE3addINS_11Application4Comp9TransformEJPNS4_12ExtendedPartEEEENS_13intrusive_ptrIT_EERKjDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.P3D::intrusive_ptr.31") align 8, ptr noundef nonnull align 8 dereferenceable(212), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D6Engine8RegistryImE3addINS_11Application4Comp4NameEJRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEENS_13intrusive_ptrIT_EERKjDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.P3D::intrusive_ptr.32") align 8, ptr noundef nonnull align 8 dereferenceable(212), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3P3D11Application12ExtendedPartC2EONS_4PartERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKj(ptr noundef nonnull align 8 dereferenceable(204) %0, ptr noundef nonnull align 8 dereferenceable(200) %1, ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 4 dereferenceable(4) %3) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.P3D::intrusive_ptr.29", align 8
  %6 = alloca %"struct.P3D::Graphics::Comp::Mesh", align 8
  %7 = alloca %"class.P3D::intrusive_ptr.30", align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.P3D::intrusive_ptr.31", align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"class.P3D::intrusive_ptr.32", align 8
  tail call void @_ZN3P3D4PartC2EOS0_(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(200) %1) #5
  %12 = getelementptr inbounds i8, ptr %0, i64 200
  store i32 0, ptr %12, align 8, !tbaa !5
  %13 = load i32, ptr @_ZN3P3D6Engine8RegistryImE11null_entityE, align 4, !tbaa !24
  %14 = icmp eq i32 %13, 0
  br i1 %14, label %15, label %17

15:                                               ; preds = %4
  %16 = tail call noundef i32 @_ZN3P3D6Engine8RegistryImE6createERKj(ptr noundef nonnull align 8 dereferenceable(212) @_ZN3P3D11Application6screenE, ptr noundef nonnull align 4 dereferenceable(4) @_ZN3P3D6Engine8RegistryImE11null_entityE) #5
  store i32 %16, ptr %12, align 8, !tbaa !5
  %.pre = load i32, ptr @_ZN3P3D6Engine8RegistryImE11null_entityE, align 4, !tbaa !24
  br label %17

17:                                               ; preds = %15, %4
  %18 = phi i32 [ %.pre, %15 ], [ %13, %4 ]
  %19 = load i32, ptr %3, align 4, !tbaa !24
  %.not = icmp eq i32 %19, %18
  br i1 %.not, label %22, label %20

20:                                               ; preds = %17
  %21 = tail call noundef zeroext i1 @_ZN3P3D6Engine8RegistryImE9setParentERKjS4_(ptr noundef nonnull align 8 dereferenceable(212) @_ZN3P3D11Application6screenE, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %3) #5
  br label %22

22:                                               ; preds = %20, %17
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #5
  %23 = getelementptr inbounds i8, ptr %1, i64 112
  %24 = tail call noundef ptr @_ZNK3P3D13intrusive_ptrIKNS_10ShapeClassEE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #5
  invoke void @_ZN3P3D8Graphics12MeshRegistry7getMeshEPKNS_10ShapeClassE(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Graphics::Comp::Mesh") align 8 %6, ptr noundef %24)
          to label %25 unwind label %28

25:                                               ; preds = %22
  call void @_ZN3P3D6Engine8RegistryImE3addINS_8Graphics4Comp4MeshEJS6_EEENS_13intrusive_ptrIT_EERKjDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.P3D::intrusive_ptr.29") align 8 %5, ptr noundef nonnull align 8 dereferenceable(212) @_ZN3P3D11Application6screenE, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 8 dereferenceable(29) %6) #5
  call void @_ZN3P3D13intrusive_ptrINS_8Graphics4Comp4MeshEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  call void @_ZN3P3D2RCD2Ev(ptr noundef nonnull align 8 dereferenceable(29) %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  store ptr %0, ptr %8, align 8, !tbaa !25
  call void @_ZN3P3D6Engine8RegistryImE3addINS_11Application4Comp6HitboxEJPNS4_12ExtendedPartEEEENS_13intrusive_ptrIT_EERKjDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.P3D::intrusive_ptr.30") align 8 %7, ptr noundef nonnull align 8 dereferenceable(212) @_ZN3P3D11Application6screenE, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @_ZN3P3D13intrusive_ptrINS_11Application4Comp6HitboxEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  store ptr %0, ptr %10, align 8, !tbaa !25
  call void @_ZN3P3D6Engine8RegistryImE3addINS_11Application4Comp9TransformEJPNS4_12ExtendedPartEEEENS_13intrusive_ptrIT_EERKjDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.P3D::intrusive_ptr.31") align 8 %9, ptr noundef nonnull align 8 dereferenceable(212) @_ZN3P3D11Application6screenE, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  call void @_ZN3P3D13intrusive_ptrINS_11Application4Comp9TransformEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  %26 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
  br i1 %26, label %30, label %27

27:                                               ; preds = %25
  call void @_ZN3P3D6Engine8RegistryImE3addINS_11Application4Comp4NameEJRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEENS_13intrusive_ptrIT_EERKjDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.P3D::intrusive_ptr.32") align 8 %11, ptr noundef nonnull align 8 dereferenceable(212) @_ZN3P3D11Application6screenE, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 8 dereferenceable(32) %2) #5
  call void @_ZN3P3D13intrusive_ptrINS_11Application4Comp4NameEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  br label %30

28:                                               ; preds = %22
  %29 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  call void @_ZN3P3D4PartD2Ev(ptr noundef nonnull align 8 dereferenceable(200) %0) #5
  resume { ptr, i32 } %29

30:                                               ; preds = %27, %25
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D6Engine8RegistryImE3addINS_8Graphics4Comp4MeshEJS6_EEENS_13intrusive_ptrIT_EERKjDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.P3D::intrusive_ptr.29") align 8, ptr noundef nonnull align 8 dereferenceable(212), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(29)) local_unnamed_addr #1 align 2

declare void @_ZN3P3D8Graphics12MeshRegistry7getMeshEPKNS_10ShapeClassE(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Comp::Mesh") align 8, ptr noundef) local_unnamed_addr #4

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN3P3D4PartD2Ev(ptr noundef nonnull align 8 dereferenceable(200)) unnamed_addr #0

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

attributes #0 = { 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 #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 = { 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, !23, i64 200}
!6 = !{!"_ZTSN3P3D11Application12ExtendedPartE", !7, i64 0, !23, i64 200}
!7 = !{!"_ZTSN3P3D4PartE", !8, i64 0, !16, i64 96, !16, i64 104, !17, i64 112, !20, i64 144, !21, i64 152}
!8 = !{!"_ZTSN3P3D12GlobalCFrameE", !9, i64 0, !14, i64 24}
!9 = !{!"_ZTSN3P3D16PositionTemplateINS_3FixILl32EEEEE", !10, i64 0, !10, i64 8, !10, i64 16}
!10 = !{!"_ZTSN3P3D3FixILl32EEE", !11, i64 0}
!11 = !{!"long", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"_ZTSN3P3D22MatrixRotationTemplateIdEE", !15, i64 0}
!15 = !{!"_ZTSN3P3D6MatrixIdLm3ELm3EEE", !12, i64 0}
!16 = !{!"any pointer", !12, i64 0}
!17 = !{!"_ZTSN3P3D5ShapeE", !18, i64 0, !19, i64 8}
!18 = !{!"_ZTSN3P3D13intrusive_ptrIKNS_10ShapeClassEEE", !16, i64 0}
!19 = !{!"_ZTSN3P3D14DiagonalMatrixIdLm3EEE", !12, i64 0}
!20 = !{!"double", !12, i64 0}
!21 = !{!"_ZTSN3P3D14PartPropertiesE", !20, i64 0, !20, i64 8, !20, i64 16, !22, i64 24}
!22 = !{!"_ZTSN3P3D6VectorIdLm3EEE", !12, i64 0}
!23 = !{!"int", !12, i64 0}
!24 = !{!23, !23, i64 0}
!25 = !{!16, !16, i64 0}


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