; LLVM IR from merpheus-dev/LavaEngine :: src/Utils/soloud/src/filter (soloud_echofilter)

; 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::EchoFilterInstance" = type <{ %"class.SoLoud::FilterInstance", ptr, i32, i32, i32, [4 x i8] }>
%"class.SoLoud::FilterInstance" = type { ptr, i32, i32, ptr, ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6SoLoud18EchoFilterInstance6filterEPfjjfd(ptr noundef nonnull align 8 dereferenceable(52) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, float noundef %4, double noundef %5) unnamed_addr #0 align 2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca float, align 4
  %12 = alloca double, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca float, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  store i32 %3, ptr %10, align 4, !tbaa !9
  store float %4, ptr %11, align 4, !tbaa !11
  store double %5, ptr %12, align 8, !tbaa !13
  %20 = load ptr, ptr %7, align 8
  %21 = load double, ptr %12, align 8, !tbaa !13
  %22 = load ptr, ptr %20, align 8, !tbaa !15
  %23 = getelementptr inbounds ptr, ptr %22, i64 1
  %24 = load ptr, ptr %23, align 8
  call void %24(ptr noundef nonnull align 8 dereferenceable(32) %20, double noundef %21)
  %25 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %20, i32 0, i32 1
  %26 = load ptr, ptr %25, align 8, !tbaa !17
  %27 = icmp eq ptr %26, null
  br i1 %27, label %28, label %66

28:                                               ; preds = %6
  %29 = getelementptr inbounds %"class.SoLoud::FilterInstance", ptr %20, i32 0, i32 3
  %30 = load ptr, ptr %29, align 8, !tbaa !20
  %31 = getelementptr inbounds float, ptr %30, i64 1
  %32 = load float, ptr %31, align 4, !tbaa !11
  %33 = load float, ptr %11, align 4, !tbaa !11
  %34 = fmul float %32, %33
  %35 = call noundef float @_ZSt4ceilf(float noundef %34)
  %36 = fptosi float %35 to i32
  %37 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %20, i32 0, i32 3
  store i32 %36, ptr %37, align 4, !tbaa !21
  %38 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %20, i32 0, i32 3
  %39 = load i32, ptr %38, align 4, !tbaa !21
  %40 = load i32, ptr %10, align 4, !tbaa !9
  %41 = mul i32 %39, %40
  %42 = zext i32 %41 to i64
  %43 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %42, i64 4)
  %44 = extractvalue { i64, i1 } %43, 1
  %45 = extractvalue { i64, i1 } %43, 0
  %46 = select i1 %44, i64 -1, i64 %45
  %47 = call noalias noundef nonnull ptr @_Znam(i64 noundef %46) #5
  %48 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %20, i32 0, i32 1
  store ptr %47, ptr %48, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %49

49:                                               ; preds = %62, %28
  %50 = load i32, ptr %13, align 4, !tbaa !9
  %51 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %20, i32 0, i32 3
  %52 = load i32, ptr %51, align 4, !tbaa !21
  %53 = load i32, ptr %10, align 4, !tbaa !9
  %54 = mul i32 %52, %53
  %55 = icmp ult i32 %50, %54
  br i1 %55, label %56, label %65

56:                                               ; preds = %49
  %57 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %20, i32 0, i32 1
  %58 = load ptr, ptr %57, align 8, !tbaa !17
  %59 = load i32, ptr %13, align 4, !tbaa !9
  %60 = zext i32 %59 to i64
  %61 = getelementptr inbounds float, ptr %58, i64 %60
  store float 0.000000e+00, ptr %61, align 4, !tbaa !11
  br label %62

62:                                               ; preds = %56
  %63 = load i32, ptr %13, align 4, !tbaa !9
  %64 = add i32 %63, 1
  store i32 %64, ptr %13, align 4, !tbaa !9
  br label %49, !llvm.loop !22

65:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %66

66:                                               ; preds = %65, %6
  %67 = getelementptr inbounds %"class.SoLoud::FilterInstance", ptr %20, i32 0, i32 3
  %68 = load ptr, ptr %67, align 8, !tbaa !20
  %69 = getelementptr inbounds float, ptr %68, i64 1
  %70 = load float, ptr %69, align 4, !tbaa !11
  %71 = load float, ptr %11, align 4, !tbaa !11
  %72 = fmul float %70, %71
  %73 = call noundef float @_ZSt4ceilf(float noundef %72)
  %74 = fptosi float %73 to i32
  %75 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %20, i32 0, i32 2
  store i32 %74, ptr %75, align 8, !tbaa !24
  %76 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %20, i32 0, i32 2
  %77 = load i32, ptr %76, align 8, !tbaa !24
  %78 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %20, i32 0, i32 3
  %79 = load i32, ptr %78, align 4, !tbaa !21
  %80 = icmp sgt i32 %77, %79
  br i1 %80, label %81, label %85

81:                                               ; preds = %66
  %82 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %20, i32 0, i32 3
  %83 = load i32, ptr %82, align 4, !tbaa !21
  %84 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %20, i32 0, i32 2
  store i32 %83, ptr %84, align 8, !tbaa !24
  br label %85

85:                                               ; preds = %81, %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %86 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %20, i32 0, i32 4
  %87 = load i32, ptr %86, align 8, !tbaa !25
  %88 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %20, i32 0, i32 2
  %89 = load i32, ptr %88, align 8, !tbaa !24
  %90 = add nsw i32 %87, %89
  %91 = sub nsw i32 %90, 1
  %92 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %20, i32 0, i32 2
  %93 = load i32, ptr %92, align 8, !tbaa !24
  %94 = srem i32 %91, %93
  store i32 %94, ptr %16, align 4, !tbaa !9
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %95

95:                                               ; preds = %212, %85
  %96 = load i32, ptr %14, align 4, !tbaa !9
  %97 = load i32, ptr %9, align 4, !tbaa !9
  %98 = icmp ult i32 %96, %97
  br i1 %98, label %99, label %215

99:                                               ; preds = %95
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %100

100:                                              ; preds = %199, %99
  %101 = load i32, ptr %15, align 4, !tbaa !9
  %102 = load i32, ptr %10, align 4, !tbaa !9
  %103 = icmp ult i32 %101, %102
  br i1 %103, label %104, label %202

104:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %105 = load i32, ptr %15, align 4, !tbaa !9
  %106 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %20, i32 0, i32 2
  %107 = load i32, ptr %106, align 8, !tbaa !24
  %108 = mul i32 %105, %107
  store i32 %108, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %109 = load i32, ptr %15, align 4, !tbaa !9
  %110 = load i32, ptr %9, align 4, !tbaa !9
  %111 = mul i32 %109, %110
  store i32 %111, ptr %18, align 4, !tbaa !9
  %112 = getelementptr inbounds %"class.SoLoud::FilterInstance", ptr %20, i32 0, i32 3
  %113 = load ptr, ptr %112, align 8, !tbaa !20
  %114 = getelementptr inbounds float, ptr %113, i64 3
  %115 = load float, ptr %114, align 4, !tbaa !11
  %116 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %20, i32 0, i32 1
  %117 = load ptr, ptr %116, align 8, !tbaa !17
  %118 = load i32, ptr %16, align 4, !tbaa !9
  %119 = load i32, ptr %17, align 4, !tbaa !9
  %120 = add nsw i32 %118, %119
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds float, ptr %117, i64 %121
  %123 = load float, ptr %122, align 4, !tbaa !11
  %124 = getelementptr inbounds %"class.SoLoud::FilterInstance", ptr %20, i32 0, i32 3
  %125 = load ptr, ptr %124, align 8, !tbaa !20
  %126 = getelementptr inbounds float, ptr %125, i64 3
  %127 = load float, ptr %126, align 4, !tbaa !11
  %128 = fsub float 1.000000e+00, %127
  %129 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %20, i32 0, i32 1
  %130 = load ptr, ptr %129, align 8, !tbaa !17
  %131 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %20, i32 0, i32 4
  %132 = load i32, ptr %131, align 8, !tbaa !25
  %133 = load i32, ptr %17, align 4, !tbaa !9
  %134 = add nsw i32 %132, %133
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds float, ptr %130, i64 %135
  %137 = load float, ptr %136, align 4, !tbaa !11
  %138 = fmul float %128, %137
  %139 = call float @llvm.fmuladd.f32(float %115, float %123, float %138)
  %140 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %20, i32 0, i32 1
  %141 = load ptr, ptr %140, align 8, !tbaa !17
  %142 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %20, i32 0, i32 4
  %143 = load i32, ptr %142, align 8, !tbaa !25
  %144 = load i32, ptr %17, align 4, !tbaa !9
  %145 = add nsw i32 %143, %144
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds float, ptr %141, i64 %146
  store float %139, ptr %147, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %148 = load ptr, ptr %8, align 8, !tbaa !5
  %149 = load i32, ptr %14, align 4, !tbaa !9
  %150 = load i32, ptr %18, align 4, !tbaa !9
  %151 = add i32 %149, %150
  %152 = zext i32 %151 to i64
  %153 = getelementptr inbounds float, ptr %148, i64 %152
  %154 = load float, ptr %153, align 4, !tbaa !11
  %155 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %20, i32 0, i32 1
  %156 = load ptr, ptr %155, align 8, !tbaa !17
  %157 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %20, i32 0, i32 4
  %158 = load i32, ptr %157, align 8, !tbaa !25
  %159 = load i32, ptr %17, align 4, !tbaa !9
  %160 = add nsw i32 %158, %159
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds float, ptr %156, i64 %161
  %163 = load float, ptr %162, align 4, !tbaa !11
  %164 = getelementptr inbounds %"class.SoLoud::FilterInstance", ptr %20, i32 0, i32 3
  %165 = load ptr, ptr %164, align 8, !tbaa !20
  %166 = getelementptr inbounds float, ptr %165, i64 2
  %167 = load float, ptr %166, align 4, !tbaa !11
  %168 = call float @llvm.fmuladd.f32(float %163, float %167, float %154)
  store float %168, ptr %19, align 4, !tbaa !11
  %169 = load float, ptr %19, align 4, !tbaa !11
  %170 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %20, i32 0, i32 1
  %171 = load ptr, ptr %170, align 8, !tbaa !17
  %172 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %20, i32 0, i32 4
  %173 = load i32, ptr %172, align 8, !tbaa !25
  %174 = load i32, ptr %17, align 4, !tbaa !9
  %175 = add nsw i32 %173, %174
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds float, ptr %171, i64 %176
  store float %169, ptr %177, align 4, !tbaa !11
  %178 = load float, ptr %19, align 4, !tbaa !11
  %179 = load ptr, ptr %8, align 8, !tbaa !5
  %180 = load i32, ptr %14, align 4, !tbaa !9
  %181 = load i32, ptr %18, align 4, !tbaa !9
  %182 = add i32 %180, %181
  %183 = zext i32 %182 to i64
  %184 = getelementptr inbounds float, ptr %179, i64 %183
  %185 = load float, ptr %184, align 4, !tbaa !11
  %186 = fsub float %178, %185
  %187 = getelementptr inbounds %"class.SoLoud::FilterInstance", ptr %20, i32 0, i32 3
  %188 = load ptr, ptr %187, align 8, !tbaa !20
  %189 = getelementptr inbounds float, ptr %188, i64 0
  %190 = load float, ptr %189, align 4, !tbaa !11
  %191 = load ptr, ptr %8, align 8, !tbaa !5
  %192 = load i32, ptr %14, align 4, !tbaa !9
  %193 = load i32, ptr %18, align 4, !tbaa !9
  %194 = add i32 %192, %193
  %195 = zext i32 %194 to i64
  %196 = getelementptr inbounds float, ptr %191, i64 %195
  %197 = load float, ptr %196, align 4, !tbaa !11
  %198 = call float @llvm.fmuladd.f32(float %186, float %190, float %197)
  store float %198, ptr %196, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %199

199:                                              ; preds = %104
  %200 = load i32, ptr %15, align 4, !tbaa !9
  %201 = add i32 %200, 1
  store i32 %201, ptr %15, align 4, !tbaa !9
  br label %100, !llvm.loop !26

202:                                              ; preds = %100
  %203 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %20, i32 0, i32 4
  %204 = load i32, ptr %203, align 8, !tbaa !25
  store i32 %204, ptr %16, align 4, !tbaa !9
  %205 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %20, i32 0, i32 4
  %206 = load i32, ptr %205, align 8, !tbaa !25
  %207 = add nsw i32 %206, 1
  %208 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %20, i32 0, i32 2
  %209 = load i32, ptr %208, align 8, !tbaa !24
  %210 = srem i32 %207, %209
  %211 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %20, i32 0, i32 4
  store i32 %210, ptr %211, align 8, !tbaa !25
  br label %212

212:                                              ; preds = %202
  %213 = load i32, ptr %14, align 4, !tbaa !9
  %214 = add i32 %213, 1
  store i32 %214, ptr %14, align 4, !tbaa !9
  br label %95, !llvm.loop !27

215:                                              ; preds = %95
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  ret void
}

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #3

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

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

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

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 = { 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 #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nobuiltin allocsize(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 willreturn memory(argmem: readwrite) }
attributes #5 = { builtin allocsize(0) }
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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !8, i64 0}
!17 = !{!18, !6, i64 32}
!18 = !{!"_ZTSN6SoLoud18EchoFilterInstanceE", !19, i64 0, !6, i64 32, !10, i64 40, !10, i64 44, !10, i64 48}
!19 = !{!"_ZTSN6SoLoud14FilterInstanceE", !10, i64 8, !10, i64 12, !6, i64 16, !6, i64 24}
!20 = !{!19, !6, i64 16}
!21 = !{!18, !10, i64 44}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!18, !10, i64 40}
!25 = !{!18, !10, i64 48}
!26 = distinct !{!26, !23}
!27 = distinct !{!27, !23}


; 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 @_ZN6SoLoud18EchoFilterInstance6filterEPfjjfd(ptr noundef nonnull align 8 dereferenceable(52) %0, ptr nocapture noundef %1, i32 noundef %2, i32 noundef %3, float noundef %4, double noundef %5) unnamed_addr #0 align 2 {
  %7 = load ptr, ptr %0, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %7, i64 8
  %9 = load ptr, ptr %8, align 8
  tail call void %9(ptr noundef nonnull align 8 dereferenceable(32) %0, double noundef %5)
  %10 = getelementptr inbounds i8, ptr %0, i64 32
  %11 = load ptr, ptr %10, align 8, !tbaa !8
  %12 = icmp eq ptr %11, null
  br i1 %12, label %13, label %.loopexit

13:                                               ; preds = %6
  %14 = getelementptr inbounds i8, ptr %0, i64 16
  %15 = load ptr, ptr %14, align 8, !tbaa !14
  %16 = getelementptr inbounds i8, ptr %15, i64 4
  %17 = load float, ptr %16, align 4, !tbaa !15
  %18 = fmul float %17, %4
  %19 = tail call noundef float @_ZSt4ceilf(float noundef %18)
  %20 = fptosi float %19 to i32
  %21 = getelementptr inbounds i8, ptr %0, i64 44
  store i32 %20, ptr %21, align 4, !tbaa !17
  %22 = mul i32 %20, %3
  %23 = zext i32 %22 to i64
  %24 = shl nuw nsw i64 %23, 2
  %25 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %24) #6
  store ptr %25, ptr %10, align 8, !tbaa !8
  %.not = icmp eq i32 %22, 0
  br i1 %.not, label %.loopexit, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %13
  tail call void @llvm.memset.p0.i64(ptr nonnull align 4 %25, i8 0, i64 %24, i1 false), !tbaa !15
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph.preheader, %13, %6
  %26 = getelementptr inbounds i8, ptr %0, i64 16
  %27 = load ptr, ptr %26, align 8, !tbaa !14
  %28 = getelementptr inbounds i8, ptr %27, i64 4
  %29 = load float, ptr %28, align 4, !tbaa !15
  %30 = fmul float %29, %4
  %31 = tail call noundef float @_ZSt4ceilf(float noundef %30)
  %32 = fptosi float %31 to i32
  %33 = getelementptr inbounds i8, ptr %0, i64 40
  %34 = getelementptr inbounds i8, ptr %0, i64 44
  %35 = load i32, ptr %34, align 4, !tbaa !17
  %spec.store.select = tail call i32 @llvm.smin.i32(i32 %35, i32 %32)
  store i32 %spec.store.select, ptr %33, align 8
  %36 = getelementptr inbounds i8, ptr %0, i64 48
  %.not45 = icmp eq i32 %2, 0
  br i1 %.not45, label %87, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %.loopexit
  %.promoted = load i32, ptr %36, align 8, !tbaa !18
  %.not46 = icmp eq i32 %3, 0
  %37 = load ptr, ptr %26, align 8
  %38 = getelementptr inbounds i8, ptr %37, i64 12
  %39 = load ptr, ptr %10, align 8
  %40 = getelementptr inbounds i8, ptr %37, i64 8
  br i1 %.not46, label %.preheader.preheader, label %.preheader.us.preheader

.preheader.preheader:                             ; preds = %.preheader.lr.ph
  %xtraiter = and i32 %2, 3
  %41 = icmp ult i32 %2, 4
  br i1 %41, label %._crit_edge44.loopexit.unr-lcssa, label %.preheader.preheader.new

.preheader.preheader.new:                         ; preds = %.preheader.preheader
  %unroll_iter = and i32 %2, -4
  br label %.preheader

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %42 = add i32 %spec.store.select, -1
  %43 = add i32 %42, %.promoted
  %44 = srem i32 %43, %spec.store.select
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us
  %.03443.us = phi i32 [ %74, %._crit_edge.us ], [ 0, %.preheader.us.preheader ]
  %.03642.us = phi i32 [ %45, %._crit_edge.us ], [ %44, %.preheader.us.preheader ]
  %45 = phi i32 [ %73, %._crit_edge.us ], [ %.promoted, %.preheader.us.preheader ]
  br label %46

46:                                               ; preds = %.preheader.us, %46
  %.03540.us = phi i32 [ 0, %.preheader.us ], [ %71, %46 ]
  %47 = mul i32 %.03540.us, %spec.store.select
  %48 = mul i32 %.03540.us, %2
  %49 = load float, ptr %38, align 4, !tbaa !15
  %50 = add nsw i32 %47, %.03642.us
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds float, ptr %39, i64 %51
  %53 = load float, ptr %52, align 4, !tbaa !15
  %54 = fsub float 1.000000e+00, %49
  %55 = add nsw i32 %45, %47
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds float, ptr %39, i64 %56
  %58 = load float, ptr %57, align 4, !tbaa !15
  %59 = fmul float %54, %58
  %60 = tail call float @llvm.fmuladd.f32(float %49, float %53, float %59)
  store float %60, ptr %57, align 4, !tbaa !15
  %61 = add i32 %48, %.03443.us
  %62 = zext i32 %61 to i64
  %63 = getelementptr inbounds float, ptr %1, i64 %62
  %64 = load float, ptr %63, align 4, !tbaa !15
  %65 = load float, ptr %40, align 4, !tbaa !15
  %66 = tail call float @llvm.fmuladd.f32(float %60, float %65, float %64)
  store float %66, ptr %57, align 4, !tbaa !15
  %67 = load float, ptr %63, align 4, !tbaa !15
  %68 = fsub float %66, %67
  %69 = load float, ptr %37, align 4, !tbaa !15
  %70 = tail call float @llvm.fmuladd.f32(float %68, float %69, float %67)
  store float %70, ptr %63, align 4, !tbaa !15
  %71 = add nuw i32 %.03540.us, 1
  %exitcond.not = icmp eq i32 %71, %3
  br i1 %exitcond.not, label %._crit_edge.us, label %46, !llvm.loop !19

._crit_edge.us:                                   ; preds = %46
  %72 = add nsw i32 %45, 1
  %73 = srem i32 %72, %spec.store.select
  %74 = add nuw i32 %.03443.us, 1
  %exitcond50.not = icmp eq i32 %74, %2
  br i1 %exitcond50.not, label %._crit_edge44, label %.preheader.us, !llvm.loop !21

.preheader:                                       ; preds = %.preheader, %.preheader.preheader.new
  %75 = phi i32 [ %.promoted, %.preheader.preheader.new ], [ %83, %.preheader ]
  %niter = phi i32 [ 0, %.preheader.preheader.new ], [ %niter.next.3, %.preheader ]
  %76 = add nsw i32 %75, 1
  %77 = srem i32 %76, %spec.store.select
  %78 = add nsw i32 %77, 1
  %79 = srem i32 %78, %spec.store.select
  %80 = add nsw i32 %79, 1
  %81 = srem i32 %80, %spec.store.select
  %82 = add nsw i32 %81, 1
  %83 = srem i32 %82, %spec.store.select
  %niter.next.3 = add i32 %niter, 4
  %niter.ncmp.3 = icmp eq i32 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge44.loopexit.unr-lcssa, label %.preheader, !llvm.loop !21

._crit_edge44.loopexit.unr-lcssa:                 ; preds = %.preheader, %.preheader.preheader
  %.lcssa.ph = phi i32 [ poison, %.preheader.preheader ], [ %83, %.preheader ]
  %.unr = phi i32 [ %.promoted, %.preheader.preheader ], [ %83, %.preheader ]
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge44, label %.preheader.epil

.preheader.epil:                                  ; preds = %._crit_edge44.loopexit.unr-lcssa, %.preheader.epil
  %84 = phi i32 [ %86, %.preheader.epil ], [ %.unr, %._crit_edge44.loopexit.unr-lcssa ]
  %epil.iter = phi i32 [ %epil.iter.next, %.preheader.epil ], [ 0, %._crit_edge44.loopexit.unr-lcssa ]
  %85 = add nsw i32 %84, 1
  %86 = srem i32 %85, %spec.store.select
  %epil.iter.next = add i32 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i32 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge44, label %.preheader.epil, !llvm.loop !22

._crit_edge44:                                    ; preds = %._crit_edge.us, %._crit_edge44.loopexit.unr-lcssa, %.preheader.epil
  %.us-phi = phi i32 [ %.lcssa.ph, %._crit_edge44.loopexit.unr-lcssa ], [ %86, %.preheader.epil ], [ %73, %._crit_edge.us ]
  store i32 %.us-phi, ptr %36, align 8, !tbaa !18
  br label %87

87:                                               ; preds = %._crit_edge44, %.loopexit
  ret void
}

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #2

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

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

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

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 = { 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 #2 = { nobuiltin allocsize(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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { builtin allocsize(0) }

!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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !13, i64 32}
!9 = !{!"_ZTSN6SoLoud18EchoFilterInstanceE", !10, i64 0, !13, i64 32, !11, i64 40, !11, i64 44, !11, i64 48}
!10 = !{!"_ZTSN6SoLoud14FilterInstanceE", !11, i64 8, !11, i64 12, !13, i64 16, !13, i64 24}
!11 = !{!"int", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!"any pointer", !12, i64 0}
!14 = !{!10, !13, i64 16}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !12, i64 0}
!17 = !{!9, !11, i64 44}
!18 = !{!9, !11, i64 48}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.unroll.disable"}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass