; LLVM IR from yangfengzzz/DigitalVox4 :: vox.render/controls/orbit_control.ll (ZN3vox7control12OrbitControl8onUpdateEf)

; 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::OrbitControl" = type { %"class.vox::Script", float, %"class.vox::Point", %"class.vox::Vector", float, float, float, float, i8, float, i8, float, i8, float, float, i8, float, i8, float, float, float, float, i8, float, ptr, %"class.vox::Point", %"class.vox::Vector", %"class.vox::control::Spherical", %"class.vox::control::Spherical", %"class.vox::control::Spherical", float, float, %"class.vox::Vector", i8, %"class.vox::Vector", i32, %"class.vox::Vector.0", %"class.vox::Vector.0", %"class.vox::Vector.0", %"class.vox::Vector.0", %"class.vox::Vector.0", %"class.vox::Vector.0", %"class.vox::Vector.0", %"class.vox::Vector.0", %"class.vox::Vector.0", i8, i8, i32, i32 }
%"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 }
%"class.vox::Vector.0" = type { float, float }
%"class.vox::Entity" = type { %"class.std::__cxx11::basic_string", i32, ptr, i8, %"class.std::vector", %"class.std::vector.4", %"class.std::vector.9", ptr, i8, i8, ptr, %"class.std::vector.14", %"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.4" = type { %"struct.std::_Vector_base.5" }
%"struct.std::_Vector_base.5" = 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.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = 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.14" = type { %"struct.std::_Vector_base.15" }
%"struct.std::_Vector_base.15" = 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.20" }
%"struct.std::_Head_base.20" = type { ptr }

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

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

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

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

13:                                               ; preds = %2
  br label %171

14:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %6) #5
  %15 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 24
  %16 = load ptr, ptr %15, align 8, !tbaa !11
  %17 = getelementptr inbounds %"class.vox::Entity", ptr %16, i32 0, i32 2
  %18 = load ptr, ptr %17, align 8, !tbaa !23
  call void @_ZN3vox9Transform8positionEv(ptr dead_on_unwind writable sret(%"class.vox::Point") align 4 %6, ptr noundef nonnull align 8 dereferenceable(300) %18)
  store ptr %6, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %7) #5
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 2
  call void @_ZN3voxmiIfEENS_6VectorIT_Lm3EEERKNS_5PointIS2_Lm3EEES7_(ptr dead_on_unwind writable sret(%"class.vox::Vector") align 4 %7, ptr noundef nonnull align 4 dereferenceable(12) %19, ptr noundef nonnull align 4 dereferenceable(12) %20)
  %21 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 26
  %22 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3vox6VectorIfLm3EEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %21, ptr noundef nonnull align 4 dereferenceable(12) %7)
  call void @llvm.lifetime.end.p0(i64 12, ptr %7) #5
  %23 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 27
  %24 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 26
  call void @_ZN3vox7control9Spherical11setFromVec3ERKNS_6VectorIfLm3EEE(ptr noundef nonnull align 4 dereferenceable(12) %23, ptr noundef nonnull align 4 dereferenceable(12) %24)
  %25 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 22
  %26 = load i8, ptr %25, align 4, !tbaa !49, !range !50, !noundef !51
  %27 = trunc i8 %26 to i1
  br i1 %27, label %28, label %35

28:                                               ; preds = %14
  %29 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 35
  %30 = load i32, ptr %29, align 8, !tbaa !52
  %31 = icmp eq i32 %30, -1
  br i1 %31, label %32, label %35

32:                                               ; preds = %28
  %33 = load float, ptr %4, align 4, !tbaa !9
  %34 = call noundef float @_ZN3vox7control12OrbitControl17autoRotationAngleEf(ptr noundef nonnull align 8 dereferenceable(352) %11, float noundef %33)
  call void @_ZN3vox7control12OrbitControl10rotateLeftEf(ptr noundef nonnull align 8 dereferenceable(352) %11, float noundef %34)
  br label %35

35:                                               ; preds = %32, %28, %14
  %36 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 28
  %37 = getelementptr inbounds %"class.vox::control::Spherical", ptr %36, i32 0, i32 2
  %38 = load float, ptr %37, align 4, !tbaa !53
  %39 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 27
  %40 = getelementptr inbounds %"class.vox::control::Spherical", ptr %39, i32 0, i32 2
  %41 = load float, ptr %40, align 8, !tbaa !54
  %42 = fadd float %41, %38
  store float %42, ptr %40, align 8, !tbaa !54
  %43 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 28
  %44 = getelementptr inbounds %"class.vox::control::Spherical", ptr %43, i32 0, i32 1
  %45 = load float, ptr %44, align 4, !tbaa !55
  %46 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 27
  %47 = getelementptr inbounds %"class.vox::control::Spherical", ptr %46, i32 0, i32 1
  %48 = load float, ptr %47, align 4, !tbaa !56
  %49 = fadd float %48, %45
  store float %49, ptr %47, align 4, !tbaa !56
  %50 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 20
  %51 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 21
  %52 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 27
  %53 = getelementptr inbounds %"class.vox::control::Spherical", ptr %52, i32 0, i32 2
  %54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %51, ptr noundef nonnull align 4 dereferenceable(4) %53)
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %50, ptr noundef nonnull align 4 dereferenceable(4) %54)
  %56 = load float, ptr %55, align 4, !tbaa !9
  %57 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 27
  %58 = getelementptr inbounds %"class.vox::control::Spherical", ptr %57, i32 0, i32 2
  store float %56, ptr %58, align 8, !tbaa !54
  %59 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 18
  %60 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 19
  %61 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 27
  %62 = getelementptr inbounds %"class.vox::control::Spherical", ptr %61, i32 0, i32 1
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %60, ptr noundef nonnull align 4 dereferenceable(4) %62)
  %64 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %59, ptr noundef nonnull align 4 dereferenceable(4) %63)
  %65 = load float, ptr %64, align 4, !tbaa !9
  %66 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 27
  %67 = getelementptr inbounds %"class.vox::control::Spherical", ptr %66, i32 0, i32 1
  store float %65, ptr %67, align 4, !tbaa !56
  %68 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 27
  call void @_ZN3vox7control9Spherical8makeSafeEv(ptr noundef nonnull align 4 dereferenceable(12) %68)
  %69 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 31
  %70 = load float, ptr %69, align 8, !tbaa !57
  %71 = fcmp une float %70, 1.000000e+00
  br i1 %71, label %72, label %81

72:                                               ; preds = %35
  %73 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 27
  %74 = getelementptr inbounds %"class.vox::control::Spherical", ptr %73, i32 0, i32 0
  %75 = load float, ptr %74, align 8, !tbaa !58
  %76 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 31
  %77 = load float, ptr %76, align 8, !tbaa !57
  %78 = fsub float %77, 1.000000e+00
  %79 = fmul float %75, %78
  %80 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 30
  store float %79, ptr %80, align 4, !tbaa !59
  br label %81

