; LLVM IR from ThePhysicsGuys/Physics3D :: application/view/camera.ll (ZN3P3D11Application6Camera8onUpdateEv)

; 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.13", %"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.13" = type { %union.anon.14 }
%union.anon.14 = 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.0", %"class.P3D::Matrix.0", %"class.P3D::Matrix.0", %"class.P3D::Matrix.0", %"class.P3D::Matrix.0", 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.0" = type { [16 x float] }
%"class.P3D::Engine::LayerStack" = type <{ %"class.std::vector.16", i32, [4 x i8] }>
%"class.std::vector.16" = type { %"struct.std::_Vector_base.17" }
%"struct.std::_Vector_base.17" = 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.24 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.24 = type { i64, [8 x i8] }
%"class.std::map" = type { %"class.std::_Rb_tree.25" }
%"class.std::_Rb_tree.25" = 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.P3D::Vector.37" = type { %union.anon.38 }
%union.anon.38 = type { [3 x float] }
%struct.anon = type { double, double, double }

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3P3D11Application6Camera8onUpdateEv(ptr noundef nonnull align 8 dereferenceable(576) %0) #0 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca %"struct.P3D::Vector", align 8
  %4 = alloca %"struct.P3D::Vector", align 8
  %5 = alloca %"struct.P3D::Vector", align 8
  %6 = alloca %"struct.P3D::Vector", align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca %"struct.P3D::Vector", align 8
  %11 = alloca %"struct.P3D::Vector", align 8
  %12 = alloca %"struct.P3D::Vector", align 8
  %13 = alloca %"struct.P3D::Vector", align 8
  %14 = alloca %"struct.P3D::Vector", align 8
  %15 = alloca %"struct.P3D::Vector", align 8
  %16 = alloca %"struct.P3D::PositionTemplate", align 8
  %17 = alloca %"class.P3D::Matrix.0", align 4
  %18 = alloca %"class.P3D::Matrix.0", align 4
  %19 = alloca %"class.P3D::Matrix.0", align 4
  %20 = alloca %"class.P3D::Matrix.0", align 4
  %21 = alloca %"struct.P3D::Vector.37", align 4
  %22 = alloca %"struct.P3D::Vector.37", align 4
  %23 = alloca { <2 x float>, float }, align 8
  %24 = alloca %"class.P3D::Matrix.0", align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %25 = load ptr, ptr %2, align 8
  %26 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 2
  %27 = load double, ptr %26, align 8, !tbaa !9
  %28 = fcmp une double %27, 0.000000e+00
  br i1 %28, label %29, label %55

29:                                               ; preds = %1
  %30 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 2
  %31 = load double, ptr %30, align 8, !tbaa !9
  %32 = fcmp olt double %31, 0.000000e+00
  br i1 %32, label %33, label %36

33:                                               ; preds = %29
  %34 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 2
  store double 0.000000e+00, ptr %34, align 8, !tbaa !9
  %35 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 9
  store i8 0, ptr %35, align 1, !tbaa !22
  br label %54

36:                                               ; preds = %29
  %37 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 4
  %38 = load i8, ptr %37, align 8, !tbaa !23, !range !24, !noundef !25
  %39 = trunc i8 %38 to i1
  br i1 %39, label %53, label %40

40:                                               ; preds = %36
  %41 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %3, ptr align 8 %41, i64 24, i1 false), !tbaa.struct !26
  %42 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 9
  %43 = load i8, ptr %42, align 1, !tbaa !22, !range !24, !noundef !25
  %44 = trunc i8 %43 to i1
  call void @_ZN3P3D11Application6Camera4moveERNS0_6ScreenENS_6VectorIdLm3EEEbb(ptr noundef nonnull align 8 dereferenceable(576) %25, ptr noundef nonnull align 8 dereferenceable(1024) @_ZN3P3D11Application6screenE, ptr noundef byval(%"struct.P3D::Vector") align 8 %3, i1 noundef zeroext %44, i1 noundef zeroext false)
  %45 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 11
  %46 = load double, ptr %45, align 8, !tbaa !28
  %47 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 1
  %48 = load double, ptr %47, align 8, !tbaa !29
  %49 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 2
  %50 = load double, ptr %49, align 8, !tbaa !9
  %51 = fneg double %46
  %52 = call double @llvm.fmuladd.f64(double %51, double %48, double %50)
  store double %52, ptr %49, align 8, !tbaa !9
  br label %53

53:                                               ; preds = %40, %36
  br label %54

54:                                               ; preds = %53, %33
  br label %55

55:                                               ; preds = %54, %1
  %56 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 6
  %57 = load double, ptr %56, align 8, !tbaa !30
  %58 = fcmp une double %57, 0.000000e+00
  br i1 %58, label %59, label %85

59:                                               ; preds = %55
  %60 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 6
  %61 = load double, ptr %60, align 8, !tbaa !30
  %62 = fcmp olt double %61, 0.000000e+00
  br i1 %62, label %63, label %66

63:                                               ; preds = %59
  %64 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 6
  store double 0.000000e+00, ptr %64, align 8, !tbaa !30
  %65 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 9
  store i8 0, ptr %65, align 1, !tbaa !22
  br label %84

