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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.juce::MPEValue" = type { i32 }
%"struct.juce::MPEInstrument::MPEDimension" = type { i32, [16 x %"class.juce::MPEValue"], i64 }
%"class.juce::MPEInstrument" = type { ptr, %"class.juce::CriticalSection", %"class.juce::Array.61", %"class.juce::MPEZoneLayout", %"class.juce::ListenerList.66", [16 x i8], [16 x i8], [16 x i8], %"struct.juce::MPEInstrument::LegacyMode", %"struct.juce::MPEInstrument::MPEDimension", %"struct.juce::MPEInstrument::MPEDimension", %"struct.juce::MPEInstrument::MPEDimension" }
%"class.juce::CriticalSection" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.juce::Array.61" = type { %"class.juce::ArrayAllocationBase.62", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.62" = type <{ %"class.juce::HeapBlock.63", i32, [4 x i8] }>
%"class.juce::HeapBlock.63" = type { ptr }
%"class.juce::MPEZoneLayout" = type { %"class.juce::Array.51", %"class.juce::MidiRPNDetector", %"class.juce::ListenerList" }
%"class.juce::Array.51" = type { %"class.juce::ArrayAllocationBase.52", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.52" = type <{ %"class.juce::HeapBlock.53", i32, [4 x i8] }>
%"class.juce::HeapBlock.53" = type { ptr }
%"class.juce::MidiRPNDetector" = type { [16 x %"struct.juce::MidiRPNDetector::ChannelState"] }
%"struct.juce::MidiRPNDetector::ChannelState" = type { i8, i8, i8, i8, i8 }
%"class.juce::ListenerList" = type { %"class.juce::Array.56" }
%"class.juce::Array.56" = type { %"class.juce::ArrayAllocationBase.57", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.57" = type <{ %"class.juce::HeapBlock.58", i32, [4 x i8] }>
%"class.juce::HeapBlock.58" = type { ptr }
%"class.juce::ListenerList.66" = type { %"class.juce::Array.67" }
%"class.juce::Array.67" = type { %"class.juce::ArrayAllocationBase.68", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.68" = type <{ %"class.juce::HeapBlock.69", i32, [4 x i8] }>
%"class.juce::HeapBlock.69" = type { ptr }
%"struct.juce::MPEInstrument::LegacyMode" = type { i8, %"class.juce::Range.50", i32 }
%"class.juce::Range.50" = type { i32, i32 }
%"struct.juce::MPENote" = type <{ i16, i8, i8, %"class.juce::MPEValue", %"class.juce::MPEValue", %"class.juce::MPEValue", %"class.juce::MPEValue", %"class.juce::MPEValue", double, i32, [4 x i8] }>

; 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: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce13MPEInstrument15updateDimensionEiRNS0_12MPEDimensionENS_8MPEValueE(ptr noundef nonnull align 8 dereferenceable(528) %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(80) %2, i32 %3) #4 align 2 {
  %5 = alloca %"class.juce::MPEValue", align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"class.juce::MPEValue", align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca %"class.juce::MPEValue", align 4
  %14 = alloca ptr, align 8
  %15 = alloca %"class.juce::MPEValue", align 4
  %16 = getelementptr inbounds %"class.juce::MPEValue", ptr %5, i32 0, i32 0
  store i32 %3, ptr %16, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  %17 = load ptr, ptr %6, align 8
  %18 = load ptr, ptr %8, align 8, !tbaa !5
  %19 = getelementptr inbounds %"struct.juce::MPEInstrument::MPEDimension", ptr %18, i32 0, i32 1
  %20 = load i32, ptr %7, align 4, !tbaa !9
  %21 = sub nsw i32 %20, 1
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds [16 x %"class.juce::MPEValue"], ptr %19, i64 0, i64 %22
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %5, i64 4, i1 false), !tbaa.struct !11
  %24 = getelementptr inbounds %"class.juce::MPEInstrument", ptr %17, i32 0, i32 2
  %25 = call noundef zeroext i1 @_ZNK4juce5ArrayINS_7MPENoteENS_20DummyCriticalSectionELi0EE7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(20) %24) #5
  br i1 %25, label %26, label %27

26:                                               ; preds = %4
  br label %88

27:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %28 = getelementptr inbounds %"class.juce::MPEInstrument", ptr %17, i32 0, i32 3
  %29 = load i32, ptr %7, align 4, !tbaa !9
  %30 = call noundef ptr @_ZNK4juce13MPEZoneLayout22getZoneByMasterChannelEi(ptr noundef nonnull align 8 dereferenceable(128) %28, i32 noundef %29) #5
  store ptr %30, ptr %9, align 8, !tbaa !5
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  %32 = icmp ne ptr %31, null
  br i1 %32, label %33, label %38

33:                                               ; preds = %27
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %5, i64 4, i1 false), !tbaa.struct !11
  %36 = getelementptr inbounds %"class.juce::MPEValue", ptr %10, i32 0, i32 0
  %37 = load i32, ptr %36, align 4
  call void @_ZN4juce13MPEInstrument21updateDimensionMasterERNS_7MPEZoneERNS0_12MPEDimensionENS_8MPEValueE(ptr noundef nonnull align 8 dereferenceable(528) %17, ptr noundef nonnull align 4 dereferenceable(16) %34, ptr noundef nonnull align 8 dereferenceable(80) %35, i32 %37)
  br label %87

38:                                               ; preds = %27
  %39 = load i32, ptr %7, align 4, !tbaa !9
  %40 = call noundef zeroext i1 @_ZNK4juce13MPEInstrument13isNoteChannelEi(ptr noundef nonnull align 8 dereferenceable(528) %17, i32 noundef %39) #5
  br i1 %40, label %41, label %86

41:                                               ; preds = %38
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.juce::MPEInstrument::MPEDimension", ptr %42, i32 0, i32 0
  %44 = load i32, ptr %43, align 8, !tbaa !12
  %45 = icmp eq i32 %44, 3
  br i1 %45, label %46, label %71

46:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %47 = getelementptr inbounds %"class.juce::MPEInstrument", ptr %17, i32 0, i32 2
  %48 = call noundef i32 @_ZNK4juce5ArrayINS_7MPENoteENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %47) #5
  store i32 %48, ptr %11, align 4, !tbaa !9
  br label %49

49:                                               ; preds = %69, %46
  %50 = load i32, ptr %11, align 4, !tbaa !9
  %51 = add nsw i32 %50, -1
  store i32 %51, ptr %11, align 4, !tbaa !9
  %52 = icmp sge i32 %51, 0
  br i1 %52, label %54, label %53

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

54:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %55 = getelementptr inbounds %"class.juce::MPEInstrument", ptr %17, i32 0, i32 2
  %56 = load i32, ptr %11, align 4, !tbaa !9
  %57 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZNK4juce5ArrayINS_7MPENoteENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %55, i32 noundef %56) #5
  store ptr %57, ptr %12, align 8, !tbaa !5
  %58 = load ptr, ptr %12, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.juce::MPENote", ptr %58, i32 0, i32 1
  %60 = load i8, ptr %59, align 2, !tbaa !15
  %61 = zext i8 %60 to i32
  %62 = load i32, ptr %7, align 4, !tbaa !9
  %63 = icmp eq i32 %61, %62
  br i1 %63, label %64, label %69

64:                                               ; preds = %54
  %65 = load ptr, ptr %12, align 8, !tbaa !5
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %5, i64 4, i1 false), !tbaa.struct !11
  %67 = getelementptr inbounds %"class.juce::MPEValue", ptr %13, i32 0, i32 0
  %68 = load i32, ptr %67, align 4
  call void @_ZN4juce13MPEInstrument22updateDimensionForNoteERNS_7MPENoteERNS0_12MPEDimensionENS_8MPEValueE(ptr noundef nonnull align 8 dereferenceable(528) %17, ptr noundef nonnull align 8 dereferenceable(36) %65, ptr noundef nonnull align 8 dereferenceable(80) %66, i32 %68)
  br label %69

69:                                               ; preds = %64, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %49, !llvm.loop !21

70:                                               ; preds = %53
  br label %85

71:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %72 = load i32, ptr %7, align 4, !tbaa !9
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.juce::MPEInstrument::MPEDimension", ptr %73, i32 0, i32 0
  %75 = load i32, ptr %74, align 8, !tbaa !12
  %76 = call noundef ptr @_ZNK4juce13MPEInstrument10getNotePtrEiNS0_12TrackingModeE(ptr noundef nonnull align 8 dereferenceable(528) %17, i32 noundef %72, i32 noundef %75) #5
  store ptr %76, ptr %14, align 8, !tbaa !5
  %77 = load ptr, ptr %14, align 8, !tbaa !5
  %78 = icmp ne ptr %77, null
  br i1 %78, label %79, label %84

79:                                               ; preds = %71
  %80 = load ptr, ptr %14, align 8, !tbaa !5
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %5, i64 4, i1 false), !tbaa.struct !11
  %82 = getelementptr inbounds %"class.juce::MPEValue", ptr %15, i32 0, i32 0
  %83 = load i32, ptr %82, align 4
  call void @_ZN4juce13MPEInstrument22updateDimensionForNoteERNS_7MPENoteERNS0_12MPEDimensionENS_8MPEValueE(ptr noundef nonnull align 8 dereferenceable(528) %17, ptr noundef nonnull align 8 dereferenceable(36) %80, ptr noundef nonnull align 8 dereferenceable(80) %81, i32 %83)
  br label %84

84:                                               ; preds = %79, %71
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %85

85:                                               ; preds = %84, %70
  br label %86

86:                                               ; preds = %85, %38
  br label %87

87:                                               ; preds = %86, %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %88

88:                                               ; preds = %87, %26
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce13MPEInstrument21updateDimensionMasterERNS_7MPEZoneERNS0_12MPEDimensionENS_8MPEValueE(ptr noundef nonnull align 8 dereferenceable(528), ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(80), i32) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce13MPEInstrument22updateDimensionForNoteERNS_7MPENoteERNS0_12MPEDimensionENS_8MPEValueE(ptr noundef nonnull align 8 dereferenceable(528), ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(80), i32) #4 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { 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 = { 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 = !{i64 0, i64 4, !9}
!12 = !{!13, !14, i64 0}
!13 = !{!"_ZTSN4juce13MPEInstrument12MPEDimensionE", !14, i64 0, !7, i64 4, !7, i64 72}
!14 = !{!"_ZTSN4juce13MPEInstrument12TrackingModeE", !7, i64 0}
!15 = !{!16, !7, i64 2}
!16 = !{!"_ZTSN4juce7MPENoteE", !17, i64 0, !7, i64 2, !7, i64 3, !18, i64 4, !18, i64 8, !18, i64 12, !18, i64 16, !18, i64 20, !19, i64 24, !20, i64 32}
!17 = !{!"short", !7, i64 0}
!18 = !{!"_ZTSN4juce8MPEValueE", !10, i64 0}
!19 = !{!"double", !7, i64 0}
!20 = !{!"_ZTSN4juce7MPENote8KeyStateE", !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}


; 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::MPEValue" = type { i32 }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK4juce13MPEZoneLayout22getZoneByMasterChannelEi(ptr noundef nonnull align 8 dereferenceable(128), i32 noundef) local_unnamed_addr #0 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce13MPEInstrument15updateDimensionEiRNS0_12MPEDimensionENS_8MPEValueE(ptr noundef nonnull align 8 dereferenceable(528) %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(80) %2, i32 %3) local_unnamed_addr #2 align 2 {
  %5 = getelementptr inbounds i8, ptr %2, i64 4
  %6 = add nsw i32 %1, -1
  %7 = sext i32 %6 to i64
  %8 = getelementptr inbounds [16 x %"class.juce::MPEValue"], ptr %5, i64 0, i64 %7
  store i32 %3, ptr %8, align 4, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 48
  %10 = tail call noundef zeroext i1 @_ZNK4juce5ArrayINS_7MPENoteENS_20DummyCriticalSectionELi0EE7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(20) %9) #3
  br i1 %10, label %.loopexit, label %11

11:                                               ; preds = %4
  %12 = getelementptr inbounds i8, ptr %0, i64 72
  %13 = tail call noundef ptr @_ZNK4juce13MPEZoneLayout22getZoneByMasterChannelEi(ptr noundef nonnull align 8 dereferenceable(128) %12, i32 noundef %1) #3
  %.not = icmp eq ptr %13, null
  br i1 %.not, label %15, label %14

14:                                               ; preds = %11
  tail call void @_ZN4juce13MPEInstrument21updateDimensionMasterERNS_7MPEZoneERNS0_12MPEDimensionENS_8MPEValueE(ptr noundef nonnull align 8 dereferenceable(528) %0, ptr noundef nonnull align 4 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(80) %2, i32 %3)
  br label %.loopexit

15:                                               ; preds = %11
  %16 = tail call noundef zeroext i1 @_ZNK4juce13MPEInstrument13isNoteChannelEi(ptr noundef nonnull align 8 dereferenceable(528) %0, i32 noundef %1) #3
  br i1 %16, label %17, label %.loopexit

17:                                               ; preds = %15
  %18 = load i32, ptr %2, align 8, !tbaa !9
  %19 = icmp eq i32 %18, 3
  br i1 %19, label %20, label %32

20:                                               ; preds = %17
  %21 = tail call noundef i32 @_ZNK4juce5ArrayINS_7MPENoteENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %9) #3
  %22 = icmp sgt i32 %21, 0
  br i1 %22, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %20, %30
  %.in = phi i32 [ %23, %30 ], [ %21, %20 ]
  %23 = add nsw i32 %.in, -1
  %24 = tail call noundef nonnull align 8 dereferenceable(36) ptr @_ZNK4juce5ArrayINS_7MPENoteENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %9, i32 noundef %23) #3
  %25 = getelementptr inbounds i8, ptr %24, i64 2
  %26 = load i8, ptr %25, align 2, !tbaa !12
  %27 = zext i8 %26 to i32
  %28 = icmp eq i32 %27, %1
  br i1 %28, label %29, label %30

29:                                               ; preds = %.lr.ph
  tail call void @_ZN4juce13MPEInstrument22updateDimensionForNoteERNS_7MPENoteERNS0_12MPEDimensionENS_8MPEValueE(ptr noundef nonnull align 8 dereferenceable(528) %0, ptr noundef nonnull align 8 dereferenceable(36) %24, ptr noundef nonnull align 8 dereferenceable(80) %2, i32 %3)
  br label %30

30:                                               ; preds = %29, %.lr.ph
  %31 = icmp ugt i32 %.in, 1
  br i1 %31, label %.lr.ph, label %.loopexit, !llvm.loop !18

32:                                               ; preds = %17
  %33 = tail call noundef ptr @_ZNK4juce13MPEInstrument10getNotePtrEiNS0_12TrackingModeE(ptr noundef nonnull align 8 dereferenceable(528) %0, i32 noundef %1, i32 noundef %18) #3
  %.not28 = icmp eq ptr %33, null
  br i1 %.not28, label %.loopexit, label %34

34:                                               ; preds = %32
  tail call void @_ZN4juce13MPEInstrument22updateDimensionForNoteERNS_7MPENoteERNS0_12MPEDimensionENS_8MPEValueE(ptr noundef nonnull align 8 dereferenceable(528) %0, ptr noundef nonnull align 8 dereferenceable(36) %33, ptr noundef nonnull align 8 dereferenceable(80) %2, i32 %3)
  br label %.loopexit

.loopexit:                                        ; preds = %30, %20, %14, %15, %34, %32, %4
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce13MPEInstrument22updateDimensionForNoteERNS_7MPENoteERNS0_12MPEDimensionENS_8MPEValueE(ptr noundef nonnull align 8 dereferenceable(528), ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(80), i32) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK4juce13MPEInstrument10getNotePtrEiNS0_12TrackingModeE(ptr noundef nonnull align 8 dereferenceable(528), i32 noundef, i32 noundef) local_unnamed_addr #0 align 2

attributes #0 = { 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 #1 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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, !11, i64 0}
!10 = !{!"_ZTSN4juce13MPEInstrument12MPEDimensionE", !11, i64 0, !7, i64 4, !7, i64 72}
!11 = !{!"_ZTSN4juce13MPEInstrument12TrackingModeE", !7, i64 0}
!12 = !{!13, !7, i64 2}
!13 = !{!"_ZTSN4juce7MPENoteE", !14, i64 0, !7, i64 2, !7, i64 3, !15, i64 4, !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20, !16, i64 24, !17, i64 32}
!14 = !{!"short", !7, i64 0}
!15 = !{!"_ZTSN4juce8MPEValueE", !6, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = !{!"_ZTSN4juce7MPENote8KeyStateE", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}


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