; 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 nonnull align 4 dereferenceable(4) ptr @_ZN7vraudio11ChannelViewixEm(ptr noundef nonnull align 8 dereferenceable(17), 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7vraudio14SpectralReverb7ProcessERKNS_11ChannelViewEPS1_S4_(ptr noundef nonnull align 8 dereferenceable(1242) %0, ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef %2, ptr noundef %3) #1 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, 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 %class.NullLogger, align 1
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %12 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #5
  %13 = 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) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #5
  %14 = 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) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #5
  %15 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %11)
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  %16 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 21
  %17 = load i8, ptr %16, align 8, !tbaa !9, !range !34, !noundef !35
  %18 = trunc i8 %17 to i1
  br i1 %18, label %23, label %19

19:                                               ; preds = %4
  %20 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 22
  %21 = load i8, ptr %20, align 1, !tbaa !36, !range !34, !noundef !35
  %22 = trunc i8 %21 to i1
  br i1 %22, label %23, label %26

23:                                               ; preds = %19, %4
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN7vraudio11ChannelView5ClearEv(ptr noundef nonnull align 8 dereferenceable(17) %24)
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN7vraudio11ChannelView5ClearEv(ptr noundef nonnull align 8 dereferenceable(17) %25)
  br label %143

26:                                               ; preds = %19
  %27 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 13
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = call noundef zeroext i1 @_ZN7vraudio14CircularBuffer12InsertBufferERKNS_11ChannelViewE(ptr noundef nonnull align 8 dereferenceable(112) %27, ptr noundef nonnull align 8 dereferenceable(17) %28)
  br label %30

30:                                               ; preds = %34, %26
  %31 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 13
  %32 = call noundef i64 @_ZNK7vraudio14CircularBuffer12GetOccupancyEv(ptr noundef nonnull align 8 dereferenceable(112) %31)
  %33 = icmp uge i64 %32, 1024
  br i1 %33, label %34, label %132

34:                                               ; preds = %30
  %35 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 12
  %36 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %35, i64 noundef 0)
  %37 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7vraudio11ChannelViewixEm(ptr noundef nonnull align 8 dereferenceable(17) %36, i64 noundef 1024)
  %38 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 12
  %39 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %38, i64 noundef 0)
  %40 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7vraudio11ChannelViewixEm(ptr noundef nonnull align 8 dereferenceable(17) %39, i64 noundef 0)
  %41 = call noundef ptr @_ZSt6copy_nIPfmS0_ET1_T_T0_S1_(ptr noundef %37, i64 noundef 3072, ptr noundef %40)
  %42 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 13
  %43 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 12
  %44 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %43, i64 noundef 0)
  %45 = call noundef zeroext i1 @_ZN7vraudio14CircularBuffer24RetrieveBufferWithOffsetEmPNS_11ChannelViewE(ptr noundef nonnull align 8 dereferenceable(112) %42, i64 noundef 3072, ptr noundef %44)
  %46 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 5
  %47 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 12
  %48 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %47, i64 noundef 0)
  %49 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 16
  %50 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %49, i64 noundef 0)
  call void @_ZN7vraudio10FftManager18FreqFromTimeDomainERKNS_11ChannelViewEPS1_(ptr noundef nonnull align 8 dereferenceable(184) %46, ptr noundef nonnull align 8 dereferenceable(17) %48, ptr noundef %50)
  %51 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 5
  %52 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 16
  %53 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %52, i64 noundef 0)
  %54 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 16
  %55 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %54, i64 noundef 1)
  call void @_ZN7vraudio10FftManager28GetCanonicalFormatFreqBufferERKNS_11ChannelViewEPS1_(ptr noundef nonnull align 8 dereferenceable(184) %51, ptr noundef nonnull align 8 dereferenceable(17) %53, ptr noundef %55)
  %56 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 5
  %57 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 16
  %58 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %57, i64 noundef 1)
  %59 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 17
  %60 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %59, i64 noundef 0)
  call void @_ZN7vraudio10FftManager32MagnitudeFromCanonicalFreqBufferERKNS_11ChannelViewEPS1_(ptr noundef nonnull align 8 dereferenceable(184) %56, ptr noundef nonnull align 8 dereferenceable(17) %58, ptr noundef %60)
  %61 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 10
  %62 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %61, i64 noundef 0)
  %63 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %62)
  %64 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 17
  %65 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %64, i64 noundef 0)
  %66 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %65)
  %67 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 17
  %68 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %67, i64 noundef 0)
  %69 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %68)
  call void @_ZN7vraudio17MultiplyPointwiseEmPKfS1_Pf(i64 noundef 2049, ptr noundef %63, ptr noundef %66, ptr noundef %69)
  %70 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 3
  %71 = load i64, ptr %70, align 8, !tbaa !37
  %72 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 15
  %73 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %72, i64 noundef 0)
  %74 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 15
  %75 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %74, i64 noundef 1)
  call void @_ZN7vraudio14SpectralReverb18GetNextReverbBlockEmPNS_11ChannelViewES2_(ptr noundef nonnull align 8 dereferenceable(1242) %12, i64 noundef %71, ptr noundef %73, ptr noundef %75)
  %76 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 3
  %77 = load i64, ptr %76, align 8, !tbaa !37
  %78 = add i64 %77, 1
  %79 = urem i64 %78, 3
  %80 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 3
  store i64 %79, ptr %80, align 8, !tbaa !37
  %81 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 3
  %82 = load i64, ptr %81, align 8, !tbaa !37
  %83 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 15
  %84 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %83, i64 noundef 2)
  %85 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 15
  %86 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %85, i64 noundef 3)
  call void @_ZN7vraudio14SpectralReverb18GetNextReverbBlockEmPNS_11ChannelViewES2_(ptr noundef nonnull align 8 dereferenceable(1242) %12, i64 noundef %82, ptr noundef %84, ptr noundef %86)
  %87 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 15
  %88 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %87, i64 noundef 0)
  %89 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %88)
  %90 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 15
  %91 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %90, i64 noundef 2)
  %92 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %91)
  %93 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 15
  %94 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %93, i64 noundef 0)
  %95 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %94)
  call void @_ZN7vraudio12AddPointwiseEmPKfS1_Pf(i64 noundef 4096, ptr noundef %89, ptr noundef %92, ptr noundef %95)
  %96 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 15
  %97 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %96, i64 noundef 1)
  %98 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %97)
  %99 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 15
  %100 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %99, i64 noundef 3)
  %101 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %100)
  %102 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 15
  %103 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %102, i64 noundef 1)
  %104 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %103)
  call void @_ZN7vraudio12AddPointwiseEmPKfS1_Pf(i64 noundef 4096, ptr noundef %98, ptr noundef %101, ptr noundef %104)
  %105 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 15
  %106 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %105, i64 noundef 0)
  %107 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %106)
  %108 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 8
  %109 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %108, i64 noundef 0)
  %110 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %109)
  %111 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 15
  %112 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %111, i64 noundef 0)
  %113 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %112)
  call void @_ZN7vraudio17MultiplyPointwiseEmPKfS1_Pf(i64 noundef 4096, ptr noundef %107, ptr noundef %110, ptr noundef %113)
  %114 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 15
  %115 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %114, i64 noundef 1)
  %116 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %115)
  %117 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 8
  %118 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %117, i64 noundef 0)
  %119 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %118)
  %120 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 15
  %121 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %120, i64 noundef 1)
  %122 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %121)
  call void @_ZN7vraudio17MultiplyPointwiseEmPKfS1_Pf(i64 noundef 4096, ptr noundef %116, ptr noundef %119, ptr noundef %122)
  %123 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 15
  %124 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %123, i64 noundef 0)
  call void @_ZN7vraudio14SpectralReverb17AccumulateOverlapEmRKNS_11ChannelViewE(ptr noundef nonnull align 8 dereferenceable(1242) %12, i64 noundef 0, ptr noundef nonnull align 8 dereferenceable(17) %124)
  %125 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 15
  %126 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %125, i64 noundef 1)
  call void @_ZN7vraudio14SpectralReverb17AccumulateOverlapEmRKNS_11ChannelViewE(ptr noundef nonnull align 8 dereferenceable(1242) %12, i64 noundef 1, ptr noundef nonnull align 8 dereferenceable(17) %126)
  %127 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 4
  %128 = load i64, ptr %127, align 8, !tbaa !38
  %129 = add i64 %128, 1
  %130 = urem i64 %129, 4
  %131 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 4
  store i64 %130, ptr %131, align 8, !tbaa !38
  br label %30, !llvm.loop !39

132:                                              ; preds = %30
  %133 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 14
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrIN7vraudio14CircularBufferESt14default_deleteIS2_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %133, i64 noundef 0) #5
  %135 = call noundef ptr @_ZNKSt10unique_ptrIN7vraudio14CircularBufferESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %134) #5
  %136 = load ptr, ptr %7, align 8, !tbaa !5
  %137 = call noundef zeroext i1 @_ZN7vraudio14CircularBuffer14RetrieveBufferEPNS_11ChannelViewE(ptr noundef nonnull align 8 dereferenceable(112) %135, ptr noundef %136)
  %138 = getelementptr inbounds %"class.vraudio::SpectralReverb", ptr %12, i32 0, i32 14
  %139 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrIN7vraudio14CircularBufferESt14default_deleteIS2_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %138, i64 noundef 1) #5
  %140 = call noundef ptr @_ZNKSt10unique_ptrIN7vraudio14CircularBufferESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %139) #5
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  %142 = call noundef zeroext i1 @_ZN7vraudio14CircularBuffer14RetrieveBufferEPNS_11ChannelViewE(ptr noundef nonnull align 8 dereferenceable(112) %140, ptr noundef %141)
  br label %143

143:                                              ; preds = %132, %23
  ret void
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt6copy_nIPfmS0_ET1_T_T0_S1_(ptr noundef, i64 noundef, ptr noundef) #4

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7vraudio14SpectralReverb18GetNextReverbBlockEmPNS_11ChannelViewES2_(ptr noundef nonnull align 8 dereferenceable(1242), i64 noundef, ptr noundef, ptr noundef) #1 align 2

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

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

; 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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7vraudio11ChannelView5ClearEv(ptr noundef nonnull align 8 dereferenceable(17)) 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 @_ZN7vraudio14SpectralReverb7ProcessERKNS_11ChannelViewEPS1_S4_(ptr noundef nonnull align 8 dereferenceable(1242) %0, ptr noundef nonnull align 8 dereferenceable(17) %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
  %7 = alloca %class.NullLogger, align 1
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #5
  %8 = 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) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #5
  %9 = 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) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #5
  %10 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %7)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
  %11 = getelementptr inbounds i8, ptr %0, i64 1240
  %12 = load i8, ptr %11, align 8, !tbaa !5, !range !33, !noundef !34
  %13 = trunc nuw i8 %12 to i1
  br i1 %13, label %18, label %14

14:                                               ; preds = %4
  %15 = getelementptr inbounds i8, ptr %0, i64 1241
  %16 = load i8, ptr %15, align 1, !tbaa !35, !range !33, !noundef !34
  %17 = trunc nuw i8 %16 to i1
  br i1 %17, label %18, label %19

18:                                               ; preds = %14, %4
  call void @_ZN7vraudio11ChannelView5ClearEv(ptr noundef nonnull align 8 dereferenceable(17) %2)
  call void @_ZN7vraudio11ChannelView5ClearEv(ptr noundef nonnull align 8 dereferenceable(17) %3)
  br label %99

19:                                               ; preds = %14
  %20 = getelementptr inbounds i8, ptr %0, i64 720
  %21 = call noundef zeroext i1 @_ZN7vraudio14CircularBuffer12InsertBufferERKNS_11ChannelViewE(ptr noundef nonnull align 8 dereferenceable(112) %20, ptr noundef nonnull align 8 dereferenceable(17) %1)
  %22 = call noundef i64 @_ZNK7vraudio14CircularBuffer12GetOccupancyEv(ptr noundef nonnull align 8 dereferenceable(112) %20)
  %23 = icmp ugt i64 %22, 1023
  br i1 %23, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %19
  %24 = getelementptr inbounds i8, ptr %0, i64 648
  %25 = getelementptr inbounds i8, ptr %0, i64 32
  %26 = getelementptr inbounds i8, ptr %0, i64 928
  %27 = getelementptr inbounds i8, ptr %0, i64 1000
  %28 = getelementptr inbounds i8, ptr %0, i64 504
  %29 = getelementptr inbounds i8, ptr %0, i64 16
  %30 = getelementptr inbounds i8, ptr %0, i64 856
  %31 = getelementptr inbounds i8, ptr %0, i64 360
  %32 = getelementptr inbounds i8, ptr %0, i64 24
  br label %33

33:                                               ; preds = %.lr.ph, %33
  %34 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %24, i64 noundef 0)
  %35 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7vraudio11ChannelViewixEm(ptr noundef nonnull align 8 dereferenceable(17) %34, i64 noundef 1024)
  %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 4 dereferenceable(4) ptr @_ZN7vraudio11ChannelViewixEm(ptr noundef nonnull align 8 dereferenceable(17) %36, i64 noundef 0)
  %38 = call noundef ptr @_ZSt6copy_nIPfmS0_ET1_T_T0_S1_(ptr noundef nonnull %35, i64 noundef 3072, ptr noundef nonnull %37)
  %39 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %24, i64 noundef 0)
  %40 = call noundef zeroext i1 @_ZN7vraudio14CircularBuffer24RetrieveBufferWithOffsetEmPNS_11ChannelViewE(ptr noundef nonnull align 8 dereferenceable(112) %20, i64 noundef 3072, ptr noundef nonnull %39)
  %41 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %24, i64 noundef 0)
  %42 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %26, i64 noundef 0)
  call void @_ZN7vraudio10FftManager18FreqFromTimeDomainERKNS_11ChannelViewEPS1_(ptr noundef nonnull align 8 dereferenceable(184) %25, ptr noundef nonnull align 8 dereferenceable(17) %41, ptr noundef nonnull %42)
  %43 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %26, i64 noundef 0)
  %44 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %26, i64 noundef 1)
  call void @_ZN7vraudio10FftManager28GetCanonicalFormatFreqBufferERKNS_11ChannelViewEPS1_(ptr noundef nonnull align 8 dereferenceable(184) %25, ptr noundef nonnull align 8 dereferenceable(17) %43, ptr noundef nonnull %44)
  %45 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %26, i64 noundef 1)
  %46 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %27, i64 noundef 0)
  call void @_ZN7vraudio10FftManager32MagnitudeFromCanonicalFreqBufferERKNS_11ChannelViewEPS1_(ptr noundef nonnull align 8 dereferenceable(184) %25, ptr noundef nonnull align 8 dereferenceable(17) %45, ptr noundef nonnull %46)
  %47 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %28, i64 noundef 0)
  %48 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %47)
  %49 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %27, i64 noundef 0)
  %50 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %49)
  %51 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %27, i64 noundef 0)
  %52 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %51)
  call void @_ZN7vraudio17MultiplyPointwiseEmPKfS1_Pf(i64 noundef 2049, ptr noundef %48, ptr noundef %50, ptr noundef %52)
  %53 = load i64, ptr %29, align 8, !tbaa !36
  %54 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %30, i64 noundef 0)
  %55 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %30, i64 noundef 1)
  call void @_ZN7vraudio14SpectralReverb18GetNextReverbBlockEmPNS_11ChannelViewES2_(ptr noundef nonnull align 8 dereferenceable(1242) %0, i64 noundef %53, ptr noundef nonnull %54, ptr noundef nonnull %55)
  %56 = load i64, ptr %29, align 8, !tbaa !36
  %57 = add i64 %56, 1
  %58 = urem i64 %57, 3
  store i64 %58, ptr %29, align 8, !tbaa !36
  %59 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %30, i64 noundef 2)
  %60 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %30, i64 noundef 3)
  call void @_ZN7vraudio14SpectralReverb18GetNextReverbBlockEmPNS_11ChannelViewES2_(ptr noundef nonnull align 8 dereferenceable(1242) %0, i64 noundef %58, ptr noundef nonnull %59, ptr noundef nonnull %60)
  %61 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %30, i64 noundef 0)
  %62 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %61)
  %63 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %30, i64 noundef 2)
  %64 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %63)
  %65 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %30, i64 noundef 0)
  %66 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %65)
  call void @_ZN7vraudio12AddPointwiseEmPKfS1_Pf(i64 noundef 4096, ptr noundef %62, ptr noundef %64, ptr noundef %66)
  %67 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %30, i64 noundef 1)
  %68 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %67)
  %69 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %30, i64 noundef 3)
  %70 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %69)
  %71 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %30, i64 noundef 1)
  %72 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %71)
  call void @_ZN7vraudio12AddPointwiseEmPKfS1_Pf(i64 noundef 4096, ptr noundef %68, ptr noundef %70, ptr noundef %72)
  %73 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %30, i64 noundef 0)
  %74 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %73)
  %75 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %31, i64 noundef 0)
  %76 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %75)
  %77 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %30, i64 noundef 0)
  %78 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %77)
  call void @_ZN7vraudio17MultiplyPointwiseEmPKfS1_Pf(i64 noundef 4096, ptr noundef %74, ptr noundef %76, ptr noundef %78)
  %79 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %30, i64 noundef 1)
  %80 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %79)
  %81 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %31, i64 noundef 0)
  %82 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %81)
  %83 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %30, i64 noundef 1)
  %84 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %83)
  call void @_ZN7vraudio17MultiplyPointwiseEmPKfS1_Pf(i64 noundef 4096, ptr noundef %80, ptr noundef %82, ptr noundef %84)
  %85 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %30, i64 noundef 0)
  call void @_ZN7vraudio14SpectralReverb17AccumulateOverlapEmRKNS_11ChannelViewE(ptr noundef nonnull align 8 dereferenceable(1242) %0, i64 noundef 0, ptr noundef nonnull align 8 dereferenceable(17) %85)
  %86 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %30, i64 noundef 1)
  call void @_ZN7vraudio14SpectralReverb17AccumulateOverlapEmRKNS_11ChannelViewE(ptr noundef nonnull align 8 dereferenceable(1242) %0, i64 noundef 1, ptr noundef nonnull align 8 dereferenceable(17) %86)
  %87 = load i64, ptr %32, align 8, !tbaa !37
  %88 = add i64 %87, 1
  %89 = and i64 %88, 3
  store i64 %89, ptr %32, align 8, !tbaa !37
  %90 = call noundef i64 @_ZNK7vraudio14CircularBuffer12GetOccupancyEv(ptr noundef nonnull align 8 dereferenceable(112) %20)
  %91 = icmp ugt i64 %90, 1023
  br i1 %91, label %33, label %._crit_edge, !llvm.loop !38

._crit_edge:                                      ; preds = %33, %19
  %92 = getelementptr inbounds i8, ptr %0, i64 832
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrIN7vraudio14CircularBufferESt14default_deleteIS2_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %92, i64 noundef 0) #5
  %94 = call noundef ptr @_ZNKSt10unique_ptrIN7vraudio14CircularBufferESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %93) #5
  %95 = call noundef zeroext i1 @_ZN7vraudio14CircularBuffer14RetrieveBufferEPNS_11ChannelViewE(ptr noundef nonnull align 8 dereferenceable(112) %94, ptr noundef %2)
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrIN7vraudio14CircularBufferESt14default_deleteIS2_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %92, i64 noundef 1) #5
  %97 = call noundef ptr @_ZNKSt10unique_ptrIN7vraudio14CircularBufferESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %96) #5
  %98 = call noundef zeroext i1 @_ZN7vraudio14CircularBuffer14RetrieveBufferEPNS_11ChannelViewE(ptr noundef nonnull align 8 dereferenceable(112) %97, ptr noundef %3)
  br label %99

99:                                               ; preds = %._crit_edge, %18
  ret void
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt6copy_nIPfmS0_ET1_T_T0_S1_(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #4

declare noundef zeroext i1 @_ZN7vraudio14CircularBuffer24RetrieveBufferWithOffsetEmPNS_11ChannelViewE(ptr noundef nonnull align 8 dereferenceable(112), i64 noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7vraudio14SpectralReverb18GetNextReverbBlockEmPNS_11ChannelViewES2_(ptr noundef nonnull align 8 dereferenceable(1242), i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1 align 2

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

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

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

declare noundef zeroext i1 @_ZN7vraudio14CircularBuffer14RetrieveBufferEPNS_11ChannelViewE(ptr noundef nonnull align 8 dereferenceable(112), 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 = { 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 = { 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 #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, !32, i64 1240}
!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}
!33 = !{i8 0, i8 2}
!34 = !{}
!35 = !{!6, !32, i64 1241}
!36 = !{!6, !10, i64 16}
!37 = !{!6, !10, i64 24}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}


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