; LLVM IR from software-mansion/react-native-audio-api :: packages/react-native-audio-api/common/cpp/audioapi/core/effects/BiquadFilterN_096daec9 (ZN8audioapi16BiquadFilterNode25setNormalizedCoefficientsEffffff)

; 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.audioapi::BiquadFilterNode" = type { %"class.audioapi::AudioNode", %"class.std::shared_ptr.25", %"class.std::shared_ptr.25", %"class.std::shared_ptr.25", %"class.std::shared_ptr.25", i32, float, float, float, float, float, float, float, float, float }
%"class.audioapi::AudioNode" = type { ptr, %"class.std::enable_shared_from_this", ptr, %"class.std::shared_ptr", i32, i32, i32, i32, i32, %"class.std::unordered_set", %"class.std::unordered_set.2", i32, i8, i8, i64, %"class.std::vector" }
%"class.std::enable_shared_from_this" = type { %"class.std::weak_ptr" }
%"class.std::weak_ptr" = type { %"class.std::__weak_ptr" }
%"class.std::__weak_ptr" = type { ptr, %"class.std::__weak_count" }
%"class.std::__weak_count" = type { ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::unordered_set" = 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 }
%"class.std::unordered_set.2" = type { %"class.std::_Hashtable.3" }
%"class.std::_Hashtable.3" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::shared_ptr<audioapi::AudioBus>, std::allocator<std::shared_ptr<audioapi::AudioBus>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<audioapi::AudioBus>, std::allocator<std::shared_ptr<audioapi::AudioBus>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<audioapi::AudioBus>, std::allocator<std::shared_ptr<audioapi::AudioBus>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<audioapi::AudioBus>, std::allocator<std::shared_ptr<audioapi::AudioBus>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::shared_ptr.25" = type { %"class.std::__shared_ptr.26" }
%"class.std::__shared_ptr.26" = type { ptr, %"class.std::__shared_count" }

; 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
define dso_local void @_ZN8audioapi16BiquadFilterNode25setNormalizedCoefficientsEffffff(ptr noundef nonnull align 8 dereferenceable(328) %0, float noundef %1, float noundef %2, float noundef %3, float noundef %4, float noundef %5, float noundef %6) #1 align 2 {
  %8 = alloca ptr, align 8
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store float %1, ptr %9, align 4, !tbaa !9
  store float %2, ptr %10, align 4, !tbaa !9
  store float %3, ptr %11, align 4, !tbaa !9
  store float %4, ptr %12, align 4, !tbaa !9
  store float %5, ptr %13, align 4, !tbaa !9
  store float %6, ptr %14, align 4, !tbaa !9
  %16 = load ptr, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #2
  %17 = load float, ptr %12, align 4, !tbaa !9
  %18 = fdiv float 1.000000e+00, %17
  store float %18, ptr %15, align 4, !tbaa !9
  %19 = load float, ptr %9, align 4, !tbaa !9
  %20 = load float, ptr %15, align 4, !tbaa !9
  %21 = fmul float %19, %20
  %22 = getelementptr inbounds %"class.audioapi::BiquadFilterNode", ptr %16, i32 0, i32 10
  store float %21, ptr %22, align 4, !tbaa !11
  %23 = load float, ptr %10, align 4, !tbaa !9
  %24 = load float, ptr %15, align 4, !tbaa !9
  %25 = fmul float %23, %24
  %26 = getelementptr inbounds %"class.audioapi::BiquadFilterNode", ptr %16, i32 0, i32 11
  store float %25, ptr %26, align 8, !tbaa !39
  %27 = load float, ptr %11, align 4, !tbaa !9
  %28 = load float, ptr %15, align 4, !tbaa !9
  %29 = fmul float %27, %28
  %30 = getelementptr inbounds %"class.audioapi::BiquadFilterNode", ptr %16, i32 0, i32 12
  store float %29, ptr %30, align 4, !tbaa !40
  %31 = load float, ptr %13, align 4, !tbaa !9
  %32 = load float, ptr %15, align 4, !tbaa !9
  %33 = fmul float %31, %32
  %34 = getelementptr inbounds %"class.audioapi::BiquadFilterNode", ptr %16, i32 0, i32 13
  store float %33, ptr %34, align 8, !tbaa !41
  %35 = load float, ptr %14, align 4, !tbaa !9
  %36 = load float, ptr %15, align 4, !tbaa !9
  %37 = fmul float %35, %36
  %38 = getelementptr inbounds %"class.audioapi::BiquadFilterNode", ptr %16, i32 0, i32 14
  store float %37, ptr %38, align 4, !tbaa !42
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #2
  ret void
}

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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !10, i64 308}
!12 = !{!"_ZTSN8audioapi16BiquadFilterNodeE", !13, i64 0, !36, i64 224, !36, i64 240, !36, i64 256, !36, i64 272, !38, i64 288, !10, i64 292, !10, i64 296, !10, i64 300, !10, i64 304, !10, i64 308, !10, i64 312, !10, i64 316, !10, i64 320, !10, i64 324}
!13 = !{!"_ZTSN8audioapi9AudioNodeE", !14, i64 8, !6, i64 24, !18, i64 32, !21, i64 48, !21, i64 52, !21, i64 56, !22, i64 60, !23, i64 64, !24, i64 72, !29, i64 128, !21, i64 184, !31, i64 188, !31, i64 189, !26, i64 192, !32, i64 200}
!14 = !{!"_ZTSSt23enable_shared_from_thisIN8audioapi9AudioNodeEE", !15, i64 0}
!15 = !{!"_ZTSSt8weak_ptrIN8audioapi9AudioNodeEE", !16, i64 0}
!16 = !{!"_ZTSSt10__weak_ptrIN8audioapi9AudioNodeELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !17, i64 8}
!17 = !{!"_ZTSSt12__weak_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!18 = !{!"_ZTSSt10shared_ptrIN8audioapi8AudioBusEE", !19, i64 0}
!19 = !{!"_ZTSSt12__shared_ptrIN8audioapi8AudioBusELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !20, i64 8}
!20 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!21 = !{!"int", !7, i64 0}
!22 = !{!"_ZTSN8audioapi16ChannelCountModeE", !7, i64 0}
!23 = !{!"_ZTSN8audioapi21ChannelInterpretationE", !7, i64 0}
!24 = !{!"_ZTSSt13unordered_setIPN8audioapi9AudioNodeESt4hashIS2_ESt8equal_toIS2_ESaIS2_EE", !25, i64 0}
!25 = !{!"_ZTSSt10_HashtableIPN8audioapi9AudioNodeES2_SaIS2_ENSt8__detail9_IdentityESt8equal_toIS2_ESt4hashIS2_ENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb1ELb1EEEE", !6, i64 0, !26, i64 8, !27, i64 16, !26, i64 24, !28, i64 32, !6, i64 48}
!26 = !{!"long", !7, i64 0}
!27 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!28 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !10, i64 0, !26, i64 8}
!29 = !{!"_ZTSSt13unordered_setISt10shared_ptrIN8audioapi9AudioNodeEESt4hashIS3_ESt8equal_toIS3_ESaIS3_EE", !30, i64 0}
!30 = !{!"_ZTSSt10_HashtableISt10shared_ptrIN8audioapi9AudioNodeEES3_SaIS3_ENSt8__detail9_IdentityESt8equal_toIS3_ESt4hashIS3_ENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb0ELb1ELb1EEEE", !6, i64 0, !26, i64 8, !27, i64 16, !26, i64 24, !28, i64 32, !6, i64 48}
!31 = !{!"bool", !7, i64 0}
!32 = !{!"_ZTSSt6vectorISt10shared_ptrIN8audioapi8AudioBusEESaIS3_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseISt10shared_ptrIN8audioapi8AudioBusEESaIS3_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN8audioapi8AudioBusEESaIS3_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN8audioapi8AudioBusEESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!36 = !{!"_ZTSSt10shared_ptrIN8audioapi10AudioParamEE", !37, i64 0}
!37 = !{!"_ZTSSt12__shared_ptrIN8audioapi10AudioParamELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !20, i64 8}
!38 = !{!"_ZTSN8audioapi16BiquadFilterTypeE", !7, i64 0}
!39 = !{!12, !10, i64 312}
!40 = !{!12, !10, i64 316}
!41 = !{!12, !10, i64 320}
!42 = !{!12, !10, i64 324}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: write) uwtable
define dso_local void @_ZN8audioapi16BiquadFilterNode25setNormalizedCoefficientsEffffff(ptr nocapture noundef nonnull writeonly align 8 dereferenceable(328) %0, float noundef %1, float noundef %2, float noundef %3, float noundef %4, float noundef %5, float noundef %6) local_unnamed_addr #0 align 2 {
  %8 = fdiv float 1.000000e+00, %4
  %9 = getelementptr inbounds i8, ptr %0, i64 308
  %10 = insertelement <4 x float> poison, float %8, i64 0
  %11 = shufflevector <4 x float> %10, <4 x float> poison, <4 x i32> zeroinitializer
  %12 = insertelement <4 x float> poison, float %1, i64 0
  %13 = insertelement <4 x float> %12, float %2, i64 1
  %14 = insertelement <4 x float> %13, float %3, i64 2
  %15 = insertelement <4 x float> %14, float %5, i64 3
  %16 = fmul <4 x float> %11, %15
  store <4 x float> %16, ptr %9, align 4, !tbaa !5
  %17 = fmul float %8, %6
  %18 = getelementptr inbounds i8, ptr %0, i64 324
  store float %17, ptr %18, align 4, !tbaa !9
  ret void
}

attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: write) 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" }

!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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 324}
!10 = !{!"_ZTSN8audioapi16BiquadFilterNodeE", !11, i64 0, !35, i64 224, !35, i64 240, !35, i64 256, !35, i64 272, !37, i64 288, !6, i64 292, !6, i64 296, !6, i64 300, !6, i64 304, !6, i64 308, !6, i64 312, !6, i64 316, !6, i64 320, !6, i64 324}
!11 = !{!"_ZTSN8audioapi9AudioNodeE", !12, i64 8, !15, i64 24, !17, i64 32, !20, i64 48, !20, i64 52, !20, i64 56, !21, i64 60, !22, i64 64, !23, i64 72, !28, i64 128, !20, i64 184, !30, i64 188, !30, i64 189, !25, i64 192, !31, i64 200}
!12 = !{!"_ZTSSt23enable_shared_from_thisIN8audioapi9AudioNodeEE", !13, i64 0}
!13 = !{!"_ZTSSt8weak_ptrIN8audioapi9AudioNodeEE", !14, i64 0}
!14 = !{!"_ZTSSt10__weak_ptrIN8audioapi9AudioNodeELN9__gnu_cxx12_Lock_policyE2EE", !15, i64 0, !16, i64 8}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!"_ZTSSt12__weak_countILN9__gnu_cxx12_Lock_policyE2EE", !15, i64 0}
!17 = !{!"_ZTSSt10shared_ptrIN8audioapi8AudioBusEE", !18, i64 0}
!18 = !{!"_ZTSSt12__shared_ptrIN8audioapi8AudioBusELN9__gnu_cxx12_Lock_policyE2EE", !15, i64 0, !19, i64 8}
!19 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !15, i64 0}
!20 = !{!"int", !7, i64 0}
!21 = !{!"_ZTSN8audioapi16ChannelCountModeE", !7, i64 0}
!22 = !{!"_ZTSN8audioapi21ChannelInterpretationE", !7, i64 0}
!23 = !{!"_ZTSSt13unordered_setIPN8audioapi9AudioNodeESt4hashIS2_ESt8equal_toIS2_ESaIS2_EE", !24, i64 0}
!24 = !{!"_ZTSSt10_HashtableIPN8audioapi9AudioNodeES2_SaIS2_ENSt8__detail9_IdentityESt8equal_toIS2_ESt4hashIS2_ENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb1ELb1EEEE", !15, i64 0, !25, i64 8, !26, i64 16, !25, i64 24, !27, i64 32, !15, i64 48}
!25 = !{!"long", !7, i64 0}
!26 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !15, i64 0}
!27 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !6, i64 0, !25, i64 8}
!28 = !{!"_ZTSSt13unordered_setISt10shared_ptrIN8audioapi9AudioNodeEESt4hashIS3_ESt8equal_toIS3_ESaIS3_EE", !29, i64 0}
!29 = !{!"_ZTSSt10_HashtableISt10shared_ptrIN8audioapi9AudioNodeEES3_SaIS3_ENSt8__detail9_IdentityESt8equal_toIS3_ESt4hashIS3_ENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb0ELb1ELb1EEEE", !15, i64 0, !25, i64 8, !26, i64 16, !25, i64 24, !27, i64 32, !15, i64 48}
!30 = !{!"bool", !7, i64 0}
!31 = !{!"_ZTSSt6vectorISt10shared_ptrIN8audioapi8AudioBusEESaIS3_EE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseISt10shared_ptrIN8audioapi8AudioBusEESaIS3_EE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN8audioapi8AudioBusEESaIS3_EE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN8audioapi8AudioBusEESaIS3_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!35 = !{!"_ZTSSt10shared_ptrIN8audioapi10AudioParamEE", !36, i64 0}
!36 = !{!"_ZTSSt12__shared_ptrIN8audioapi10AudioParamELN9__gnu_cxx12_Lock_policyE2EE", !15, i64 0, !19, i64 8}
!37 = !{!"_ZTSN8audioapi16BiquadFilterTypeE", !7, i64 0}


; Effective O3 passes: GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass