; LLVM IR from yangfengzzz/DigitalVox4 :: vox.render/controls/free_control.ll (ZN3vox7control11FreeControl6rotateEff)

; 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.vox::Point" = type { float, float, float }
%"class.vox::Vector" = type { float, float, float }
%"class.vox::control::FreeControl" = type <{ %"class.vox::Script", %"class.vox::Vector", %"class.vox::Vector", float, float, i8, [3 x i8], float, i8, [3 x i8], float, float, i8, i8, i8, i8, %"class.vox::Vector", %"class.vox::control::Spherical", %"struct.std::array", i8, [3 x i8], i32, i32, [4 x i8] }>
%"class.vox::Script" = type { %"class.vox::Component.base", i8, i64, i64, i64 }
%"class.vox::Component.base" = type <{ ptr, ptr, i8, i8, i8 }>
%"class.vox::control::Spherical" = type { float, float, float }
%"struct.std::array" = type { [2 x double] }
%"class.vox::Entity" = type { %"class.std::__cxx11::basic_string", i32, ptr, i8, %"class.std::vector", %"class.std::vector.3", %"class.std::vector.8", ptr, i8, i8, ptr, %"class.std::vector.13", %"class.std::unique_ptr" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::unique_ptr<vox::Component>, std::allocator<std::unique_ptr<vox::Component>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<vox::Component>, std::allocator<std::unique_ptr<vox::Component>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<vox::Component>, std::allocator<std::unique_ptr<vox::Component>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<vox::Component>, std::allocator<std::unique_ptr<vox::Component>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<vox::Script *, std::allocator<vox::Script *>>::_Vector_impl" }
%"struct.std::_Vector_base<vox::Script *, std::allocator<vox::Script *>>::_Vector_impl" = type { %"struct.std::_Vector_base<vox::Script *, std::allocator<vox::Script *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vox::Script *, std::allocator<vox::Script *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<std::shared_ptr<vox::Entity>, std::allocator<std::shared_ptr<vox::Entity>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<vox::Entity>, std::allocator<std::shared_ptr<vox::Entity>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<vox::Entity>, std::allocator<std::shared_ptr<vox::Entity>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<vox::Entity>, std::allocator<std::shared_ptr<vox::Entity>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<vox::Component *, std::allocator<vox::Component *>>::_Vector_impl" }
%"struct.std::_Vector_base<vox::Component *, std::allocator<vox::Component *>>::_Vector_impl" = type { %"struct.std::_Vector_base<vox::Component *, std::allocator<vox::Component *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vox::Component *, std::allocator<vox::Component *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.19" }
%"struct.std::_Head_base.19" = type { ptr }

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vox7control11FreeControl6rotateEff(ptr noundef nonnull align 8 dereferenceable(156) %0, float noundef %1, float noundef %2) #1 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca %"class.vox::Point", align 4
  %8 = alloca %"class.vox::Point", align 4
  %9 = alloca %"class.vox::Vector", align 4
  %10 = alloca %"class.vox::Vector", align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store float %1, ptr %5, align 4, !tbaa !9
  store float %2, ptr %6, align 4, !tbaa !9
  %11 = load ptr, ptr %4, align 8
  %12 = load float, ptr %5, align 4, !tbaa !9
  %13 = call noundef float @_ZN3vox16degreesToRadiansIfEET_S1_(float noundef %12)
  %14 = getelementptr inbounds %"class.vox::control::FreeControl", ptr %11, i32 0, i32 10
  %15 = load float, ptr %14, align 4, !tbaa !11
  %16 = fadd float %15, %13
  store float %16, ptr %14, align 4, !tbaa !11
  %17 = load float, ptr %6, align 4, !tbaa !9
  %18 = call noundef float @_ZN3vox16degreesToRadiansIfEET_S1_(float noundef %17)
  %19 = getelementptr inbounds %"class.vox::control::FreeControl", ptr %11, i32 0, i32 11
  %20 = load float, ptr %19, align 8, !tbaa !21
  %21 = fadd float %20, %18
  store float %21, ptr %19, align 8, !tbaa !21
  %22 = getelementptr inbounds %"class.vox::control::FreeControl", ptr %11, i32 0, i32 11
  %23 = load float, ptr %22, align 8, !tbaa !21
  %24 = call noundef float @_ZN3vox5clampIfEET_S1_S1_S1_(float noundef %23, float noundef 0x3EB0C6F7A0000000, float noundef 0x400921FAC0000000)
  %25 = getelementptr inbounds %"class.vox::control::FreeControl", ptr %11, i32 0, i32 11
  store float %24, ptr %25, align 8, !tbaa !21
  %26 = getelementptr inbounds %"class.vox::control::FreeControl", ptr %11, i32 0, i32 10
  %27 = load float, ptr %26, align 4, !tbaa !11
  %28 = getelementptr inbounds %"class.vox::control::FreeControl", ptr %11, i32 0, i32 17
  %29 = getelementptr inbounds %"class.vox::control::Spherical", ptr %28, i32 0, i32 2
  store float %27, ptr %29, align 4, !tbaa !22
  %30 = getelementptr inbounds %"class.vox::control::FreeControl", ptr %11, i32 0, i32 11
  %31 = load float, ptr %30, align 8, !tbaa !21
  %32 = getelementptr inbounds %"class.vox::control::FreeControl", ptr %11, i32 0, i32 17
  %33 = getelementptr inbounds %"class.vox::control::Spherical", ptr %32, i32 0, i32 1
  store float %31, ptr %33, align 4, !tbaa !23
  %34 = getelementptr inbounds %"class.vox::control::FreeControl", ptr %11, i32 0, i32 17
  %35 = getelementptr inbounds %"class.vox::control::FreeControl", ptr %11, i32 0, i32 16
  call void @_ZN3vox7control9Spherical9setToVec3ERNS_6VectorIfLm3EEE(ptr noundef nonnull align 4 dereferenceable(12) %34, ptr noundef nonnull align 4 dereferenceable(12) %35)
  call void @llvm.lifetime.start.p0(i64 12, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %8) #6
  %36 = call noundef ptr @_ZNK3vox9Component6entityEv(ptr noundef nonnull align 8 dereferenceable(19) %11)
  %37 = getelementptr inbounds %"class.vox::Entity", ptr %36, i32 0, i32 2
  %38 = load ptr, ptr %37, align 8, !tbaa !24
  call void @_ZN3vox9Transform8positionEv(ptr dead_on_unwind writable sret(%"class.vox::Point") align 4 %8, ptr noundef nonnull align 8 dereferenceable(300) %38)
  %39 = getelementptr inbounds %"class.vox::control::FreeControl", ptr %11, i32 0, i32 16
  call void @_ZN3voxplIfEENS_5PointIT_Lm3EEERKS3_RKNS_6VectorIS2_Lm3EEE(ptr dead_on_unwind writable sret(%"class.vox::Point") align 4 %7, ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %39)
  call void @llvm.lifetime.end.p0(i64 12, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %9) #6
  %40 = getelementptr inbounds %"class.vox::Point", ptr %7, i32 0, i32 0
  %41 = load float, ptr %40, align 4, !tbaa !50
  %42 = getelementptr inbounds %"class.vox::Point", ptr %7, i32 0, i32 1
  %43 = load float, ptr %42, align 4, !tbaa !52
  %44 = getelementptr inbounds %"class.vox::Point", ptr %7, i32 0, i32 1
  %45 = load float, ptr %44, align 4, !tbaa !52
  call void @_ZN3vox6VectorIfLm3EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %9, float noundef %41, float noundef %43, float noundef %45)
  %46 = getelementptr inbounds %"class.vox::control::FreeControl", ptr %11, i32 0, i32 16
  %47 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3vox6VectorIfLm3EEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %46, ptr noundef nonnull align 4 dereferenceable(12) %9)
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #6
  %48 = call noundef ptr @_ZNK3vox9Component6entityEv(ptr noundef nonnull align 8 dereferenceable(19) %11)
  %49 = getelementptr inbounds %"class.vox::Entity", ptr %48, i32 0, i32 2
  %50 = load ptr, ptr %49, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #6
  call void @_ZN3vox6VectorIfLm3EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %10, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00)
  call void @_ZN3vox9Transform6lookAtERKNS_5PointIfLm3EEERKNS_6VectorIfLm3EEE(ptr noundef nonnull align 8 dereferenceable(300) %50, ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %10)
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %7) #6
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZN3vox16degreesToRadiansIfEET_S1_(float noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3vox5clampIfEET_S1_S1_S1_(float noundef, float noundef, float noundef) #3

declare void @_ZN3vox7control9Spherical9setToVec3ERNS_6VectorIfLm3EEE(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3voxplIfEENS_5PointIT_Lm3EEERKS3_RKNS_6VectorIS2_Lm3EEE(ptr dead_on_unwind noalias writable sret(%"class.vox::Point") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #1

declare noundef ptr @_ZNK3vox9Component6entityEv(ptr noundef nonnull align 8 dereferenceable(19)) #4

declare void @_ZN3vox9Transform8positionEv(ptr dead_on_unwind writable sret(%"class.vox::Point") align 4, ptr noundef nonnull align 8 dereferenceable(300)) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN3vox6VectorIfLm3EEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #1 align 2

declare void @_ZN3vox9Transform6lookAtERKNS_5PointIfLm3EEERKNS_6VectorIfLm3EEE(ptr noundef nonnull align 8 dereferenceable(300), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !10, i64 92}
!12 = !{!"_ZTSN3vox7control11FreeControlE", !13, i64 0, !17, i64 48, !17, i64 60, !10, i64 72, !10, i64 76, !15, i64 80, !10, i64 84, !15, i64 88, !10, i64 92, !10, i64 96, !15, i64 100, !15, i64 101, !15, i64 102, !15, i64 103, !17, i64 104, !18, i64 116, !19, i64 128, !15, i64 144, !20, i64 148, !20, i64 152}
!13 = !{!"_ZTSN3vox6ScriptE", !14, i64 0, !15, i64 19, !16, i64 24, !16, i64 32, !16, i64 40}
!14 = !{!"_ZTSN3vox9ComponentE", !6, i64 8, !15, i64 16, !15, i64 17, !15, i64 18}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_ZTSN3vox6VectorIfLm3EEE", !10, i64 0, !10, i64 4, !10, i64 8}
!18 = !{!"_ZTSN3vox7control9SphericalE", !10, i64 0, !10, i64 4, !10, i64 8}
!19 = !{!"_ZTSSt5arrayIdLm2EE", !7, i64 0}
!20 = !{!"int", !7, i64 0}
!21 = !{!12, !10, i64 96}
!22 = !{!12, !10, i64 124}
!23 = !{!12, !10, i64 120}
!24 = !{!25, !6, i64 40}
!25 = !{!"_ZTSN3vox6EntityE", !26, i64 0, !20, i64 32, !6, i64 40, !15, i64 48, !28, i64 56, !32, i64 80, !36, i64 104, !6, i64 128, !15, i64 136, !15, i64 137, !6, i64 144, !40, i64 152, !44, i64 176}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !27, i64 0, !16, i64 8, !7, i64 16}
!27 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!28 = !{!"_ZTSSt6vectorISt10unique_ptrIN3vox9ComponentESt14default_deleteIS2_EESaIS5_EE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseISt10unique_ptrIN3vox9ComponentESt14default_deleteIS2_EESaIS5_EE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN3vox9ComponentESt14default_deleteIS2_EESaIS5_EE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN3vox9ComponentESt14default_deleteIS2_EESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!32 = !{!"_ZTSSt6vectorIPN3vox6ScriptESaIS2_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIPN3vox6ScriptESaIS2_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIPN3vox6ScriptESaIS2_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIPN3vox6ScriptESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!36 = !{!"_ZTSSt6vectorISt10shared_ptrIN3vox6EntityEESaIS3_EE", !37, i64 0}
!37 = !{!"_ZTSSt12_Vector_baseISt10shared_ptrIN3vox6EntityEESaIS3_EE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN3vox6EntityEESaIS3_EE12_Vector_implE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN3vox6EntityEESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!40 = !{!"_ZTSSt6vectorIPN3vox9ComponentESaIS2_EE", !41, i64 0}
!41 = !{!"_ZTSSt12_Vector_baseIPN3vox9ComponentESaIS2_EE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseIPN3vox9ComponentESaIS2_EE12_Vector_implE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseIPN3vox9ComponentESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!44 = !{!"_ZTSSt10unique_ptrIN3vox10UpdateFlagESt14default_deleteIS1_EE", !45, i64 0}
!45 = !{!"_ZTSSt15__uniq_ptr_dataIN3vox10UpdateFlagESt14default_deleteIS1_ELb1ELb1EE", !46, i64 0}
!46 = !{!"_ZTSSt15__uniq_ptr_implIN3vox10UpdateFlagESt14default_deleteIS1_EE", !47, i64 0}
!47 = !{!"_ZTSSt5tupleIJPN3vox10UpdateFlagESt14default_deleteIS1_EEE", !48, i64 0}
!48 = !{!"_ZTSSt11_Tuple_implILm0EJPN3vox10UpdateFlagESt14default_deleteIS1_EEE", !49, i64 0}
!49 = !{!"_ZTSSt10_Head_baseILm0EPN3vox10UpdateFlagELb0EE", !6, i64 0}
!50 = !{!51, !10, i64 0}
!51 = !{!"_ZTSN3vox5PointIfLm3EEE", !10, i64 0, !10, i64 4, !10, i64 8}
!52 = !{!51, !10, i64 4}


; 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.vox::Point" = type { float, float, float }
%"class.vox::Vector" = type { float, float, float }

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vox7control11FreeControl6rotateEff(ptr noundef nonnull align 8 dereferenceable(156) %0, float noundef %1, float noundef %2) local_unnamed_addr #1 align 2 {
  %4 = alloca %"class.vox::Point", align 4
  %5 = alloca %"class.vox::Point", align 4
  %6 = alloca %"class.vox::Vector", align 4
  %7 = alloca %"class.vox::Vector", align 4
  %8 = tail call noundef float @_ZN3vox16degreesToRadiansIfEET_S1_(float noundef %1)
  %9 = getelementptr inbounds i8, ptr %0, i64 92
  %10 = load float, ptr %9, align 4, !tbaa !5
  %11 = fadd float %8, %10
  store float %11, ptr %9, align 4, !tbaa !5
  %12 = tail call noundef float @_ZN3vox16degreesToRadiansIfEET_S1_(float noundef %2)
  %13 = getelementptr inbounds i8, ptr %0, i64 96
  %14 = load float, ptr %13, align 8, !tbaa !19
  %15 = fadd float %12, %14
  store float %15, ptr %13, align 8, !tbaa !19
  %16 = tail call noundef float @_ZN3vox5clampIfEET_S1_S1_S1_(float noundef %15, float noundef 0x3EB0C6F7A0000000, float noundef 0x400921FAC0000000)
  store float %16, ptr %13, align 8, !tbaa !19
  %17 = load float, ptr %9, align 4, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %0, i64 116
  %19 = getelementptr inbounds i8, ptr %0, i64 124
  store float %17, ptr %19, align 4, !tbaa !20
  %20 = getelementptr inbounds i8, ptr %0, i64 120
  store float %16, ptr %20, align 8, !tbaa !21
  %21 = getelementptr inbounds i8, ptr %0, i64 104
  tail call void @_ZN3vox7control9Spherical9setToVec3ERNS_6VectorIfLm3EEE(ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(12) %21)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #6
  %22 = tail call noundef ptr @_ZNK3vox9Component6entityEv(ptr noundef nonnull align 8 dereferenceable(19) %0)
  %23 = getelementptr inbounds i8, ptr %22, i64 40
  %24 = load ptr, ptr %23, align 8, !tbaa !22
  call void @_ZN3vox9Transform8positionEv(ptr dead_on_unwind nonnull writable sret(%"class.vox::Point") align 4 %5, ptr noundef nonnull align 8 dereferenceable(300) %24)
  call void @_ZN3voxplIfEENS_5PointIT_Lm3EEERKS3_RKNS_6VectorIS2_Lm3EEE(ptr dead_on_unwind nonnull writable sret(%"class.vox::Point") align 4 %4, ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %21)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #6
  %25 = load float, ptr %4, align 4, !tbaa !48
  %26 = getelementptr inbounds i8, ptr %4, i64 4
  %27 = load float, ptr %26, align 4, !tbaa !50
  call void @_ZN3vox6VectorIfLm3EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %6, float noundef %25, float noundef %27, float noundef %27)
  %28 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3vox6VectorIfLm3EEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %21, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #6
  %29 = call noundef ptr @_ZNK3vox9Component6entityEv(ptr noundef nonnull align 8 dereferenceable(19) %0)
  %30 = getelementptr inbounds i8, ptr %29, i64 40
  %31 = load ptr, ptr %30, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #6
  call void @_ZN3vox6VectorIfLm3EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %7, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00)
  call void @_ZN3vox9Transform6lookAtERKNS_5PointIfLm3EEERKNS_6VectorIfLm3EEE(ptr noundef nonnull align 8 dereferenceable(300) %31, ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %7)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #6
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZN3vox16degreesToRadiansIfEET_S1_(float noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3vox5clampIfEET_S1_S1_S1_(float noundef, float noundef, float noundef) local_unnamed_addr #3

declare void @_ZN3vox7control9Spherical9setToVec3ERNS_6VectorIfLm3EEE(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3voxplIfEENS_5PointIT_Lm3EEERKS3_RKNS_6VectorIS2_Lm3EEE(ptr dead_on_unwind noalias writable sret(%"class.vox::Point") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1

declare noundef ptr @_ZNK3vox9Component6entityEv(ptr noundef nonnull align 8 dereferenceable(19)) local_unnamed_addr #4

declare void @_ZN3vox9Transform8positionEv(ptr dead_on_unwind writable sret(%"class.vox::Point") align 4, ptr noundef nonnull align 8 dereferenceable(300)) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN3vox6VectorIfLm3EEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1 align 2

declare void @_ZN3vox9Transform6lookAtERKNS_5PointIfLm3EEERKNS_6VectorIfLm3EEE(ptr noundef nonnull align 8 dereferenceable(300), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { 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 #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 = { 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 = { 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, !15, i64 92}
!6 = !{!"_ZTSN3vox7control11FreeControlE", !7, i64 0, !14, i64 48, !14, i64 60, !15, i64 72, !15, i64 76, !12, i64 80, !15, i64 84, !12, i64 88, !15, i64 92, !15, i64 96, !12, i64 100, !12, i64 101, !12, i64 102, !12, i64 103, !14, i64 104, !16, i64 116, !17, i64 128, !12, i64 144, !18, i64 148, !18, i64 152}
!7 = !{!"_ZTSN3vox6ScriptE", !8, i64 0, !12, i64 19, !13, i64 24, !13, i64 32, !13, i64 40}
!8 = !{!"_ZTSN3vox9ComponentE", !9, i64 8, !12, i64 16, !12, i64 17, !12, i64 18}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"bool", !10, i64 0}
!13 = !{!"long", !10, i64 0}
!14 = !{!"_ZTSN3vox6VectorIfLm3EEE", !15, i64 0, !15, i64 4, !15, i64 8}
!15 = !{!"float", !10, i64 0}
!16 = !{!"_ZTSN3vox7control9SphericalE", !15, i64 0, !15, i64 4, !15, i64 8}
!17 = !{!"_ZTSSt5arrayIdLm2EE", !10, i64 0}
!18 = !{!"int", !10, i64 0}
!19 = !{!6, !15, i64 96}
!20 = !{!6, !15, i64 124}
!21 = !{!6, !15, i64 120}
!22 = !{!23, !9, i64 40}
!23 = !{!"_ZTSN3vox6EntityE", !24, i64 0, !18, i64 32, !9, i64 40, !12, i64 48, !26, i64 56, !30, i64 80, !34, i64 104, !9, i64 128, !12, i64 136, !12, i64 137, !9, i64 144, !38, i64 152, !42, i64 176}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !25, i64 0, !13, i64 8, !10, i64 16}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!26 = !{!"_ZTSSt6vectorISt10unique_ptrIN3vox9ComponentESt14default_deleteIS2_EESaIS5_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseISt10unique_ptrIN3vox9ComponentESt14default_deleteIS2_EESaIS5_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN3vox9ComponentESt14default_deleteIS2_EESaIS5_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN3vox9ComponentESt14default_deleteIS2_EESaIS5_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!30 = !{!"_ZTSSt6vectorIPN3vox6ScriptESaIS2_EE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseIPN3vox6ScriptESaIS2_EE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIPN3vox6ScriptESaIS2_EE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIPN3vox6ScriptESaIS2_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!34 = !{!"_ZTSSt6vectorISt10shared_ptrIN3vox6EntityEESaIS3_EE", !35, i64 0}
!35 = !{!"_ZTSSt12_Vector_baseISt10shared_ptrIN3vox6EntityEESaIS3_EE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN3vox6EntityEESaIS3_EE12_Vector_implE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN3vox6EntityEESaIS3_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!38 = !{!"_ZTSSt6vectorIPN3vox9ComponentESaIS2_EE", !39, i64 0}
!39 = !{!"_ZTSSt12_Vector_baseIPN3vox9ComponentESaIS2_EE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIPN3vox9ComponentESaIS2_EE12_Vector_implE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseIPN3vox9ComponentESaIS2_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!42 = !{!"_ZTSSt10unique_ptrIN3vox10UpdateFlagESt14default_deleteIS1_EE", !43, i64 0}
!43 = !{!"_ZTSSt15__uniq_ptr_dataIN3vox10UpdateFlagESt14default_deleteIS1_ELb1ELb1EE", !44, i64 0}
!44 = !{!"_ZTSSt15__uniq_ptr_implIN3vox10UpdateFlagESt14default_deleteIS1_EE", !45, i64 0}
!45 = !{!"_ZTSSt5tupleIJPN3vox10UpdateFlagESt14default_deleteIS1_EEE", !46, i64 0}
!46 = !{!"_ZTSSt11_Tuple_implILm0EJPN3vox10UpdateFlagESt14default_deleteIS1_EEE", !47, i64 0}
!47 = !{!"_ZTSSt10_Head_baseILm0EPN3vox10UpdateFlagELb0EE", !9, i64 0}
!48 = !{!49, !15, i64 0}
!49 = !{!"_ZTSN3vox5PointIfLm3EEE", !15, i64 0, !15, i64 4, !15, i64 8}
!50 = !{!49, !15, i64 4}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,TailCallElimPass