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

; 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::ReferenceCountedObjectPtr.87" = type { ptr }
%"class.juce::AudioProcessorGraph" = type <{ %"class.juce::AudioProcessor", %"class.juce::AsyncUpdater", %"class.juce::ReferenceCountedArray", %"class.juce::OwnedArray.12", i32, [4 x i8], %"class.juce::OwnedArray.17", %"class.juce::Array.22", %"class.juce::ScopedPointer", ptr, %"class.juce::MidiBuffer", i8, [7 x i8] }>
%"class.juce::AudioProcessor" = type { ptr, i32, ptr, %"class.juce::Array", %"class.juce::Component::SafePointer", double, i32, i32, i8, i8, i32, %"class.juce::CriticalSection", %"class.juce::CriticalSection", %"class.juce::OwnedArray", %"class.juce::OwnedArray", %"class.juce::String", %"class.juce::String", i32, i32, %"class.juce::OwnedArray.3" }
%"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::Component::SafePointer" = type { %"class.juce::WeakReference" }
%"class.juce::WeakReference" = type { %"class.juce::ReferenceCountedObjectPtr" }
%"class.juce::ReferenceCountedObjectPtr" = type { ptr }
%"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::OwnedArray" = type { %"class.juce::ArrayAllocationBase.0", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.0" = type <{ %"class.juce::HeapBlock.1", i32, [4 x i8] }>
%"class.juce::HeapBlock.1" = type { ptr }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::OwnedArray.3" = type { %"class.juce::ArrayAllocationBase.4", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.4" = type <{ %"class.juce::HeapBlock.5", i32, [4 x i8] }>
%"class.juce::HeapBlock.5" = type { ptr }
%"class.juce::AsyncUpdater" = type { ptr, %"class.juce::ReferenceCountedObjectPtr.8" }
%"class.juce::ReferenceCountedObjectPtr.8" = type { ptr }
%"class.juce::ReferenceCountedArray" = type { %"class.juce::ArrayAllocationBase.9", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.9" = type <{ %"class.juce::HeapBlock.10", i32, [4 x i8] }>
%"class.juce::HeapBlock.10" = type { ptr }
%"class.juce::OwnedArray.12" = type { %"class.juce::ArrayAllocationBase.13", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.13" = type <{ %"class.juce::HeapBlock.14", i32, [4 x i8] }>
%"class.juce::HeapBlock.14" = type { ptr }
%"class.juce::OwnedArray.17" = type { %"class.juce::ArrayAllocationBase.18", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.18" = type <{ %"class.juce::HeapBlock.19", i32, [4 x i8] }>
%"class.juce::HeapBlock.19" = type { ptr }
%"class.juce::Array.22" = type { %"class.juce::ArrayAllocationBase.23", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.23" = type <{ %"class.juce::HeapBlock.24", i32, [4 x i8] }>
%"class.juce::HeapBlock.24" = type { ptr }
%"class.juce::ScopedPointer" = type { ptr }
%"class.juce::MidiBuffer" = type { %"class.juce::Array.27" }
%"class.juce::Array.27" = type { %"class.juce::ArrayAllocationBase.28", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.28" = type <{ %"class.juce::HeapBlock.29", i32, [4 x i8] }>
%"class.juce::HeapBlock.29" = type { ptr }
%"class.juce::AudioProcessorGraph::Node" = type <{ %"class.juce::ReferenceCountedObject", i32, [4 x i8], %"class.juce::NamedValueSet", %"class.juce::ScopedPointer.86", i8, [7 x i8] }>
%"class.juce::ReferenceCountedObject" = type { ptr, %"class.juce::Atomic" }
%"class.juce::Atomic" = type { i32, [4 x i8] }
%"class.juce::NamedValueSet" = type { %"class.juce::Array.78" }
%"class.juce::Array.78" = type { %"class.juce::ArrayAllocationBase.79", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.79" = type <{ %"class.juce::HeapBlock.80", i32, [4 x i8] }>
%"class.juce::HeapBlock.80" = type { ptr }
%"class.juce::ScopedPointer.86" = 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

declare void @_ZN4juce12AsyncUpdater18triggerAsyncUpdateEv(ptr noundef nonnull align 8 dereferenceable(16)) #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce21ReferenceCountedArrayINS_19AudioProcessorGraph4NodeENS_20DummyCriticalSectionEE12getUncheckedEi(ptr dead_on_unwind noalias writable sret(%"class.juce::ReferenceCountedObjectPtr.87") align 8, ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4juce19AudioProcessorGraph10removeNodeEj(ptr noundef nonnull align 8 dereferenceable(417) %0, i32 noundef %1) #4 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"class.juce::ReferenceCountedObjectPtr.87", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  %9 = load ptr, ptr %4, align 8
  %10 = load i32, ptr %5, align 4, !tbaa !9
  %11 = call noundef zeroext i1 @_ZN4juce19AudioProcessorGraph14disconnectNodeEj(ptr noundef nonnull align 8 dereferenceable(417) %9, i32 noundef %10)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %12 = getelementptr inbounds %"class.juce::AudioProcessorGraph", ptr %9, i32 0, i32 2
  %13 = call noundef i32 @_ZNK4juce21ReferenceCountedArrayINS_19AudioProcessorGraph4NodeENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %12) #5
  store i32 %13, ptr %6, align 4, !tbaa !9
  br label %14

14:                                               ; preds = %36, %2
  %15 = load i32, ptr %6, align 4, !tbaa !9
  %16 = add nsw i32 %15, -1
  store i32 %16, ptr %6, align 4, !tbaa !9
  %17 = icmp sge i32 %16, 0
  br i1 %17, label %19, label %18

18:                                               ; preds = %14
  store i32 2, ptr %7, align 4
  br label %37

19:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %20 = getelementptr inbounds %"class.juce::AudioProcessorGraph", ptr %9, i32 0, i32 2
  %21 = load i32, ptr %6, align 4, !tbaa !9
  call void @_ZNK4juce21ReferenceCountedArrayINS_19AudioProcessorGraph4NodeENS_20DummyCriticalSectionEE12getUncheckedEi(ptr dead_on_unwind writable sret(%"class.juce::ReferenceCountedObjectPtr.87") align 8 %8, ptr noundef nonnull align 8 dereferenceable(20) %20, i32 noundef %21) #5
  %22 = call noundef ptr @_ZNK4juce25ReferenceCountedObjectPtrINS_19AudioProcessorGraph4NodeEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  %23 = getelementptr inbounds %"class.juce::AudioProcessorGraph::Node", ptr %22, i32 0, i32 1
  %24 = load i32, ptr %23, align 8, !tbaa !11
  %25 = load i32, ptr %5, align 4, !tbaa !9
  %26 = icmp eq i32 %24, %25
  call void @_ZN4juce25ReferenceCountedObjectPtrINS_19AudioProcessorGraph4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br i1 %26, label %27, label %36

27:                                               ; preds = %19
  %28 = getelementptr inbounds %"class.juce::AudioProcessorGraph", ptr %9, i32 0, i32 2
  %29 = load i32, ptr %6, align 4, !tbaa !9
  call void @_ZN4juce21ReferenceCountedArrayINS_19AudioProcessorGraph4NodeENS_20DummyCriticalSectionEE6removeEi(ptr noundef nonnull align 8 dereferenceable(20) %28, i32 noundef %29)
  %30 = getelementptr inbounds %"class.juce::AudioProcessorGraph", ptr %9, i32 0, i32 11
  %31 = load i8, ptr %30, align 8, !tbaa !21, !range !61, !noundef !62
  %32 = trunc i8 %31 to i1
  br i1 %32, label %33, label %35

33:                                               ; preds = %27
  %34 = getelementptr inbounds i8, ptr %9, i64 256
  call void @_ZN4juce12AsyncUpdater18triggerAsyncUpdateEv(ptr noundef nonnull align 8 dereferenceable(16) %34)
  br label %35

35:                                               ; preds = %33, %27
  store i1 true, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %37

36:                                               ; preds = %19
  br label %14, !llvm.loop !63

37:                                               ; preds = %35, %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  %38 = load i32, ptr %7, align 4
  switch i32 %38, label %42 [
    i32 2, label %39
    i32 1, label %40
  ]

39:                                               ; preds = %37
  store i1 false, ptr %3, align 1
  br label %40

40:                                               ; preds = %39, %37
  %41 = load i1, ptr %3, align 1
  ret i1 %41

42:                                               ; preds = %37
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4juce19AudioProcessorGraph14disconnectNodeEj(ptr noundef nonnull align 8 dereferenceable(417), i32 noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce21ReferenceCountedArrayINS_19AudioProcessorGraph4NodeENS_20DummyCriticalSectionEE6removeEi(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) #3 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 = { 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 #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = !{!12, !10, i64 16}
!12 = !{!"_ZTSN4juce19AudioProcessorGraph4NodeE", !13, i64 0, !10, i64 16, !15, i64 24, !19, i64 48, !20, i64 56}
!13 = !{!"_ZTSN4juce22ReferenceCountedObjectE", !14, i64 8}
!14 = !{!"_ZTSN4juce6AtomicIiEE", !10, i64 0}
!15 = !{!"_ZTSN4juce13NamedValueSetE", !16, i64 0}
!16 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !17, i64 0, !10, i64 16}
!17 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !18, i64 0, !10, i64 8}
!18 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !6, i64 0}
!19 = !{!"_ZTSN4juce13ScopedPointerINS_14AudioProcessorEEE", !6, i64 0}
!20 = !{!"bool", !7, i64 0}
!21 = !{!22, !20, i64 416}
!22 = !{!"_ZTSN4juce19AudioProcessorGraphE", !23, i64 0, !42, i64 256, !44, i64 272, !47, i64 296, !10, i64 320, !50, i64 328, !53, i64 352, !56, i64 376, !6, i64 384, !57, i64 392, !20, i64 416}
!23 = !{!"_ZTSN4juce14AudioProcessorE", !24, i64 8, !6, i64 16, !25, i64 24, !28, i64 48, !31, i64 56, !10, i64 64, !10, i64 68, !20, i64 72, !20, i64 73, !32, i64 76, !33, i64 80, !33, i64 120, !34, i64 160, !34, i64 184, !37, i64 208, !37, i64 216, !10, i64 224, !10, i64 228, !39, i64 232}
!24 = !{!"_ZTSN4juce14AudioProcessor11WrapperTypeE", !7, i64 0}
!25 = !{!"_ZTSN4juce5ArrayIPNS_22AudioProcessorListenerENS_20DummyCriticalSectionELi0EEE", !26, i64 0, !10, i64 16}
!26 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_22AudioProcessorListenerENS_20DummyCriticalSectionEEE", !27, i64 0, !10, i64 8}
!27 = !{!"_ZTSN4juce9HeapBlockIPNS_22AudioProcessorListenerELb0EEE", !6, i64 0}
!28 = !{!"_ZTSN4juce9Component11SafePointerINS_20AudioProcessorEditorEEE", !29, i64 0}
!29 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEE", !30, i64 0}
!30 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !6, i64 0}
!31 = !{!"double", !7, i64 0}
!32 = !{!"_ZTSN4juce14AudioProcessor19ProcessingPrecisionE", !7, i64 0}
!33 = !{!"_ZTSN4juce15CriticalSectionE", !7, i64 0}
!34 = !{!"_ZTSN4juce10OwnedArrayINS_14AudioProcessor3BusENS_20DummyCriticalSectionEEE", !35, i64 0, !10, i64 16}
!35 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_14AudioProcessor3BusENS_20DummyCriticalSectionEEE", !36, i64 0, !10, i64 8}
!36 = !{!"_ZTSN4juce9HeapBlockIPNS_14AudioProcessor3BusELb0EEE", !6, i64 0}
!37 = !{!"_ZTSN4juce6StringE", !38, i64 0}
!38 = !{!"_ZTSN4juce16CharPointer_UTF8E", !6, i64 0}
!39 = !{!"_ZTSN4juce10OwnedArrayINS_23AudioProcessorParameterENS_20DummyCriticalSectionEEE", !40, i64 0, !10, i64 16}
!40 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_23AudioProcessorParameterENS_20DummyCriticalSectionEEE", !41, i64 0, !10, i64 8}
!41 = !{!"_ZTSN4juce9HeapBlockIPNS_23AudioProcessorParameterELb0EEE", !6, i64 0}
!42 = !{!"_ZTSN4juce12AsyncUpdaterE", !43, i64 8}
!43 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_12AsyncUpdater19AsyncUpdaterMessageEEE", !6, i64 0}
!44 = !{!"_ZTSN4juce21ReferenceCountedArrayINS_19AudioProcessorGraph4NodeENS_20DummyCriticalSectionEEE", !45, i64 0, !10, i64 16}
!45 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_19AudioProcessorGraph4NodeENS_20DummyCriticalSectionEEE", !46, i64 0, !10, i64 8}
!46 = !{!"_ZTSN4juce9HeapBlockIPNS_19AudioProcessorGraph4NodeELb0EEE", !6, i64 0}
!47 = !{!"_ZTSN4juce10OwnedArrayINS_19AudioProcessorGraph10ConnectionENS_20DummyCriticalSectionEEE", !48, i64 0, !10, i64 16}
!48 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_19AudioProcessorGraph10ConnectionENS_20DummyCriticalSectionEEE", !49, i64 0, !10, i64 8}
!49 = !{!"_ZTSN4juce9HeapBlockIPNS_19AudioProcessorGraph10ConnectionELb0EEE", !6, i64 0}
!50 = !{!"_ZTSN4juce10OwnedArrayINS_10MidiBufferENS_20DummyCriticalSectionEEE", !51, i64 0, !10, i64 16}
!51 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_10MidiBufferENS_20DummyCriticalSectionEEE", !52, i64 0, !10, i64 8}
!52 = !{!"_ZTSN4juce9HeapBlockIPNS_10MidiBufferELb0EEE", !6, i64 0}
!53 = !{!"_ZTSN4juce5ArrayIPvNS_20DummyCriticalSectionELi0EEE", !54, i64 0, !10, i64 16}
!54 = !{!"_ZTSN4juce19ArrayAllocationBaseIPvNS_20DummyCriticalSectionEEE", !55, i64 0, !10, i64 8}
!55 = !{!"_ZTSN4juce9HeapBlockIPvLb0EEE", !6, i64 0}
!56 = !{!"_ZTSN4juce13ScopedPointerINS_19AudioProcessorGraph32AudioProcessorGraphBufferHelpersEEE", !6, i64 0}
!57 = !{!"_ZTSN4juce10MidiBufferE", !58, i64 0}
!58 = !{!"_ZTSN4juce5ArrayIhNS_20DummyCriticalSectionELi0EEE", !59, i64 0, !10, i64 16}
!59 = !{!"_ZTSN4juce19ArrayAllocationBaseIhNS_20DummyCriticalSectionEEE", !60, i64 0, !10, i64 8}
!60 = !{!"_ZTSN4juce9HeapBlockIhLb0EEE", !6, i64 0}
!61 = !{i8 0, i8 2}
!62 = !{}
!63 = distinct !{!63, !64}
!64 = !{!"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::ReferenceCountedObjectPtr.87" = type { ptr }

; 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

declare void @_ZN4juce12AsyncUpdater18triggerAsyncUpdateEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce21ReferenceCountedArrayINS_19AudioProcessorGraph4NodeENS_20DummyCriticalSectionEE12getUncheckedEi(ptr dead_on_unwind noalias writable sret(%"class.juce::ReferenceCountedObjectPtr.87") align 8, ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4juce19AudioProcessorGraph10removeNodeEj(ptr noundef nonnull align 8 dereferenceable(417) %0, i32 noundef %1) local_unnamed_addr #4 align 2 {
  %3 = alloca %"class.juce::ReferenceCountedObjectPtr.87", align 8
  %4 = tail call noundef zeroext i1 @_ZN4juce19AudioProcessorGraph14disconnectNodeEj(ptr noundef nonnull align 8 dereferenceable(417) %0, i32 noundef %1)
  %5 = getelementptr inbounds i8, ptr %0, i64 272
  %6 = tail call noundef i32 @_ZNK4juce21ReferenceCountedArrayINS_19AudioProcessorGraph4NodeENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %5) #5
  br label %7

7:                                                ; preds = %9, %2
  %.07 = phi i32 [ %6, %2 ], [ %10, %9 ]
  %8 = icmp sgt i32 %.07, 0
  br i1 %8, label %9, label %.loopexit

9:                                                ; preds = %7
  %10 = add nsw i32 %.07, -1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  call void @_ZNK4juce21ReferenceCountedArrayINS_19AudioProcessorGraph4NodeENS_20DummyCriticalSectionEE12getUncheckedEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::ReferenceCountedObjectPtr.87") align 8 %3, ptr noundef nonnull align 8 dereferenceable(20) %5, i32 noundef %10) #5
  %11 = call noundef ptr @_ZNK4juce25ReferenceCountedObjectPtrINS_19AudioProcessorGraph4NodeEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %12 = getelementptr inbounds i8, ptr %11, i64 16
  %13 = load i32, ptr %12, align 8, !tbaa !5
  %14 = icmp eq i32 %13, %1
  call void @_ZN4juce25ReferenceCountedObjectPtrINS_19AudioProcessorGraph4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br i1 %14, label %15, label %7, !llvm.loop !19

15:                                               ; preds = %9
  call void @_ZN4juce21ReferenceCountedArrayINS_19AudioProcessorGraph4NodeENS_20DummyCriticalSectionEE6removeEi(ptr noundef nonnull align 8 dereferenceable(20) %5, i32 noundef %10)
  %16 = getelementptr inbounds i8, ptr %0, i64 416
  %17 = load i8, ptr %16, align 8, !tbaa !21, !range !61, !noundef !62
  %18 = trunc nuw i8 %17 to i1
  br i1 %18, label %19, label %.loopexit

19:                                               ; preds = %15
  %20 = getelementptr inbounds i8, ptr %0, i64 256
  call void @_ZN4juce12AsyncUpdater18triggerAsyncUpdateEv(ptr noundef nonnull align 8 dereferenceable(16) %20)
  br label %.loopexit

.loopexit:                                        ; preds = %7, %15, %19
  ret i1 %8
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce21ReferenceCountedArrayINS_19AudioProcessorGraph4NodeENS_20DummyCriticalSectionEE6removeEi(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) local_unnamed_addr #3 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 = { 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 #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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, !9, i64 16}
!6 = !{!"_ZTSN4juce19AudioProcessorGraph4NodeE", !7, i64 0, !9, i64 16, !12, i64 24, !17, i64 48, !18, i64 56}
!7 = !{!"_ZTSN4juce22ReferenceCountedObjectE", !8, i64 8}
!8 = !{!"_ZTSN4juce6AtomicIiEE", !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTSN4juce13NamedValueSetE", !13, i64 0}
!13 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !14, i64 0, !9, i64 16}
!14 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !15, i64 0, !9, i64 8}
!15 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !16, i64 0}
!16 = !{!"any pointer", !10, i64 0}
!17 = !{!"_ZTSN4juce13ScopedPointerINS_14AudioProcessorEEE", !16, i64 0}
!18 = !{!"bool", !10, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!22, !18, i64 416}
!22 = !{!"_ZTSN4juce19AudioProcessorGraphE", !23, i64 0, !42, i64 256, !44, i64 272, !47, i64 296, !9, i64 320, !50, i64 328, !53, i64 352, !56, i64 376, !16, i64 384, !57, i64 392, !18, i64 416}
!23 = !{!"_ZTSN4juce14AudioProcessorE", !24, i64 8, !16, i64 16, !25, i64 24, !28, i64 48, !31, i64 56, !9, i64 64, !9, i64 68, !18, i64 72, !18, i64 73, !32, i64 76, !33, i64 80, !33, i64 120, !34, i64 160, !34, i64 184, !37, i64 208, !37, i64 216, !9, i64 224, !9, i64 228, !39, i64 232}
!24 = !{!"_ZTSN4juce14AudioProcessor11WrapperTypeE", !10, i64 0}
!25 = !{!"_ZTSN4juce5ArrayIPNS_22AudioProcessorListenerENS_20DummyCriticalSectionELi0EEE", !26, i64 0, !9, i64 16}
!26 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_22AudioProcessorListenerENS_20DummyCriticalSectionEEE", !27, i64 0, !9, i64 8}
!27 = !{!"_ZTSN4juce9HeapBlockIPNS_22AudioProcessorListenerELb0EEE", !16, i64 0}
!28 = !{!"_ZTSN4juce9Component11SafePointerINS_20AudioProcessorEditorEEE", !29, i64 0}
!29 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEE", !30, i64 0}
!30 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !16, i64 0}
!31 = !{!"double", !10, i64 0}
!32 = !{!"_ZTSN4juce14AudioProcessor19ProcessingPrecisionE", !10, i64 0}
!33 = !{!"_ZTSN4juce15CriticalSectionE", !10, i64 0}
!34 = !{!"_ZTSN4juce10OwnedArrayINS_14AudioProcessor3BusENS_20DummyCriticalSectionEEE", !35, i64 0, !9, i64 16}
!35 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_14AudioProcessor3BusENS_20DummyCriticalSectionEEE", !36, i64 0, !9, i64 8}
!36 = !{!"_ZTSN4juce9HeapBlockIPNS_14AudioProcessor3BusELb0EEE", !16, i64 0}
!37 = !{!"_ZTSN4juce6StringE", !38, i64 0}
!38 = !{!"_ZTSN4juce16CharPointer_UTF8E", !16, i64 0}
!39 = !{!"_ZTSN4juce10OwnedArrayINS_23AudioProcessorParameterENS_20DummyCriticalSectionEEE", !40, i64 0, !9, i64 16}
!40 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_23AudioProcessorParameterENS_20DummyCriticalSectionEEE", !41, i64 0, !9, i64 8}
!41 = !{!"_ZTSN4juce9HeapBlockIPNS_23AudioProcessorParameterELb0EEE", !16, i64 0}
!42 = !{!"_ZTSN4juce12AsyncUpdaterE", !43, i64 8}
!43 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_12AsyncUpdater19AsyncUpdaterMessageEEE", !16, i64 0}
!44 = !{!"_ZTSN4juce21ReferenceCountedArrayINS_19AudioProcessorGraph4NodeENS_20DummyCriticalSectionEEE", !45, i64 0, !9, i64 16}
!45 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_19AudioProcessorGraph4NodeENS_20DummyCriticalSectionEEE", !46, i64 0, !9, i64 8}
!46 = !{!"_ZTSN4juce9HeapBlockIPNS_19AudioProcessorGraph4NodeELb0EEE", !16, i64 0}
!47 = !{!"_ZTSN4juce10OwnedArrayINS_19AudioProcessorGraph10ConnectionENS_20DummyCriticalSectionEEE", !48, i64 0, !9, i64 16}
!48 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_19AudioProcessorGraph10ConnectionENS_20DummyCriticalSectionEEE", !49, i64 0, !9, i64 8}
!49 = !{!"_ZTSN4juce9HeapBlockIPNS_19AudioProcessorGraph10ConnectionELb0EEE", !16, i64 0}
!50 = !{!"_ZTSN4juce10OwnedArrayINS_10MidiBufferENS_20DummyCriticalSectionEEE", !51, i64 0, !9, i64 16}
!51 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_10MidiBufferENS_20DummyCriticalSectionEEE", !52, i64 0, !9, i64 8}
!52 = !{!"_ZTSN4juce9HeapBlockIPNS_10MidiBufferELb0EEE", !16, i64 0}
!53 = !{!"_ZTSN4juce5ArrayIPvNS_20DummyCriticalSectionELi0EEE", !54, i64 0, !9, i64 16}
!54 = !{!"_ZTSN4juce19ArrayAllocationBaseIPvNS_20DummyCriticalSectionEEE", !55, i64 0, !9, i64 8}
!55 = !{!"_ZTSN4juce9HeapBlockIPvLb0EEE", !16, i64 0}
!56 = !{!"_ZTSN4juce13ScopedPointerINS_19AudioProcessorGraph32AudioProcessorGraphBufferHelpersEEE", !16, i64 0}
!57 = !{!"_ZTSN4juce10MidiBufferE", !58, i64 0}
!58 = !{!"_ZTSN4juce5ArrayIhNS_20DummyCriticalSectionELi0EEE", !59, i64 0, !9, i64 16}
!59 = !{!"_ZTSN4juce19ArrayAllocationBaseIhNS_20DummyCriticalSectionEEE", !60, i64 0, !9, i64 8}
!60 = !{!"_ZTSN4juce9HeapBlockIhLb0EEE", !16, i64 0}
!61 = !{i8 0, i8 2}
!62 = !{}


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