; LLVM IR from ThePhysicsGuys/Physics3D :: application/picker/ray.ll (ZN3P3D11Application7calcRayERKNS0_6ScreenENS_6VectorIfLm2EEE)

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

%"struct.P3D::Vector.0" = type { %union.anon.1 }
%union.anon.1 = type { [3 x float] }
%"struct.P3D::Vector" = type { %union.anon }
%union.anon = type { [2 x float] }
%"struct.P3D::Vector.35" = type { %union.anon.36 }
%union.anon.36 = type { [4 x float] }
%"class.P3D::Application::Screen" = type { %"class.P3D::Engine::Registry", ptr, ptr, %"struct.P3D::Vector.14", %"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.14" = type { %union.anon.15 }
%union.anon.15 = type { [2 x i32] }
%"struct.P3D::Application::Camera" = type { i8, double, double, %"struct.P3D::Vector.17", i8, double, double, %"struct.P3D::Vector.17", i8, i8, %"class.P3D::GlobalCFrame", double, double, i8, double, float, float, float, float, %"class.P3D::Matrix.20", %"class.P3D::Matrix.20", %"class.P3D::Matrix.20", %"class.P3D::Matrix.20", %"class.P3D::Matrix.20", ptr }
%"struct.P3D::Vector.17" = type { %union.anon.18 }
%union.anon.18 = 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.20" = type { [16 x float] }
%"class.P3D::Engine::LayerStack" = type <{ %"class.std::vector.21", i32, [4 x i8] }>
%"class.std::vector.21" = type { %"struct.std::_Vector_base.22" }
%"struct.std::_Vector_base.22" = 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.29 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.29 = type { i64, [8 x i8] }
%"class.std::map" = type { %"class.std::_Rb_tree.30" }
%"class.std::_Rb_tree.30" = 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 }
%struct.anon = type { float, float }
%struct.anon.37 = type { float, float, float, float }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local <2 x float> @_ZN3P3D11Application32getNormalizedDeviceSpacePositionERKNS_6VectorIfLm2EEES4_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local { <2 x float>, float } @_ZN3P3D11Application7calcRayERKNS0_6ScreenENS_6VectorIfLm2EEE(ptr noundef nonnull align 8 dereferenceable(1024) %0, <2 x float> %1) #2 {
  %3 = alloca %"struct.P3D::Vector.0", align 4
  %4 = alloca %"struct.P3D::Vector", align 4
  %5 = alloca ptr, align 8
  %6 = alloca %"struct.P3D::Vector", align 4
  %7 = alloca %"struct.P3D::Vector", align 4
  %8 = alloca %"struct.P3D::Vector.35", align 4
  %9 = alloca %"struct.P3D::Vector.35", align 4
  %10 = alloca %"struct.P3D::Vector.35", align 4
  %11 = alloca %"struct.P3D::Vector.35", align 4
  %12 = alloca %"struct.P3D::Vector.0", align 4
  %13 = alloca { <2 x float>, float }, align 8
  %14 = alloca { <2 x float>, float }, align 8
  %15 = getelementptr inbounds %"struct.P3D::Vector", ptr %4, i32 0, i32 0
  %16 = getelementptr inbounds %union.anon, ptr %15, i32 0, i32 0
  store <2 x float> %1, ptr %16, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds %"class.P3D::Application::Screen", ptr %17, i32 0, i32 3
  %19 = call <2 x float> @_ZNK3P3D6VectorIiLm2EEcvNS0_IT_Lm2EEEIfEEv(ptr noundef nonnull align 4 dereferenceable(8) %18) #6
  %20 = getelementptr inbounds %"struct.P3D::Vector", ptr %7, i32 0, i32 0
  %21 = getelementptr inbounds %union.anon, ptr %20, i32 0, i32 0
  store <2 x float> %19, ptr %21, align 4
  %22 = call <2 x float> @_ZN3P3D11Application32getNormalizedDeviceSpacePositionERKNS_6VectorIfLm2EEES4_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %7)
  %23 = getelementptr inbounds %"struct.P3D::Vector", ptr %6, i32 0, i32 0
  %24 = getelementptr inbounds %union.anon, ptr %23, i32 0, i32 0
  store <2 x float> %22, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #6
  %25 = getelementptr inbounds %"struct.P3D::Vector", ptr %6, i32 0, i32 0
  %26 = getelementptr inbounds %struct.anon, ptr %25, i32 0, i32 0
  %27 = load float, ptr %26, align 4, !tbaa !9
  %28 = getelementptr inbounds %"struct.P3D::Vector", ptr %6, i32 0, i32 0
  %29 = getelementptr inbounds %struct.anon, ptr %28, i32 0, i32 1
  %30 = load float, ptr %29, align 4, !tbaa !9
  call void @_ZN3P3D6VectorIfLm4EEC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %8, float noundef %27, float noundef %30, float noundef -1.000000e+00, float noundef 1.000000e+00) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #6
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %"class.P3D::Application::Screen", ptr %31, i32 0, i32 4
  %33 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %32, i32 0, i32 22
  %34 = call { <2 x float>, <2 x float> } @_ZN3P3DmlIfLm4ELm4EEENS_6VectorIT_XT0_EEERKNS_6MatrixIS2_XT0_EXT1_EEERKNS1_IS2_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(64) %33, ptr noundef nonnull align 4 dereferenceable(16) %8)
  %35 = getelementptr inbounds %"struct.P3D::Vector.35", ptr %9, i32 0, i32 0
  %36 = getelementptr inbounds %union.anon.36, ptr %35, i32 0, i32 0
  %37 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %36, i32 0, i32 0
  %38 = extractvalue { <2 x float>, <2 x float> } %34, 0
  store <2 x float> %38, ptr %37, align 4
  %39 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %36, i32 0, i32 1
  %40 = extractvalue { <2 x float>, <2 x float> } %34, 1
  store <2 x float> %40, ptr %39, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #6
  %41 = getelementptr inbounds %"struct.P3D::Vector.35", ptr %9, i32 0, i32 0
  %42 = getelementptr inbounds %struct.anon.37, ptr %41, i32 0, i32 0
  %43 = load float, ptr %42, align 4, !tbaa !9
  %44 = getelementptr inbounds %"struct.P3D::Vector.35", ptr %9, i32 0, i32 0
  %45 = getelementptr inbounds %struct.anon.37, ptr %44, i32 0, i32 1
  %46 = load float, ptr %45, align 4, !tbaa !9
  call void @_ZN3P3D6VectorIfLm4EEC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %10, float noundef %43, float noundef %46, float noundef -1.000000e+00, float noundef 0.000000e+00) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %10, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %"class.P3D::Application::Screen", ptr %47, i32 0, i32 4
  %49 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %48, i32 0, i32 20
  %50 = call { <2 x float>, <2 x float> } @_ZN3P3DmlIfLm4ELm4EEENS_6VectorIT_XT0_EEERKNS_6MatrixIS2_XT0_EXT1_EEERKNS1_IS2_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(64) %49, ptr noundef nonnull align 4 dereferenceable(16) %9)
  %51 = getelementptr inbounds %"struct.P3D::Vector.35", ptr %11, i32 0, i32 0
  %52 = getelementptr inbounds %union.anon.36, ptr %51, i32 0, i32 0
  %53 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %52, i32 0, i32 0
  %54 = extractvalue { <2 x float>, <2 x float> } %50, 0
  store <2 x float> %54, ptr %53, align 4
  %55 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %52, i32 0, i32 1
  %56 = extractvalue { <2 x float>, <2 x float> } %50, 1
  store <2 x float> %56, ptr %55, align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #6
  %57 = getelementptr inbounds %"struct.P3D::Vector.35", ptr %11, i32 0, i32 0
  %58 = getelementptr inbounds %struct.anon.37, ptr %57, i32 0, i32 0
  %59 = load float, ptr %58, align 4, !tbaa !9
  %60 = getelementptr inbounds %"struct.P3D::Vector.35", ptr %11, i32 0, i32 0
  %61 = getelementptr inbounds %struct.anon.37, ptr %60, i32 0, i32 1
  %62 = load float, ptr %61, align 4, !tbaa !9
  %63 = getelementptr inbounds %"struct.P3D::Vector.35", ptr %11, i32 0, i32 0
  %64 = getelementptr inbounds %struct.anon.37, ptr %63, i32 0, i32 2
  %65 = load float, ptr %64, align 4, !tbaa !9
  call void @_ZN3P3D6VectorIfLm3EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %12, float noundef %59, float noundef %62, float noundef %65) #6
  %66 = call { <2 x float>, float } @_ZN3P3D9normalizeIfLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %12) #6
  %67 = getelementptr inbounds %"struct.P3D::Vector.0", ptr %3, i32 0, i32 0
  %68 = getelementptr inbounds %union.anon.1, ptr %67, i32 0, i32 0
  store { <2 x float>, float } %66, ptr %13, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %68, ptr align 8 %13, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %69 = getelementptr inbounds %"struct.P3D::Vector.0", ptr %3, i32 0, i32 0
  %70 = getelementptr inbounds %union.anon.1, ptr %69, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 4 %70, i64 12, i1 false)
  %71 = load { <2 x float>, float }, ptr %14, align 8
  ret { <2 x float>, float } %71
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local <2 x float> @_ZNK3P3D6VectorIiLm2EEcvNS0_IT_Lm2EEEIfEEv(ptr noundef nonnull align 4 dereferenceable(8)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D6VectorIfLm4EEC2Effff(ptr noundef nonnull align 4 dereferenceable(16), float noundef, float noundef, float noundef, float noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZN3P3DmlIfLm4ELm4EEENS_6VectorIT_XT0_EEERKNS_6MatrixIS2_XT0_EXT1_EEERKNS1_IS2_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(16)) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_ZN3P3D9normalizeIfLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr noundef nonnull align 4 dereferenceable(12)) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D6VectorIfLm3EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) unnamed_addr #3 align 2

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.P3D::Vector" = type { %union.anon }
%union.anon = type { [2 x float] }
%"struct.P3D::Vector.35" = type { %union.anon.36 }
%union.anon.36 = type { [4 x float] }
%"struct.P3D::Vector.0" = type { %union.anon.1 }
%union.anon.1 = type { [3 x float] }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local <2 x float> @_ZN3P3D11Application32getNormalizedDeviceSpacePositionERKNS_6VectorIfLm2EEES4_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local { <2 x float>, float } @_ZN3P3D11Application7calcRayERKNS0_6ScreenENS_6VectorIfLm2EEE(ptr noundef nonnull align 8 dereferenceable(1024) %0, <2 x float> %1) local_unnamed_addr #2 {
  %3 = alloca %"struct.P3D::Vector", align 8
  %4 = alloca %"struct.P3D::Vector", align 8
  %5 = alloca %"struct.P3D::Vector.35", align 4
  %6 = alloca %"struct.P3D::Vector.35", align 8
  %7 = alloca %"struct.P3D::Vector.0", align 4
  store <2 x float> %1, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %8 = getelementptr inbounds i8, ptr %0, i64 232
  %9 = tail call <2 x float> @_ZNK3P3D6VectorIiLm2EEcvNS0_IT_Lm2EEEIfEEv(ptr noundef nonnull align 4 dereferenceable(8) %8) #5
  store <2 x float> %9, ptr %4, align 8
  %10 = call <2 x float> @_ZN3P3D11Application32getNormalizedDeviceSpacePositionERKNS_6VectorIfLm2EEES4_(ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  %.sroa.04.0.vec.extract = extractelement <2 x float> %10, i64 0
  %.sroa.04.4.vec.extract = extractelement <2 x float> %10, i64 1
  call void @_ZN3P3D6VectorIfLm4EEC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %5, float noundef %.sroa.04.0.vec.extract, float noundef %.sroa.04.4.vec.extract, float noundef -1.000000e+00, float noundef 1.000000e+00) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  %11 = getelementptr inbounds i8, ptr %0, i64 680
  %12 = call { <2 x float>, <2 x float> } @_ZN3P3DmlIfLm4ELm4EEENS_6VectorIT_XT0_EEERKNS_6MatrixIS2_XT0_EXT1_EEERKNS1_IS2_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(64) %11, ptr noundef nonnull align 4 dereferenceable(16) %5)
  %13 = extractvalue { <2 x float>, <2 x float> } %12, 0
  store <2 x float> %13, ptr %6, align 8
  %14 = getelementptr inbounds i8, ptr %6, i64 8
  %15 = extractvalue { <2 x float>, <2 x float> } %12, 1
  store <2 x float> %15, ptr %14, align 8
  %16 = extractelement <2 x float> %13, i64 0
  %17 = extractelement <2 x float> %13, i64 1
  call void @_ZN3P3D6VectorIfLm4EEC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %6, float noundef %16, float noundef %17, float noundef -1.000000e+00, float noundef 0.000000e+00) #5
  %18 = getelementptr inbounds i8, ptr %0, i64 552
  %19 = call { <2 x float>, <2 x float> } @_ZN3P3DmlIfLm4ELm4EEENS_6VectorIT_XT0_EEERKNS_6MatrixIS2_XT0_EXT1_EEERKNS1_IS2_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(64) %18, ptr noundef nonnull align 4 dereferenceable(16) %6)
  %20 = extractvalue { <2 x float>, <2 x float> } %19, 0
  %21 = extractvalue { <2 x float>, <2 x float> } %19, 1
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #5
  %.sroa.03.0.vec.extract = extractelement <2 x float> %20, i64 0
  %.sroa.03.4.vec.extract = extractelement <2 x float> %20, i64 1
  %.sroa.5.8.vec.extract = extractelement <2 x float> %21, i64 0
  call void @_ZN3P3D6VectorIfLm3EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %7, float noundef %.sroa.03.0.vec.extract, float noundef %.sroa.03.4.vec.extract, float noundef %.sroa.5.8.vec.extract) #5
  %22 = call { <2 x float>, float } @_ZN3P3D9normalizeIfLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %7) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  ret { <2 x float>, float } %22
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local <2 x float> @_ZNK3P3D6VectorIiLm2EEcvNS0_IT_Lm2EEEIfEEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D6VectorIfLm4EEC2Effff(ptr noundef nonnull align 4 dereferenceable(16), float noundef, float noundef, float noundef, float noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZN3P3DmlIfLm4ELm4EEENS_6VectorIT_XT0_EEERKNS_6MatrixIS2_XT0_EXT1_EEERKNS1_IS2_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_ZN3P3D9normalizeIfLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D6VectorIfLm3EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) unnamed_addr #3 align 2

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


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,SCCPPass,SROAPass,TailCallElimPass