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

; 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::ReverbOnsetUpdateProcessor" = type { i32, i64, i64, float, %"class.std::vector", %"class.std::vector.0", %"class.std::vector.0", %"class.vraudio::AudioBuffer", %"class.vraudio::AudioBuffer", ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_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<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.vraudio::AudioBuffer" = type <{ i64, %"class.std::vector.5", i64, %"class.std::vector.7", i32, [4 x i8] }>
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = 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.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = 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 }

@_ZN7vraudioL27kCurveCorrectionMultipliersE = external hidden constant [2485 x float], align 16

; 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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7vraudio26ReverbOnsetUpdateProcessor7ProcessERKSt6vectorINS_11AudioBufferESaIS2_EES6_PNS_11ChannelViewES8_(ptr noundef nonnull align 8 dereferenceable(264) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef %3, ptr noundef %4) #2 align 2 {
  %6 = alloca i1, align 1
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca %class.NullLogger, align 1
  %14 = alloca %class.NullLogger, align 1
  %15 = alloca %class.NullLogger, align 1
  %16 = alloca %class.NullLogger, align 1
  %17 = alloca %class.NullLogger, align 1
  %18 = alloca %class.NullLogger, align 1
  %19 = alloca %class.NullLogger, align 1
  %20 = alloca %class.NullLogger, align 1
  %21 = alloca %class.NullLogger, align 1
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i64, align 8
  %25 = alloca ptr, align 8
  %26 = alloca i64, align 8
  %27 = alloca i32, align 4
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca i32, align 4
  %31 = alloca float, align 4
  %32 = alloca ptr, align 8
  %33 = alloca float, align 4
  %34 = alloca i64, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  %35 = load ptr, ptr %7, align 8
  %36 = getelementptr inbounds %"class.vraudio::ReverbOnsetUpdateProcessor", ptr %35, i32 0, i32 1
  %37 = load i64, ptr %36, align 8, !tbaa !9
  %38 = getelementptr inbounds %"class.vraudio::ReverbOnsetUpdateProcessor", ptr %35, i32 0, i32 2
  %39 = load i64, ptr %38, align 8, !tbaa !31
  %40 = icmp uge i64 %37, %39
  br i1 %40, label %41, label %43

41:                                               ; preds = %5
  %42 = getelementptr inbounds %"class.vraudio::ReverbOnsetUpdateProcessor", ptr %35, i32 0, i32 1
  store i64 0, ptr %42, align 8, !tbaa !9
  store i1 false, ptr %6, align 1
  br label %247

43:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %44 = getelementptr inbounds %"class.vraudio::ReverbOnsetUpdateProcessor", ptr %35, i32 0, i32 7
  %45 = call noundef i64 @_ZNK7vraudio11AudioBuffer10num_framesEv(ptr noundef nonnull align 8 dereferenceable(68) %44)
  store i64 %45, ptr %12, align 8, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #7
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %13)
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #7
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %14)
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #7
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %15)
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #7
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %16)
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #7
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %17)
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #7
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %18)
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #7
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %19)
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #7
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %20)
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #7
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %21)
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  %55 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN7vraudio11ChannelView5ClearEv(ptr noundef nonnull align 8 dereferenceable(17) %55)
  %56 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN7vraudio11ChannelView5ClearEv(ptr noundef nonnull align 8 dereferenceable(17) %56)
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %57 = getelementptr inbounds %"class.vraudio::ReverbOnsetUpdateProcessor", ptr %35, i32 0, i32 7
  %58 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %57, i64 noundef 0)
  store ptr %58, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %59 = getelementptr inbounds %"class.vraudio::ReverbOnsetUpdateProcessor", ptr %35, i32 0, i32 7
  %60 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %59, i64 noundef 1)
  store ptr %60, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %61 = load i64, ptr %12, align 8, !tbaa !32
  %62 = getelementptr inbounds %"class.vraudio::ReverbOnsetUpdateProcessor", ptr %35, i32 0, i32 1
  %63 = load i64, ptr %62, align 8, !tbaa !9
  %64 = add i64 %61, %63
  %65 = icmp ule i64 %64, 6144
  br i1 %65, label %66, label %68

66:                                               ; preds = %43
  %67 = load i64, ptr %12, align 8, !tbaa !32
  br label %72

