; LLVM IR from T-Troll/alienfx-tools :: alienfx-gui/kiss_fft/tools/kiss_fftr.ll (Z10kiss_fftriPKvPK12kiss_fft_cpxPf)

; 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.kiss_fft_cpx = type { float, float }
%struct.kiss_fftr_state = type { i32, ptr, ptr, ptr }
%struct.kiss_fft_state = type { i32, i32, ptr, ptr, ptr, ptr }

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

declare void @_Z8kiss_fftPKvPK12kiss_fft_cpxPS1_(ptr noundef, ptr noundef, ptr noundef) #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z10kiss_fftriPKvPK12kiss_fft_cpxPf(ptr noundef %0, ptr noundef %1, ptr noundef %2) #4 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %struct.kiss_fft_cpx, align 4
  %11 = alloca %struct.kiss_fft_cpx, align 4
  %12 = alloca %struct.kiss_fft_cpx, align 4
  %13 = alloca %struct.kiss_fft_cpx, align 4
  %14 = alloca %struct.kiss_fft_cpx, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %15, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %16 = load ptr, ptr %7, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.kiss_fftr_state, ptr %16, i32 0, i32 1
  %18 = load ptr, ptr %17, align 8, !tbaa !9
  %19 = getelementptr inbounds %struct.kiss_fft_state, ptr %18, i32 0, i32 0
  %20 = load i32, ptr %19, align 8, !tbaa !12
  store i32 %20, ptr %9, align 4, !tbaa !14
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %21, i64 0
  %23 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %22, i32 0, i32 0
  %24 = load float, ptr %23, align 4, !tbaa !15
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = load i32, ptr %9, align 4, !tbaa !14
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %25, i64 %27
  %29 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %28, i32 0, i32 0
  %30 = load float, ptr %29, align 4, !tbaa !15
  %31 = fadd float %24, %30
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.kiss_fftr_state, ptr %32, i32 0, i32 2
  %34 = load ptr, ptr %33, align 8, !tbaa !18
  %35 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %34, i64 0
  %36 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %35, i32 0, i32 0
  store float %31, ptr %36, align 4, !tbaa !15
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %37, i64 0
  %39 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %38, i32 0, i32 0
  %40 = load float, ptr %39, align 4, !tbaa !15
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = load i32, ptr %9, align 4, !tbaa !14
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %41, i64 %43
  %45 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %44, i32 0, i32 0
  %46 = load float, ptr %45, align 4, !tbaa !15
  %47 = fsub float %40, %46
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.kiss_fftr_state, ptr %48, i32 0, i32 2
  %50 = load ptr, ptr %49, align 8, !tbaa !18
  %51 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %50, i64 0
  %52 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %51, i32 0, i32 1
  store float %47, ptr %52, align 4, !tbaa !19
  store i32 1, ptr %8, align 4, !tbaa !14
  br label %53

53:                                               ; preds = %231, %3
  %54 = load i32, ptr %8, align 4, !tbaa !14
  %55 = load i32, ptr %9, align 4, !tbaa !14
  %56 = sdiv i32 %55, 2
  %57 = icmp sle i32 %54, %56
  br i1 %57, label %58, label %234

58:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = load i32, ptr %8, align 4, !tbaa !14
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %59, i64 %61
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %62, i64 8, i1 false), !tbaa.struct !20
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = load i32, ptr %9, align 4, !tbaa !14
  %65 = load i32, ptr %8, align 4, !tbaa !14
  %66 = sub nsw i32 %64, %65
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %63, i64 %67
  %69 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %68, i32 0, i32 0
  %70 = load float, ptr %69, align 4, !tbaa !15
  %71 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %11, i32 0, i32 0
  store float %70, ptr %71, align 4, !tbaa !15
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = load i32, ptr %9, align 4, !tbaa !14
  %74 = load i32, ptr %8, align 4, !tbaa !14
  %75 = sub nsw i32 %73, %74
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %72, i64 %76
  %78 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %77, i32 0, i32 1
  %79 = load float, ptr %78, align 4, !tbaa !19
  %80 = fneg float %79
  %81 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %11, i32 0, i32 1
  store float %80, ptr %81, align 4, !tbaa !19
  br label %82

82:                                               ; preds = %58
  %83 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %10, i32 0, i32 0
  %84 = load float, ptr %83, align 4, !tbaa !15
  %85 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %11, i32 0, i32 0
  %86 = load float, ptr %85, align 4, !tbaa !15
  %87 = fadd float %84, %86
  %88 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %12, i32 0, i32 0
  store float %87, ptr %88, align 4, !tbaa !15
  %89 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %10, i32 0, i32 1
  %90 = load float, ptr %89, align 4, !tbaa !19
  %91 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %11, i32 0, i32 1
  %92 = load float, ptr %91, align 4, !tbaa !19
  %93 = fadd float %90, %92
  %94 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %12, i32 0, i32 1
  store float %93, ptr %94, align 4, !tbaa !19
  br label %95

95:                                               ; preds = %82
  br label %96

96:                                               ; preds = %95
  br label %97

97:                                               ; preds = %96
  %98 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %10, i32 0, i32 0
  %99 = load float, ptr %98, align 4, !tbaa !15
  %100 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %11, i32 0, i32 0
  %101 = load float, ptr %100, align 4, !tbaa !15
  %102 = fsub float %99, %101
  %103 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %14, i32 0, i32 0
  store float %102, ptr %103, align 4, !tbaa !15
  %104 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %10, i32 0, i32 1
  %105 = load float, ptr %104, align 4, !tbaa !19
  %106 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %11, i32 0, i32 1
  %107 = load float, ptr %106, align 4, !tbaa !19
  %108 = fsub float %105, %107
  %109 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %14, i32 0, i32 1
  store float %108, ptr %109, align 4, !tbaa !19
  br label %110

110:                                              ; preds = %97
  br label %111

111:                                              ; preds = %110
  br label %112

112:                                              ; preds = %111
  %113 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %14, i32 0, i32 0
  %114 = load float, ptr %113, align 4, !tbaa !15
  %115 = load ptr, ptr %7, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.kiss_fftr_state, ptr %115, i32 0, i32 3
  %117 = load ptr, ptr %116, align 8, !tbaa !22
  %118 = load i32, ptr %8, align 4, !tbaa !14
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %117, i64 %119
  %121 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %120, i32 0, i32 0
  %122 = load float, ptr %121, align 4, !tbaa !15
  %123 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %14, i32 0, i32 1
  %124 = load float, ptr %123, align 4, !tbaa !19
  %125 = load ptr, ptr %7, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.kiss_fftr_state, ptr %125, i32 0, i32 3
  %127 = load ptr, ptr %126, align 8, !tbaa !22
  %128 = load i32, ptr %8, align 4, !tbaa !14
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %127, i64 %129
  %131 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %130, i32 0, i32 1
  %132 = load float, ptr %131, align 4, !tbaa !19
  %133 = fmul float %124, %132
  %134 = fneg float %133
  %135 = call float @llvm.fmuladd.f32(float %114, float %122, float %134)
  %136 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %13, i32 0, i32 0
  store float %135, ptr %136, align 4, !tbaa !15
  %137 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %14, i32 0, i32 0
  %138 = load float, ptr %137, align 4, !tbaa !15
  %139 = load ptr, ptr %7, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.kiss_fftr_state, ptr %139, i32 0, i32 3
  %141 = load ptr, ptr %140, align 8, !tbaa !22
  %142 = load i32, ptr %8, align 4, !tbaa !14
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %141, i64 %143
  %145 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %144, i32 0, i32 1
  %146 = load float, ptr %145, align 4, !tbaa !19
  %147 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %14, i32 0, i32 1
  %148 = load float, ptr %147, align 4, !tbaa !19
  %149 = load ptr, ptr %7, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.kiss_fftr_state, ptr %149, i32 0, i32 3
  %151 = load ptr, ptr %150, align 8, !tbaa !22
  %152 = load i32, ptr %8, align 4, !tbaa !14
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %151, i64 %153
  %155 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %154, i32 0, i32 0
  %156 = load float, ptr %155, align 4, !tbaa !15
  %157 = fmul float %148, %156
  %158 = call float @llvm.fmuladd.f32(float %138, float %146, float %157)
  %159 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %13, i32 0, i32 1
  store float %158, ptr %159, align 4, !tbaa !19
  br label %160

160:                                              ; preds = %112
  br label %161

161:                                              ; preds = %160
  br label %162

162:                                              ; preds = %161
  %163 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %12, i32 0, i32 0
  %164 = load float, ptr %163, align 4, !tbaa !15
  %165 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %13, i32 0, i32 0
  %166 = load float, ptr %165, align 4, !tbaa !15
  %167 = fadd float %164, %166
  %168 = load ptr, ptr %7, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.kiss_fftr_state, ptr %168, i32 0, i32 2
  %170 = load ptr, ptr %169, align 8, !tbaa !18
  %171 = load i32, ptr %8, align 4, !tbaa !14
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %170, i64 %172
  %174 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %173, i32 0, i32 0
  store float %167, ptr %174, align 4, !tbaa !15
  %175 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %12, i32 0, i32 1
  %176 = load float, ptr %175, align 4, !tbaa !19
  %177 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %13, i32 0, i32 1
  %178 = load float, ptr %177, align 4, !tbaa !19
  %179 = fadd float %176, %178
  %180 = load ptr, ptr %7, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.kiss_fftr_state, ptr %180, i32 0, i32 2
  %182 = load ptr, ptr %181, align 8, !tbaa !18
  %183 = load i32, ptr %8, align 4, !tbaa !14
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %182, i64 %184
  %186 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %185, i32 0, i32 1
  store float %179, ptr %186, align 4, !tbaa !19
  br label %187

187:                                              ; preds = %162
  br label %188

188:                                              ; preds = %187
  br label %189

189:                                              ; preds = %188
  %190 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %12, i32 0, i32 0
  %191 = load float, ptr %190, align 4, !tbaa !15
  %192 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %13, i32 0, i32 0
  %193 = load float, ptr %192, align 4, !tbaa !15
  %194 = fsub float %191, %193
  %195 = load ptr, ptr %7, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.kiss_fftr_state, ptr %195, i32 0, i32 2
  %197 = load ptr, ptr %196, align 8, !tbaa !18
  %198 = load i32, ptr %9, align 4, !tbaa !14
  %199 = load i32, ptr %8, align 4, !tbaa !14
  %200 = sub nsw i32 %198, %199
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %197, i64 %201
  %203 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %202, i32 0, i32 0
  store float %194, ptr %203, align 4, !tbaa !15
  %204 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %12, i32 0, i32 1
  %205 = load float, ptr %204, align 4, !tbaa !19
  %206 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %13, i32 0, i32 1
  %207 = load float, ptr %206, align 4, !tbaa !19
  %208 = fsub float %205, %207
  %209 = load ptr, ptr %7, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.kiss_fftr_state, ptr %209, i32 0, i32 2
  %211 = load ptr, ptr %210, align 8, !tbaa !18
  %212 = load i32, ptr %9, align 4, !tbaa !14
  %213 = load i32, ptr %8, align 4, !tbaa !14
  %214 = sub nsw i32 %212, %213
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %211, i64 %215
  %217 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %216, i32 0, i32 1
  store float %208, ptr %217, align 4, !tbaa !19
  br label %218

218:                                              ; preds = %189
  br label %219

219:                                              ; preds = %218
  %220 = load ptr, ptr %7, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.kiss_fftr_state, ptr %220, i32 0, i32 2
  %222 = load ptr, ptr %221, align 8, !tbaa !18
  %223 = load i32, ptr %9, align 4, !tbaa !14
  %224 = load i32, ptr %8, align 4, !tbaa !14
  %225 = sub nsw i32 %223, %224
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %222, i64 %226
  %228 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %227, i32 0, i32 1
  %229 = load float, ptr %228, align 4, !tbaa !19
  %230 = fmul float %229, -1.000000e+00
  store float %230, ptr %228, align 4, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %231

231:                                              ; preds = %219
  %232 = load i32, ptr %8, align 4, !tbaa !14
  %233 = add nsw i32 %232, 1
  store i32 %233, ptr %8, align 4, !tbaa !14
  br label %53, !llvm.loop !23

234:                                              ; preds = %53
  %235 = load ptr, ptr %7, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.kiss_fftr_state, ptr %235, i32 0, i32 1
  %237 = load ptr, ptr %236, align 8, !tbaa !9
  %238 = load ptr, ptr %7, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.kiss_fftr_state, ptr %238, i32 0, i32 2
  %240 = load ptr, ptr %239, align 8, !tbaa !18
  %241 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_Z8kiss_fftPKvPK12kiss_fft_cpxPS1_(ptr noundef %237, ptr noundef %240, ptr noundef %241)
  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 8, ptr %7) #5
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { 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 #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, !6, i64 8}
!10 = !{!"_ZTS15kiss_fftr_state", !11, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"_ZTS14kiss_fft_state", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!14 = !{!11, !11, i64 0}
!15 = !{!16, !17, i64 0}
!16 = !{!"_ZTS12kiss_fft_cpx", !17, i64 0, !17, i64 4}
!17 = !{!"float", !7, i64 0}
!18 = !{!10, !6, i64 16}
!19 = !{!16, !17, i64 4}
!20 = !{i64 0, i64 4, !21, i64 4, i64 4, !21}
!21 = !{!17, !17, i64 0}
!22 = !{!10, !6, i64 24}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


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

%struct.kiss_fft_cpx = type { float, float }

declare void @_Z8kiss_fftPKvPK12kiss_fft_cpxPS1_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_Z10kiss_fftriPKvPK12kiss_fft_cpxPf(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr noundef %2) local_unnamed_addr #1 {
  %4 = getelementptr inbounds i8, ptr %0, i64 8
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %6 = load i32, ptr %5, align 8, !tbaa !11
  %7 = load float, ptr %1, align 4, !tbaa !13
  %8 = sext i32 %6 to i64
  %9 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %1, i64 %8
  %10 = load float, ptr %9, align 4, !tbaa !13
  %11 = fadd float %7, %10
  %12 = getelementptr inbounds i8, ptr %0, i64 16
  %13 = load ptr, ptr %12, align 8, !tbaa !16
  store float %11, ptr %13, align 4, !tbaa !13
  %14 = load float, ptr %1, align 4, !tbaa !13
  %15 = load float, ptr %9, align 4, !tbaa !13
  %16 = fsub float %14, %15
  %17 = getelementptr inbounds i8, ptr %13, i64 4
  store float %16, ptr %17, align 4, !tbaa !17
  %.not62 = icmp slt i32 %6, 2
  br i1 %.not62, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %3
  %18 = lshr i32 %6, 1
  %19 = getelementptr inbounds i8, ptr %0, i64 24
  %20 = load ptr, ptr %19, align 8, !tbaa !18
  %21 = add nuw nsw i32 %18, 1
  %wide.trip.count = zext nneg i32 %21 to i64
  br label %22

22:                                               ; preds = %.lr.ph, %22
  %indvars.iv = phi i64 [ 1, %.lr.ph ], [ %indvars.iv.next, %22 ]
  %23 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %1, i64 %indvars.iv
  %24 = sub nsw i64 %8, %indvars.iv
  %25 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %1, i64 %24
  %26 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %20, i64 %indvars.iv
  %27 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %13, i64 %indvars.iv
  %28 = load <2 x float>, ptr %23, align 4, !tbaa !19
  %29 = load <2 x float>, ptr %25, align 4, !tbaa !19
  %30 = fadd <2 x float> %28, %29
  %31 = fsub <2 x float> %28, %29
  %32 = shufflevector <2 x float> %30, <2 x float> %31, <2 x i32> <i32 0, i32 3>
  %33 = fsub <2 x float> %28, %29
  %34 = fadd <2 x float> %28, %29
  %35 = load <2 x float>, ptr %26, align 4, !tbaa !19
  %36 = shufflevector <2 x float> %34, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %37 = fneg <2 x float> %34
  %38 = shufflevector <2 x float> %36, <2 x float> %37, <2 x i32> <i32 0, i32 3>
  %39 = fmul <2 x float> %35, %38
  %40 = shufflevector <2 x float> %39, <2 x float> poison, <2 x i32> <i32 1, i32 0>
  %41 = shufflevector <2 x float> %33, <2 x float> poison, <2 x i32> zeroinitializer
  %42 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %41, <2 x float> %35, <2 x float> %40)
  %43 = fadd <2 x float> %32, %42
  store <2 x float> %43, ptr %27, align 4, !tbaa !19
  %44 = fsub <2 x float> %32, %42
  %45 = extractelement <2 x float> %44, i64 0
  %46 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %13, i64 %24
  store float %45, ptr %46, align 4, !tbaa !13
  %47 = fsub <2 x float> %32, %42
  %48 = extractelement <2 x float> %47, i64 1
  %49 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %13, i64 %24, i32 1
  %50 = fneg float %48
  store float %50, ptr %49, align 4, !tbaa !17
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %22, !llvm.loop !20

._crit_edge:                                      ; preds = %22, %3
  tail call void @_Z8kiss_fftPKvPK12kiss_fft_cpxPS1_(ptr noundef nonnull %5, ptr noundef nonnull %13, ptr noundef %2)
  ret void
}

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

attributes #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 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) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 8}
!6 = !{!"_ZTS15kiss_fftr_state", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !7, i64 0}
!12 = !{!"_ZTS14kiss_fft_state", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTS12kiss_fft_cpx", !15, i64 0, !15, i64 4}
!15 = !{!"float", !8, i64 0}
!16 = !{!6, !10, i64 16}
!17 = !{!14, !15, i64 4}
!18 = !{!6, !10, i64 24}
!19 = !{!15, !15, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass