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

; 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::ModifierKeys" = type { 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::Time" = type { i64 }
%"class.juce::MouseInputSource" = type { ptr }
%"class.juce::Point.35" = type { float, float }
%"class.juce::Component" = type <{ %"class.juce::MouseListener", %"class.juce::String", %"class.juce::String", ptr, %"class.juce::Rectangle", %"class.juce::ScopedPointer", %"class.juce::ScopedPointer.0", %"class.juce::Array", ptr, %"class.juce::MouseCursor", ptr, %"class.juce::ScopedPointer.1", %"class.juce::ScopedPointer.2", %"class.juce::ScopedPointer.3", %"class.juce::ListenerList", %"class.juce::NamedValueSet", %"class.juce::WeakReference<juce::Component>::Master", %union.anon, i8, [3 x i8] }>
%"class.juce::MouseListener" = type { ptr }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::Point" = type { i32, i32 }
%"class.juce::ScopedPointer" = type { ptr }
%"class.juce::ScopedPointer.0" = 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::MouseCursor" = type { ptr }
%"class.juce::ScopedPointer.1" = type { ptr }
%"class.juce::ScopedPointer.2" = type { ptr }
%"class.juce::ScopedPointer.3" = type { ptr }
%"class.juce::ListenerList" = type { %"class.juce::Array.4" }
%"class.juce::Array.4" = type { %"class.juce::ArrayAllocationBase.5", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.5" = type <{ %"class.juce::HeapBlock.6", i32, [4 x i8] }>
%"class.juce::HeapBlock.6" = type { ptr }
%"class.juce::NamedValueSet" = type { %"class.juce::Array.9" }
%"class.juce::Array.9" = type { %"class.juce::ArrayAllocationBase.10", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.10" = type <{ %"class.juce::HeapBlock.11", i32, [4 x i8] }>
%"class.juce::HeapBlock.11" = type { ptr }
%"class.juce::WeakReference<juce::Component>::Master" = type { %"class.juce::ReferenceCountedObjectPtr" }
%union.anon = type { i32 }

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 @_ZN4juce9Component7repaintEv(ptr noundef nonnull align 8 dereferenceable(197)) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce9Component7toFrontEb(ptr noundef nonnull align 8 dereferenceable(197), i1 noundef zeroext) #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 @_ZN4juce4TimeD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce9Component41isCurrentlyBlockedByAnotherModalComponentEv(ptr noundef nonnull align 8 dereferenceable(197)) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce9Component25internalModalInputAttemptEv(ptr noundef nonnull align 8 dereferenceable(197)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce16MouseInputSource19getCurrentModifiersEv(ptr dead_on_unwind noalias writable sret(%"class.juce::ModifierKeys") align 4, ptr noundef nonnull align 8 dereferenceable(8)) #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 noundef nonnull align 8 dereferenceable(24) ptr @_ZN4juce7Desktop17getMouseListenersEv(ptr noundef nonnull align 8 dereferenceable(360)) #2 align 2

; 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
declare dso_local void @_ZN4juce9Component17MouseListenerList14sendMouseEventERS0_RNS0_14BailOutCheckerEMNS_13MouseListenerEFvRKNS_10MouseEventEES8_(ptr noundef nonnull align 8 dereferenceable(197), 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 @_ZN4juce9Component17internalMouseDownENS_16MouseInputSourceENS_5PointIfEENS_4TimeEf(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, float noundef %4) #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca float, align 4
  %11 = alloca ptr, align 8
  %12 = alloca %"class.juce::Component::BailOutChecker", align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"class.juce::MouseEvent", align 8
  %17 = alloca %"class.juce::MouseInputSource", align 8
  %18 = alloca %"class.juce::Point.35", align 4
  %19 = alloca %"class.juce::ModifierKeys", align 4
  %20 = alloca %"class.juce::Time", align 8
  %21 = alloca %"class.juce::Point.35", align 4
  %22 = alloca %"class.juce::Time", align 8
  %23 = alloca { i64, i64 }, align 8
  %24 = alloca ptr, align 8
  %25 = alloca %"class.juce::MouseEvent", align 8
  %26 = alloca %"class.juce::MouseInputSource", align 8
  %27 = alloca %"class.juce::Point.35", align 4
  %28 = alloca %"class.juce::ModifierKeys", align 4
  %29 = alloca %"class.juce::Time", align 8
  %30 = alloca %"class.juce::Point.35", align 4
  %31 = alloca %"class.juce::Time", align 8
  %32 = alloca { i64, i64 }, align 8
  %33 = alloca { i64, i64 }, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store float %4, ptr %10, align 4, !tbaa !9
  %34 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %35 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN4juce7Desktop11getInstanceEv()
  store ptr %35, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @_ZN4juce9Component14BailOutCheckerC1EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef %34)
  %36 = invoke noundef zeroext i1 @_ZNK4juce9Component41isCurrentlyBlockedByAnotherModalComponentEv(ptr noundef nonnull align 8 dereferenceable(197) %34)
          to label %37 unwind label %46

37:                                               ; preds = %5
  br i1 %36, label %38, label %69

38:                                               ; preds = %37
  %39 = getelementptr inbounds %"class.juce::Component", ptr %34, i32 0, i32 17
  %40 = load i16, ptr %39, align 8
  %41 = and i16 %40, 32767
  %42 = or i16 %41, -32768
  store i16 %42, ptr %39, align 8
  invoke void @_ZN4juce9Component25internalModalInputAttemptEv(ptr noundef nonnull align 8 dereferenceable(197) %34)
          to label %43 unwind label %46

43:                                               ; preds = %38
  %44 = call noundef zeroext i1 @_ZNK4juce9Component14BailOutChecker13shouldBailOutEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  br i1 %44, label %45, label %50

45:                                               ; preds = %43
  store i32 1, ptr %15, align 4
  br label %145

46:                                               ; preds = %115, %104, %50, %38, %5
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %13, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %14, align 4
  br label %148

50:                                               ; preds = %43
  %51 = invoke noundef zeroext i1 @_ZNK4juce9Component41isCurrentlyBlockedByAnotherModalComponentEv(ptr noundef nonnull align 8 dereferenceable(197) %34)
          to label %52 unwind label %46

52:                                               ; preds = %50
  br i1 %51, label %53, label %68

53:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 80, ptr %16) #5
  call void @_ZN4juce16MouseInputSourceC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %1) #5
  call void @_ZN4juce5PointIfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %18, ptr noundef nonnull align 4 dereferenceable(8) %2) #5
  call void @_ZNK4juce16MouseInputSource19getCurrentModifiersEv(ptr dead_on_unwind writable sret(%"class.juce::ModifierKeys") align 4 %19, ptr noundef nonnull align 8 dereferenceable(8) %1) #5
  %54 = load float, ptr %10, align 4, !tbaa !9
  call void @_ZN4juce4TimeC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  call void @_ZN4juce5PointIfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %21, ptr noundef nonnull align 4 dereferenceable(8) %2) #5
  call void @_ZN4juce4TimeC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %55 = call noundef i32 @_ZNK4juce16MouseInputSource25getNumberOfMultipleClicksEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #5
  call void @_ZN4juce10MouseEventC1ENS_16MouseInputSourceENS_5PointIfEENS_12ModifierKeysEfPNS_9ComponentES6_NS_4TimeES3_S7_ib(ptr noundef nonnull align 8 dereferenceable(74) %16, ptr noundef %17, ptr noundef %18, ptr noundef %19, float noundef %54, ptr noundef %34, ptr noundef %34, ptr noundef %20, ptr noundef %21, ptr noundef %22, i32 noundef %55, i1 noundef zeroext false) #5
  call void @_ZN4juce4TimeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #5
  call void @_ZN4juce4TimeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  call void @_ZN4juce16MouseInputSourceD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  %56 = load ptr, ptr %11, align 8, !tbaa !5
  %57 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN4juce7Desktop17getMouseListenersEv(ptr noundef nonnull align 8 dereferenceable(360) %56)
          to label %58 unwind label %64

58:                                               ; preds = %53
  store { i64, i64 } { i64 41, i64 0 }, ptr %23, align 8, !tbaa !11
  %59 = getelementptr inbounds { i64, i64 }, ptr %23, i32 0, i32 0
  %60 = load i64, ptr %59, align 8
  %61 = getelementptr inbounds { i64, i64 }, ptr %23, i32 0, i32 1
  %62 = load i64, ptr %61, 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) %12, i64 %60, i64 %62, ptr noundef nonnull align 8 dereferenceable(74) %16)
          to label %63 unwind label %64

63:                                               ; preds = %58
  store i32 1, ptr %15, align 4
  call void @_ZN4juce10MouseEventD1Ev(ptr noundef nonnull align 8 dereferenceable(74) %16) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %16) #5
  br label %145

64:                                               ; preds = %58, %53
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %13, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %14, align 4
  call void @_ZN4juce10MouseEventD1Ev(ptr noundef nonnull align 8 dereferenceable(74) %16) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %16) #5
  br label %148

68:                                               ; preds = %52
  br label %69

69:                                               ; preds = %68, %37
  %70 = getelementptr inbounds %"class.juce::Component", ptr %34, i32 0, i32 17
  %71 = load i16, ptr %70, align 8
  %72 = and i16 %71, 32767
  %73 = or i16 %72, 0
  store i16 %73, ptr %70, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  store ptr %34, ptr %24, align 8, !tbaa !5
  br label %74

74:                                               ; preds = %92, %69
  %75 = load ptr, ptr %24, align 8, !tbaa !5
  %76 = icmp ne ptr %75, null
  br i1 %76, label %78, label %77

77:                                               ; preds = %74
  store i32 2, ptr %15, align 4
  br label %96

78:                                               ; preds = %74
  %79 = load ptr, ptr %24, align 8, !tbaa !5
  %80 = call noundef zeroext i1 @_ZNK4juce9Component28isBroughtToFrontOnMouseClickEv(ptr noundef nonnull align 8 dereferenceable(197) %79) #5
  br i1 %80, label %81, label %91

81:                                               ; preds = %78
  %82 = load ptr, ptr %24, align 8, !tbaa !5
  invoke void @_ZN4juce9Component7toFrontEb(ptr noundef nonnull align 8 dereferenceable(197) %82, i1 noundef zeroext true)
          to label %83 unwind label %86

83:                                               ; preds = %81
  %84 = call noundef zeroext i1 @_ZNK4juce9Component14BailOutChecker13shouldBailOutEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  br i1 %84, label %85, label %90

85:                                               ; preds = %83
  store i32 1, ptr %15, align 4
  br label %96

86:                                               ; preds = %81
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %13, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  br label %148

90:                                               ; preds = %83
  br label %91

91:                                               ; preds = %90, %78
  br label %92

92:                                               ; preds = %91
  %93 = load ptr, ptr %24, align 8, !tbaa !5
  %94 = getelementptr inbounds %"class.juce::Component", ptr %93, i32 0, i32 3
  %95 = load ptr, ptr %94, align 8, !tbaa !12
  store ptr %95, ptr %24, align 8, !tbaa !5
  br label %74, !llvm.loop !39

96:                                               ; preds = %85, %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  %97 = load i32, ptr %15, align 4
  switch i32 %97, label %145 [
    i32 2, label %98
  ]

98:                                               ; preds = %96
  %99 = getelementptr inbounds %"class.juce::Component", ptr %34, i32 0, i32 17
  %100 = load i16, ptr %99, align 8
  %101 = lshr i16 %100, 7
  %102 = and i16 %101, 1
  %103 = trunc i16 %102 to i1
  br i1 %103, label %109, label %104

104:                                              ; preds = %98
  invoke void @_ZN4juce9Component17grabFocusInternalENS0_15FocusChangeTypeEb(ptr noundef nonnull align 8 dereferenceable(197) %34, i32 noundef 0, i1 noundef zeroext true)
          to label %105 unwind label %46

105:                                              ; preds = %104
  %106 = call noundef zeroext i1 @_ZNK4juce9Component14BailOutChecker13shouldBailOutEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  br i1 %106, label %107, label %108

107:                                              ; preds = %105
  store i32 1, ptr %15, align 4
  br label %145

108:                                              ; preds = %105
  br label %109

109:                                              ; preds = %108, %98
  %110 = getelementptr inbounds %"class.juce::Component", ptr %34, i32 0, i32 17
  %111 = load i16, ptr %110, align 8
  %112 = lshr i16 %111, 11
  %113 = and i16 %112, 1
  %114 = trunc i16 %113 to i1
  br i1 %114, label %115, label %117

115:                                              ; preds = %109
  invoke void @_ZN4juce9Component7repaintEv(ptr noundef nonnull align 8 dereferenceable(197) %34)
          to label %116 unwind label %46

116:                                              ; preds = %115
  br label %117

117:                                              ; preds = %116, %109
  call void @llvm.lifetime.start.p0(i64 80, ptr %25) #5
  call void @_ZN4juce16MouseInputSourceC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %1) #5
  call void @_ZN4juce5PointIfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %27, ptr noundef nonnull align 4 dereferenceable(8) %2) #5
  call void @_ZNK4juce16MouseInputSource19getCurrentModifiersEv(ptr dead_on_unwind writable sret(%"class.juce::ModifierKeys") align 4 %28, ptr noundef nonnull align 8 dereferenceable(8) %1) #5
  %118 = load float, ptr %10, align 4, !tbaa !9
  call void @_ZN4juce4TimeC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  call void @_ZN4juce5PointIfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %30, ptr noundef nonnull align 4 dereferenceable(8) %2) #5
  call void @_ZN4juce4TimeC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %119 = call noundef i32 @_ZNK4juce16MouseInputSource25getNumberOfMultipleClicksEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #5
  call void @_ZN4juce10MouseEventC1ENS_16MouseInputSourceENS_5PointIfEENS_12ModifierKeysEfPNS_9ComponentES6_NS_4TimeES3_S7_ib(ptr noundef nonnull align 8 dereferenceable(74) %25, ptr noundef %26, ptr noundef %27, ptr noundef %28, float noundef %118, ptr noundef %34, ptr noundef %34, ptr noundef %29, ptr noundef %30, ptr noundef %31, i32 noundef %119, i1 noundef zeroext false) #5
  call void @_ZN4juce4TimeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %31) #5
  call void @_ZN4juce4TimeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %29) #5
  call void @_ZN4juce16MouseInputSourceD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #5
  %120 = load ptr, ptr %34, align 8, !tbaa !41
  %121 = getelementptr inbounds ptr, ptr %120, i64 5
  %122 = load ptr, ptr %121, align 8
  invoke void %122(ptr noundef nonnull align 8 dereferenceable(197) %34, ptr noundef nonnull align 8 dereferenceable(74) %25)
          to label %123 unwind label %126

123:                                              ; preds = %117
  %124 = call noundef zeroext i1 @_ZNK4juce9Component14BailOutChecker13shouldBailOutEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  br i1 %124, label %125, label %130

125:                                              ; preds = %123
  store i32 1, ptr %15, align 4
  br label %144

126:                                              ; preds = %138, %133, %130, %117
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %13, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %14, align 4
  call void @_ZN4juce10MouseEventD1Ev(ptr noundef nonnull align 8 dereferenceable(74) %25) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %25) #5
  br label %148

130:                                              ; preds = %123
  %131 = load ptr, ptr %11, align 8, !tbaa !5
  %132 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN4juce7Desktop17getMouseListenersEv(ptr noundef nonnull align 8 dereferenceable(360) %131)
          to label %133 unwind label %126

133:                                              ; preds = %130
  store { i64, i64 } { i64 41, i64 0 }, ptr %32, align 8, !tbaa !11
  %134 = getelementptr inbounds { i64, i64 }, ptr %32, i32 0, i32 0
  %135 = load i64, ptr %134, align 8
  %136 = getelementptr inbounds { i64, i64 }, ptr %32, i32 0, i32 1
  %137 = load i64, ptr %136, align 8
  invoke void @_ZN4juce12ListenerListINS_13MouseListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEE11callCheckedINS_9Component14BailOutCheckerERKNS_10MouseEventEEEvRKT_MS1_FvT0_ENS_11TypeHelpers13ParameterTypeISG_E4typeE(ptr noundef nonnull align 8 dereferenceable(24) %132, ptr noundef nonnull align 8 dereferenceable(8) %12, i64 %135, i64 %137, ptr noundef nonnull align 8 dereferenceable(74) %25)
          to label %138 unwind label %126

138:                                              ; preds = %133
  store { i64, i64 } { i64 41, i64 0 }, ptr %33, align 8, !tbaa !11
  %139 = getelementptr inbounds { i64, i64 }, ptr %33, i32 0, i32 0
  %140 = load i64, ptr %139, align 8
  %141 = getelementptr inbounds { i64, i64 }, ptr %33, i32 0, i32 1
  %142 = load i64, ptr %141, align 8
  invoke void @_ZN4juce9Component17MouseListenerList14sendMouseEventERS0_RNS0_14BailOutCheckerEMNS_13MouseListenerEFvRKNS_10MouseEventEES8_(ptr noundef nonnull align 8 dereferenceable(197) %34, ptr noundef nonnull align 8 dereferenceable(8) %12, i64 %140, i64 %142, ptr noundef nonnull align 8 dereferenceable(74) %25)
          to label %143 unwind label %126

143:                                              ; preds = %138
  store i32 0, ptr %15, align 4
  br label %144

144:                                              ; preds = %143, %125
  call void @_ZN4juce10MouseEventD1Ev(ptr noundef nonnull align 8 dereferenceable(74) %25) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %25) #5
  br label %145

145:                                              ; preds = %144, %107, %96, %63, %45
  call void @_ZN4juce9Component14BailOutCheckerD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  %146 = load i32, ptr %15, align 4
  switch i32 %146, label %154 [
    i32 0, label %147
    i32 1, label %147
  ]

147:                                              ; preds = %145, %145
  ret void

148:                                              ; preds = %126, %86, %64, %46
  call void @_ZN4juce9Component14BailOutCheckerD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %149

149:                                              ; preds = %148
  %150 = load ptr, ptr %13, align 8
  %151 = load i32, ptr %14, align 4
  %152 = insertvalue { ptr, i32 } poison, ptr %150, 0
  %153 = insertvalue { ptr, i32 } %152, i32 %151, 1
  resume { ptr, i32 } %153

154:                                              ; preds = %145
  unreachable
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce9Component17grabFocusInternalENS0_15FocusChangeTypeEb(ptr noundef nonnull align 8 dereferenceable(197), i32 noundef, i1 noundef zeroext) #2 align 2

declare void @_ZN4juce9Component14BailOutCheckerC1EPS0_(ptr, ptr)

declare void @_ZN4juce16MouseInputSourceC1ERKS0_(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 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !6, i64 24}
!13 = !{!"_ZTSN4juce9ComponentE", !14, i64 0, !15, i64 8, !15, i64 16, !6, i64 24, !17, i64 32, !20, i64 48, !21, i64 56, !22, i64 64, !6, i64 88, !25, i64 96, !6, i64 104, !26, i64 112, !27, i64 120, !28, i64 128, !29, i64 136, !33, i64 160, !37, i64 184, !7, i64 192, !7, i64 196}
!14 = !{!"_ZTSN4juce13MouseListenerE"}
!15 = !{!"_ZTSN4juce6StringE", !16, i64 0}
!16 = !{!"_ZTSN4juce16CharPointer_UTF8E", !6, i64 0}
!17 = !{!"_ZTSN4juce9RectangleIiEE", !18, i64 0, !19, i64 8, !19, i64 12}
!18 = !{!"_ZTSN4juce5PointIiEE", !19, i64 0, !19, i64 4}
!19 = !{!"int", !7, i64 0}
!20 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !6, i64 0}
!21 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !6, i64 0}
!22 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !23, i64 0, !19, i64 16}
!23 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !24, i64 0, !19, i64 8}
!24 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !6, i64 0}
!25 = !{!"_ZTSN4juce11MouseCursorE", !6, i64 0}
!26 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !6, i64 0}
!27 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !6, i64 0}
!28 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !6, i64 0}
!29 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !30, i64 0}
!30 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !31, i64 0, !19, i64 16}
!31 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !32, i64 0, !19, i64 8}
!32 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !6, i64 0}
!33 = !{!"_ZTSN4juce13NamedValueSetE", !34, i64 0}
!34 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !35, i64 0, !19, i64 16}
!35 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !36, i64 0, !19, i64 8}
!36 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !6, i64 0}
!37 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !38, i64 0}
!38 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !6, i64 0}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}
!41 = !{!42, !42, i64 0}
!42 = !{!"vtable pointer", !8, 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::ModifierKeys" = type { 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::Time" = type { i64 }
%"class.juce::MouseInputSource" = type { ptr }
%"class.juce::Point.35" = type { float, float }

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 @_ZN4juce9Component7repaintEv(ptr noundef nonnull align 8 dereferenceable(197)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce9Component7toFrontEb(ptr noundef nonnull align 8 dereferenceable(197), i1 noundef zeroext) 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 @_ZN4juce4TimeD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce9Component41isCurrentlyBlockedByAnotherModalComponentEv(ptr noundef nonnull align 8 dereferenceable(197)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce9Component25internalModalInputAttemptEv(ptr noundef nonnull align 8 dereferenceable(197)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce16MouseInputSource19getCurrentModifiersEv(ptr dead_on_unwind noalias writable sret(%"class.juce::ModifierKeys") align 4, ptr noundef nonnull align 8 dereferenceable(8)) 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 noundef nonnull align 8 dereferenceable(24) ptr @_ZN4juce7Desktop17getMouseListenersEv(ptr noundef nonnull align 8 dereferenceable(360)) local_unnamed_addr #2 align 2

; 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
declare dso_local void @_ZN4juce9Component17MouseListenerList14sendMouseEventERS0_RNS0_14BailOutCheckerEMNS_13MouseListenerEFvRKNS_10MouseEventEES8_(ptr noundef nonnull align 8 dereferenceable(197), 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 @_ZN4juce9Component17internalMouseDownENS_16MouseInputSourceENS_5PointIfEENS_4TimeEf(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, float noundef %4) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.juce::Component::BailOutChecker", align 8
  %7 = alloca %"class.juce::MouseEvent", align 8
  %8 = alloca %"class.juce::MouseInputSource", align 8
  %9 = alloca %"class.juce::Point.35", align 4
  %10 = alloca %"class.juce::ModifierKeys", align 4
  %11 = alloca %"class.juce::Time", align 8
  %12 = alloca %"class.juce::Point.35", align 4
  %13 = alloca %"class.juce::Time", align 8
  %14 = alloca %"class.juce::MouseEvent", align 8
  %15 = alloca %"class.juce::MouseInputSource", align 8
  %16 = alloca %"class.juce::Point.35", align 4
  %17 = alloca %"class.juce::ModifierKeys", align 4
  %18 = alloca %"class.juce::Time", align 8
  %19 = alloca %"class.juce::Point.35", align 4
  %20 = alloca %"class.juce::Time", align 8
  %21 = tail call noundef nonnull align 8 dereferenceable(360) ptr @_ZN4juce7Desktop11getInstanceEv()
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  call void @_ZN4juce9Component14BailOutCheckerC1EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull %0)
  %22 = invoke noundef zeroext i1 @_ZNK4juce9Component41isCurrentlyBlockedByAnotherModalComponentEv(ptr noundef nonnull align 8 dereferenceable(197) %0)
          to label %23 unwind label %30

23:                                               ; preds = %5
  br i1 %22, label %24, label %42

24:                                               ; preds = %23
  %25 = getelementptr inbounds i8, ptr %0, i64 192
  %26 = load i16, ptr %25, align 8
  %27 = or i16 %26, -32768
  store i16 %27, ptr %25, align 8
  invoke void @_ZN4juce9Component25internalModalInputAttemptEv(ptr noundef nonnull align 8 dereferenceable(197) %0)
          to label %28 unwind label %30

28:                                               ; preds = %24
  %29 = call noundef zeroext i1 @_ZNK4juce9Component14BailOutChecker13shouldBailOutEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  br i1 %29, label %.loopexit, label %32

30:                                               ; preds = %64, %58, %32, %24, %5
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %79

32:                                               ; preds = %28
  %33 = invoke noundef zeroext i1 @_ZNK4juce9Component41isCurrentlyBlockedByAnotherModalComponentEv(ptr noundef nonnull align 8 dereferenceable(197) %0)
          to label %34 unwind label %30

34:                                               ; preds = %32
  br i1 %33, label %35, label %42

35:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %7) #5
  call void @_ZN4juce16MouseInputSourceC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %1) #5
  call void @_ZN4juce5PointIfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %2) #5
  call void @_ZNK4juce16MouseInputSource19getCurrentModifiersEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::ModifierKeys") align 4 %10, ptr noundef nonnull align 8 dereferenceable(8) %1) #5
  call void @_ZN4juce4TimeC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  call void @_ZN4juce5PointIfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %2) #5
  call void @_ZN4juce4TimeC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %36 = call noundef i32 @_ZNK4juce16MouseInputSource25getNumberOfMultipleClicksEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #5
  call void @_ZN4juce10MouseEventC1ENS_16MouseInputSourceENS_5PointIfEENS_12ModifierKeysEfPNS_9ComponentES6_NS_4TimeES3_S7_ib(ptr noundef nonnull align 8 dereferenceable(74) %7, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10, float noundef %4, ptr noundef nonnull %0, ptr noundef nonnull %0, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %13, i32 noundef %36, i1 noundef zeroext false) #5
  call void @_ZN4juce4TimeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  call void @_ZN4juce4TimeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  call void @_ZN4juce16MouseInputSourceD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  %37 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN4juce7Desktop17getMouseListenersEv(ptr noundef nonnull align 8 dereferenceable(360) %21)
          to label %38 unwind label %40

38:                                               ; preds = %35
  invoke void @_ZN4juce12ListenerListINS_13MouseListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEE11callCheckedINS_9Component14BailOutCheckerERKNS_10MouseEventEEEvRKT_MS1_FvT0_ENS_11TypeHelpers13ParameterTypeISG_E4typeE(ptr noundef nonnull align 8 dereferenceable(24) %37, ptr noundef nonnull align 8 dereferenceable(8) %6, i64 41, i64 0, ptr noundef nonnull align 8 dereferenceable(74) %7)
          to label %39 unwind label %40

39:                                               ; preds = %38
  call void @_ZN4juce10MouseEventD1Ev(ptr noundef nonnull align 8 dereferenceable(74) %7) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %7) #5
  br label %.loopexit

40:                                               ; preds = %38, %35
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce10MouseEventD1Ev(ptr noundef nonnull align 8 dereferenceable(74) %7) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %7) #5
  br label %79

42:                                               ; preds = %34, %23
  %43 = getelementptr inbounds i8, ptr %0, i64 192
  %44 = load i16, ptr %43, align 8
  %45 = and i16 %44, 32767
  store i16 %45, ptr %43, align 8
  br label %46

46:                                               ; preds = %42, %53
  %.01721 = phi ptr [ %0, %42 ], [ %55, %53 ]
  %47 = call noundef zeroext i1 @_ZNK4juce9Component28isBroughtToFrontOnMouseClickEv(ptr noundef nonnull align 8 dereferenceable(197) %.01721) #5
  br i1 %47, label %48, label %53

48:                                               ; preds = %46
  invoke void @_ZN4juce9Component7toFrontEb(ptr noundef nonnull align 8 dereferenceable(197) %.01721, i1 noundef zeroext true)
          to label %49 unwind label %51

49:                                               ; preds = %48
  %50 = call noundef zeroext i1 @_ZNK4juce9Component14BailOutChecker13shouldBailOutEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  br i1 %50, label %.loopexit, label %53

51:                                               ; preds = %48
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %79

53:                                               ; preds = %46, %49
  %54 = getelementptr inbounds i8, ptr %.01721, i64 24
  %55 = load ptr, ptr %54, align 8, !tbaa !5
  %.not = icmp eq ptr %55, null
  br i1 %.not, label %.critedge, label %46, !llvm.loop !35

.critedge:                                        ; preds = %53
  %56 = load i16, ptr %43, align 8
  %57 = and i16 %56, 128
  %.not18 = icmp eq i16 %57, 0
  br i1 %.not18, label %58, label %61

58:                                               ; preds = %.critedge
  invoke void @_ZN4juce9Component17grabFocusInternalENS0_15FocusChangeTypeEb(ptr noundef nonnull align 8 dereferenceable(197) %0, i32 noundef 0, i1 noundef zeroext true)
          to label %59 unwind label %30

59:                                               ; preds = %58
  %60 = call noundef zeroext i1 @_ZNK4juce9Component14BailOutChecker13shouldBailOutEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  br i1 %60, label %.loopexit, label %._crit_edge

._crit_edge:                                      ; preds = %59
  %.pre = load i16, ptr %43, align 8
  br label %61

61:                                               ; preds = %._crit_edge, %.critedge
  %62 = phi i16 [ %.pre, %._crit_edge ], [ %56, %.critedge ]
  %63 = and i16 %62, 2048
  %.not19 = icmp eq i16 %63, 0
  br i1 %.not19, label %65, label %64

64:                                               ; preds = %61
  invoke void @_ZN4juce9Component7repaintEv(ptr noundef nonnull align 8 dereferenceable(197) %0)
          to label %65 unwind label %30

65:                                               ; preds = %64, %61
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %14) #5
  call void @_ZN4juce16MouseInputSourceC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %1) #5
  call void @_ZN4juce5PointIfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %2) #5
  call void @_ZNK4juce16MouseInputSource19getCurrentModifiersEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::ModifierKeys") align 4 %17, ptr noundef nonnull align 8 dereferenceable(8) %1) #5
  call void @_ZN4juce4TimeC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  call void @_ZN4juce5PointIfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %19, ptr noundef nonnull align 4 dereferenceable(8) %2) #5
  call void @_ZN4juce4TimeC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %66 = call noundef i32 @_ZNK4juce16MouseInputSource25getNumberOfMultipleClicksEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #5
  call void @_ZN4juce10MouseEventC1ENS_16MouseInputSourceENS_5PointIfEENS_12ModifierKeysEfPNS_9ComponentES6_NS_4TimeES3_S7_ib(ptr noundef nonnull align 8 dereferenceable(74) %14, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull %17, float noundef %4, ptr noundef nonnull %0, ptr noundef nonnull %0, ptr noundef nonnull %18, ptr noundef nonnull %19, ptr noundef nonnull %20, i32 noundef %66, i1 noundef zeroext false) #5
  call void @_ZN4juce4TimeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  call void @_ZN4juce4TimeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #5
  call void @_ZN4juce16MouseInputSourceD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  %67 = load ptr, ptr %0, align 8, !tbaa !37
  %68 = getelementptr inbounds i8, ptr %67, i64 40
  %69 = load ptr, ptr %68, align 8
  invoke void %69(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef nonnull align 8 dereferenceable(74) %14)
          to label %70 unwind label %72

70:                                               ; preds = %65
  %71 = call noundef zeroext i1 @_ZNK4juce9Component14BailOutChecker13shouldBailOutEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  br i1 %71, label %78, label %74

72:                                               ; preds = %77, %76, %74, %65
  %73 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce10MouseEventD1Ev(ptr noundef nonnull align 8 dereferenceable(74) %14) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %14) #5
  br label %79

74:                                               ; preds = %70
  %75 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN4juce7Desktop17getMouseListenersEv(ptr noundef nonnull align 8 dereferenceable(360) %21)
          to label %76 unwind label %72

76:                                               ; preds = %74
  invoke void @_ZN4juce12ListenerListINS_13MouseListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEE11callCheckedINS_9Component14BailOutCheckerERKNS_10MouseEventEEEvRKT_MS1_FvT0_ENS_11TypeHelpers13ParameterTypeISG_E4typeE(ptr noundef nonnull align 8 dereferenceable(24) %75, ptr noundef nonnull align 8 dereferenceable(8) %6, i64 41, i64 0, ptr noundef nonnull align 8 dereferenceable(74) %14)
          to label %77 unwind label %72

77:                                               ; preds = %76
  invoke void @_ZN4juce9Component17MouseListenerList14sendMouseEventERS0_RNS0_14BailOutCheckerEMNS_13MouseListenerEFvRKNS_10MouseEventEES8_(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef nonnull align 8 dereferenceable(8) %6, i64 41, i64 0, ptr noundef nonnull align 8 dereferenceable(74) %14)
          to label %78 unwind label %72

78:                                               ; preds = %77, %70
  call void @_ZN4juce10MouseEventD1Ev(ptr noundef nonnull align 8 dereferenceable(74) %14) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %14) #5
  br label %.loopexit

.loopexit:                                        ; preds = %49, %59, %28, %78, %39
  call void @_ZN4juce9Component14BailOutCheckerD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  ret void

79:                                               ; preds = %72, %51, %40, %30
  %.pn = phi { ptr, i32 } [ %41, %40 ], [ %73, %72 ], [ %31, %30 ], [ %52, %51 ]
  call void @_ZN4juce9Component14BailOutCheckerD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  resume { ptr, i32 } %.pn
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce9Component17grabFocusInternalENS0_15FocusChangeTypeEb(ptr noundef nonnull align 8 dereferenceable(197), i32 noundef, i1 noundef zeroext) local_unnamed_addr #2 align 2

declare void @_ZN4juce9Component14BailOutCheckerC1EPS0_(ptr, ptr) local_unnamed_addr

declare void @_ZN4juce16MouseInputSourceC1ERKS0_(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)"}
!5 = !{!6, !10, i64 24}
!6 = !{!"_ZTSN4juce9ComponentE", !7, i64 0, !8, i64 8, !8, i64 16, !10, i64 24, !13, i64 32, !16, i64 48, !17, i64 56, !18, i64 64, !10, i64 88, !21, i64 96, !10, i64 104, !22, i64 112, !23, i64 120, !24, i64 128, !25, i64 136, !29, i64 160, !33, i64 184, !11, i64 192, !11, i64 196}
!7 = !{!"_ZTSN4juce13MouseListenerE"}
!8 = !{!"_ZTSN4juce6StringE", !9, i64 0}
!9 = !{!"_ZTSN4juce16CharPointer_UTF8E", !10, i64 0}
!10 = !{!"any pointer", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"_ZTSN4juce9RectangleIiEE", !14, i64 0, !15, i64 8, !15, i64 12}
!14 = !{!"_ZTSN4juce5PointIiEE", !15, i64 0, !15, i64 4}
!15 = !{!"int", !11, i64 0}
!16 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !10, i64 0}
!17 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !10, i64 0}
!18 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !19, i64 0, !15, i64 16}
!19 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !20, i64 0, !15, i64 8}
!20 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !10, i64 0}
!21 = !{!"_ZTSN4juce11MouseCursorE", !10, i64 0}
!22 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !10, i64 0}
!23 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !10, i64 0}
!24 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !10, i64 0}
!25 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !26, i64 0}
!26 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !27, i64 0, !15, i64 16}
!27 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !28, i64 0, !15, i64 8}
!28 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !10, i64 0}
!29 = !{!"_ZTSN4juce13NamedValueSetE", !30, i64 0}
!30 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !31, i64 0, !15, i64 16}
!31 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !32, i64 0, !15, i64 8}
!32 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !10, i64 0}
!33 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !34, i64 0}
!34 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !10, i64 0}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = !{!38, !38, i64 0}
!38 = !{!"vtable pointer", !12, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass