; LLVM IR from Try/Tempest :: Engine/thirdparty/openal-soft/common (pffft)

; 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"

%struct.PFFFT_Setup = type <{ i32, i32, %"struct.std::array", i32, ptr, %"class.al::span.2", [32 x i8], i8, [63 x i8] }>
%"struct.std::array" = type { [15 x i32] }
%"class.al::span.2" = type { ptr, i64 }

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z32pffft_zconvolve_scale_accumulatePK11PFFFT_SetupPKfS3_Pff(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, float noundef %4) #1 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca float, align 4
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca <4 x float>, align 16
  %22 = alloca i64, align 8
  %23 = alloca <4 x float>, align 16
  %24 = alloca <4 x float>, align 16
  %25 = alloca <4 x float>, align 16
  %26 = alloca <4 x float>, align 16
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store float %4, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.PFFFT_Setup, ptr %27, i32 0, i32 1
  %29 = load i32, ptr %28, align 4, !tbaa !11
  %30 = zext i32 %29 to i64
  store i64 %30, ptr %11, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %31, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %32, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %33, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %34 = load ptr, ptr %12, align 8, !tbaa !5
  %35 = getelementptr inbounds <4 x float>, ptr %34, i64 0
  %36 = load <4 x float>, ptr %35, align 16, !tbaa !19
  %37 = call noundef float @_ZN12_GLOBAL__N_19vextract0EDv4_f(<4 x float> noundef %36) #4
  store float %37, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %38 = load ptr, ptr %12, align 8, !tbaa !5
  %39 = getelementptr inbounds <4 x float>, ptr %38, i64 1
  %40 = load <4 x float>, ptr %39, align 16, !tbaa !19
  %41 = call noundef float @_ZN12_GLOBAL__N_19vextract0EDv4_f(<4 x float> noundef %40) #4
  store float %41, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %42 = load ptr, ptr %13, align 8, !tbaa !5
  %43 = getelementptr inbounds <4 x float>, ptr %42, i64 0
  %44 = load <4 x float>, ptr %43, align 16, !tbaa !19
  %45 = call noundef float @_ZN12_GLOBAL__N_19vextract0EDv4_f(<4 x float> noundef %44) #4
  store float %45, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %46 = load ptr, ptr %13, align 8, !tbaa !5
  %47 = getelementptr inbounds <4 x float>, ptr %46, i64 1
  %48 = load <4 x float>, ptr %47, align 16, !tbaa !19
  %49 = call noundef float @_ZN12_GLOBAL__N_19vextract0EDv4_f(<4 x float> noundef %48) #4
  store float %49, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %50 = load ptr, ptr %14, align 8, !tbaa !5
  %51 = getelementptr inbounds <4 x float>, ptr %50, i64 0
  %52 = load <4 x float>, ptr %51, align 16, !tbaa !19
  %53 = call noundef float @_ZN12_GLOBAL__N_19vextract0EDv4_f(<4 x float> noundef %52) #4
  store float %53, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %54 = load ptr, ptr %14, align 8, !tbaa !5
  %55 = getelementptr inbounds <4 x float>, ptr %54, i64 1
  %56 = load <4 x float>, ptr %55, align 16, !tbaa !19
  %57 = call noundef float @_ZN12_GLOBAL__N_19vextract0EDv4_f(<4 x float> noundef %56) #4
  store float %57, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #4
  %58 = load float, ptr %10, align 4, !tbaa !9
  %59 = call noundef <4 x float> @_ZN12_GLOBAL__N_16ld_ps1Ef(float noundef %58) #4
  %60 = shufflevector <4 x float> %59, <4 x float> poison, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
  %61 = shufflevector <4 x float> %60, <4 x float> poison, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
  store <4 x float> %61, ptr %21, align 16, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  store i64 0, ptr %22, align 8, !tbaa !18
  br label %62

