; LLVM IR from hasseily/SuperDuperDisplay :: Ayumi.ll (ZN5Ayumi11UpdateMixerEv)

; 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.Ayumi = type <{ i8, [7 x i8], [3 x %"struct.Ayumi::tone_channel"], i32, i32, i32, i32, i32, i32, i32, i32, ptr, double, double, %"struct.Ayumi::interpolator", %"struct.Ayumi::interpolator", [384 x double], [384 x double], i32, [4 x i8], %"struct.Ayumi::dc_filter", %"struct.Ayumi::dc_filter", i32, [4 x i8], double, double, i8, [7 x i8] }>
%"struct.Ayumi::tone_channel" = type { i32, i32, i32, i8, i8, i8, i32, double, double }
%"struct.Ayumi::interpolator" = type { [4 x double], [4 x double] }
%"struct.Ayumi::dc_filter" = type { double, [1024 x double] }

; 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 @_ZN5Ayumi11UpdateMixerEv(ptr noundef nonnull align 8 dereferenceable(22889) %0) #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  store ptr %0, ptr %2, align 8, !tbaa !5
  %10 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %11 = call noundef i32 @_ZN5Ayumi11UpdateNoiseEv(ptr noundef nonnull align 8 dereferenceable(22889) %10)
  store i32 %11, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %12 = call noundef i32 @_ZN5Ayumi14UpdateEnvelopeEv(ptr noundef nonnull align 8 dereferenceable(22889) %10)
  store i32 %12, ptr %6, align 4, !tbaa !9
  %13 = getelementptr inbounds %class.Ayumi, ptr %10, i32 0, i32 24
  store double 0.000000e+00, ptr %13, align 8, !tbaa !11
  %14 = getelementptr inbounds %class.Ayumi, ptr %10, i32 0, i32 25
  store double 0.000000e+00, ptr %14, align 8, !tbaa !17
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %15

15:                                               ; preds = %110, %1
  %16 = load i32, ptr %3, align 4, !tbaa !9
  %17 = icmp slt i32 %16, 3
  br i1 %17, label %18, label %113

18:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #4
  %19 = getelementptr inbounds %class.Ayumi, ptr %10, i32 0, i32 2
  %20 = load i32, ptr %3, align 4, !tbaa !9
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [3 x %"struct.Ayumi::tone_channel"], ptr %19, i64 0, i64 %21
  %23 = getelementptr inbounds %"struct.Ayumi::tone_channel", ptr %22, i32 0, i32 3
  %24 = load i8, ptr %23, align 4, !tbaa !18, !range !20, !noundef !21
  %25 = trunc i8 %24 to i1
  br i1 %25, label %30, label %26

26:                                               ; preds = %18
  %27 = load i32, ptr %3, align 4, !tbaa !9
  %28 = call noundef i32 @_ZN5Ayumi10UpdateToneEi(ptr noundef nonnull align 8 dereferenceable(22889) %10, i32 noundef %27)
  %29 = icmp ne i32 %28, 0
  br label %30

30:                                               ; preds = %26, %18
  %31 = phi i1 [ false, %18 ], [ %29, %26 ]
  %32 = zext i1 %31 to i8
  store i8 %32, ptr %7, align 1, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #4
  %33 = getelementptr inbounds %class.Ayumi, ptr %10, i32 0, i32 2
  %34 = load i32, ptr %3, align 4, !tbaa !9
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [3 x %"struct.Ayumi::tone_channel"], ptr %33, i64 0, i64 %35
  %37 = getelementptr inbounds %"struct.Ayumi::tone_channel", ptr %36, i32 0, i32 4
  %38 = load i8, ptr %37, align 1, !tbaa !23, !range !20, !noundef !21
  %39 = trunc i8 %38 to i1
  br i1 %39, label %43, label %40

40:                                               ; preds = %30
  %41 = load i32, ptr %5, align 4, !tbaa !9
  %42 = icmp ne i32 %41, 0
  br label %43

43:                                               ; preds = %40, %30
  %44 = phi i1 [ false, %30 ], [ %42, %40 ]
  %45 = zext i1 %44 to i8
  store i8 %45, ptr %8, align 1, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #4
  %46 = load i8, ptr %7, align 1, !tbaa !22, !range !20, !noundef !21
  %47 = trunc i8 %46 to i1
  br i1 %47, label %51, label %48

48:                                               ; preds = %43
  %49 = load i8, ptr %8, align 1, !tbaa !22, !range !20, !noundef !21
  %50 = trunc i8 %49 to i1
  br label %51

51:                                               ; preds = %48, %43
  %52 = phi i1 [ true, %43 ], [ %50, %48 ]
  %53 = zext i1 %52 to i8
  store i8 %53, ptr %9, align 1, !tbaa !22
  %54 = load i8, ptr %9, align 1, !tbaa !22, !range !20, !noundef !21
  %55 = trunc i8 %54 to i1
  br i1 %55, label %56, label %77

56:                                               ; preds = %51
  %57 = getelementptr inbounds %class.Ayumi, ptr %10, i32 0, i32 2
  %58 = load i32, ptr %3, align 4, !tbaa !9
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [3 x %"struct.Ayumi::tone_channel"], ptr %57, i64 0, i64 %59
  %61 = getelementptr inbounds %"struct.Ayumi::tone_channel", ptr %60, i32 0, i32 5
  %62 = load i8, ptr %61, align 2, !tbaa !24, !range !20, !noundef !21
  %63 = trunc i8 %62 to i1
  br i1 %63, label %64, label %66

64:                                               ; preds = %56
  %65 = load i32, ptr %6, align 4, !tbaa !9
  br label %75

66:                                               ; preds = %56
  %67 = getelementptr inbounds %class.Ayumi, ptr %10, i32 0, i32 2
  %68 = load i32, ptr %3, align 4, !tbaa !9
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [3 x %"struct.Ayumi::tone_channel"], ptr %67, i64 0, i64 %69
  %71 = getelementptr inbounds %"struct.Ayumi::tone_channel", ptr %70, i32 0, i32 6
  %72 = load i32, ptr %71, align 8, !tbaa !25
  %73 = mul nsw i32 %72, 2
  %74 = add nsw i32 %73, 1
  br label %75

75:                                               ; preds = %66, %64
  %76 = phi i32 [ %65, %64 ], [ %74, %66 ]
  br label %78

77:                                               ; preds = %51
  br label %78

78:                                               ; preds = %77, %75
  %79 = phi i32 [ %76, %75 ], [ 0, %77 ]
  store i32 %79, ptr %4, align 4, !tbaa !9
  %80 = getelementptr inbounds %class.Ayumi, ptr %10, i32 0, i32 11
  %81 = load ptr, ptr %80, align 8, !tbaa !26
  %82 = load i32, ptr %4, align 4, !tbaa !9
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds double, ptr %81, i64 %83
  %85 = load double, ptr %84, align 8, !tbaa !27
  %86 = getelementptr inbounds %class.Ayumi, ptr %10, i32 0, i32 2
  %87 = load i32, ptr %3, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [3 x %"struct.Ayumi::tone_channel"], ptr %86, i64 0, i64 %88
  %90 = getelementptr inbounds %"struct.Ayumi::tone_channel", ptr %89, i32 0, i32 7
  %91 = load double, ptr %90, align 8, !tbaa !28
  %92 = getelementptr inbounds %class.Ayumi, ptr %10, i32 0, i32 24
  %93 = load double, ptr %92, align 8, !tbaa !11
  %94 = call double @llvm.fmuladd.f64(double %85, double %91, double %93)
  store double %94, ptr %92, align 8, !tbaa !11
  %95 = getelementptr inbounds %class.Ayumi, ptr %10, i32 0, i32 11
  %96 = load ptr, ptr %95, align 8, !tbaa !26
  %97 = load i32, ptr %4, align 4, !tbaa !9
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds double, ptr %96, i64 %98
  %100 = load double, ptr %99, align 8, !tbaa !27
  %101 = getelementptr inbounds %class.Ayumi, ptr %10, i32 0, i32 2
  %102 = load i32, ptr %3, align 4, !tbaa !9
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [3 x %"struct.Ayumi::tone_channel"], ptr %101, i64 0, i64 %103
  %105 = getelementptr inbounds %"struct.Ayumi::tone_channel", ptr %104, i32 0, i32 8
  %106 = load double, ptr %105, align 8, !tbaa !29
  %107 = getelementptr inbounds %class.Ayumi, ptr %10, i32 0, i32 25
  %108 = load double, ptr %107, align 8, !tbaa !17
  %109 = call double @llvm.fmuladd.f64(double %100, double %106, double %108)
  store double %109, ptr %107, align 8, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #4
  br label %110

110:                                              ; preds = %78
  %111 = load i32, ptr %3, align 4, !tbaa !9
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %3, align 4, !tbaa !9
  br label %15, !llvm.loop !30

113:                                              ; preds = %15
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN5Ayumi14UpdateEnvelopeEv(ptr noundef nonnull align 8 dereferenceable(22889)) #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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, !13, i64 22872}
!12 = !{!"_ZTS5Ayumi", !7, i64 0, !7, i64 8, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !10, i64 156, !6, i64 160, !13, i64 168, !13, i64 176, !14, i64 184, !14, i64 248, !7, i64 312, !7, i64 3384, !10, i64 6456, !15, i64 6464, !15, i64 14664, !10, i64 22864, !13, i64 22872, !13, i64 22880, !16, i64 22888}
!13 = !{!"double", !7, i64 0}
!14 = !{!"_ZTSN5Ayumi12interpolatorE", !7, i64 0, !7, i64 32}
!15 = !{!"_ZTSN5Ayumi9dc_filterE", !13, i64 0, !7, i64 8}
!16 = !{!"bool", !7, i64 0}
!17 = !{!12, !13, i64 22880}
!18 = !{!19, !16, i64 12}
!19 = !{!"_ZTSN5Ayumi12tone_channelE", !10, i64 0, !10, i64 4, !10, i64 8, !16, i64 12, !16, i64 13, !16, i64 14, !10, i64 16, !13, i64 24, !13, i64 32}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!16, !16, i64 0}
!23 = !{!19, !16, i64 13}
!24 = !{!19, !16, i64 14}
!25 = !{!19, !10, i64 16}
!26 = !{!12, !6, i64 160}
!27 = !{!13, !13, i64 0}
!28 = !{!19, !13, i64 24}
!29 = !{!19, !13, i64 32}
!30 = distinct !{!30, !31}
!31 = !{!"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 uwtable
define dso_local void @_ZN5Ayumi11UpdateMixerEv(ptr noundef nonnull align 8 dereferenceable(22889) %0) local_unnamed_addr #0 align 2 {
  %2 = tail call noundef i32 @_ZN5Ayumi11UpdateNoiseEv(ptr noundef nonnull align 8 dereferenceable(22889) %0)
  %3 = tail call noundef i32 @_ZN5Ayumi14UpdateEnvelopeEv(ptr noundef nonnull align 8 dereferenceable(22889) %0)
  %4 = getelementptr inbounds i8, ptr %0, i64 22872
  %5 = getelementptr inbounds i8, ptr %0, i64 22880
  %6 = icmp ne i32 %2, 0
  %7 = getelementptr inbounds i8, ptr %0, i64 160
  %8 = getelementptr inbounds i8, ptr %0, i64 20
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %4, i8 0, i64 16, i1 false)
  %9 = load i8, ptr %8, align 4, !tbaa !5, !range !12, !noundef !13
  %10 = trunc nuw i8 %9 to i1
  br i1 %10, label %14, label %11

11:                                               ; preds = %1
  %12 = tail call noundef i32 @_ZN5Ayumi10UpdateToneEi(ptr noundef nonnull align 8 dereferenceable(22889) %0, i32 noundef 0)
  %13 = icmp ne i32 %12, 0
  br label %14

14:                                               ; preds = %11, %1
  %15 = phi i1 [ false, %1 ], [ %13, %11 ]
  %16 = getelementptr inbounds i8, ptr %0, i64 21
  %17 = load i8, ptr %16, align 1, !tbaa !14, !range !12, !noundef !13
  %18 = trunc nuw i8 %17 to i1
  %not. = xor i1 %18, true
  %19 = and i1 %6, %not.
  %20 = select i1 %15, i1 true, i1 %19
  br i1 %20, label %21, label %30

21:                                               ; preds = %14
  %22 = getelementptr inbounds i8, ptr %0, i64 22
  %23 = load i8, ptr %22, align 2, !tbaa !15, !range !12, !noundef !13
  %24 = trunc nuw i8 %23 to i1
  br i1 %24, label %30, label %25

25:                                               ; preds = %21
  %26 = getelementptr inbounds i8, ptr %0, i64 24
  %27 = load i32, ptr %26, align 8, !tbaa !16
  %28 = shl nsw i32 %27, 1
  %29 = or disjoint i32 %28, 1
  br label %30

30:                                               ; preds = %21, %14, %25
  %31 = phi i32 [ %29, %25 ], [ 0, %14 ], [ %3, %21 ]
  %32 = load ptr, ptr %7, align 8, !tbaa !17
  %33 = sext i32 %31 to i64
  %34 = getelementptr inbounds double, ptr %32, i64 %33
  %35 = load double, ptr %34, align 8, !tbaa !22
  %36 = getelementptr inbounds i8, ptr %0, i64 32
  %37 = load double, ptr %36, align 8, !tbaa !23
  %38 = load double, ptr %4, align 8, !tbaa !24
  %39 = tail call double @llvm.fmuladd.f64(double %35, double %37, double %38)
  store double %39, ptr %4, align 8, !tbaa !24
  %40 = load double, ptr %34, align 8, !tbaa !22
  %41 = getelementptr inbounds i8, ptr %0, i64 40
  %42 = load double, ptr %41, align 8, !tbaa !25
  %43 = load double, ptr %5, align 8, !tbaa !26
  %44 = tail call double @llvm.fmuladd.f64(double %40, double %42, double %43)
  store double %44, ptr %5, align 8, !tbaa !26
  %45 = getelementptr inbounds i8, ptr %0, i64 60
  %46 = load i8, ptr %45, align 4, !tbaa !5, !range !12, !noundef !13
  %47 = trunc nuw i8 %46 to i1
  br i1 %47, label %51, label %48

48:                                               ; preds = %30
  %49 = tail call noundef i32 @_ZN5Ayumi10UpdateToneEi(ptr noundef nonnull align 8 dereferenceable(22889) %0, i32 noundef 1)
  %50 = icmp ne i32 %49, 0
  br label %51

51:                                               ; preds = %48, %30
  %52 = phi i1 [ false, %30 ], [ %50, %48 ]
  %53 = getelementptr inbounds i8, ptr %0, i64 61
  %54 = load i8, ptr %53, align 1, !tbaa !14, !range !12, !noundef !13
  %55 = trunc nuw i8 %54 to i1
  %not..1 = xor i1 %55, true
  %56 = and i1 %6, %not..1
  %57 = select i1 %52, i1 true, i1 %56
  br i1 %57, label %58, label %67

58:                                               ; preds = %51
  %59 = getelementptr inbounds i8, ptr %0, i64 62
  %60 = load i8, ptr %59, align 2, !tbaa !15, !range !12, !noundef !13
  %61 = trunc nuw i8 %60 to i1
  br i1 %61, label %67, label %62

62:                                               ; preds = %58
  %63 = getelementptr inbounds i8, ptr %0, i64 64
  %64 = load i32, ptr %63, align 8, !tbaa !16
  %65 = shl nsw i32 %64, 1
  %66 = or disjoint i32 %65, 1
  br label %67

67:                                               ; preds = %62, %58, %51
  %68 = phi i32 [ %66, %62 ], [ 0, %51 ], [ %3, %58 ]
  %69 = load ptr, ptr %7, align 8, !tbaa !17
  %70 = sext i32 %68 to i64
  %71 = getelementptr inbounds double, ptr %69, i64 %70
  %72 = load double, ptr %71, align 8, !tbaa !22
  %73 = getelementptr inbounds i8, ptr %0, i64 72
  %74 = load double, ptr %73, align 8, !tbaa !23
  %75 = load double, ptr %4, align 8, !tbaa !24
  %76 = tail call double @llvm.fmuladd.f64(double %72, double %74, double %75)
  store double %76, ptr %4, align 8, !tbaa !24
  %77 = load double, ptr %71, align 8, !tbaa !22
  %78 = getelementptr inbounds i8, ptr %0, i64 80
  %79 = load double, ptr %78, align 8, !tbaa !25
  %80 = load double, ptr %5, align 8, !tbaa !26
  %81 = tail call double @llvm.fmuladd.f64(double %77, double %79, double %80)
  store double %81, ptr %5, align 8, !tbaa !26
  %82 = getelementptr inbounds i8, ptr %0, i64 100
  %83 = load i8, ptr %82, align 4, !tbaa !5, !range !12, !noundef !13
  %84 = trunc nuw i8 %83 to i1
  br i1 %84, label %88, label %85

85:                                               ; preds = %67
  %86 = tail call noundef i32 @_ZN5Ayumi10UpdateToneEi(ptr noundef nonnull align 8 dereferenceable(22889) %0, i32 noundef 2)
  %87 = icmp ne i32 %86, 0
  br label %88

88:                                               ; preds = %85, %67
  %89 = phi i1 [ false, %67 ], [ %87, %85 ]
  %90 = getelementptr inbounds i8, ptr %0, i64 101
  %91 = load i8, ptr %90, align 1, !tbaa !14, !range !12, !noundef !13
  %92 = trunc nuw i8 %91 to i1
  %not..2 = xor i1 %92, true
  %93 = and i1 %6, %not..2
  %94 = select i1 %89, i1 true, i1 %93
  br i1 %94, label %95, label %104

95:                                               ; preds = %88
  %96 = getelementptr inbounds i8, ptr %0, i64 102
  %97 = load i8, ptr %96, align 2, !tbaa !15, !range !12, !noundef !13
  %98 = trunc nuw i8 %97 to i1
  br i1 %98, label %104, label %99

99:                                               ; preds = %95
  %100 = getelementptr inbounds i8, ptr %0, i64 104
  %101 = load i32, ptr %100, align 8, !tbaa !16
  %102 = shl nsw i32 %101, 1
  %103 = or disjoint i32 %102, 1
  br label %104

104:                                              ; preds = %99, %95, %88
  %105 = phi i32 [ %103, %99 ], [ 0, %88 ], [ %3, %95 ]
  %106 = load ptr, ptr %7, align 8, !tbaa !17
  %107 = sext i32 %105 to i64
  %108 = getelementptr inbounds double, ptr %106, i64 %107
  %109 = load double, ptr %108, align 8, !tbaa !22
  %110 = getelementptr inbounds i8, ptr %0, i64 112
  %111 = load double, ptr %110, align 8, !tbaa !23
  %112 = load double, ptr %4, align 8, !tbaa !24
  %113 = tail call double @llvm.fmuladd.f64(double %109, double %111, double %112)
  store double %113, ptr %4, align 8, !tbaa !24
  %114 = load double, ptr %108, align 8, !tbaa !22
  %115 = getelementptr inbounds i8, ptr %0, i64 120
  %116 = load double, ptr %115, align 8, !tbaa !25
  %117 = load double, ptr %5, align 8, !tbaa !26
  %118 = tail call double @llvm.fmuladd.f64(double %114, double %116, double %117)
  store double %118, ptr %5, align 8, !tbaa !26
  ret void
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN5Ayumi14UpdateEnvelopeEv(ptr noundef nonnull align 8 dereferenceable(22889)) local_unnamed_addr #0 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

!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 12}
!6 = !{!"_ZTSN5Ayumi12tone_channelE", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 12, !10, i64 13, !10, i64 14, !7, i64 16, !11, i64 24, !11, i64 32}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{i8 0, i8 2}
!13 = !{}
!14 = !{!6, !10, i64 13}
!15 = !{!6, !10, i64 14}
!16 = !{!6, !7, i64 16}
!17 = !{!18, !19, i64 160}
!18 = !{!"_ZTS5Ayumi", !8, i64 0, !8, i64 8, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144, !7, i64 148, !7, i64 152, !7, i64 156, !19, i64 160, !11, i64 168, !11, i64 176, !20, i64 184, !20, i64 248, !8, i64 312, !8, i64 3384, !7, i64 6456, !21, i64 6464, !21, i64 14664, !7, i64 22864, !11, i64 22872, !11, i64 22880, !10, i64 22888}
!19 = !{!"any pointer", !8, i64 0}
!20 = !{!"_ZTSN5Ayumi12interpolatorE", !8, i64 0, !8, i64 32}
!21 = !{!"_ZTSN5Ayumi9dc_filterE", !11, i64 0, !8, i64 8}
!22 = !{!11, !11, i64 0}
!23 = !{!6, !11, i64 24}
!24 = !{!18, !11, i64 22872}
!25 = !{!6, !11, i64 32}
!26 = !{!18, !11, i64 22880}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,MemCpyOptPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass