; LLVM IR from Overload-Technologies/Overload :: Dependencies/soloud/src/audiosource/vizsn (soloud_vizsn)

; 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.SoLoud::VizsnInstance" = type { %"class.SoLoud::AudioSourceInstance", ptr, %"struct.SoLoud::VizsnBank", %"struct.SoLoud::VizsnBank", %"struct.SoLoud::VizsnBank", i32, i32, i32, [1024 x i32], i32, i32, float, ptr, [2048 x float], i32, i32, i32, i32, i32, float }
%"class.SoLoud::AudioSourceInstance" = type { ptr, i32, i32, i32, float, [8 x float], float, float, float, float, i32, float, float, double, double, %"class.SoLoud::Fader", %"class.SoLoud::Fader", %"class.SoLoud::Fader", %"class.SoLoud::Fader", %"class.SoLoud::Fader", i32, [8 x float], i32, i32, [8 x ptr], [2 x ptr], i32, i32, i32, double }
%"class.SoLoud::Fader" = type { float, float, float, double, double, double, float, i32 }
%"struct.SoLoud::VizsnBank" = type { [10 x %"struct.SoLoud::VizsnResonator"], float, float, float, float, float, float }
%"struct.SoLoud::VizsnResonator" = type { float, float, float, float, float }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN6SoLoud14VizsnResonator8resonateEf(ptr noundef nonnull align 4 dereferenceable(20), float noundef) #0 align 2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #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 noundef float @_ZN6SoLoud14VizsnResonator12antiresonateEf(ptr noundef nonnull align 4 dereferenceable(20), float noundef) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef float @_ZN6SoLoud13VizsnInstance7genwaveEv(ptr noundef nonnull align 8 dereferenceable(13520) %0) #3 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca float, align 4
  %4 = alloca float, align 4
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %11 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %12 = call noundef float @_ZN6SoLoud13VizsnInstance6noisrcEv(ptr noundef nonnull align 8 dereferenceable(13520) %11)
  store float %12, ptr %5, align 4, !tbaa !9
  %13 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %11, i32 0, i32 5
  %14 = load i32, ptr %13, align 8, !tbaa !11
  %15 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %11, i32 0, i32 6
  %16 = load i32, ptr %15, align 4, !tbaa !18
  %17 = icmp sgt i32 %14, %16
  br i1 %17, label %18, label %21

18:                                               ; preds = %1
  %19 = load float, ptr %5, align 4, !tbaa !9
  %20 = fmul float %19, 5.000000e-01
  store float %20, ptr %5, align 4, !tbaa !9
  br label %21

21:                                               ; preds = %18, %1
  %22 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %11, i32 0, i32 2
  %23 = getelementptr inbounds %"struct.SoLoud::VizsnBank", ptr %22, i32 0, i32 2
  %24 = load float, ptr %23, align 4, !tbaa !19
  %25 = load float, ptr %5, align 4, !tbaa !9
  %26 = fmul float %24, %25
  store float %26, ptr %3, align 4, !tbaa !9
  %27 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %11, i32 0, i32 2
  %28 = getelementptr inbounds %"struct.SoLoud::VizsnBank", ptr %27, i32 0, i32 1
  %29 = load float, ptr %28, align 8, !tbaa !20
  %30 = call noundef float @_ZSt5floorf(float noundef %29)
  %31 = fptosi float %30 to i32
  %32 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %11, i32 0, i32 10
  %33 = load i32, ptr %32, align 8, !tbaa !21
  %34 = call noundef float @_ZN6SoLoud13VizsnInstance5vcsrcEii(ptr noundef nonnull align 8 dereferenceable(13520) %11, i32 noundef %31, i32 noundef %33)
  store float %34, ptr %6, align 4, !tbaa !9
  %35 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %11, i32 0, i32 2
  %36 = getelementptr inbounds %"struct.SoLoud::VizsnBank", ptr %35, i32 0, i32 0
  %37 = getelementptr inbounds [10 x %"struct.SoLoud::VizsnResonator"], ptr %36, i64 0, i64 0
  %38 = load float, ptr %6, align 4, !tbaa !9
  %39 = call noundef float @_ZN6SoLoud14VizsnResonator8resonateEf(ptr noundef nonnull align 4 dereferenceable(20) %37, float noundef %38)
  store float %39, ptr %6, align 4, !tbaa !9
  %40 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %11, i32 0, i32 5
  %41 = load i32, ptr %40, align 8, !tbaa !11
  %42 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %11, i32 0, i32 7
  %43 = load i32, ptr %42, align 8, !tbaa !22
  %44 = icmp slt i32 %41, %43
  br i1 %44, label %45, label %52

45:                                               ; preds = %21
  %46 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %11, i32 0, i32 2
  %47 = getelementptr inbounds %"struct.SoLoud::VizsnBank", ptr %46, i32 0, i32 6
  %48 = load float, ptr %47, align 4, !tbaa !23
  %49 = load float, ptr %5, align 4, !tbaa !9
  %50 = load float, ptr %6, align 4, !tbaa !9
  %51 = call float @llvm.fmuladd.f32(float %48, float %49, float %50)
  store float %51, ptr %6, align 4, !tbaa !9
  br label %52

52:                                               ; preds = %45, %21
  %53 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %11, i32 0, i32 2
  %54 = getelementptr inbounds %"struct.SoLoud::VizsnBank", ptr %53, i32 0, i32 3
  %55 = load float, ptr %54, align 8, !tbaa !24
  %56 = load float, ptr %6, align 4, !tbaa !9
  %57 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %11, i32 0, i32 2
  %58 = getelementptr inbounds %"struct.SoLoud::VizsnBank", ptr %57, i32 0, i32 4
  %59 = load float, ptr %58, align 4, !tbaa !25
  %60 = load float, ptr %5, align 4, !tbaa !9
  %61 = fmul float %59, %60
  %62 = call float @llvm.fmuladd.f32(float %55, float %56, float %61)
  store float %62, ptr %7, align 4, !tbaa !9
  store float %62, ptr %8, align 4, !tbaa !9
  %63 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %11, i32 0, i32 2
  %64 = getelementptr inbounds %"struct.SoLoud::VizsnBank", ptr %63, i32 0, i32 0
  %65 = getelementptr inbounds [10 x %"struct.SoLoud::VizsnResonator"], ptr %64, i64 0, i64 1
  %66 = load float, ptr %8, align 4, !tbaa !9
  %67 = call noundef float @_ZN6SoLoud14VizsnResonator12antiresonateEf(ptr noundef nonnull align 4 dereferenceable(20) %65, float noundef %66)
  store float %67, ptr %8, align 4, !tbaa !9
  %68 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %11, i32 0, i32 2
  %69 = getelementptr inbounds %"struct.SoLoud::VizsnBank", ptr %68, i32 0, i32 0
  %70 = getelementptr inbounds [10 x %"struct.SoLoud::VizsnResonator"], ptr %69, i64 0, i64 2
  %71 = load float, ptr %8, align 4, !tbaa !9
  %72 = call noundef float @_ZN6SoLoud14VizsnResonator8resonateEf(ptr noundef nonnull align 4 dereferenceable(20) %70, float noundef %71)
  store float %72, ptr %8, align 4, !tbaa !9
  %73 = load float, ptr %8, align 4, !tbaa !9
  %74 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %11, i32 0, i32 19
  %75 = load float, ptr %74, align 4, !tbaa !26
  %76 = fsub float %73, %75
  %77 = load float, ptr %3, align 4, !tbaa !9
  %78 = fadd float %77, %76
  store float %78, ptr %3, align 4, !tbaa !9
  %79 = load float, ptr %8, align 4, !tbaa !9
  %80 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %11, i32 0, i32 19
  store float %79, ptr %80, align 4, !tbaa !26
  %81 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %11, i32 0, i32 2
  %82 = getelementptr inbounds %"struct.SoLoud::VizsnBank", ptr %81, i32 0, i32 0
  %83 = getelementptr inbounds [10 x %"struct.SoLoud::VizsnResonator"], ptr %82, i64 0, i64 4
  %84 = load float, ptr %8, align 4, !tbaa !9
  %85 = call noundef float @_ZN6SoLoud14VizsnResonator8resonateEf(ptr noundef nonnull align 4 dereferenceable(20) %83, float noundef %84)
  store float %85, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 7, ptr %10, align 4, !tbaa !27
  br label %86

86:                                               ; preds = %99, %52
  %87 = load i32, ptr %10, align 4, !tbaa !27
  %88 = icmp sgt i32 %87, 5
  br i1 %88, label %89, label %102

89:                                               ; preds = %86
  %90 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %11, i32 0, i32 2
  %91 = getelementptr inbounds %"struct.SoLoud::VizsnBank", ptr %90, i32 0, i32 0
  %92 = load i32, ptr %10, align 4, !tbaa !27
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [10 x %"struct.SoLoud::VizsnResonator"], ptr %91, i64 0, i64 %93
  %95 = load float, ptr %3, align 4, !tbaa !9
  %96 = call noundef float @_ZN6SoLoud14VizsnResonator8resonateEf(ptr noundef nonnull align 4 dereferenceable(20) %94, float noundef %95)
  %97 = load float, ptr %4, align 4, !tbaa !9
  %98 = fsub float %96, %97
  store float %98, ptr %4, align 4, !tbaa !9
  br label %99

99:                                               ; preds = %89
  %100 = load i32, ptr %10, align 4, !tbaa !27
  %101 = add nsw i32 %100, -1
  store i32 %101, ptr %10, align 4, !tbaa !27
  br label %86, !llvm.loop !28

102:                                              ; preds = %86
  %103 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %11, i32 0, i32 2
  %104 = getelementptr inbounds %"struct.SoLoud::VizsnBank", ptr %103, i32 0, i32 0
  %105 = getelementptr inbounds [10 x %"struct.SoLoud::VizsnResonator"], ptr %104, i64 0, i64 3
  %106 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %11, i32 0, i32 2
  %107 = getelementptr inbounds %"struct.SoLoud::VizsnBank", ptr %106, i32 0, i32 5
  %108 = load float, ptr %107, align 8, !tbaa !30
  %109 = load float, ptr %3, align 4, !tbaa !9
  %110 = load float, ptr %4, align 4, !tbaa !9
  %111 = fneg float %110
  %112 = call float @llvm.fmuladd.f32(float %108, float %109, float %111)
  %113 = call noundef float @_ZN6SoLoud14VizsnResonator8resonateEf(ptr noundef nonnull align 4 dereferenceable(20) %105, float noundef %112)
  store float %113, ptr %4, align 4, !tbaa !9
  %114 = load float, ptr %4, align 4, !tbaa !9
  %115 = fmul float %114, 4.000000e+02
  %116 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %11, i32 0, i32 8
  %117 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %11, i32 0, i32 9
  %118 = load i32, ptr %117, align 4, !tbaa !31
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [1024 x i32], ptr %116, i64 0, i64 %119
  %121 = load i32, ptr %120, align 4, !tbaa !27
  %122 = sdiv i32 %121, 4
  %123 = sitofp i32 %122 to float
  %124 = call float @llvm.fmuladd.f32(float %115, float 2.560000e+02, float %123)
  %125 = call noundef float @_ZSt5floorf(float noundef %124)
  %126 = fptosi float %125 to i32
  store i32 %126, ptr %9, align 4, !tbaa !27
  %127 = load i32, ptr %9, align 4, !tbaa !27
  %128 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %11, i32 0, i32 8
  %129 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %11, i32 0, i32 9
  %130 = load i32, ptr %129, align 4, !tbaa !31
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [1024 x i32], ptr %128, i64 0, i64 %131
  store i32 %127, ptr %132, align 4, !tbaa !27
  %133 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %11, i32 0, i32 9
  %134 = load i32, ptr %133, align 4, !tbaa !31
  %135 = add nsw i32 %134, 1
  %136 = and i32 %135, 1023
  %137 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %11, i32 0, i32 9
  store i32 %136, ptr %137, align 4, !tbaa !31
  %138 = load i32, ptr %9, align 4, !tbaa !27
  %139 = ashr i32 %138, 8
  %140 = add nsw i32 %139, 128
  store i32 %140, ptr %9, align 4, !tbaa !27
  %141 = load i32, ptr %9, align 4, !tbaa !27
  %142 = icmp slt i32 %141, 0
  br i1 %142, label %143, label %144

143:                                              ; preds = %102
  store i32 0, ptr %9, align 4, !tbaa !27
  br label %144

144:                                              ; preds = %143, %102
  %145 = load i32, ptr %9, align 4, !tbaa !27
  %146 = icmp sgt i32 %145, 255
  br i1 %146, label %147, label %148

147:                                              ; preds = %144
  store i32 255, ptr %9, align 4, !tbaa !27
  br label %148

148:                                              ; preds = %147, %144
  %149 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %11, i32 0, i32 5
  %150 = load i32, ptr %149, align 8, !tbaa !11
  %151 = add nsw i32 %150, 1
  store i32 %151, ptr %149, align 8, !tbaa !11
  %152 = load i32, ptr %9, align 4, !tbaa !27
  %153 = sitofp i32 %152 to float
  %154 = fmul float %153, 0x3F70101020000000
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  ret float %154
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN6SoLoud13VizsnInstance5vcsrcEii(ptr noundef nonnull align 8 dereferenceable(13520), i32 noundef, i32 noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN6SoLoud13VizsnInstance6noisrcEv(ptr noundef nonnull align 8 dereferenceable(13520)) #0 align 2

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { 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 #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 = !{!"float", !7, i64 0}
!11 = !{!12, !14, i64 1176}
!12 = !{!"_ZTSN6SoLoud13VizsnInstanceE", !13, i64 0, !6, i64 496, !17, i64 504, !17, i64 728, !17, i64 952, !14, i64 1176, !14, i64 1180, !14, i64 1184, !7, i64 1188, !14, i64 5284, !14, i64 5288, !10, i64 5292, !6, i64 5296, !7, i64 5304, !14, i64 13496, !14, i64 13500, !14, i64 13504, !14, i64 13508, !14, i64 13512, !10, i64 13516}
!13 = !{!"_ZTSN6SoLoud19AudioSourceInstanceE", !14, i64 8, !14, i64 12, !14, i64 16, !10, i64 20, !7, i64 24, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !14, i64 72, !10, i64 76, !10, i64 80, !15, i64 88, !15, i64 96, !16, i64 104, !16, i64 152, !16, i64 200, !16, i64 248, !16, i64 296, !14, i64 344, !7, i64 348, !14, i64 380, !14, i64 384, !7, i64 392, !7, i64 456, !14, i64 472, !14, i64 476, !14, i64 480, !15, i64 488}
!14 = !{!"int", !7, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = !{!"_ZTSN6SoLoud5FaderE", !10, i64 0, !10, i64 4, !10, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !10, i64 40, !14, i64 44}
!17 = !{!"_ZTSN6SoLoud9VizsnBankE", !7, i64 0, !10, i64 200, !10, i64 204, !10, i64 208, !10, i64 212, !10, i64 216, !10, i64 220}
!18 = !{!12, !14, i64 1180}
!19 = !{!12, !10, i64 708}
!20 = !{!12, !10, i64 704}
!21 = !{!12, !14, i64 5288}
!22 = !{!12, !14, i64 1184}
!23 = !{!12, !10, i64 724}
!24 = !{!12, !10, i64 712}
!25 = !{!12, !10, i64 716}
!26 = !{!12, !10, i64 13516}
!27 = !{!14, !14, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!12, !10, i64 720}
!31 = !{!12, !14, i64 5284}


; 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 nounwind uwtable
declare dso_local noundef float @_ZN6SoLoud14VizsnResonator8resonateEf(ptr noundef nonnull align 4 dereferenceable(20), float noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN6SoLoud14VizsnResonator12antiresonateEf(ptr noundef nonnull align 4 dereferenceable(20), float noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef float @_ZN6SoLoud13VizsnInstance7genwaveEv(ptr noundef nonnull align 8 dereferenceable(13520) %0) local_unnamed_addr #0 align 2 {
  %2 = tail call noundef float @_ZN6SoLoud13VizsnInstance6noisrcEv(ptr noundef nonnull align 8 dereferenceable(13520) %0)
  %3 = getelementptr inbounds i8, ptr %0, i64 1176
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 1180
  %6 = load i32, ptr %5, align 4, !tbaa !16
  %7 = icmp sgt i32 %4, %6
  %8 = fmul float %2, 5.000000e-01
  %.028 = select i1 %7, float %8, float %2
  %9 = getelementptr inbounds i8, ptr %0, i64 504
  %10 = getelementptr inbounds i8, ptr %0, i64 708
  %11 = load float, ptr %10, align 4, !tbaa !17
  %12 = fmul float %11, %.028
  %13 = getelementptr inbounds i8, ptr %0, i64 704
  %14 = load float, ptr %13, align 8, !tbaa !18
  %15 = tail call noundef float @_ZSt5floorf(float noundef %14)
  %16 = fptosi float %15 to i32
  %17 = getelementptr inbounds i8, ptr %0, i64 5288
  %18 = load i32, ptr %17, align 8, !tbaa !19
  %19 = tail call noundef float @_ZN6SoLoud13VizsnInstance5vcsrcEii(ptr noundef nonnull align 8 dereferenceable(13520) %0, i32 noundef %16, i32 noundef %18)
  %20 = tail call noundef float @_ZN6SoLoud14VizsnResonator8resonateEf(ptr noundef nonnull align 4 dereferenceable(20) %9, float noundef %19)
  %21 = load i32, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %0, i64 1184
  %23 = load i32, ptr %22, align 8, !tbaa !20
  %24 = icmp slt i32 %21, %23
  %25 = getelementptr inbounds i8, ptr %0, i64 724
  %26 = load float, ptr %25, align 4
  %27 = tail call float @llvm.fmuladd.f32(float %26, float %.028, float %20)
  %.029 = select i1 %24, float %27, float %20
  %28 = getelementptr inbounds i8, ptr %0, i64 712
  %29 = load float, ptr %28, align 8, !tbaa !21
  %30 = getelementptr inbounds i8, ptr %0, i64 716
  %31 = load float, ptr %30, align 4, !tbaa !22
  %32 = fmul float %.028, %31
  %33 = tail call float @llvm.fmuladd.f32(float %29, float %.029, float %32)
  %34 = getelementptr inbounds i8, ptr %0, i64 524
  %35 = tail call noundef float @_ZN6SoLoud14VizsnResonator12antiresonateEf(ptr noundef nonnull align 4 dereferenceable(20) %34, float noundef %33)
  %36 = getelementptr inbounds i8, ptr %0, i64 544
  %37 = tail call noundef float @_ZN6SoLoud14VizsnResonator8resonateEf(ptr noundef nonnull align 4 dereferenceable(20) %36, float noundef %35)
  %38 = getelementptr inbounds i8, ptr %0, i64 13516
  %39 = load float, ptr %38, align 4, !tbaa !23
  %40 = fsub float %37, %39
  %41 = fadd float %12, %40
  store float %37, ptr %38, align 4, !tbaa !23
  %42 = getelementptr inbounds i8, ptr %0, i64 584
  %43 = tail call noundef float @_ZN6SoLoud14VizsnResonator8resonateEf(ptr noundef nonnull align 4 dereferenceable(20) %42, float noundef %37)
  %44 = getelementptr inbounds i8, ptr %0, i64 644
  %45 = tail call noundef float @_ZN6SoLoud14VizsnResonator8resonateEf(ptr noundef nonnull align 4 dereferenceable(20) %44, float noundef %41)
  %46 = fsub float %45, %43
  %47 = getelementptr inbounds i8, ptr %0, i64 624
  %48 = tail call noundef float @_ZN6SoLoud14VizsnResonator8resonateEf(ptr noundef nonnull align 4 dereferenceable(20) %47, float noundef %41)
  %49 = fsub float %48, %46
  %50 = getelementptr inbounds i8, ptr %0, i64 564
  %51 = getelementptr inbounds i8, ptr %0, i64 720
  %52 = load float, ptr %51, align 8, !tbaa !24
  %53 = fneg float %49
  %54 = tail call float @llvm.fmuladd.f32(float %52, float %41, float %53)
  %55 = tail call noundef float @_ZN6SoLoud14VizsnResonator8resonateEf(ptr noundef nonnull align 4 dereferenceable(20) %50, float noundef %54)
  %56 = fmul float %55, 4.000000e+02
  %57 = getelementptr inbounds i8, ptr %0, i64 1188
  %58 = getelementptr inbounds i8, ptr %0, i64 5284
  %59 = load i32, ptr %58, align 4, !tbaa !25
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [1024 x i32], ptr %57, i64 0, i64 %60
  %62 = load i32, ptr %61, align 4, !tbaa !26
  %63 = sdiv i32 %62, 4
  %64 = sitofp i32 %63 to float
  %65 = tail call float @llvm.fmuladd.f32(float %56, float 2.560000e+02, float %64)
  %66 = tail call noundef float @_ZSt5floorf(float noundef %65)
  %67 = fptosi float %66 to i32
  %68 = load i32, ptr %58, align 4, !tbaa !25
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [1024 x i32], ptr %57, i64 0, i64 %69
  store i32 %67, ptr %70, align 4, !tbaa !26
  %71 = load i32, ptr %58, align 4, !tbaa !25
  %72 = add nsw i32 %71, 1
  %73 = and i32 %72, 1023
  store i32 %73, ptr %58, align 4, !tbaa !25
  %74 = ashr i32 %67, 8
  %75 = tail call i32 @llvm.smax.i32(i32 %74, i32 -128)
  %76 = tail call i32 @llvm.smin.i32(i32 %75, i32 127)
  %spec.store.select1 = add nsw i32 %76, 128
  %77 = load i32, ptr %3, align 8, !tbaa !5
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %3, align 8, !tbaa !5
  %79 = uitofp nneg i32 %spec.store.select1 to float
  %80 = fmul float %79, 0x3F70101020000000
  ret float %80
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN6SoLoud13VizsnInstance5vcsrcEii(ptr noundef nonnull align 8 dereferenceable(13520), i32 noundef, i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN6SoLoud13VizsnInstance6noisrcEv(ptr noundef nonnull align 8 dereferenceable(13520)) local_unnamed_addr #0 align 2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #3

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

!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, !8, i64 1176}
!6 = !{!"_ZTSN6SoLoud13VizsnInstanceE", !7, i64 0, !14, i64 496, !15, i64 504, !15, i64 728, !15, i64 952, !8, i64 1176, !8, i64 1180, !8, i64 1184, !9, i64 1188, !8, i64 5284, !8, i64 5288, !11, i64 5292, !14, i64 5296, !9, i64 5304, !8, i64 13496, !8, i64 13500, !8, i64 13504, !8, i64 13508, !8, i64 13512, !11, i64 13516}
!7 = !{!"_ZTSN6SoLoud19AudioSourceInstanceE", !8, i64 8, !8, i64 12, !8, i64 16, !11, i64 20, !9, i64 24, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !8, i64 72, !11, i64 76, !11, i64 80, !12, i64 88, !12, i64 96, !13, i64 104, !13, i64 152, !13, i64 200, !13, i64 248, !13, i64 296, !8, i64 344, !9, i64 348, !8, i64 380, !8, i64 384, !9, i64 392, !9, i64 456, !8, i64 472, !8, i64 476, !8, i64 480, !12, i64 488}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"float", !9, i64 0}
!12 = !{!"double", !9, i64 0}
!13 = !{!"_ZTSN6SoLoud5FaderE", !11, i64 0, !11, i64 4, !11, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !11, i64 40, !8, i64 44}
!14 = !{!"any pointer", !9, i64 0}
!15 = !{!"_ZTSN6SoLoud9VizsnBankE", !9, i64 0, !11, i64 200, !11, i64 204, !11, i64 208, !11, i64 212, !11, i64 216, !11, i64 220}
!16 = !{!6, !8, i64 1180}
!17 = !{!6, !11, i64 708}
!18 = !{!6, !11, i64 704}
!19 = !{!6, !8, i64 5288}
!20 = !{!6, !8, i64 1184}
!21 = !{!6, !11, i64 712}
!22 = !{!6, !11, i64 716}
!23 = !{!6, !11, i64 13516}
!24 = !{!6, !11, i64 720}
!25 = !{!6, !8, i64 5284}
!26 = !{!8, !8, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LoopRotatePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass