; LLVM IR from glaretechnologies/substrata :: resonance-audio/resonance_audio/dsp (spectral_reverb)

; 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.vraudio::SpectralReverb" = type <{ i32, [4 x i8], i64, i64, i64, %"class.vraudio::FftManager", %"class.vraudio::AudioBuffer", %"class.vraudio::AudioBuffer", %"class.vraudio::AudioBuffer", %"class.vraudio::AudioBuffer", %"class.vraudio::AudioBuffer", %"class.vraudio::AudioBuffer", %"class.vraudio::AudioBuffer", %"class.vraudio::CircularBuffer", %"class.std::vector.5", %"class.vraudio::AudioBuffer", %"class.vraudio::AudioBuffer", %"class.vraudio::AudioBuffer", %"class.vraudio::AudioBuffer", %"class.vraudio::AudioBuffer", %"class.std::vector.10", i8, i8, [6 x i8] }>
%"class.vraudio::FftManager" = type { i64, i64, float, [4 x i8], %"class.vraudio::AudioBuffer", %"class.vraudio::AudioBuffer", ptr, ptr }
%"class.vraudio::CircularBuffer" = type { i64, i64, %"class.vraudio::AudioBuffer", i64, i64, i64 }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::unique_ptr<vraudio::CircularBuffer>, std::allocator<std::unique_ptr<vraudio::CircularBuffer>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<vraudio::CircularBuffer>, std::allocator<std::unique_ptr<vraudio::CircularBuffer>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<vraudio::CircularBuffer>, std::allocator<std::unique_ptr<vraudio::CircularBuffer>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<vraudio::CircularBuffer>, std::allocator<std::unique_ptr<vraudio::CircularBuffer>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.vraudio::AudioBuffer" = type <{ i64, %"class.std::vector", i64, %"class.std::vector.0", i32, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<float, vraudio::AlignedAllocator<float, 64>>::_Vector_impl" }
%"struct.std::_Vector_base<float, vraudio::AlignedAllocator<float, 64>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, vraudio::AlignedAllocator<float, 64>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, vraudio::AlignedAllocator<float, 64>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<vraudio::ChannelView, std::allocator<vraudio::ChannelView>>::_Vector_impl" }
%"struct.std::_Vector_base<vraudio::ChannelView, std::allocator<vraudio::ChannelView>>::_Vector_impl" = type { %"struct.std::_Vector_base<vraudio::ChannelView, std::allocator<vraudio::ChannelView>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vraudio::ChannelView, std::allocator<vraudio::ChannelView>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<vraudio::AudioBuffer, std::allocator<vraudio::AudioBuffer>>::_Vector_impl" }
%"struct.std::_Vector_base<vraudio::AudioBuffer, std::allocator<vraudio::AudioBuffer>>::_Vector_impl" = type { %"struct.std::_Vector_base<vraudio::AudioBuffer, std::allocator<vraudio::AudioBuffer>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vraudio::AudioBuffer, std::allocator<vraudio::AudioBuffer>>::_Vector_impl_data" = type { ptr, ptr, 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 nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68), i64 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7vraudio11ChannelView5ClearEv(ptr noundef nonnull align 8 dereferenceable(17)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17)) #1 align 2

declare noundef zeroext i1 @_ZN7vraudio14CircularBuffer12InsertBufferERKNS_11ChannelViewE(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 8 dereferenceable(17)) #2

declare void @_ZN7vraudio12AddPointwiseEmPKfS1_Pf(i64 noundef, ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7vraudio14SpectralReverb17AccumulateOverlapEmRKNS_11ChannelViewE(ptr noundef nonnull align 8 dereferenceable(1242) %0, i64 noundef %1, ptr noundef nonnull align 8 dereferenceable(17) %2) #1 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  %10 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store i64 0, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %11 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %10, i32 0, i32 4
  %12 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %12, ptr %8, align 8, !tbaa !9
  br label %13

13:                                               ; preds = %31, %3
  %14 = load i64, ptr %7, align 8, !tbaa !9
  %15 = icmp ult i64 %14, 4
  br i1 %15, label %17, label %16

16:                                               ; preds = %13
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %37

17:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %18 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %10, i32 0, i32 20
  %19 = load i64, ptr %5, align 8, !tbaa !9
  %20 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNSt6vectorIN7vraudio11AudioBufferESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %19) #4
  %21 = load i64, ptr %8, align 8, !tbaa !9
  %22 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %20, i64 noundef %21)
  %23 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %22)
  store ptr %23, ptr %9, align 8, !tbaa !5
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = call noundef ptr @_ZNK7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %24)
  %26 = load i64, ptr %7, align 8, !tbaa !9
  %27 = mul i64 %26, 1024
  %28 = getelementptr inbounds float, ptr %25, i64 %27
  %29 = load ptr, ptr %9, align 8, !tbaa !5
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN7vraudio12AddPointwiseEmPKfS1_Pf(i64 noundef 1024, ptr noundef %28, ptr noundef %29, ptr noundef %30)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %31

31:                                               ; preds = %17
  %32 = load i64, ptr %7, align 8, !tbaa !9
  %33 = add i64 %32, 1
  store i64 %33, ptr %7, align 8, !tbaa !9
  %34 = load i64, ptr %8, align 8, !tbaa !9
  %35 = add i64 %34, 1
  %36 = urem i64 %35, 4
  store i64 %36, ptr %8, align 8, !tbaa !9
  br label %13, !llvm.loop !35

37:                                               ; preds = %16
  %38 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %10, i32 0, i32 14
  %39 = load i64, ptr %5, align 8, !tbaa !9
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrIN7vraudio14CircularBufferESt14default_deleteIS2_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %39) #4
  %41 = call noundef ptr @_ZNKSt10unique_ptrIN7vraudio14CircularBufferESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %40) #4
  %42 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %10, i32 0, i32 20
  %43 = load i64, ptr %5, align 8, !tbaa !9
  %44 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNSt6vectorIN7vraudio11AudioBufferESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %42, i64 noundef %43) #4
  %45 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %10, i32 0, i32 4
  %46 = load i64, ptr %45, align 8, !tbaa !11
  %47 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %44, i64 noundef %46)
  %48 = call noundef zeroext i1 @_ZN7vraudio14CircularBuffer12InsertBufferERKNS_11ChannelViewE(ptr noundef nonnull align 8 dereferenceable(112) %41, ptr noundef nonnull align 8 dereferenceable(17) %47)
  %49 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %10, i32 0, i32 20
  %50 = load i64, ptr %5, align 8, !tbaa !9
  %51 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNSt6vectorIN7vraudio11AudioBufferESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %49, i64 noundef %50) #4
  %52 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %10, i32 0, i32 4
  %53 = load i64, ptr %52, align 8, !tbaa !11
  %54 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %51, i64 noundef %53)
  call void @_ZN7vraudio11ChannelView5ClearEv(ptr noundef nonnull align 8 dereferenceable(17) %54)
  ret void
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(68) ptr @_ZNSt6vectorIN7vraudio11AudioBufferESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17)) #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 = { "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 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 24}
!12 = !{!"_ZTSN7vraudio14SpectralReverbE", !13, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !14, i64 32, !16, i64 216, !16, i64 288, !16, i64 360, !16, i64 432, !16, i64 504, !16, i64 576, !16, i64 648, !25, i64 720, !26, i64 832, !16, i64 856, !16, i64 928, !16, i64 1000, !16, i64 1072, !16, i64 1144, !30, i64 1216, !34, i64 1240, !34, i64 1241}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTSN7vraudio10FftManagerE", !10, i64 0, !10, i64 8, !15, i64 16, !16, i64 24, !16, i64 96, !6, i64 168, !6, i64 176}
!15 = !{!"float", !7, i64 0}
!16 = !{!"_ZTSN7vraudio11AudioBufferE", !10, i64 0, !17, i64 8, !10, i64 32, !21, i64 40, !13, i64 64}
!17 = !{!"_ZTSSt6vectorIfN7vraudio16AlignedAllocatorIfLm64EEEE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIfN7vraudio16AlignedAllocatorIfLm64EEEE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIfN7vraudio16AlignedAllocatorIfLm64EEEE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIfN7vraudio16AlignedAllocatorIfLm64EEEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTSSt6vectorIN7vraudio11ChannelViewESaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIN7vraudio11ChannelViewESaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN7vraudio11ChannelViewESaIS1_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIN7vraudio11ChannelViewESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"_ZTSN7vraudio14CircularBufferE", !10, i64 0, !10, i64 8, !16, i64 16, !10, i64 88, !10, i64 96, !10, i64 104}
!26 = !{!"_ZTSSt6vectorISt10unique_ptrIN7vraudio14CircularBufferESt14default_deleteIS2_EESaIS5_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseISt10unique_ptrIN7vraudio14CircularBufferESt14default_deleteIS2_EESaIS5_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN7vraudio14CircularBufferESt14default_deleteIS2_EESaIS5_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN7vraudio14CircularBufferESt14default_deleteIS2_EESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = !{!"_ZTSSt6vectorIN7vraudio11AudioBufferESaIS1_EE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseIN7vraudio11AudioBufferESaIS1_EE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIN7vraudio11AudioBufferESaIS1_EE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIN7vraudio11AudioBufferESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!34 = !{!"bool", !7, i64 0}
!35 = distinct !{!35, !36}
!36 = !{!"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"

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7vraudio11ChannelView5ClearEv(ptr noundef nonnull align 8 dereferenceable(17)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17)) local_unnamed_addr #0 align 2

declare noundef zeroext i1 @_ZN7vraudio14CircularBuffer12InsertBufferERKNS_11ChannelViewE(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 8 dereferenceable(17)) local_unnamed_addr #1

declare void @_ZN7vraudio12AddPointwiseEmPKfS1_Pf(i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7vraudio14SpectralReverb17AccumulateOverlapEmRKNS_11ChannelViewE(ptr noundef nonnull align 8 dereferenceable(1242) %0, i64 noundef %1, ptr noundef nonnull align 8 dereferenceable(17) %2) local_unnamed_addr #0 align 2 {
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  %5 = load i64, ptr %4, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 1216
  %7 = tail call noundef nonnull align 8 dereferenceable(68) ptr @_ZNSt6vectorIN7vraudio11AudioBufferESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %1) #3
  %8 = tail call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %7, i64 noundef %5)
  %9 = tail call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %8)
  %10 = tail call noundef ptr @_ZNK7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %2)
  tail call void @_ZN7vraudio12AddPointwiseEmPKfS1_Pf(i64 noundef 1024, ptr noundef %10, ptr noundef %9, ptr noundef %9)
  %11 = add i64 %5, 1
  %12 = and i64 %11, 3
  %13 = tail call noundef nonnull align 8 dereferenceable(68) ptr @_ZNSt6vectorIN7vraudio11AudioBufferESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %1) #3
  %14 = tail call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %13, i64 noundef %12)
  %15 = tail call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %14)
  %16 = tail call noundef ptr @_ZNK7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %2)
  %17 = getelementptr inbounds i8, ptr %16, i64 4096
  tail call void @_ZN7vraudio12AddPointwiseEmPKfS1_Pf(i64 noundef 1024, ptr noundef nonnull %17, ptr noundef %15, ptr noundef %15)
  %18 = and i64 %5, 3
  %19 = xor i64 %18, 2
  %20 = tail call noundef nonnull align 8 dereferenceable(68) ptr @_ZNSt6vectorIN7vraudio11AudioBufferESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %1) #3
  %21 = tail call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %20, i64 noundef %19)
  %22 = tail call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %21)
  %23 = tail call noundef ptr @_ZNK7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %2)
  %24 = getelementptr inbounds i8, ptr %23, i64 8192
  tail call void @_ZN7vraudio12AddPointwiseEmPKfS1_Pf(i64 noundef 1024, ptr noundef nonnull %24, ptr noundef %22, ptr noundef %22)
  %25 = add nuw nsw i64 %19, 1
  %26 = and i64 %25, 3
  %27 = tail call noundef nonnull align 8 dereferenceable(68) ptr @_ZNSt6vectorIN7vraudio11AudioBufferESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %1) #3
  %28 = tail call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %27, i64 noundef %26)
  %29 = tail call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %28)
  %30 = tail call noundef ptr @_ZNK7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %2)
  %31 = getelementptr inbounds i8, ptr %30, i64 12288
  tail call void @_ZN7vraudio12AddPointwiseEmPKfS1_Pf(i64 noundef 1024, ptr noundef nonnull %31, ptr noundef %29, ptr noundef %29)
  %32 = getelementptr inbounds i8, ptr %0, i64 832
  %33 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrIN7vraudio14CircularBufferESt14default_deleteIS2_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %1) #3
  %34 = tail call noundef ptr @_ZNKSt10unique_ptrIN7vraudio14CircularBufferESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %33) #3
  %35 = tail call noundef nonnull align 8 dereferenceable(68) ptr @_ZNSt6vectorIN7vraudio11AudioBufferESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %1) #3
  %36 = load i64, ptr %4, align 8, !tbaa !5
  %37 = tail call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %35, i64 noundef %36)
  %38 = tail call noundef zeroext i1 @_ZN7vraudio14CircularBuffer12InsertBufferERKNS_11ChannelViewE(ptr noundef nonnull align 8 dereferenceable(112) %34, ptr noundef nonnull align 8 dereferenceable(17) %37)
  %39 = tail call noundef nonnull align 8 dereferenceable(68) ptr @_ZNSt6vectorIN7vraudio11AudioBufferESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %1) #3
  %40 = load i64, ptr %4, align 8, !tbaa !5
  %41 = tail call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %39, i64 noundef %40)
  tail call void @_ZN7vraudio11ChannelView5ClearEv(ptr noundef nonnull align 8 dereferenceable(17) %41)
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrIN7vraudio14CircularBufferESt14default_deleteIS2_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(68) ptr @_ZNSt6vectorIN7vraudio11AudioBufferESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17)) 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!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, !10, i64 24}
!6 = !{!"_ZTSN7vraudio14SpectralReverbE", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !11, i64 32, !13, i64 216, !13, i64 288, !13, i64 360, !13, i64 432, !13, i64 504, !13, i64 576, !13, i64 648, !23, i64 720, !24, i64 832, !13, i64 856, !13, i64 928, !13, i64 1000, !13, i64 1072, !13, i64 1144, !28, i64 1216, !32, i64 1240, !32, i64 1241}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"_ZTSN7vraudio10FftManagerE", !10, i64 0, !10, i64 8, !12, i64 16, !13, i64 24, !13, i64 96, !18, i64 168, !18, i64 176}
!12 = !{!"float", !8, i64 0}
!13 = !{!"_ZTSN7vraudio11AudioBufferE", !10, i64 0, !14, i64 8, !10, i64 32, !19, i64 40, !7, i64 64}
!14 = !{!"_ZTSSt6vectorIfN7vraudio16AlignedAllocatorIfLm64EEEE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIfN7vraudio16AlignedAllocatorIfLm64EEEE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIfN7vraudio16AlignedAllocatorIfLm64EEEE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIfN7vraudio16AlignedAllocatorIfLm64EEEE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!18 = !{!"any pointer", !8, i64 0}
!19 = !{!"_ZTSSt6vectorIN7vraudio11ChannelViewESaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIN7vraudio11ChannelViewESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN7vraudio11ChannelViewESaIS1_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN7vraudio11ChannelViewESaIS1_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!23 = !{!"_ZTSN7vraudio14CircularBufferE", !10, i64 0, !10, i64 8, !13, i64 16, !10, i64 88, !10, i64 96, !10, i64 104}
!24 = !{!"_ZTSSt6vectorISt10unique_ptrIN7vraudio14CircularBufferESt14default_deleteIS2_EESaIS5_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseISt10unique_ptrIN7vraudio14CircularBufferESt14default_deleteIS2_EESaIS5_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN7vraudio14CircularBufferESt14default_deleteIS2_EESaIS5_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN7vraudio14CircularBufferESt14default_deleteIS2_EESaIS5_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!28 = !{!"_ZTSSt6vectorIN7vraudio11AudioBufferESaIS1_EE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseIN7vraudio11AudioBufferESaIS1_EE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIN7vraudio11AudioBufferESaIS1_EE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIN7vraudio11AudioBufferESaIS1_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!32 = !{!"bool", !8, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass