; LLVM IR from modlfo/AudioEngine :: AudioEngine/JuceLibraryCode/juce_audio_utils.ll (ZN4juce21MidiKeyboardComponent7resizedEv)

; 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::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::Point" = type { i32, i32 }
%"class.juce::MidiKeyboardComponent" = type { %"class.juce::Component.base", %"class.juce::MidiKeyboardStateListener", %"class.juce::ChangeBroadcaster", %"class.juce::Timer", ptr, float, i32, float, i32, i32, i32, float, [4 x i8], %"class.juce::Array.97", %"class.juce::Array.97", %"class.juce::BigInteger", %"class.juce::BigInteger", i8, i32, i32, float, i8, i8, i8, %"class.juce::ScopedPointer.164", %"class.juce::ScopedPointer.164", %"class.juce::Array.102", %"class.juce::Array.97", i32, i32 }
%"class.juce::Component.base" = 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 }>
%"class.juce::MouseListener" = type { ptr }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"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" }
%"class.juce::ReferenceCountedObjectPtr" = type { ptr }
%union.anon = type { i32 }
%"class.juce::MidiKeyboardStateListener" = type { ptr }
%"class.juce::ChangeBroadcaster" = type { ptr, %"class.juce::ChangeBroadcaster::ChangeBroadcasterCallback", %"class.juce::ListenerList.20" }
%"class.juce::ChangeBroadcaster::ChangeBroadcasterCallback" = type { %"class.juce::AsyncUpdater", ptr }
%"class.juce::AsyncUpdater" = type { ptr, %"class.juce::ReferenceCountedObjectPtr.19" }
%"class.juce::ReferenceCountedObjectPtr.19" = type { ptr }
%"class.juce::ListenerList.20" = type { %"class.juce::Array.21" }
%"class.juce::Array.21" = type { %"class.juce::ArrayAllocationBase.22", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.22" = type <{ %"class.juce::HeapBlock.23", i32, [4 x i8] }>
%"class.juce::HeapBlock.23" = type { ptr }
%"class.juce::Timer" = type { ptr, i32, i32, ptr, ptr }
%"class.juce::BigInteger" = type <{ %"class.juce::HeapBlock.34", [4 x i32], i64, i32, i8, [3 x i8] }>
%"class.juce::HeapBlock.34" = type { ptr }
%"class.juce::ScopedPointer.164" = type { ptr }
%"class.juce::Array.102" = type { %"class.juce::ArrayAllocationBase.103", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.103" = type <{ %"class.juce::HeapBlock.104", i32, [4 x i8] }>
%"class.juce::HeapBlock.104" = type { ptr }
%"class.juce::Array.97" = type { %"class.juce::ArrayAllocationBase.98", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.98" = type <{ %"class.juce::HeapBlock.99", i32, [4 x i8] }>
%"class.juce::HeapBlock.99" = type { ptr }

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

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197), ptr noundef nonnull align 4 dereferenceable(16)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce9RectangleIiE13removeFromTopEi(ptr dead_on_unwind noalias writable sret(%"class.juce::Rectangle") align 4, ptr noundef nonnull align 4 dereferenceable(16), i32 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef, i32 noundef) #2

declare void @_ZN4juce9Component7repaintEv(ptr noundef nonnull align 8 dereferenceable(197)) #1

declare void @_ZN4juce17ChangeBroadcaster17sendChangeMessageEv(ptr noundef nonnull align 8 dereferenceable(56)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4juce6jlimitIiEET_S1_S1_S1_(i32 noundef, i32 noundef, i32 noundef) #2

; Function Attrs: nounwind
declare void @_ZNK4juce9Component14getLocalBoundsEv(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4, ptr noundef nonnull align 8 dereferenceable(197)) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce21MidiKeyboardComponent9getKeyPosEiRiS1_(ptr noundef nonnull align 8 dereferenceable(560), i32 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK4juce21MidiKeyboardComponent16remappedXYToNoteENS_5PointIiEERf(ptr noundef nonnull align 8 dereferenceable(560), ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce21MidiKeyboardComponent7resizedEv(ptr noundef nonnull align 8 dereferenceable(560) %0) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.juce::Rectangle", align 4
  %11 = alloca %"class.juce::Rectangle", align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.juce::Rectangle", align 4
  %15 = alloca %"class.juce::Rectangle", align 4
  %16 = alloca %"class.juce::Rectangle", align 4
  %17 = alloca %"class.juce::Rectangle", align 4
  %18 = alloca %"class.juce::Rectangle", align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca float, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca %"class.juce::Point", align 4
  %25 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %26 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  %27 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %26) #6
  store i32 %27, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  %28 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %26) #6
  store i32 %28, ptr %4, align 4, !tbaa !9
  %29 = load i32, ptr %3, align 4, !tbaa !9
  %30 = icmp sgt i32 %29, 0
  br i1 %30, label %31, label %228

31:                                               ; preds = %1
  %32 = load i32, ptr %4, align 4, !tbaa !9
  %33 = icmp sgt i32 %32, 0
  br i1 %33, label %34, label %228

34:                                               ; preds = %31
  %35 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %26, i32 0, i32 8
  %36 = load i32, ptr %35, align 4, !tbaa !11
  %37 = icmp ne i32 %36, 0
  br i1 %37, label %38, label %39

38:                                               ; preds = %34
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4) #6
  br label %39

39:                                               ; preds = %38, %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %40 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %26, i32 0, i32 19
  %41 = load i32, ptr %40, align 8, !tbaa !61
  call void @_ZNK4juce21MidiKeyboardComponent9getKeyPosEiRiS1_(ptr noundef nonnull align 8 dereferenceable(560) %26, i32 noundef %41, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %42 = load i32, ptr %6, align 4, !tbaa !9
  %43 = load i32, ptr %5, align 4, !tbaa !9
  %44 = add nsw i32 %43, %42
  store i32 %44, ptr %5, align 4, !tbaa !9
  %45 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %26, i32 0, i32 20
  %46 = load float, ptr %45, align 4, !tbaa !62
  %47 = fptosi float %46 to i32
  %48 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %26, i32 0, i32 18
  %49 = load i32, ptr %48, align 4, !tbaa !63
  %50 = icmp ne i32 %47, %49
  br i1 %50, label %51, label %66

51:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %52 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %26, i32 0, i32 18
  %53 = load i32, ptr %52, align 4, !tbaa !63
  call void @_ZNK4juce21MidiKeyboardComponent9getKeyPosEiRiS1_(ptr noundef nonnull align 8 dereferenceable(560) %26, i32 noundef %53, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %54 = load i32, ptr %5, align 4, !tbaa !9
  %55 = load i32, ptr %7, align 4, !tbaa !9
  %56 = sub nsw i32 %54, %55
  %57 = load i32, ptr %3, align 4, !tbaa !9
  %58 = icmp sle i32 %56, %57
  br i1 %58, label %59, label %65

59:                                               ; preds = %51
  %60 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %26, i32 0, i32 18
  %61 = load i32, ptr %60, align 4, !tbaa !63
  %62 = sitofp i32 %61 to float
  %63 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %26, i32 0, i32 20
  store float %62, ptr %63, align 4, !tbaa !62
  %64 = getelementptr inbounds i8, ptr %26, i64 208
  call void @_ZN4juce17ChangeBroadcaster17sendChangeMessageEv(ptr noundef nonnull align 8 dereferenceable(56) %64)
  call void @_ZN4juce9Component7repaintEv(ptr noundef nonnull align 8 dereferenceable(197) %26)
  br label %65

65:                                               ; preds = %59, %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %66

66:                                               ; preds = %65, %39
  %67 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %26, i32 0, i32 24
  %68 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %67) #6
  %69 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %26, i32 0, i32 21
  %70 = load i8, ptr %69, align 8, !tbaa !64, !range !65, !noundef !66
  %71 = trunc i8 %70 to i1
  br i1 %71, label %72, label %79

72:                                               ; preds = %66
  %73 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %26, i32 0, i32 20
  %74 = load float, ptr %73, align 4, !tbaa !62
  %75 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %26, i32 0, i32 18
  %76 = load i32, ptr %75, align 4, !tbaa !63
  %77 = sitofp i32 %76 to float
  %78 = fcmp ogt float %74, %77
  br label %79

79:                                               ; preds = %72, %66
  %80 = phi i1 [ false, %66 ], [ %78, %72 ]
  %81 = load ptr, ptr %68, align 8, !tbaa !67
  %82 = getelementptr inbounds ptr, ptr %81, i64 11
  %83 = load ptr, ptr %82, align 8
  call void %83(ptr noundef nonnull align 8 dereferenceable(197) %68, i1 noundef zeroext %80)
  %84 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %26, i32 0, i32 6
  store i32 0, ptr %84, align 4, !tbaa !69
  %85 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %26, i32 0, i32 21
  %86 = load i8, ptr %85, align 8, !tbaa !64, !range !65, !noundef !66
  %87 = trunc i8 %86 to i1
  br i1 %87, label %88, label %206

88:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %89 = load i32, ptr %3, align 4, !tbaa !9
  %90 = sdiv i32 %89, 2
  %91 = call noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef 12, i32 noundef %90)
  store i32 %91, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #6
  call void @_ZNK4juce9Component14getLocalBoundsEv(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %10, ptr noundef nonnull align 8 dereferenceable(197) %26) #6
  %92 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %26, i32 0, i32 8
  %93 = load i32, ptr %92, align 4, !tbaa !11
  %94 = icmp eq i32 %93, 0
  br i1 %94, label %95, label %112

95:                                               ; preds = %88
  %96 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %26, i32 0, i32 24
  %97 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %96) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  %98 = load i32, ptr %9, align 4, !tbaa !9
  call void @_ZN4juce9RectangleIiE14removeFromLeftEi(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %11, ptr noundef nonnull align 4 dereferenceable(16) %10, i32 noundef %98) #6
  invoke void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197) %97, ptr noundef nonnull align 4 dereferenceable(16) %11)
          to label %99 unwind label %104

99:                                               ; preds = %95
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  %100 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %26, i32 0, i32 25
  %101 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %100) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #6
  %102 = load i32, ptr %9, align 4, !tbaa !9
  call void @_ZN4juce9RectangleIiE15removeFromRightEi(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %14, ptr noundef nonnull align 4 dereferenceable(16) %10, i32 noundef %102) #6
  invoke void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197) %101, ptr noundef nonnull align 4 dereferenceable(16) %14)
          to label %103 unwind label %108

103:                                              ; preds = %99
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #6
  br label %151

104:                                              ; preds = %95
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %12, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %13, align 4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  br label %205

108:                                              ; preds = %99
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %12, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %13, align 4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #6
  br label %205

112:                                              ; preds = %88
  %113 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %26, i32 0, i32 8
  %114 = load i32, ptr %113, align 4, !tbaa !11
  %115 = icmp eq i32 %114, 1
  br i1 %115, label %116, label %133

116:                                              ; preds = %112
  %117 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %26, i32 0, i32 24
  %118 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %117) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
  %119 = load i32, ptr %9, align 4, !tbaa !9
  call void @_ZN4juce9RectangleIiE13removeFromTopEi(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %15, ptr noundef nonnull align 4 dereferenceable(16) %10, i32 noundef %119) #6
  invoke void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197) %118, ptr noundef nonnull align 4 dereferenceable(16) %15)
          to label %120 unwind label %125

120:                                              ; preds = %116
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %15) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  %121 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %26, i32 0, i32 25
  %122 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %121) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #6
  %123 = load i32, ptr %9, align 4, !tbaa !9
  call void @_ZN4juce9RectangleIiE16removeFromBottomEi(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %16, ptr noundef nonnull align 4 dereferenceable(16) %10, i32 noundef %123) #6
  invoke void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197) %122, ptr noundef nonnull align 4 dereferenceable(16) %16)
          to label %124 unwind label %129

124:                                              ; preds = %120
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %16) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  br label %150

125:                                              ; preds = %116
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %12, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %13, align 4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %15) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  br label %205

129:                                              ; preds = %120
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %12, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %13, align 4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %16) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  br label %205

133:                                              ; preds = %112
  %134 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %26, i32 0, i32 24
  %135 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %134) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #6
  %136 = load i32, ptr %9, align 4, !tbaa !9
  call void @_ZN4juce9RectangleIiE16removeFromBottomEi(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %17, ptr noundef nonnull align 4 dereferenceable(16) %10, i32 noundef %136) #6
  invoke void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197) %135, ptr noundef nonnull align 4 dereferenceable(16) %17)
          to label %137 unwind label %142

137:                                              ; preds = %133
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  %138 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %26, i32 0, i32 25
  %139 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %138) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #6
  %140 = load i32, ptr %9, align 4, !tbaa !9
  call void @_ZN4juce9RectangleIiE13removeFromTopEi(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %18, ptr noundef nonnull align 4 dereferenceable(16) %10, i32 noundef %140) #6
  invoke void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197) %139, ptr noundef nonnull align 4 dereferenceable(16) %18)
          to label %141 unwind label %146

141:                                              ; preds = %137
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  br label %150

142:                                              ; preds = %133
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %12, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %13, align 4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  br label %205

146:                                              ; preds = %137
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %12, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %13, align 4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  br label %205

150:                                              ; preds = %141, %124
  br label %151

151:                                              ; preds = %150, %103
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %152 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %26, i32 0, i32 19
  %153 = load i32, ptr %152, align 8, !tbaa !61
  invoke void @_ZNK4juce21MidiKeyboardComponent9getKeyPosEiRiS1_(ptr noundef nonnull align 8 dereferenceable(560) %26, i32 noundef %153, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %154 unwind label %184

154:                                              ; preds = %151
  %155 = load i32, ptr %20, align 4, !tbaa !9
  %156 = load i32, ptr %19, align 4, !tbaa !9
  %157 = add nsw i32 %156, %155
  store i32 %157, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %158 = load i32, ptr %3, align 4, !tbaa !9
  store i32 %158, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %159 = load i32, ptr %19, align 4, !tbaa !9
  %160 = load i32, ptr %22, align 4, !tbaa !9
  %161 = sub nsw i32 %159, %160
  call void @_ZN4juce5PointIiEC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %24, i32 noundef %161, i32 noundef 0) #6
  %162 = invoke noundef i32 @_ZNK4juce21MidiKeyboardComponent16remappedXYToNoteENS_5PointIiEERf(ptr noundef nonnull align 8 dereferenceable(560) %26, ptr noundef %24, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %163 unwind label %188

163:                                              ; preds = %154
  %164 = add nsw i32 %162, 1
  store i32 %164, ptr %23, align 4, !tbaa !9
  %165 = load i32, ptr %23, align 4, !tbaa !9
  %166 = icmp sge i32 %165, 0
  br i1 %166, label %167, label %192

167:                                              ; preds = %163
  %168 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %26, i32 0, i32 20
  %169 = load float, ptr %168, align 4, !tbaa !62
  %170 = fptosi float %169 to i32
  %171 = load i32, ptr %23, align 4, !tbaa !9
  %172 = icmp sgt i32 %170, %171
  br i1 %172, label %173, label %192

173:                                              ; preds = %167
  %174 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %26, i32 0, i32 18
  %175 = load i32, ptr %174, align 4, !tbaa !63
  %176 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %26, i32 0, i32 19
  %177 = load i32, ptr %176, align 8, !tbaa !61
  %178 = load i32, ptr %23, align 4, !tbaa !9
  %179 = call noundef i32 @_ZN4juce6jlimitIiEET_S1_S1_S1_(i32 noundef %175, i32 noundef %177, i32 noundef %178) #6
  %180 = sitofp i32 %179 to float
  %181 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %26, i32 0, i32 20
  store float %180, ptr %181, align 4, !tbaa !62
  %182 = getelementptr inbounds i8, ptr %26, i64 208
  invoke void @_ZN4juce17ChangeBroadcaster17sendChangeMessageEv(ptr noundef nonnull align 8 dereferenceable(56) %182)
          to label %183 unwind label %188

183:                                              ; preds = %173
  br label %192

184:                                              ; preds = %151
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %12, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %13, align 4
  br label %204

188:                                              ; preds = %173, %154
  %189 = landingpad { ptr, i32 }
          cleanup
  %190 = extractvalue { ptr, i32 } %189, 0
  store ptr %190, ptr %12, align 8
  %191 = extractvalue { ptr, i32 } %189, 1
  store i32 %191, ptr %13, align 4
  br label %203

192:                                              ; preds = %183, %167, %163
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  store i32 0, ptr %25, align 4, !tbaa !9
  %193 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %26, i32 0, i32 20
  %194 = load float, ptr %193, align 4, !tbaa !62
  %195 = fptosi float %194 to i32
  invoke void @_ZNK4juce21MidiKeyboardComponent9getKeyPosEiRiS1_(ptr noundef nonnull align 8 dereferenceable(560) %26, i32 noundef %195, ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %196 unwind label %199

196:                                              ; preds = %192
  %197 = load i32, ptr %25, align 4, !tbaa !9
  %198 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %26, i32 0, i32 6
  store i32 %197, ptr %198, align 4, !tbaa !69
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %211

199:                                              ; preds = %192
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %12, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %203

203:                                              ; preds = %199, %188
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %204

204:                                              ; preds = %203, %184
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %205

205:                                              ; preds = %204, %146, %142, %129, %125, %108, %104
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %229

206:                                              ; preds = %79
  %207 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %26, i32 0, i32 18
  %208 = load i32, ptr %207, align 4, !tbaa !63
  %209 = sitofp i32 %208 to float
  %210 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %26, i32 0, i32 20
  store float %209, ptr %210, align 4, !tbaa !62
  br label %211

211:                                              ; preds = %206, %196
  %212 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %26, i32 0, i32 19
  %213 = load i32, ptr %212, align 8, !tbaa !61
  call void @_ZNK4juce21MidiKeyboardComponent9getKeyPosEiRiS1_(ptr noundef nonnull align 8 dereferenceable(560) %26, i32 noundef %213, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %214 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %26, i32 0, i32 25
  %215 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %214) #6
  %216 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %26, i32 0, i32 21
  %217 = load i8, ptr %216, align 8, !tbaa !64, !range !65, !noundef !66
  %218 = trunc i8 %217 to i1
  br i1 %218, label %219, label %223

219:                                              ; preds = %211
  %220 = load i32, ptr %5, align 4, !tbaa !9
  %221 = load i32, ptr %3, align 4, !tbaa !9
  %222 = icmp sgt i32 %220, %221
  br label %223

223:                                              ; preds = %219, %211
  %224 = phi i1 [ false, %211 ], [ %222, %219 ]
  %225 = load ptr, ptr %215, align 8, !tbaa !67
  %226 = getelementptr inbounds ptr, ptr %225, i64 11
  %227 = load ptr, ptr %226, align 8
  call void %227(ptr noundef nonnull align 8 dereferenceable(197) %215, i1 noundef zeroext %224)
  call void @_ZN4juce9Component7repaintEv(ptr noundef nonnull align 8 dereferenceable(197) %26)
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %228

228:                                              ; preds = %223, %31, %1
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  ret void

229:                                              ; preds = %205
  %230 = load ptr, ptr %12, align 8
  %231 = load i32, ptr %13, align 4
  %232 = insertvalue { ptr, i32 } poison, ptr %230, 0
  %233 = insertvalue { ptr, i32 } %232, i32 %231, 1
  resume { ptr, i32 } %233
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce9RectangleIiE14removeFromLeftEi(ptr dead_on_unwind noalias writable sret(%"class.juce::Rectangle") align 4, ptr noundef nonnull align 4 dereferenceable(16), i32 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce9RectangleIiE15removeFromRightEi(ptr dead_on_unwind noalias writable sret(%"class.juce::Rectangle") align 4, ptr noundef nonnull align 4 dereferenceable(16), i32 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce9RectangleIiE16removeFromBottomEi(ptr dead_on_unwind noalias writable sret(%"class.juce::Rectangle") align 4, ptr noundef nonnull align 4 dereferenceable(16), i32 noundef) #2 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !49, i64 316}
!12 = !{!"_ZTSN4juce21MidiKeyboardComponentE", !13, i64 0, !38, i64 200, !39, i64 208, !47, i64 264, !6, i64 296, !48, i64 304, !10, i64 308, !48, i64 312, !49, i64 316, !10, i64 320, !10, i64 324, !48, i64 328, !50, i64 336, !50, i64 360, !53, i64 384, !53, i64 424, !56, i64 464, !10, i64 468, !10, i64 472, !48, i64 476, !56, i64 480, !56, i64 481, !56, i64 482, !57, i64 488, !57, i64 496, !58, i64 504, !50, i64 528, !10, i64 552, !10, i64 556}
!13 = !{!"_ZTSN4juce9ComponentE", !14, i64 0, !15, i64 8, !15, i64 16, !6, i64 24, !17, i64 32, !19, i64 48, !20, i64 56, !21, i64 64, !6, i64 88, !24, i64 96, !6, i64 104, !25, i64 112, !26, i64 120, !27, i64 128, !28, i64 136, !32, i64 160, !36, 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, !10, i64 8, !10, i64 12}
!18 = !{!"_ZTSN4juce5PointIiEE", !10, i64 0, !10, i64 4}
!19 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !6, i64 0}
!20 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !6, i64 0}
!21 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !22, i64 0, !10, i64 16}
!22 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !23, i64 0, !10, i64 8}
!23 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !6, i64 0}
!24 = !{!"_ZTSN4juce11MouseCursorE", !6, i64 0}
!25 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !6, i64 0}
!26 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !6, i64 0}
!27 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !6, i64 0}
!28 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !29, i64 0}
!29 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !30, i64 0, !10, i64 16}
!30 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !31, i64 0, !10, i64 8}
!31 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !6, i64 0}
!32 = !{!"_ZTSN4juce13NamedValueSetE", !33, i64 0}
!33 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !34, i64 0, !10, i64 16}
!34 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !35, i64 0, !10, i64 8}
!35 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !6, i64 0}
!36 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !37, i64 0}
!37 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !6, i64 0}
!38 = !{!"_ZTSN4juce25MidiKeyboardStateListenerE"}
!39 = !{!"_ZTSN4juce17ChangeBroadcasterE", !40, i64 8, !43, i64 32}
!40 = !{!"_ZTSN4juce17ChangeBroadcaster25ChangeBroadcasterCallbackE", !41, i64 0, !6, i64 16}
!41 = !{!"_ZTSN4juce12AsyncUpdaterE", !42, i64 8}
!42 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_12AsyncUpdater19AsyncUpdaterMessageEEE", !6, i64 0}
!43 = !{!"_ZTSN4juce12ListenerListINS_14ChangeListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !44, i64 0}
!44 = !{!"_ZTSN4juce5ArrayIPNS_14ChangeListenerENS_20DummyCriticalSectionELi0EEE", !45, i64 0, !10, i64 16}
!45 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_14ChangeListenerENS_20DummyCriticalSectionEEE", !46, i64 0, !10, i64 8}
!46 = !{!"_ZTSN4juce9HeapBlockIPNS_14ChangeListenerELb0EEE", !6, i64 0}
!47 = !{!"_ZTSN4juce5TimerE", !10, i64 8, !10, i64 12, !6, i64 16, !6, i64 24}
!48 = !{!"float", !7, i64 0}
!49 = !{!"_ZTSN4juce21MidiKeyboardComponent11OrientationE", !7, i64 0}
!50 = !{!"_ZTSN4juce5ArrayIiNS_20DummyCriticalSectionELi0EEE", !51, i64 0, !10, i64 16}
!51 = !{!"_ZTSN4juce19ArrayAllocationBaseIiNS_20DummyCriticalSectionEEE", !52, i64 0, !10, i64 8}
!52 = !{!"_ZTSN4juce9HeapBlockIiLb0EEE", !6, i64 0}
!53 = !{!"_ZTSN4juce10BigIntegerE", !54, i64 0, !7, i64 8, !55, i64 24, !10, i64 32, !56, i64 36}
!54 = !{!"_ZTSN4juce9HeapBlockIjLb0EEE", !6, i64 0}
!55 = !{!"long", !7, i64 0}
!56 = !{!"bool", !7, i64 0}
!57 = !{!"_ZTSN4juce13ScopedPointerINS_6ButtonEEE", !6, i64 0}
!58 = !{!"_ZTSN4juce5ArrayINS_8KeyPressENS_20DummyCriticalSectionELi0EEE", !59, i64 0, !10, i64 16}
!59 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_8KeyPressENS_20DummyCriticalSectionEEE", !60, i64 0, !10, i64 8}
!60 = !{!"_ZTSN4juce9HeapBlockINS_8KeyPressELb0EEE", !6, i64 0}
!61 = !{!12, !10, i64 472}
!62 = !{!12, !48, i64 476}
!63 = !{!12, !10, i64 468}
!64 = !{!12, !56, i64 480}
!65 = !{i8 0, i8 2}
!66 = !{}
!67 = !{!68, !68, i64 0}
!68 = !{!"vtable pointer", !8, i64 0}
!69 = !{!12, !10, i64 308}


; 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::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::Point" = type { i32, i32 }

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

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef, i32 noundef) local_unnamed_addr #2

declare void @_ZN4juce9Component7repaintEv(ptr noundef nonnull align 8 dereferenceable(197)) local_unnamed_addr #1

declare void @_ZN4juce17ChangeBroadcaster17sendChangeMessageEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4juce6jlimitIiEET_S1_S1_S1_(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare void @_ZNK4juce9Component14getLocalBoundsEv(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4, ptr noundef nonnull align 8 dereferenceable(197)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce21MidiKeyboardComponent9getKeyPosEiRiS1_(ptr noundef nonnull align 8 dereferenceable(560), i32 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK4juce21MidiKeyboardComponent16remappedXYToNoteENS_5PointIiEERf(ptr noundef nonnull align 8 dereferenceable(560), ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce21MidiKeyboardComponent7resizedEv(ptr noundef nonnull align 8 dereferenceable(560) %0) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"class.juce::Rectangle", align 4
  %9 = alloca %"class.juce::Rectangle", align 4
  %10 = alloca %"class.juce::Rectangle", align 4
  %11 = alloca %"class.juce::Rectangle", align 4
  %12 = alloca %"class.juce::Rectangle", align 4
  %13 = alloca %"class.juce::Rectangle", align 4
  %14 = alloca %"class.juce::Rectangle", align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca float, align 4
  %18 = alloca %"class.juce::Point", align 4
  %19 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  %20 = tail call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %0) #6
  store i32 %20, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  %21 = tail call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %0) #6
  store i32 %21, ptr %3, align 4, !tbaa !5
  %22 = icmp sgt i32 %20, 0
  %23 = icmp sgt i32 %21, 0
  %or.cond = and i1 %23, %22
  br i1 %or.cond, label %24, label %149

24:                                               ; preds = %1
  %25 = getelementptr inbounds i8, ptr %0, i64 316
  %26 = load i32, ptr %25, align 4, !tbaa !9
  %.not = icmp eq i32 %26, 0
  br i1 %.not, label %28, label %27

27:                                               ; preds = %24
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3) #6
  br label %28

28:                                               ; preds = %27, %24
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  %29 = getelementptr inbounds i8, ptr %0, i64 472
  %30 = load i32, ptr %29, align 8, !tbaa !60
  call void @_ZNK4juce21MidiKeyboardComponent9getKeyPosEiRiS1_(ptr noundef nonnull align 8 dereferenceable(560) %0, i32 noundef %30, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %31 = load i32, ptr %5, align 4, !tbaa !5
  %32 = load i32, ptr %4, align 4, !tbaa !5
  %33 = add nsw i32 %32, %31
  store i32 %33, ptr %4, align 4, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %0, i64 476
  %35 = load float, ptr %34, align 4, !tbaa !61
  %36 = fptosi float %35 to i32
  %37 = getelementptr inbounds i8, ptr %0, i64 468
  %38 = load i32, ptr %37, align 4, !tbaa !62
  %.not18 = icmp eq i32 %38, %36
  br i1 %.not18, label %49, label %39

39:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  call void @_ZNK4juce21MidiKeyboardComponent9getKeyPosEiRiS1_(ptr noundef nonnull align 8 dereferenceable(560) %0, i32 noundef %38, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %40 = load i32, ptr %4, align 4, !tbaa !5
  %41 = load i32, ptr %6, align 4, !tbaa !5
  %42 = sub nsw i32 %40, %41
  %43 = load i32, ptr %2, align 4, !tbaa !5
  %.not19 = icmp sgt i32 %42, %43
  br i1 %.not19, label %48, label %44

44:                                               ; preds = %39
  %45 = load i32, ptr %37, align 4, !tbaa !62
  %46 = sitofp i32 %45 to float
  store float %46, ptr %34, align 4, !tbaa !61
  %47 = getelementptr inbounds i8, ptr %0, i64 208
  call void @_ZN4juce17ChangeBroadcaster17sendChangeMessageEv(ptr noundef nonnull align 8 dereferenceable(56) %47)
  call void @_ZN4juce9Component7repaintEv(ptr noundef nonnull align 8 dereferenceable(197) %0)
  br label %48

48:                                               ; preds = %44, %39
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  br label %49

49:                                               ; preds = %48, %28
  %50 = getelementptr inbounds i8, ptr %0, i64 488
  %51 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %50) #6
  %52 = getelementptr inbounds i8, ptr %0, i64 480
  %53 = load i8, ptr %52, align 8, !tbaa !63, !range !64, !noundef !65
  %54 = trunc nuw i8 %53 to i1
  %55 = load float, ptr %34, align 4
  %56 = load i32, ptr %37, align 4
  %57 = sitofp i32 %56 to float
  %58 = fcmp ogt float %55, %57
  %59 = select i1 %54, i1 %58, i1 false
  %60 = load ptr, ptr %51, align 8, !tbaa !66
  %61 = getelementptr inbounds i8, ptr %60, i64 88
  %62 = load ptr, ptr %61, align 8
  call void %62(ptr noundef nonnull align 8 dereferenceable(197) %51, i1 noundef zeroext %59)
  %63 = getelementptr inbounds i8, ptr %0, i64 308
  store i32 0, ptr %63, align 4, !tbaa !68
  %64 = load i8, ptr %52, align 8, !tbaa !63, !range !64, !noundef !65
  %65 = trunc nuw i8 %64 to i1
  br i1 %65, label %66, label %133

66:                                               ; preds = %49
  %67 = load i32, ptr %2, align 4, !tbaa !5
  %68 = sdiv i32 %67, 2
  %69 = call noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef 12, i32 noundef %68)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  call void @_ZNK4juce9Component14getLocalBoundsEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %8, ptr noundef nonnull align 8 dereferenceable(197) %0) #6
  %70 = load i32, ptr %25, align 4, !tbaa !9
  %71 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %50) #6
  switch i32 %70, label %90 [
    i32 0, label %72
    i32 1, label %81
  ]

72:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  call void @_ZN4juce9RectangleIiE14removeFromLeftEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %9, ptr noundef nonnull align 4 dereferenceable(16) %8, i32 noundef %69) #6
  invoke void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197) %71, ptr noundef nonnull align 4 dereferenceable(16) %9)
          to label %73 unwind label %77

73:                                               ; preds = %72
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  %74 = getelementptr inbounds i8, ptr %0, i64 496
  %75 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %74) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #6
  call void @_ZN4juce9RectangleIiE15removeFromRightEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %10, ptr noundef nonnull align 4 dereferenceable(16) %8, i32 noundef %69) #6
  invoke void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197) %75, ptr noundef nonnull align 4 dereferenceable(16) %10)
          to label %76 unwind label %79

76:                                               ; preds = %73
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  br label %99

77:                                               ; preds = %72
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  br label %132

79:                                               ; preds = %73
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  br label %132

81:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  call void @_ZN4juce9RectangleIiE13removeFromTopEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %11, ptr noundef nonnull align 4 dereferenceable(16) %8, i32 noundef %69) #6
  invoke void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197) %71, ptr noundef nonnull align 4 dereferenceable(16) %11)
          to label %82 unwind label %86

82:                                               ; preds = %81
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  %83 = getelementptr inbounds i8, ptr %0, i64 496
  %84 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %83) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #6
  call void @_ZN4juce9RectangleIiE16removeFromBottomEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %12, ptr noundef nonnull align 4 dereferenceable(16) %8, i32 noundef %69) #6
  invoke void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197) %84, ptr noundef nonnull align 4 dereferenceable(16) %12)
          to label %85 unwind label %88

85:                                               ; preds = %82
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  br label %99

86:                                               ; preds = %81
  %87 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  br label %132

88:                                               ; preds = %82
  %89 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  br label %132

90:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #6
  call void @_ZN4juce9RectangleIiE16removeFromBottomEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %13, ptr noundef nonnull align 4 dereferenceable(16) %8, i32 noundef %69) #6
  invoke void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197) %71, ptr noundef nonnull align 4 dereferenceable(16) %13)
          to label %91 unwind label %95

91:                                               ; preds = %90
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  %92 = getelementptr inbounds i8, ptr %0, i64 496
  %93 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %92) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #6
  call void @_ZN4juce9RectangleIiE13removeFromTopEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %14, ptr noundef nonnull align 4 dereferenceable(16) %8, i32 noundef %69) #6
  invoke void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197) %93, ptr noundef nonnull align 4 dereferenceable(16) %14)
          to label %94 unwind label %97

94:                                               ; preds = %91
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  br label %99

95:                                               ; preds = %90
  %96 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  br label %132

97:                                               ; preds = %91
  %98 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  br label %132

99:                                               ; preds = %85, %94, %76
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #6
  %100 = load i32, ptr %29, align 8, !tbaa !60
  invoke void @_ZNK4juce21MidiKeyboardComponent9getKeyPosEiRiS1_(ptr noundef nonnull align 8 dereferenceable(560) %0, i32 noundef %100, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %101 unwind label %119

101:                                              ; preds = %99
  %102 = load i32, ptr %16, align 4, !tbaa !5
  %103 = load i32, ptr %15, align 4, !tbaa !5
  %104 = add nsw i32 %103, %102
  store i32 %104, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #6
  %105 = load i32, ptr %2, align 4, !tbaa !5
  %106 = sub nsw i32 %104, %105
  call void @_ZN4juce5PointIiEC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %18, i32 noundef %106, i32 noundef 0) #6
  %107 = invoke noundef i32 @_ZNK4juce21MidiKeyboardComponent16remappedXYToNoteENS_5PointIiEERf(ptr noundef nonnull align 8 dereferenceable(560) %0, ptr noundef nonnull %18, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %108 unwind label %121

108:                                              ; preds = %101
  %109 = add nsw i32 %107, 1
  %110 = icmp sgt i32 %107, -2
  %.pre23 = load float, ptr %34, align 4, !tbaa !61
  %111 = fptosi float %.pre23 to i32
  %112 = icmp slt i32 %109, %111
  %or.cond25 = select i1 %110, i1 %112, i1 false
  br i1 %or.cond25, label %113, label %123

113:                                              ; preds = %108
  %114 = load i32, ptr %37, align 4, !tbaa !62
  %115 = load i32, ptr %29, align 8, !tbaa !60
  %116 = call noundef i32 @_ZN4juce6jlimitIiEET_S1_S1_S1_(i32 noundef %114, i32 noundef %115, i32 noundef %109) #6
  %117 = sitofp i32 %116 to float
  store float %117, ptr %34, align 4, !tbaa !61
  %118 = getelementptr inbounds i8, ptr %0, i64 208
  invoke void @_ZN4juce17ChangeBroadcaster17sendChangeMessageEv(ptr noundef nonnull align 8 dereferenceable(56) %118)
          to label %._crit_edge unwind label %121

._crit_edge:                                      ; preds = %113
  %.pre = load float, ptr %34, align 4, !tbaa !61
  br label %123

119:                                              ; preds = %99
  %120 = landingpad { ptr, i32 }
          cleanup
  br label %131

121:                                              ; preds = %113, %101
  %122 = landingpad { ptr, i32 }
          cleanup
  br label %130

123:                                              ; preds = %._crit_edge, %108
  %124 = phi float [ %.pre, %._crit_edge ], [ %.pre23, %108 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #6
  store i32 0, ptr %19, align 4, !tbaa !5
  %125 = fptosi float %124 to i32
  invoke void @_ZNK4juce21MidiKeyboardComponent9getKeyPosEiRiS1_(ptr noundef nonnull align 8 dereferenceable(560) %0, i32 noundef %125, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %126 unwind label %128

126:                                              ; preds = %123
  %127 = load i32, ptr %19, align 4, !tbaa !5
  store i32 %127, ptr %63, align 4, !tbaa !68
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #6
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  br label %136

128:                                              ; preds = %123
  %129 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #6
  br label %130

130:                                              ; preds = %128, %121
  %.pn = phi { ptr, i32 } [ %129, %128 ], [ %122, %121 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #6
  br label %131

131:                                              ; preds = %130, %119
  %.pn.pn = phi { ptr, i32 } [ %.pn, %130 ], [ %120, %119 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #6
  br label %132

132:                                              ; preds = %131, %97, %95, %88, %86, %79, %77
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %131 ], [ %80, %79 ], [ %78, %77 ], [ %89, %88 ], [ %87, %86 ], [ %98, %97 ], [ %96, %95 ]
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  resume { ptr, i32 } %.pn.pn.pn

133:                                              ; preds = %49
  %134 = load i32, ptr %37, align 4, !tbaa !62
  %135 = sitofp i32 %134 to float
  store float %135, ptr %34, align 4, !tbaa !61
  br label %136

136:                                              ; preds = %133, %126
  %137 = load i32, ptr %29, align 8, !tbaa !60
  call void @_ZNK4juce21MidiKeyboardComponent9getKeyPosEiRiS1_(ptr noundef nonnull align 8 dereferenceable(560) %0, i32 noundef %137, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %138 = getelementptr inbounds i8, ptr %0, i64 496
  %139 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %138) #6
  %140 = load i8, ptr %52, align 8, !tbaa !63, !range !64, !noundef !65
  %141 = trunc nuw i8 %140 to i1
  %142 = load i32, ptr %4, align 4
  %143 = load i32, ptr %2, align 4
  %144 = icmp sgt i32 %142, %143
  %145 = select i1 %141, i1 %144, i1 false
  %146 = load ptr, ptr %139, align 8, !tbaa !66
  %147 = getelementptr inbounds i8, ptr %146, i64 88
  %148 = load ptr, ptr %147, align 8
  call void %148(ptr noundef nonnull align 8 dereferenceable(197) %139, i1 noundef zeroext %145)
  call void @_ZN4juce9Component7repaintEv(ptr noundef nonnull align 8 dereferenceable(197) %0)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  br label %149

149:                                              ; preds = %136, %1
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  ret void
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5 align 2

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !48, i64 316}
!10 = !{!"_ZTSN4juce21MidiKeyboardComponentE", !11, i64 0, !37, i64 200, !38, i64 208, !46, i64 264, !15, i64 296, !47, i64 304, !6, i64 308, !47, i64 312, !48, i64 316, !6, i64 320, !6, i64 324, !47, i64 328, !49, i64 336, !49, i64 360, !52, i64 384, !52, i64 424, !55, i64 464, !6, i64 468, !6, i64 472, !47, i64 476, !55, i64 480, !55, i64 481, !55, i64 482, !56, i64 488, !56, i64 496, !57, i64 504, !49, i64 528, !6, i64 552, !6, i64 556}
!11 = !{!"_ZTSN4juce9ComponentE", !12, i64 0, !13, i64 8, !13, i64 16, !15, i64 24, !16, i64 32, !18, i64 48, !19, i64 56, !20, i64 64, !15, i64 88, !23, i64 96, !15, i64 104, !24, i64 112, !25, i64 120, !26, i64 128, !27, i64 136, !31, i64 160, !35, i64 184, !7, i64 192, !7, i64 196}
!12 = !{!"_ZTSN4juce13MouseListenerE"}
!13 = !{!"_ZTSN4juce6StringE", !14, i64 0}
!14 = !{!"_ZTSN4juce16CharPointer_UTF8E", !15, i64 0}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!"_ZTSN4juce9RectangleIiEE", !17, i64 0, !6, i64 8, !6, i64 12}
!17 = !{!"_ZTSN4juce5PointIiEE", !6, i64 0, !6, i64 4}
!18 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !15, i64 0}
!19 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !15, i64 0}
!20 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !21, i64 0, !6, i64 16}
!21 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !22, i64 0, !6, i64 8}
!22 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !15, i64 0}
!23 = !{!"_ZTSN4juce11MouseCursorE", !15, i64 0}
!24 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !15, i64 0}
!25 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !15, i64 0}
!26 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !15, i64 0}
!27 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !28, i64 0}
!28 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !29, i64 0, !6, i64 16}
!29 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !30, i64 0, !6, i64 8}
!30 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !15, i64 0}
!31 = !{!"_ZTSN4juce13NamedValueSetE", !32, i64 0}
!32 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !33, i64 0, !6, i64 16}
!33 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !34, i64 0, !6, i64 8}
!34 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !15, i64 0}
!35 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !36, i64 0}
!36 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !15, i64 0}
!37 = !{!"_ZTSN4juce25MidiKeyboardStateListenerE"}
!38 = !{!"_ZTSN4juce17ChangeBroadcasterE", !39, i64 8, !42, i64 32}
!39 = !{!"_ZTSN4juce17ChangeBroadcaster25ChangeBroadcasterCallbackE", !40, i64 0, !15, i64 16}
!40 = !{!"_ZTSN4juce12AsyncUpdaterE", !41, i64 8}
!41 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_12AsyncUpdater19AsyncUpdaterMessageEEE", !15, i64 0}
!42 = !{!"_ZTSN4juce12ListenerListINS_14ChangeListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !43, i64 0}
!43 = !{!"_ZTSN4juce5ArrayIPNS_14ChangeListenerENS_20DummyCriticalSectionELi0EEE", !44, i64 0, !6, i64 16}
!44 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_14ChangeListenerENS_20DummyCriticalSectionEEE", !45, i64 0, !6, i64 8}
!45 = !{!"_ZTSN4juce9HeapBlockIPNS_14ChangeListenerELb0EEE", !15, i64 0}
!46 = !{!"_ZTSN4juce5TimerE", !6, i64 8, !6, i64 12, !15, i64 16, !15, i64 24}
!47 = !{!"float", !7, i64 0}
!48 = !{!"_ZTSN4juce21MidiKeyboardComponent11OrientationE", !7, i64 0}
!49 = !{!"_ZTSN4juce5ArrayIiNS_20DummyCriticalSectionELi0EEE", !50, i64 0, !6, i64 16}
!50 = !{!"_ZTSN4juce19ArrayAllocationBaseIiNS_20DummyCriticalSectionEEE", !51, i64 0, !6, i64 8}
!51 = !{!"_ZTSN4juce9HeapBlockIiLb0EEE", !15, i64 0}
!52 = !{!"_ZTSN4juce10BigIntegerE", !53, i64 0, !7, i64 8, !54, i64 24, !6, i64 32, !55, i64 36}
!53 = !{!"_ZTSN4juce9HeapBlockIjLb0EEE", !15, i64 0}
!54 = !{!"long", !7, i64 0}
!55 = !{!"bool", !7, i64 0}
!56 = !{!"_ZTSN4juce13ScopedPointerINS_6ButtonEEE", !15, i64 0}
!57 = !{!"_ZTSN4juce5ArrayINS_8KeyPressENS_20DummyCriticalSectionELi0EEE", !58, i64 0, !6, i64 16}
!58 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_8KeyPressENS_20DummyCriticalSectionEEE", !59, i64 0, !6, i64 8}
!59 = !{!"_ZTSN4juce9HeapBlockINS_8KeyPressELb0EEE", !15, i64 0}
!60 = !{!10, !6, i64 472}
!61 = !{!10, !47, i64 476}
!62 = !{!10, !6, i64 468}
!63 = !{!10, !55, i64 480}
!64 = !{i8 0, i8 2}
!65 = !{}
!66 = !{!67, !67, i64 0}
!67 = !{!"vtable pointer", !8, i64 0}
!68 = !{!10, !6, i64 308}


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