; 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.NullLogger = type { i8 }
%"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(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1)) #1 align 2

; 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 noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7vraudio14SpectralReverb18GetNextReverbBlockEmPNS_11ChannelViewES2_(ptr noundef nonnull align 8 dereferenceable(1242) %0, i64 noundef %1, ptr noundef %2, ptr noundef %3) #1 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %class.NullLogger, align 1
  %10 = alloca %class.NullLogger, align 1
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i64 %1, ptr %6, align 8, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %16 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #4
  %17 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %9)
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #4
  %18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %10)
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %19 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %16, i32 0, i32 18
  %20 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %19, i64 noundef 0)
  store ptr %20, ptr %11, align 8, !tbaa !5
  %21 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %16, i32 0, i32 17
  %22 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %21, i64 noundef 0)
  %23 = load ptr, ptr %11, align 8, !tbaa !5
  %24 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11ChannelViewaSERKS0_(ptr noundef nonnull align 8 dereferenceable(17) %23, ptr noundef nonnull align 8 dereferenceable(17) %22)
  %25 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %16, i32 0, i32 11
  %26 = load i64, ptr %6, align 8, !tbaa !9
  %27 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %25, i64 noundef %26)
  %28 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %27)
  %29 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %16, i32 0, i32 9
  %30 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %29, i64 noundef 0)
  %31 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %30)
  %32 = load ptr, ptr %11, align 8, !tbaa !5
  %33 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %32)
  call void @_ZN7vraudio30MultiplyAndAccumulatePointwiseEmPKfS1_Pf(i64 noundef 2049, ptr noundef %28, ptr noundef %31, ptr noundef %33)
  %34 = load ptr, ptr %11, align 8, !tbaa !5
  %35 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %16, i32 0, i32 11
  %36 = load i64, ptr %6, align 8, !tbaa !9
  %37 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %35, i64 noundef %36)
  %38 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11ChannelViewaSERKS0_(ptr noundef nonnull align 8 dereferenceable(17) %37, ptr noundef nonnull align 8 dereferenceable(17) %34)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  store i64 0, ptr %12, align 8, !tbaa !9
  br label %39

39:                                               ; preds = %73, %4
  %40 = load i64, ptr %12, align 8, !tbaa !9
  %41 = icmp ult i64 %40, 2
  br i1 %41, label %43, label %42

42:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %76

43:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %44 = call noundef i64 @_ZN7vraudio12_GLOBAL__N_123GetRandomIntegerInRangeEmm(i64 noundef 0, i64 noundef 14335)
  store i64 %44, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %45 = load i64, ptr %13, align 8, !tbaa !9
  %46 = call noundef i64 @_ZN7vraudio25FindNextAlignedArrayIndexEmmm(i64 noundef %45, i64 noundef 4, i64 noundef 64)
  store i64 %46, ptr %14, align 8, !tbaa !9
  %47 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %16, i32 0, i32 5
  %48 = load i64, ptr %14, align 8, !tbaa !9
  %49 = load ptr, ptr %11, align 8, !tbaa !5
  %50 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %16, i32 0, i32 6
  %51 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %50, i64 noundef 0)
  %52 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %16, i32 0, i32 6
  %53 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %52, i64 noundef 1)
  %54 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %16, i32 0, i32 16
  %55 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %54, i64 noundef 0)
  call void @_ZN7vraudio10FftManager46CanonicalFreqBufferFromMagnitudeAndSinCosPhaseEmRKNS_11ChannelViewES3_S3_PS1_(ptr noundef nonnull align 8 dereferenceable(184) %47, i64 noundef %48, ptr noundef nonnull align 8 dereferenceable(17) %49, ptr noundef nonnull align 8 dereferenceable(17) %51, ptr noundef nonnull align 8 dereferenceable(17) %53, ptr noundef %55)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %56 = load i64, ptr %12, align 8, !tbaa !9
  %57 = icmp eq i64 %56, 0
  br i1 %57, label %58, label %60

58:                                               ; preds = %43
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  br label %62

60:                                               ; preds = %43
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  br label %62

62:                                               ; preds = %60, %58
  %63 = phi ptr [ %59, %58 ], [ %61, %60 ]
  store ptr %63, ptr %15, align 8, !tbaa !5
  %64 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %16, i32 0, i32 5
  %65 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %16, i32 0, i32 16
  %66 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %65, i64 noundef 0)
  %67 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %16, i32 0, i32 16
  %68 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %67, i64 noundef 1)
  call void @_ZN7vraudio10FftManager24GetPffftFormatFreqBufferERKNS_11ChannelViewEPS1_(ptr noundef nonnull align 8 dereferenceable(184) %64, ptr noundef nonnull align 8 dereferenceable(17) %66, ptr noundef %68)
  %69 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %16, i32 0, i32 5
  %70 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %16, i32 0, i32 16
  %71 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %70, i64 noundef 1)
  %72 = load ptr, ptr %15, align 8, !tbaa !5
  call void @_ZN7vraudio10FftManager18TimeFromFreqDomainERKNS_11ChannelViewEPS1_(ptr noundef nonnull align 8 dereferenceable(184) %69, ptr noundef nonnull align 8 dereferenceable(17) %71, ptr noundef %72)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %73

73:                                               ; preds = %62
  %74 = load i64, ptr %12, align 8, !tbaa !9
  %75 = add i64 %74, 1
  store i64 %75, ptr %12, align 8, !tbaa !9
  br label %39, !llvm.loop !11

76:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  ret void
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i64 @_ZN7vraudio12_GLOBAL__N_123GetRandomIntegerInRangeEmm(i64 noundef, i64 noundef) #3

declare noundef i64 @_ZN7vraudio25FindNextAlignedArrayIndexEmmm(i64 noundef, i64 noundef, i64 noundef) #2

declare void @_ZN7vraudio10FftManager46CanonicalFreqBufferFromMagnitudeAndSinCosPhaseEmRKNS_11ChannelViewES3_S3_PS1_(ptr noundef nonnull align 8 dereferenceable(184), i64 noundef, ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(17), ptr noundef) #2

declare void @_ZN7vraudio10FftManager24GetPffftFormatFreqBufferERKNS_11ChannelViewEPS1_(ptr noundef nonnull align 8 dereferenceable(184), ptr noundef nonnull align 8 dereferenceable(17), ptr noundef) #2

declare void @_ZN7vraudio10FftManager18TimeFromFreqDomainERKNS_11ChannelViewEPS1_(ptr noundef nonnull align 8 dereferenceable(184), ptr noundef nonnull align 8 dereferenceable(17), ptr noundef) #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 = { inlinehint 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 #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 = distinct !{!11, !12}
!12 = !{!"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.NullLogger = type { i8 }

; 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 nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7vraudio14SpectralReverb18GetNextReverbBlockEmPNS_11ChannelViewES2_(ptr noundef nonnull align 8 dereferenceable(1242) %0, i64 noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #1 align 2 {
  %5 = alloca %class.NullLogger, align 1
  %6 = alloca %class.NullLogger, align 1
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #4
  %7 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %5)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #4
  %8 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %6)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #4
  %9 = getelementptr inbounds i8, ptr %0, i64 1072
  %10 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %9, i64 noundef 0)
  %11 = getelementptr inbounds i8, ptr %0, i64 1000
  %12 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %11, i64 noundef 0)
  %13 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11ChannelViewaSERKS0_(ptr noundef nonnull align 8 dereferenceable(17) %10, ptr noundef nonnull align 8 dereferenceable(17) %12)
  %14 = getelementptr inbounds i8, ptr %0, i64 576
  %15 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %14, i64 noundef %1)
  %16 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %15)
  %17 = getelementptr inbounds i8, ptr %0, i64 432
  %18 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %17, i64 noundef 0)
  %19 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %18)
  %20 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %10)
  call void @_ZN7vraudio30MultiplyAndAccumulatePointwiseEmPKfS1_Pf(i64 noundef 2049, ptr noundef %16, ptr noundef %19, ptr noundef %20)
  %21 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %14, i64 noundef %1)
  %22 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11ChannelViewaSERKS0_(ptr noundef nonnull align 8 dereferenceable(17) %21, ptr noundef nonnull align 8 dereferenceable(17) %10)
  %23 = getelementptr inbounds i8, ptr %0, i64 32
  %24 = getelementptr inbounds i8, ptr %0, i64 216
  %25 = getelementptr inbounds i8, ptr %0, i64 928
  %26 = call noundef i64 @_ZN7vraudio12_GLOBAL__N_123GetRandomIntegerInRangeEmm(i64 noundef 0, i64 noundef 14335)
  %27 = call noundef i64 @_ZN7vraudio25FindNextAlignedArrayIndexEmmm(i64 noundef %26, i64 noundef 4, i64 noundef 64)
  %28 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %24, i64 noundef 0)
  %29 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %24, i64 noundef 1)
  %30 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %25, i64 noundef 0)
  call void @_ZN7vraudio10FftManager46CanonicalFreqBufferFromMagnitudeAndSinCosPhaseEmRKNS_11ChannelViewES3_S3_PS1_(ptr noundef nonnull align 8 dereferenceable(184) %23, i64 noundef %27, ptr noundef nonnull align 8 dereferenceable(17) %10, ptr noundef nonnull align 8 dereferenceable(17) %28, ptr noundef nonnull align 8 dereferenceable(17) %29, ptr noundef nonnull %30)
  %31 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %25, i64 noundef 0)
  %32 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %25, i64 noundef 1)
  call void @_ZN7vraudio10FftManager24GetPffftFormatFreqBufferERKNS_11ChannelViewEPS1_(ptr noundef nonnull align 8 dereferenceable(184) %23, ptr noundef nonnull align 8 dereferenceable(17) %31, ptr noundef nonnull %32)
  %33 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %25, i64 noundef 1)
  call void @_ZN7vraudio10FftManager18TimeFromFreqDomainERKNS_11ChannelViewEPS1_(ptr noundef nonnull align 8 dereferenceable(184) %23, ptr noundef nonnull align 8 dereferenceable(17) %33, ptr noundef %2)
  %34 = call noundef i64 @_ZN7vraudio12_GLOBAL__N_123GetRandomIntegerInRangeEmm(i64 noundef 0, i64 noundef 14335)
  %35 = call noundef i64 @_ZN7vraudio25FindNextAlignedArrayIndexEmmm(i64 noundef %34, i64 noundef 4, i64 noundef 64)
  %36 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %24, i64 noundef 0)
  %37 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %24, i64 noundef 1)
  %38 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %25, i64 noundef 0)
  call void @_ZN7vraudio10FftManager46CanonicalFreqBufferFromMagnitudeAndSinCosPhaseEmRKNS_11ChannelViewES3_S3_PS1_(ptr noundef nonnull align 8 dereferenceable(184) %23, i64 noundef %35, ptr noundef nonnull align 8 dereferenceable(17) %10, ptr noundef nonnull align 8 dereferenceable(17) %36, ptr noundef nonnull align 8 dereferenceable(17) %37, ptr noundef nonnull %38)
  %39 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %25, i64 noundef 0)
  %40 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %25, i64 noundef 1)
  call void @_ZN7vraudio10FftManager24GetPffftFormatFreqBufferERKNS_11ChannelViewEPS1_(ptr noundef nonnull align 8 dereferenceable(184) %23, ptr noundef nonnull align 8 dereferenceable(17) %39, ptr noundef nonnull %40)
  %41 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %25, i64 noundef 1)
  call void @_ZN7vraudio10FftManager18TimeFromFreqDomainERKNS_11ChannelViewEPS1_(ptr noundef nonnull align 8 dereferenceable(184) %23, ptr noundef nonnull align 8 dereferenceable(17) %41, ptr noundef %3)
  ret void
}

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

declare void @_ZN7vraudio30MultiplyAndAccumulatePointwiseEmPKfS1_Pf(i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i64 @_ZN7vraudio12_GLOBAL__N_123GetRandomIntegerInRangeEmm(i64 noundef, i64 noundef) local_unnamed_addr #3

declare noundef i64 @_ZN7vraudio25FindNextAlignedArrayIndexEmmm(i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #2

declare void @_ZN7vraudio10FftManager46CanonicalFreqBufferFromMagnitudeAndSinCosPhaseEmRKNS_11ChannelViewES3_S3_PS1_(ptr noundef nonnull align 8 dereferenceable(184), i64 noundef, ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(17), ptr noundef) local_unnamed_addr #2

declare void @_ZN7vraudio10FftManager24GetPffftFormatFreqBufferERKNS_11ChannelViewEPS1_(ptr noundef nonnull align 8 dereferenceable(184), ptr noundef nonnull align 8 dereferenceable(17), ptr noundef) local_unnamed_addr #2

declare void @_ZN7vraudio10FftManager18TimeFromFreqDomainERKNS_11ChannelViewEPS1_(ptr noundef nonnull align 8 dereferenceable(184), ptr noundef nonnull align 8 dereferenceable(17), ptr noundef) local_unnamed_addr #2

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 = { "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 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)"}


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