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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%class.NullLogger = type { i8 }

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7vraudio12ConstantGainEmfRKNS_11ChannelViewEPS0_b(i64 noundef %0, float noundef %1, ptr noundef nonnull align 8 dereferenceable(17) %2, ptr noundef %3, i1 noundef zeroext %4) #1 {
  %6 = alloca i64, align 8
  %7 = alloca float, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i8, align 1
  %11 = alloca %class.NullLogger, align 1
  %12 = alloca i64, align 8
  %13 = alloca %class.NullLogger, align 1
  %14 = alloca %class.NullLogger, align 1
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i32, align 4
  %21 = alloca i64, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  store i64 %0, ptr %6, align 8, !tbaa !5
  store float %1, ptr %7, align 4, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !11
  store ptr %3, ptr %9, align 8, !tbaa !11
  %24 = zext i1 %4 to i8
  store i8 %24, ptr %10, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #6
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %11)
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %26 = load ptr, ptr %8, align 8, !tbaa !11
  %27 = call noundef i64 @_ZNK7vraudio11ChannelView4sizeEv(ptr noundef nonnull align 8 dereferenceable(17) %26)
  store i64 %27, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #6
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %13)
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %14)
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %30 = load i64, ptr %6, align 8, !tbaa !5
  %31 = urem i64 %30, 4
  %32 = sub i64 4, %31
  store i64 %32, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %33 = load i64, ptr %6, align 8, !tbaa !5
  %34 = load i64, ptr %15, align 8, !tbaa !5
  %35 = add i64 %33, %34
  store i64 %35, ptr %17, align 8, !tbaa !5
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %17)
  %37 = load i64, ptr %36, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  store i64 %37, ptr %16, align 8, !tbaa !5
  %38 = load i8, ptr %10, align 1, !tbaa !13, !range !15, !noundef !16
  %39 = trunc i8 %38 to i1
  br i1 %39, label %40, label %62

40:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %41 = load i64, ptr %6, align 8, !tbaa !5
  store i64 %41, ptr %18, align 8, !tbaa !5
  br label %42

42:                                               ; preds = %58, %40
  %43 = load i64, ptr %18, align 8, !tbaa !5
  %44 = load i64, ptr %16, align 8, !tbaa !5
  %45 = icmp ult i64 %43, %44
  br i1 %45, label %47, label %46

46:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %61

47:                                               ; preds = %42
  %48 = load ptr, ptr %8, align 8, !tbaa !11
  %49 = load i64, ptr %18, align 8, !tbaa !5
  %50 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7vraudio11ChannelViewixEm(ptr noundef nonnull align 8 dereferenceable(17) %48, i64 noundef %49)
  %51 = load float, ptr %50, align 4, !tbaa !9
  %52 = load float, ptr %7, align 4, !tbaa !9
  %53 = load ptr, ptr %9, align 8, !tbaa !11
  %54 = load i64, ptr %18, align 8, !tbaa !5
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7vraudio11ChannelViewixEm(ptr noundef nonnull align 8 dereferenceable(17) %53, i64 noundef %54)
  %56 = load float, ptr %55, align 4, !tbaa !9
  %57 = call float @llvm.fmuladd.f32(float %51, float %52, float %56)
  store float %57, ptr %55, align 4, !tbaa !9
  br label %58

58:                                               ; preds = %47
  %59 = load i64, ptr %18, align 8, !tbaa !5
  %60 = add i64 %59, 1
  store i64 %60, ptr %18, align 8, !tbaa !5
  br label %42, !llvm.loop !17

61:                                               ; preds = %46
  br label %83

62:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %63 = load i64, ptr %6, align 8, !tbaa !5
  store i64 %63, ptr %19, align 8, !tbaa !5
  br label %64

64:                                               ; preds = %79, %62
  %65 = load i64, ptr %19, align 8, !tbaa !5
  %66 = load i64, ptr %16, align 8, !tbaa !5
  %67 = icmp ult i64 %65, %66
  br i1 %67, label %69, label %68

68:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %82

69:                                               ; preds = %64
  %70 = load ptr, ptr %8, align 8, !tbaa !11
  %71 = load i64, ptr %19, align 8, !tbaa !5
  %72 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7vraudio11ChannelViewixEm(ptr noundef nonnull align 8 dereferenceable(17) %70, i64 noundef %71)
  %73 = load float, ptr %72, align 4, !tbaa !9
  %74 = load float, ptr %7, align 4, !tbaa !9
  %75 = fmul float %73, %74
  %76 = load ptr, ptr %9, align 8, !tbaa !11
  %77 = load i64, ptr %19, align 8, !tbaa !5
  %78 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7vraudio11ChannelViewixEm(ptr noundef nonnull align 8 dereferenceable(17) %76, i64 noundef %77)
  store float %75, ptr %78, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %69
  %80 = load i64, ptr %19, align 8, !tbaa !5
  %81 = add i64 %80, 1
  store i64 %81, ptr %19, align 8, !tbaa !5
  br label %64, !llvm.loop !19

82:                                               ; preds = %68
  br label %83

83:                                               ; preds = %82, %61
  %84 = load i64, ptr %16, align 8, !tbaa !5
  %85 = load i64, ptr %12, align 8, !tbaa !5
  %86 = icmp eq i64 %84, %85
  br i1 %86, label %87, label %88

87:                                               ; preds = %83
  store i32 1, ptr %20, align 4
  br label %111

88:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %89 = load i64, ptr %12, align 8, !tbaa !5
  %90 = load i64, ptr %16, align 8, !tbaa !5
  %91 = sub i64 %89, %90
  store i64 %91, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %92 = load ptr, ptr %8, align 8, !tbaa !11
  %93 = load i64, ptr %16, align 8, !tbaa !5
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7vraudio11ChannelViewixEm(ptr noundef nonnull align 8 dereferenceable(17) %92, i64 noundef %93)
  store ptr %94, ptr %22, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %95 = load ptr, ptr %9, align 8, !tbaa !11
  %96 = load i64, ptr %16, align 8, !tbaa !5
  %97 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7vraudio11ChannelViewixEm(ptr noundef nonnull align 8 dereferenceable(17) %95, i64 noundef %96)
  store ptr %97, ptr %23, align 8, !tbaa !11
  %98 = load i8, ptr %10, align 1, !tbaa !13, !range !15, !noundef !16
  %99 = trunc i8 %98 to i1
  br i1 %99, label %100, label %105

100:                                              ; preds = %88
  %101 = load i64, ptr %21, align 8, !tbaa !5
  %102 = load float, ptr %7, align 4, !tbaa !9
  %103 = load ptr, ptr %22, align 8, !tbaa !11
  %104 = load ptr, ptr %23, align 8, !tbaa !11
  call void @_ZN7vraudio27ScalarMultiplyAndAccumulateEmfPKfPf(i64 noundef %101, float noundef %102, ptr noundef %103, ptr noundef %104)
  br label %110

105:                                              ; preds = %88
  %106 = load i64, ptr %21, align 8, !tbaa !5
  %107 = load float, ptr %7, align 4, !tbaa !9
  %108 = load ptr, ptr %22, align 8, !tbaa !11
  %109 = load ptr, ptr %23, align 8, !tbaa !11
  call void @_ZN7vraudio14ScalarMultiplyEmfPKfPf(i64 noundef %106, float noundef %107, ptr noundef %108, ptr noundef %109)
  br label %110

110:                                              ; preds = %105, %100
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  store i32 0, ptr %20, align 4
  br label %111

111:                                              ; preds = %110, %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  %112 = load i32, ptr %20, align 4
  switch i32 %112, label %114 [
    i32 0, label %113
    i32 1, label %113
  ]

113:                                              ; preds = %111, %111
  ret void

114:                                              ; preds = %111
  unreachable
}

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

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

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!"long", !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, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


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

%class.NullLogger = type { i8 }

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(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 noundef i64 @_ZNK7vraudio11ChannelView4sizeEv(ptr noundef nonnull align 8 dereferenceable(17)) local_unnamed_addr #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7vraudio12ConstantGainEmfRKNS_11ChannelViewEPS0_b(i64 noundef %0, float noundef %1, ptr noundef nonnull align 8 dereferenceable(17) %2, ptr noundef %3, i1 noundef zeroext %4) local_unnamed_addr #1 {
  %6 = alloca %class.NullLogger, align 1
  %7 = alloca i64, align 8
  %8 = alloca %class.NullLogger, align 1
  %9 = alloca %class.NullLogger, align 1
  %10 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  %11 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %6)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %12 = call noundef i64 @_ZNK7vraudio11ChannelView4sizeEv(ptr noundef nonnull align 8 dereferenceable(17) %2)
  store i64 %12, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #6
  %13 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %8)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #6
  %14 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %9)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %reass.sub = and i64 %0, -4
  %15 = add i64 %reass.sub, 4
  store i64 %15, ptr %10, align 8, !tbaa !5
  %16 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %17 = load i64, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  %18 = icmp ugt i64 %17, %0
  br i1 %4, label %.preheader, label %.preheader40

.preheader40:                                     ; preds = %5
  br i1 %18, label %.lr.ph, label %.loopexit

.preheader:                                       ; preds = %5
  br i1 %18, label %.lr.ph44, label %.loopexit

.lr.ph44:                                         ; preds = %.preheader, %.lr.ph44
  %.043 = phi i64 [ %24, %.lr.ph44 ], [ %0, %.preheader ]
  %19 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7vraudio11ChannelViewixEm(ptr noundef nonnull align 8 dereferenceable(17) %2, i64 noundef %.043)
  %20 = load float, ptr %19, align 4, !tbaa !9
  %21 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7vraudio11ChannelViewixEm(ptr noundef nonnull align 8 dereferenceable(17) %3, i64 noundef %.043)
  %22 = load float, ptr %21, align 4, !tbaa !9
  %23 = call float @llvm.fmuladd.f32(float %20, float %1, float %22)
  store float %23, ptr %21, align 4, !tbaa !9
  %24 = add i64 %.043, 1
  %exitcond46.not = icmp eq i64 %24, %17
  br i1 %exitcond46.not, label %.loopexit, label %.lr.ph44, !llvm.loop !11

.lr.ph:                                           ; preds = %.preheader40, %.lr.ph
  %.03742 = phi i64 [ %29, %.lr.ph ], [ %0, %.preheader40 ]
  %25 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7vraudio11ChannelViewixEm(ptr noundef nonnull align 8 dereferenceable(17) %2, i64 noundef %.03742)
  %26 = load float, ptr %25, align 4, !tbaa !9
  %27 = fmul float %26, %1
  %28 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7vraudio11ChannelViewixEm(ptr noundef nonnull align 8 dereferenceable(17) %3, i64 noundef %.03742)
  store float %27, ptr %28, align 4, !tbaa !9
  %29 = add i64 %.03742, 1
  %exitcond.not = icmp eq i64 %29, %17
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph, !llvm.loop !13

.loopexit:                                        ; preds = %.lr.ph, %.lr.ph44, %.preheader40, %.preheader
  %30 = load i64, ptr %7, align 8, !tbaa !5
  %31 = icmp eq i64 %17, %30
  br i1 %31, label %38, label %32

32:                                               ; preds = %.loopexit
  %33 = sub i64 %30, %17
  %34 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7vraudio11ChannelViewixEm(ptr noundef nonnull align 8 dereferenceable(17) %2, i64 noundef %17)
  %35 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7vraudio11ChannelViewixEm(ptr noundef nonnull align 8 dereferenceable(17) %3, i64 noundef %17)
  br i1 %4, label %36, label %37

36:                                               ; preds = %32
  call void @_ZN7vraudio27ScalarMultiplyAndAccumulateEmfPKfPf(i64 noundef %33, float noundef %1, ptr noundef nonnull %34, ptr noundef nonnull %35)
  br label %38

37:                                               ; preds = %32
  call void @_ZN7vraudio14ScalarMultiplyEmfPKfPf(i64 noundef %33, float noundef %1, ptr noundef nonnull %34, ptr noundef nonnull %35)
  br label %38

38:                                               ; preds = %36, %37, %.loopexit
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  ret void
}

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

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

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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


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