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

; 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

declare noundef zeroext i1 @_ZN3vox9Component7enabledEv(ptr noundef nonnull align 8 dereferenceable(19)) #1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vox7control11FreeControl8onUpdateEf(ptr noundef nonnull align 8 dereferenceable(156) %0, float noundef %1) unnamed_addr #2 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca float, align 4
  %5 = alloca float, align 4
  %6 = alloca %"class.vox::Vector", align 4
  %7 = alloca %"class.vox::Vector", align 4
  %8 = alloca %"class.vox::Vector", align 4
  %9 = alloca %"class.vox::Vector", align 4
  %10 = alloca %"class.vox::Vector", align 4
  %11 = alloca %"class.vox::Vector", align 4
  %12 = alloca %"class.vox::Point", align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store float %1, ptr %4, align 4, !tbaa !9
  %13 = load ptr, ptr %3, align 8
  %14 = call noundef zeroext i1 @_ZN3vox9Component7enabledEv(ptr noundef nonnull align 8 dereferenceable(19) %13)
  %15 = zext i1 %14 to i32
  %16 = icmp eq i32 %15, 0
  br i1 %16, label %17, label %18

17:                                               ; preds = %2
  br label %99

18:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  %19 = load float, ptr %4, align 4, !tbaa !9
  %20 = getelementptr inbounds %"class.vox::control::FreeControl", ptr %13, i32 0, i32 3
  %21 = load float, ptr %20, align 8, !tbaa !11
  %22 = fmul float %19, %21
  store float %22, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %6) #3
  %23 = call noundef ptr @_ZNK3vox9Component6entityEv(ptr noundef nonnull align 8 dereferenceable(19) %13)
  %24 = getelementptr inbounds %"class.vox::Entity", ptr %23, i32 0, i32 2
  %25 = load ptr, ptr %24, align 8, !tbaa !21
  call void @_ZN3vox9Transform12worldForwardEv(ptr dead_on_unwind writable sret(%"class.vox::Vector") align 4 %6, ptr noundef nonnull align 8 dereferenceable(300) %25)
  %26 = getelementptr inbounds %"class.vox::control::FreeControl", ptr %13, i32 0, i32 1
  %27 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3vox6VectorIfLm3EEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %26, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @llvm.lifetime.end.p0(i64 12, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 12, ptr %7) #3
  %28 = call noundef ptr @_ZNK3vox9Component6entityEv(ptr noundef nonnull align 8 dereferenceable(19) %13)
  %29 = getelementptr inbounds %"class.vox::Entity", ptr %28, i32 0, i32 2
  %30 = load ptr, ptr %29, align 8, !tbaa !21
  call void @_ZN3vox9Transform10worldRightEv(ptr dead_on_unwind writable sret(%"class.vox::Vector") align 4 %7, ptr noundef nonnull align 8 dereferenceable(300) %30)
  %31 = getelementptr inbounds %"class.vox::control::FreeControl", ptr %13, i32 0, i32 2
  %32 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3vox6VectorIfLm3EEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %31, ptr noundef nonnull align 4 dereferenceable(12) %7)
  call void @llvm.lifetime.end.p0(i64 12, ptr %7) #3
  %33 = getelementptr inbounds %"class.vox::control::FreeControl", ptr %13, i32 0, i32 12
  %34 = load i8, ptr %33, align 4, !tbaa !47, !range !48, !noundef !49
  %35 = trunc i8 %34 to i1
  br i1 %35, label %36, label %42

36:                                               ; preds = %18
  %37 = call noundef ptr @_ZNK3vox9Component6entityEv(ptr noundef nonnull align 8 dereferenceable(19) %13)
  %38 = getelementptr inbounds %"class.vox::Entity", ptr %37, i32 0, i32 2
  %39 = load ptr, ptr %38, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 12, ptr %8) #3
  %40 = getelementptr inbounds %"class.vox::control::FreeControl", ptr %13, i32 0, i32 1
  %41 = load float, ptr %5, align 4, !tbaa !9
  call void @_ZN3voxmlIfEENS_6VectorIT_Lm3EEERKS3_S2_(ptr dead_on_unwind writable sret(%"class.vox::Vector") align 4 %8, ptr noundef nonnull align 4 dereferenceable(12) %40, float noundef %41)
  call void @_ZN3vox9Transform9translateERKNS_6VectorIfLm3EEEb(ptr noundef nonnull align 8 dereferenceable(300) %39, ptr noundef nonnull align 4 dereferenceable(12) %8, i1 noundef zeroext false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %8) #3
  br label %42

42:                                               ; preds = %36, %18
  %43 = getelementptr inbounds %"class.vox::control::FreeControl", ptr %13, i32 0, i32 13
  %44 = load i8, ptr %43, align 1, !tbaa !50, !range !48, !noundef !49
  %45 = trunc i8 %44 to i1
  br i1 %45, label %46, label %53

46:                                               ; preds = %42
  %47 = call noundef ptr @_ZNK3vox9Component6entityEv(ptr noundef nonnull align 8 dereferenceable(19) %13)
  %48 = getelementptr inbounds %"class.vox::Entity", ptr %47, i32 0, i32 2
  %49 = load ptr, ptr %48, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 12, ptr %9) #3
  %50 = getelementptr inbounds %"class.vox::control::FreeControl", ptr %13, i32 0, i32 1
  %51 = load float, ptr %5, align 4, !tbaa !9
  %52 = fneg float %51
  call void @_ZN3voxmlIfEENS_6VectorIT_Lm3EEERKS3_S2_(ptr dead_on_unwind writable sret(%"class.vox::Vector") align 4 %9, ptr noundef nonnull align 4 dereferenceable(12) %50, float noundef %52)
  call void @_ZN3vox9Transform9translateERKNS_6VectorIfLm3EEEb(ptr noundef nonnull align 8 dereferenceable(300) %49, ptr noundef nonnull align 4 dereferenceable(12) %9, i1 noundef zeroext false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #3
  br label %53

53:                                               ; preds = %46, %42
  %54 = getelementptr inbounds %"class.vox::control::FreeControl", ptr %13, i32 0, i32 14
  %55 = load i8, ptr %54, align 2, !tbaa !51, !range !48, !noundef !49
  %56 = trunc i8 %55 to i1
  br i1 %56, label %57, label %64

57:                                               ; preds = %53
  %58 = call noundef ptr @_ZNK3vox9Component6entityEv(ptr noundef nonnull align 8 dereferenceable(19) %13)
  %59 = getelementptr inbounds %"class.vox::Entity", ptr %58, i32 0, i32 2
  %60 = load ptr, ptr %59, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #3
  %61 = getelementptr inbounds %"class.vox::control::FreeControl", ptr %13, i32 0, i32 2
  %62 = load float, ptr %5, align 4, !tbaa !9
  %63 = fneg float %62
  call void @_ZN3voxmlIfEENS_6VectorIT_Lm3EEERKS3_S2_(ptr dead_on_unwind writable sret(%"class.vox::Vector") align 4 %10, ptr noundef nonnull align 4 dereferenceable(12) %61, float noundef %63)
  call void @_ZN3vox9Transform9translateERKNS_6VectorIfLm3EEEb(ptr noundef nonnull align 8 dereferenceable(300) %60, ptr noundef nonnull align 4 dereferenceable(12) %10, i1 noundef zeroext false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #3
  br label %64

64:                                               ; preds = %57, %53
  %65 = getelementptr inbounds %"class.vox::control::FreeControl", ptr %13, i32 0, i32 15
  %66 = load i8, ptr %65, align 1, !tbaa !52, !range !48, !noundef !49
  %67 = trunc i8 %66 to i1
  br i1 %67, label %68, label %74

68:                                               ; preds = %64
  %69 = call noundef ptr @_ZNK3vox9Component6entityEv(ptr noundef nonnull align 8 dereferenceable(19) %13)
  %70 = getelementptr inbounds %"class.vox::Entity", ptr %69, i32 0, i32 2
  %71 = load ptr, ptr %70, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #3
  %72 = getelementptr inbounds %"class.vox::control::FreeControl", ptr %13, i32 0, i32 2
  %73 = load float, ptr %5, align 4, !tbaa !9
  call void @_ZN3voxmlIfEENS_6VectorIT_Lm3EEERKS3_S2_(ptr dead_on_unwind writable sret(%"class.vox::Vector") align 4 %11, ptr noundef nonnull align 4 dereferenceable(12) %72, float noundef %73)
  call void @_ZN3vox9Transform9translateERKNS_6VectorIfLm3EEEb(ptr noundef nonnull align 8 dereferenceable(300) %71, ptr noundef nonnull align 4 dereferenceable(12) %11, i1 noundef zeroext false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #3
  br label %74

74:                                               ; preds = %68, %64
  %75 = getelementptr inbounds %"class.vox::control::FreeControl", ptr %13, i32 0, i32 5
  %76 = load i8, ptr %75, align 8, !tbaa !53, !range !48, !noundef !49
  %77 = trunc i8 %76 to i1
  br i1 %77, label %78, label %98

78:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #3
  %79 = call noundef ptr @_ZNK3vox9Component6entityEv(ptr noundef nonnull align 8 dereferenceable(19) %13)
  %80 = getelementptr inbounds %"class.vox::Entity", ptr %79, i32 0, i32 2
  %81 = load ptr, ptr %80, align 8, !tbaa !21
  call void @_ZN3vox9Transform8positionEv(ptr dead_on_unwind writable sret(%"class.vox::Point") align 4 %12, ptr noundef nonnull align 8 dereferenceable(300) %81)
  %82 = getelementptr inbounds %"class.vox::Point", ptr %12, i32 0, i32 1
  %83 = load float, ptr %82, align 4, !tbaa !54
  %84 = getelementptr inbounds %"class.vox::control::FreeControl", ptr %13, i32 0, i32 7
  %85 = load float, ptr %84, align 4, !tbaa !56
  %86 = fcmp une float %83, %85
  br i1 %86, label %87, label %97

87:                                               ; preds = %78
  %88 = call noundef ptr @_ZNK3vox9Component6entityEv(ptr noundef nonnull align 8 dereferenceable(19) %13)
  %89 = getelementptr inbounds %"class.vox::Entity", ptr %88, i32 0, i32 2
  %90 = load ptr, ptr %89, align 8, !tbaa !21
  %91 = getelementptr inbounds %"class.vox::Point", ptr %12, i32 0, i32 0
  %92 = load float, ptr %91, align 4, !tbaa !57
  %93 = getelementptr inbounds %"class.vox::control::FreeControl", ptr %13, i32 0, i32 7
  %94 = load float, ptr %93, align 4, !tbaa !56
  %95 = getelementptr inbounds %"class.vox::Point", ptr %12, i32 0, i32 2
  %96 = load float, ptr %95, align 4, !tbaa !58
  call void @_ZN3vox9Transform11setPositionEfff(ptr noundef nonnull align 8 dereferenceable(300) %90, float noundef %92, float noundef %94, float noundef %96)
  br label %97

97:                                               ; preds = %87, %78
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #3
  br label %98

98:                                               ; preds = %97, %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  br label %99

99:                                               ; preds = %98, %17
  ret void
}

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

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

declare void @_ZN3vox9Transform9translateERKNS_6VectorIfLm3EEEb(ptr noundef nonnull align 8 dereferenceable(300), ptr noundef nonnull align 4 dereferenceable(12), i1 noundef zeroext) #1

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

declare void @_ZN3vox9Transform11setPositionEfff(ptr noundef nonnull align 8 dereferenceable(300), float noundef, float noundef, float noundef) #1

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !10, i64 72}
!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 = !{!22, !6, i64 40}
!22 = !{!"_ZTSN3vox6EntityE", !23, i64 0, !20, i64 32, !6, i64 40, !15, i64 48, !25, i64 56, !29, i64 80, !33, i64 104, !6, i64 128, !15, i64 136, !15, i64 137, !6, i64 144, !37, i64 152, !41, i64 176}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !24, i64 0, !16, i64 8, !7, i64 16}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!25 = !{!"_ZTSSt6vectorISt10unique_ptrIN3vox9ComponentESt14default_deleteIS2_EESaIS5_EE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseISt10unique_ptrIN3vox9ComponentESt14default_deleteIS2_EESaIS5_EE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN3vox9ComponentESt14default_deleteIS2_EESaIS5_EE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN3vox9ComponentESt14default_deleteIS2_EESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!29 = !{!"_ZTSSt6vectorIPN3vox6ScriptESaIS2_EE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseIPN3vox6ScriptESaIS2_EE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIPN3vox6ScriptESaIS2_EE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIPN3vox6ScriptESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!33 = !{!"_ZTSSt6vectorISt10shared_ptrIN3vox6EntityEESaIS3_EE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseISt10shared_ptrIN3vox6EntityEESaIS3_EE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN3vox6EntityEESaIS3_EE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN3vox6EntityEESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!37 = !{!"_ZTSSt6vectorIPN3vox9ComponentESaIS2_EE", !38, i64 0}
!38 = !{!"_ZTSSt12_Vector_baseIPN3vox9ComponentESaIS2_EE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIPN3vox9ComponentESaIS2_EE12_Vector_implE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIPN3vox9ComponentESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!41 = !{!"_ZTSSt10unique_ptrIN3vox10UpdateFlagESt14default_deleteIS1_EE", !42, i64 0}
!42 = !{!"_ZTSSt15__uniq_ptr_dataIN3vox10UpdateFlagESt14default_deleteIS1_ELb1ELb1EE", !43, i64 0}
!43 = !{!"_ZTSSt15__uniq_ptr_implIN3vox10UpdateFlagESt14default_deleteIS1_EE", !44, i64 0}
!44 = !{!"_ZTSSt5tupleIJPN3vox10UpdateFlagESt14default_deleteIS1_EEE", !45, i64 0}
!45 = !{!"_ZTSSt11_Tuple_implILm0EJPN3vox10UpdateFlagESt14default_deleteIS1_EEE", !46, i64 0}
!46 = !{!"_ZTSSt10_Head_baseILm0EPN3vox10UpdateFlagELb0EE", !6, i64 0}
!47 = !{!12, !15, i64 100}
!48 = !{i8 0, i8 2}
!49 = !{}
!50 = !{!12, !15, i64 101}
!51 = !{!12, !15, i64 102}
!52 = !{!12, !15, i64 103}
!53 = !{!12, !15, i64 80}
!54 = !{!55, !10, i64 4}
!55 = !{!"_ZTSN3vox5PointIfLm3EEE", !10, i64 0, !10, i64 4, !10, i64 8}
!56 = !{!12, !10, i64 84}
!57 = !{!55, !10, i64 0}
!58 = !{!55, !10, i64 8}


; 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

declare noundef zeroext i1 @_ZN3vox9Component7enabledEv(ptr noundef nonnull align 8 dereferenceable(19)) local_unnamed_addr #1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vox7control11FreeControl8onUpdateEf(ptr noundef nonnull align 8 dereferenceable(156) %0, float noundef %1) unnamed_addr #2 align 2 {
  %3 = alloca %"class.vox::Vector", align 4
  %4 = alloca %"class.vox::Vector", align 4
  %5 = alloca %"class.vox::Vector", align 4
  %6 = alloca %"class.vox::Vector", align 4
  %7 = alloca %"class.vox::Vector", align 4
  %8 = alloca %"class.vox::Vector", align 4
  %9 = alloca %"class.vox::Point", align 4
  %10 = tail call noundef zeroext i1 @_ZN3vox9Component7enabledEv(ptr noundef nonnull align 8 dereferenceable(19) %0)
  br i1 %10, label %11, label %80

11:                                               ; preds = %2
  %12 = getelementptr inbounds i8, ptr %0, i64 72
  %13 = load float, ptr %12, align 8, !tbaa !5
  %14 = fmul float %13, %1
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #3
  %15 = tail call noundef ptr @_ZNK3vox9Component6entityEv(ptr noundef nonnull align 8 dereferenceable(19) %0)
  %16 = getelementptr inbounds i8, ptr %15, i64 40
  %17 = load ptr, ptr %16, align 8, !tbaa !19
  call void @_ZN3vox9Transform12worldForwardEv(ptr dead_on_unwind nonnull writable sret(%"class.vox::Vector") align 4 %3, ptr noundef nonnull align 8 dereferenceable(300) %17)
  %18 = getelementptr inbounds i8, ptr %0, i64 48
  %19 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3vox6VectorIfLm3EEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(12) %3)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #3
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #3
  %20 = call noundef ptr @_ZNK3vox9Component6entityEv(ptr noundef nonnull align 8 dereferenceable(19) %0)
  %21 = getelementptr inbounds i8, ptr %20, i64 40
  %22 = load ptr, ptr %21, align 8, !tbaa !19
  call void @_ZN3vox9Transform10worldRightEv(ptr dead_on_unwind nonnull writable sret(%"class.vox::Vector") align 4 %4, ptr noundef nonnull align 8 dereferenceable(300) %22)
  %23 = getelementptr inbounds i8, ptr %0, i64 60
  %24 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3vox6VectorIfLm3EEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %23, ptr noundef nonnull align 4 dereferenceable(12) %4)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #3
  %25 = getelementptr inbounds i8, ptr %0, i64 100
  %26 = load i8, ptr %25, align 4, !tbaa !45, !range !46, !noundef !47
  %27 = trunc nuw i8 %26 to i1
  br i1 %27, label %28, label %32

28:                                               ; preds = %11
  %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 !19
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #3
  call void @_ZN3voxmlIfEENS_6VectorIT_Lm3EEERKS3_S2_(ptr dead_on_unwind nonnull writable sret(%"class.vox::Vector") align 4 %5, ptr noundef nonnull align 4 dereferenceable(12) %18, float noundef %14)
  call void @_ZN3vox9Transform9translateERKNS_6VectorIfLm3EEEb(ptr noundef nonnull align 8 dereferenceable(300) %31, ptr noundef nonnull align 4 dereferenceable(12) %5, i1 noundef zeroext false)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #3
  br label %32

32:                                               ; preds = %28, %11
  %33 = getelementptr inbounds i8, ptr %0, i64 101
  %34 = load i8, ptr %33, align 1, !tbaa !48, !range !46, !noundef !47
  %35 = trunc nuw i8 %34 to i1
  br i1 %35, label %36, label %41

36:                                               ; preds = %32
  %37 = call noundef ptr @_ZNK3vox9Component6entityEv(ptr noundef nonnull align 8 dereferenceable(19) %0)
  %38 = getelementptr inbounds i8, ptr %37, i64 40
  %39 = load ptr, ptr %38, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #3
  %40 = fneg float %14
  call void @_ZN3voxmlIfEENS_6VectorIT_Lm3EEERKS3_S2_(ptr dead_on_unwind nonnull writable sret(%"class.vox::Vector") align 4 %6, ptr noundef nonnull align 4 dereferenceable(12) %18, float noundef %40)
  call void @_ZN3vox9Transform9translateERKNS_6VectorIfLm3EEEb(ptr noundef nonnull align 8 dereferenceable(300) %39, ptr noundef nonnull align 4 dereferenceable(12) %6, i1 noundef zeroext false)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #3
  br label %41

41:                                               ; preds = %36, %32
  %42 = getelementptr inbounds i8, ptr %0, i64 102
  %43 = load i8, ptr %42, align 2, !tbaa !49, !range !46, !noundef !47
  %44 = trunc nuw i8 %43 to i1
  br i1 %44, label %45, label %50

45:                                               ; preds = %41
  %46 = call noundef ptr @_ZNK3vox9Component6entityEv(ptr noundef nonnull align 8 dereferenceable(19) %0)
  %47 = getelementptr inbounds i8, ptr %46, i64 40
  %48 = load ptr, ptr %47, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #3
  %49 = fneg float %14
  call void @_ZN3voxmlIfEENS_6VectorIT_Lm3EEERKS3_S2_(ptr dead_on_unwind nonnull writable sret(%"class.vox::Vector") align 4 %7, ptr noundef nonnull align 4 dereferenceable(12) %23, float noundef %49)
  call void @_ZN3vox9Transform9translateERKNS_6VectorIfLm3EEEb(ptr noundef nonnull align 8 dereferenceable(300) %48, ptr noundef nonnull align 4 dereferenceable(12) %7, i1 noundef zeroext false)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #3
  br label %50

50:                                               ; preds = %45, %41
  %51 = getelementptr inbounds i8, ptr %0, i64 103
  %52 = load i8, ptr %51, align 1, !tbaa !50, !range !46, !noundef !47
  %53 = trunc nuw i8 %52 to i1
  br i1 %53, label %54, label %58

54:                                               ; preds = %50
  %55 = call noundef ptr @_ZNK3vox9Component6entityEv(ptr noundef nonnull align 8 dereferenceable(19) %0)
  %56 = getelementptr inbounds i8, ptr %55, i64 40
  %57 = load ptr, ptr %56, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #3
  call void @_ZN3voxmlIfEENS_6VectorIT_Lm3EEERKS3_S2_(ptr dead_on_unwind nonnull writable sret(%"class.vox::Vector") align 4 %8, ptr noundef nonnull align 4 dereferenceable(12) %23, float noundef %14)
  call void @_ZN3vox9Transform9translateERKNS_6VectorIfLm3EEEb(ptr noundef nonnull align 8 dereferenceable(300) %57, ptr noundef nonnull align 4 dereferenceable(12) %8, i1 noundef zeroext false)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #3
  br label %58

58:                                               ; preds = %54, %50
  %59 = getelementptr inbounds i8, ptr %0, i64 80
  %60 = load i8, ptr %59, align 8, !tbaa !51, !range !46, !noundef !47
  %61 = trunc nuw i8 %60 to i1
  br i1 %61, label %62, label %80

62:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #3
  %63 = call noundef ptr @_ZNK3vox9Component6entityEv(ptr noundef nonnull align 8 dereferenceable(19) %0)
  %64 = getelementptr inbounds i8, ptr %63, i64 40
  %65 = load ptr, ptr %64, align 8, !tbaa !19
  call void @_ZN3vox9Transform8positionEv(ptr dead_on_unwind nonnull writable sret(%"class.vox::Point") align 4 %9, ptr noundef nonnull align 8 dereferenceable(300) %65)
  %66 = getelementptr inbounds i8, ptr %9, i64 4
  %67 = load float, ptr %66, align 4, !tbaa !52
  %68 = getelementptr inbounds i8, ptr %0, i64 84
  %69 = load float, ptr %68, align 4, !tbaa !54
  %70 = fcmp une float %67, %69
  br i1 %70, label %71, label %79

71:                                               ; preds = %62
  %72 = call noundef ptr @_ZNK3vox9Component6entityEv(ptr noundef nonnull align 8 dereferenceable(19) %0)
  %73 = getelementptr inbounds i8, ptr %72, i64 40
  %74 = load ptr, ptr %73, align 8, !tbaa !19
  %75 = load float, ptr %9, align 4, !tbaa !55
  %76 = load float, ptr %68, align 4, !tbaa !54
  %77 = getelementptr inbounds i8, ptr %9, i64 8
  %78 = load float, ptr %77, align 4, !tbaa !56
  call void @_ZN3vox9Transform11setPositionEfff(ptr noundef nonnull align 8 dereferenceable(300) %74, float noundef %75, float noundef %76, float noundef %78)
  br label %79

79:                                               ; preds = %71, %62
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #3
  br label %80

80:                                               ; preds = %58, %79, %2
  ret void
}

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

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

declare void @_ZN3vox9Transform9translateERKNS_6VectorIfLm3EEEb(ptr noundef nonnull align 8 dereferenceable(300), ptr noundef nonnull align 4 dereferenceable(12), i1 noundef zeroext) local_unnamed_addr #1

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

declare void @_ZN3vox9Transform11setPositionEfff(ptr noundef nonnull align 8 dereferenceable(300), float noundef, float noundef, float noundef) local_unnamed_addr #1

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !15, i64 72}
!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 = !{!20, !9, i64 40}
!20 = !{!"_ZTSN3vox6EntityE", !21, i64 0, !18, i64 32, !9, i64 40, !12, i64 48, !23, i64 56, !27, i64 80, !31, i64 104, !9, i64 128, !12, i64 136, !12, i64 137, !9, i64 144, !35, i64 152, !39, i64 176}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !22, i64 0, !13, i64 8, !10, i64 16}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!23 = !{!"_ZTSSt6vectorISt10unique_ptrIN3vox9ComponentESt14default_deleteIS2_EESaIS5_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseISt10unique_ptrIN3vox9ComponentESt14default_deleteIS2_EESaIS5_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN3vox9ComponentESt14default_deleteIS2_EESaIS5_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN3vox9ComponentESt14default_deleteIS2_EESaIS5_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!27 = !{!"_ZTSSt6vectorIPN3vox6ScriptESaIS2_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIPN3vox6ScriptESaIS2_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIPN3vox6ScriptESaIS2_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIPN3vox6ScriptESaIS2_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!31 = !{!"_ZTSSt6vectorISt10shared_ptrIN3vox6EntityEESaIS3_EE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseISt10shared_ptrIN3vox6EntityEESaIS3_EE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN3vox6EntityEESaIS3_EE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN3vox6EntityEESaIS3_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!35 = !{!"_ZTSSt6vectorIPN3vox9ComponentESaIS2_EE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseIPN3vox9ComponentESaIS2_EE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIPN3vox9ComponentESaIS2_EE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIPN3vox9ComponentESaIS2_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!39 = !{!"_ZTSSt10unique_ptrIN3vox10UpdateFlagESt14default_deleteIS1_EE", !40, i64 0}
!40 = !{!"_ZTSSt15__uniq_ptr_dataIN3vox10UpdateFlagESt14default_deleteIS1_ELb1ELb1EE", !41, i64 0}
!41 = !{!"_ZTSSt15__uniq_ptr_implIN3vox10UpdateFlagESt14default_deleteIS1_EE", !42, i64 0}
!42 = !{!"_ZTSSt5tupleIJPN3vox10UpdateFlagESt14default_deleteIS1_EEE", !43, i64 0}
!43 = !{!"_ZTSSt11_Tuple_implILm0EJPN3vox10UpdateFlagESt14default_deleteIS1_EEE", !44, i64 0}
!44 = !{!"_ZTSSt10_Head_baseILm0EPN3vox10UpdateFlagELb0EE", !9, i64 0}
!45 = !{!6, !12, i64 100}
!46 = !{i8 0, i8 2}
!47 = !{}
!48 = !{!6, !12, i64 101}
!49 = !{!6, !12, i64 102}
!50 = !{!6, !12, i64 103}
!51 = !{!6, !12, i64 80}
!52 = !{!53, !15, i64 4}
!53 = !{!"_ZTSN3vox5PointIfLm3EEE", !15, i64 0, !15, i64 4, !15, i64 8}
!54 = !{!6, !15, i64 84}
!55 = !{!53, !15, i64 0}
!56 = !{!53, !15, i64 8}


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