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

; 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 }
%"class.vraudio::GainProcessor" = type <{ float, i8, [3 x i8] }>

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7vraudio13GainProcessor9ApplyGainEfRKNS_11ChannelViewEPS1_b(ptr noundef nonnull align 4 dereferenceable(5) %0, float noundef %1, ptr noundef nonnull align 8 dereferenceable(17) %2, ptr noundef %3, i1 noundef zeroext %4) #0 align 2 {
  %6 = alloca ptr, 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 float, align 4
  %17 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store float %1, ptr %7, align 4, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  %18 = zext i1 %4 to i8
  store i8 %18, ptr %10, align 1, !tbaa !11
  %19 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #6
  %20 = 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
  %21 = getelementptr inbounds %"class.vraudio::GainProcessor", ptr %19, i32 0, i32 1
  %22 = load i8, ptr %21, align 4, !tbaa !13, !range !15, !noundef !16
  %23 = trunc i8 %22 to i1
  br i1 %23, label %26, label %24

24:                                               ; preds = %5
  %25 = load float, ptr %7, align 4, !tbaa !9
  call void @_ZN7vraudio13GainProcessor5ResetEf(ptr noundef nonnull align 4 dereferenceable(5) %19, float noundef %25)
  br label %26

26:                                               ; preds = %24, %5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  %28 = call noundef i64 @_ZNK7vraudio11ChannelView4sizeEv(ptr noundef nonnull align 8 dereferenceable(17) %27)
  store i64 %28, ptr %12, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #6
  %29 = 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
  %30 = 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
  %31 = load float, ptr %7, align 4, !tbaa !9
  %32 = getelementptr inbounds %"class.vraudio::GainProcessor", ptr %19, i32 0, i32 0
  %33 = load float, ptr %32, align 4, !tbaa !19
  %34 = fsub float %31, %33
  %35 = call noundef float @_ZSt3absf(float noundef %34)
  %36 = fmul float %35, 2.048000e+03
  %37 = fptoui float %36 to i64
  store i64 %37, ptr %15, align 8, !tbaa !17
  %38 = load i64, ptr %15, align 8, !tbaa !17
  %39 = icmp ugt i64 %38, 0
  br i1 %39, label %40, label %51

40:                                               ; preds = %26
  %41 = load i64, ptr %15, align 8, !tbaa !17
  %42 = getelementptr inbounds %"class.vraudio::GainProcessor", ptr %19, i32 0, i32 0
  %43 = load float, ptr %42, align 4, !tbaa !19
  %44 = load float, ptr %7, align 4, !tbaa !9
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = load i8, ptr %10, align 1, !tbaa !11, !range !15, !noundef !16
  %48 = trunc i8 %47 to i1
  %49 = call noundef float @_ZN7vraudio14LinearGainRampEmffRKNS_11ChannelViewEPS0_b(i64 noundef %41, float noundef %43, float noundef %44, ptr noundef nonnull align 8 dereferenceable(17) %45, ptr noundef %46, i1 noundef zeroext %48)
  %50 = getelementptr inbounds %"class.vraudio::GainProcessor", ptr %19, i32 0, i32 0
  store float %49, ptr %50, align 4, !tbaa !19
  br label %54

51:                                               ; preds = %26
  %52 = load float, ptr %7, align 4, !tbaa !9
  %53 = getelementptr inbounds %"class.vraudio::GainProcessor", ptr %19, i32 0, i32 0
  store float %52, ptr %53, align 4, !tbaa !19
  br label %54

54:                                               ; preds = %51, %40
  %55 = load i64, ptr %15, align 8, !tbaa !17
  %56 = load i64, ptr %12, align 8, !tbaa !17
  %57 = icmp ult i64 %55, %56
  br i1 %57, label %58, label %106

58:                                               ; preds = %54
  %59 = getelementptr inbounds %"class.vraudio::GainProcessor", ptr %19, i32 0, i32 0
  %60 = load float, ptr %59, align 4, !tbaa !19
  %61 = call noundef zeroext i1 @_ZN7vraudio14IsGainNearZeroEf(float noundef %60)
  br i1 %61, label %62, label %73

62:                                               ; preds = %58
  %63 = load i8, ptr %10, align 1, !tbaa !11, !range !15, !noundef !16
  %64 = trunc i8 %63 to i1
  br i1 %64, label %72, label %65

65:                                               ; preds = %62
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %66)
  %68 = load i64, ptr %15, align 8, !tbaa !17
  %69 = getelementptr inbounds float, ptr %67, i64 %68
  %70 = load ptr, ptr %9, align 8, !tbaa !5
  %71 = call noundef ptr @_ZN7vraudio11ChannelView3endEv(ptr noundef nonnull align 8 dereferenceable(17) %70)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store float 0.000000e+00, ptr %16, align 4, !tbaa !9
  call void @_ZSt4fillIPffEvT_S1_RKT0_(ptr noundef %69, ptr noundef %71, ptr noundef nonnull align 4 dereferenceable(4) %16)
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %72

72:                                               ; preds = %65, %62
  store i32 1, ptr %17, align 4
  br label %107

73:                                               ; preds = %58
  %74 = getelementptr inbounds %"class.vraudio::GainProcessor", ptr %19, i32 0, i32 0
  %75 = load float, ptr %74, align 4, !tbaa !19
  %76 = call noundef zeroext i1 @_ZN7vraudio15IsGainNearUnityEf(float noundef %75)
  br i1 %76, label %77, label %97

77:                                               ; preds = %73
  %78 = load i8, ptr %10, align 1, !tbaa !11, !range !15, !noundef !16
  %79 = trunc i8 %78 to i1
  br i1 %79, label %97, label %80

80:                                               ; preds = %77
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  %82 = load ptr, ptr %9, align 8, !tbaa !5
  %83 = icmp ne ptr %81, %82
  br i1 %83, label %84, label %96

84:                                               ; preds = %80
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  %86 = call noundef ptr @_ZNK7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %85)
  %87 = load i64, ptr %15, align 8, !tbaa !17
  %88 = getelementptr inbounds float, ptr %86, i64 %87
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = call noundef ptr @_ZNK7vraudio11ChannelView3endEv(ptr noundef nonnull align 8 dereferenceable(17) %89)
  %91 = load ptr, ptr %9, align 8, !tbaa !5
  %92 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %91)
  %93 = load i64, ptr %15, align 8, !tbaa !17
  %94 = getelementptr inbounds float, ptr %92, i64 %93
  %95 = call noundef ptr @_ZSt4copyIPKfPfET0_T_S4_S3_(ptr noundef %88, ptr noundef %90, ptr noundef %94)
  br label %96

96:                                               ; preds = %84, %80
  store i32 1, ptr %17, align 4
  br label %107

97:                                               ; preds = %77, %73
  br label %98

98:                                               ; preds = %97
  %99 = load i64, ptr %15, align 8, !tbaa !17
  %100 = getelementptr inbounds %"class.vraudio::GainProcessor", ptr %19, i32 0, i32 0
  %101 = load float, ptr %100, align 4, !tbaa !19
  %102 = load ptr, ptr %8, align 8, !tbaa !5
  %103 = load ptr, ptr %9, align 8, !tbaa !5
  %104 = load i8, ptr %10, align 1, !tbaa !11, !range !15, !noundef !16
  %105 = trunc i8 %104 to i1
  call void @_ZN7vraudio12ConstantGainEmfRKNS_11ChannelViewEPS0_b(i64 noundef %99, float noundef %101, ptr noundef nonnull align 8 dereferenceable(17) %102, ptr noundef %103, i1 noundef zeroext %105)
  br label %106

106:                                              ; preds = %98, %54
  store i32 0, ptr %17, align 4
  br label %107

107:                                              ; preds = %106, %96, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  %108 = load i32, ptr %17, align 4
  switch i32 %108, label %110 [
    i32 0, label %109
    i32 1, label %109
  ]

109:                                              ; preds = %107, %107
  ret void

110:                                              ; preds = %107
  unreachable
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7vraudio13GainProcessor5ResetEf(ptr noundef nonnull align 4 dereferenceable(5), float noundef) #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3absf(float noundef) #3

declare noundef float @_ZN7vraudio14LinearGainRampEmffRKNS_11ChannelViewEPS0_b(i64 noundef, float noundef, float noundef, ptr noundef nonnull align 8 dereferenceable(17), ptr noundef, i1 noundef zeroext) #4

declare noundef zeroext i1 @_ZN7vraudio14IsGainNearZeroEf(float noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPffEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN7vraudio11ChannelView3endEv(ptr noundef nonnull align 8 dereferenceable(17)) #0 align 2

declare noundef zeroext i1 @_ZN7vraudio15IsGainNearUnityEf(float noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt4copyIPKfPfET0_T_S4_S3_(ptr noundef, ptr noundef, ptr noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7vraudio11ChannelView3endEv(ptr noundef nonnull align 8 dereferenceable(17)) #0 align 2

declare void @_ZN7vraudio12ConstantGainEmfRKNS_11ChannelViewEPS0_b(i64 noundef, float noundef, ptr noundef nonnull align 8 dereferenceable(17), ptr noundef, i1 noundef zeroext) #4

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #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 = { inlinehint 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 #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 = !{!"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, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !12, i64 4}
!14 = !{!"_ZTSN7vraudio13GainProcessorE", !10, i64 0, !12, i64 4}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!18, !18, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!14, !10, i64 0}


; 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 uwtable
define dso_local void @_ZN7vraudio13GainProcessor9ApplyGainEfRKNS_11ChannelViewEPS1_b(ptr noundef nonnull align 4 dereferenceable(5) %0, float noundef %1, ptr noundef nonnull align 8 dereferenceable(17) %2, ptr noundef %3, i1 noundef zeroext %4) local_unnamed_addr #0 align 2 {
  %6 = alloca %class.NullLogger, align 1
  %7 = alloca %class.NullLogger, align 1
  %8 = alloca %class.NullLogger, align 1
  %9 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  %10 = 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
  %11 = getelementptr inbounds i8, ptr %0, i64 4
  %12 = load i8, ptr %11, align 4, !tbaa !5, !range !11, !noundef !12
  %13 = trunc nuw i8 %12 to i1
  br i1 %13, label %15, label %14

14:                                               ; preds = %5
  call void @_ZN7vraudio13GainProcessor5ResetEf(ptr noundef nonnull align 4 dereferenceable(5) %0, float noundef %1)
  br label %15

15:                                               ; preds = %14, %5
  %16 = call noundef i64 @_ZNK7vraudio11ChannelView4sizeEv(ptr noundef nonnull align 8 dereferenceable(17) %2)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #6
  %17 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %7)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #6
  %18 = 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
  %19 = load float, ptr %0, align 4, !tbaa !13
  %20 = fsub float %1, %19
  %21 = call noundef float @_ZSt3absf(float noundef %20)
  %22 = fmul float %21, 2.048000e+03
  %23 = fptoui float %22 to i64
  %.not = icmp eq i64 %23, 0
  br i1 %.not, label %27, label %24

24:                                               ; preds = %15
  %25 = load float, ptr %0, align 4, !tbaa !13
  %26 = call noundef float @_ZN7vraudio14LinearGainRampEmffRKNS_11ChannelViewEPS0_b(i64 noundef %23, float noundef %25, float noundef %1, ptr noundef nonnull align 8 dereferenceable(17) %2, ptr noundef %3, i1 noundef zeroext %4)
  br label %27

27:                                               ; preds = %15, %24
  %storemerge = phi float [ %26, %24 ], [ %1, %15 ]
  store float %storemerge, ptr %0, align 4, !tbaa !13
  %28 = icmp ugt i64 %16, %23
  br i1 %28, label %29, label %49

29:                                               ; preds = %27
  %30 = call noundef zeroext i1 @_ZN7vraudio14IsGainNearZeroEf(float noundef %storemerge)
  br i1 %30, label %31, label %36

31:                                               ; preds = %29
  br i1 %4, label %49, label %32

32:                                               ; preds = %31
  %33 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %3)
  %34 = getelementptr inbounds float, ptr %33, i64 %23
  %35 = call noundef ptr @_ZN7vraudio11ChannelView3endEv(ptr noundef nonnull align 8 dereferenceable(17) %3)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  store float 0.000000e+00, ptr %9, align 4, !tbaa !14
  call void @_ZSt4fillIPffEvT_S1_RKT0_(ptr noundef %34, ptr noundef %35, ptr noundef nonnull align 4 dereferenceable(4) %9)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  br label %49

36:                                               ; preds = %29
  %37 = load float, ptr %0, align 4, !tbaa !13
  %38 = call noundef zeroext i1 @_ZN7vraudio15IsGainNearUnityEf(float noundef %37)
  %.not31 = xor i1 %38, true
  %brmerge = or i1 %.not31, %4
  br i1 %brmerge, label %47, label %39

39:                                               ; preds = %36
  %.not30 = icmp eq ptr %2, %3
  br i1 %.not30, label %49, label %40

40:                                               ; preds = %39
  %41 = call noundef ptr @_ZNK7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %2)
  %42 = getelementptr inbounds float, ptr %41, i64 %23
  %43 = call noundef ptr @_ZNK7vraudio11ChannelView3endEv(ptr noundef nonnull align 8 dereferenceable(17) %2)
  %44 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %3)
  %45 = getelementptr inbounds float, ptr %44, i64 %23
  %46 = call noundef ptr @_ZSt4copyIPKfPfET0_T_S4_S3_(ptr noundef %42, ptr noundef %43, ptr noundef %45)
  br label %49

47:                                               ; preds = %36
  %48 = load float, ptr %0, align 4, !tbaa !13
  call void @_ZN7vraudio12ConstantGainEmfRKNS_11ChannelViewEPS0_b(i64 noundef %23, float noundef %48, ptr noundef nonnull align 8 dereferenceable(17) %2, ptr noundef %3, i1 noundef zeroext %4)
  br label %49

49:                                               ; preds = %27, %47, %39, %40, %31, %32
  ret void
}

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

; 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 #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7vraudio13GainProcessor5ResetEf(ptr noundef nonnull align 4 dereferenceable(5), float noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3absf(float noundef) local_unnamed_addr #3

declare noundef float @_ZN7vraudio14LinearGainRampEmffRKNS_11ChannelViewEPS0_b(i64 noundef, float noundef, float noundef, ptr noundef nonnull align 8 dereferenceable(17), ptr noundef, i1 noundef zeroext) local_unnamed_addr #4

declare noundef zeroext i1 @_ZN7vraudio14IsGainNearZeroEf(float noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPffEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

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

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

declare noundef zeroext i1 @_ZN7vraudio15IsGainNearUnityEf(float noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt4copyIPKfPfET0_T_S4_S3_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

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

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

declare void @_ZN7vraudio12ConstantGainEmfRKNS_11ChannelViewEPS0_b(i64 noundef, float noundef, ptr noundef nonnull align 8 dereferenceable(17), ptr noundef, i1 noundef zeroext) local_unnamed_addr #4

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 willreturn memory(argmem: readwrite) }
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 = { 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 #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 = { inlinehint 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 #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, !10, i64 4}
!6 = !{!"_ZTSN7vraudio13GainProcessorE", !7, i64 0, !10, i64 4}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!6, !7, i64 0}
!14 = !{!7, !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass