; LLVM IR from AmplitudeAudio/sdk :: src/Utils/pffft (pffft_double)

; 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.m256d = type { [2 x <2 x double>] }
%struct.PFFFTD_Setup = type { i32, i32, [15 x i32], i32, ptr, ptr, ptr }

@.str.2 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [38 x i8], align 1
@__PRETTY_FUNCTION__._Z25pffftd_transform_internalP12PFFFTD_SetupPKdPdP5m256d17pffft_direction_ti = external hidden unnamed_addr constant [105 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [20 x i8], align 1

; 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 uwtable
declare dso_local void @pffftd_zreorder(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <2 x double> @_ZL21mm256_castpd256_pd1285m256d(ptr noundef byval(%struct.m256d) align 16) #3

; 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) #4

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <2 x double> @_ZL20mm256_extractf128_pd5m256di(ptr noundef byval(%struct.m256d) align 16, i32 noundef) #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden void @_ZL21mm256_insertf128_pd_15m256dDv2_d(ptr dead_on_unwind noalias writable sret(%struct.m256d) align 16, ptr noundef byval(%struct.m256d) align 16, <2 x double> noundef) #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden void @_ZL21mm256_castpd128_pd256Dv2_d(ptr dead_on_unwind noalias writable sret(%struct.m256d) align 16, <2 x double> noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z20pffftd_cplx_finalizeiPK5m256dPS_S1_(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z22pffftd_cplx_preprocessiPK5m256dPS_S1_(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #5

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

60:                                               ; preds = %6
  %61 = load i32, ptr %14, align 4, !tbaa !11
  %62 = mul nsw i32 %61, 2
  br label %64

63:                                               ; preds = %6
  br label %64

64:                                               ; preds = %63, %60
  %65 = phi i32 [ %62, %60 ], [ 1, %63 ]
  store i32 %65, ptr %16, align 4, !tbaa !11
  %66 = load i32, ptr %16, align 4, !tbaa !11
  %67 = zext i32 %66 to i64
  %68 = call ptr @llvm.stacksave.p0()
  store ptr %68, ptr %17, align 8
  %69 = alloca %struct.m256d, i64 %67, align 16
  store i64 %67, ptr %18, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %70, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %71 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %71, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #8
  %72 = load ptr, ptr %20, align 8, !tbaa !5
  store ptr %72, ptr %21, align 8, !tbaa !5
  %73 = getelementptr inbounds ptr, ptr %21, i64 1
  %74 = load ptr, ptr %10, align 8, !tbaa !5
  %75 = icmp ne ptr %74, null
  br i1 %75, label %76, label %78

76:                                               ; preds = %64
  %77 = load ptr, ptr %10, align 8, !tbaa !5
  br label %79

78:                                               ; preds = %64
  br label %79

79:                                               ; preds = %78, %76
  %80 = phi ptr [ %77, %76 ], [ %69, %78 ]
  store ptr %80, ptr %73, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  %81 = load i32, ptr %15, align 4, !tbaa !11
  %82 = load i32, ptr %12, align 4, !tbaa !11
  %83 = xor i32 %81, %82
  %84 = icmp ne i32 %83, 0
  %85 = zext i1 %84 to i64
  %86 = select i1 %84, i32 1, i32 0
  store i32 %86, ptr %22, align 4, !tbaa !11
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  %88 = ptrtoint ptr %87 to i64
  %89 = and i64 %88, 31
  %90 = icmp eq i64 %89, 0
  br i1 %90, label %91, label %96

91:                                               ; preds = %79
  %92 = load ptr, ptr %9, align 8, !tbaa !5
  %93 = ptrtoint ptr %92 to i64
  %94 = and i64 %93, 31
  %95 = icmp eq i64 %94, 0
  br label %96

96:                                               ; preds = %91, %79
  %97 = phi i1 [ false, %79 ], [ %95, %91 ]
  br i1 %97, label %98, label %99

98:                                               ; preds = %96
  br label %101

99:                                               ; preds = %96
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.2, i32 noundef 1740, ptr noundef @__PRETTY_FUNCTION__._Z25pffftd_transform_internalP12PFFFTD_SetupPKdPdP5m256d17pffft_direction_ti) #9
  unreachable

100:                                              ; No predecessors!
  br label %101

101:                                              ; preds = %100, %98
  %102 = load i32, ptr %11, align 4, !tbaa !9
  %103 = icmp eq i32 %102, 0
  br i1 %103, label %104, label %278

104:                                              ; preds = %101
  %105 = load i32, ptr %22, align 4, !tbaa !11
  %106 = icmp ne i32 %105, 0
  %107 = xor i1 %106, true
  %108 = zext i1 %107 to i32
  store i32 %108, ptr %22, align 4, !tbaa !11
  %109 = load ptr, ptr %7, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.PFFFTD_Setup, ptr %109, i32 0, i32 3
  %111 = load i32, ptr %110, align 4, !tbaa !16
  %112 = icmp eq i32 %111, 0
  br i1 %112, label %113, label %153

113:                                              ; preds = %104
  %114 = load i32, ptr %14, align 4, !tbaa !11
  %115 = mul nsw i32 %114, 2
  %116 = load ptr, ptr %19, align 8, !tbaa !5
  %117 = load i32, ptr %22, align 4, !tbaa !11
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [2 x ptr], ptr %21, i64 0, i64 %118
  %120 = load ptr, ptr %119, align 8, !tbaa !5
  %121 = load i32, ptr %22, align 4, !tbaa !11
  %122 = icmp ne i32 %121, 0
  %123 = xor i1 %122, true
  %124 = zext i1 %123 to i64
  %125 = getelementptr inbounds [2 x ptr], ptr %21, i64 0, i64 %124
  %126 = load ptr, ptr %125, align 8, !tbaa !5
  %127 = load ptr, ptr %7, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.PFFFTD_Setup, ptr %127, i32 0, i32 6
  %129 = load ptr, ptr %128, align 8, !tbaa !17
  %130 = load ptr, ptr %7, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.PFFFTD_Setup, ptr %130, i32 0, i32 2
  %132 = getelementptr inbounds [15 x i32], ptr %131, i64 0, i64 0
  %133 = call noundef ptr @_ZL9rfftf1_psiPK5m256dPS_S2_PKdPKi(i32 noundef %115, ptr noundef %116, ptr noundef %120, ptr noundef %126, ptr noundef %129, ptr noundef %132)
  %134 = getelementptr inbounds [2 x ptr], ptr %21, i64 0, i64 0
  %135 = load ptr, ptr %134, align 16, !tbaa !5
  %136 = icmp eq ptr %133, %135
  %137 = zext i1 %136 to i64
  %138 = select i1 %136, i32 0, i32 1
  store i32 %138, ptr %22, align 4, !tbaa !11
  %139 = load i32, ptr %14, align 4, !tbaa !11
  %140 = load i32, ptr %22, align 4, !tbaa !11
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [2 x ptr], ptr %21, i64 0, i64 %141
  %143 = load ptr, ptr %142, align 8, !tbaa !5
  %144 = load i32, ptr %22, align 4, !tbaa !11
  %145 = icmp ne i32 %144, 0
  %146 = xor i1 %145, true
  %147 = zext i1 %146 to i64
  %148 = getelementptr inbounds [2 x ptr], ptr %21, i64 0, i64 %147
  %149 = load ptr, ptr %148, align 8, !tbaa !5
  %150 = load ptr, ptr %7, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.PFFFTD_Setup, ptr %150, i32 0, i32 5
  %152 = load ptr, ptr %151, align 8, !tbaa !18
  call void @_ZL20pffftd_real_finalizeiPK5m256dPS_S1_(i32 noundef %139, ptr noundef %143, ptr noundef %149, ptr noundef %152)
  br label %257

153:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %154 = load i32, ptr %22, align 4, !tbaa !11
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [2 x ptr], ptr %21, i64 0, i64 %155
  %157 = load ptr, ptr %156, align 8, !tbaa !5
  store ptr %157, ptr %23, align 8, !tbaa !5
  store i32 0, ptr %13, align 4, !tbaa !11
  br label %158

158:                                              ; preds = %212, %153
  %159 = load i32, ptr %13, align 4, !tbaa !11
  %160 = load i32, ptr %14, align 4, !tbaa !11
  %161 = icmp slt i32 %159, %160
  br i1 %161, label %162, label %215

162:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #8
  %163 = load ptr, ptr %19, align 8, !tbaa !5
  %164 = load i32, ptr %13, align 4, !tbaa !11
  %165 = mul nsw i32 %164, 2
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds %struct.m256d, ptr %163, i64 %166
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %25, ptr align 16 %167, i64 32, i1 false), !tbaa.struct !19
  %168 = call noundef <2 x double> @_ZL21mm256_castpd256_pd1285m256d(ptr noundef byval(%struct.m256d) align 16 %25)
  store <2 x double> %168, ptr %24, align 16, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #8
  %169 = load ptr, ptr %19, align 8, !tbaa !5
  %170 = load i32, ptr %13, align 4, !tbaa !11
  %171 = mul nsw i32 %170, 2
  %172 = add nsw i32 %171, 1
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds %struct.m256d, ptr %169, i64 %173
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %27, ptr align 16 %174, i64 32, i1 false), !tbaa.struct !19
  %175 = call noundef <2 x double> @_ZL21mm256_castpd256_pd1285m256d(ptr noundef byval(%struct.m256d) align 16 %27)
  store <2 x double> %175, ptr %26, align 16, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #8
  %176 = load ptr, ptr %19, align 8, !tbaa !5
  %177 = load i32, ptr %13, align 4, !tbaa !11
  %178 = mul nsw i32 %177, 2
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds %struct.m256d, ptr %176, i64 %179
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %29, ptr align 16 %180, i64 32, i1 false), !tbaa.struct !19
  %181 = call noundef <2 x double> @_ZL20mm256_extractf128_pd5m256di(ptr noundef byval(%struct.m256d) align 16 %29, i32 noundef 1)
  store <2 x double> %181, ptr %28, align 16, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #8
  %182 = load ptr, ptr %19, align 8, !tbaa !5
  %183 = load i32, ptr %13, align 4, !tbaa !11
  %184 = mul nsw i32 %183, 2
  %185 = add nsw i32 %184, 1
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds %struct.m256d, ptr %182, i64 %186
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %31, ptr align 16 %187, i64 32, i1 false), !tbaa.struct !19
  %188 = call noundef <2 x double> @_ZL20mm256_extractf128_pd5m256di(ptr noundef byval(%struct.m256d) align 16 %31, i32 noundef 1)
  store <2 x double> %188, ptr %30, align 16, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 32, ptr %32) #8
  %189 = load <2 x double>, ptr %24, align 16, !tbaa !20
  %190 = load <2 x double>, ptr %28, align 16, !tbaa !20
  %191 = shufflevector <2 x double> %189, <2 x double> %190, <2 x i32> <i32 0, i32 2>
  call void @_ZL21mm256_castpd128_pd256Dv2_d(ptr dead_on_unwind writable sret(%struct.m256d) align 16 %33, <2 x double> noundef %191)
  %192 = load <2 x double>, ptr %26, align 16, !tbaa !20
  %193 = load <2 x double>, ptr %30, align 16, !tbaa !20
  %194 = shufflevector <2 x double> %192, <2 x double> %193, <2 x i32> <i32 0, i32 2>
  call void @_ZL21mm256_insertf128_pd_15m256dDv2_d(ptr dead_on_unwind writable sret(%struct.m256d) align 16 %32, ptr noundef byval(%struct.m256d) align 16 %33, <2 x double> noundef %194)
  call void @llvm.lifetime.start.p0(i64 32, ptr %34) #8
  %195 = load <2 x double>, ptr %24, align 16, !tbaa !20
  %196 = load <2 x double>, ptr %28, align 16, !tbaa !20
  %197 = shufflevector <2 x double> %195, <2 x double> %196, <2 x i32> <i32 1, i32 3>
  call void @_ZL21mm256_castpd128_pd256Dv2_d(ptr dead_on_unwind writable sret(%struct.m256d) align 16 %35, <2 x double> noundef %197)
  %198 = load <2 x double>, ptr %26, align 16, !tbaa !20
  %199 = load <2 x double>, ptr %30, align 16, !tbaa !20
  %200 = shufflevector <2 x double> %198, <2 x double> %199, <2 x i32> <i32 1, i32 3>
  call void @_ZL21mm256_insertf128_pd_15m256dDv2_d(ptr dead_on_unwind writable sret(%struct.m256d) align 16 %34, ptr noundef byval(%struct.m256d) align 16 %35, <2 x double> noundef %200)
  %201 = load ptr, ptr %23, align 8, !tbaa !5
  %202 = load i32, ptr %13, align 4, !tbaa !11
  %203 = mul nsw i32 %202, 2
  %204 = add nsw i32 %203, 1
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds %struct.m256d, ptr %201, i64 %205
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %206, ptr align 16 %34, i64 32, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 32, ptr %34) #8
  %207 = load ptr, ptr %23, align 8, !tbaa !5
  %208 = load i32, ptr %13, align 4, !tbaa !11
  %209 = mul nsw i32 %208, 2
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds %struct.m256d, ptr %207, i64 %210
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %211, ptr align 16 %32, i64 32, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #8
  br label %212

212:                                              ; preds = %162
  %213 = load i32, ptr %13, align 4, !tbaa !11
  %214 = add nsw i32 %213, 1
  store i32 %214, ptr %13, align 4, !tbaa !11
  br label %158, !llvm.loop !21

215:                                              ; preds = %158
  %216 = load i32, ptr %14, align 4, !tbaa !11
  %217 = load i32, ptr %22, align 4, !tbaa !11
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds [2 x ptr], ptr %21, i64 0, i64 %218
  %220 = load ptr, ptr %219, align 8, !tbaa !5
  %221 = load i32, ptr %22, align 4, !tbaa !11
  %222 = icmp ne i32 %221, 0
  %223 = xor i1 %222, true
  %224 = zext i1 %223 to i64
  %225 = getelementptr inbounds [2 x ptr], ptr %21, i64 0, i64 %224
  %226 = load ptr, ptr %225, align 8, !tbaa !5
  %227 = load i32, ptr %22, align 4, !tbaa !11
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds [2 x ptr], ptr %21, i64 0, i64 %228
  %230 = load ptr, ptr %229, align 8, !tbaa !5
  %231 = load ptr, ptr %7, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.PFFFTD_Setup, ptr %231, i32 0, i32 6
  %233 = load ptr, ptr %232, align 8, !tbaa !17
  %234 = load ptr, ptr %7, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.PFFFTD_Setup, ptr %234, i32 0, i32 2
  %236 = getelementptr inbounds [15 x i32], ptr %235, i64 0, i64 0
  %237 = call noundef ptr @_ZL9cfftf1_psiPK5m256dPS_S2_PKdPKii(i32 noundef %216, ptr noundef %220, ptr noundef %226, ptr noundef %230, ptr noundef %233, ptr noundef %236, i32 noundef -1)
  %238 = getelementptr inbounds [2 x ptr], ptr %21, i64 0, i64 0
  %239 = load ptr, ptr %238, align 16, !tbaa !5
  %240 = icmp eq ptr %237, %239
  %241 = zext i1 %240 to i64
  %242 = select i1 %240, i32 0, i32 1
  store i32 %242, ptr %22, align 4, !tbaa !11
  %243 = load i32, ptr %14, align 4, !tbaa !11
  %244 = load i32, ptr %22, align 4, !tbaa !11
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [2 x ptr], ptr %21, i64 0, i64 %245
  %247 = load ptr, ptr %246, align 8, !tbaa !5
  %248 = load i32, ptr %22, align 4, !tbaa !11
  %249 = icmp ne i32 %248, 0
  %250 = xor i1 %249, true
  %251 = zext i1 %250 to i64
  %252 = getelementptr inbounds [2 x ptr], ptr %21, i64 0, i64 %251
  %253 = load ptr, ptr %252, align 8, !tbaa !5
  %254 = load ptr, ptr %7, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.PFFFTD_Setup, ptr %254, i32 0, i32 5
  %256 = load ptr, ptr %255, align 8, !tbaa !18
  call void @_Z20pffftd_cplx_finalizeiPK5m256dPS_S1_(i32 noundef %243, ptr noundef %247, ptr noundef %253, ptr noundef %256)
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %257

257:                                              ; preds = %215, %113
  %258 = load i32, ptr %12, align 4, !tbaa !11
  %259 = icmp ne i32 %258, 0
  br i1 %259, label %260, label %272

260:                                              ; preds = %257
  %261 = load ptr, ptr %7, align 8, !tbaa !5
  %262 = load i32, ptr %22, align 4, !tbaa !11
  %263 = icmp ne i32 %262, 0
  %264 = xor i1 %263, true
  %265 = zext i1 %264 to i64
  %266 = getelementptr inbounds [2 x ptr], ptr %21, i64 0, i64 %265
  %267 = load ptr, ptr %266, align 8, !tbaa !5
  %268 = load i32, ptr %22, align 4, !tbaa !11
  %269 = sext i32 %268 to i64
  %270 = getelementptr inbounds [2 x ptr], ptr %21, i64 0, i64 %269
  %271 = load ptr, ptr %270, align 8, !tbaa !5
  call void @pffftd_zreorder(ptr noundef %261, ptr noundef %267, ptr noundef %271, i32 noundef 0)
  br label %277

272:                                              ; preds = %257
  %273 = load i32, ptr %22, align 4, !tbaa !11
  %274 = icmp ne i32 %273, 0
  %275 = xor i1 %274, true
  %276 = zext i1 %275 to i32
  store i32 %276, ptr %22, align 4, !tbaa !11
  br label %277

277:                                              ; preds = %272, %260
  br label %453

278:                                              ; preds = %101
  %279 = load ptr, ptr %19, align 8, !tbaa !5
  %280 = load i32, ptr %22, align 4, !tbaa !11
  %281 = sext i32 %280 to i64
  %282 = getelementptr inbounds [2 x ptr], ptr %21, i64 0, i64 %281
  %283 = load ptr, ptr %282, align 8, !tbaa !5
  %284 = icmp eq ptr %279, %283
  br i1 %284, label %285, label %290

285:                                              ; preds = %278
  %286 = load i32, ptr %22, align 4, !tbaa !11
  %287 = icmp ne i32 %286, 0
  %288 = xor i1 %287, true
  %289 = zext i1 %288 to i32
  store i32 %289, ptr %22, align 4, !tbaa !11
  br label %290

290:                                              ; preds = %285, %278
  %291 = load i32, ptr %12, align 4, !tbaa !11
  %292 = icmp ne i32 %291, 0
  br i1 %292, label %293, label %308

293:                                              ; preds = %290
  %294 = load ptr, ptr %7, align 8, !tbaa !5
  %295 = load ptr, ptr %19, align 8, !tbaa !5
  %296 = load i32, ptr %22, align 4, !tbaa !11
  %297 = sext i32 %296 to i64
  %298 = getelementptr inbounds [2 x ptr], ptr %21, i64 0, i64 %297
  %299 = load ptr, ptr %298, align 8, !tbaa !5
  call void @pffftd_zreorder(ptr noundef %294, ptr noundef %295, ptr noundef %299, i32 noundef 1)
  %300 = load i32, ptr %22, align 4, !tbaa !11
  %301 = sext i32 %300 to i64
  %302 = getelementptr inbounds [2 x ptr], ptr %21, i64 0, i64 %301
  %303 = load ptr, ptr %302, align 8, !tbaa !5
  store ptr %303, ptr %19, align 8, !tbaa !5
  %304 = load i32, ptr %22, align 4, !tbaa !11
  %305 = icmp ne i32 %304, 0
  %306 = xor i1 %305, true
  %307 = zext i1 %306 to i32
  store i32 %307, ptr %22, align 4, !tbaa !11
  br label %308

308:                                              ; preds = %293, %290
  %309 = load ptr, ptr %7, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.PFFFTD_Setup, ptr %309, i32 0, i32 3
  %311 = load i32, ptr %310, align 4, !tbaa !16
  %312 = icmp eq i32 %311, 0
  br i1 %312, label %313, label %345

313:                                              ; preds = %308
  %314 = load i32, ptr %14, align 4, !tbaa !11
  %315 = load ptr, ptr %19, align 8, !tbaa !5
  %316 = load i32, ptr %22, align 4, !tbaa !11
  %317 = sext i32 %316 to i64
  %318 = getelementptr inbounds [2 x ptr], ptr %21, i64 0, i64 %317
  %319 = load ptr, ptr %318, align 8, !tbaa !5
  %320 = load ptr, ptr %7, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct.PFFFTD_Setup, ptr %320, i32 0, i32 5
  %322 = load ptr, ptr %321, align 8, !tbaa !18
  call void @_ZL22pffftd_real_preprocessiPK5m256dPS_S1_(i32 noundef %314, ptr noundef %315, ptr noundef %319, ptr noundef %322)
  %323 = load i32, ptr %14, align 4, !tbaa !11
  %324 = mul nsw i32 %323, 2
  %325 = load i32, ptr %22, align 4, !tbaa !11
  %326 = sext i32 %325 to i64
  %327 = getelementptr inbounds [2 x ptr], ptr %21, i64 0, i64 %326
  %328 = load ptr, ptr %327, align 8, !tbaa !5
  %329 = getelementptr inbounds [2 x ptr], ptr %21, i64 0, i64 0
  %330 = load ptr, ptr %329, align 16, !tbaa !5
  %331 = getelementptr inbounds [2 x ptr], ptr %21, i64 0, i64 1
  %332 = load ptr, ptr %331, align 8, !tbaa !5
  %333 = load ptr, ptr %7, align 8, !tbaa !5
  %334 = getelementptr inbounds %struct.PFFFTD_Setup, ptr %333, i32 0, i32 6
  %335 = load ptr, ptr %334, align 8, !tbaa !17
  %336 = load ptr, ptr %7, align 8, !tbaa !5
  %337 = getelementptr inbounds %struct.PFFFTD_Setup, ptr %336, i32 0, i32 2
  %338 = getelementptr inbounds [15 x i32], ptr %337, i64 0, i64 0
  %339 = call noundef ptr @_ZL9rfftb1_psiPK5m256dPS_S2_PKdPKi(i32 noundef %324, ptr noundef %328, ptr noundef %330, ptr noundef %332, ptr noundef %335, ptr noundef %338)
  %340 = getelementptr inbounds [2 x ptr], ptr %21, i64 0, i64 0
  %341 = load ptr, ptr %340, align 16, !tbaa !5
  %342 = icmp eq ptr %339, %341
  %343 = zext i1 %342 to i64
  %344 = select i1 %342, i32 0, i32 1
  store i32 %344, ptr %22, align 4, !tbaa !11
  br label %452

345:                                              ; preds = %308
  %346 = load i32, ptr %14, align 4, !tbaa !11
  %347 = load ptr, ptr %19, align 8, !tbaa !5
  %348 = load i32, ptr %22, align 4, !tbaa !11
  %349 = sext i32 %348 to i64
  %350 = getelementptr inbounds [2 x ptr], ptr %21, i64 0, i64 %349
  %351 = load ptr, ptr %350, align 8, !tbaa !5
  %352 = load ptr, ptr %7, align 8, !tbaa !5
  %353 = getelementptr inbounds %struct.PFFFTD_Setup, ptr %352, i32 0, i32 5
  %354 = load ptr, ptr %353, align 8, !tbaa !18
  call void @_Z22pffftd_cplx_preprocessiPK5m256dPS_S1_(i32 noundef %346, ptr noundef %347, ptr noundef %351, ptr noundef %354)
  %355 = load i32, ptr %14, align 4, !tbaa !11
  %356 = load i32, ptr %22, align 4, !tbaa !11
  %357 = sext i32 %356 to i64
  %358 = getelementptr inbounds [2 x ptr], ptr %21, i64 0, i64 %357
  %359 = load ptr, ptr %358, align 8, !tbaa !5
  %360 = getelementptr inbounds [2 x ptr], ptr %21, i64 0, i64 0
  %361 = load ptr, ptr %360, align 16, !tbaa !5
  %362 = getelementptr inbounds [2 x ptr], ptr %21, i64 0, i64 1
  %363 = load ptr, ptr %362, align 8, !tbaa !5
  %364 = load ptr, ptr %7, align 8, !tbaa !5
  %365 = getelementptr inbounds %struct.PFFFTD_Setup, ptr %364, i32 0, i32 6
  %366 = load ptr, ptr %365, align 8, !tbaa !17
  %367 = load ptr, ptr %7, align 8, !tbaa !5
  %368 = getelementptr inbounds %struct.PFFFTD_Setup, ptr %367, i32 0, i32 2
  %369 = getelementptr inbounds [15 x i32], ptr %368, i64 0, i64 0
  %370 = call noundef ptr @_ZL9cfftf1_psiPK5m256dPS_S2_PKdPKii(i32 noundef %355, ptr noundef %359, ptr noundef %361, ptr noundef %363, ptr noundef %366, ptr noundef %369, i32 noundef 1)
  %371 = getelementptr inbounds [2 x ptr], ptr %21, i64 0, i64 0
  %372 = load ptr, ptr %371, align 16, !tbaa !5
  %373 = icmp eq ptr %370, %372
  %374 = zext i1 %373 to i64
  %375 = select i1 %373, i32 0, i32 1
  store i32 %375, ptr %22, align 4, !tbaa !11
  store i32 0, ptr %13, align 4, !tbaa !11
  br label %376

376:                                              ; preds = %448, %345
  %377 = load i32, ptr %13, align 4, !tbaa !11
  %378 = load i32, ptr %14, align 4, !tbaa !11
  %379 = icmp slt i32 %377, %378
  br i1 %379, label %380, label %451

380:                                              ; preds = %376
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #8
  %381 = load i32, ptr %22, align 4, !tbaa !11
  %382 = sext i32 %381 to i64
  %383 = getelementptr inbounds [2 x ptr], ptr %21, i64 0, i64 %382
  %384 = load ptr, ptr %383, align 8, !tbaa !5
  %385 = load i32, ptr %13, align 4, !tbaa !11
  %386 = mul nsw i32 %385, 2
  %387 = sext i32 %386 to i64
  %388 = getelementptr inbounds %struct.m256d, ptr %384, i64 %387
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %37, ptr align 16 %388, i64 32, i1 false), !tbaa.struct !19
  %389 = call noundef <2 x double> @_ZL21mm256_castpd256_pd1285m256d(ptr noundef byval(%struct.m256d) align 16 %37)
  store <2 x double> %389, ptr %36, align 16, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #8
  %390 = load i32, ptr %22, align 4, !tbaa !11
  %391 = sext i32 %390 to i64
  %392 = getelementptr inbounds [2 x ptr], ptr %21, i64 0, i64 %391
  %393 = load ptr, ptr %392, align 8, !tbaa !5
  %394 = load i32, ptr %13, align 4, !tbaa !11
  %395 = mul nsw i32 %394, 2
  %396 = add nsw i32 %395, 1
  %397 = sext i32 %396 to i64
  %398 = getelementptr inbounds %struct.m256d, ptr %393, i64 %397
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %39, ptr align 16 %398, i64 32, i1 false), !tbaa.struct !19
  %399 = call noundef <2 x double> @_ZL21mm256_castpd256_pd1285m256d(ptr noundef byval(%struct.m256d) align 16 %39)
  store <2 x double> %399, ptr %38, align 16, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #8
  %400 = load i32, ptr %22, align 4, !tbaa !11
  %401 = sext i32 %400 to i64
  %402 = getelementptr inbounds [2 x ptr], ptr %21, i64 0, i64 %401
  %403 = load ptr, ptr %402, align 8, !tbaa !5
  %404 = load i32, ptr %13, align 4, !tbaa !11
  %405 = mul nsw i32 %404, 2
  %406 = sext i32 %405 to i64
  %407 = getelementptr inbounds %struct.m256d, ptr %403, i64 %406
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %41, ptr align 16 %407, i64 32, i1 false), !tbaa.struct !19
  %408 = call noundef <2 x double> @_ZL20mm256_extractf128_pd5m256di(ptr noundef byval(%struct.m256d) align 16 %41, i32 noundef 1)
  store <2 x double> %408, ptr %40, align 16, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 16, ptr %42) #8
  %409 = load i32, ptr %22, align 4, !tbaa !11
  %410 = sext i32 %409 to i64
  %411 = getelementptr inbounds [2 x ptr], ptr %21, i64 0, i64 %410
  %412 = load ptr, ptr %411, align 8, !tbaa !5
  %413 = load i32, ptr %13, align 4, !tbaa !11
  %414 = mul nsw i32 %413, 2
  %415 = add nsw i32 %414, 1
  %416 = sext i32 %415 to i64
  %417 = getelementptr inbounds %struct.m256d, ptr %412, i64 %416
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %43, ptr align 16 %417, i64 32, i1 false), !tbaa.struct !19
  %418 = call noundef <2 x double> @_ZL20mm256_extractf128_pd5m256di(ptr noundef byval(%struct.m256d) align 16 %43, i32 noundef 1)
  store <2 x double> %418, ptr %42, align 16, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 32, ptr %44) #8
  %419 = load <2 x double>, ptr %36, align 16, !tbaa !20
  %420 = load <2 x double>, ptr %38, align 16, !tbaa !20
  %421 = shufflevector <2 x double> %419, <2 x double> %420, <2 x i32> <i32 0, i32 2>
  call void @_ZL21mm256_castpd128_pd256Dv2_d(ptr dead_on_unwind writable sret(%struct.m256d) align 16 %45, <2 x double> noundef %421)
  %422 = load <2 x double>, ptr %36, align 16, !tbaa !20
  %423 = load <2 x double>, ptr %38, align 16, !tbaa !20
  %424 = shufflevector <2 x double> %422, <2 x double> %423, <2 x i32> <i32 1, i32 3>
  call void @_ZL21mm256_insertf128_pd_15m256dDv2_d(ptr dead_on_unwind writable sret(%struct.m256d) align 16 %44, ptr noundef byval(%struct.m256d) align 16 %45, <2 x double> noundef %424)
  call void @llvm.lifetime.start.p0(i64 32, ptr %46) #8
  %425 = load <2 x double>, ptr %40, align 16, !tbaa !20
  %426 = load <2 x double>, ptr %42, align 16, !tbaa !20
  %427 = shufflevector <2 x double> %425, <2 x double> %426, <2 x i32> <i32 0, i32 2>
  call void @_ZL21mm256_castpd128_pd256Dv2_d(ptr dead_on_unwind writable sret(%struct.m256d) align 16 %47, <2 x double> noundef %427)
  %428 = load <2 x double>, ptr %40, align 16, !tbaa !20
  %429 = load <2 x double>, ptr %42, align 16, !tbaa !20
  %430 = shufflevector <2 x double> %428, <2 x double> %429, <2 x i32> <i32 1, i32 3>
  call void @_ZL21mm256_insertf128_pd_15m256dDv2_d(ptr dead_on_unwind writable sret(%struct.m256d) align 16 %46, ptr noundef byval(%struct.m256d) align 16 %47, <2 x double> noundef %430)
  %431 = load i32, ptr %22, align 4, !tbaa !11
  %432 = sext i32 %431 to i64
  %433 = getelementptr inbounds [2 x ptr], ptr %21, i64 0, i64 %432
  %434 = load ptr, ptr %433, align 8, !tbaa !5
  %435 = load i32, ptr %13, align 4, !tbaa !11
  %436 = mul nsw i32 %435, 2
  %437 = add nsw i32 %436, 1
  %438 = sext i32 %437 to i64
  %439 = getelementptr inbounds %struct.m256d, ptr %434, i64 %438
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %439, ptr align 16 %46, i64 32, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 32, ptr %46) #8
  %440 = load i32, ptr %22, align 4, !tbaa !11
  %441 = sext i32 %440 to i64
  %442 = getelementptr inbounds [2 x ptr], ptr %21, i64 0, i64 %441
  %443 = load ptr, ptr %442, align 8, !tbaa !5
  %444 = load i32, ptr %13, align 4, !tbaa !11
  %445 = mul nsw i32 %444, 2
  %446 = sext i32 %445 to i64
  %447 = getelementptr inbounds %struct.m256d, ptr %443, i64 %446
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %447, ptr align 16 %44, i64 32, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 32, ptr %44) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #8
  br label %448

448:                                              ; preds = %380
  %449 = load i32, ptr %13, align 4, !tbaa !11
  %450 = add nsw i32 %449, 1
  store i32 %450, ptr %13, align 4, !tbaa !11
  br label %376, !llvm.loop !23

451:                                              ; preds = %376
  br label %452

452:                                              ; preds = %451, %313
  br label %453

453:                                              ; preds = %452, %277
  %454 = load i32, ptr %22, align 4, !tbaa !11
  %455 = sext i32 %454 to i64
  %456 = getelementptr inbounds [2 x ptr], ptr %21, i64 0, i64 %455
  %457 = load ptr, ptr %456, align 8, !tbaa !5
  %458 = load ptr, ptr %20, align 8, !tbaa !5
  %459 = icmp ne ptr %457, %458
  br i1 %459, label %460, label %509

460:                                              ; preds = %453
  %461 = load ptr, ptr %8, align 8, !tbaa !5
  %462 = load ptr, ptr %9, align 8, !tbaa !5
  %463 = icmp eq ptr %461, %462
  br i1 %463, label %464, label %465

464:                                              ; preds = %460
  br label %467

465:                                              ; preds = %460
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.2, i32 noundef 1799, ptr noundef @__PRETTY_FUNCTION__._Z25pffftd_transform_internalP12PFFFTD_SetupPKdPdP5m256d17pffft_direction_ti) #9
  unreachable

466:                                              ; No predecessors!
  br label %467

467:                                              ; preds = %466, %464
  store i32 0, ptr %13, align 4, !tbaa !11
  br label %468

468:                                              ; preds = %501, %467
  %469 = load i32, ptr %13, align 4, !tbaa !11
  %470 = load i32, ptr %14, align 4, !tbaa !11
  %471 = icmp slt i32 %469, %470
  br i1 %471, label %472, label %504

472:                                              ; preds = %468
  call void @llvm.lifetime.start.p0(i64 32, ptr %48) #8
  %473 = load i32, ptr %22, align 4, !tbaa !11
  %474 = sext i32 %473 to i64
  %475 = getelementptr inbounds [2 x ptr], ptr %21, i64 0, i64 %474
  %476 = load ptr, ptr %475, align 8, !tbaa !5
  %477 = load i32, ptr %13, align 4, !tbaa !11
  %478 = mul nsw i32 2, %477
  %479 = sext i32 %478 to i64
  %480 = getelementptr inbounds %struct.m256d, ptr %476, i64 %479
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %48, ptr align 16 %480, i64 32, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.start.p0(i64 32, ptr %49) #8
  %481 = load i32, ptr %22, align 4, !tbaa !11
  %482 = sext i32 %481 to i64
  %483 = getelementptr inbounds [2 x ptr], ptr %21, i64 0, i64 %482
  %484 = load ptr, ptr %483, align 8, !tbaa !5
  %485 = load i32, ptr %13, align 4, !tbaa !11
  %486 = mul nsw i32 2, %485
  %487 = add nsw i32 %486, 1
  %488 = sext i32 %487 to i64
  %489 = getelementptr inbounds %struct.m256d, ptr %484, i64 %488
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %49, ptr align 16 %489, i64 32, i1 false), !tbaa.struct !19
  %490 = load ptr, ptr %20, align 8, !tbaa !5
  %491 = load i32, ptr %13, align 4, !tbaa !11
  %492 = mul nsw i32 2, %491
  %493 = sext i32 %492 to i64
  %494 = getelementptr inbounds %struct.m256d, ptr %490, i64 %493
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %494, ptr align 16 %48, i64 32, i1 false), !tbaa.struct !19
  %495 = load ptr, ptr %20, align 8, !tbaa !5
  %496 = load i32, ptr %13, align 4, !tbaa !11
  %497 = mul nsw i32 2, %496
  %498 = add nsw i32 %497, 1
  %499 = sext i32 %498 to i64
  %500 = getelementptr inbounds %struct.m256d, ptr %495, i64 %499
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %500, ptr align 16 %49, i64 32, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 32, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %48) #8
  br label %501

501:                                              ; preds = %472
  %502 = load i32, ptr %13, align 4, !tbaa !11
  %503 = add nsw i32 %502, 1
  store i32 %503, ptr %13, align 4, !tbaa !11
  br label %468, !llvm.loop !24

504:                                              ; preds = %468
  %505 = load i32, ptr %22, align 4, !tbaa !11
  %506 = icmp ne i32 %505, 0
  %507 = xor i1 %506, true
  %508 = zext i1 %507 to i32
  store i32 %508, ptr %22, align 4, !tbaa !11
  br label %509

509:                                              ; preds = %504, %453
  %510 = load i32, ptr %22, align 4, !tbaa !11
  %511 = sext i32 %510 to i64
  %512 = getelementptr inbounds [2 x ptr], ptr %21, i64 0, i64 %511
  %513 = load ptr, ptr %512, align 8, !tbaa !5
  %514 = load ptr, ptr %20, align 8, !tbaa !5
  %515 = icmp eq ptr %513, %514
  br i1 %515, label %516, label %517

516:                                              ; preds = %509
  br label %519

517:                                              ; preds = %509
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.2, i32 noundef 1808, ptr noundef @__PRETTY_FUNCTION__._Z25pffftd_transform_internalP12PFFFTD_SetupPKdPdP5m256d17pffft_direction_ti) #9
  unreachable

518:                                              ; No predecessors!
  br label %519

519:                                              ; preds = %518, %516
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  %520 = load ptr, ptr %17, align 8
  call void @llvm.stackrestore.p0(ptr %520)
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #6

; Function Attrs: mustprogress noinline uwtable
declare hidden noundef ptr @_ZL9rfftf1_psiPK5m256dPS_S2_PKdPKi(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #7

; Function Attrs: mustprogress noinline uwtable
declare hidden void @_ZL20pffftd_real_finalizeiPK5m256dPS_S1_(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #7

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL9cfftf1_psiPK5m256dPS_S2_PKdPKii(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #5

; Function Attrs: mustprogress noinline uwtable
declare hidden void @_ZL22pffftd_real_preprocessiPK5m256dPS_S1_(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #7

; Function Attrs: mustprogress noinline uwtable
declare hidden noundef ptr @_ZL9rfftb1_psiPK5m256dPS_S2_PKdPKi(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #7

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #6

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 = { noreturn 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 #3 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { nocallback nofree nosync nounwind willreturn }
attributes #7 = { mustprogress noinline 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 #8 = { nounwind }
attributes #9 = { noreturn 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 = !{!"_ZTS17pffft_direction_t", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 4}
!14 = !{!"_ZTS12PFFFTD_Setup", !12, i64 0, !12, i64 4, !7, i64 8, !15, i64 68, !6, i64 72, !6, i64 80, !6, i64 88}
!15 = !{!"_ZTS17pffft_transform_t", !7, i64 0}
!16 = !{!14, !15, i64 68}
!17 = !{!14, !6, i64 88}
!18 = !{!14, !6, i64 80}
!19 = !{i64 0, i64 32, !20}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = distinct !{!24, !22}


; 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.m256d = type { [2 x <2 x double>] }

@.str.2 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [38 x i8], align 1
@__PRETTY_FUNCTION__._Z25pffftd_transform_internalP12PFFFTD_SetupPKdPdP5m256d17pffft_direction_ti = external hidden unnamed_addr constant [105 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [20 x i8], align 1

; 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 uwtable
declare dso_local void @pffftd_zreorder(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <2 x double> @_ZL21mm256_castpd256_pd1285m256d(ptr noundef byval(%struct.m256d) align 16) local_unnamed_addr #3

; Function Attrs: mustprogress 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) #4

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <2 x double> @_ZL20mm256_extractf128_pd5m256di(ptr noundef byval(%struct.m256d) align 16, i32 noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden void @_ZL21mm256_insertf128_pd_15m256dDv2_d(ptr dead_on_unwind noalias writable sret(%struct.m256d) align 16, ptr noundef byval(%struct.m256d) align 16, <2 x double> noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden void @_ZL21mm256_castpd128_pd256Dv2_d(ptr dead_on_unwind noalias writable sret(%struct.m256d) align 16, <2 x double> noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z20pffftd_cplx_finalizeiPK5m256dPS_S1_(i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z22pffftd_cplx_preprocessiPK5m256dPS_S1_(i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
define dso_local void @_Z25pffftd_transform_internalP12PFFFTD_SetupPKdPdP5m256d17pffft_direction_ti(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #1 {
  %7 = alloca [2 x ptr], align 16
  %8 = alloca %struct.m256d, align 16
  %9 = alloca %struct.m256d, align 16
  %10 = alloca %struct.m256d, align 16
  %11 = alloca %struct.m256d, align 16
  %12 = alloca %struct.m256d, align 16
  %13 = alloca %struct.m256d, align 16
  %14 = alloca %struct.m256d, align 16
  %15 = alloca %struct.m256d, align 16
  %.sroa.0 = alloca [2 x <2 x double>], align 16
  %16 = getelementptr inbounds i8, ptr %0, i64 4
  %17 = load i32, ptr %16, align 4, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %0, i64 8
  %19 = getelementptr inbounds i8, ptr %0, i64 12
  %20 = load i32, ptr %19, align 4, !tbaa !12
  %21 = and i32 %20, 1
  %22 = icmp eq ptr %3, null
  %23 = shl nsw i32 %17, 1
  %24 = zext i32 %23 to i64
  %25 = select i1 %22, i64 %24, i64 1
  %26 = alloca %struct.m256d, i64 %25, align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #8
  store ptr %2, ptr %7, align 16, !tbaa !13
  %27 = getelementptr inbounds i8, ptr %7, i64 8
  %28 = select i1 %22, ptr %26, ptr %3
  store ptr %28, ptr %27, align 8, !tbaa !13
  %29 = icmp ne i32 %21, %5
  %30 = ptrtoint ptr %1 to i64
  %31 = ptrtoint ptr %2 to i64
  %32 = or i64 %31, %30
  %33 = and i64 %32, 31
  %34 = icmp eq i64 %33, 0
  br i1 %34, label %36, label %35

35:                                               ; preds = %6
  call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.2, i32 noundef 1740, ptr noundef nonnull @__PRETTY_FUNCTION__._Z25pffftd_transform_internalP12PFFFTD_SetupPKdPdP5m256d17pffft_direction_ti) #9
  unreachable

36:                                               ; preds = %6
  %37 = icmp eq i32 %4, 0
  br i1 %37, label %38, label %102

38:                                               ; preds = %36
  %39 = xor i1 %29, true
  %40 = getelementptr inbounds i8, ptr %0, i64 68
  %41 = load i32, ptr %40, align 4, !tbaa !14
  %42 = icmp eq i32 %41, 0
  %43 = zext i1 %39 to i64
  %44 = getelementptr inbounds [2 x ptr], ptr %7, i64 0, i64 %43
  %45 = load ptr, ptr %44, align 8, !tbaa !13
  br i1 %42, label %46, label %63

46:                                               ; preds = %38
  %47 = zext i1 %29 to i64
  %48 = getelementptr inbounds [2 x ptr], ptr %7, i64 0, i64 %47
  %49 = load ptr, ptr %48, align 8, !tbaa !13
  %50 = getelementptr inbounds i8, ptr %0, i64 88
  %51 = load ptr, ptr %50, align 8, !tbaa !15
  %52 = call noundef ptr @_ZL9rfftf1_psiPK5m256dPS_S2_PKdPKi(i32 noundef %23, ptr noundef %1, ptr noundef %45, ptr noundef %49, ptr noundef %51, ptr noundef nonnull %18)
  %53 = icmp ne ptr %52, %2
  %54 = zext i1 %53 to i64
  %55 = getelementptr inbounds [2 x ptr], ptr %7, i64 0, i64 %54
  %56 = load ptr, ptr %55, align 8, !tbaa !13
  %57 = xor i1 %53, true
  %58 = zext i1 %57 to i64
  %59 = getelementptr inbounds [2 x ptr], ptr %7, i64 0, i64 %58
  %60 = load ptr, ptr %59, align 8, !tbaa !13
  %61 = getelementptr inbounds i8, ptr %0, i64 80
  %62 = load ptr, ptr %61, align 8, !tbaa !16
  call void @_ZL20pffftd_real_finalizeiPK5m256dPS_S1_(i32 noundef %17, ptr noundef %56, ptr noundef %60, ptr noundef %62)
  br label %95

63:                                               ; preds = %38
  %64 = icmp sgt i32 %17, 0
  br i1 %64, label %.lr.ph145.preheader, label %._crit_edge

.lr.ph145.preheader:                              ; preds = %63
  %wide.trip.count153 = zext nneg i32 %17 to i64
  br label %.lr.ph145

.lr.ph145:                                        ; preds = %.lr.ph145.preheader, %.lr.ph145
  %indvars.iv150 = phi i64 [ 0, %.lr.ph145.preheader ], [ %indvars.iv.next151, %.lr.ph145 ]
  %65 = shl nuw nsw i64 %indvars.iv150, 1
  %66 = getelementptr inbounds %struct.m256d, ptr %1, i64 %65
  %67 = call noundef <2 x double> @_ZL21mm256_castpd256_pd1285m256d(ptr noundef nonnull byval(%struct.m256d) align 16 %66)
  %68 = or disjoint i64 %65, 1
  %69 = getelementptr inbounds %struct.m256d, ptr %1, i64 %68
  %70 = call noundef <2 x double> @_ZL21mm256_castpd256_pd1285m256d(ptr noundef nonnull byval(%struct.m256d) align 16 %69)
  %71 = call noundef <2 x double> @_ZL20mm256_extractf128_pd5m256di(ptr noundef nonnull byval(%struct.m256d) align 16 %66, i32 noundef 1)
  %72 = call noundef <2 x double> @_ZL20mm256_extractf128_pd5m256di(ptr noundef nonnull byval(%struct.m256d) align 16 %69, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #8
  %73 = shufflevector <2 x double> %67, <2 x double> %71, <2 x i32> <i32 0, i32 2>
  call void @_ZL21mm256_castpd128_pd256Dv2_d(ptr dead_on_unwind nonnull writable sret(%struct.m256d) align 16 %9, <2 x double> noundef %73)
  %74 = shufflevector <2 x double> %70, <2 x double> %72, <2 x i32> <i32 0, i32 2>
  call void @_ZL21mm256_insertf128_pd_15m256dDv2_d(ptr dead_on_unwind nonnull writable sret(%struct.m256d) align 16 %8, ptr noundef nonnull byval(%struct.m256d) align 16 %9, <2 x double> noundef %74)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #8
  %75 = shufflevector <2 x double> %67, <2 x double> %71, <2 x i32> <i32 1, i32 3>
  call void @_ZL21mm256_castpd128_pd256Dv2_d(ptr dead_on_unwind nonnull writable sret(%struct.m256d) align 16 %11, <2 x double> noundef %75)
  %76 = shufflevector <2 x double> %70, <2 x double> %72, <2 x i32> <i32 1, i32 3>
  call void @_ZL21mm256_insertf128_pd_15m256dDv2_d(ptr dead_on_unwind nonnull writable sret(%struct.m256d) align 16 %10, ptr noundef nonnull byval(%struct.m256d) align 16 %11, <2 x double> noundef %76)
  %77 = getelementptr inbounds %struct.m256d, ptr %45, i64 %68
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %77, ptr noundef nonnull align 16 dereferenceable(32) %10, i64 32, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #8
  %78 = getelementptr inbounds %struct.m256d, ptr %45, i64 %65
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %78, ptr noundef nonnull align 16 dereferenceable(32) %8, i64 32, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  %indvars.iv.next151 = add nuw nsw i64 %indvars.iv150, 1
  %exitcond154.not = icmp eq i64 %indvars.iv.next151, %wide.trip.count153
  br i1 %exitcond154.not, label %._crit_edge, label %.lr.ph145, !llvm.loop !19

._crit_edge:                                      ; preds = %.lr.ph145, %63
  %79 = zext i1 %29 to i64
  %80 = getelementptr inbounds [2 x ptr], ptr %7, i64 0, i64 %79
  %81 = load ptr, ptr %80, align 8, !tbaa !13
  %82 = getelementptr inbounds i8, ptr %0, i64 88
  %83 = load ptr, ptr %82, align 8, !tbaa !15
  %84 = call noundef ptr @_ZL9cfftf1_psiPK5m256dPS_S2_PKdPKii(i32 noundef %17, ptr noundef %45, ptr noundef %81, ptr noundef %45, ptr noundef %83, ptr noundef nonnull %18, i32 noundef -1)
  %85 = icmp ne ptr %84, %2
  %86 = zext i1 %85 to i64
  %87 = getelementptr inbounds [2 x ptr], ptr %7, i64 0, i64 %86
  %88 = load ptr, ptr %87, align 8, !tbaa !13
  %89 = xor i1 %85, true
  %90 = zext i1 %89 to i64
  %91 = getelementptr inbounds [2 x ptr], ptr %7, i64 0, i64 %90
  %92 = load ptr, ptr %91, align 8, !tbaa !13
  %93 = getelementptr inbounds i8, ptr %0, i64 80
  %94 = load ptr, ptr %93, align 8, !tbaa !16
  call void @_Z20pffftd_cplx_finalizeiPK5m256dPS_S1_(i32 noundef %17, ptr noundef %88, ptr noundef %92, ptr noundef %94)
  br label %95

95:                                               ; preds = %._crit_edge, %46
  %96 = phi ptr [ %56, %46 ], [ %88, %._crit_edge ]
  %.0135.in = phi i1 [ %53, %46 ], [ %85, %._crit_edge ]
  %.not141 = icmp eq i32 %5, 0
  %97 = xor i1 %.0135.in, true
  br i1 %.not141, label %.loopexit, label %98

98:                                               ; preds = %95
  %99 = zext i1 %97 to i64
  %100 = getelementptr inbounds [2 x ptr], ptr %7, i64 0, i64 %99
  %101 = load ptr, ptr %100, align 8, !tbaa !13
  call void @pffftd_zreorder(ptr noundef nonnull %0, ptr noundef %101, ptr noundef %96, i32 noundef 0)
  br label %.loopexit

102:                                              ; preds = %36
  %103 = zext i1 %29 to i64
  %104 = getelementptr inbounds [2 x ptr], ptr %7, i64 0, i64 %103
  %105 = load ptr, ptr %104, align 8, !tbaa !13
  %106 = icmp eq ptr %105, %1
  %spec.select = xor i1 %29, %106
  %.not140 = icmp eq i32 %5, 0
  br i1 %.not140, label %112, label %107

107:                                              ; preds = %102
  %108 = zext i1 %spec.select to i64
  %109 = getelementptr inbounds [2 x ptr], ptr %7, i64 0, i64 %108
  %110 = load ptr, ptr %109, align 8, !tbaa !13
  call void @pffftd_zreorder(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %110, i32 noundef 1)
  %111 = xor i1 %spec.select, true
  br label %112

112:                                              ; preds = %107, %102
  %.2137.in = phi i1 [ %111, %107 ], [ %spec.select, %102 ]
  %.0134 = phi ptr [ %110, %107 ], [ %1, %102 ]
  %113 = getelementptr inbounds i8, ptr %0, i64 68
  %114 = load i32, ptr %113, align 4, !tbaa !14
  %115 = icmp eq i32 %114, 0
  %116 = zext i1 %.2137.in to i64
  %117 = getelementptr inbounds [2 x ptr], ptr %7, i64 0, i64 %116
  %118 = load ptr, ptr %117, align 8, !tbaa !13
  %119 = getelementptr inbounds i8, ptr %0, i64 80
  %120 = load ptr, ptr %119, align 8, !tbaa !16
  %121 = getelementptr inbounds i8, ptr %0, i64 88
  br i1 %115, label %122, label %126

122:                                              ; preds = %112
  call void @_ZL22pffftd_real_preprocessiPK5m256dPS_S1_(i32 noundef %17, ptr noundef %.0134, ptr noundef %118, ptr noundef %120)
  %123 = load ptr, ptr %121, align 8, !tbaa !15
  %124 = call noundef ptr @_ZL9rfftb1_psiPK5m256dPS_S2_PKdPKi(i32 noundef %23, ptr noundef %118, ptr noundef %2, ptr noundef nonnull %28, ptr noundef %123, ptr noundef nonnull %18)
  %125 = icmp ne ptr %124, %2
  br label %.loopexit

126:                                              ; preds = %112
  call void @_Z22pffftd_cplx_preprocessiPK5m256dPS_S1_(i32 noundef %17, ptr noundef %.0134, ptr noundef %118, ptr noundef %120)
  %127 = load ptr, ptr %121, align 8, !tbaa !15
  %128 = call noundef ptr @_ZL9cfftf1_psiPK5m256dPS_S2_PKdPKii(i32 noundef %17, ptr noundef %118, ptr noundef %2, ptr noundef nonnull %28, ptr noundef %127, ptr noundef nonnull %18, i32 noundef 1)
  %129 = icmp ne ptr %128, %2
  %130 = icmp sgt i32 %17, 0
  br i1 %130, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %126
  %131 = zext i1 %129 to i64
  %132 = getelementptr inbounds [2 x ptr], ptr %7, i64 0, i64 %131
  %133 = load ptr, ptr %132, align 8, !tbaa !13
  %wide.trip.count = zext nneg i32 %17 to i64
  br label %134

134:                                              ; preds = %.lr.ph, %134
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %134 ]
  %135 = shl nuw nsw i64 %indvars.iv, 1
  %136 = getelementptr inbounds %struct.m256d, ptr %133, i64 %135
  %137 = call noundef <2 x double> @_ZL21mm256_castpd256_pd1285m256d(ptr noundef nonnull byval(%struct.m256d) align 16 %136)
  %138 = or disjoint i64 %135, 1
  %139 = getelementptr inbounds %struct.m256d, ptr %133, i64 %138
  %140 = call noundef <2 x double> @_ZL21mm256_castpd256_pd1285m256d(ptr noundef nonnull byval(%struct.m256d) align 16 %139)
  %141 = call noundef <2 x double> @_ZL20mm256_extractf128_pd5m256di(ptr noundef nonnull byval(%struct.m256d) align 16 %136, i32 noundef 1)
  %142 = call noundef <2 x double> @_ZL20mm256_extractf128_pd5m256di(ptr noundef nonnull byval(%struct.m256d) align 16 %139, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #8
  %143 = shufflevector <2 x double> %137, <2 x double> %140, <2 x i32> <i32 0, i32 2>
  call void @_ZL21mm256_castpd128_pd256Dv2_d(ptr dead_on_unwind nonnull writable sret(%struct.m256d) align 16 %13, <2 x double> noundef %143)
  %144 = shufflevector <2 x double> %137, <2 x double> %140, <2 x i32> <i32 1, i32 3>
  call void @_ZL21mm256_insertf128_pd_15m256dDv2_d(ptr dead_on_unwind nonnull writable sret(%struct.m256d) align 16 %12, ptr noundef nonnull byval(%struct.m256d) align 16 %13, <2 x double> noundef %144)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #8
  %145 = shufflevector <2 x double> %141, <2 x double> %142, <2 x i32> <i32 0, i32 2>
  call void @_ZL21mm256_castpd128_pd256Dv2_d(ptr dead_on_unwind nonnull writable sret(%struct.m256d) align 16 %15, <2 x double> noundef %145)
  %146 = shufflevector <2 x double> %141, <2 x double> %142, <2 x i32> <i32 1, i32 3>
  call void @_ZL21mm256_insertf128_pd_15m256dDv2_d(ptr dead_on_unwind nonnull writable sret(%struct.m256d) align 16 %14, ptr noundef nonnull byval(%struct.m256d) align 16 %15, <2 x double> noundef %146)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %139, ptr noundef nonnull align 16 dereferenceable(32) %14, i64 32, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %136, ptr noundef nonnull align 16 dereferenceable(32) %12, i64 32, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #8
  %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 %.loopexit, label %134, !llvm.loop !21

.loopexit:                                        ; preds = %134, %95, %126, %122, %98
  %.3.in = phi i1 [ %.0135.in, %98 ], [ %125, %122 ], [ %129, %126 ], [ %97, %95 ], [ %129, %134 ]
  %147 = zext i1 %.3.in to i64
  %148 = getelementptr inbounds [2 x ptr], ptr %7, i64 0, i64 %147
  %149 = load ptr, ptr %148, align 8, !tbaa !13
  %.not142 = icmp eq ptr %149, %2
  br i1 %.not142, label %.thread, label %150

150:                                              ; preds = %.loopexit
  %151 = icmp eq ptr %1, %2
  br i1 %151, label %.preheader, label %153

.preheader:                                       ; preds = %150
  %152 = icmp sgt i32 %17, 0
  br i1 %152, label %.lr.ph147.preheader, label %.loopexit161

.lr.ph147.preheader:                              ; preds = %.preheader
  %wide.trip.count158 = zext nneg i32 %17 to i64
  br label %.lr.ph147

153:                                              ; preds = %150
  call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.2, i32 noundef 1799, ptr noundef nonnull @__PRETTY_FUNCTION__._Z25pffftd_transform_internalP12PFFFTD_SetupPKdPdP5m256d17pffft_direction_ti) #9
  unreachable

.lr.ph147:                                        ; preds = %.lr.ph147.preheader, %.lr.ph147
  %indvars.iv155 = phi i64 [ 0, %.lr.ph147.preheader ], [ %indvars.iv.next156, %.lr.ph147 ]
  %154 = shl nuw nsw i64 %indvars.iv155, 1
  %155 = getelementptr inbounds %struct.m256d, ptr %149, i64 %154
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %.sroa.0)
  %156 = or disjoint i64 %154, 1
  %157 = getelementptr inbounds %struct.m256d, ptr %149, i64 %156
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %.sroa.0, ptr noundef nonnull align 16 dereferenceable(32) %157, i64 32, i1 false), !tbaa.struct !17
  %158 = getelementptr inbounds %struct.m256d, ptr %2, i64 %154
  call void @llvm.memmove.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %158, ptr noundef nonnull align 16 dereferenceable(32) %155, i64 32, i1 false)
  %159 = getelementptr inbounds %struct.m256d, ptr %2, i64 %156
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %159, ptr noundef nonnull align 16 dereferenceable(32) %.sroa.0, i64 32, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %.sroa.0)
  %indvars.iv.next156 = add nuw nsw i64 %indvars.iv155, 1
  %exitcond159.not = icmp eq i64 %indvars.iv.next156, %wide.trip.count158
  br i1 %exitcond159.not, label %.loopexit161, label %.lr.ph147, !llvm.loop !22

.loopexit161:                                     ; preds = %.lr.ph147, %.preheader
  %160 = xor i1 %.3.in, true
  %.pre = zext i1 %160 to i64
  %.phi.trans.insert = getelementptr inbounds [2 x ptr], ptr %7, i64 0, i64 %.pre
  %.pre160 = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !13
  %161 = icmp eq ptr %.pre160, %2
  br i1 %161, label %.thread, label %162

162:                                              ; preds = %.loopexit161
  call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.2, i32 noundef 1808, ptr noundef nonnull @__PRETTY_FUNCTION__._Z25pffftd_transform_internalP12PFFFTD_SetupPKdPdP5m256d17pffft_direction_ti) #9
  unreachable

.thread:                                          ; preds = %.loopexit, %.loopexit161
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  ret void
}

; Function Attrs: mustprogress noinline uwtable
declare hidden noundef ptr @_ZL9rfftf1_psiPK5m256dPS_S2_PKdPKi(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #6

; Function Attrs: mustprogress noinline uwtable
declare hidden void @_ZL20pffftd_real_finalizeiPK5m256dPS_S1_(i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL9cfftf1_psiPK5m256dPS_S2_PKdPKii(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress noinline uwtable
declare hidden void @_ZL22pffftd_real_preprocessiPK5m256dPS_S1_(i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #6

; Function Attrs: mustprogress noinline uwtable
declare hidden noundef ptr @_ZL9rfftb1_psiPK5m256dPS_S2_PKdPKi(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #6

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memmove.p0.p0.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1 immarg) #7

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 = { noreturn 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 #3 = { 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { mustprogress noinline 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 #7 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { nounwind }
attributes #9 = { noreturn 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 = !{!"_ZTS12PFFFTD_Setup", !7, i64 0, !7, i64 4, !8, i64 8, !10, i64 68, !11, i64 72, !11, i64 80, !11, i64 88}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS17pffft_transform_t", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!6, !10, i64 68}
!15 = !{!6, !11, i64 88}
!16 = !{!6, !11, i64 80}
!17 = !{i64 0, i64 32, !18}
!18 = !{!8, !8, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,ReassociatePass,SROAPass,SimplifyCFGPass