; LLVM IR from software-mansion/react-native-audio-api :: packages/react-native-audio-api/common/cpp/audioapi/core/analysis/AnalyserNode_4a496216 (ZN8audioapi12AnalyserNode20getByteFrequencyDataEPhi)

; 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::AnalyserNode" = type <{ %"class.audioapi::AudioNode", i32, float, float, float, i32, [4 x i8], %"class.std::shared_ptr.25", %"class.std::unique_ptr", %"class.std::unique_ptr.30", %"class.std::unique_ptr.38", %"class.std::unique_ptr.46", %"class.std::vector.54", %"class.std::unique_ptr.38", i8, [7 x i8] }>
%"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" }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.29" }
%"struct.std::_Head_base.29" = type { ptr }
%"class.std::unique_ptr.30" = type { %"struct.std::__uniq_ptr_data.31" }
%"struct.std::__uniq_ptr_data.31" = type { %"class.std::__uniq_ptr_impl.32" }
%"class.std::__uniq_ptr_impl.32" = type { %"class.std::tuple.33" }
%"class.std::tuple.33" = type { %"struct.std::_Tuple_impl.34" }
%"struct.std::_Tuple_impl.34" = type { %"struct.std::_Head_base.37" }
%"struct.std::_Head_base.37" = type { ptr }
%"class.std::unique_ptr.46" = type { %"struct.std::__uniq_ptr_data.47" }
%"struct.std::__uniq_ptr_data.47" = type { %"class.std::__uniq_ptr_impl.48" }
%"class.std::__uniq_ptr_impl.48" = type { %"class.std::tuple.49" }
%"class.std::tuple.49" = type { %"struct.std::_Tuple_impl.50" }
%"struct.std::_Tuple_impl.50" = type { %"struct.std::_Head_base.53" }
%"struct.std::_Head_base.53" = type { ptr }
%"class.std::vector.54" = type { %"struct.std::_Vector_base.55" }
%"struct.std::_Vector_base.55" = type { %"struct.std::_Vector_base<std::complex<float>, std::allocator<std::complex<float>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::complex<float>, std::allocator<std::complex<float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::complex<float>, std::allocator<std::complex<float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::complex<float>, std::allocator<std::complex<float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unique_ptr.38" = type { %"struct.std::__uniq_ptr_data.39" }
%"struct.std::__uniq_ptr_data.39" = type { %"class.std::__uniq_ptr_impl.40" }
%"class.std::__uniq_ptr_impl.40" = type { %"class.std::tuple.41" }
%"class.std::tuple.41" = type { %"struct.std::_Tuple_impl.42" }
%"struct.std::_Tuple_impl.42" = type { %"struct.std::_Head_base.45" }
%"struct.std::_Head_base.45" = type { ptr }

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #2

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

declare noundef i64 @_ZNK8audioapi10AudioArray7getSizeEv(ptr noundef nonnull align 8 dereferenceable(16)) #4

declare noundef ptr @_ZNK8audioapi10AudioArray7getDataEv(ptr noundef nonnull align 8 dereferenceable(16)) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8audioapi12AnalyserNode20getByteFrequencyDataEPhi(ptr noundef nonnull align 8 dereferenceable(329) %0, ptr noundef %1, i32 noundef %2) #1 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca float, align 4
  %10 = alloca i32, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  %13 = load ptr, ptr %4, align 8
  call void @_ZN8audioapi12AnalyserNode13doFFTAnalysisEv(ptr noundef nonnull align 8 dereferenceable(329) %13)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %14 = getelementptr inbounds %"class.audioapi::AnalyserNode", ptr %13, i32 0, i32 13
  %15 = call noundef ptr @_ZNKSt10unique_ptrIN8audioapi10AudioArrayESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  %16 = call noundef ptr @_ZNK8audioapi10AudioArray7getDataEv(ptr noundef nonnull align 8 dereferenceable(16) %15)
  store ptr %16, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %17 = getelementptr inbounds %"class.audioapi::AnalyserNode", ptr %13, i32 0, i32 13
  %18 = call noundef ptr @_ZNKSt10unique_ptrIN8audioapi10AudioArrayESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  %19 = call noundef i64 @_ZNK8audioapi10AudioArray7getSizeEv(ptr noundef nonnull align 8 dereferenceable(16) %18)
  %20 = trunc i64 %19 to i32
  store i32 %20, ptr %8, align 4, !tbaa !9
  %21 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %22 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %22, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %23 = getelementptr inbounds %"class.audioapi::AnalyserNode", ptr %13, i32 0, i32 3
  %24 = load float, ptr %23, align 8, !tbaa !11
  %25 = getelementptr inbounds %"class.audioapi::AnalyserNode", ptr %13, i32 0, i32 2
  %26 = load float, ptr %25, align 4, !tbaa !67
  %27 = fcmp oeq float %24, %26
  br i1 %27, label %28, label %29

28:                                               ; preds = %3
  br label %36

29:                                               ; preds = %3
  %30 = getelementptr inbounds %"class.audioapi::AnalyserNode", ptr %13, i32 0, i32 3
  %31 = load float, ptr %30, align 8, !tbaa !11
  %32 = getelementptr inbounds %"class.audioapi::AnalyserNode", ptr %13, i32 0, i32 2
  %33 = load float, ptr %32, align 4, !tbaa !67
  %34 = fsub float %31, %33
  %35 = fdiv float 1.000000e+00, %34
  br label %36

36:                                               ; preds = %29, %28
  %37 = phi float [ 1.000000e+00, %28 ], [ %35, %29 ]
  store float %37, ptr %9, align 4, !tbaa !68
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %38

38:                                               ; preds = %83, %36
  %39 = load i32, ptr %10, align 4, !tbaa !9
  %40 = load i32, ptr %6, align 4, !tbaa !9
  %41 = icmp slt i32 %39, %40
  br i1 %41, label %43, label %42

42:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %86

43:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = load i32, ptr %10, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds float, ptr %44, i64 %46
  %48 = load float, ptr %47, align 4, !tbaa !68
  %49 = fcmp oeq float %48, 0.000000e+00
  br i1 %49, label %50, label %53

50:                                               ; preds = %43
  %51 = getelementptr inbounds %"class.audioapi::AnalyserNode", ptr %13, i32 0, i32 2
  %52 = load float, ptr %51, align 4, !tbaa !67
  br label %60

53:                                               ; preds = %43
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = load i32, ptr %10, align 4, !tbaa !9
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds float, ptr %54, i64 %56
  %58 = load float, ptr %57, align 4, !tbaa !68
  %59 = call noundef float @_ZN8audioapi3dsp16linearToDecibelsEf(float noundef %58)
  br label %60

60:                                               ; preds = %53, %50
  %61 = phi float [ %52, %50 ], [ %59, %53 ]
  store float %61, ptr %11, align 4, !tbaa !68
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %62 = load float, ptr %11, align 4, !tbaa !68
  %63 = getelementptr inbounds %"class.audioapi::AnalyserNode", ptr %13, i32 0, i32 2
  %64 = load float, ptr %63, align 4, !tbaa !67
  %65 = fsub float %62, %64
  %66 = fmul float 2.550000e+02, %65
  %67 = load float, ptr %9, align 4, !tbaa !68
  %68 = fmul float %66, %67
  store float %68, ptr %12, align 4, !tbaa !68
  %69 = load float, ptr %12, align 4, !tbaa !68
  %70 = fcmp olt float %69, 0.000000e+00
  br i1 %70, label %71, label %72

71:                                               ; preds = %60
  store float 0.000000e+00, ptr %12, align 4, !tbaa !68
  br label %72

72:                                               ; preds = %71, %60
  %73 = load float, ptr %12, align 4, !tbaa !68
  %74 = fcmp ogt float %73, 2.550000e+02
  br i1 %74, label %75, label %76

75:                                               ; preds = %72
  store float 2.550000e+02, ptr %12, align 4, !tbaa !68
  br label %76

76:                                               ; preds = %75, %72
  %77 = load float, ptr %12, align 4, !tbaa !68
  %78 = fptoui float %77 to i8
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = load i32, ptr %10, align 4, !tbaa !9
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds i8, ptr %79, i64 %81
  store i8 %78, ptr %82, align 1, !tbaa !69
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %83

83:                                               ; preds = %76
  %84 = load i32, ptr %10, align 4, !tbaa !9
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %10, align 4, !tbaa !9
  br label %38, !llvm.loop !70

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

declare noundef float @_ZN8audioapi3dsp16linearToDecibelsEf(float noundef) #4

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 = { 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 #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !28, i64 232}
!12 = !{!"_ZTSN8audioapi12AnalyserNodeE", !13, i64 0, !10, i64 224, !28, i64 228, !28, i64 232, !28, i64 236, !36, i64 240, !37, i64 248, !39, i64 264, !45, i64 272, !51, i64 280, !57, i64 288, !63, i64 296, !51, i64 320, !31, i64 328}
!13 = !{!"_ZTSN8audioapi9AudioNodeE", !14, i64 8, !6, i64 24, !18, i64 32, !10, i64 48, !10, i64 52, !10, i64 56, !21, i64 60, !22, i64 64, !23, i64 72, !29, i64 128, !10, i64 184, !31, i64 188, !31, i64 189, !25, 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 = !{!"_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", !6, i64 0, !25, i64 8, !26, i64 16, !25, i64 24, !27, i64 32, !6, i64 48}
!25 = !{!"long", !7, i64 0}
!26 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!27 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !28, i64 0, !25, i64 8}
!28 = !{!"float", !7, i64 0}
!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, !25, i64 8, !26, i64 16, !25, i64 24, !27, 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 = !{!"_ZTSN8audioapi12AnalyserNode10WindowTypeE", !7, i64 0}
!37 = !{!"_ZTSSt10shared_ptrIN8audioapi10AudioArrayEE", !38, i64 0}
!38 = !{!"_ZTSSt12__shared_ptrIN8audioapi10AudioArrayELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !20, i64 8}
!39 = !{!"_ZTSSt10unique_ptrIN8audioapi18CircularAudioArrayESt14default_deleteIS1_EE", !40, i64 0}
!40 = !{!"_ZTSSt15__uniq_ptr_dataIN8audioapi18CircularAudioArrayESt14default_deleteIS1_ELb1ELb1EE", !41, i64 0}
!41 = !{!"_ZTSSt15__uniq_ptr_implIN8audioapi18CircularAudioArrayESt14default_deleteIS1_EE", !42, i64 0}
!42 = !{!"_ZTSSt5tupleIJPN8audioapi18CircularAudioArrayESt14default_deleteIS1_EEE", !43, i64 0}
!43 = !{!"_ZTSSt11_Tuple_implILm0EJPN8audioapi18CircularAudioArrayESt14default_deleteIS1_EEE", !44, i64 0}
!44 = !{!"_ZTSSt10_Head_baseILm0EPN8audioapi18CircularAudioArrayELb0EE", !6, i64 0}
!45 = !{!"_ZTSSt10unique_ptrIN8audioapi8AudioBusESt14default_deleteIS1_EE", !46, i64 0}
!46 = !{!"_ZTSSt15__uniq_ptr_dataIN8audioapi8AudioBusESt14default_deleteIS1_ELb1ELb1EE", !47, i64 0}
!47 = !{!"_ZTSSt15__uniq_ptr_implIN8audioapi8AudioBusESt14default_deleteIS1_EE", !48, i64 0}
!48 = !{!"_ZTSSt5tupleIJPN8audioapi8AudioBusESt14default_deleteIS1_EEE", !49, i64 0}
!49 = !{!"_ZTSSt11_Tuple_implILm0EJPN8audioapi8AudioBusESt14default_deleteIS1_EEE", !50, i64 0}
!50 = !{!"_ZTSSt10_Head_baseILm0EPN8audioapi8AudioBusELb0EE", !6, i64 0}
!51 = !{!"_ZTSSt10unique_ptrIN8audioapi10AudioArrayESt14default_deleteIS1_EE", !52, i64 0}
!52 = !{!"_ZTSSt15__uniq_ptr_dataIN8audioapi10AudioArrayESt14default_deleteIS1_ELb1ELb1EE", !53, i64 0}
!53 = !{!"_ZTSSt15__uniq_ptr_implIN8audioapi10AudioArrayESt14default_deleteIS1_EE", !54, i64 0}
!54 = !{!"_ZTSSt5tupleIJPN8audioapi10AudioArrayESt14default_deleteIS1_EEE", !55, i64 0}
!55 = !{!"_ZTSSt11_Tuple_implILm0EJPN8audioapi10AudioArrayESt14default_deleteIS1_EEE", !56, i64 0}
!56 = !{!"_ZTSSt10_Head_baseILm0EPN8audioapi10AudioArrayELb0EE", !6, i64 0}
!57 = !{!"_ZTSSt10unique_ptrIN8audioapi3dsp3FFTESt14default_deleteIS2_EE", !58, i64 0}
!58 = !{!"_ZTSSt15__uniq_ptr_dataIN8audioapi3dsp3FFTESt14default_deleteIS2_ELb1ELb1EE", !59, i64 0}
!59 = !{!"_ZTSSt15__uniq_ptr_implIN8audioapi3dsp3FFTESt14default_deleteIS2_EE", !60, i64 0}
!60 = !{!"_ZTSSt5tupleIJPN8audioapi3dsp3FFTESt14default_deleteIS2_EEE", !61, i64 0}
!61 = !{!"_ZTSSt11_Tuple_implILm0EJPN8audioapi3dsp3FFTESt14default_deleteIS2_EEE", !62, i64 0}
!62 = !{!"_ZTSSt10_Head_baseILm0EPN8audioapi3dsp3FFTELb0EE", !6, i64 0}
!63 = !{!"_ZTSSt6vectorISt7complexIfESaIS1_EE", !64, i64 0}
!64 = !{!"_ZTSSt12_Vector_baseISt7complexIfESaIS1_EE", !65, i64 0}
!65 = !{!"_ZTSNSt12_Vector_baseISt7complexIfESaIS1_EE12_Vector_implE", !66, i64 0}
!66 = !{!"_ZTSNSt12_Vector_baseISt7complexIfESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!67 = !{!12, !28, i64 228}
!68 = !{!28, !28, i64 0}
!69 = !{!7, !7, i64 0}
!70 = distinct !{!70, !71}
!71 = !{!"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"

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

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

declare noundef i64 @_ZNK8audioapi10AudioArray7getSizeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4

declare noundef ptr @_ZNK8audioapi10AudioArray7getDataEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8audioapi12AnalyserNode20getByteFrequencyDataEPhi(ptr noundef nonnull align 8 dereferenceable(329) %0, ptr nocapture noundef writeonly %1, i32 noundef %2) local_unnamed_addr #1 align 2 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  store i32 %2, ptr %4, align 4, !tbaa !5
  tail call void @_ZN8audioapi12AnalyserNode13doFFTAnalysisEv(ptr noundef nonnull align 8 dereferenceable(329) %0)
  %6 = getelementptr inbounds i8, ptr %0, i64 320
  %7 = tail call noundef ptr @_ZNKSt10unique_ptrIN8audioapi10AudioArrayESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %8 = tail call noundef ptr @_ZNK8audioapi10AudioArray7getDataEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  %9 = tail call noundef ptr @_ZNKSt10unique_ptrIN8audioapi10AudioArrayESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %10 = tail call noundef i64 @_ZNK8audioapi10AudioArray7getSizeEv(ptr noundef nonnull align 8 dereferenceable(16) %9)
  %11 = trunc i64 %10 to i32
  store i32 %11, ptr %5, align 4, !tbaa !5
  %12 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %13 = load i32, ptr %12, align 4, !tbaa !5
  store i32 %13, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  %14 = getelementptr inbounds i8, ptr %0, i64 232
  %15 = load float, ptr %14, align 8, !tbaa !9
  %16 = getelementptr inbounds i8, ptr %0, i64 228
  %17 = load float, ptr %16, align 4, !tbaa !66
  %18 = fcmp oeq float %15, %17
  %19 = fsub float %15, %17
  %20 = fdiv float 1.000000e+00, %19
  %21 = select i1 %18, float 1.000000e+00, float %20
  %22 = icmp sgt i32 %13, 0
  br i1 %22, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %31, %3
  ret void

.lr.ph:                                           ; preds = %3, %31
  %23 = phi i32 [ %32, %31 ], [ %13, %3 ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %31 ], [ 0, %3 ]
  %24 = getelementptr inbounds float, ptr %8, i64 %indvars.iv
  %25 = load float, ptr %24, align 4, !tbaa !67
  %26 = fcmp oeq float %25, 0.000000e+00
  br i1 %26, label %27, label %29

27:                                               ; preds = %.lr.ph
  %28 = load float, ptr %16, align 4, !tbaa !66
  br label %31

29:                                               ; preds = %.lr.ph
  %30 = call noundef float @_ZN8audioapi3dsp16linearToDecibelsEf(float noundef %25)
  %.pre = load float, ptr %16, align 4, !tbaa !66
  %.pre20 = load i32, ptr %4, align 4, !tbaa !5
  br label %31

31:                                               ; preds = %29, %27
  %32 = phi i32 [ %23, %27 ], [ %.pre20, %29 ]
  %33 = phi float [ %28, %27 ], [ %.pre, %29 ]
  %34 = phi float [ %28, %27 ], [ %30, %29 ]
  %35 = fsub float %34, %33
  %36 = fmul float %35, 2.550000e+02
  %37 = fmul float %21, %36
  %38 = fcmp olt float %37, 0.000000e+00
  %.0 = select i1 %38, float 0.000000e+00, float %37
  %39 = fcmp ogt float %.0, 2.550000e+02
  %.1 = select i1 %39, float 2.550000e+02, float %.0
  %40 = fptoui float %.1 to i8
  %41 = getelementptr inbounds i8, ptr %1, i64 %indvars.iv
  store i8 %40, ptr %41, align 1, !tbaa !68
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %42 = sext i32 %32 to i64
  %43 = icmp slt i64 %indvars.iv.next, %42
  br i1 %43, label %.lr.ph, label %._crit_edge, !llvm.loop !69
}

declare noundef float @_ZN8audioapi3dsp16linearToDecibelsEf(float noundef) local_unnamed_addr #4

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 = { 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 #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !27, i64 232}
!10 = !{!"_ZTSN8audioapi12AnalyserNodeE", !11, i64 0, !6, i64 224, !27, i64 228, !27, i64 232, !27, i64 236, !35, i64 240, !36, i64 248, !38, i64 264, !44, i64 272, !50, i64 280, !56, i64 288, !62, i64 296, !50, i64 320, !30, i64 328}
!11 = !{!"_ZTSN8audioapi9AudioNodeE", !12, i64 8, !15, i64 24, !17, i64 32, !6, i64 48, !6, i64 52, !6, i64 56, !20, i64 60, !21, i64 64, !22, i64 72, !28, i64 128, !6, i64 184, !30, i64 188, !30, i64 189, !24, 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 = !{!"_ZTSN8audioapi16ChannelCountModeE", !7, i64 0}
!21 = !{!"_ZTSN8audioapi21ChannelInterpretationE", !7, i64 0}
!22 = !{!"_ZTSSt13unordered_setIPN8audioapi9AudioNodeESt4hashIS2_ESt8equal_toIS2_ESaIS2_EE", !23, i64 0}
!23 = !{!"_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, !24, i64 8, !25, i64 16, !24, i64 24, !26, i64 32, !15, i64 48}
!24 = !{!"long", !7, i64 0}
!25 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !15, i64 0}
!26 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !27, i64 0, !24, i64 8}
!27 = !{!"float", !7, i64 0}
!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, !24, i64 8, !25, i64 16, !24, i64 24, !26, 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 = !{!"_ZTSN8audioapi12AnalyserNode10WindowTypeE", !7, i64 0}
!36 = !{!"_ZTSSt10shared_ptrIN8audioapi10AudioArrayEE", !37, i64 0}
!37 = !{!"_ZTSSt12__shared_ptrIN8audioapi10AudioArrayELN9__gnu_cxx12_Lock_policyE2EE", !15, i64 0, !19, i64 8}
!38 = !{!"_ZTSSt10unique_ptrIN8audioapi18CircularAudioArrayESt14default_deleteIS1_EE", !39, i64 0}
!39 = !{!"_ZTSSt15__uniq_ptr_dataIN8audioapi18CircularAudioArrayESt14default_deleteIS1_ELb1ELb1EE", !40, i64 0}
!40 = !{!"_ZTSSt15__uniq_ptr_implIN8audioapi18CircularAudioArrayESt14default_deleteIS1_EE", !41, i64 0}
!41 = !{!"_ZTSSt5tupleIJPN8audioapi18CircularAudioArrayESt14default_deleteIS1_EEE", !42, i64 0}
!42 = !{!"_ZTSSt11_Tuple_implILm0EJPN8audioapi18CircularAudioArrayESt14default_deleteIS1_EEE", !43, i64 0}
!43 = !{!"_ZTSSt10_Head_baseILm0EPN8audioapi18CircularAudioArrayELb0EE", !15, i64 0}
!44 = !{!"_ZTSSt10unique_ptrIN8audioapi8AudioBusESt14default_deleteIS1_EE", !45, i64 0}
!45 = !{!"_ZTSSt15__uniq_ptr_dataIN8audioapi8AudioBusESt14default_deleteIS1_ELb1ELb1EE", !46, i64 0}
!46 = !{!"_ZTSSt15__uniq_ptr_implIN8audioapi8AudioBusESt14default_deleteIS1_EE", !47, i64 0}
!47 = !{!"_ZTSSt5tupleIJPN8audioapi8AudioBusESt14default_deleteIS1_EEE", !48, i64 0}
!48 = !{!"_ZTSSt11_Tuple_implILm0EJPN8audioapi8AudioBusESt14default_deleteIS1_EEE", !49, i64 0}
!49 = !{!"_ZTSSt10_Head_baseILm0EPN8audioapi8AudioBusELb0EE", !15, i64 0}
!50 = !{!"_ZTSSt10unique_ptrIN8audioapi10AudioArrayESt14default_deleteIS1_EE", !51, i64 0}
!51 = !{!"_ZTSSt15__uniq_ptr_dataIN8audioapi10AudioArrayESt14default_deleteIS1_ELb1ELb1EE", !52, i64 0}
!52 = !{!"_ZTSSt15__uniq_ptr_implIN8audioapi10AudioArrayESt14default_deleteIS1_EE", !53, i64 0}
!53 = !{!"_ZTSSt5tupleIJPN8audioapi10AudioArrayESt14default_deleteIS1_EEE", !54, i64 0}
!54 = !{!"_ZTSSt11_Tuple_implILm0EJPN8audioapi10AudioArrayESt14default_deleteIS1_EEE", !55, i64 0}
!55 = !{!"_ZTSSt10_Head_baseILm0EPN8audioapi10AudioArrayELb0EE", !15, i64 0}
!56 = !{!"_ZTSSt10unique_ptrIN8audioapi3dsp3FFTESt14default_deleteIS2_EE", !57, i64 0}
!57 = !{!"_ZTSSt15__uniq_ptr_dataIN8audioapi3dsp3FFTESt14default_deleteIS2_ELb1ELb1EE", !58, i64 0}
!58 = !{!"_ZTSSt15__uniq_ptr_implIN8audioapi3dsp3FFTESt14default_deleteIS2_EE", !59, i64 0}
!59 = !{!"_ZTSSt5tupleIJPN8audioapi3dsp3FFTESt14default_deleteIS2_EEE", !60, i64 0}
!60 = !{!"_ZTSSt11_Tuple_implILm0EJPN8audioapi3dsp3FFTESt14default_deleteIS2_EEE", !61, i64 0}
!61 = !{!"_ZTSSt10_Head_baseILm0EPN8audioapi3dsp3FFTELb0EE", !15, i64 0}
!62 = !{!"_ZTSSt6vectorISt7complexIfESaIS1_EE", !63, i64 0}
!63 = !{!"_ZTSSt12_Vector_baseISt7complexIfESaIS1_EE", !64, i64 0}
!64 = !{!"_ZTSNSt12_Vector_baseISt7complexIfESaIS1_EE12_Vector_implE", !65, i64 0}
!65 = !{!"_ZTSNSt12_Vector_baseISt7complexIfESaIS1_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!66 = !{!10, !27, i64 228}
!67 = !{!27, !27, i64 0}
!68 = !{!7, !7, i64 0}
!69 = distinct !{!69, !70}
!70 = !{!"llvm.loop.mustprogress"}


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