66:                                               ; preds = %59
  %67 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 8
  %68 = load i8, ptr %67, align 8, !tbaa !31, !range !24, !noundef !25
  %69 = trunc i8 %68 to i1
  br i1 %69, label %83, label %70

70:                                               ; preds = %66
  %71 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %4, ptr align 8 %71, i64 24, i1 false), !tbaa.struct !26
  %72 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 9
  %73 = load i8, ptr %72, align 1, !tbaa !22, !range !24, !noundef !25
  %74 = trunc i8 %73 to i1
  call void @_ZN3P3D11Application6Camera6rotateERNS0_6ScreenENS_6VectorIdLm3EEEbb(ptr noundef nonnull align 8 dereferenceable(576) %25, ptr noundef nonnull align 8 dereferenceable(1024) @_ZN3P3D11Application6screenE, ptr noundef byval(%"struct.P3D::Vector") align 8 %4, i1 noundef zeroext %74, i1 noundef zeroext false)
  %75 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 12
  %76 = load double, ptr %75, align 8, !tbaa !32
  %77 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 5
  %78 = load double, ptr %77, align 8, !tbaa !33
  %79 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 6
  %80 = load double, ptr %79, align 8, !tbaa !30
  %81 = fneg double %76
  %82 = call double @llvm.fmuladd.f64(double %81, double %78, double %80)
  store double %82, ptr %79, align 8, !tbaa !30
  br label %83

83:                                               ; preds = %70, %66
  br label %84

84:                                               ; preds = %83, %63
  br label %85

85:                                               ; preds = %84, %55
  %86 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 13
  %87 = load i8, ptr %86, align 8, !tbaa !34, !range !24, !noundef !25
  %88 = trunc i8 %87 to i1
  br i1 %88, label %128, label %89

89:                                               ; preds = %85
  %90 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 24
  %91 = load ptr, ptr %90, align 8, !tbaa !35
  %92 = icmp ne ptr %91, null
  br i1 %92, label %93, label %128

93:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #10
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %5, double noundef 0.000000e+00, double noundef 1.000000e+00, double noundef 0.000000e+00) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #10
  call void @_ZNK3P3D11Application6Camera19getForwardDirectionEv(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %6, ptr noundef nonnull align 8 dereferenceable(576) %25)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #10
  %94 = call noundef double @_ZN3P3DmlIddLm3EEEDTplmlixfp_Li0Eixfp0_Li0Emlixfp_Li1Eixfp0_Li1EERKNS_6VectorIT_XT1_EEERKNS2_IT0_XT1_EEE(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6) #10
  store double %94, ptr %7, align 8, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #10
  %95 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 14
  %96 = load double, ptr %95, align 8, !tbaa !37
  %97 = load double, ptr %7, align 8, !tbaa !36
  %98 = fmul double %96, %97
  store double %98, ptr %8, align 8, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #10
  %99 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 14
  %100 = load double, ptr %99, align 8, !tbaa !37
  %101 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 14
  %102 = load double, ptr %101, align 8, !tbaa !37
  %103 = load double, ptr %8, align 8, !tbaa !36
  %104 = load double, ptr %8, align 8, !tbaa !36
  %105 = fmul double %103, %104
  %106 = fneg double %105
  %107 = call double @llvm.fmuladd.f64(double %100, double %102, double %106)
  %108 = call double @sqrt(double noundef %107) #10
  store double %108, ptr %9, align 8, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #10
  %109 = getelementptr inbounds %"struct.P3D::Vector", ptr %6, i32 0, i32 0
  %110 = getelementptr inbounds %struct.anon, ptr %109, i32 0, i32 0
  %111 = load double, ptr %110, align 8, !tbaa !27
  %112 = getelementptr inbounds %"struct.P3D::Vector", ptr %6, i32 0, i32 0
  %113 = getelementptr inbounds %struct.anon, ptr %112, i32 0, i32 2
  %114 = load double, ptr %113, align 8, !tbaa !27
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %13, double noundef %111, double noundef 0.000000e+00, double noundef %114) #10
  call void @_ZN3P3DngIdLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %12, ptr noundef nonnull align 8 dereferenceable(24) %13) #10
  call void @_ZN3P3D9normalizeIdLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %11, ptr noundef nonnull align 8 dereferenceable(24) %12) #10
  call void @_ZN3P3DmlIddLm3EEENS_6VectorIDTmlixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %10, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(8) %9) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #10
  %115 = load double, ptr %8, align 8, !tbaa !36
  %116 = fneg double %115
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %14, double noundef 0.000000e+00, double noundef %116, double noundef 0.000000e+00) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #10
  call void @_ZN3P3DplIddLm3EEENS_6VectorIDTplixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %15, ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %10) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #10
  %117 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 24
  %118 = load ptr, ptr %117, align 8, !tbaa !35
  %119 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNK3P3D4Part9getCFrameEv(ptr noundef nonnull align 8 dereferenceable(200) %118)
  %120 = getelementptr inbounds %"class.P3D::GlobalCFrame", ptr %119, i32 0, i32 0
  call void @_ZN3P3DplINS_3FixILl32EEEdEENS_16PositionTemplateIT_EERKS5_RKNS_6VectorIT0_Lm3EEE(ptr dead_on_unwind writable sret(%"struct.P3D::PositionTemplate") align 8 %16, ptr noundef nonnull align 8 dereferenceable(24) %120, ptr noundef nonnull align 8 dereferenceable(24) %15) #10
  %121 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 10
  %122 = getelementptr inbounds %"class.P3D::GlobalCFrame", ptr %121, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %122, ptr align 8 %16, i64 24, i1 false), !tbaa.struct !38
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #10
  %123 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 0
  %124 = load i8, ptr %123, align 8, !tbaa !40
  %125 = sext i8 %124 to i32
  %126 = or i32 %125, 1
  %127 = trunc i32 %126 to i8
  store i8 %127, ptr %123, align 8, !tbaa !40
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #10
  br label %128

128:                                              ; preds = %93, %89, %85
  %129 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 0
  %130 = load i8, ptr %129, align 8, !tbaa !40
  %131 = sext i8 %130 to i32
  %132 = and i32 %131, 2
  %133 = icmp ne i32 %132, 0
  br i1 %133, label %134, label %151

134:                                              ; preds = %128
  %135 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 0
  %136 = load i8, ptr %135, align 8, !tbaa !40
  %137 = sext i8 %136 to i32
  %138 = xor i32 %137, 2
  %139 = trunc i32 %138 to i8
  store i8 %139, ptr %135, align 8, !tbaa !40
  call void @llvm.lifetime.start.p0(i64 64, ptr %17) #10
  %140 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 15
  %141 = load float, ptr %140, align 8, !tbaa !41
  %142 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 18
  %143 = load float, ptr %142, align 4, !tbaa !42
  %144 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 16
  %145 = load float, ptr %144, align 4, !tbaa !43
  %146 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 17
  %147 = load float, ptr %146, align 8, !tbaa !44
  call void @_ZN3P3D11perspectiveEffff(ptr dead_on_unwind writable sret(%"class.P3D::Matrix.0") align 4 %17, float noundef %141, float noundef %143, float noundef %145, float noundef %147)
  %148 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 21
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %148, ptr align 4 %17, i64 64, i1 false), !tbaa.struct !45
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr %18) #10
  %149 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 21
  call void @_ZN3P3DcoIfLm4EEENS_6MatrixIT_XT0_EXT0_EEERKS3_(ptr dead_on_unwind writable sret(%"class.P3D::Matrix.0") align 4 %18, ptr noundef nonnull align 4 dereferenceable(64) %149)
  %150 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 22
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %150, ptr align 4 %18, i64 64, i1 false), !tbaa.struct !45
  call void @llvm.lifetime.end.p0(i64 64, ptr %18) #10
  br label %151

151:                                              ; preds = %134, %128
  %152 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 0
  %153 = load i8, ptr %152, align 8, !tbaa !40
  %154 = sext i8 %153 to i32
  %155 = and i32 %154, 1
  %156 = icmp ne i32 %155, 0
  br i1 %156, label %157, label %181

157:                                              ; preds = %151
  %158 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 0
  %159 = load i8, ptr %158, align 8, !tbaa !40
  %160 = sext i8 %159 to i32
  %161 = xor i32 %160, 1
  %162 = trunc i32 %161 to i8
  store i8 %162, ptr %158, align 8, !tbaa !40
  call void @llvm.lifetime.start.p0(i64 64, ptr %19) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr %20) #10
  call void @_ZN3P3D11Application6Camera15getViewRotationEv(ptr dead_on_unwind writable sret(%"class.P3D::Matrix.0") align 4 %20, ptr noundef nonnull align 8 dereferenceable(576) %25)
  call void @llvm.lifetime.start.p0(i64 12, ptr %21) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr %22) #10
  %163 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 10
  %164 = getelementptr inbounds %"class.P3D::GlobalCFrame", ptr %163, i32 0, i32 0
  %165 = getelementptr inbounds %"struct.P3D::PositionTemplate", ptr %164, i32 0, i32 0
  %166 = call noundef float @_ZNK3P3D3FixILl32EEcvfEv(ptr noundef nonnull align 8 dereferenceable(8) %165) #10
  %167 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 10
  %168 = getelementptr inbounds %"class.P3D::GlobalCFrame", ptr %167, i32 0, i32 0
  %169 = getelementptr inbounds %"struct.P3D::PositionTemplate", ptr %168, i32 0, i32 1
  %170 = call noundef float @_ZNK3P3D3FixILl32EEcvfEv(ptr noundef nonnull align 8 dereferenceable(8) %169) #10
  %171 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 10
  %172 = getelementptr inbounds %"class.P3D::GlobalCFrame", ptr %171, i32 0, i32 0
  %173 = getelementptr inbounds %"struct.P3D::PositionTemplate", ptr %172, i32 0, i32 2
  %174 = call noundef float @_ZNK3P3D3FixILl32EEcvfEv(ptr noundef nonnull align 8 dereferenceable(8) %173) #10
  call void @_ZN3P3D6VectorIfLm3EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %22, float noundef %166, float noundef %170, float noundef %174) #10
  %175 = call { <2 x float>, float } @_ZN3P3DngIfLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %22) #10
  %176 = getelementptr inbounds %"struct.P3D::Vector.37", ptr %21, i32 0, i32 0
  %177 = getelementptr inbounds %union.anon.38, ptr %176, i32 0, i32 0
  store { <2 x float>, float } %175, ptr %23, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %177, ptr align 8 %23, i64 12, i1 false)
  call void @_ZN3P3D9translateIfEENS_6MatrixIT_Lm4ELm4EEERKS3_RKNS_6VectorIS2_Lm3EEE(ptr dead_on_unwind writable sret(%"class.P3D::Matrix.0") align 4 %19, ptr noundef nonnull align 4 dereferenceable(64) %20, ptr noundef nonnull align 4 dereferenceable(12) %21)
  %178 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 19
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %178, ptr align 4 %19, i64 64, i1 false), !tbaa.struct !45
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %19) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr %24) #10
  %179 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 19
  call void @_ZN3P3DcoIfLm4EEENS_6MatrixIT_XT0_EXT0_EEERKS3_(ptr dead_on_unwind writable sret(%"class.P3D::Matrix.0") align 4 %24, ptr noundef nonnull align 4 dereferenceable(64) %179)
  %180 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %25, i32 0, i32 20
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %180, ptr align 4 %24, i64 64, i1 false), !tbaa.struct !45
  call void @llvm.lifetime.end.p0(i64 64, ptr %24) #10
  br label %181

181:                                              ; preds = %157, %151
  ret void
}

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #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 uwtable
declare dso_local void @_ZN3P3D11Application6Camera15getViewRotationEv(ptr dead_on_unwind noalias writable sret(%"class.P3D::Matrix.0") align 4, ptr noundef nonnull align 8 dereferenceable(576)) #3 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24), double noundef, double noundef, double noundef) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D11Application6Camera6rotateERNS0_6ScreenENS_6VectorIdLm3EEEbb(ptr noundef nonnull align 8 dereferenceable(576), ptr noundef nonnull align 8 dereferenceable(1024), ptr noundef byval(%"struct.P3D::Vector") align 8, i1 noundef zeroext, i1 noundef zeroext) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3DmlIddLm3EEENS_6VectorIDTmlixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D9normalizeIdLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D11Application6Camera4moveERNS0_6ScreenENS_6VectorIdLm3EEEbb(ptr noundef nonnull align 8 dereferenceable(576), ptr noundef nonnull align 8 dereferenceable(1024), ptr noundef byval(%"struct.P3D::Vector") align 8, i1 noundef zeroext, i1 noundef zeroext) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK3P3D11Application6Camera19getForwardDirectionEv(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(576)) #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZN3P3DmlIddLm3EEEDTplmlixfp_Li0Eixfp0_Li0Emlixfp_Li1Eixfp0_Li1EERKNS_6VectorIT_XT1_EEERKNS2_IT0_XT1_EEE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #5

; Function Attrs: nounwind
declare double @sqrt(double noundef) #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3DngIdLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3DplIddLm3EEENS_6VectorIDTplixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3DplINS_3FixILl32EEEdEENS_16PositionTemplateIT_EERKS5_RKNS_6VectorIT0_Lm3EEE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::PositionTemplate") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(96) ptr @_ZNK3P3D4Part9getCFrameEv(ptr noundef nonnull align 8 dereferenceable(200)) #5 align 2

declare void @_ZN3P3D11perspectiveEffff(ptr dead_on_unwind writable sret(%"class.P3D::Matrix.0") align 4, float noundef, float noundef, float noundef, float noundef) #8

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3DcoIfLm4EEENS_6MatrixIT_XT0_EXT0_EEERKS3_(ptr dead_on_unwind noalias writable sret(%"class.P3D::Matrix.0") align 4, ptr noundef nonnull align 4 dereferenceable(64)) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D9translateIfEENS_6MatrixIT_Lm4ELm4EEERKS3_RKNS_6VectorIS2_Lm3EEE(ptr dead_on_unwind noalias writable sret(%"class.P3D::Matrix.0") align 4, ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(12)) #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3P3D3FixILl32EEcvfEv(ptr noundef nonnull align 8 dereferenceable(8)) #9 align 2

; 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 #5 align 2

attributes #0 = { 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 #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { inlinehint 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 #7 = { 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 #8 = { "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 #9 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #10 = { 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, !11, i64 16}
!10 = !{!"_ZTSN3P3D11Application6CameraE", !7, i64 0, !11, i64 8, !11, i64 16, !12, i64 24, !13, i64 48, !11, i64 56, !11, i64 64, !12, i64 72, !13, i64 96, !13, i64 97, !14, i64 104, !11, i64 200, !11, i64 208, !13, i64 216, !11, i64 224, !20, i64 232, !20, i64 236, !20, i64 240, !20, i64 244, !21, i64 248, !21, i64 312, !21, i64 376, !21, i64 440, !21, i64 504, !6, i64 568}
!11 = !{!"double", !7, i64 0}
!12 = !{!"_ZTSN3P3D6VectorIdLm3EEE", !7, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN3P3D12GlobalCFrameE", !15, i64 0, !18, i64 24}
!15 = !{!"_ZTSN3P3D16PositionTemplateINS_3FixILl32EEEEE", !16, i64 0, !16, i64 8, !16, i64 16}
!16 = !{!"_ZTSN3P3D3FixILl32EEE", !17, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!"_ZTSN3P3D22MatrixRotationTemplateIdEE", !19, i64 0}
!19 = !{!"_ZTSN3P3D6MatrixIdLm3ELm3EEE", !7, i64 0}
!20 = !{!"float", !7, i64 0}
!21 = !{!"_ZTSN3P3D6MatrixIfLm4ELm4EEE", !7, i64 0}
!22 = !{!10, !13, i64 97}
!23 = !{!10, !13, i64 48}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{i64 0, i64 24, !27}
!27 = !{!7, !7, i64 0}
!28 = !{!10, !11, i64 200}
!29 = !{!10, !11, i64 8}
!30 = !{!10, !11, i64 64}
!31 = !{!10, !13, i64 96}
!32 = !{!10, !11, i64 208}
!33 = !{!10, !11, i64 56}
!34 = !{!10, !13, i64 216}
!35 = !{!10, !6, i64 568}
!36 = !{!11, !11, i64 0}
!37 = !{!10, !11, i64 224}
!38 = !{i64 0, i64 8, !39, i64 8, i64 8, !39, i64 16, i64 8, !39}
!39 = !{!17, !17, i64 0}
!40 = !{!10, !7, i64 0}
!41 = !{!10, !20, i64 232}
!42 = !{!10, !20, i64 244}
!43 = !{!10, !20, i64 236}
!44 = !{!10, !20, i64 240}
!45 = !{i64 0, i64 64, !27}


; 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.13", %"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.13" = type { %union.anon.14 }
%union.anon.14 = 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.0", %"class.P3D::Matrix.0", %"class.P3D::Matrix.0", %"class.P3D::Matrix.0", %"class.P3D::Matrix.0", 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.0" = type { [16 x float] }
%"class.P3D::Engine::LayerStack" = type <{ %"class.std::vector.16", i32, [4 x i8] }>
%"class.std::vector.16" = type { %"struct.std::_Vector_base.17" }
%"struct.std::_Vector_base.17" = 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.24 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.24 = type { i64, [8 x i8] }
%"class.std::map" = type { %"class.std::_Rb_tree.25" }
%"class.std::_Rb_tree.25" = 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.P3D::Vector.37" = type { %union.anon.38 }
%union.anon.38 = type { [3 x float] }

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3P3D11Application6Camera8onUpdateEv(ptr noundef nonnull align 8 dereferenceable(576) %0) local_unnamed_addr #0 align 2 {
  %2 = alloca %"struct.P3D::Vector", align 8
  %3 = alloca %"struct.P3D::Vector", align 8
  %4 = alloca double, align 8
  %5 = alloca %"struct.P3D::Vector", align 8
  %6 = alloca %"struct.P3D::Vector", align 8
  %7 = alloca %"struct.P3D::Vector", align 8
  %8 = alloca %"struct.P3D::Vector", align 8
  %9 = alloca %"struct.P3D::Vector", align 8
  %10 = alloca %"struct.P3D::Vector", align 8
  %11 = alloca %"struct.P3D::PositionTemplate", align 8
  %12 = alloca %"class.P3D::Matrix.0", align 4
  %13 = alloca %"class.P3D::Matrix.0", align 4
  %14 = alloca %"class.P3D::Matrix.0", align 4
  %15 = alloca %"class.P3D::Matrix.0", align 4
  %16 = alloca %"struct.P3D::Vector.37", align 8
  %17 = alloca %"struct.P3D::Vector.37", align 4
  %18 = alloca %"class.P3D::Matrix.0", align 4
  %19 = getelementptr inbounds i8, ptr %0, i64 16
  %20 = load double, ptr %19, align 8, !tbaa !5
  %21 = fcmp une double %20, 0.000000e+00
  br i1 %21, label %22, label %42

22:                                               ; preds = %1
  %23 = fcmp olt double %20, 0.000000e+00
  br i1 %23, label %24, label %26

24:                                               ; preds = %22
  store double 0.000000e+00, ptr %19, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %0, i64 97
  store i8 0, ptr %25, align 1, !tbaa !21
  br label %42

26:                                               ; preds = %22
  %27 = getelementptr inbounds i8, ptr %0, i64 48
  %28 = load i8, ptr %27, align 8, !tbaa !22, !range !23, !noundef !24
  %29 = trunc nuw i8 %28 to i1
  br i1 %29, label %42, label %30

30:                                               ; preds = %26
  %31 = getelementptr inbounds i8, ptr %0, i64 24
  %32 = getelementptr inbounds i8, ptr %0, i64 97
  %33 = load i8, ptr %32, align 1, !tbaa !21, !range !23, !noundef !24
  %34 = trunc nuw i8 %33 to i1
  tail call void @_ZN3P3D11Application6Camera4moveERNS0_6ScreenENS_6VectorIdLm3EEEbb(ptr noundef nonnull align 8 dereferenceable(576) %0, ptr noundef nonnull align 8 dereferenceable(1024) @_ZN3P3D11Application6screenE, ptr noundef nonnull byval(%"struct.P3D::Vector") align 8 %31, i1 noundef zeroext %34, i1 noundef zeroext false)
  %35 = getelementptr inbounds i8, ptr %0, i64 200
  %36 = load double, ptr %35, align 8, !tbaa !25
  %37 = getelementptr inbounds i8, ptr %0, i64 8
  %38 = load double, ptr %37, align 8, !tbaa !26
  %39 = load double, ptr %19, align 8, !tbaa !5
  %40 = fneg double %36
  %41 = tail call double @llvm.fmuladd.f64(double %40, double %38, double %39)
  store double %41, ptr %19, align 8, !tbaa !5
  br label %42

42:                                               ; preds = %24, %30, %26, %1
  %43 = getelementptr inbounds i8, ptr %0, i64 64
  %44 = load double, ptr %43, align 8, !tbaa !27
  %45 = fcmp une double %44, 0.000000e+00
  br i1 %45, label %46, label %66

46:                                               ; preds = %42
  %47 = fcmp olt double %44, 0.000000e+00
  br i1 %47, label %48, label %50

48:                                               ; preds = %46
  store double 0.000000e+00, ptr %43, align 8, !tbaa !27
  %49 = getelementptr inbounds i8, ptr %0, i64 97
  store i8 0, ptr %49, align 1, !tbaa !21
  br label %66

50:                                               ; preds = %46
  %51 = getelementptr inbounds i8, ptr %0, i64 96
  %52 = load i8, ptr %51, align 8, !tbaa !28, !range !23, !noundef !24
  %53 = trunc nuw i8 %52 to i1
  br i1 %53, label %66, label %54

54:                                               ; preds = %50
  %55 = getelementptr inbounds i8, ptr %0, i64 72
  %56 = getelementptr inbounds i8, ptr %0, i64 97
  %57 = load i8, ptr %56, align 1, !tbaa !21, !range !23, !noundef !24
  %58 = trunc nuw i8 %57 to i1
  tail call void @_ZN3P3D11Application6Camera6rotateERNS0_6ScreenENS_6VectorIdLm3EEEbb(ptr noundef nonnull align 8 dereferenceable(576) %0, ptr noundef nonnull align 8 dereferenceable(1024) @_ZN3P3D11Application6screenE, ptr noundef nonnull byval(%"struct.P3D::Vector") align 8 %55, i1 noundef zeroext %58, i1 noundef zeroext false)
  %59 = getelementptr inbounds i8, ptr %0, i64 208
  %60 = load double, ptr %59, align 8, !tbaa !29
  %61 = getelementptr inbounds i8, ptr %0, i64 56
  %62 = load double, ptr %61, align 8, !tbaa !30
  %63 = load double, ptr %43, align 8, !tbaa !27
  %64 = fneg double %60
  %65 = tail call double @llvm.fmuladd.f64(double %64, double %62, double %63)
  store double %65, ptr %43, align 8, !tbaa !27
  br label %66

66:                                               ; preds = %48, %54, %50, %42
  %67 = getelementptr inbounds i8, ptr %0, i64 216
  %68 = load i8, ptr %67, align 8, !tbaa !31, !range !23, !noundef !24
  %69 = trunc nuw i8 %68 to i1
  br i1 %69, label %90, label %70

70:                                               ; preds = %66
  %71 = getelementptr inbounds i8, ptr %0, i64 568
  %72 = load ptr, ptr %71, align 8, !tbaa !32
  %.not = icmp eq ptr %72, null
  br i1 %.not, label %90, label %73

73:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #10
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %2, double noundef 0.000000e+00, double noundef 1.000000e+00, double noundef 0.000000e+00) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #10
  call void @_ZNK3P3D11Application6Camera19getForwardDirectionEv(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %3, ptr noundef nonnull align 8 dereferenceable(576) %0)
  %74 = call noundef double @_ZN3P3DmlIddLm3EEEDTplmlixfp_Li0Eixfp0_Li0Emlixfp_Li1Eixfp0_Li1EERKNS_6VectorIT_XT1_EEERKNS2_IT0_XT1_EEE(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3) #10
  %75 = getelementptr inbounds i8, ptr %0, i64 224
  %76 = load double, ptr %75, align 8, !tbaa !33
  %77 = fmul double %74, %76
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #10
  %78 = fneg double %77
  %79 = fmul double %77, %78
  %80 = call double @llvm.fmuladd.f64(double %76, double %76, double %79)
  %81 = call double @sqrt(double noundef %80) #10
  store double %81, ptr %4, align 8, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #10
  %82 = load double, ptr %3, align 8, !tbaa !35
  %83 = getelementptr inbounds i8, ptr %3, i64 16
  %84 = load double, ptr %83, align 8, !tbaa !35
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %8, double noundef %82, double noundef 0.000000e+00, double noundef %84) #10
  call void @_ZN3P3DngIdLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %7, ptr noundef nonnull align 8 dereferenceable(24) %8) #10
  call void @_ZN3P3D9normalizeIdLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %6, ptr noundef nonnull align 8 dereferenceable(24) %7) #10
  call void @_ZN3P3DmlIddLm3EEENS_6VectorIDTmlixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %5, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(8) %4) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #10
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %9, double noundef 0.000000e+00, double noundef %78, double noundef 0.000000e+00) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #10
  call void @_ZN3P3DplIddLm3EEENS_6VectorIDTplixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %10, ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %5) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #10
  %85 = load ptr, ptr %71, align 8, !tbaa !32
  %86 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNK3P3D4Part9getCFrameEv(ptr noundef nonnull align 8 dereferenceable(200) %85)
  call void @_ZN3P3DplINS_3FixILl32EEEdEENS_16PositionTemplateIT_EERKS5_RKNS_6VectorIT0_Lm3EEE(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::PositionTemplate") align 8 %11, ptr noundef nonnull align 8 dereferenceable(24) %86, ptr noundef nonnull align 8 dereferenceable(24) %10) #10
  %87 = getelementptr inbounds i8, ptr %0, i64 104
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %87, ptr noundef nonnull align 8 dereferenceable(24) %11, i64 24, i1 false), !tbaa.struct !36
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #10
  %88 = load i8, ptr %0, align 8, !tbaa !38
  %89 = or i8 %88, 1
  store i8 %89, ptr %0, align 8, !tbaa !38
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #10
  br label %90

90:                                               ; preds = %73, %70, %66
  %91 = load i8, ptr %0, align 8, !tbaa !38
  %92 = and i8 %91, 2
  %.not6 = icmp eq i8 %92, 0
  br i1 %.not6, label %105, label %93

93:                                               ; preds = %90
  %94 = and i8 %91, -3
  store i8 %94, ptr %0, align 8, !tbaa !38
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #10
  %95 = getelementptr inbounds i8, ptr %0, i64 232
  %96 = load float, ptr %95, align 8, !tbaa !39
  %97 = getelementptr inbounds i8, ptr %0, i64 244
  %98 = load float, ptr %97, align 4, !tbaa !40
  %99 = getelementptr inbounds i8, ptr %0, i64 236
  %100 = load float, ptr %99, align 4, !tbaa !41
  %101 = getelementptr inbounds i8, ptr %0, i64 240
  %102 = load float, ptr %101, align 8, !tbaa !42
  call void @_ZN3P3D11perspectiveEffff(ptr dead_on_unwind nonnull writable sret(%"class.P3D::Matrix.0") align 4 %12, float noundef %96, float noundef %98, float noundef %100, float noundef %102)
  %103 = getelementptr inbounds i8, ptr %0, i64 376
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %103, ptr noundef nonnull align 4 dereferenceable(64) %12, i64 64, i1 false), !tbaa.struct !43
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #10
  call void @_ZN3P3DcoIfLm4EEENS_6MatrixIT_XT0_EXT0_EEERKS3_(ptr dead_on_unwind nonnull writable sret(%"class.P3D::Matrix.0") align 4 %13, ptr noundef nonnull align 4 dereferenceable(64) %103)
  %104 = getelementptr inbounds i8, ptr %0, i64 440
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %104, ptr noundef nonnull align 4 dereferenceable(64) %13, i64 64, i1 false), !tbaa.struct !43
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #10
  %.pre = load i8, ptr %0, align 8, !tbaa !38
  br label %105

105:                                              ; preds = %93, %90
  %106 = phi i8 [ %.pre, %93 ], [ %91, %90 ]
  %107 = and i8 %106, 1
  %.not7 = icmp eq i8 %107, 0
  br i1 %.not7, label %119, label %108

108:                                              ; preds = %105
  %109 = and i8 %106, -2
  store i8 %109, ptr %0, align 8, !tbaa !38
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %14) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %15) #10
  call void @_ZN3P3D11Application6Camera15getViewRotationEv(ptr dead_on_unwind nonnull writable sret(%"class.P3D::Matrix.0") align 4 %15, ptr noundef nonnull align 8 dereferenceable(576) %0)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %16) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %17) #10
  %110 = getelementptr inbounds i8, ptr %0, i64 104
  %111 = call noundef float @_ZNK3P3D3FixILl32EEcvfEv(ptr noundef nonnull align 8 dereferenceable(8) %110) #10
  %112 = getelementptr inbounds i8, ptr %0, i64 112
  %113 = call noundef float @_ZNK3P3D3FixILl32EEcvfEv(ptr noundef nonnull align 8 dereferenceable(8) %112) #10
  %114 = getelementptr inbounds i8, ptr %0, i64 120
  %115 = call noundef float @_ZNK3P3D3FixILl32EEcvfEv(ptr noundef nonnull align 8 dereferenceable(8) %114) #10
  call void @_ZN3P3D6VectorIfLm3EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %17, float noundef %111, float noundef %113, float noundef %115) #10
  %116 = call { <2 x float>, float } @_ZN3P3DngIfLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %17) #10
  %.fca.0.extract = extractvalue { <2 x float>, float } %116, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %116, 1
  store <2 x float> %.fca.0.extract, ptr %16, align 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %16, i64 8
  store float %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  call void @_ZN3P3D9translateIfEENS_6MatrixIT_Lm4ELm4EEERKS3_RKNS_6VectorIS2_Lm3EEE(ptr dead_on_unwind nonnull writable sret(%"class.P3D::Matrix.0") align 4 %14, ptr noundef nonnull align 4 dereferenceable(64) %15, ptr noundef nonnull align 4 dereferenceable(12) %16)
  %117 = getelementptr inbounds i8, ptr %0, i64 248
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %117, ptr noundef nonnull align 4 dereferenceable(64) %14, i64 64, i1 false), !tbaa.struct !43
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %18) #10
  call void @_ZN3P3DcoIfLm4EEENS_6MatrixIT_XT0_EXT0_EEERKS3_(ptr dead_on_unwind nonnull writable sret(%"class.P3D::Matrix.0") align 4 %18, ptr noundef nonnull align 4 dereferenceable(64) %117)
  %118 = getelementptr inbounds i8, ptr %0, i64 312
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %118, ptr noundef nonnull align 4 dereferenceable(64) %18, i64 64, i1 false), !tbaa.struct !43
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %18) #10
  br label %119

119:                                              ; preds = %108, %105
  ret void
}

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

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24), double noundef, double noundef, double noundef) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D11Application6Camera6rotateERNS0_6ScreenENS_6VectorIdLm3EEEbb(ptr noundef nonnull align 8 dereferenceable(576), ptr noundef nonnull align 8 dereferenceable(1024), ptr noundef byval(%"struct.P3D::Vector") align 8, i1 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3DmlIddLm3EEENS_6VectorIDTmlixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D9normalizeIdLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D11Application6Camera4moveERNS0_6ScreenENS_6VectorIdLm3EEEbb(ptr noundef nonnull align 8 dereferenceable(576), ptr noundef nonnull align 8 dereferenceable(1024), ptr noundef byval(%"struct.P3D::Vector") align 8, i1 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK3P3D11Application6Camera19getForwardDirectionEv(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(576)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZN3P3DmlIddLm3EEEDTplmlixfp_Li0Eixfp0_Li0Emlixfp_Li1Eixfp0_Li1EERKNS_6VectorIT_XT1_EEERKNS2_IT0_XT1_EEE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3DngIdLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3DplIddLm3EEENS_6VectorIDTplixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3DplINS_3FixILl32EEEdEENS_16PositionTemplateIT_EERKS5_RKNS_6VectorIT0_Lm3EEE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::PositionTemplate") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(96) ptr @_ZNK3P3D4Part9getCFrameEv(ptr noundef nonnull align 8 dereferenceable(200)) local_unnamed_addr #5 align 2

declare void @_ZN3P3D11perspectiveEffff(ptr dead_on_unwind writable sret(%"class.P3D::Matrix.0") align 4, float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #8

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3DcoIfLm4EEENS_6MatrixIT_XT0_EXT0_EEERKS3_(ptr dead_on_unwind noalias writable sret(%"class.P3D::Matrix.0") align 4, ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D9translateIfEENS_6MatrixIT_Lm4ELm4EEERKS3_RKNS_6VectorIS2_Lm3EEE(ptr dead_on_unwind noalias writable sret(%"class.P3D::Matrix.0") align 4, ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3P3D3FixILl32EEcvfEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #9 align 2

; 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 #5 align 2

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { inlinehint 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 #7 = { mustprogress nofree nounwind willreturn memory(write) "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 #8 = { "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 #9 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #10 = { 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, !9, i64 16}
!6 = !{!"_ZTSN3P3D11Application6CameraE", !7, i64 0, !9, i64 8, !9, i64 16, !10, i64 24, !11, i64 48, !9, i64 56, !9, i64 64, !10, i64 72, !11, i64 96, !11, i64 97, !12, i64 104, !9, i64 200, !9, i64 208, !11, i64 216, !9, i64 224, !18, i64 232, !18, i64 236, !18, i64 240, !18, i64 244, !19, i64 248, !19, i64 312, !19, i64 376, !19, i64 440, !19, i64 504, !20, i64 568}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!"double", !7, i64 0}
!10 = !{!"_ZTSN3P3D6VectorIdLm3EEE", !7, i64 0}
!11 = !{!"bool", !7, i64 0}
!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 = !{!"float", !7, i64 0}
!19 = !{!"_ZTSN3P3D6MatrixIfLm4ELm4EEE", !7, i64 0}
!20 = !{!"any pointer", !7, i64 0}
!21 = !{!6, !11, i64 97}
!22 = !{!6, !11, i64 48}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!6, !9, i64 200}
!26 = !{!6, !9, i64 8}
!27 = !{!6, !9, i64 64}
!28 = !{!6, !11, i64 96}
!29 = !{!6, !9, i64 208}
!30 = !{!6, !9, i64 56}
!31 = !{!6, !11, i64 216}
!32 = !{!6, !20, i64 568}
!33 = !{!6, !9, i64 224}
!34 = !{!9, !9, i64 0}
!35 = !{!7, !7, i64 0}
!36 = !{i64 0, i64 8, !37, i64 8, i64 8, !37, i64 16, i64 8, !37}
!37 = !{!15, !15, i64 0}
!38 = !{!6, !7, i64 0}
!39 = !{!6, !18, i64 232}
!40 = !{!6, !18, i64 244}
!41 = !{!6, !18, i64 236}
!42 = !{!6, !18, i64 240}
!43 = !{i64 0, i64 64, !35}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass