; 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::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::Rectangle" = type { %"class.juce::Point", 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
declare dso_local noundef i32 @_ZN4juce21MidiKeyboardComponent8xyToNoteENS_5PointIiEERf(ptr noundef nonnull align 8 dereferenceable(560), ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce5ArrayIiNS_20DummyCriticalSectionELi0EE8containsEi(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) #2 align 2

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

; 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce21MidiKeyboardComponent20updateNoteUnderMouseENS_5PointIiEEbi(ptr noundef nonnull align 8 dereferenceable(560) %0, ptr noundef %1, i1 noundef zeroext %2, i32 noundef %3) #1 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i8, align 1
  %8 = alloca i32, align 4
  %9 = alloca float, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.juce::Point", align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca float, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  %15 = zext i1 %2 to i8
  store i8 %15, ptr %7, align 1, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !11
  %16 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store float 0.000000e+00, ptr %9, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @_ZN4juce5PointIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %1) #5
  %17 = call noundef i32 @_ZN4juce21MidiKeyboardComponent8xyToNoteENS_5PointIiEERf(ptr noundef nonnull align 8 dereferenceable(560) %16, ptr noundef %11, ptr noundef nonnull align 4 dereferenceable(4) %9)
  store i32 %17, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %18 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %16, i32 0, i32 13
  %19 = load i32, ptr %8, align 4, !tbaa !11
  %20 = call noundef i32 @_ZNK4juce5ArrayIiNS_20DummyCriticalSectionELi0EE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %18, i32 noundef %19)
  store i32 %20, ptr %12, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %21 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %16, i32 0, i32 14
  %22 = load i32, ptr %8, align 4, !tbaa !11
  %23 = call noundef i32 @_ZNK4juce5ArrayIiNS_20DummyCriticalSectionELi0EE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %21, i32 noundef %22)
  store i32 %23, ptr %13, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %24 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %16, i32 0, i32 22
  %25 = load i8, ptr %24, align 1, !tbaa !15, !range !63, !noundef !64
  %26 = trunc i8 %25 to i1
  br i1 %26, label %27, label %32

27:                                               ; preds = %4
  %28 = load float, ptr %9, align 4, !tbaa !13
  %29 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %16, i32 0, i32 11
  %30 = load float, ptr %29, align 8, !tbaa !65
  %31 = fmul float %28, %30
  br label %33

32:                                               ; preds = %4
  br label %33

33:                                               ; preds = %32, %27
  %34 = phi float [ %31, %27 ], [ 1.000000e+00, %32 ]
  store float %34, ptr %14, align 4, !tbaa !13
  %35 = load i32, ptr %12, align 4, !tbaa !11
  %36 = load i32, ptr %10, align 4, !tbaa !11
  %37 = icmp ne i32 %35, %36
  br i1 %37, label %38, label %44

38:                                               ; preds = %33
  %39 = load i32, ptr %12, align 4, !tbaa !11
  call void @_ZN4juce21MidiKeyboardComponent11repaintNoteEi(ptr noundef nonnull align 8 dereferenceable(560) %16, i32 noundef %39)
  %40 = load i32, ptr %10, align 4, !tbaa !11
  call void @_ZN4juce21MidiKeyboardComponent11repaintNoteEi(ptr noundef nonnull align 8 dereferenceable(560) %16, i32 noundef %40)
  %41 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %16, i32 0, i32 13
  %42 = load i32, ptr %8, align 4, !tbaa !11
  %43 = load i32, ptr %10, align 4, !tbaa !11
  call void @_ZN4juce5ArrayIiNS_20DummyCriticalSectionELi0EE3setEii(ptr noundef nonnull align 8 dereferenceable(20) %41, i32 noundef %42, i32 noundef %43)
  br label %44

44:                                               ; preds = %38, %33
  %45 = load i8, ptr %7, align 1, !tbaa !9, !range !63, !noundef !64
  %46 = trunc i8 %45 to i1
  br i1 %46, label %47, label %87

47:                                               ; preds = %44
  %48 = load i32, ptr %10, align 4, !tbaa !11
  %49 = load i32, ptr %13, align 4, !tbaa !11
  %50 = icmp ne i32 %48, %49
  br i1 %50, label %51, label %86

51:                                               ; preds = %47
  %52 = load i32, ptr %13, align 4, !tbaa !11
  %53 = icmp sge i32 %52, 0
  br i1 %53, label %54, label %68

54:                                               ; preds = %51
  %55 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %16, i32 0, i32 14
  %56 = load i32, ptr %8, align 4, !tbaa !11
  call void @_ZN4juce5ArrayIiNS_20DummyCriticalSectionELi0EE3setEii(ptr noundef nonnull align 8 dereferenceable(20) %55, i32 noundef %56, i32 noundef -1)
  %57 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %16, i32 0, i32 14
  %58 = load i32, ptr %13, align 4, !tbaa !11
  %59 = call noundef zeroext i1 @_ZNK4juce5ArrayIiNS_20DummyCriticalSectionELi0EE8containsEi(ptr noundef nonnull align 8 dereferenceable(20) %57, i32 noundef %58)
  br i1 %59, label %67, label %60

60:                                               ; preds = %54
  %61 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %16, i32 0, i32 4
  %62 = load ptr, ptr %61, align 8, !tbaa !66
  %63 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %16, i32 0, i32 9
  %64 = load i32, ptr %63, align 8, !tbaa !67
  %65 = load i32, ptr %13, align 4, !tbaa !11
  %66 = load float, ptr %14, align 4, !tbaa !13
  call void @_ZN4juce17MidiKeyboardState7noteOffEiif(ptr noundef nonnull align 8 dereferenceable(344) %62, i32 noundef %64, i32 noundef %65, float noundef %66)
  br label %67

67:                                               ; preds = %60, %54
  br label %68

68:                                               ; preds = %67, %51
  %69 = load i32, ptr %10, align 4, !tbaa !11
  %70 = icmp sge i32 %69, 0
  br i1 %70, label %71, label %85

71:                                               ; preds = %68
  %72 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %16, i32 0, i32 14
  %73 = load i32, ptr %10, align 4, !tbaa !11
  %74 = call noundef zeroext i1 @_ZNK4juce5ArrayIiNS_20DummyCriticalSectionELi0EE8containsEi(ptr noundef nonnull align 8 dereferenceable(20) %72, i32 noundef %73)
  br i1 %74, label %85, label %75

75:                                               ; preds = %71
  %76 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %16, i32 0, i32 4
  %77 = load ptr, ptr %76, align 8, !tbaa !66
  %78 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %16, i32 0, i32 9
  %79 = load i32, ptr %78, align 8, !tbaa !67
  %80 = load i32, ptr %10, align 4, !tbaa !11
  %81 = load float, ptr %14, align 4, !tbaa !13
  call void @_ZN4juce17MidiKeyboardState6noteOnEiif(ptr noundef nonnull align 8 dereferenceable(344) %77, i32 noundef %79, i32 noundef %80, float noundef %81)
  %82 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %16, i32 0, i32 14
  %83 = load i32, ptr %8, align 4, !tbaa !11
  %84 = load i32, ptr %10, align 4, !tbaa !11
  call void @_ZN4juce5ArrayIiNS_20DummyCriticalSectionELi0EE3setEii(ptr noundef nonnull align 8 dereferenceable(20) %82, i32 noundef %83, i32 noundef %84)
  br label %85

85:                                               ; preds = %75, %71, %68
  br label %86

86:                                               ; preds = %85, %47
  br label %105

87:                                               ; preds = %44
  %88 = load i32, ptr %13, align 4, !tbaa !11
  %89 = icmp sge i32 %88, 0
  br i1 %89, label %90, label %104

90:                                               ; preds = %87
  %91 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %16, i32 0, i32 14
  %92 = load i32, ptr %8, align 4, !tbaa !11
  call void @_ZN4juce5ArrayIiNS_20DummyCriticalSectionELi0EE3setEii(ptr noundef nonnull align 8 dereferenceable(20) %91, i32 noundef %92, i32 noundef -1)
  %93 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %16, i32 0, i32 14
  %94 = load i32, ptr %13, align 4, !tbaa !11
  %95 = call noundef zeroext i1 @_ZNK4juce5ArrayIiNS_20DummyCriticalSectionELi0EE8containsEi(ptr noundef nonnull align 8 dereferenceable(20) %93, i32 noundef %94)
  br i1 %95, label %103, label %96

96:                                               ; preds = %90
  %97 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %16, i32 0, i32 4
  %98 = load ptr, ptr %97, align 8, !tbaa !66
  %99 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %16, i32 0, i32 9
  %100 = load i32, ptr %99, align 8, !tbaa !67
  %101 = load i32, ptr %13, align 4, !tbaa !11
  %102 = load float, ptr %14, align 4, !tbaa !13
  call void @_ZN4juce17MidiKeyboardState7noteOffEiif(ptr noundef nonnull align 8 dereferenceable(344) %98, i32 noundef %100, i32 noundef %101, float noundef %102)
  br label %103

103:                                              ; preds = %96, %90
  br label %104

104:                                              ; preds = %103, %87
  br label %105

105:                                              ; preds = %104, %86
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  ret void
}

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.juce::Point" = 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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce21MidiKeyboardComponent20updateNoteUnderMouseENS_5PointIiEEbi(ptr noundef nonnull align 8 dereferenceable(560) %0, ptr noundef nonnull %1, i1 noundef zeroext %2, i32 noundef %3) local_unnamed_addr #1 align 2 {
  %5 = alloca float, align 4
  %6 = alloca %"class.juce::Point", align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  store float 0.000000e+00, ptr %5, align 4, !tbaa !5
  call void @_ZN4juce5PointIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %1) #5
  %7 = call noundef i32 @_ZN4juce21MidiKeyboardComponent8xyToNoteENS_5PointIiEERf(ptr noundef nonnull align 8 dereferenceable(560) %0, ptr noundef nonnull %6, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %8 = getelementptr inbounds i8, ptr %0, i64 336
  %9 = call noundef i32 @_ZNK4juce5ArrayIiNS_20DummyCriticalSectionELi0EE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %8, i32 noundef %3)
  %10 = getelementptr inbounds i8, ptr %0, i64 360
  %11 = call noundef i32 @_ZNK4juce5ArrayIiNS_20DummyCriticalSectionELi0EE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %10, i32 noundef %3)
  %12 = getelementptr inbounds i8, ptr %0, i64 481
  %13 = load i8, ptr %12, align 1, !tbaa !9, !range !60, !noundef !61
  %14 = trunc nuw i8 %13 to i1
  %15 = load float, ptr %5, align 4
  %16 = getelementptr inbounds i8, ptr %0, i64 328
  %17 = load float, ptr %16, align 8
  %18 = fmul float %15, %17
  %19 = select i1 %14, float %18, float 1.000000e+00
  %.not = icmp eq i32 %9, %7
  br i1 %.not, label %21, label %20

20:                                               ; preds = %4
  call void @_ZN4juce21MidiKeyboardComponent11repaintNoteEi(ptr noundef nonnull align 8 dereferenceable(560) %0, i32 noundef %9)
  call void @_ZN4juce21MidiKeyboardComponent11repaintNoteEi(ptr noundef nonnull align 8 dereferenceable(560) %0, i32 noundef %7)
  call void @_ZN4juce5ArrayIiNS_20DummyCriticalSectionELi0EE3setEii(ptr noundef nonnull align 8 dereferenceable(20) %8, i32 noundef %3, i32 noundef %7)
  br label %21

21:                                               ; preds = %20, %4
  br i1 %2, label %22, label %41

22:                                               ; preds = %21
  %.not29 = icmp eq i32 %7, %11
  br i1 %.not29, label %50, label %23

23:                                               ; preds = %22
  %24 = icmp sgt i32 %11, -1
  br i1 %24, label %25, label %32

25:                                               ; preds = %23
  call void @_ZN4juce5ArrayIiNS_20DummyCriticalSectionELi0EE3setEii(ptr noundef nonnull align 8 dereferenceable(20) %10, i32 noundef %3, i32 noundef -1)
  %26 = call noundef zeroext i1 @_ZNK4juce5ArrayIiNS_20DummyCriticalSectionELi0EE8containsEi(ptr noundef nonnull align 8 dereferenceable(20) %10, i32 noundef %11)
  br i1 %26, label %32, label %27

27:                                               ; preds = %25
  %28 = getelementptr inbounds i8, ptr %0, i64 296
  %29 = load ptr, ptr %28, align 8, !tbaa !62
  %30 = getelementptr inbounds i8, ptr %0, i64 320
  %31 = load i32, ptr %30, align 8, !tbaa !63
  call void @_ZN4juce17MidiKeyboardState7noteOffEiif(ptr noundef nonnull align 8 dereferenceable(344) %29, i32 noundef %31, i32 noundef %11, float noundef %19)
  br label %32

32:                                               ; preds = %25, %27, %23
  %33 = icmp sgt i32 %7, -1
  br i1 %33, label %34, label %50

34:                                               ; preds = %32
  %35 = call noundef zeroext i1 @_ZNK4juce5ArrayIiNS_20DummyCriticalSectionELi0EE8containsEi(ptr noundef nonnull align 8 dereferenceable(20) %10, i32 noundef %7)
  br i1 %35, label %50, label %36

36:                                               ; preds = %34
  %37 = getelementptr inbounds i8, ptr %0, i64 296
  %38 = load ptr, ptr %37, align 8, !tbaa !62
  %39 = getelementptr inbounds i8, ptr %0, i64 320
  %40 = load i32, ptr %39, align 8, !tbaa !63
  call void @_ZN4juce17MidiKeyboardState6noteOnEiif(ptr noundef nonnull align 8 dereferenceable(344) %38, i32 noundef %40, i32 noundef %7, float noundef %19)
  call void @_ZN4juce5ArrayIiNS_20DummyCriticalSectionELi0EE3setEii(ptr noundef nonnull align 8 dereferenceable(20) %10, i32 noundef %3, i32 noundef %7)
  br label %50

41:                                               ; preds = %21
  %42 = icmp sgt i32 %11, -1
  br i1 %42, label %43, label %50

43:                                               ; preds = %41
  call void @_ZN4juce5ArrayIiNS_20DummyCriticalSectionELi0EE3setEii(ptr noundef nonnull align 8 dereferenceable(20) %10, i32 noundef %3, i32 noundef -1)
  %44 = call noundef zeroext i1 @_ZNK4juce5ArrayIiNS_20DummyCriticalSectionELi0EE8containsEi(ptr noundef nonnull align 8 dereferenceable(20) %10, i32 noundef %11)
  br i1 %44, label %50, label %45

45:                                               ; preds = %43
  %46 = getelementptr inbounds i8, ptr %0, i64 296
  %47 = load ptr, ptr %46, align 8, !tbaa !62
  %48 = getelementptr inbounds i8, ptr %0, i64 320
  %49 = load i32, ptr %48, align 8, !tbaa !63
  call void @_ZN4juce17MidiKeyboardState7noteOffEiif(ptr noundef nonnull align 8 dereferenceable(344) %47, i32 noundef %49, i32 noundef %11, float noundef %19)
  br label %50

50:                                               ; preds = %41, %45, %43, %22, %36, %34, %32
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  ret void
}

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

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


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