62:                                               ; preds = %184, %5
  %63 = load i64, ptr %22, align 8, !tbaa !18
  %64 = load i64, ptr %11, align 8, !tbaa !18
  %65 = icmp ult i64 %63, %64
  br i1 %65, label %67, label %66

66:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  br label %187

67:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #4
  %68 = load ptr, ptr %12, align 8, !tbaa !5
  %69 = load i64, ptr %22, align 8, !tbaa !18
  %70 = mul i64 2, %69
  %71 = add i64 %70, 0
  %72 = getelementptr inbounds <4 x float>, ptr %68, i64 %71
  %73 = load <4 x float>, ptr %72, align 16, !tbaa !19
  %74 = shufflevector <4 x float> %73, <4 x float> poison, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
  %75 = shufflevector <4 x float> %74, <4 x float> poison, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
  store <4 x float> %75, ptr %23, align 16, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #4
  %76 = load ptr, ptr %12, align 8, !tbaa !5
  %77 = load i64, ptr %22, align 8, !tbaa !18
  %78 = mul i64 2, %77
  %79 = add i64 %78, 1
  %80 = getelementptr inbounds <4 x float>, ptr %76, i64 %79
  %81 = load <4 x float>, ptr %80, align 16, !tbaa !19
  %82 = shufflevector <4 x float> %81, <4 x float> poison, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
  %83 = shufflevector <4 x float> %82, <4 x float> poison, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
  store <4 x float> %83, ptr %24, align 16, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #4
  %84 = load ptr, ptr %13, align 8, !tbaa !5
  %85 = load i64, ptr %22, align 8, !tbaa !18
  %86 = mul i64 2, %85
  %87 = add i64 %86, 0
  %88 = getelementptr inbounds <4 x float>, ptr %84, i64 %87
  %89 = load <4 x float>, ptr %88, align 16, !tbaa !19
  %90 = shufflevector <4 x float> %89, <4 x float> poison, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
  %91 = shufflevector <4 x float> %90, <4 x float> poison, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
  store <4 x float> %91, ptr %25, align 16, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #4
  %92 = load ptr, ptr %13, align 8, !tbaa !5
  %93 = load i64, ptr %22, align 8, !tbaa !18
  %94 = mul i64 2, %93
  %95 = add i64 %94, 1
  %96 = getelementptr inbounds <4 x float>, ptr %92, i64 %95
  %97 = load <4 x float>, ptr %96, align 16, !tbaa !19
  %98 = shufflevector <4 x float> %97, <4 x float> poison, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
  %99 = shufflevector <4 x float> %98, <4 x float> poison, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
  store <4 x float> %99, ptr %26, align 16, !tbaa !19
  %100 = load <4 x float>, ptr %25, align 16, !tbaa !19
  %101 = load <4 x float>, ptr %26, align 16, !tbaa !19
  call void @_ZN12_GLOBAL__N_18vcplxmulERDv4_fS1_S0_S0_(ptr noundef nonnull align 16 dereferenceable(16) %23, ptr noundef nonnull align 16 dereferenceable(16) %24, <4 x float> noundef %100, <4 x float> noundef %101) #4
  %102 = load <4 x float>, ptr %23, align 16, !tbaa !19
  %103 = load <4 x float>, ptr %21, align 16, !tbaa !19
  %104 = load ptr, ptr %14, align 8, !tbaa !5
  %105 = load i64, ptr %22, align 8, !tbaa !18
  %106 = mul i64 2, %105
  %107 = add i64 %106, 0
  %108 = getelementptr inbounds <4 x float>, ptr %104, i64 %107
  %109 = load <4 x float>, ptr %108, align 16, !tbaa !19
  %110 = call noundef <4 x float> @_ZN12_GLOBAL__N_15vmaddEDv4_fS0_S0_(<4 x float> noundef %102, <4 x float> noundef %103, <4 x float> noundef %109) #4
  %111 = load ptr, ptr %14, align 8, !tbaa !5
  %112 = load i64, ptr %22, align 8, !tbaa !18
  %113 = mul i64 2, %112
  %114 = add i64 %113, 0
  %115 = getelementptr inbounds <4 x float>, ptr %111, i64 %114
  store <4 x float> %110, ptr %115, align 16, !tbaa !19
  %116 = load <4 x float>, ptr %24, align 16, !tbaa !19
  %117 = load <4 x float>, ptr %21, align 16, !tbaa !19
  %118 = load ptr, ptr %14, align 8, !tbaa !5
  %119 = load i64, ptr %22, align 8, !tbaa !18
  %120 = mul i64 2, %119
  %121 = add i64 %120, 1
  %122 = getelementptr inbounds <4 x float>, ptr %118, i64 %121
  %123 = load <4 x float>, ptr %122, align 16, !tbaa !19
  %124 = call noundef <4 x float> @_ZN12_GLOBAL__N_15vmaddEDv4_fS0_S0_(<4 x float> noundef %116, <4 x float> noundef %117, <4 x float> noundef %123) #4
  %125 = load ptr, ptr %14, align 8, !tbaa !5
  %126 = load i64, ptr %22, align 8, !tbaa !18
  %127 = mul i64 2, %126
  %128 = add i64 %127, 1
  %129 = getelementptr inbounds <4 x float>, ptr %125, i64 %128
  store <4 x float> %124, ptr %129, align 16, !tbaa !19
  %130 = load ptr, ptr %12, align 8, !tbaa !5
  %131 = load i64, ptr %22, align 8, !tbaa !18
  %132 = mul i64 2, %131
  %133 = add i64 %132, 2
  %134 = getelementptr inbounds <4 x float>, ptr %130, i64 %133
  %135 = load <4 x float>, ptr %134, align 16, !tbaa !19
  store <4 x float> %135, ptr %23, align 16, !tbaa !19
  %136 = load ptr, ptr %12, align 8, !tbaa !5
  %137 = load i64, ptr %22, align 8, !tbaa !18
  %138 = mul i64 2, %137
  %139 = add i64 %138, 3
  %140 = getelementptr inbounds <4 x float>, ptr %136, i64 %139
  %141 = load <4 x float>, ptr %140, align 16, !tbaa !19
  store <4 x float> %141, ptr %24, align 16, !tbaa !19
  %142 = load ptr, ptr %13, align 8, !tbaa !5
  %143 = load i64, ptr %22, align 8, !tbaa !18
  %144 = mul i64 2, %143
  %145 = add i64 %144, 2
  %146 = getelementptr inbounds <4 x float>, ptr %142, i64 %145
  %147 = load <4 x float>, ptr %146, align 16, !tbaa !19
  store <4 x float> %147, ptr %25, align 16, !tbaa !19
  %148 = load ptr, ptr %13, align 8, !tbaa !5
  %149 = load i64, ptr %22, align 8, !tbaa !18
  %150 = mul i64 2, %149
  %151 = add i64 %150, 3
  %152 = getelementptr inbounds <4 x float>, ptr %148, i64 %151
  %153 = load <4 x float>, ptr %152, align 16, !tbaa !19
  store <4 x float> %153, ptr %26, align 16, !tbaa !19
  %154 = load <4 x float>, ptr %25, align 16, !tbaa !19
  %155 = load <4 x float>, ptr %26, align 16, !tbaa !19
  call void @_ZN12_GLOBAL__N_18vcplxmulERDv4_fS1_S0_S0_(ptr noundef nonnull align 16 dereferenceable(16) %23, ptr noundef nonnull align 16 dereferenceable(16) %24, <4 x float> noundef %154, <4 x float> noundef %155) #4
  %156 = load <4 x float>, ptr %23, align 16, !tbaa !19
  %157 = load <4 x float>, ptr %21, align 16, !tbaa !19
  %158 = load ptr, ptr %14, align 8, !tbaa !5
  %159 = load i64, ptr %22, align 8, !tbaa !18
  %160 = mul i64 2, %159
  %161 = add i64 %160, 2
  %162 = getelementptr inbounds <4 x float>, ptr %158, i64 %161
  %163 = load <4 x float>, ptr %162, align 16, !tbaa !19
  %164 = call noundef <4 x float> @_ZN12_GLOBAL__N_15vmaddEDv4_fS0_S0_(<4 x float> noundef %156, <4 x float> noundef %157, <4 x float> noundef %163) #4
  %165 = load ptr, ptr %14, align 8, !tbaa !5
  %166 = load i64, ptr %22, align 8, !tbaa !18
  %167 = mul i64 2, %166
  %168 = add i64 %167, 2
  %169 = getelementptr inbounds <4 x float>, ptr %165, i64 %168
  store <4 x float> %164, ptr %169, align 16, !tbaa !19
  %170 = load <4 x float>, ptr %24, align 16, !tbaa !19
  %171 = load <4 x float>, ptr %21, align 16, !tbaa !19
  %172 = load ptr, ptr %14, align 8, !tbaa !5
  %173 = load i64, ptr %22, align 8, !tbaa !18
  %174 = mul i64 2, %173
  %175 = add i64 %174, 3
  %176 = getelementptr inbounds <4 x float>, ptr %172, i64 %175
  %177 = load <4 x float>, ptr %176, align 16, !tbaa !19
  %178 = call noundef <4 x float> @_ZN12_GLOBAL__N_15vmaddEDv4_fS0_S0_(<4 x float> noundef %170, <4 x float> noundef %171, <4 x float> noundef %177) #4
  %179 = load ptr, ptr %14, align 8, !tbaa !5
  %180 = load i64, ptr %22, align 8, !tbaa !18
  %181 = mul i64 2, %180
  %182 = add i64 %181, 3
  %183 = getelementptr inbounds <4 x float>, ptr %179, i64 %182
  store <4 x float> %178, ptr %183, align 16, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #4
  br label %184

184:                                              ; preds = %67
  %185 = load i64, ptr %22, align 8, !tbaa !18
  %186 = add i64 %185, 2
  store i64 %186, ptr %22, align 8, !tbaa !18
  br label %62, !llvm.loop !20

187:                                              ; preds = %66
  %188 = load ptr, ptr %6, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.PFFFT_Setup, ptr %188, i32 0, i32 3
  %190 = load i32, ptr %189, align 4, !tbaa !22
  %191 = icmp eq i32 %190, 0
  br i1 %191, label %192, label %217

192:                                              ; preds = %187
  %193 = load ptr, ptr %14, align 8, !tbaa !5
  %194 = getelementptr inbounds <4 x float>, ptr %193, i64 0
  %195 = load <4 x float>, ptr %194, align 16, !tbaa !19
  %196 = load float, ptr %19, align 4, !tbaa !9
  %197 = load float, ptr %15, align 4, !tbaa !9
  %198 = load float, ptr %17, align 4, !tbaa !9
  %199 = fmul float %197, %198
  %200 = load float, ptr %10, align 4, !tbaa !9
  %201 = call float @llvm.fmuladd.f32(float %199, float %200, float %196)
  %202 = call noundef <4 x float> @_ZN12_GLOBAL__N_18vinsert0EDv4_ff(<4 x float> noundef %195, float noundef %201) #4
  %203 = load ptr, ptr %14, align 8, !tbaa !5
  %204 = getelementptr inbounds <4 x float>, ptr %203, i64 0
  store <4 x float> %202, ptr %204, align 16, !tbaa !19
  %205 = load ptr, ptr %14, align 8, !tbaa !5
  %206 = getelementptr inbounds <4 x float>, ptr %205, i64 1
  %207 = load <4 x float>, ptr %206, align 16, !tbaa !19
  %208 = load float, ptr %20, align 4, !tbaa !9
  %209 = load float, ptr %16, align 4, !tbaa !9
  %210 = load float, ptr %18, align 4, !tbaa !9
  %211 = fmul float %209, %210
  %212 = load float, ptr %10, align 4, !tbaa !9
  %213 = call float @llvm.fmuladd.f32(float %211, float %212, float %208)
  %214 = call noundef <4 x float> @_ZN12_GLOBAL__N_18vinsert0EDv4_ff(<4 x float> noundef %207, float noundef %213) #4
  %215 = load ptr, ptr %14, align 8, !tbaa !5
  %216 = getelementptr inbounds <4 x float>, ptr %215, i64 1
  store <4 x float> %214, ptr %216, align 16, !tbaa !19
  br label %217

217:                                              ; preds = %192, %187
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  ret void
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef float @_ZN12_GLOBAL__N_19vextract0EDv4_f(<4 x float> noundef) #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZN12_GLOBAL__N_16ld_ps1Ef(float noundef) #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden void @_ZN12_GLOBAL__N_18vcplxmulERDv4_fS1_S0_S0_(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16), <4 x float> noundef, <4 x float> noundef) #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZN12_GLOBAL__N_15vmaddEDv4_fS0_S0_(<4 x float> noundef, <4 x float> noundef, <4 x float> noundef) #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZN12_GLOBAL__N_18vinsert0EDv4_ff(<4 x float> noundef, float noundef) #2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="128" "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 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="128" "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) }
attributes #4 = { 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, !13, i64 4}
!12 = !{!"_ZTS11PFFFT_Setup", !13, i64 0, !13, i64 4, !14, i64 8, !15, i64 68, !6, i64 72, !16, i64 80, !7, i64 128}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTSSt5arrayIjLm15EE", !7, i64 0}
!15 = !{!"_ZTS17pffft_transform_t", !7, i64 0}
!16 = !{!"_ZTSN2al4spanIDv4_fLm18446744073709551615EEE", !6, i64 0, !17, i64 8}
!17 = !{!"long", !7, i64 0}
!18 = !{!17, !17, i64 0}
!19 = !{!7, !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!12, !15, i64 68}


; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z32pffft_zconvolve_scale_accumulatePK11PFFFT_SetupPKfS3_Pff(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr nocapture noundef %3, float noundef %4) local_unnamed_addr #1 {
  %6 = alloca <4 x float>, align 16
  %7 = alloca <4 x float>, align 16
  %8 = getelementptr inbounds i8, ptr %0, i64 4
  %9 = load i32, ptr %8, align 4, !tbaa !5
  %10 = zext i32 %9 to i64
  %11 = load <4 x float>, ptr %1, align 16, !tbaa !15
  %12 = tail call noundef float @_ZN12_GLOBAL__N_19vextract0EDv4_f(<4 x float> noundef %11) #4
  %13 = getelementptr inbounds i8, ptr %1, i64 16
  %14 = load <4 x float>, ptr %13, align 16, !tbaa !15
  %15 = tail call noundef float @_ZN12_GLOBAL__N_19vextract0EDv4_f(<4 x float> noundef %14) #4
  %16 = load <4 x float>, ptr %2, align 16, !tbaa !15
  %17 = tail call noundef float @_ZN12_GLOBAL__N_19vextract0EDv4_f(<4 x float> noundef %16) #4
  %18 = getelementptr inbounds i8, ptr %2, i64 16
  %19 = load <4 x float>, ptr %18, align 16, !tbaa !15
  %20 = tail call noundef float @_ZN12_GLOBAL__N_19vextract0EDv4_f(<4 x float> noundef %19) #4
  %21 = load <4 x float>, ptr %3, align 16, !tbaa !15
  %22 = tail call noundef float @_ZN12_GLOBAL__N_19vextract0EDv4_f(<4 x float> noundef %21) #4
  %23 = getelementptr inbounds i8, ptr %3, i64 16
  %24 = load <4 x float>, ptr %23, align 16, !tbaa !15
  %25 = tail call noundef float @_ZN12_GLOBAL__N_19vextract0EDv4_f(<4 x float> noundef %24) #4
  %26 = tail call noundef <4 x float> @_ZN12_GLOBAL__N_16ld_ps1Ef(float noundef %4) #4
  %.not = icmp eq i32 %9, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %5
  %27 = getelementptr inbounds i8, ptr %0, i64 68
  %28 = load i32, ptr %27, align 4, !tbaa !16
  %29 = icmp eq i32 %28, 0
  br i1 %29, label %68, label %77

.lr.ph:                                           ; preds = %5, %.lr.ph
  %.066 = phi i64 [ %66, %.lr.ph ], [ 0, %5 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  %30 = shl nuw nsw i64 %.066, 1
  %31 = getelementptr inbounds <4 x float>, ptr %1, i64 %30
  %32 = load <4 x float>, ptr %31, align 16, !tbaa !15
  store <4 x float> %32, ptr %6, align 16, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #4
  %33 = or disjoint i64 %30, 1
  %34 = getelementptr inbounds <4 x float>, ptr %1, i64 %33
  %35 = load <4 x float>, ptr %34, align 16, !tbaa !15
  store <4 x float> %35, ptr %7, align 16, !tbaa !15
  %36 = getelementptr inbounds <4 x float>, ptr %2, i64 %30
  %37 = load <4 x float>, ptr %36, align 16, !tbaa !15
  %38 = getelementptr inbounds <4 x float>, ptr %2, i64 %33
  %39 = load <4 x float>, ptr %38, align 16, !tbaa !15
  call void @_ZN12_GLOBAL__N_18vcplxmulERDv4_fS1_S0_S0_(ptr noundef nonnull align 16 dereferenceable(16) %6, ptr noundef nonnull align 16 dereferenceable(16) %7, <4 x float> noundef %37, <4 x float> noundef %39) #4
  %40 = load <4 x float>, ptr %6, align 16, !tbaa !15
  %41 = getelementptr inbounds <4 x float>, ptr %3, i64 %30
  %42 = load <4 x float>, ptr %41, align 16, !tbaa !15
  %43 = call noundef <4 x float> @_ZN12_GLOBAL__N_15vmaddEDv4_fS0_S0_(<4 x float> noundef %40, <4 x float> noundef %26, <4 x float> noundef %42) #4
  store <4 x float> %43, ptr %41, align 16, !tbaa !15
  %44 = load <4 x float>, ptr %7, align 16, !tbaa !15
  %45 = getelementptr inbounds <4 x float>, ptr %3, i64 %33
  %46 = load <4 x float>, ptr %45, align 16, !tbaa !15
  %47 = call noundef <4 x float> @_ZN12_GLOBAL__N_15vmaddEDv4_fS0_S0_(<4 x float> noundef %44, <4 x float> noundef %26, <4 x float> noundef %46) #4
  store <4 x float> %47, ptr %45, align 16, !tbaa !15
  %48 = or disjoint i64 %30, 2
  %49 = getelementptr inbounds <4 x float>, ptr %1, i64 %48
  %50 = load <4 x float>, ptr %49, align 16, !tbaa !15
  store <4 x float> %50, ptr %6, align 16, !tbaa !15
  %51 = or disjoint i64 %30, 3
  %52 = getelementptr inbounds <4 x float>, ptr %1, i64 %51
  %53 = load <4 x float>, ptr %52, align 16, !tbaa !15
  store <4 x float> %53, ptr %7, align 16, !tbaa !15
  %54 = getelementptr inbounds <4 x float>, ptr %2, i64 %48
  %55 = load <4 x float>, ptr %54, align 16, !tbaa !15
  %56 = getelementptr inbounds <4 x float>, ptr %2, i64 %51
  %57 = load <4 x float>, ptr %56, align 16, !tbaa !15
  call void @_ZN12_GLOBAL__N_18vcplxmulERDv4_fS1_S0_S0_(ptr noundef nonnull align 16 dereferenceable(16) %6, ptr noundef nonnull align 16 dereferenceable(16) %7, <4 x float> noundef %55, <4 x float> noundef %57) #4
  %58 = load <4 x float>, ptr %6, align 16, !tbaa !15
  %59 = getelementptr inbounds <4 x float>, ptr %3, i64 %48
  %60 = load <4 x float>, ptr %59, align 16, !tbaa !15
  %61 = call noundef <4 x float> @_ZN12_GLOBAL__N_15vmaddEDv4_fS0_S0_(<4 x float> noundef %58, <4 x float> noundef %26, <4 x float> noundef %60) #4
  store <4 x float> %61, ptr %59, align 16, !tbaa !15
  %62 = load <4 x float>, ptr %7, align 16, !tbaa !15
  %63 = getelementptr inbounds <4 x float>, ptr %3, i64 %51
  %64 = load <4 x float>, ptr %63, align 16, !tbaa !15
  %65 = call noundef <4 x float> @_ZN12_GLOBAL__N_15vmaddEDv4_fS0_S0_(<4 x float> noundef %62, <4 x float> noundef %26, <4 x float> noundef %64) #4
  store <4 x float> %65, ptr %63, align 16, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  %66 = add nuw nsw i64 %.066, 2
  %67 = icmp ult i64 %66, %10
  br i1 %67, label %.lr.ph, label %._crit_edge, !llvm.loop !17

68:                                               ; preds = %._crit_edge
  %69 = load <4 x float>, ptr %3, align 16, !tbaa !15
  %70 = fmul float %12, %17
  %71 = call float @llvm.fmuladd.f32(float %70, float %4, float %22)
  %72 = call noundef <4 x float> @_ZN12_GLOBAL__N_18vinsert0EDv4_ff(<4 x float> noundef %69, float noundef %71) #4
  store <4 x float> %72, ptr %3, align 16, !tbaa !15
  %73 = load <4 x float>, ptr %23, align 16, !tbaa !15
  %74 = fmul float %15, %20
  %75 = call float @llvm.fmuladd.f32(float %74, float %4, float %25)
  %76 = call noundef <4 x float> @_ZN12_GLOBAL__N_18vinsert0EDv4_ff(<4 x float> noundef %73, float noundef %75) #4
  store <4 x float> %76, ptr %23, align 16, !tbaa !15
  br label %77

77:                                               ; preds = %68, %._crit_edge
  ret void
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef float @_ZN12_GLOBAL__N_19vextract0EDv4_f(<4 x float> noundef) local_unnamed_addr #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZN12_GLOBAL__N_16ld_ps1Ef(float noundef) local_unnamed_addr #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden void @_ZN12_GLOBAL__N_18vcplxmulERDv4_fS1_S0_S0_(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16), <4 x float> noundef, <4 x float> noundef) local_unnamed_addr #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZN12_GLOBAL__N_15vmaddEDv4_fS0_S0_(<4 x float> noundef, <4 x float> noundef, <4 x float> noundef) local_unnamed_addr #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZN12_GLOBAL__N_18vinsert0EDv4_ff(<4 x float> noundef, float 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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="128" "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 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="128" "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 = { 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, !7, i64 4}
!6 = !{!"_ZTS11PFFFT_Setup", !7, i64 0, !7, i64 4, !10, i64 8, !11, i64 68, !12, i64 72, !13, i64 80, !8, i64 128}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt5arrayIjLm15EE", !8, i64 0}
!11 = !{!"_ZTS17pffft_transform_t", !8, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"_ZTSN2al4spanIDv4_fLm18446744073709551615EEE", !12, i64 0, !14, i64 8}
!14 = !{!"long", !8, i64 0}
!15 = !{!8, !8, i64 0}
!16 = !{!6, !11, i64 68}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass