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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6SoLoud23DCRemovalFilterInstance6filterEPfjjfd(ptr noundef nonnull align 8 dereferenceable(68) %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::DCRemovalFilterInstance", 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 %88

28:                                               ; preds = %6
  %29 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %20, i32 0, i32 5
  %30 = load ptr, ptr %29, align 8, !tbaa !20
  %31 = getelementptr inbounds %"class.SoLoud::DCRemovalFilter", ptr %30, i32 0, i32 1
  %32 = load float, ptr %31, align 8, !tbaa !21
  %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::DCRemovalFilterInstance", ptr %20, i32 0, i32 3
  store i32 %36, ptr %37, align 8, !tbaa !24
  %38 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %20, i32 0, i32 3
  %39 = load i32, ptr %38, align 8, !tbaa !24
  %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::DCRemovalFilterInstance", ptr %20, i32 0, i32 1
  store ptr %47, ptr %48, align 8, !tbaa !17
  %49 = load i32, ptr %10, align 4, !tbaa !9
  %50 = zext i32 %49 to i64
  %51 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %50, i64 4)
  %52 = extractvalue { i64, i1 } %51, 1
  %53 = extractvalue { i64, i1 } %51, 0
  %54 = select i1 %52, i64 -1, i64 %53
  %55 = call noalias noundef nonnull ptr @_Znam(i64 noundef %54) #5
  %56 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %20, i32 0, i32 2
  store ptr %55, ptr %56, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %57

57:                                               ; preds = %67, %28
  %58 = load i32, ptr %13, align 4, !tbaa !9
  %59 = load i32, ptr %10, align 4, !tbaa !9
  %60 = icmp ult i32 %58, %59
  br i1 %60, label %61, label %70

61:                                               ; preds = %57
  %62 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %20, i32 0, i32 2
  %63 = load ptr, ptr %62, align 8, !tbaa !25
  %64 = load i32, ptr %13, align 4, !tbaa !9
  %65 = zext i32 %64 to i64
  %66 = getelementptr inbounds float, ptr %63, i64 %65
  store float 0.000000e+00, ptr %66, align 4, !tbaa !11
  br label %67

67:                                               ; preds = %61
  %68 = load i32, ptr %13, align 4, !tbaa !9
  %69 = add i32 %68, 1
  store i32 %69, ptr %13, align 4, !tbaa !9
  br label %57, !llvm.loop !26

70:                                               ; preds = %57
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %71

71:                                               ; preds = %84, %70
  %72 = load i32, ptr %13, align 4, !tbaa !9
  %73 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %20, i32 0, i32 3
  %74 = load i32, ptr %73, align 8, !tbaa !24
  %75 = load i32, ptr %10, align 4, !tbaa !9
  %76 = mul i32 %74, %75
  %77 = icmp ult i32 %72, %76
  br i1 %77, label %78, label %87

78:                                               ; preds = %71
  %79 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %20, i32 0, i32 1
  %80 = load ptr, ptr %79, align 8, !tbaa !17
  %81 = load i32, ptr %13, align 4, !tbaa !9
  %82 = zext i32 %81 to i64
  %83 = getelementptr inbounds float, ptr %80, i64 %82
  store float 0.000000e+00, ptr %83, align 4, !tbaa !11
  br label %84

84:                                               ; preds = %78
  %85 = load i32, ptr %13, align 4, !tbaa !9
  %86 = add i32 %85, 1
  store i32 %86, ptr %13, align 4, !tbaa !9
  br label %71, !llvm.loop !28

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

88:                                               ; preds = %87, %6
  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
  %89 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %20, i32 0, i32 6
  %90 = load i32, ptr %89, align 8, !tbaa !29
  %91 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %20, i32 0, i32 3
  %92 = load i32, ptr %91, align 8, !tbaa !24
  %93 = add nsw i32 %90, %92
  %94 = sub nsw i32 %93, 1
  %95 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %20, i32 0, i32 3
  %96 = load i32, ptr %95, align 8, !tbaa !24
  %97 = srem i32 %94, %96
  store i32 %97, ptr %16, align 4, !tbaa !9
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %98

98:                                               ; preds = %201, %88
  %99 = load i32, ptr %14, align 4, !tbaa !9
  %100 = load i32, ptr %9, align 4, !tbaa !9
  %101 = icmp ult i32 %99, %100
  br i1 %101, label %102, label %204

102:                                              ; preds = %98
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %103

103:                                              ; preds = %188, %102
  %104 = load i32, ptr %15, align 4, !tbaa !9
  %105 = load i32, ptr %10, align 4, !tbaa !9
  %106 = icmp ult i32 %104, %105
  br i1 %106, label %107, label %191

107:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %108 = load i32, ptr %15, align 4, !tbaa !9
  %109 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %20, i32 0, i32 3
  %110 = load i32, ptr %109, align 8, !tbaa !24
  %111 = mul i32 %108, %110
  store i32 %111, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %112 = load i32, ptr %15, align 4, !tbaa !9
  %113 = load i32, ptr %9, align 4, !tbaa !9
  %114 = mul i32 %112, %113
  store i32 %114, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = load i32, ptr %14, align 4, !tbaa !9
  %117 = load i32, ptr %18, align 4, !tbaa !9
  %118 = add i32 %116, %117
  %119 = zext i32 %118 to i64
  %120 = getelementptr inbounds float, ptr %115, i64 %119
  %121 = load float, ptr %120, align 4, !tbaa !11
  store float %121, ptr %19, align 4, !tbaa !11
  %122 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %20, i32 0, i32 1
  %123 = load ptr, ptr %122, align 8, !tbaa !17
  %124 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %20, i32 0, i32 6
  %125 = load i32, ptr %124, align 8, !tbaa !29
  %126 = load i32, ptr %17, align 4, !tbaa !9
  %127 = add nsw i32 %125, %126
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds float, ptr %123, i64 %128
  %130 = load float, ptr %129, align 4, !tbaa !11
  %131 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %20, i32 0, i32 2
  %132 = load ptr, ptr %131, align 8, !tbaa !25
  %133 = load i32, ptr %15, align 4, !tbaa !9
  %134 = zext i32 %133 to i64
  %135 = getelementptr inbounds float, ptr %132, i64 %134
  %136 = load float, ptr %135, align 4, !tbaa !11
  %137 = fsub float %136, %130
  store float %137, ptr %135, align 4, !tbaa !11
  %138 = load float, ptr %19, align 4, !tbaa !11
  %139 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %20, i32 0, i32 2
  %140 = load ptr, ptr %139, align 8, !tbaa !25
  %141 = load i32, ptr %15, align 4, !tbaa !9
  %142 = zext i32 %141 to i64
  %143 = getelementptr inbounds float, ptr %140, i64 %142
  %144 = load float, ptr %143, align 4, !tbaa !11
  %145 = fadd float %144, %138
  store float %145, ptr %143, align 4, !tbaa !11
  %146 = load float, ptr %19, align 4, !tbaa !11
  %147 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %20, i32 0, i32 1
  %148 = load ptr, ptr %147, align 8, !tbaa !17
  %149 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %20, i32 0, i32 6
  %150 = load i32, ptr %149, align 8, !tbaa !29
  %151 = load i32, ptr %17, align 4, !tbaa !9
  %152 = add nsw i32 %150, %151
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds float, ptr %148, i64 %153
  store float %146, ptr %154, align 4, !tbaa !11
  %155 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %20, i32 0, i32 2
  %156 = load ptr, ptr %155, align 8, !tbaa !25
  %157 = load i32, ptr %15, align 4, !tbaa !9
  %158 = zext i32 %157 to i64
  %159 = getelementptr inbounds float, ptr %156, i64 %158
  %160 = load float, ptr %159, align 4, !tbaa !11
  %161 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %20, i32 0, i32 3
  %162 = load i32, ptr %161, align 8, !tbaa !24
  %163 = sitofp i32 %162 to float
  %164 = fdiv float %160, %163
  %165 = load float, ptr %19, align 4, !tbaa !11
  %166 = fsub float %165, %164
  store float %166, ptr %19, align 4, !tbaa !11
  %167 = load float, ptr %19, align 4, !tbaa !11
  %168 = load ptr, ptr %8, align 8, !tbaa !5
  %169 = load i32, ptr %14, align 4, !tbaa !9
  %170 = load i32, ptr %18, align 4, !tbaa !9
  %171 = add i32 %169, %170
  %172 = zext i32 %171 to i64
  %173 = getelementptr inbounds float, ptr %168, i64 %172
  %174 = load float, ptr %173, align 4, !tbaa !11
  %175 = fsub float %167, %174
  %176 = getelementptr inbounds %"class.SoLoud::FilterInstance", ptr %20, i32 0, i32 3
  %177 = load ptr, ptr %176, align 8, !tbaa !30
  %178 = getelementptr inbounds float, ptr %177, i64 0
  %179 = load float, ptr %178, align 4, !tbaa !11
  %180 = load ptr, ptr %8, align 8, !tbaa !5
  %181 = load i32, ptr %14, align 4, !tbaa !9
  %182 = load i32, ptr %18, align 4, !tbaa !9
  %183 = add i32 %181, %182
  %184 = zext i32 %183 to i64
  %185 = getelementptr inbounds float, ptr %180, i64 %184
  %186 = load float, ptr %185, align 4, !tbaa !11
  %187 = call float @llvm.fmuladd.f32(float %175, float %179, float %186)
  store float %187, ptr %185, 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 %188

188:                                              ; preds = %107
  %189 = load i32, ptr %15, align 4, !tbaa !9
  %190 = add i32 %189, 1
  store i32 %190, ptr %15, align 4, !tbaa !9
  br label %103, !llvm.loop !31

191:                                              ; preds = %103
  %192 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %20, i32 0, i32 6
  %193 = load i32, ptr %192, align 8, !tbaa !29
  store i32 %193, ptr %16, align 4, !tbaa !9
  %194 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %20, i32 0, i32 6
  %195 = load i32, ptr %194, align 8, !tbaa !29
  %196 = add nsw i32 %195, 1
  %197 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %20, i32 0, i32 3
  %198 = load i32, ptr %197, align 8, !tbaa !24
  %199 = srem i32 %196, %198
  %200 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %20, i32 0, i32 6
  store i32 %199, ptr %200, align 8, !tbaa !29
  br label %201

201:                                              ; preds = %191
  %202 = load i32, ptr %14, align 4, !tbaa !9
  %203 = add i32 %202, 1
  store i32 %203, ptr %14, align 4, !tbaa !9
  br label %98, !llvm.loop !32

204:                                              ; preds = %98
  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 = !{!"_ZTSN6SoLoud23DCRemovalFilterInstanceE", !19, i64 0, !6, i64 32, !6, i64 40, !10, i64 48, !6, i64 56, !10, i64 64}
!19 = !{!"_ZTSN6SoLoud14FilterInstanceE", !10, i64 8, !10, i64 12, !6, i64 16, !6, i64 24}
!20 = !{!18, !6, i64 56}
!21 = !{!22, !12, i64 8}
!22 = !{!"_ZTSN6SoLoud15DCRemovalFilterE", !23, i64 0, !12, i64 8}
!23 = !{!"_ZTSN6SoLoud6FilterE"}
!24 = !{!18, !10, i64 48}
!25 = !{!18, !6, i64 40}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27}
!29 = !{!18, !10, i64 64}
!30 = !{!19, !6, i64 16}
!31 = distinct !{!31, !27}
!32 = distinct !{!32, !27}


; 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 @_ZN6SoLoud23DCRemovalFilterInstance6filterEPfjjfd(ptr noundef nonnull align 8 dereferenceable(68) %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
  %12 = icmp eq ptr %11, null
  br i1 %12, label %13, label %.loopexit

13:                                               ; preds = %6
  %14 = getelementptr inbounds i8, ptr %0, i64 56
  %15 = load ptr, ptr %14, align 8, !tbaa !8
  %16 = getelementptr inbounds i8, ptr %15, i64 8
  %17 = load float, ptr %16, align 8, !tbaa !14
  %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 48
  store i32 %20, ptr %21, align 8, !tbaa !18
  %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 !19
  %26 = zext i32 %3 to i64
  %27 = shl nuw nsw i64 %26, 2
  %28 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %27) #6
  %29 = getelementptr inbounds i8, ptr %0, i64 40
  store ptr %28, ptr %29, align 8, !tbaa !20
  %.not = icmp eq i32 %3, 0
  br i1 %.not, label %.loopexit, label %.preheader43

.preheader43:                                     ; preds = %13
  tail call void @llvm.memset.p0.i64(ptr nonnull align 4 %28, i8 0, i64 %27, i1 false), !tbaa !21
  %.not51 = icmp eq i32 %22, 0
  br i1 %.not51, label %.loopexit, label %.lr.ph46.preheader

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

.loopexit:                                        ; preds = %13, %.lr.ph46.preheader, %.preheader43, %6
  %30 = phi ptr [ %25, %.lr.ph46.preheader ], [ %25, %.preheader43 ], [ %11, %6 ], [ %25, %13 ]
  %31 = getelementptr inbounds i8, ptr %0, i64 64
  %.not52 = icmp eq i32 %2, 0
  br i1 %.not52, label %113, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %.loopexit
  %.promoted = load i32, ptr %31, align 8, !tbaa !22
  %32 = getelementptr inbounds i8, ptr %0, i64 48
  %.not53 = icmp eq i32 %3, 0
  %33 = load i32, ptr %32, align 8
  %34 = getelementptr inbounds i8, ptr %0, i64 40
  %35 = load ptr, ptr %34, align 8
  %36 = sitofp i32 %33 to float
  %37 = getelementptr inbounds i8, ptr %0, i64 16
  %38 = load ptr, ptr %37, align 8
  br i1 %.not53, label %.preheader.preheader, label %.preheader.us.preheader

.preheader.preheader:                             ; preds = %.preheader.lr.ph
  %xtraiter = and i32 %2, 3
  %39 = icmp ult i32 %2, 4
  br i1 %39, label %._crit_edge50.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
  %40 = add i32 %3, -1
  %41 = zext i32 %40 to i64
  %42 = shl nuw nsw i64 %41, 2
  %43 = add nuw nsw i64 %42, 4
  %scevgep = getelementptr i8, ptr %35, i64 %43
  %scevgep66 = getelementptr i8, ptr %38, i64 4
  %scevgep68 = getelementptr i8, ptr %30, i64 %43
  %44 = add i32 %2, -1
  %45 = zext i32 %44 to i64
  %46 = add nuw nsw i64 %45, %41
  %47 = shl nuw nsw i64 %46, 2
  %48 = getelementptr i8, ptr %1, i64 %47
  %scevgep70 = getelementptr i8, ptr %48, i64 4
  %min.iters.check = icmp ult i32 %3, 8
  %ident.check = icmp ne i32 %2, 1
  %ident.check65 = icmp ne i32 %33, 1
  %49 = or i1 %ident.check, %ident.check65
  %bound0 = icmp ult ptr %35, %scevgep66
  %bound1 = icmp ult ptr %38, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  %bound074 = icmp ult ptr %35, %scevgep70
  %bound175 = icmp ugt ptr %scevgep, %1
  %found.conflict76 = and i1 %bound074, %bound175
  %bound082 = icmp ult ptr %38, %scevgep70
  %bound183 = icmp ugt ptr %scevgep66, %1
  %found.conflict84 = and i1 %bound082, %bound183
  %n.vec = and i32 %3, -4
  %broadcast.splatinsert = insertelement <4 x float> poison, float %36, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  %cmp.n = icmp eq i32 %n.vec, %3
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us
  %.03949.us = phi i32 [ %100, %._crit_edge.us ], [ 0, %.preheader.us.preheader ]
  %50 = phi i32 [ %99, %._crit_edge.us ], [ %.promoted, %.preheader.us.preheader ]
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.scevcheck

vector.scevcheck:                                 ; preds = %.preheader.us
  %51 = add i32 %50, %40
  %52 = icmp slt i32 %51, %50
  %53 = xor i32 %.03949.us, -1
  %54 = icmp ugt i32 %40, %53
  %55 = or i1 %49, %52
  %56 = or i1 %55, %54
  br i1 %56, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %vector.scevcheck
  %57 = sext i32 %50 to i64
  %58 = shl nsw i64 %57, 2
  %scevgep67 = getelementptr i8, ptr %30, i64 %58
  %scevgep69 = getelementptr i8, ptr %scevgep68, i64 %58
  %bound071 = icmp ult ptr %35, %scevgep69
  %bound172 = icmp ult ptr %scevgep67, %scevgep
  %found.conflict73 = and i1 %bound071, %bound172
  %conflict.rdx = or i1 %found.conflict, %found.conflict73
  %conflict.rdx77 = or i1 %conflict.rdx, %found.conflict76
  %bound078 = icmp ult ptr %38, %scevgep69
  %bound179 = icmp ult ptr %scevgep67, %scevgep66
  %found.conflict80 = and i1 %bound078, %bound179
  %conflict.rdx81 = or i1 %conflict.rdx77, %found.conflict80
  %conflict.rdx85 = or i1 %conflict.rdx81, %found.conflict84
  %bound086 = icmp ult ptr %scevgep67, %scevgep70
  %bound187 = icmp ugt ptr %scevgep69, %1
  %found.conflict88 = and i1 %bound086, %bound187
  %conflict.rdx89 = or i1 %conflict.rdx85, %found.conflict88
  br i1 %conflict.rdx89, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %59 = load float, ptr %38, align 4, !tbaa !21, !alias.scope !23, !noalias !26
  %broadcast.splatinsert94 = insertelement <4 x float> poison, float %59, i64 0
  %broadcast.splat95 = shufflevector <4 x float> %broadcast.splatinsert94, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i32 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %60 = add i32 %index, %.03949.us
  %61 = zext i32 %60 to i64
  %62 = getelementptr inbounds float, ptr %1, i64 %61
  %wide.load = load <4 x float>, ptr %62, align 4, !tbaa !21, !alias.scope !29
  %63 = add nsw i32 %50, %index
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds float, ptr %30, i64 %64
  %wide.load90 = load <4 x float>, ptr %65, align 4, !tbaa !21, !alias.scope !30, !noalias !29
  %66 = zext i32 %index to i64
  %67 = getelementptr inbounds float, ptr %35, i64 %66
  %wide.load91 = load <4 x float>, ptr %67, align 4, !tbaa !21, !alias.scope !31, !noalias !33
  %68 = fsub <4 x float> %wide.load91, %wide.load90
  %69 = fadd <4 x float> %wide.load, %68
  store <4 x float> %69, ptr %67, align 4, !tbaa !21, !alias.scope !31, !noalias !33
  store <4 x float> %wide.load, ptr %65, align 4, !tbaa !21, !alias.scope !30, !noalias !29
  %70 = fdiv <4 x float> %69, %broadcast.splat
  %71 = fsub <4 x float> %wide.load, %70
  %wide.load93 = load <4 x float>, ptr %62, align 4, !tbaa !21, !alias.scope !29
  %72 = fsub <4 x float> %71, %wide.load93
  %73 = tail call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %72, <4 x float> %broadcast.splat95, <4 x float> %wide.load93)
  store <4 x float> %73, ptr %62, align 4, !tbaa !21, !alias.scope !29
  %index.next = add nuw i32 %index, 4
  %74 = icmp eq i32 %index.next, %n.vec
  br i1 %74, label %middle.block, label %vector.body, !llvm.loop !34

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge.us, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %vector.scevcheck, %.preheader.us
  %.04047.us.ph = phi i32 [ 0, %vector.memcheck ], [ 0, %vector.scevcheck ], [ 0, %.preheader.us ], [ %n.vec, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %.04047.us = phi i32 [ %97, %scalar.ph ], [ %.04047.us.ph, %scalar.ph.preheader ]
  %75 = mul i32 %33, %.04047.us
  %76 = mul i32 %.04047.us, %2
  %77 = add i32 %76, %.03949.us
  %78 = zext i32 %77 to i64
  %79 = getelementptr inbounds float, ptr %1, i64 %78
  %80 = load float, ptr %79, align 4, !tbaa !21
  %81 = add nsw i32 %50, %75
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds float, ptr %30, i64 %82
  %84 = load float, ptr %83, align 4, !tbaa !21
  %85 = zext i32 %.04047.us to i64
  %86 = getelementptr inbounds float, ptr %35, i64 %85
  %87 = load float, ptr %86, align 4, !tbaa !21
  %88 = fsub float %87, %84
  %89 = fadd float %80, %88
  store float %89, ptr %86, align 4, !tbaa !21
  store float %80, ptr %83, align 4, !tbaa !21
  %90 = load float, ptr %86, align 4, !tbaa !21
  %91 = fdiv float %90, %36
  %92 = fsub float %80, %91
  %93 = load float, ptr %79, align 4, !tbaa !21
  %94 = fsub float %92, %93
  %95 = load float, ptr %38, align 4, !tbaa !21
  %96 = tail call float @llvm.fmuladd.f32(float %94, float %95, float %93)
  store float %96, ptr %79, align 4, !tbaa !21
  %97 = add nuw i32 %.04047.us, 1
  %exitcond.not = icmp eq i32 %97, %3
  br i1 %exitcond.not, label %._crit_edge.us, label %scalar.ph, !llvm.loop !38

._crit_edge.us:                                   ; preds = %scalar.ph, %middle.block
  %98 = add nsw i32 %50, 1
  %99 = srem i32 %98, %33
  %100 = add nuw i32 %.03949.us, 1
  %exitcond58.not = icmp eq i32 %100, %2
  br i1 %exitcond58.not, label %._crit_edge50, label %.preheader.us, !llvm.loop !39

.preheader:                                       ; preds = %.preheader, %.preheader.preheader.new
  %101 = phi i32 [ %.promoted, %.preheader.preheader.new ], [ %109, %.preheader ]
  %niter = phi i32 [ 0, %.preheader.preheader.new ], [ %niter.next.3, %.preheader ]
  %102 = add nsw i32 %101, 1
  %103 = srem i32 %102, %33
  %104 = add nsw i32 %103, 1
  %105 = srem i32 %104, %33
  %106 = add nsw i32 %105, 1
  %107 = srem i32 %106, %33
  %108 = add nsw i32 %107, 1
  %109 = srem i32 %108, %33
  %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_edge50.loopexit.unr-lcssa, label %.preheader, !llvm.loop !39

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

.preheader.epil:                                  ; preds = %._crit_edge50.loopexit.unr-lcssa, %.preheader.epil
  %110 = phi i32 [ %112, %.preheader.epil ], [ %.unr, %._crit_edge50.loopexit.unr-lcssa ]
  %epil.iter = phi i32 [ %epil.iter.next, %.preheader.epil ], [ 0, %._crit_edge50.loopexit.unr-lcssa ]
  %111 = add nsw i32 %110, 1
  %112 = srem i32 %111, %33
  %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_edge50, label %.preheader.epil, !llvm.loop !40

._crit_edge50:                                    ; preds = %._crit_edge.us, %._crit_edge50.loopexit.unr-lcssa, %.preheader.epil
  %.us-phi = phi i32 [ %.lcssa.ph, %._crit_edge50.loopexit.unr-lcssa ], [ %112, %.preheader.epil ], [ %99, %._crit_edge.us ]
  store i32 %.us-phi, ptr %31, align 8, !tbaa !22
  br label %113

113:                                              ; preds = %._crit_edge50, %.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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x float> @llvm.fmuladd.v4f32(<4 x float>, <4 x float>, <4 x float>) #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 nounwind willreturn memory(argmem: write) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 56}
!9 = !{!"_ZTSN6SoLoud23DCRemovalFilterInstanceE", !10, i64 0, !13, i64 32, !13, i64 40, !11, i64 48, !13, i64 56, !11, i64 64}
!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 = !{!15, !17, i64 8}
!15 = !{!"_ZTSN6SoLoud15DCRemovalFilterE", !16, i64 0, !17, i64 8}
!16 = !{!"_ZTSN6SoLoud6FilterE"}
!17 = !{!"float", !12, i64 0}
!18 = !{!9, !11, i64 48}
!19 = !{!9, !13, i64 32}
!20 = !{!9, !13, i64 40}
!21 = !{!17, !17, i64 0}
!22 = !{!9, !11, i64 64}
!23 = !{!24}
!24 = distinct !{!24, !25}
!25 = distinct !{!25, !"LVerDomain"}
!26 = !{!27, !28}
!27 = distinct !{!27, !25}
!28 = distinct !{!28, !25}
!29 = !{!28}
!30 = !{!27}
!31 = !{!32}
!32 = distinct !{!32, !25}
!33 = !{!24, !27, !28}
!34 = distinct !{!34, !35, !36, !37}
!35 = !{!"llvm.loop.mustprogress"}
!36 = !{!"llvm.loop.isvectorized", i32 1}
!37 = !{!"llvm.loop.unroll.runtime.disable"}
!38 = distinct !{!38, !35, !36}
!39 = distinct !{!39, !35}
!40 = distinct !{!40, !41}
!41 = !{!"llvm.loop.unroll.disable"}


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