; LLVM IR from modlfo/AudioEngine :: AudioEngine/JuceLibraryCode/juce_gui_basics.ll (ZN4juce7Desktop13sendMouseMoveEv)

; 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.juce::Point.35" = type { float, float }
%"class.juce::Time" = type { i64 }
%"class.juce::MouseInputSource" = type { ptr }
%"class.juce::Point" = type { i32, i32 }
%"class.juce::Component::BailOutChecker" = type { %"class.juce::WeakReference" }
%"class.juce::WeakReference" = type { %"class.juce::ReferenceCountedObjectPtr" }
%"class.juce::ReferenceCountedObjectPtr" = type { ptr }
%"class.juce::MouseEvent" = type <{ %"class.juce::Point.35", i32, i32, %"class.juce::ModifierKeys", float, ptr, ptr, %"class.juce::Time", %"class.juce::Time", %"class.juce::MouseInputSource", %"class.juce::Point.35", i8, i8, [6 x i8] }>
%"class.juce::ModifierKeys" = type { i32 }
%"class.juce::Desktop" = type { %"class.juce::DeletedAtShutdown", %"class.juce::Timer", %"class.juce::AsyncUpdater", %"class.juce::ScopedPointer.16", %"class.juce::ListenerList.17", %"class.juce::ListenerList.23", %"class.juce::Array", %"class.juce::Array.29", %"class.juce::ScopedPointer.34", %"class.juce::Point.35", i32, i32, %"class.juce::ScopedPointer.36", %"class.juce::WeakReference.37", ptr, %"class.juce::Rectangle", i8, i32, float, [4 x i8], %"class.juce::ComponentAnimator" }
%"class.juce::DeletedAtShutdown" = type { ptr }
%"class.juce::Timer" = type { ptr, i32, i32, ptr, ptr }
%"class.juce::AsyncUpdater" = type { ptr, %"class.juce::ReferenceCountedObjectPtr.15" }
%"class.juce::ReferenceCountedObjectPtr.15" = type { ptr }
%"class.juce::ScopedPointer.16" = type { ptr }
%"class.juce::ListenerList.17" = type { %"class.juce::Array.18" }
%"class.juce::Array.18" = type { %"class.juce::ArrayAllocationBase.19", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.19" = type <{ %"class.juce::HeapBlock.20", i32, [4 x i8] }>
%"class.juce::HeapBlock.20" = type { ptr }
%"class.juce::ListenerList.23" = type { %"class.juce::Array.24" }
%"class.juce::Array.24" = type { %"class.juce::ArrayAllocationBase.25", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.25" = type <{ %"class.juce::HeapBlock.26", i32, [4 x i8] }>
%"class.juce::HeapBlock.26" = type { ptr }
%"class.juce::Array" = type { %"class.juce::ArrayAllocationBase", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase" = type <{ %"class.juce::HeapBlock", i32, [4 x i8] }>
%"class.juce::HeapBlock" = type { ptr }
%"class.juce::Array.29" = type { %"class.juce::ArrayAllocationBase.30", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.30" = type <{ %"class.juce::HeapBlock.31", i32, [4 x i8] }>
%"class.juce::HeapBlock.31" = type { ptr }
%"class.juce::ScopedPointer.34" = type { ptr }
%"class.juce::ScopedPointer.36" = type { ptr }
%"class.juce::WeakReference.37" = type { %"class.juce::ReferenceCountedObjectPtr.38" }
%"class.juce::ReferenceCountedObjectPtr.38" = type { ptr }
%"class.juce::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::ComponentAnimator" = type <{ %"class.juce::ChangeBroadcaster", %"class.juce::Timer", %"class.juce::OwnedArray", i32, [4 x i8] }>
%"class.juce::ChangeBroadcaster" = type { ptr, %"class.juce::ChangeBroadcaster::ChangeBroadcasterCallback", %"class.juce::ListenerList.39" }
%"class.juce::ChangeBroadcaster::ChangeBroadcasterCallback" = type { %"class.juce::AsyncUpdater", ptr }
%"class.juce::ListenerList.39" = type { %"class.juce::Array.40" }
%"class.juce::Array.40" = type { %"class.juce::ArrayAllocationBase.41", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.41" = type <{ %"class.juce::HeapBlock.42", i32, [4 x i8] }>
%"class.juce::HeapBlock.42" = type { ptr }
%"class.juce::OwnedArray" = type { %"class.juce::ArrayAllocationBase.45", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.45" = type <{ %"class.juce::HeapBlock.46", i32, [4 x i8] }>
%"class.juce::HeapBlock.46" = type { ptr }

declare i32 @__gxx_personality_v0(...)

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce9Component14BailOutCheckerD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce9Component13getLocalPointEPKS0_NS_5PointIfEE(ptr dead_on_unwind noalias writable sret(%"class.juce::Point.35") align 4, ptr noundef nonnull align 8 dereferenceable(197), ptr noundef, ptr noundef) #2 align 2

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

; Function Attrs: nounwind
declare void @_ZN4juce4Time14getCurrentTimeEv(ptr dead_on_unwind writable sret(%"class.juce::Time") align 8) #4

; Function Attrs: nounwind
declare void @_ZN4juce4TimeD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce7Desktop18getMainMouseSourceEv(ptr dead_on_unwind noalias writable sret(%"class.juce::MouseInputSource") align 8, ptr noundef nonnull align 8 dereferenceable(360)) #3 align 2

; Function Attrs: nounwind
declare void @_ZN4juce4TimeC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce12ListenerListINS_13MouseListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEE11callCheckedINS_9Component14BailOutCheckerERKNS_10MouseEventEEEvRKT_MS1_FvT0_ENS_11TypeHelpers13ParameterTypeISG_E4typeE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), i64, i64, ptr noundef nonnull align 8 dereferenceable(74)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce7Desktop13sendMouseMoveEv(ptr noundef nonnull align 8 dereferenceable(360) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.juce::Point.35", align 4
  %4 = alloca ptr, align 8
  %5 = alloca %"class.juce::Point", align 4
  %6 = alloca %"class.juce::Component::BailOutChecker", align 8
  %7 = alloca %"class.juce::Point.35", align 4
  %8 = alloca %"class.juce::Point.35", align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.juce::Time", align 8
  %12 = alloca %"class.juce::MouseEvent", align 8
  %13 = alloca %"class.juce::MouseInputSource", align 8
  %14 = alloca %"class.juce::Point.35", align 4
  %15 = alloca %"class.juce::ModifierKeys", align 4
  %16 = alloca %"class.juce::Time", align 8
  %17 = alloca %"class.juce::Point.35", align 4
  %18 = alloca %"class.juce::Time", align 8
  %19 = alloca { i64, i64 }, align 8
  %20 = alloca { i64, i64 }, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %21 = load ptr, ptr %2, align 8
  %22 = getelementptr inbounds %"class.juce::Desktop", ptr %21, i32 0, i32 4
  %23 = call noundef zeroext i1 @_ZNK4juce12ListenerListINS_13MouseListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEE7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  br i1 %23, label %66, label %24

24:                                               ; preds = %1
  %25 = getelementptr inbounds i8, ptr %21, i64 8
  call void @_ZN4juce5Timer10startTimerEi(ptr noundef nonnull align 8 dereferenceable(32) %25, i32 noundef 20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  call void @_ZN4juce7Desktop21getMousePositionFloatEv(ptr dead_on_unwind writable sret(%"class.juce::Point.35") align 4 %3)
  %26 = getelementptr inbounds %"class.juce::Desktop", ptr %21, i32 0, i32 9
  %27 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN4juce5PointIfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %26, ptr noundef nonnull align 4 dereferenceable(8) %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %28 = getelementptr inbounds %"class.juce::Desktop", ptr %21, i32 0, i32 9
  call void @_ZNK4juce5PointIfE10roundToIntEv(ptr dead_on_unwind writable sret(%"class.juce::Point") align 4 %5, ptr noundef nonnull align 4 dereferenceable(8) %28) #5
  %29 = call noundef ptr @_ZNK4juce7Desktop15findComponentAtENS_5PointIiEE(ptr noundef nonnull align 8 dereferenceable(360) %21, ptr noundef %5)
  store ptr %29, ptr %4, align 8, !tbaa !5
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = icmp ne ptr %30, null
  br i1 %31, label %32, label %65

32:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN4juce9Component14BailOutCheckerC1EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef %33)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %"class.juce::Desktop", ptr %21, i32 0, i32 9
  call void @_ZN4juce5PointIfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %35) #5
  invoke void @_ZNK4juce9Component13getLocalPointEPKS0_NS_5PointIfEE(ptr dead_on_unwind writable sret(%"class.juce::Point.35") align 4 %7, ptr noundef nonnull align 8 dereferenceable(197) %34, ptr noundef null, ptr noundef %8)
          to label %36 unwind label %48

36:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @_ZN4juce4Time14getCurrentTimeEv(ptr dead_on_unwind writable sret(%"class.juce::Time") align 8 %11) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %12) #5
  call void @_ZNK4juce7Desktop18getMainMouseSourceEv(ptr dead_on_unwind writable sret(%"class.juce::MouseInputSource") align 8 %13, ptr noundef nonnull align 8 dereferenceable(360) %21) #5
  call void @_ZN4juce5PointIfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %7) #5
  call void @_ZN4juce12ModifierKeys19getCurrentModifiersEv(ptr dead_on_unwind writable sret(%"class.juce::ModifierKeys") align 4 %15) #5
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN4juce4TimeC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  call void @_ZN4juce5PointIfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %7) #5
  call void @_ZN4juce4TimeC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  call void @_ZN4juce10MouseEventC1ENS_16MouseInputSourceENS_5PointIfEENS_12ModifierKeysEfPNS_9ComponentES6_NS_4TimeES3_S7_ib(ptr noundef nonnull align 8 dereferenceable(74) %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, float noundef 0.000000e+00, ptr noundef %37, ptr noundef %38, ptr noundef %16, ptr noundef %17, ptr noundef %18, i32 noundef 0, i1 noundef zeroext false) #5
  call void @_ZN4juce4TimeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #5
  call void @_ZN4juce4TimeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  call void @_ZN4juce16MouseInputSourceD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  %39 = getelementptr inbounds %"class.juce::MouseEvent", ptr %12, i32 0, i32 3
  %40 = call noundef zeroext i1 @_ZNK4juce12ModifierKeys20isAnyMouseButtonDownEv(ptr noundef nonnull align 4 dereferenceable(4) %39) #5
  br i1 %40, label %41, label %56

41:                                               ; preds = %36
  %42 = getelementptr inbounds %"class.juce::Desktop", ptr %21, i32 0, i32 4
  store { i64, i64 } { i64 49, i64 0 }, ptr %19, align 8, !tbaa !9
  %43 = getelementptr inbounds { i64, i64 }, ptr %19, i32 0, i32 0
  %44 = load i64, ptr %43, align 8
  %45 = getelementptr inbounds { i64, i64 }, ptr %19, i32 0, i32 1
  %46 = load i64, ptr %45, align 8
  invoke void @_ZN4juce12ListenerListINS_13MouseListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEE11callCheckedINS_9Component14BailOutCheckerERKNS_10MouseEventEEEvRKT_MS1_FvT0_ENS_11TypeHelpers13ParameterTypeISG_E4typeE(ptr noundef nonnull align 8 dereferenceable(24) %42, ptr noundef nonnull align 8 dereferenceable(8) %6, i64 %44, i64 %46, ptr noundef nonnull align 8 dereferenceable(74) %12)
          to label %47 unwind label %52

47:                                               ; preds = %41
  br label %63

48:                                               ; preds = %32
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %9, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %10, align 4
  br label %64

52:                                               ; preds = %56, %41
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %9, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %10, align 4
  call void @_ZN4juce10MouseEventD1Ev(ptr noundef nonnull align 8 dereferenceable(74) %12) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %12) #5
  call void @_ZN4juce4TimeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %64

56:                                               ; preds = %36
  %57 = getelementptr inbounds %"class.juce::Desktop", ptr %21, i32 0, i32 4
  store { i64, i64 } { i64 17, i64 0 }, ptr %20, align 8, !tbaa !9
  %58 = getelementptr inbounds { i64, i64 }, ptr %20, i32 0, i32 0
  %59 = load i64, ptr %58, align 8
  %60 = getelementptr inbounds { i64, i64 }, ptr %20, i32 0, i32 1
  %61 = load i64, ptr %60, align 8
  invoke void @_ZN4juce12ListenerListINS_13MouseListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEE11callCheckedINS_9Component14BailOutCheckerERKNS_10MouseEventEEEvRKT_MS1_FvT0_ENS_11TypeHelpers13ParameterTypeISG_E4typeE(ptr noundef nonnull align 8 dereferenceable(24) %57, ptr noundef nonnull align 8 dereferenceable(8) %6, i64 %59, i64 %61, ptr noundef nonnull align 8 dereferenceable(74) %12)
          to label %62 unwind label %52

62:                                               ; preds = %56
  br label %63

63:                                               ; preds = %62, %47
  call void @_ZN4juce10MouseEventD1Ev(ptr noundef nonnull align 8 dereferenceable(74) %12) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %12) #5
  call void @_ZN4juce4TimeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @_ZN4juce9Component14BailOutCheckerD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %65

64:                                               ; preds = %52, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @_ZN4juce9Component14BailOutCheckerD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  br label %67

65:                                               ; preds = %63, %24
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  br label %66

66:                                               ; preds = %65, %1
  ret void

67:                                               ; preds = %64
  %68 = load ptr, ptr %9, align 8
  %69 = load i32, ptr %10, align 4
  %70 = insertvalue { ptr, i32 } poison, ptr %68, 0
  %71 = insertvalue { ptr, i32 } %70, i32 %69, 1
  resume { ptr, i32 } %71
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce5PointIfE10roundToIntEv(ptr dead_on_unwind noalias writable sret(%"class.juce::Point") align 4, ptr noundef nonnull align 4 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce12ModifierKeys19getCurrentModifiersEv(ptr dead_on_unwind noalias writable sret(%"class.juce::ModifierKeys") align 4) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce12ModifierKeys20isAnyMouseButtonDownEv(ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK4juce7Desktop15findComponentAtENS_5PointIiEE(ptr noundef nonnull align 8 dereferenceable(360), ptr noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce7Desktop21getMousePositionFloatEv(ptr dead_on_unwind noalias writable sret(%"class.juce::Point.35") align 4) #2 align 2

; Function Attrs: nounwind
declare void @_ZN4juce5Timer10startTimerEi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZN4juce5PointIfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce12ListenerListINS_13MouseListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEE7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

declare void @_ZN4juce9Component14BailOutCheckerC1EPS0_(ptr, ptr)

declare void @_ZN4juce16MouseInputSourceD1Ev(ptr)

declare void @_ZN4juce10MouseEventC1ENS_16MouseInputSourceENS_5PointIfEENS_12ModifierKeysEfPNS_9ComponentES6_NS_4TimeES3_S7_ib(ptr, ptr, ptr, ptr, float, ptr, ptr, ptr, ptr, ptr, i32, i1)

declare void @_ZN4juce10MouseEventD1Ev(ptr)

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


; 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.juce::Point.35" = type { float, float }
%"class.juce::Time" = type { i64 }
%"class.juce::MouseInputSource" = type { ptr }
%"class.juce::Point" = type { i32, i32 }
%"class.juce::Component::BailOutChecker" = type { %"class.juce::WeakReference" }
%"class.juce::WeakReference" = type { %"class.juce::ReferenceCountedObjectPtr" }
%"class.juce::ReferenceCountedObjectPtr" = type { ptr }
%"class.juce::MouseEvent" = type <{ %"class.juce::Point.35", i32, i32, %"class.juce::ModifierKeys", float, ptr, ptr, %"class.juce::Time", %"class.juce::Time", %"class.juce::MouseInputSource", %"class.juce::Point.35", i8, i8, [6 x i8] }>
%"class.juce::ModifierKeys" = type { i32 }

declare i32 @__gxx_personality_v0(...)

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce9Component14BailOutCheckerD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce9Component13getLocalPointEPKS0_NS_5PointIfEE(ptr dead_on_unwind noalias writable sret(%"class.juce::Point.35") align 4, ptr noundef nonnull align 8 dereferenceable(197), ptr noundef, ptr noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: nounwind
declare void @_ZN4juce4Time14getCurrentTimeEv(ptr dead_on_unwind writable sret(%"class.juce::Time") align 8) local_unnamed_addr #4

; Function Attrs: nounwind
declare void @_ZN4juce4TimeD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce7Desktop18getMainMouseSourceEv(ptr dead_on_unwind noalias writable sret(%"class.juce::MouseInputSource") align 8, ptr noundef nonnull align 8 dereferenceable(360)) local_unnamed_addr #3 align 2

; Function Attrs: nounwind
declare void @_ZN4juce4TimeC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce12ListenerListINS_13MouseListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEE11callCheckedINS_9Component14BailOutCheckerERKNS_10MouseEventEEEvRKT_MS1_FvT0_ENS_11TypeHelpers13ParameterTypeISG_E4typeE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), i64, i64, ptr noundef nonnull align 8 dereferenceable(74)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce7Desktop13sendMouseMoveEv(ptr noundef nonnull align 8 dereferenceable(360) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.juce::Point.35", align 4
  %3 = alloca %"class.juce::Point", align 4
  %4 = alloca %"class.juce::Component::BailOutChecker", align 8
  %5 = alloca %"class.juce::Point.35", align 4
  %6 = alloca %"class.juce::Point.35", align 4
  %7 = alloca %"class.juce::Time", align 8
  %8 = alloca %"class.juce::MouseEvent", align 8
  %9 = alloca %"class.juce::MouseInputSource", align 8
  %10 = alloca %"class.juce::Point.35", align 4
  %11 = alloca %"class.juce::ModifierKeys", align 4
  %12 = alloca %"class.juce::Time", align 8
  %13 = alloca %"class.juce::Point.35", align 4
  %14 = alloca %"class.juce::Time", align 8
  %15 = getelementptr inbounds i8, ptr %0, i64 64
  %16 = tail call noundef zeroext i1 @_ZNK4juce12ListenerListINS_13MouseListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEE7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  br i1 %16, label %32, label %17

17:                                               ; preds = %1
  %18 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @_ZN4juce5Timer10startTimerEi(ptr noundef nonnull align 8 dereferenceable(32) %18, i32 noundef 20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  call void @_ZN4juce7Desktop21getMousePositionFloatEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Point.35") align 4 %2)
  %19 = getelementptr inbounds i8, ptr %0, i64 168
  %20 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN4juce5PointIfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %19, ptr noundef nonnull align 4 dereferenceable(8) %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  call void @_ZNK4juce5PointIfE10roundToIntEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Point") align 4 %3, ptr noundef nonnull align 4 dereferenceable(8) %19) #5
  %21 = call noundef ptr @_ZNK4juce7Desktop15findComponentAtENS_5PointIiEE(ptr noundef nonnull align 8 dereferenceable(360) %0, ptr noundef nonnull %3)
  %.not = icmp eq ptr %21, null
  br i1 %.not, label %32, label %22

22:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  call void @_ZN4juce9Component14BailOutCheckerC1EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull %21)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  call void @_ZN4juce5PointIfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %19) #5
  invoke void @_ZNK4juce9Component13getLocalPointEPKS0_NS_5PointIfEE(ptr dead_on_unwind nonnull writable sret(%"class.juce::Point.35") align 4 %5, ptr noundef nonnull align 8 dereferenceable(197) %21, ptr noundef null, ptr noundef nonnull %6)
          to label %.invoke unwind label %26

.invoke:                                          ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  call void @_ZN4juce4Time14getCurrentTimeEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Time") align 8 %7) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %8) #5
  call void @_ZNK4juce7Desktop18getMainMouseSourceEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::MouseInputSource") align 8 %9, ptr noundef nonnull align 8 dereferenceable(360) %0) #5
  call void @_ZN4juce5PointIfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(8) %5) #5
  call void @_ZN4juce12ModifierKeys19getCurrentModifiersEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::ModifierKeys") align 4 %11) #5
  call void @_ZN4juce4TimeC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @_ZN4juce5PointIfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(8) %5) #5
  call void @_ZN4juce4TimeC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @_ZN4juce10MouseEventC1ENS_16MouseInputSourceENS_5PointIfEENS_12ModifierKeysEfPNS_9ComponentES6_NS_4TimeES3_S7_ib(ptr noundef nonnull align 8 dereferenceable(74) %8, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %11, float noundef 0.000000e+00, ptr noundef nonnull %21, ptr noundef nonnull %21, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull %14, i32 noundef 0, i1 noundef zeroext false) #5
  call void @_ZN4juce4TimeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  call void @_ZN4juce4TimeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  call void @_ZN4juce16MouseInputSourceD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  %23 = getelementptr inbounds i8, ptr %8, i64 16
  %24 = call noundef zeroext i1 @_ZNK4juce12ModifierKeys20isAnyMouseButtonDownEv(ptr noundef nonnull align 4 dereferenceable(4) %23) #5
  %25 = select i1 %24, i64 49, i64 17
  invoke void @_ZN4juce12ListenerListINS_13MouseListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEE11callCheckedINS_9Component14BailOutCheckerERKNS_10MouseEventEEEvRKT_MS1_FvT0_ENS_11TypeHelpers13ParameterTypeISG_E4typeE(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(8) %4, i64 %25, i64 0, ptr noundef nonnull align 8 dereferenceable(74) %8)
          to label %30 unwind label %28

26:                                               ; preds = %22
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %31

28:                                               ; preds = %.invoke
  %29 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce10MouseEventD1Ev(ptr noundef nonnull align 8 dereferenceable(74) %8) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %8) #5
  call void @_ZN4juce4TimeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %31

30:                                               ; preds = %.invoke
  call void @_ZN4juce10MouseEventD1Ev(ptr noundef nonnull align 8 dereferenceable(74) %8) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %8) #5
  call void @_ZN4juce4TimeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @_ZN4juce9Component14BailOutCheckerD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  br label %32

31:                                               ; preds = %28, %26
  %.pn = phi { ptr, i32 } [ %29, %28 ], [ %27, %26 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @_ZN4juce9Component14BailOutCheckerD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  resume { ptr, i32 } %.pn

32:                                               ; preds = %17, %30, %1
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce5PointIfE10roundToIntEv(ptr dead_on_unwind noalias writable sret(%"class.juce::Point") align 4, ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce12ModifierKeys19getCurrentModifiersEv(ptr dead_on_unwind noalias writable sret(%"class.juce::ModifierKeys") align 4) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce12ModifierKeys20isAnyMouseButtonDownEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK4juce7Desktop15findComponentAtENS_5PointIiEE(ptr noundef nonnull align 8 dereferenceable(360), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce7Desktop21getMousePositionFloatEv(ptr dead_on_unwind noalias writable sret(%"class.juce::Point.35") align 4) local_unnamed_addr #2 align 2

; Function Attrs: nounwind
declare void @_ZN4juce5Timer10startTimerEi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZN4juce5PointIfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce12ListenerListINS_13MouseListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEE7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

declare void @_ZN4juce9Component14BailOutCheckerC1EPS0_(ptr, ptr) local_unnamed_addr

declare void @_ZN4juce16MouseInputSourceD1Ev(ptr) local_unnamed_addr

declare void @_ZN4juce10MouseEventC1ENS_16MouseInputSourceENS_5PointIfEENS_12ModifierKeysEfPNS_9ComponentES6_NS_4TimeES3_S7_ib(ptr, ptr, ptr, ptr, float, ptr, ptr, ptr, ptr, ptr, i32, i1) local_unnamed_addr

declare void @_ZN4juce10MouseEventD1Ev(ptr) local_unnamed_addr

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}


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