68:                                               ; preds = %43
  %69 = getelementptr inbounds %"class.vraudio::ReverbOnsetUpdateProcessor", ptr %35, i32 0, i32 1
  %70 = load i64, ptr %69, align 8, !tbaa !9
  %71 = call noundef i64 @_ZN7vraudio12_GLOBAL__N_17absdiffEmm(i64 noundef 6144, i64 noundef %70)
  br label %72

72:                                               ; preds = %68, %66
  %73 = phi i64 [ %67, %66 ], [ %71, %68 ]
  store i64 %73, ptr %24, align 8, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %74 = getelementptr inbounds %"class.vraudio::ReverbOnsetUpdateProcessor", ptr %35, i32 0, i32 8
  %75 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %74, i64 noundef 0)
  store ptr %75, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  store i64 0, ptr %26, align 8, !tbaa !32
  br label %76

76:                                               ; preds = %239, %72
  %77 = load i64, ptr %26, align 8, !tbaa !32
  %78 = getelementptr inbounds %"class.vraudio::ReverbOnsetUpdateProcessor", ptr %35, i32 0, i32 4
  %79 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %78) #7
  %80 = icmp ult i64 %77, %79
  br i1 %80, label %82, label %81

81:                                               ; preds = %76
  store i32 2, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br label %242

82:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = load i64, ptr %26, align 8, !tbaa !32
  %85 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNKSt6vectorIN7vraudio11AudioBufferESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %83, i64 noundef %84) #7
  %86 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZNK7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %85, i64 noundef 0)
  store ptr %86, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = load i64, ptr %26, align 8, !tbaa !32
  %89 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNKSt6vectorIN7vraudio11AudioBufferESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %88) #7
  %90 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZNK7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %89, i64 noundef 0)
  store ptr %90, ptr %29, align 8, !tbaa !5
  %91 = load i64, ptr %12, align 8, !tbaa !32
  %92 = getelementptr inbounds %"class.vraudio::ReverbOnsetUpdateProcessor", ptr %35, i32 0, i32 3
  %93 = load float, ptr %92, align 8, !tbaa !33
  %94 = load ptr, ptr %28, align 8, !tbaa !5
  %95 = call noundef ptr @_ZNK7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %94)
  %96 = getelementptr inbounds %"class.vraudio::ReverbOnsetUpdateProcessor", ptr %35, i32 0, i32 1
  %97 = load i64, ptr %96, align 8, !tbaa !9
  %98 = getelementptr inbounds float, ptr %95, i64 %97
  %99 = load ptr, ptr %22, align 8, !tbaa !5
  %100 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %99)
  call void @_ZN7vraudio14ScalarMultiplyEmfPKfPf(i64 noundef %91, float noundef %93, ptr noundef %98, ptr noundef %100)
  %101 = load i64, ptr %12, align 8, !tbaa !32
  %102 = getelementptr inbounds %"class.vraudio::ReverbOnsetUpdateProcessor", ptr %35, i32 0, i32 3
  %103 = load float, ptr %102, align 8, !tbaa !33
  %104 = load ptr, ptr %29, align 8, !tbaa !5
  %105 = call noundef ptr @_ZNK7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %104)
  %106 = getelementptr inbounds %"class.vraudio::ReverbOnsetUpdateProcessor", ptr %35, i32 0, i32 1
  %107 = load i64, ptr %106, align 8, !tbaa !9
  %108 = getelementptr inbounds float, ptr %105, i64 %107
  %109 = load ptr, ptr %23, align 8, !tbaa !5
  %110 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %109)
  call void @_ZN7vraudio14ScalarMultiplyEmfPKfPf(i64 noundef %101, float noundef %103, ptr noundef %108, ptr noundef %110)
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  %111 = getelementptr inbounds %"class.vraudio::ReverbOnsetUpdateProcessor", ptr %35, i32 0, i32 4
  %112 = load i64, ptr %26, align 8, !tbaa !32
  %113 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %111, i64 noundef %112) #7
  %114 = load i32, ptr %113, align 4, !tbaa !34
  store i32 %114, ptr %30, align 4, !tbaa !34
  %115 = load i32, ptr %30, align 4, !tbaa !34
  %116 = icmp ne i32 %115, -1
  br i1 %116, label %117, label %192

117:                                              ; preds = %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  %118 = load i32, ptr %30, align 4, !tbaa !34
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [2485 x float], ptr @_ZN7vraudioL27kCurveCorrectionMultipliersE, i64 0, i64 %119
  %121 = load float, ptr %120, align 4, !tbaa !35
  store float %121, ptr %31, align 4, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  %122 = getelementptr inbounds %"class.vraudio::ReverbOnsetUpdateProcessor", ptr %35, i32 0, i32 1
  %123 = load i64, ptr %122, align 8, !tbaa !9
  %124 = icmp ult i64 %123, 6144
  br i1 %124, label %125, label %175

125:                                              ; preds = %117
  %126 = load i32, ptr %30, align 4, !tbaa !34
  %127 = sext i32 %126 to i64
  %128 = icmp uge i64 %127, 51
  br i1 %128, label %129, label %144

129:                                              ; preds = %125
  %130 = getelementptr inbounds %"class.vraudio::ReverbOnsetUpdateProcessor", ptr %35, i32 0, i32 10
  %131 = load ptr, ptr %130, align 8, !tbaa !36
  %132 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %131, i64 noundef 1)
  store ptr %132, ptr %32, align 8, !tbaa !5
  %133 = getelementptr inbounds %"class.vraudio::ReverbOnsetUpdateProcessor", ptr %35, i32 0, i32 9
  %134 = load ptr, ptr %133, align 8, !tbaa !37
  %135 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %134, i64 noundef 1)
  %136 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %135)
  %137 = getelementptr inbounds %"class.vraudio::ReverbOnsetUpdateProcessor", ptr %35, i32 0, i32 1
  %138 = load i64, ptr %137, align 8, !tbaa !9
  %139 = getelementptr inbounds float, ptr %136, i64 %138
  %140 = load i64, ptr %24, align 8, !tbaa !32
  %141 = load ptr, ptr %25, align 8, !tbaa !5
  %142 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %141)
  %143 = call noundef ptr @_ZSt6copy_nIPfmS0_ET1_T_T0_S1_(ptr noundef %139, i64 noundef %140, ptr noundef %142)
  br label %159

144:                                              ; preds = %125
  %145 = getelementptr inbounds %"class.vraudio::ReverbOnsetUpdateProcessor", ptr %35, i32 0, i32 10
  %146 = load ptr, ptr %145, align 8, !tbaa !36
  %147 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %146, i64 noundef 0)
  store ptr %147, ptr %32, align 8, !tbaa !5
  %148 = getelementptr inbounds %"class.vraudio::ReverbOnsetUpdateProcessor", ptr %35, i32 0, i32 9
  %149 = load ptr, ptr %148, align 8, !tbaa !37
  %150 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %149, i64 noundef 0)
  %151 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %150)
  %152 = getelementptr inbounds %"class.vraudio::ReverbOnsetUpdateProcessor", ptr %35, i32 0, i32 1
  %153 = load i64, ptr %152, align 8, !tbaa !9
  %154 = getelementptr inbounds float, ptr %151, i64 %153
  %155 = load i64, ptr %24, align 8, !tbaa !32
  %156 = load ptr, ptr %25, align 8, !tbaa !5
  %157 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %156)
  %158 = call noundef ptr @_ZSt6copy_nIPfmS0_ET1_T_T0_S1_(ptr noundef %154, i64 noundef %155, ptr noundef %157)
  br label %159

159:                                              ; preds = %144, %129
  %160 = load i64, ptr %24, align 8, !tbaa !32
  %161 = load float, ptr %31, align 4, !tbaa !35
  %162 = load ptr, ptr %32, align 8, !tbaa !5
  %163 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %162)
  %164 = getelementptr inbounds %"class.vraudio::ReverbOnsetUpdateProcessor", ptr %35, i32 0, i32 1
  %165 = load i64, ptr %164, align 8, !tbaa !9
  %166 = getelementptr inbounds float, ptr %163, i64 %165
  %167 = load ptr, ptr %25, align 8, !tbaa !5
  %168 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %167)
  call void @_ZN7vraudio27ScalarMultiplyAndAccumulateEmfPKfPf(i64 noundef %160, float noundef %161, ptr noundef %166, ptr noundef %168)
  %169 = load ptr, ptr %25, align 8, !tbaa !5
  %170 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %169)
  %171 = load i64, ptr %24, align 8, !tbaa !32
  %172 = getelementptr inbounds float, ptr %170, i64 %171
  %173 = load ptr, ptr %25, align 8, !tbaa !5
  %174 = call noundef ptr @_ZN7vraudio11ChannelView3endEv(ptr noundef nonnull align 8 dereferenceable(17) %173)
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  store float 0.000000e+00, ptr %33, align 4, !tbaa !35
  call void @_ZSt4fillIPffEvT_S1_RKT0_(ptr noundef %172, ptr noundef %174, ptr noundef nonnull align 4 dereferenceable(4) %33)
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  br label %177

175:                                              ; preds = %117
  %176 = load ptr, ptr %25, align 8, !tbaa !5
  call void @_ZN7vraudio11ChannelView5ClearEv(ptr noundef nonnull align 8 dereferenceable(17) %176)
  br label %177

177:                                              ; preds = %175, %159
  %178 = load i64, ptr %12, align 8, !tbaa !32
  %179 = load ptr, ptr %25, align 8, !tbaa !5
  %180 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %179)
  %181 = load ptr, ptr %22, align 8, !tbaa !5
  %182 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %181)
  %183 = load ptr, ptr %10, align 8, !tbaa !5
  %184 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %183)
  call void @_ZN7vraudio30MultiplyAndAccumulatePointwiseEmPKfS1_Pf(i64 noundef %178, ptr noundef %180, ptr noundef %182, ptr noundef %184)
  %185 = load i64, ptr %12, align 8, !tbaa !32
  %186 = load ptr, ptr %25, align 8, !tbaa !5
  %187 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %186)
  %188 = load ptr, ptr %23, align 8, !tbaa !5
  %189 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %188)
  %190 = load ptr, ptr %11, align 8, !tbaa !5
  %191 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %190)
  call void @_ZN7vraudio30MultiplyAndAccumulatePointwiseEmPKfS1_Pf(i64 noundef %185, ptr noundef %187, ptr noundef %189, ptr noundef %191)
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  br label %238

192:                                              ; preds = %82
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  store i64 0, ptr %34, align 8, !tbaa !32
  br label %193

193:                                              ; preds = %234, %192
  %194 = load i64, ptr %34, align 8, !tbaa !32
  %195 = load i64, ptr %12, align 8, !tbaa !32
  %196 = icmp ult i64 %194, %195
  br i1 %196, label %198, label %197

197:                                              ; preds = %193
  store i32 5, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  br label %237

198:                                              ; preds = %193
  %199 = getelementptr inbounds %"class.vraudio::ReverbOnsetUpdateProcessor", ptr %35, i32 0, i32 5
  %200 = load i64, ptr %26, align 8, !tbaa !32
  %201 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %199, i64 noundef %200) #7
  %202 = load float, ptr %201, align 4, !tbaa !35
  %203 = load ptr, ptr %22, align 8, !tbaa !5
  %204 = load i64, ptr %34, align 8, !tbaa !32
  %205 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7vraudio11ChannelViewixEm(ptr noundef nonnull align 8 dereferenceable(17) %203, i64 noundef %204)
  %206 = load float, ptr %205, align 4, !tbaa !35
  %207 = load ptr, ptr %10, align 8, !tbaa !5
  %208 = load i64, ptr %34, align 8, !tbaa !32
  %209 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7vraudio11ChannelViewixEm(ptr noundef nonnull align 8 dereferenceable(17) %207, i64 noundef %208)
  %210 = load float, ptr %209, align 4, !tbaa !35
  %211 = call float @llvm.fmuladd.f32(float %202, float %206, float %210)
  store float %211, ptr %209, align 4, !tbaa !35
  %212 = getelementptr inbounds %"class.vraudio::ReverbOnsetUpdateProcessor", ptr %35, i32 0, i32 5
  %213 = load i64, ptr %26, align 8, !tbaa !32
  %214 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %212, i64 noundef %213) #7
  %215 = load float, ptr %214, align 4, !tbaa !35
  %216 = load ptr, ptr %23, align 8, !tbaa !5
  %217 = load i64, ptr %34, align 8, !tbaa !32
  %218 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7vraudio11ChannelViewixEm(ptr noundef nonnull align 8 dereferenceable(17) %216, i64 noundef %217)
  %219 = load float, ptr %218, align 4, !tbaa !35
  %220 = load ptr, ptr %11, align 8, !tbaa !5
  %221 = load i64, ptr %34, align 8, !tbaa !32
  %222 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7vraudio11ChannelViewixEm(ptr noundef nonnull align 8 dereferenceable(17) %220, i64 noundef %221)
  %223 = load float, ptr %222, align 4, !tbaa !35
  %224 = call float @llvm.fmuladd.f32(float %215, float %219, float %223)
  store float %224, ptr %222, align 4, !tbaa !35
  %225 = getelementptr inbounds %"class.vraudio::ReverbOnsetUpdateProcessor", ptr %35, i32 0, i32 6
  %226 = load i64, ptr %26, align 8, !tbaa !32
  %227 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %225, i64 noundef %226) #7
  %228 = load float, ptr %227, align 4, !tbaa !35
  %229 = getelementptr inbounds %"class.vraudio::ReverbOnsetUpdateProcessor", ptr %35, i32 0, i32 5
  %230 = load i64, ptr %26, align 8, !tbaa !32
  %231 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %229, i64 noundef %230) #7
  %232 = load float, ptr %231, align 4, !tbaa !35
  %233 = fmul float %232, %228
  store float %233, ptr %231, align 4, !tbaa !35
  br label %234

234:                                              ; preds = %198
  %235 = load i64, ptr %34, align 8, !tbaa !32
  %236 = add i64 %235, 1
  store i64 %236, ptr %34, align 8, !tbaa !32
  br label %193, !llvm.loop !38

237:                                              ; preds = %197
  br label %238

238:                                              ; preds = %237, %177
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br label %239

239:                                              ; preds = %238
  %240 = load i64, ptr %26, align 8, !tbaa !32
  %241 = add i64 %240, 1
  store i64 %241, ptr %26, align 8, !tbaa !32
  br label %76, !llvm.loop !40

242:                                              ; preds = %81
  %243 = load i64, ptr %12, align 8, !tbaa !32
  %244 = getelementptr inbounds %"class.vraudio::ReverbOnsetUpdateProcessor", ptr %35, i32 0, i32 1
  %245 = load i64, ptr %244, align 8, !tbaa !9
  %246 = add i64 %245, %243
  store i64 %246, ptr %244, align 8, !tbaa !9
  store i1 true, ptr %6, align 1
  store i32 1, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %247

247:                                              ; preds = %242, %41
  %248 = load i1, ptr %6, align 1
  ret i1 %248
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK7vraudio11AudioBuffer10num_framesEv(ptr noundef nonnull align 8 dereferenceable(68)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7vraudio11ChannelView5ClearEv(ptr noundef nonnull align 8 dereferenceable(17)) #2 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) #2 align 2

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

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

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

declare void @_ZN7vraudio14ScalarMultiplyEmfPKfPf(i64 noundef, float noundef, ptr noundef, ptr noundef) #4

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

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

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

declare void @_ZN7vraudio27ScalarMultiplyAndAccumulateEmfPKfPf(i64 noundef, float noundef, ptr noundef, ptr noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPffEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) #5

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #6

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 = { 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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, !12, i64 8}
!10 = !{!"_ZTSN7vraudio26ReverbOnsetUpdateProcessorE", !11, i64 0, !12, i64 8, !12, i64 16, !13, i64 24, !14, i64 32, !18, i64 56, !18, i64 80, !22, i64 104, !22, i64 176, !6, i64 248, !6, i64 256}
!11 = !{!"int", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = !{!"_ZTSSt6vectorIiSaIiEE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!"_ZTSSt6vectorIfSaIfEE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!"_ZTSN7vraudio11AudioBufferE", !12, i64 0, !23, i64 8, !12, i64 32, !27, i64 40, !11, i64 64}
!23 = !{!"_ZTSSt6vectorIfN7vraudio16AlignedAllocatorIfLm64EEEE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIfN7vraudio16AlignedAllocatorIfLm64EEEE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIfN7vraudio16AlignedAllocatorIfLm64EEEE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIfN7vraudio16AlignedAllocatorIfLm64EEEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!"_ZTSSt6vectorIN7vraudio11ChannelViewESaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIN7vraudio11ChannelViewESaIS1_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIN7vraudio11ChannelViewESaIS1_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIN7vraudio11ChannelViewESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!31 = !{!10, !12, i64 16}
!32 = !{!12, !12, i64 0}
!33 = !{!10, !13, i64 24}
!34 = !{!11, !11, i64 0}
!35 = !{!13, !13, i64 0}
!36 = !{!10, !6, i64 256}
!37 = !{!10, !6, i64 248}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}
!40 = distinct !{!40, !39}


; 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 }

@_ZN7vraudioL27kCurveCorrectionMultipliersE = external hidden local_unnamed_addr constant [2485 x float], align 16

; 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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7vraudio26ReverbOnsetUpdateProcessor7ProcessERKSt6vectorINS_11AudioBufferESaIS2_EES6_PNS_11ChannelViewES8_(ptr noundef nonnull align 8 dereferenceable(264) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #2 align 2 {
  %6 = alloca %class.NullLogger, align 1
  %7 = alloca %class.NullLogger, align 1
  %8 = alloca %class.NullLogger, align 1
  %9 = alloca %class.NullLogger, align 1
  %10 = alloca %class.NullLogger, align 1
  %11 = alloca %class.NullLogger, align 1
  %12 = alloca %class.NullLogger, align 1
  %13 = alloca %class.NullLogger, align 1
  %14 = alloca %class.NullLogger, align 1
  %15 = alloca float, align 4
  %16 = getelementptr inbounds i8, ptr %0, i64 8
  %17 = load i64, ptr %16, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %0, i64 16
  %19 = load i64, ptr %18, align 8, !tbaa !30
  %.not = icmp ult i64 %17, %19
  br i1 %.not, label %20, label %124

20:                                               ; preds = %5
  %21 = getelementptr inbounds i8, ptr %0, i64 104
  %22 = tail call noundef i64 @_ZNK7vraudio11AudioBuffer10num_framesEv(ptr noundef nonnull align 8 dereferenceable(68) %21)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #7
  %23 = 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) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #7
  %24 = 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) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #7
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %8)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #7
  %26 = 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 nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #7
  %27 = 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 nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #7
  %28 = 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 nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #7
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %12)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #7
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %13)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #7
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %14)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #7
  call void @_ZN7vraudio11ChannelView5ClearEv(ptr noundef nonnull align 8 dereferenceable(17) %3)
  call void @_ZN7vraudio11ChannelView5ClearEv(ptr noundef nonnull align 8 dereferenceable(17) %4)
  %32 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %21, i64 noundef 0)
  %33 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %21, i64 noundef 1)
  %34 = load i64, ptr %16, align 8, !tbaa !5
  %35 = add i64 %34, %22
  %36 = icmp ult i64 %35, 6145
  br i1 %36, label %39, label %37

37:                                               ; preds = %20
  %38 = call noundef i64 @_ZN7vraudio12_GLOBAL__N_17absdiffEmm(i64 noundef 6144, i64 noundef %34)
  br label %39

39:                                               ; preds = %20, %37
  %40 = phi i64 [ %38, %37 ], [ %22, %20 ]
  %41 = getelementptr inbounds i8, ptr %0, i64 176
  %42 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %41, i64 noundef 0)
  %43 = getelementptr inbounds i8, ptr %0, i64 32
  %44 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #7
  %.not65 = icmp eq i64 %44, 0
  br i1 %.not65, label %._crit_edge, label %.lr.ph64

.lr.ph64:                                         ; preds = %39
  %45 = getelementptr inbounds i8, ptr %0, i64 24
  %46 = getelementptr inbounds i8, ptr %0, i64 256
  %47 = getelementptr inbounds i8, ptr %0, i64 248
  %.not66 = icmp eq i64 %22, 0
  %48 = getelementptr inbounds i8, ptr %0, i64 56
  %49 = getelementptr inbounds i8, ptr %0, i64 80
  br label %52

._crit_edge:                                      ; preds = %.loopexit, %39
  %50 = load i64, ptr %16, align 8, !tbaa !5
  %51 = add i64 %50, %22
  br label %124

52:                                               ; preds = %.lr.ph64, %.loopexit
  %.05963 = phi i64 [ 0, %.lr.ph64 ], [ %121, %.loopexit ]
  %53 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNKSt6vectorIN7vraudio11AudioBufferESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.05963) #7
  %54 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZNK7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %53, i64 noundef 0)
  %55 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNKSt6vectorIN7vraudio11AudioBufferESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.05963) #7
  %56 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZNK7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %55, i64 noundef 0)
  %57 = load float, ptr %45, align 8, !tbaa !31
  %58 = call noundef ptr @_ZNK7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %54)
  %59 = load i64, ptr %16, align 8, !tbaa !5
  %60 = getelementptr inbounds float, ptr %58, i64 %59
  %61 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %32)
  call void @_ZN7vraudio14ScalarMultiplyEmfPKfPf(i64 noundef %22, float noundef %57, ptr noundef %60, ptr noundef %61)
  %62 = load float, ptr %45, align 8, !tbaa !31
  %63 = call noundef ptr @_ZNK7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %56)
  %64 = load i64, ptr %16, align 8, !tbaa !5
  %65 = getelementptr inbounds float, ptr %63, i64 %64
  %66 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %33)
  call void @_ZN7vraudio14ScalarMultiplyEmfPKfPf(i64 noundef %22, float noundef %62, ptr noundef %65, ptr noundef %66)
  %67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %.05963) #7
  %68 = load i32, ptr %67, align 4, !tbaa !32
  %.not61 = icmp eq i32 %68, -1
  br i1 %.not61, label %.preheader, label %69

.preheader:                                       ; preds = %52
  br i1 %.not66, label %.loopexit, label %.lr.ph

69:                                               ; preds = %52
  %70 = load i64, ptr %16, align 8, !tbaa !5
  %71 = icmp ult i64 %70, 6144
  br i1 %71, label %72, label %93

72:                                               ; preds = %69
  %73 = sext i32 %68 to i64
  %74 = getelementptr inbounds [2485 x float], ptr @_ZN7vraudioL27kCurveCorrectionMultipliersE, i64 0, i64 %73
  %75 = load float, ptr %74, align 4, !tbaa !33
  %76 = icmp ugt i32 %68, 50
  %77 = load ptr, ptr %46, align 8, !tbaa !34
  %. = zext i1 %76 to i64
  %78 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %77, i64 noundef %.)
  %79 = load ptr, ptr %47, align 8, !tbaa !35
  %80 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %79, i64 noundef %.)
  %81 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %80)
  %82 = load i64, ptr %16, align 8, !tbaa !5
  %83 = getelementptr inbounds float, ptr %81, i64 %82
  %84 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %42)
  %85 = call noundef ptr @_ZSt6copy_nIPfmS0_ET1_T_T0_S1_(ptr noundef %83, i64 noundef %40, ptr noundef %84)
  %86 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %78)
  %87 = load i64, ptr %16, align 8, !tbaa !5
  %88 = getelementptr inbounds float, ptr %86, i64 %87
  %89 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %42)
  call void @_ZN7vraudio27ScalarMultiplyAndAccumulateEmfPKfPf(i64 noundef %40, float noundef %75, ptr noundef %88, ptr noundef %89)
  %90 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %42)
  %91 = getelementptr inbounds float, ptr %90, i64 %40
  %92 = call noundef ptr @_ZN7vraudio11ChannelView3endEv(ptr noundef nonnull align 8 dereferenceable(17) %42)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #7
  store float 0.000000e+00, ptr %15, align 4, !tbaa !33
  call void @_ZSt4fillIPffEvT_S1_RKT0_(ptr noundef %91, ptr noundef %92, ptr noundef nonnull align 4 dereferenceable(4) %15)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #7
  br label %94

93:                                               ; preds = %69
  call void @_ZN7vraudio11ChannelView5ClearEv(ptr noundef nonnull align 8 dereferenceable(17) %42)
  br label %94

94:                                               ; preds = %93, %72
  %95 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %42)
  %96 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %32)
  %97 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %3)
  call void @_ZN7vraudio30MultiplyAndAccumulatePointwiseEmPKfS1_Pf(i64 noundef %22, ptr noundef %95, ptr noundef %96, ptr noundef %97)
  %98 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %42)
  %99 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %33)
  %100 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %4)
  call void @_ZN7vraudio30MultiplyAndAccumulatePointwiseEmPKfS1_Pf(i64 noundef %22, ptr noundef %98, ptr noundef %99, ptr noundef %100)
  br label %.loopexit

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %.062 = phi i64 [ %120, %.lr.ph ], [ 0, %.preheader ]
  %101 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %.05963) #7
  %102 = load float, ptr %101, align 4, !tbaa !33
  %103 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7vraudio11ChannelViewixEm(ptr noundef nonnull align 8 dereferenceable(17) %32, i64 noundef %.062)
  %104 = load float, ptr %103, align 4, !tbaa !33
  %105 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7vraudio11ChannelViewixEm(ptr noundef nonnull align 8 dereferenceable(17) %3, i64 noundef %.062)
  %106 = load float, ptr %105, align 4, !tbaa !33
  %107 = call float @llvm.fmuladd.f32(float %102, float %104, float %106)
  store float %107, ptr %105, align 4, !tbaa !33
  %108 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %.05963) #7
  %109 = load float, ptr %108, align 4, !tbaa !33
  %110 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7vraudio11ChannelViewixEm(ptr noundef nonnull align 8 dereferenceable(17) %33, i64 noundef %.062)
  %111 = load float, ptr %110, align 4, !tbaa !33
  %112 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7vraudio11ChannelViewixEm(ptr noundef nonnull align 8 dereferenceable(17) %4, i64 noundef %.062)
  %113 = load float, ptr %112, align 4, !tbaa !33
  %114 = call float @llvm.fmuladd.f32(float %109, float %111, float %113)
  store float %114, ptr %112, align 4, !tbaa !33
  %115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %49, i64 noundef %.05963) #7
  %116 = load float, ptr %115, align 4, !tbaa !33
  %117 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %.05963) #7
  %118 = load float, ptr %117, align 4, !tbaa !33
  %119 = fmul float %116, %118
  store float %119, ptr %117, align 4, !tbaa !33
  %120 = add nuw i64 %.062, 1
  %exitcond.not = icmp eq i64 %120, %22
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph, !llvm.loop !36

.loopexit:                                        ; preds = %.lr.ph, %.preheader, %94
  %121 = add nuw i64 %.05963, 1
  %122 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #7
  %123 = icmp ult i64 %121, %122
  br i1 %123, label %52, label %._crit_edge, !llvm.loop !38

124:                                              ; preds = %5, %._crit_edge
  %storemerge = phi i64 [ %51, %._crit_edge ], [ 0, %5 ]
  store i64 %storemerge, ptr %16, align 8, !tbaa !5
  ret i1 %.not
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK7vraudio11AudioBuffer10num_framesEv(ptr noundef nonnull align 8 dereferenceable(68)) 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 #2 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 #2 align 2

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

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

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

declare void @_ZN7vraudio14ScalarMultiplyEmfPKfPf(i64 noundef, float noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17)) local_unnamed_addr #2 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 #5

declare void @_ZN7vraudio27ScalarMultiplyAndAccumulateEmfPKfPf(i64 noundef, float noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPffEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 = { 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 #6 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 8}
!6 = !{!"_ZTSN7vraudio26ReverbOnsetUpdateProcessorE", !7, i64 0, !10, i64 8, !10, i64 16, !11, i64 24, !12, i64 32, !17, i64 56, !17, i64 80, !21, i64 104, !21, i64 176, !16, i64 248, !16, i64 256}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"float", !8, i64 0}
!12 = !{!"_ZTSSt6vectorIiSaIiEE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!16 = !{!"any pointer", !8, i64 0}
!17 = !{!"_ZTSSt6vectorIfSaIfEE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!21 = !{!"_ZTSN7vraudio11AudioBufferE", !10, i64 0, !22, i64 8, !10, i64 32, !26, i64 40, !7, i64 64}
!22 = !{!"_ZTSSt6vectorIfN7vraudio16AlignedAllocatorIfLm64EEEE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIfN7vraudio16AlignedAllocatorIfLm64EEEE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIfN7vraudio16AlignedAllocatorIfLm64EEEE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIfN7vraudio16AlignedAllocatorIfLm64EEEE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!26 = !{!"_ZTSSt6vectorIN7vraudio11ChannelViewESaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIN7vraudio11ChannelViewESaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIN7vraudio11ChannelViewESaIS1_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIN7vraudio11ChannelViewESaIS1_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!30 = !{!6, !10, i64 16}
!31 = !{!6, !11, i64 24}
!32 = !{!7, !7, i64 0}
!33 = !{!11, !11, i64 0}
!34 = !{!6, !16, i64 256}
!35 = !{!6, !16, i64 248}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = distinct !{!38, !37}


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