; LLVM IR from kdrag0n/fxdsp :: external/kissfft (kiss_fftnd)

; 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_fftnd_state = type { i32, i32, ptr, ptr, ptr }

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [212 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @kiss_fftnd_alloc(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4) #0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  %19 = alloca i64, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store i32 %2, ptr %9, align 4, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store ptr null, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 1, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  store i64 32, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  store ptr null, ptr %16, align 8, !tbaa !5
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %20

20:                                               ; preds = %42, %5
  %21 = load i32, ptr %13, align 4, !tbaa !9
  %22 = load i32, ptr %8, align 4, !tbaa !9
  %23 = icmp slt i32 %21, %22
  br i1 %23, label %24, label %45

24:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  store i64 0, ptr %17, align 8, !tbaa !11
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = load i32, ptr %13, align 4, !tbaa !9
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds i32, ptr %25, i64 %27
  %29 = load i32, ptr %28, align 4, !tbaa !9
  %30 = load i32, ptr %9, align 4, !tbaa !9
  %31 = call ptr @kiss_fft_alloc(i32 noundef %29, i32 noundef %30, ptr noundef null, ptr noundef %17)
  %32 = load i64, ptr %17, align 8, !tbaa !11
  %33 = load i64, ptr %15, align 8, !tbaa !11
  %34 = add i64 %33, %32
  store i64 %34, ptr %15, align 8, !tbaa !11
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = load i32, ptr %13, align 4, !tbaa !9
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds i32, ptr %35, i64 %37
  %39 = load i32, ptr %38, align 4, !tbaa !9
  %40 = load i32, ptr %14, align 4, !tbaa !9
  %41 = mul nsw i32 %40, %39
  store i32 %41, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %42

42:                                               ; preds = %24
  %43 = load i32, ptr %13, align 4, !tbaa !9
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %13, align 4, !tbaa !9
  br label %20, !llvm.loop !13

45:                                               ; preds = %20
  %46 = load i32, ptr %8, align 4, !tbaa !9
  %47 = sext i32 %46 to i64
  %48 = mul i64 4, %47
  %49 = load i64, ptr %15, align 8, !tbaa !11
  %50 = add i64 %49, %48
  store i64 %50, ptr %15, align 8, !tbaa !11
  %51 = load i32, ptr %8, align 4, !tbaa !9
  %52 = sext i32 %51 to i64
  %53 = mul i64 8, %52
  %54 = load i64, ptr %15, align 8, !tbaa !11
  %55 = add i64 %54, %53
  store i64 %55, ptr %15, align 8, !tbaa !11
  %56 = load i32, ptr %14, align 4, !tbaa !9
  %57 = sext i32 %56 to i64
  %58 = mul i64 8, %57
  %59 = load i64, ptr %15, align 8, !tbaa !11
  %60 = add i64 %59, %58
  store i64 %60, ptr %15, align 8, !tbaa !11
  %61 = load ptr, ptr %11, align 8, !tbaa !5
  %62 = icmp eq ptr %61, null
  br i1 %62, label %63, label %66

63:                                               ; preds = %45
  %64 = load i64, ptr %15, align 8, !tbaa !11
  %65 = call noalias ptr @malloc(i64 noundef %64) #6
  store ptr %65, ptr %16, align 8, !tbaa !5
  br label %76

66:                                               ; preds = %45
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = load i64, ptr %67, align 8, !tbaa !11
  %69 = load i64, ptr %15, align 8, !tbaa !11
  %70 = icmp uge i64 %68, %69
  br i1 %70, label %71, label %73

71:                                               ; preds = %66
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %72, ptr %16, align 8, !tbaa !5
  br label %73

73:                                               ; preds = %71, %66
  %74 = load i64, ptr %15, align 8, !tbaa !11
  %75 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 %74, ptr %75, align 8, !tbaa !11
  br label %76

76:                                               ; preds = %73, %63
  %77 = load ptr, ptr %16, align 8, !tbaa !5
  %78 = icmp ne ptr %77, null
  br i1 %78, label %80, label %79

79:                                               ; preds = %76
  store ptr null, ptr %6, align 8
  store i32 1, ptr %18, align 4
  br label %176

80:                                               ; preds = %76
  %81 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %81, ptr %12, align 8, !tbaa !5
  %82 = load i32, ptr %14, align 4, !tbaa !9
  %83 = load ptr, ptr %12, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.kiss_fftnd_state, ptr %83, i32 0, i32 0
  store i32 %82, ptr %84, align 8, !tbaa !15
  %85 = load i32, ptr %8, align 4, !tbaa !9
  %86 = load ptr, ptr %12, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.kiss_fftnd_state, ptr %86, i32 0, i32 1
  store i32 %85, ptr %87, align 4, !tbaa !17
  %88 = load ptr, ptr %16, align 8, !tbaa !5
  %89 = getelementptr inbounds i8, ptr %88, i64 32
  store ptr %89, ptr %16, align 8, !tbaa !5
  %90 = load ptr, ptr %16, align 8, !tbaa !5
  %91 = load ptr, ptr %12, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.kiss_fftnd_state, ptr %91, i32 0, i32 3
  store ptr %90, ptr %92, align 8, !tbaa !18
  %93 = load i32, ptr %8, align 4, !tbaa !9
  %94 = sext i32 %93 to i64
  %95 = mul i64 8, %94
  %96 = load ptr, ptr %16, align 8, !tbaa !5
  %97 = getelementptr inbounds i8, ptr %96, i64 %95
  store ptr %97, ptr %16, align 8, !tbaa !5
  %98 = load ptr, ptr %16, align 8, !tbaa !5
  %99 = load ptr, ptr %12, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.kiss_fftnd_state, ptr %99, i32 0, i32 2
  store ptr %98, ptr %100, align 8, !tbaa !19
  %101 = load i32, ptr %8, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = mul i64 4, %102
  %104 = load ptr, ptr %16, align 8, !tbaa !5
  %105 = getelementptr inbounds i8, ptr %104, i64 %103
  store ptr %105, ptr %16, align 8, !tbaa !5
  %106 = load ptr, ptr %16, align 8, !tbaa !5
  %107 = load ptr, ptr %12, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.kiss_fftnd_state, ptr %107, i32 0, i32 4
  store ptr %106, ptr %108, align 8, !tbaa !20
  %109 = load i32, ptr %14, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = mul i64 8, %110
  %112 = load ptr, ptr %16, align 8, !tbaa !5
  %113 = getelementptr inbounds i8, ptr %112, i64 %111
  store ptr %113, ptr %16, align 8, !tbaa !5
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %114

114:                                              ; preds = %158, %80
  %115 = load i32, ptr %13, align 4, !tbaa !9
  %116 = load i32, ptr %8, align 4, !tbaa !9
  %117 = icmp slt i32 %115, %116
  br i1 %117, label %118, label %161

118:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %119 = load ptr, ptr %7, align 8, !tbaa !5
  %120 = load i32, ptr %13, align 4, !tbaa !9
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds i32, ptr %119, i64 %121
  %123 = load i32, ptr %122, align 4, !tbaa !9
  %124 = load ptr, ptr %12, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.kiss_fftnd_state, ptr %124, i32 0, i32 2
  %126 = load ptr, ptr %125, align 8, !tbaa !19
  %127 = load i32, ptr %13, align 4, !tbaa !9
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds i32, ptr %126, i64 %128
  store i32 %123, ptr %129, align 4, !tbaa !9
  %130 = load ptr, ptr %12, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.kiss_fftnd_state, ptr %130, i32 0, i32 2
  %132 = load ptr, ptr %131, align 8, !tbaa !19
  %133 = load i32, ptr %13, align 4, !tbaa !9
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds i32, ptr %132, i64 %134
  %136 = load i32, ptr %135, align 4, !tbaa !9
  %137 = load i32, ptr %9, align 4, !tbaa !9
  %138 = call ptr @kiss_fft_alloc(i32 noundef %136, i32 noundef %137, ptr noundef null, ptr noundef %19)
  %139 = load ptr, ptr %12, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.kiss_fftnd_state, ptr %139, i32 0, i32 2
  %141 = load ptr, ptr %140, align 8, !tbaa !19
  %142 = load i32, ptr %13, align 4, !tbaa !9
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds i32, ptr %141, i64 %143
  %145 = load i32, ptr %144, align 4, !tbaa !9
  %146 = load i32, ptr %9, align 4, !tbaa !9
  %147 = load ptr, ptr %16, align 8, !tbaa !5
  %148 = call ptr @kiss_fft_alloc(i32 noundef %145, i32 noundef %146, ptr noundef %147, ptr noundef %19)
  %149 = load ptr, ptr %12, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.kiss_fftnd_state, ptr %149, i32 0, i32 3
  %151 = load ptr, ptr %150, align 8, !tbaa !18
  %152 = load i32, ptr %13, align 4, !tbaa !9
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds ptr, ptr %151, i64 %153
  store ptr %148, ptr %154, align 8, !tbaa !5
  %155 = load i64, ptr %19, align 8, !tbaa !11
  %156 = load ptr, ptr %16, align 8, !tbaa !5
  %157 = getelementptr inbounds i8, ptr %156, i64 %155
  store ptr %157, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %158

158:                                              ; preds = %118
  %159 = load i32, ptr %13, align 4, !tbaa !9
  %160 = add nsw i32 %159, 1
  store i32 %160, ptr %13, align 4, !tbaa !9
  br label %114, !llvm.loop !21

161:                                              ; preds = %114
  %162 = load ptr, ptr %16, align 8, !tbaa !5
  %163 = load ptr, ptr %12, align 8, !tbaa !5
  %164 = ptrtoint ptr %162 to i64
  %165 = ptrtoint ptr %163 to i64
  %166 = sub i64 %164, %165
  %167 = load i64, ptr %15, align 8, !tbaa !11
  %168 = trunc i64 %167 to i32
  %169 = sext i32 %168 to i64
  %170 = icmp ne i64 %166, %169
  br i1 %170, label %171, label %174

171:                                              ; preds = %161
  %172 = load ptr, ptr @stderr, align 8, !tbaa !5
  %173 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %172, ptr noundef @.str) #5
  br label %174

174:                                              ; preds = %171, %161
  %175 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %175, ptr %6, align 8
  store i32 1, ptr %18, align 4
  br label %176

176:                                              ; preds = %174, %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  %177 = load ptr, ptr %6, align 8
  ret ptr %177
}

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

declare ptr @kiss_fft_alloc(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #2

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #3

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #4

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { nounwind 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 = { nounwind "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 }
attributes #6 = { nounwind 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !10, i64 0}
!16 = !{!"kiss_fftnd_state", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16, !6, i64 24}
!17 = !{!16, !10, i64 4}
!18 = !{!16, !6, i64 16}
!19 = !{!16, !6, i64 8}
!20 = !{!16, !6, i64 24}
!21 = distinct !{!21, !14}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [212 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef ptr @kiss_fftnd_alloc(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #0 {
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = icmp sgt i32 %1, 0
  br i1 %8, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %5
  %wide.trip.count = zext nneg i32 %1 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %.06376 = phi i64 [ 32, %.lr.ph.preheader ], [ %13, %.lr.ph ]
  %.06475 = phi i32 [ 1, %.lr.ph.preheader ], [ %15, %.lr.ph ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  store i64 0, ptr %6, align 8, !tbaa !5
  %9 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv
  %10 = load i32, ptr %9, align 4, !tbaa !9
  %11 = call ptr @kiss_fft_alloc(i32 noundef %10, i32 noundef %2, ptr noundef null, ptr noundef nonnull %6) #5
  %12 = load i64, ptr %6, align 8, !tbaa !5
  %13 = add i64 %12, %.06376
  %14 = load i32, ptr %9, align 4, !tbaa !9
  %15 = mul nsw i32 %14, %.06475
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  %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 %.lr.ph, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph, %5
  %.064.lcssa = phi i32 [ 1, %5 ], [ %15, %.lr.ph ]
  %.063.lcssa = phi i64 [ 32, %5 ], [ %13, %.lr.ph ]
  %16 = sext i32 %1 to i64
  %17 = shl nsw i64 %16, 2
  %18 = shl nsw i64 %16, 3
  %19 = sext i32 %.064.lcssa to i64
  %20 = shl nsw i64 %19, 3
  %21 = mul nsw i64 %16, 12
  %22 = add i64 %21, %.063.lcssa
  %23 = add i64 %22, %20
  %24 = icmp eq ptr %4, null
  br i1 %24, label %25, label %27

25:                                               ; preds = %._crit_edge
  %26 = call noalias ptr @malloc(i64 noundef %23) #6
  br label %29

27:                                               ; preds = %._crit_edge
  %28 = load i64, ptr %4, align 8, !tbaa !5
  %.not = icmp ult i64 %28, %23
  store i64 %23, ptr %4, align 8, !tbaa !5
  br i1 %.not, label %.thread, label %29

29:                                               ; preds = %27, %25
  %.1 = phi ptr [ %26, %25 ], [ %3, %27 ]
  %.not70 = icmp eq ptr %.1, null
  br i1 %.not70, label %.thread, label %30

30:                                               ; preds = %29
  store i32 %.064.lcssa, ptr %.1, align 8, !tbaa !13
  %31 = getelementptr inbounds i8, ptr %.1, i64 4
  store i32 %1, ptr %31, align 4, !tbaa !16
  %32 = getelementptr inbounds i8, ptr %.1, i64 32
  %33 = getelementptr inbounds i8, ptr %.1, i64 16
  store ptr %32, ptr %33, align 8, !tbaa !17
  %34 = getelementptr inbounds i8, ptr %32, i64 %18
  %35 = getelementptr inbounds i8, ptr %.1, i64 8
  store ptr %34, ptr %35, align 8, !tbaa !18
  %36 = getelementptr inbounds i8, ptr %34, i64 %17
  %37 = getelementptr inbounds i8, ptr %.1, i64 24
  store ptr %36, ptr %37, align 8, !tbaa !19
  %38 = getelementptr inbounds i8, ptr %36, i64 %20
  br i1 %8, label %.lr.ph81.preheader, label %._crit_edge82

.lr.ph81.preheader:                               ; preds = %30
  %wide.trip.count90 = zext nneg i32 %1 to i64
  br label %.lr.ph81

.lr.ph81:                                         ; preds = %.lr.ph81.preheader, %.lr.ph81
  %indvars.iv87 = phi i64 [ 0, %.lr.ph81.preheader ], [ %indvars.iv.next88, %.lr.ph81 ]
  %.279 = phi ptr [ %38, %.lr.ph81.preheader ], [ %51, %.lr.ph81 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %39 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv87
  %40 = load i32, ptr %39, align 4, !tbaa !9
  %41 = load ptr, ptr %35, align 8, !tbaa !18
  %42 = getelementptr inbounds i32, ptr %41, i64 %indvars.iv87
  store i32 %40, ptr %42, align 4, !tbaa !9
  %43 = call ptr @kiss_fft_alloc(i32 noundef %40, i32 noundef %2, ptr noundef null, ptr noundef nonnull %7) #5
  %44 = load ptr, ptr %35, align 8, !tbaa !18
  %45 = getelementptr inbounds i32, ptr %44, i64 %indvars.iv87
  %46 = load i32, ptr %45, align 4, !tbaa !9
  %47 = call ptr @kiss_fft_alloc(i32 noundef %46, i32 noundef %2, ptr noundef %.279, ptr noundef nonnull %7) #5
  %48 = load ptr, ptr %33, align 8, !tbaa !17
  %49 = getelementptr inbounds ptr, ptr %48, i64 %indvars.iv87
  store ptr %47, ptr %49, align 8, !tbaa !20
  %50 = load i64, ptr %7, align 8, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %.279, i64 %50
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  %indvars.iv.next88 = add nuw nsw i64 %indvars.iv87, 1
  %exitcond91.not = icmp eq i64 %indvars.iv.next88, %wide.trip.count90
  br i1 %exitcond91.not, label %._crit_edge82, label %.lr.ph81, !llvm.loop !21

._crit_edge82:                                    ; preds = %.lr.ph81, %30
  %.2.lcssa = phi ptr [ %38, %30 ], [ %51, %.lr.ph81 ]
  %52 = ptrtoint ptr %.2.lcssa to i64
  %53 = ptrtoint ptr %.1 to i64
  %54 = sub i64 %52, %53
  %sext = shl i64 %23, 32
  %55 = ashr exact i64 %sext, 32
  %.not71 = icmp eq i64 %54, %55
  br i1 %.not71, label %.thread, label %56

56:                                               ; preds = %._crit_edge82
  %57 = load ptr, ptr @stderr, align 8, !tbaa !20
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef nonnull @.str) #7
  br label %.thread

.thread:                                          ; preds = %27, %._crit_edge82, %56, %29
  %.067 = phi ptr [ null, %29 ], [ %.1, %56 ], [ %.1, %._crit_edge82 ], [ null, %27 ]
  ret ptr %.067
}

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

declare ptr @kiss_fft_alloc(i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #4

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind 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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { nofree nounwind "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 }
attributes #6 = { nounwind allocsize(0) }
attributes #7 = { cold 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !10, i64 0}
!14 = !{!"kiss_fftnd_state", !10, i64 0, !10, i64 4, !15, i64 8, !15, i64 16, !15, i64 24}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!14, !10, i64 4}
!17 = !{!14, !15, i64 16}
!18 = !{!14, !15, i64 8}
!19 = !{!14, !15, i64 24}
!20 = !{!15, !15, i64 0}
!21 = distinct !{!21, !12}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass