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

; 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::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::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" }
%"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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce21MidiKeyboardComponent17resetAnyKeysInUseEv(ptr noundef nonnull align 8 dereferenceable(560) %0) #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %6 = load ptr, ptr %2, align 8
  %7 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %6, i32 0, i32 15
  %8 = call noundef zeroext i1 @_ZNK4juce10BigInteger6isZeroEv(ptr noundef nonnull align 8 dereferenceable(37) %7) #5
  br i1 %8, label %28, label %9

9:                                                ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 128, ptr %3, align 4, !tbaa !9
  br label %10

10:                                               ; preds = %25, %9
  %11 = load i32, ptr %3, align 4, !tbaa !9
  %12 = add nsw i32 %11, -1
  store i32 %12, ptr %3, align 4, !tbaa !9
  %13 = icmp sge i32 %12, 0
  br i1 %13, label %15, label %14

14:                                               ; preds = %10
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %26

15:                                               ; preds = %10
  %16 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %6, i32 0, i32 15
  %17 = load i32, ptr %3, align 4, !tbaa !9
  %18 = call noundef zeroext i1 @_ZNK4juce10BigIntegerixEi(ptr noundef nonnull align 8 dereferenceable(37) %16, i32 noundef %17) #5
  br i1 %18, label %19, label %25

19:                                               ; preds = %15
  %20 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %6, i32 0, i32 4
  %21 = load ptr, ptr %20, align 8, !tbaa !11
  %22 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %6, i32 0, i32 9
  %23 = load i32, ptr %22, align 8, !tbaa !61
  %24 = load i32, ptr %3, align 4, !tbaa !9
  call void @_ZN4juce17MidiKeyboardState7noteOffEiif(ptr noundef nonnull align 8 dereferenceable(344) %21, i32 noundef %23, i32 noundef %24, float noundef 0.000000e+00)
  br label %25

25:                                               ; preds = %19, %15
  br label %10, !llvm.loop !62

26:                                               ; preds = %14
  %27 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %6, i32 0, i32 15
  call void @_ZN4juce10BigInteger5clearEv(ptr noundef nonnull align 8 dereferenceable(37) %27) #5
  br label %28

28:                                               ; preds = %26, %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  %29 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %6, i32 0, i32 14
  %30 = call noundef i32 @_ZNK4juce5ArrayIiNS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %29) #5
  store i32 %30, ptr %4, align 4, !tbaa !9
  br label %31

31:                                               ; preds = %50, %28
  %32 = load i32, ptr %4, align 4, !tbaa !9
  %33 = add nsw i32 %32, -1
  store i32 %33, ptr %4, align 4, !tbaa !9
  %34 = icmp sge i32 %33, 0
  br i1 %34, label %36, label %35

35:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %53

36:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %37 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %6, i32 0, i32 14
  %38 = load i32, ptr %4, align 4, !tbaa !9
  %39 = call noundef i32 @_ZNK4juce5ArrayIiNS_20DummyCriticalSectionELi0EE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %37, i32 noundef %38)
  store i32 %39, ptr %5, align 4, !tbaa !9
  %40 = load i32, ptr %5, align 4, !tbaa !9
  %41 = icmp sge i32 %40, 0
  br i1 %41, label %42, label %50

42:                                               ; preds = %36
  %43 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %6, i32 0, i32 4
  %44 = load ptr, ptr %43, align 8, !tbaa !11
  %45 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %6, i32 0, i32 9
  %46 = load i32, ptr %45, align 8, !tbaa !61
  %47 = load i32, ptr %5, align 4, !tbaa !9
  call void @_ZN4juce17MidiKeyboardState7noteOffEiif(ptr noundef nonnull align 8 dereferenceable(344) %44, i32 noundef %46, i32 noundef %47, float noundef 0.000000e+00)
  %48 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %6, i32 0, i32 14
  %49 = load i32, ptr %4, align 4, !tbaa !9
  call void @_ZN4juce5ArrayIiNS_20DummyCriticalSectionELi0EE3setEii(ptr noundef nonnull align 8 dereferenceable(20) %48, i32 noundef %49, i32 noundef -1)
  br label %50

50:                                               ; preds = %42, %36
  %51 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %6, i32 0, i32 13
  %52 = load i32, ptr %4, align 4, !tbaa !9
  call void @_ZN4juce5ArrayIiNS_20DummyCriticalSectionELi0EE3setEii(ptr noundef nonnull align 8 dereferenceable(20) %51, i32 noundef %52, i32 noundef -1)
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %31, !llvm.loop !64

53:                                               ; preds = %35
  ret void
}

; Function Attrs: nounwind
declare noundef zeroext i1 @_ZNK4juce10BigInteger6isZeroEv(ptr noundef nonnull align 8 dereferenceable(37)) #2

; Function Attrs: nounwind
declare noundef zeroext i1 @_ZNK4juce10BigIntegerixEi(ptr noundef nonnull align 8 dereferenceable(37), i32 noundef) #2

declare void @_ZN4juce17MidiKeyboardState7noteOffEiif(ptr noundef nonnull align 8 dereferenceable(344), i32 noundef, i32 noundef, float noundef) #3

; Function Attrs: nounwind
declare void @_ZN4juce10BigInteger5clearEv(ptr noundef nonnull align 8 dereferenceable(37)) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce5ArrayIiNS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20)) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce5ArrayIiNS_20DummyCriticalSectionELi0EE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce5ArrayIiNS_20DummyCriticalSectionELi0EE3setEii(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef, i32 noundef) #1 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 296}
!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 320}
!62 = distinct !{!62, !63}
!63 = !{!"llvm.loop.mustprogress"}
!64 = distinct !{!64, !63}


; 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"

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce21MidiKeyboardComponent17resetAnyKeysInUseEv(ptr noundef nonnull align 8 dereferenceable(560) %0) local_unnamed_addr #0 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 384
  %3 = tail call noundef zeroext i1 @_ZNK4juce10BigInteger6isZeroEv(ptr noundef nonnull align 8 dereferenceable(37) %2) #4
  br i1 %3, label %15, label %.preheader

.preheader:                                       ; preds = %1
  %4 = getelementptr inbounds i8, ptr %0, i64 296
  %5 = getelementptr inbounds i8, ptr %0, i64 320
  br label %7

6:                                                ; preds = %13
  tail call void @_ZN4juce10BigInteger5clearEv(ptr noundef nonnull align 8 dereferenceable(37) %2) #4
  br label %15

7:                                                ; preds = %.preheader, %13
  %8 = phi i32 [ 127, %.preheader ], [ %14, %13 ]
  %9 = tail call noundef zeroext i1 @_ZNK4juce10BigIntegerixEi(ptr noundef nonnull align 8 dereferenceable(37) %2, i32 noundef %8) #4
  br i1 %9, label %10, label %13

10:                                               ; preds = %7
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = load i32, ptr %5, align 8, !tbaa !59
  tail call void @_ZN4juce17MidiKeyboardState7noteOffEiif(ptr noundef nonnull align 8 dereferenceable(344) %11, i32 noundef %12, i32 noundef %8, float noundef 0.000000e+00)
  br label %13

13:                                               ; preds = %10, %7
  %14 = add nsw i32 %8, -1
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %6, label %7, !llvm.loop !60

15:                                               ; preds = %6, %1
  %16 = getelementptr inbounds i8, ptr %0, i64 360
  %17 = tail call noundef i32 @_ZNK4juce5ArrayIiNS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %16) #4
  %18 = icmp sgt i32 %17, 0
  br i1 %18, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %15
  %19 = getelementptr inbounds i8, ptr %0, i64 296
  %20 = getelementptr inbounds i8, ptr %0, i64 320
  %21 = getelementptr inbounds i8, ptr %0, i64 336
  br label %22

._crit_edge:                                      ; preds = %29, %15
  ret void

22:                                               ; preds = %.lr.ph, %29
  %.in = phi i32 [ %17, %.lr.ph ], [ %23, %29 ]
  %23 = add nsw i32 %.in, -1
  %24 = tail call noundef i32 @_ZNK4juce5ArrayIiNS_20DummyCriticalSectionELi0EE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %16, i32 noundef %23)
  %25 = icmp sgt i32 %24, -1
  br i1 %25, label %26, label %29

26:                                               ; preds = %22
  %27 = load ptr, ptr %19, align 8, !tbaa !5
  %28 = load i32, ptr %20, align 8, !tbaa !59
  tail call void @_ZN4juce17MidiKeyboardState7noteOffEiif(ptr noundef nonnull align 8 dereferenceable(344) %27, i32 noundef %28, i32 noundef %24, float noundef 0.000000e+00)
  tail call void @_ZN4juce5ArrayIiNS_20DummyCriticalSectionELi0EE3setEii(ptr noundef nonnull align 8 dereferenceable(20) %16, i32 noundef %23, i32 noundef -1)
  br label %29

29:                                               ; preds = %26, %22
  tail call void @_ZN4juce5ArrayIiNS_20DummyCriticalSectionELi0EE3setEii(ptr noundef nonnull align 8 dereferenceable(20) %21, i32 noundef %23, i32 noundef -1)
  %30 = icmp ugt i32 %.in, 1
  br i1 %30, label %22, label %._crit_edge, !llvm.loop !62
}

; Function Attrs: nounwind
declare noundef zeroext i1 @_ZNK4juce10BigInteger6isZeroEv(ptr noundef nonnull align 8 dereferenceable(37)) local_unnamed_addr #1

; Function Attrs: nounwind
declare noundef zeroext i1 @_ZNK4juce10BigIntegerixEi(ptr noundef nonnull align 8 dereferenceable(37), i32 noundef) local_unnamed_addr #1

declare void @_ZN4juce17MidiKeyboardState7noteOffEiif(ptr noundef nonnull align 8 dereferenceable(344), i32 noundef, i32 noundef, float noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare void @_ZN4juce10BigInteger5clearEv(ptr noundef nonnull align 8 dereferenceable(37)) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce5ArrayIiNS_20DummyCriticalSectionELi0EE3setEii(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef, i32 noundef) local_unnamed_addr #0 align 2

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass