; LLVM IR from glaretechnologies/substrata :: resonance-audio/resonance_audio/dsp/gain_mixer.ll (ZN7vraudio9GainMixer5ResetEv)

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

%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"class.vraudio::GainMixer" = type { i64, %"class.vraudio::AudioBuffer", i8, %"class.std::unordered_map" }
%"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::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"struct.std::pair" = type { i32, %"struct.vraudio::GainMixer::GainProcessors" }
%"struct.vraudio::GainMixer::GainProcessors" = type { i8, %"class.std::vector.10" }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<vraudio::GainProcessor, std::allocator<vraudio::GainProcessor>>::_Vector_impl" }
%"struct.std::_Vector_base<vraudio::GainProcessor, std::allocator<vraudio::GainProcessor>>::_Vector_impl" = type { %"struct.std::_Vector_base<vraudio::GainProcessor, std::allocator<vraudio::GainProcessor>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vraudio::GainProcessor, std::allocator<vraudio::GainProcessor>>::_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
define dso_local void @_ZN7vraudio9GainMixer5ResetEv(ptr noundef nonnull align 8 dereferenceable(144) %0) #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %4 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %5 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %6 = alloca %"struct.std::__detail::_Node_iterator", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %7 = load ptr, ptr %2, align 8
  %8 = getelementptr inbounds %"class.vraudio::GainMixer", ptr %7, i32 0, i32 2
  %9 = load i8, ptr %8, align 8, !tbaa !9, !range !28, !noundef !29
  %10 = trunc i8 %9 to i1
  br i1 %10, label %48, label %11

11:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  %12 = getelementptr inbounds %"class.vraudio::GainMixer", ptr %7, i32 0, i32 3
  %13 = call ptr @_ZNSt13unordered_mapIiN7vraudio9GainMixer14GainProcessorsESt4hashIiESt8equal_toIiESaISt4pairIKiS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %12) #3
  %14 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %3, i32 0, i32 0
  %15 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %14, i32 0, i32 0
  store ptr %13, ptr %15, align 8
  br label %16

16:                                               ; preds = %45, %11
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  %17 = getelementptr inbounds %"class.vraudio::GainMixer", ptr %7, i32 0, i32 3
  %18 = call ptr @_ZNSt13unordered_mapIiN7vraudio9GainMixer14GainProcessorsESt4hashIiESt8equal_toIiESaISt4pairIKiS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %17) #3
  %19 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %4, i32 0, i32 0
  %20 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %19, i32 0, i32 0
  store ptr %18, ptr %20, align 8
  %21 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKiN7vraudio9GainMixer14GainProcessorsEELb0EEES9_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  br i1 %21, label %23, label %22

22:                                               ; preds = %16
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  br label %46

23:                                               ; preds = %16
  %24 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKiN7vraudio9GainMixer14GainProcessorsEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #3
  %25 = getelementptr inbounds %"struct.std::pair", ptr %24, i32 0, i32 1
  %26 = getelementptr inbounds %"struct.vraudio::GainMixer::GainProcessors", ptr %25, i32 0, i32 0
  %27 = load i8, ptr %26, align 8, !tbaa !30, !range !28, !noundef !29
  %28 = trunc i8 %27 to i1
  br i1 %28, label %29, label %34

29:                                               ; preds = %23
  %30 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKiN7vraudio9GainMixer14GainProcessorsEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #3
  %31 = getelementptr inbounds %"struct.std::pair", ptr %30, i32 0, i32 1
  %32 = getelementptr inbounds %"struct.vraudio::GainMixer::GainProcessors", ptr %31, i32 0, i32 0
  store i8 0, ptr %32, align 8, !tbaa !30
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKiN7vraudio9GainMixer14GainProcessorsEELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #3
  br label %45

34:                                               ; preds = %23
  %35 = getelementptr inbounds %"class.vraudio::GainMixer", ptr %7, i32 0, i32 3
  %36 = call ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKiN7vraudio9GainMixer14GainProcessorsEELb0ELb0EEppEi(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef 0) #3
  %37 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %5, i32 0, i32 0
  %38 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %37, i32 0, i32 0
  store ptr %36, ptr %38, align 8
  %39 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %5, i32 0, i32 0
  %40 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %39, i32 0, i32 0
  %41 = load ptr, ptr %40, align 8
  %42 = call ptr @_ZNSt13unordered_mapIiN7vraudio9GainMixer14GainProcessorsESt4hashIiESt8equal_toIiESaISt4pairIKiS2_EEE5eraseENSt8__detail14_Node_iteratorIS9_Lb0ELb0EEE(ptr noundef nonnull align 8 dereferenceable(56) %35, ptr %41)
  %43 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %6, i32 0, i32 0
  %44 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %43, i32 0, i32 0
  store ptr %42, ptr %44, align 8
  br label %45

45:                                               ; preds = %34, %29
  br label %16, !llvm.loop !37

46:                                               ; preds = %22
  %47 = getelementptr inbounds %"class.vraudio::GainMixer", ptr %7, i32 0, i32 1
  call void @_ZN7vraudio11AudioBuffer5ClearEv(ptr noundef nonnull align 8 dereferenceable(68) %47)
  br label %48

48:                                               ; preds = %46, %1
  %49 = getelementptr inbounds %"class.vraudio::GainMixer", ptr %7, i32 0, i32 2
  store i8 1, ptr %49, align 8, !tbaa !9
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKiN7vraudio9GainMixer14GainProcessorsEELb0EEES9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2

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

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !22, i64 80}
!10 = !{!"_ZTSN7vraudio9GainMixerE", !11, i64 0, !12, i64 8, !22, i64 80, !23, i64 88}
!11 = !{!"long", !7, i64 0}
!12 = !{!"_ZTSN7vraudio11AudioBufferE", !11, i64 0, !13, i64 8, !11, i64 32, !17, i64 40, !21, i64 64}
!13 = !{!"_ZTSSt6vectorIfN7vraudio16AlignedAllocatorIfLm64EEEE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIfN7vraudio16AlignedAllocatorIfLm64EEEE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIfN7vraudio16AlignedAllocatorIfLm64EEEE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIfN7vraudio16AlignedAllocatorIfLm64EEEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"_ZTSSt6vectorIN7vraudio11ChannelViewESaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIN7vraudio11ChannelViewESaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN7vraudio11ChannelViewESaIS1_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN7vraudio11ChannelViewESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"int", !7, i64 0}
!22 = !{!"bool", !7, i64 0}
!23 = !{!"_ZTSSt13unordered_mapIiN7vraudio9GainMixer14GainProcessorsESt4hashIiESt8equal_toIiESaISt4pairIKiS2_EEE", !24, i64 0}
!24 = !{!"_ZTSSt10_HashtableIiSt4pairIKiN7vraudio9GainMixer14GainProcessorsEESaIS5_ENSt8__detail10_Select1stESt8equal_toIiESt4hashIiENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !11, i64 8, !25, i64 16, !11, i64 24, !26, i64 32, !6, i64 48}
!25 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!26 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !27, i64 0, !11, i64 8}
!27 = !{!"float", !7, i64 0}
!28 = !{i8 0, i8 2}
!29 = !{}
!30 = !{!31, !22, i64 8}
!31 = !{!"_ZTSSt4pairIKiN7vraudio9GainMixer14GainProcessorsEE", !21, i64 0, !32, i64 8}
!32 = !{!"_ZTSN7vraudio9GainMixer14GainProcessorsE", !22, i64 0, !33, i64 8}
!33 = !{!"_ZTSSt6vectorIN7vraudio13GainProcessorESaIS1_EE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseIN7vraudio13GainProcessorESaIS1_EE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIN7vraudio13GainProcessorESaIS1_EE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIN7vraudio13GainProcessorESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!37 = distinct !{!37, !38}
!38 = !{!"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"

%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7vraudio9GainMixer5ResetEv(ptr noundef nonnull align 8 dereferenceable(144) %0) local_unnamed_addr #1 align 2 {
  %2 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %3 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %4 = getelementptr inbounds i8, ptr %0, i64 80
  %5 = load i8, ptr %4, align 8, !tbaa !5, !range !27, !noundef !28
  %6 = trunc nuw i8 %5 to i1
  br i1 %6, label %27, label %7

7:                                                ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
  %8 = getelementptr inbounds i8, ptr %0, i64 88
  %9 = tail call ptr @_ZNSt13unordered_mapIiN7vraudio9GainMixer14GainProcessorsESt4hashIiESt8equal_toIiESaISt4pairIKiS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %8) #3
  store ptr %9, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  %10 = tail call ptr @_ZNSt13unordered_mapIiN7vraudio9GainMixer14GainProcessorsESt4hashIiESt8equal_toIiESaISt4pairIKiS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %8) #3
  store ptr %10, ptr %3, align 8
  %11 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKiN7vraudio9GainMixer14GainProcessorsEELb0EEES9_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  br i1 %11, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %24, %7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
  %12 = getelementptr inbounds i8, ptr %0, i64 8
  call void @_ZN7vraudio11AudioBuffer5ClearEv(ptr noundef nonnull align 8 dereferenceable(68) %12)
  br label %27

.lr.ph:                                           ; preds = %7, %24
  %13 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKiN7vraudio9GainMixer14GainProcessorsEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #3
  %14 = getelementptr inbounds i8, ptr %13, i64 8
  %15 = load i8, ptr %14, align 8, !tbaa !29, !range !27, !noundef !28
  %16 = trunc nuw i8 %15 to i1
  br i1 %16, label %17, label %21

17:                                               ; preds = %.lr.ph
  %18 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKiN7vraudio9GainMixer14GainProcessorsEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #3
  %19 = getelementptr inbounds i8, ptr %18, i64 8
  store i8 0, ptr %19, align 8, !tbaa !29
  %20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKiN7vraudio9GainMixer14GainProcessorsEELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #3
  br label %24

21:                                               ; preds = %.lr.ph
  %22 = call ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKiN7vraudio9GainMixer14GainProcessorsEELb0ELb0EEppEi(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef 0) #3
  %23 = call ptr @_ZNSt13unordered_mapIiN7vraudio9GainMixer14GainProcessorsESt4hashIiESt8equal_toIiESaISt4pairIKiS2_EEE5eraseENSt8__detail14_Node_iteratorIS9_Lb0ELb0EEE(ptr noundef nonnull align 8 dereferenceable(56) %8, ptr %22)
  br label %24

24:                                               ; preds = %21, %17
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  %25 = call ptr @_ZNSt13unordered_mapIiN7vraudio9GainMixer14GainProcessorsESt4hashIiESt8equal_toIiESaISt4pairIKiS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %8) #3
  store ptr %25, ptr %3, align 8
  %26 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKiN7vraudio9GainMixer14GainProcessorsEELb0EEES9_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  br i1 %26, label %.lr.ph, label %._crit_edge, !llvm.loop !36

27:                                               ; preds = %._crit_edge, %1
  store i8 1, ptr %4, align 8, !tbaa !5
  ret void
}

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

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

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

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

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

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

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

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !21, i64 80}
!6 = !{!"_ZTSN7vraudio9GainMixerE", !7, i64 0, !10, i64 8, !21, i64 80, !22, i64 88}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN7vraudio11AudioBufferE", !7, i64 0, !11, i64 8, !7, i64 32, !16, i64 40, !20, i64 64}
!11 = !{!"_ZTSSt6vectorIfN7vraudio16AlignedAllocatorIfLm64EEEE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIfN7vraudio16AlignedAllocatorIfLm64EEEE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIfN7vraudio16AlignedAllocatorIfLm64EEEE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIfN7vraudio16AlignedAllocatorIfLm64EEEE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!"_ZTSSt6vectorIN7vraudio11ChannelViewESaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIN7vraudio11ChannelViewESaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN7vraudio11ChannelViewESaIS1_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN7vraudio11ChannelViewESaIS1_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!20 = !{!"int", !8, i64 0}
!21 = !{!"bool", !8, i64 0}
!22 = !{!"_ZTSSt13unordered_mapIiN7vraudio9GainMixer14GainProcessorsESt4hashIiESt8equal_toIiESaISt4pairIKiS2_EEE", !23, i64 0}
!23 = !{!"_ZTSSt10_HashtableIiSt4pairIKiN7vraudio9GainMixer14GainProcessorsEESaIS5_ENSt8__detail10_Select1stESt8equal_toIiESt4hashIiENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb0ELb0ELb1EEEE", !15, i64 0, !7, i64 8, !24, i64 16, !7, i64 24, !25, i64 32, !15, i64 48}
!24 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !15, i64 0}
!25 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !26, i64 0, !7, i64 8}
!26 = !{!"float", !8, i64 0}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = !{!30, !21, i64 8}
!30 = !{!"_ZTSSt4pairIKiN7vraudio9GainMixer14GainProcessorsEE", !20, i64 0, !31, i64 8}
!31 = !{!"_ZTSN7vraudio9GainMixer14GainProcessorsE", !21, i64 0, !32, i64 8}
!32 = !{!"_ZTSSt6vectorIN7vraudio13GainProcessorESaIS1_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIN7vraudio13GainProcessorESaIS1_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIN7vraudio13GainProcessorESaIS1_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIN7vraudio13GainProcessorESaIS1_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}


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