81:                                               ; preds = %72, %35
  %82 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 30
  %83 = load float, ptr %82, align 4, !tbaa !59
  %84 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 27
  %85 = getelementptr inbounds %"class.vox::control::Spherical", ptr %84, i32 0, i32 0
  %86 = load float, ptr %85, align 8, !tbaa !58
  %87 = fadd float %86, %83
  store float %87, ptr %85, align 8, !tbaa !58
  %88 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 4
  %89 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 5
  %90 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 27
  %91 = getelementptr inbounds %"class.vox::control::Spherical", ptr %90, i32 0, i32 0
  %92 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %89, ptr noundef nonnull align 4 dereferenceable(4) %91)
  %93 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %88, ptr noundef nonnull align 4 dereferenceable(4) %92)
  %94 = load float, ptr %93, align 4, !tbaa !9
  %95 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 27
  %96 = getelementptr inbounds %"class.vox::control::Spherical", ptr %95, i32 0, i32 0
  store float %94, ptr %96, align 8, !tbaa !58
  call void @llvm.lifetime.start.p0(i64 12, ptr %8) #5
  %97 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 2
  %98 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 32
  call void @_ZN3voxplIfEENS_5PointIT_Lm3EEERKS3_RKNS_6VectorIS2_Lm3EEE(ptr dead_on_unwind writable sret(%"class.vox::Point") align 4 %8, ptr noundef nonnull align 4 dereferenceable(12) %97, ptr noundef nonnull align 4 dereferenceable(12) %98)
  %99 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 2
  %100 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3vox5PointIfLm3EEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %99, ptr noundef nonnull align 4 dereferenceable(12) %8)
  call void @llvm.lifetime.end.p0(i64 12, ptr %8) #5
  %101 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 27
  %102 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 26
  call void @_ZN3vox7control9Spherical9setToVec3ERNS_6VectorIfLm3EEE(ptr noundef nonnull align 4 dereferenceable(12) %101, ptr noundef nonnull align 4 dereferenceable(12) %102)
  %103 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 2
  %104 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 25
  %105 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3vox5PointIfLm3EEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %104, ptr noundef nonnull align 4 dereferenceable(12) %103)
  call void @llvm.lifetime.start.p0(i64 12, ptr %9) #5
  %106 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 25
  %107 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 26
  call void @_ZN3voxplIfEENS_5PointIT_Lm3EEERKS3_RKNS_6VectorIS2_Lm3EEE(ptr dead_on_unwind writable sret(%"class.vox::Point") align 4 %9, ptr noundef nonnull align 4 dereferenceable(12) %106, ptr noundef nonnull align 4 dereferenceable(12) %107)
  %108 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 25
  %109 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3vox5PointIfLm3EEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %108, ptr noundef nonnull align 4 dereferenceable(12) %9)
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #5
  %110 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 24
  %111 = load ptr, ptr %110, align 8, !tbaa !11
  %112 = getelementptr inbounds %"class.vox::Entity", ptr %111, i32 0, i32 2
  %113 = load ptr, ptr %112, align 8, !tbaa !23
  %114 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 25
  call void @_ZN3vox9Transform11setPositionERKNS_5PointIfLm3EEE(ptr noundef nonnull align 8 dereferenceable(300) %113, ptr noundef nonnull align 4 dereferenceable(12) %114)
  %115 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 24
  %116 = load ptr, ptr %115, align 8, !tbaa !11
  %117 = getelementptr inbounds %"class.vox::Entity", ptr %116, i32 0, i32 2
  %118 = load ptr, ptr %117, align 8, !tbaa !23
  %119 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 2
  %120 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 3
  call void @_ZN3vox9Transform6lookAtERKNS_5PointIfLm3EEERKNS_6VectorIfLm3EEE(ptr noundef nonnull align 8 dereferenceable(300) %118, ptr noundef nonnull align 4 dereferenceable(12) %119, ptr noundef nonnull align 4 dereferenceable(12) %120)
  %121 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 8
  %122 = load i8, ptr %121, align 4, !tbaa !60, !range !50, !noundef !51
  %123 = trunc i8 %122 to i1
  %124 = zext i1 %123 to i32
  %125 = icmp eq i32 %124, 1
  br i1 %125, label %126, label %164

126:                                              ; preds = %81
  %127 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 9
  %128 = load float, ptr %127, align 8, !tbaa !61
  %129 = fsub float 1.000000e+00, %128
  %130 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 29
  %131 = getelementptr inbounds %"class.vox::control::Spherical", ptr %130, i32 0, i32 2
  %132 = load float, ptr %131, align 8, !tbaa !62
  %133 = fmul float %132, %129
  store float %133, ptr %131, align 8, !tbaa !62
  %134 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 9
  %135 = load float, ptr %134, align 8, !tbaa !61
  %136 = fsub float 1.000000e+00, %135
  %137 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 29
  %138 = getelementptr inbounds %"class.vox::control::Spherical", ptr %137, i32 0, i32 1
  %139 = load float, ptr %138, align 4, !tbaa !63
  %140 = fmul float %139, %136
  store float %140, ptr %138, align 4, !tbaa !63
  %141 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 13
  %142 = load float, ptr %141, align 8, !tbaa !64
  %143 = fsub float 1.000000e+00, %142
  %144 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 30
  %145 = load float, ptr %144, align 4, !tbaa !59
  %146 = fmul float %145, %143
  store float %146, ptr %144, align 4, !tbaa !59
  %147 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 33
  %148 = load i8, ptr %147, align 8, !tbaa !65, !range !50, !noundef !51
  %149 = trunc i8 %148 to i1
  br i1 %149, label %150, label %161

150:                                              ; preds = %126
  %151 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 29
  %152 = getelementptr inbounds %"class.vox::control::Spherical", ptr %151, i32 0, i32 2
  %153 = load float, ptr %152, align 8, !tbaa !62
  %154 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 28
  %155 = getelementptr inbounds %"class.vox::control::Spherical", ptr %154, i32 0, i32 2
  store float %153, ptr %155, align 4, !tbaa !53
  %156 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 29
  %157 = getelementptr inbounds %"class.vox::control::Spherical", ptr %156, i32 0, i32 1
  %158 = load float, ptr %157, align 4, !tbaa !63
  %159 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 28
  %160 = getelementptr inbounds %"class.vox::control::Spherical", ptr %159, i32 0, i32 1
  store float %158, ptr %160, align 4, !tbaa !55
  br label %163

161:                                              ; preds = %126
  %162 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 28
  call void @_ZN3vox7control9Spherical3setEfff(ptr noundef nonnull align 4 dereferenceable(12) %162, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  br label %163

163:                                              ; preds = %161, %150
  br label %167

164:                                              ; preds = %81
  %165 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 28
  call void @_ZN3vox7control9Spherical3setEfff(ptr noundef nonnull align 4 dereferenceable(12) %165, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %166 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 30
  store float 0.000000e+00, ptr %166, align 4, !tbaa !59
  br label %167

167:                                              ; preds = %164, %163
  %168 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 31
  store float 1.000000e+00, ptr %168, align 8, !tbaa !57
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #5
  call void @_ZN3vox6VectorIfLm3EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %10, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %169 = getelementptr inbounds %"class.vox::control::OrbitControl", ptr %11, i32 0, i32 32
  %170 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3vox6VectorIfLm3EEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %169, ptr noundef nonnull align 4 dereferenceable(12) %10)
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %171

171:                                              ; preds = %167, %13
  ret void
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3voxmiIfEENS_6VectorIT_Lm3EEERKNS_5PointIS2_Lm3EEES7_(ptr dead_on_unwind noalias writable sret(%"class.vox::Vector") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #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)) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3vox7control12OrbitControl10rotateLeftEf(ptr noundef nonnull align 8 dereferenceable(352), float noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3vox7control12OrbitControl17autoRotationAngleEf(ptr noundef nonnull align 8 dereferenceable(352), float noundef) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #4

declare void @_ZN3vox7control9Spherical8makeSafeEv(ptr noundef nonnull align 4 dereferenceable(12)) #3

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

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

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

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

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)) #3

declare void @_ZN3vox7control9Spherical3setEfff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) #3

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 = { 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 #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !6, i64 160}
!12 = !{!"_ZTSN3vox7control12OrbitControlE", !13, i64 0, !10, i64 48, !17, i64 52, !18, i64 64, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !15, i64 92, !10, i64 96, !15, i64 100, !10, i64 104, !15, i64 108, !10, i64 112, !10, i64 116, !15, i64 120, !10, i64 124, !15, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !15, i64 148, !10, i64 152, !6, i64 160, !17, i64 168, !18, i64 180, !19, i64 192, !19, i64 204, !19, i64 216, !10, i64 228, !10, i64 232, !18, i64 236, !15, i64 248, !18, i64 252, !20, i64 264, !21, i64 268, !21, i64 276, !21, i64 284, !21, i64 292, !21, i64 300, !21, i64 308, !21, i64 316, !21, i64 324, !21, i64 332, !15, i64 340, !15, i64 341, !22, i64 344, !22, i64 348}
!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 = !{!"_ZTSN3vox5PointIfLm3EEE", !10, i64 0, !10, i64 4, !10, i64 8}
!18 = !{!"_ZTSN3vox6VectorIfLm3EEE", !10, i64 0, !10, i64 4, !10, i64 8}
!19 = !{!"_ZTSN3vox7control9SphericalE", !10, i64 0, !10, i64 4, !10, i64 8}
!20 = !{!"_ZTSN3vox7control12OrbitControl5STATE4EnumE", !7, i64 0}
!21 = !{!"_ZTSN3vox6VectorIfLm2EEE", !10, i64 0, !10, i64 4}
!22 = !{!"int", !7, i64 0}
!23 = !{!24, !6, i64 40}
!24 = !{!"_ZTSN3vox6EntityE", !25, i64 0, !22, i64 32, !6, i64 40, !15, i64 48, !27, i64 56, !31, i64 80, !35, i64 104, !6, i64 128, !15, i64 136, !15, i64 137, !6, i64 144, !39, i64 152, !43, i64 176}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !26, i64 0, !16, i64 8, !7, i64 16}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!27 = !{!"_ZTSSt6vectorISt10unique_ptrIN3vox9ComponentESt14default_deleteIS2_EESaIS5_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseISt10unique_ptrIN3vox9ComponentESt14default_deleteIS2_EESaIS5_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN3vox9ComponentESt14default_deleteIS2_EESaIS5_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN3vox9ComponentESt14default_deleteIS2_EESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!31 = !{!"_ZTSSt6vectorIPN3vox6ScriptESaIS2_EE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIPN3vox6ScriptESaIS2_EE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIPN3vox6ScriptESaIS2_EE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIPN3vox6ScriptESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!35 = !{!"_ZTSSt6vectorISt10shared_ptrIN3vox6EntityEESaIS3_EE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseISt10shared_ptrIN3vox6EntityEESaIS3_EE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN3vox6EntityEESaIS3_EE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN3vox6EntityEESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!39 = !{!"_ZTSSt6vectorIPN3vox9ComponentESaIS2_EE", !40, i64 0}
!40 = !{!"_ZTSSt12_Vector_baseIPN3vox9ComponentESaIS2_EE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseIPN3vox9ComponentESaIS2_EE12_Vector_implE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseIPN3vox9ComponentESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!43 = !{!"_ZTSSt10unique_ptrIN3vox10UpdateFlagESt14default_deleteIS1_EE", !44, i64 0}
!44 = !{!"_ZTSSt15__uniq_ptr_dataIN3vox10UpdateFlagESt14default_deleteIS1_ELb1ELb1EE", !45, i64 0}
!45 = !{!"_ZTSSt15__uniq_ptr_implIN3vox10UpdateFlagESt14default_deleteIS1_EE", !46, i64 0}
!46 = !{!"_ZTSSt5tupleIJPN3vox10UpdateFlagESt14default_deleteIS1_EEE", !47, i64 0}
!47 = !{!"_ZTSSt11_Tuple_implILm0EJPN3vox10UpdateFlagESt14default_deleteIS1_EEE", !48, i64 0}
!48 = !{!"_ZTSSt10_Head_baseILm0EPN3vox10UpdateFlagELb0EE", !6, i64 0}
!49 = !{!12, !15, i64 148}
!50 = !{i8 0, i8 2}
!51 = !{}
!52 = !{!12, !20, i64 264}
!53 = !{!12, !10, i64 212}
!54 = !{!12, !10, i64 200}
!55 = !{!12, !10, i64 208}
!56 = !{!12, !10, i64 196}
!57 = !{!12, !10, i64 232}
!58 = !{!12, !10, i64 192}
!59 = !{!12, !10, i64 228}
!60 = !{!12, !15, i64 92}
!61 = !{!12, !10, i64 96}
!62 = !{!12, !10, i64 224}
!63 = !{!12, !10, i64 220}
!64 = !{!12, !10, i64 112}
!65 = !{!12, !15, i64 248}


; 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 nounwind uwtable
declare dso_local void @_ZN3vox6VectorIfLm3EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) unnamed_addr #0 align 2

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

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

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

9:                                                ; preds = %2
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #5
  %10 = getelementptr inbounds i8, ptr %0, i64 160
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %11, i64 40
  %13 = load ptr, ptr %12, align 8, !tbaa !21
  call void @_ZN3vox9Transform8positionEv(ptr dead_on_unwind nonnull writable sret(%"class.vox::Point") align 4 %3, ptr noundef nonnull align 8 dereferenceable(300) %13)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #5
  %14 = getelementptr inbounds i8, ptr %0, i64 52
  call void @_ZN3voxmiIfEENS_6VectorIT_Lm3EEERKNS_5PointIS2_Lm3EEES7_(ptr dead_on_unwind nonnull writable sret(%"class.vox::Vector") align 4 %4, ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %14)
  %15 = getelementptr inbounds i8, ptr %0, i64 180
  %16 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3vox6VectorIfLm3EEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %15, ptr noundef nonnull align 4 dereferenceable(12) %4)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #5
  %17 = getelementptr inbounds i8, ptr %0, i64 192
  call void @_ZN3vox7control9Spherical11setFromVec3ERKNS_6VectorIfLm3EEE(ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(12) %15)
  %18 = getelementptr inbounds i8, ptr %0, i64 148
  %19 = load i8, ptr %18, align 4, !tbaa !47, !range !48, !noundef !49
  %20 = trunc nuw i8 %19 to i1
  %21 = getelementptr inbounds i8, ptr %0, i64 264
  %22 = load i32, ptr %21, align 8
  %23 = icmp eq i32 %22, -1
  %or.cond = select i1 %20, i1 %23, i1 false
  br i1 %or.cond, label %24, label %26

24:                                               ; preds = %9
  %25 = call noundef float @_ZN3vox7control12OrbitControl17autoRotationAngleEf(ptr noundef nonnull align 8 dereferenceable(352) %0, float noundef %1)
  call void @_ZN3vox7control12OrbitControl10rotateLeftEf(ptr noundef nonnull align 8 dereferenceable(352) %0, float noundef %25)
  br label %26

26:                                               ; preds = %24, %9
  %27 = getelementptr inbounds i8, ptr %0, i64 204
  %28 = getelementptr inbounds i8, ptr %0, i64 200
  %29 = getelementptr inbounds i8, ptr %0, i64 208
  %30 = getelementptr inbounds i8, ptr %0, i64 196
  %31 = load <2 x float>, ptr %29, align 8, !tbaa !50
  %32 = load <2 x float>, ptr %30, align 4, !tbaa !50
  %33 = fadd <2 x float> %31, %32
  store <2 x float> %33, ptr %30, align 4, !tbaa !50
  %34 = getelementptr inbounds i8, ptr %0, i64 140
  %35 = getelementptr inbounds i8, ptr %0, i64 144
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %35, ptr noundef nonnull align 4 dereferenceable(4) %28)
  %37 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %34, ptr noundef nonnull align 4 dereferenceable(4) %36)
  %38 = load float, ptr %37, align 4, !tbaa !50
  store float %38, ptr %28, align 8, !tbaa !51
  %39 = getelementptr inbounds i8, ptr %0, i64 132
  %40 = getelementptr inbounds i8, ptr %0, i64 136
  %41 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %40, ptr noundef nonnull align 4 dereferenceable(4) %30)
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %39, ptr noundef nonnull align 4 dereferenceable(4) %41)
  %43 = load float, ptr %42, align 4, !tbaa !50
  store float %43, ptr %30, align 4, !tbaa !52
  call void @_ZN3vox7control9Spherical8makeSafeEv(ptr noundef nonnull align 4 dereferenceable(12) %17)
  %44 = getelementptr inbounds i8, ptr %0, i64 232
  %45 = load float, ptr %44, align 8, !tbaa !53
  %46 = fcmp une float %45, 1.000000e+00
  br i1 %46, label %47, label %._crit_edge

._crit_edge:                                      ; preds = %26
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 228
  %.pre = load float, ptr %.phi.trans.insert, align 4, !tbaa !54
  %.pre5 = load float, ptr %17, align 8, !tbaa !55
  br label %52

47:                                               ; preds = %26
  %48 = load float, ptr %17, align 8, !tbaa !55
  %49 = fadd float %45, -1.000000e+00
  %50 = fmul float %49, %48
  %51 = getelementptr inbounds i8, ptr %0, i64 228
  store float %50, ptr %51, align 4, !tbaa !54
  br label %52

52:                                               ; preds = %._crit_edge, %47
  %53 = phi float [ %.pre5, %._crit_edge ], [ %48, %47 ]
  %54 = phi float [ %.pre, %._crit_edge ], [ %50, %47 ]
  %55 = getelementptr inbounds i8, ptr %0, i64 228
  %56 = fadd float %54, %53
  store float %56, ptr %17, align 8, !tbaa !55
  %57 = getelementptr inbounds i8, ptr %0, i64 76
  %58 = getelementptr inbounds i8, ptr %0, i64 80
  %59 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %58, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %57, ptr noundef nonnull align 4 dereferenceable(4) %59)
  %61 = load float, ptr %60, align 4, !tbaa !50
  store float %61, ptr %17, align 8, !tbaa !55
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #5
  %62 = getelementptr inbounds i8, ptr %0, i64 236
  call void @_ZN3voxplIfEENS_5PointIT_Lm3EEERKS3_RKNS_6VectorIS2_Lm3EEE(ptr dead_on_unwind nonnull writable sret(%"class.vox::Point") align 4 %5, ptr noundef nonnull align 4 dereferenceable(12) %14, ptr noundef nonnull align 4 dereferenceable(12) %62)
  %63 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3vox5PointIfLm3EEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %14, ptr noundef nonnull align 4 dereferenceable(12) %5)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #5
  call void @_ZN3vox7control9Spherical9setToVec3ERNS_6VectorIfLm3EEE(ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(12) %15)
  %64 = getelementptr inbounds i8, ptr %0, i64 168
  %65 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3vox5PointIfLm3EEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %64, ptr noundef nonnull align 4 dereferenceable(12) %14)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #5
  call void @_ZN3voxplIfEENS_5PointIT_Lm3EEERKS3_RKNS_6VectorIS2_Lm3EEE(ptr dead_on_unwind nonnull writable sret(%"class.vox::Point") align 4 %6, ptr noundef nonnull align 4 dereferenceable(12) %64, ptr noundef nonnull align 4 dereferenceable(12) %15)
  %66 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3vox5PointIfLm3EEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %64, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #5
  %67 = load ptr, ptr %10, align 8, !tbaa !5
  %68 = getelementptr inbounds i8, ptr %67, i64 40
  %69 = load ptr, ptr %68, align 8, !tbaa !21
  call void @_ZN3vox9Transform11setPositionERKNS_5PointIfLm3EEE(ptr noundef nonnull align 8 dereferenceable(300) %69, ptr noundef nonnull align 4 dereferenceable(12) %64)
  %70 = load ptr, ptr %10, align 8, !tbaa !5
  %71 = getelementptr inbounds i8, ptr %70, i64 40
  %72 = load ptr, ptr %71, align 8, !tbaa !21
  %73 = getelementptr inbounds i8, ptr %0, i64 64
  call void @_ZN3vox9Transform6lookAtERKNS_5PointIfLm3EEERKNS_6VectorIfLm3EEE(ptr noundef nonnull align 8 dereferenceable(300) %72, ptr noundef nonnull align 4 dereferenceable(12) %14, ptr noundef nonnull align 4 dereferenceable(12) %73)
  %74 = getelementptr inbounds i8, ptr %0, i64 92
  %75 = load i8, ptr %74, align 4, !tbaa !56, !range !48, !noundef !49
  %76 = trunc nuw i8 %75 to i1
  br i1 %76, label %77, label %96

77:                                               ; preds = %52
  %78 = getelementptr inbounds i8, ptr %0, i64 96
  %79 = load float, ptr %78, align 8, !tbaa !57
  %80 = fsub float 1.000000e+00, %79
  %81 = getelementptr inbounds i8, ptr %0, i64 220
  %82 = load <2 x float>, ptr %81, align 4, !tbaa !50
  %83 = insertelement <2 x float> poison, float %80, i64 0
  %84 = shufflevector <2 x float> %83, <2 x float> poison, <2 x i32> zeroinitializer
  %85 = fmul <2 x float> %84, %82
  store <2 x float> %85, ptr %81, align 4, !tbaa !50
  %86 = getelementptr inbounds i8, ptr %0, i64 112
  %87 = load float, ptr %86, align 8, !tbaa !58
  %88 = fsub float 1.000000e+00, %87
  %89 = load float, ptr %55, align 4, !tbaa !54
  %90 = fmul float %89, %88
  store float %90, ptr %55, align 4, !tbaa !54
  %91 = getelementptr inbounds i8, ptr %0, i64 248
  %92 = load i8, ptr %91, align 8, !tbaa !59, !range !48, !noundef !49
  %93 = trunc nuw i8 %92 to i1
  br i1 %93, label %94, label %95

94:                                               ; preds = %77
  store <2 x float> %85, ptr %29, align 8, !tbaa !50
  br label %97

95:                                               ; preds = %77
  call void @_ZN3vox7control9Spherical3setEfff(ptr noundef nonnull align 4 dereferenceable(12) %27, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  br label %97

96:                                               ; preds = %52
  call void @_ZN3vox7control9Spherical3setEfff(ptr noundef nonnull align 4 dereferenceable(12) %27, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  store float 0.000000e+00, ptr %55, align 4, !tbaa !54
  br label %97

97:                                               ; preds = %94, %95, %96
  store float 1.000000e+00, ptr %44, align 8, !tbaa !53
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #5
  call void @_ZN3vox6VectorIfLm3EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %7, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %98 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3vox6VectorIfLm3EEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %62, ptr noundef nonnull align 4 dereferenceable(12) %7)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #5
  br label %99

99:                                               ; preds = %2, %97
  ret void
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3voxmiIfEENS_6VectorIT_Lm3EEERKNS_5PointIS2_Lm3EEES7_(ptr dead_on_unwind noalias writable sret(%"class.vox::Vector") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #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 #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3vox7control12OrbitControl10rotateLeftEf(ptr noundef nonnull align 8 dereferenceable(352), float noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3vox7control12OrbitControl17autoRotationAngleEf(ptr noundef nonnull align 8 dereferenceable(352), float noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

declare void @_ZN3vox7control9Spherical8makeSafeEv(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #3

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

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

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

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

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 #3

declare void @_ZN3vox7control9Spherical3setEfff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) local_unnamed_addr #3

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 = { 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 #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !9, i64 160}
!6 = !{!"_ZTSN3vox7control12OrbitControlE", !7, i64 0, !14, i64 48, !15, i64 52, !16, i64 64, !14, i64 76, !14, i64 80, !14, i64 84, !14, i64 88, !12, i64 92, !14, i64 96, !12, i64 100, !14, i64 104, !12, i64 108, !14, i64 112, !14, i64 116, !12, i64 120, !14, i64 124, !12, i64 128, !14, i64 132, !14, i64 136, !14, i64 140, !14, i64 144, !12, i64 148, !14, i64 152, !9, i64 160, !15, i64 168, !16, i64 180, !17, i64 192, !17, i64 204, !17, i64 216, !14, i64 228, !14, i64 232, !16, i64 236, !12, i64 248, !16, i64 252, !18, i64 264, !19, i64 268, !19, i64 276, !19, i64 284, !19, i64 292, !19, i64 300, !19, i64 308, !19, i64 316, !19, i64 324, !19, i64 332, !12, i64 340, !12, i64 341, !20, i64 344, !20, i64 348}
!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 = !{!"float", !10, i64 0}
!15 = !{!"_ZTSN3vox5PointIfLm3EEE", !14, i64 0, !14, i64 4, !14, i64 8}
!16 = !{!"_ZTSN3vox6VectorIfLm3EEE", !14, i64 0, !14, i64 4, !14, i64 8}
!17 = !{!"_ZTSN3vox7control9SphericalE", !14, i64 0, !14, i64 4, !14, i64 8}
!18 = !{!"_ZTSN3vox7control12OrbitControl5STATE4EnumE", !10, i64 0}
!19 = !{!"_ZTSN3vox6VectorIfLm2EEE", !14, i64 0, !14, i64 4}
!20 = !{!"int", !10, i64 0}
!21 = !{!22, !9, i64 40}
!22 = !{!"_ZTSN3vox6EntityE", !23, i64 0, !20, i64 32, !9, i64 40, !12, i64 48, !25, i64 56, !29, i64 80, !33, i64 104, !9, i64 128, !12, i64 136, !12, i64 137, !9, i64 144, !37, i64 152, !41, i64 176}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !24, i64 0, !13, i64 8, !10, i64 16}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, 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", !9, i64 0, !9, i64 8, !9, 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", !9, i64 0, !9, i64 8, !9, 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", !9, i64 0, !9, i64 8, !9, 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", !9, i64 0, !9, i64 8, !9, 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", !9, i64 0}
!47 = !{!6, !12, i64 148}
!48 = !{i8 0, i8 2}
!49 = !{}
!50 = !{!14, !14, i64 0}
!51 = !{!6, !14, i64 200}
!52 = !{!6, !14, i64 196}
!53 = !{!6, !14, i64 232}
!54 = !{!6, !14, i64 228}
!55 = !{!6, !14, i64 192}
!56 = !{!6, !12, i64 92}
!57 = !{!6, !14, i64 96}
!58 = !{!6, !14, i64 112}
!59 = !{!6, !12, i64 248}


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