; 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.1 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [86 x i8], align 1
@__PRETTY_FUNCTION__.pffftd_zreorder = external hidden unnamed_addr constant [82 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
define dso_local void @pffftd_zreorder(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #1 {
  %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 i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca <2 x double>, align 16
  %17 = alloca %struct.m256d, align 16
  %18 = alloca <2 x double>, align 16
  %19 = alloca %struct.m256d, align 16
  %20 = alloca <2 x double>, align 16
  %21 = alloca %struct.m256d, align 16
  %22 = alloca <2 x double>, align 16
  %23 = alloca %struct.m256d, align 16
  %24 = alloca %struct.m256d, align 16
  %25 = alloca %struct.m256d, align 16
  %26 = alloca %struct.m256d, 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 <2 x double>, align 16
  %33 = alloca %struct.m256d, align 16
  %34 = alloca <2 x double>, align 16
  %35 = alloca %struct.m256d, align 16
  %36 = alloca %struct.m256d, align 16
  %37 = alloca %struct.m256d, align 16
  %38 = alloca %struct.m256d, 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 <2 x double>, align 16
  %45 = alloca %struct.m256d, align 16
  %46 = alloca <2 x double>, align 16
  %47 = alloca %struct.m256d, align 16
  %48 = alloca %struct.m256d, align 16
  %49 = alloca %struct.m256d, align 16
  %50 = alloca %struct.m256d, align 16
  %51 = alloca %struct.m256d, align 16
  %52 = alloca <2 x double>, align 16
  %53 = alloca %struct.m256d, align 16
  %54 = alloca <2 x double>, align 16
  %55 = alloca %struct.m256d, align 16
  %56 = alloca <2 x double>, align 16
  %57 = alloca %struct.m256d, align 16
  %58 = alloca <2 x double>, align 16
  %59 = alloca %struct.m256d, align 16
  %60 = alloca %struct.m256d, align 16
  %61 = alloca %struct.m256d, align 16
  %62 = alloca %struct.m256d, align 16
  %63 = alloca %struct.m256d, align 16
  %64 = alloca i32, align 4
  %65 = alloca <2 x double>, align 16
  %66 = alloca %struct.m256d, align 16
  %67 = alloca <2 x double>, align 16
  %68 = alloca %struct.m256d, align 16
  %69 = alloca <2 x double>, align 16
  %70 = alloca %struct.m256d, align 16
  %71 = alloca <2 x double>, align 16
  %72 = alloca %struct.m256d, align 16
  %73 = alloca %struct.m256d, align 16
  %74 = alloca %struct.m256d, align 16
  %75 = alloca %struct.m256d, align 16
  %76 = alloca %struct.m256d, align 16
  %77 = alloca i32, align 4
  %78 = alloca <2 x double>, align 16
  %79 = alloca %struct.m256d, align 16
  %80 = alloca <2 x double>, align 16
  %81 = alloca %struct.m256d, align 16
  %82 = alloca <2 x double>, align 16
  %83 = alloca %struct.m256d, align 16
  %84 = alloca <2 x double>, align 16
  %85 = alloca %struct.m256d, align 16
  %86 = alloca %struct.m256d, align 16
  %87 = alloca %struct.m256d, align 16
  %88 = alloca %struct.m256d, align 16
  %89 = alloca %struct.m256d, align 16
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.PFFFTD_Setup, ptr %90, i32 0, i32 0
  %92 = load i32, ptr %91, align 8, !tbaa !11
  store i32 %92, ptr %10, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.PFFFTD_Setup, ptr %93, i32 0, i32 1
  %95 = load i32, ptr %94, align 4, !tbaa !16
  store i32 %95, ptr %11, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %96, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %97, ptr %13, align 8, !tbaa !5
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = icmp ne ptr %98, %99
  br i1 %100, label %101, label %102

101:                                              ; preds = %4
  br label %104

102:                                              ; preds = %4
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 1341, ptr noundef @__PRETTY_FUNCTION__.pffftd_zreorder) #7
  unreachable

103:                                              ; No predecessors!
  br label %104

104:                                              ; preds = %103, %101
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.PFFFTD_Setup, ptr %105, i32 0, i32 3
  %107 = load i32, ptr %106, align 4, !tbaa !17
  %108 = icmp eq i32 %107, 0
  br i1 %108, label %109, label %417

109:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %110 = load i32, ptr %10, align 4, !tbaa !15
  %111 = sdiv i32 %110, 32
  store i32 %111, ptr %15, align 4, !tbaa !15
  %112 = load i32, ptr %8, align 4, !tbaa !9
  %113 = icmp eq i32 %112, 0
  br i1 %113, label %114, label %255

114:                                              ; preds = %109
  store i32 0, ptr %14, align 4, !tbaa !15
  br label %115

115:                                              ; preds = %236, %114
  %116 = load i32, ptr %14, align 4, !tbaa !15
  %117 = load i32, ptr %15, align 4, !tbaa !15
  %118 = icmp slt i32 %116, %117
  br i1 %118, label %119, label %239

119:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #6
  %120 = load ptr, ptr %12, align 8, !tbaa !5
  %121 = load i32, ptr %14, align 4, !tbaa !15
  %122 = mul nsw i32 %121, 8
  %123 = add nsw i32 %122, 0
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds %struct.m256d, ptr %120, i64 %124
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %17, ptr align 16 %125, i64 32, i1 false), !tbaa.struct !18
  %126 = call noundef <2 x double> @_ZL21mm256_castpd256_pd1285m256d(ptr noundef byval(%struct.m256d) align 16 %17)
  store <2 x double> %126, ptr %16, align 16, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #6
  %127 = load ptr, ptr %12, align 8, !tbaa !5
  %128 = load i32, ptr %14, align 4, !tbaa !15
  %129 = mul nsw i32 %128, 8
  %130 = add nsw i32 %129, 1
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds %struct.m256d, ptr %127, i64 %131
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %19, ptr align 16 %132, i64 32, i1 false), !tbaa.struct !18
  %133 = call noundef <2 x double> @_ZL21mm256_castpd256_pd1285m256d(ptr noundef byval(%struct.m256d) align 16 %19)
  store <2 x double> %133, ptr %18, align 16, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #6
  %134 = load ptr, ptr %12, align 8, !tbaa !5
  %135 = load i32, ptr %14, align 4, !tbaa !15
  %136 = mul nsw i32 %135, 8
  %137 = add nsw i32 %136, 0
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds %struct.m256d, ptr %134, i64 %138
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %21, ptr align 16 %139, i64 32, i1 false), !tbaa.struct !18
  %140 = call noundef <2 x double> @_ZL20mm256_extractf128_pd5m256di(ptr noundef byval(%struct.m256d) align 16 %21, i32 noundef 1)
  store <2 x double> %140, ptr %20, align 16, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #6
  %141 = load ptr, ptr %12, align 8, !tbaa !5
  %142 = load i32, ptr %14, align 4, !tbaa !15
  %143 = mul nsw i32 %142, 8
  %144 = add nsw i32 %143, 1
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds %struct.m256d, ptr %141, i64 %145
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %23, ptr align 16 %146, i64 32, i1 false), !tbaa.struct !18
  %147 = call noundef <2 x double> @_ZL20mm256_extractf128_pd5m256di(ptr noundef byval(%struct.m256d) align 16 %23, i32 noundef 1)
  store <2 x double> %147, ptr %22, align 16, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #6
  %148 = load <2 x double>, ptr %16, align 16, !tbaa !19
  %149 = load <2 x double>, ptr %18, align 16, !tbaa !19
  %150 = shufflevector <2 x double> %148, <2 x double> %149, <2 x i32> <i32 0, i32 2>
  call void @_ZL21mm256_castpd128_pd256Dv2_d(ptr dead_on_unwind writable sret(%struct.m256d) align 16 %25, <2 x double> noundef %150)
  %151 = load <2 x double>, ptr %16, align 16, !tbaa !19
  %152 = load <2 x double>, ptr %18, align 16, !tbaa !19
  %153 = shufflevector <2 x double> %151, <2 x double> %152, <2 x i32> <i32 1, i32 3>
  call void @_ZL21mm256_insertf128_pd_15m256dDv2_d(ptr dead_on_unwind writable sret(%struct.m256d) align 16 %24, ptr noundef byval(%struct.m256d) align 16 %25, <2 x double> noundef %153)
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #6
  %154 = load <2 x double>, ptr %20, align 16, !tbaa !19
  %155 = load <2 x double>, ptr %22, align 16, !tbaa !19
  %156 = shufflevector <2 x double> %154, <2 x double> %155, <2 x i32> <i32 0, i32 2>
  call void @_ZL21mm256_castpd128_pd256Dv2_d(ptr dead_on_unwind writable sret(%struct.m256d) align 16 %27, <2 x double> noundef %156)
  %157 = load <2 x double>, ptr %20, align 16, !tbaa !19
  %158 = load <2 x double>, ptr %22, align 16, !tbaa !19
  %159 = shufflevector <2 x double> %157, <2 x double> %158, <2 x i32> <i32 1, i32 3>
  call void @_ZL21mm256_insertf128_pd_15m256dDv2_d(ptr dead_on_unwind writable sret(%struct.m256d) align 16 %26, ptr noundef byval(%struct.m256d) align 16 %27, <2 x double> noundef %159)
  %160 = load ptr, ptr %13, align 8, !tbaa !5
  %161 = load i32, ptr %15, align 4, !tbaa !15
  %162 = mul nsw i32 0, %161
  %163 = load i32, ptr %14, align 4, !tbaa !15
  %164 = add nsw i32 %162, %163
  %165 = mul nsw i32 2, %164
  %166 = add nsw i32 %165, 1
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds %struct.m256d, ptr %160, i64 %167
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %168, ptr align 16 %26, i64 32, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #6
  %169 = load ptr, ptr %13, align 8, !tbaa !5
  %170 = load i32, ptr %15, align 4, !tbaa !15
  %171 = mul nsw i32 0, %170
  %172 = load i32, ptr %14, align 4, !tbaa !15
  %173 = add nsw i32 %171, %172
  %174 = mul nsw i32 2, %173
  %175 = add nsw i32 %174, 0
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds %struct.m256d, ptr %169, i64 %176
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %177, ptr align 16 %24, i64 32, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #6
  %178 = load ptr, ptr %12, align 8, !tbaa !5
  %179 = load i32, ptr %14, align 4, !tbaa !15
  %180 = mul nsw i32 %179, 8
  %181 = add nsw i32 %180, 4
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds %struct.m256d, ptr %178, i64 %182
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %29, ptr align 16 %183, i64 32, i1 false), !tbaa.struct !18
  %184 = call noundef <2 x double> @_ZL21mm256_castpd256_pd1285m256d(ptr noundef byval(%struct.m256d) align 16 %29)
  store <2 x double> %184, ptr %28, align 16, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #6
  %185 = load ptr, ptr %12, align 8, !tbaa !5
  %186 = load i32, ptr %14, align 4, !tbaa !15
  %187 = mul nsw i32 %186, 8
  %188 = add nsw i32 %187, 5
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds %struct.m256d, ptr %185, i64 %189
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %31, ptr align 16 %190, i64 32, i1 false), !tbaa.struct !18
  %191 = call noundef <2 x double> @_ZL21mm256_castpd256_pd1285m256d(ptr noundef byval(%struct.m256d) align 16 %31)
  store <2 x double> %191, ptr %30, align 16, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #6
  %192 = load ptr, ptr %12, align 8, !tbaa !5
  %193 = load i32, ptr %14, align 4, !tbaa !15
  %194 = mul nsw i32 %193, 8
  %195 = add nsw i32 %194, 4
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds %struct.m256d, ptr %192, i64 %196
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %33, ptr align 16 %197, i64 32, i1 false), !tbaa.struct !18
  %198 = call noundef <2 x double> @_ZL20mm256_extractf128_pd5m256di(ptr noundef byval(%struct.m256d) align 16 %33, i32 noundef 1)
  store <2 x double> %198, ptr %32, align 16, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #6
  %199 = load ptr, ptr %12, align 8, !tbaa !5
  %200 = load i32, ptr %14, align 4, !tbaa !15
  %201 = mul nsw i32 %200, 8
  %202 = add nsw i32 %201, 5
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds %struct.m256d, ptr %199, i64 %203
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %35, ptr align 16 %204, i64 32, i1 false), !tbaa.struct !18
  %205 = call noundef <2 x double> @_ZL20mm256_extractf128_pd5m256di(ptr noundef byval(%struct.m256d) align 16 %35, i32 noundef 1)
  store <2 x double> %205, ptr %34, align 16, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 32, ptr %36) #6
  %206 = load <2 x double>, ptr %28, align 16, !tbaa !19
  %207 = load <2 x double>, ptr %30, align 16, !tbaa !19
  %208 = shufflevector <2 x double> %206, <2 x double> %207, <2 x i32> <i32 0, i32 2>
  call void @_ZL21mm256_castpd128_pd256Dv2_d(ptr dead_on_unwind writable sret(%struct.m256d) align 16 %37, <2 x double> noundef %208)
  %209 = load <2 x double>, ptr %28, align 16, !tbaa !19
  %210 = load <2 x double>, ptr %30, align 16, !tbaa !19
  %211 = shufflevector <2 x double> %209, <2 x double> %210, <2 x i32> <i32 1, i32 3>
  call void @_ZL21mm256_insertf128_pd_15m256dDv2_d(ptr dead_on_unwind writable sret(%struct.m256d) align 16 %36, ptr noundef byval(%struct.m256d) align 16 %37, <2 x double> noundef %211)
  call void @llvm.lifetime.start.p0(i64 32, ptr %38) #6
  %212 = load <2 x double>, ptr %32, align 16, !tbaa !19
  %213 = load <2 x double>, ptr %34, align 16, !tbaa !19
  %214 = shufflevector <2 x double> %212, <2 x double> %213, <2 x i32> <i32 0, i32 2>
  call void @_ZL21mm256_castpd128_pd256Dv2_d(ptr dead_on_unwind writable sret(%struct.m256d) align 16 %39, <2 x double> noundef %214)
  %215 = load <2 x double>, ptr %32, align 16, !tbaa !19
  %216 = load <2 x double>, ptr %34, align 16, !tbaa !19
  %217 = shufflevector <2 x double> %215, <2 x double> %216, <2 x i32> <i32 1, i32 3>
  call void @_ZL21mm256_insertf128_pd_15m256dDv2_d(ptr dead_on_unwind writable sret(%struct.m256d) align 16 %38, ptr noundef byval(%struct.m256d) align 16 %39, <2 x double> noundef %217)
  %218 = load ptr, ptr %13, align 8, !tbaa !5
  %219 = load i32, ptr %15, align 4, !tbaa !15
  %220 = mul nsw i32 2, %219
  %221 = load i32, ptr %14, align 4, !tbaa !15
  %222 = add nsw i32 %220, %221
  %223 = mul nsw i32 2, %222
  %224 = add nsw i32 %223, 1
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds %struct.m256d, ptr %218, i64 %225
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %226, ptr align 16 %38, i64 32, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 32, ptr %38) #6
  %227 = load ptr, ptr %13, align 8, !tbaa !5
  %228 = load i32, ptr %15, align 4, !tbaa !15
  %229 = mul nsw i32 2, %228
  %230 = load i32, ptr %14, align 4, !tbaa !15
  %231 = add nsw i32 %229, %230
  %232 = mul nsw i32 2, %231
  %233 = add nsw i32 %232, 0
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds %struct.m256d, ptr %227, i64 %234
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %235, ptr align 16 %36, i64 32, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 32, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #6
  br label %236

236:                                              ; preds = %119
  %237 = load i32, ptr %14, align 4, !tbaa !15
  %238 = add nsw i32 %237, 1
  store i32 %238, ptr %14, align 4, !tbaa !15
  br label %115, !llvm.loop !20

239:                                              ; preds = %115
  %240 = load i32, ptr %15, align 4, !tbaa !15
  %241 = load ptr, ptr %12, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.m256d, ptr %241, i64 2
  %243 = load ptr, ptr %7, align 8, !tbaa !5
  %244 = load i32, ptr %10, align 4, !tbaa !15
  %245 = sdiv i32 %244, 2
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds double, ptr %243, i64 %246
  call void @_ZL13reversed_copyiPK5m256diPS_(i32 noundef %240, ptr noundef %242, i32 noundef 8, ptr noundef %247)
  %248 = load i32, ptr %15, align 4, !tbaa !15
  %249 = load ptr, ptr %12, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.m256d, ptr %249, i64 6
  %251 = load ptr, ptr %7, align 8, !tbaa !5
  %252 = load i32, ptr %10, align 4, !tbaa !15
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds double, ptr %251, i64 %253
  call void @_ZL13reversed_copyiPK5m256diPS_(i32 noundef %248, ptr noundef %250, i32 noundef 8, ptr noundef %254)
  br label %416

255:                                              ; preds = %109
  store i32 0, ptr %14, align 4, !tbaa !15
  br label %256

256:                                              ; preds = %389, %255
  %257 = load i32, ptr %14, align 4, !tbaa !15
  %258 = load i32, ptr %15, align 4, !tbaa !15
  %259 = icmp slt i32 %257, %258
  br i1 %259, label %260, label %392

260:                                              ; preds = %256
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #6
  %261 = load ptr, ptr %12, align 8, !tbaa !5
  %262 = load i32, ptr %15, align 4, !tbaa !15
  %263 = mul nsw i32 0, %262
  %264 = load i32, ptr %14, align 4, !tbaa !15
  %265 = add nsw i32 %263, %264
  %266 = mul nsw i32 2, %265
  %267 = add nsw i32 %266, 0
  %268 = sext i32 %267 to i64
  %269 = getelementptr inbounds %struct.m256d, ptr %261, i64 %268
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %41, ptr align 16 %269, i64 32, i1 false), !tbaa.struct !18
  %270 = call noundef <2 x double> @_ZL21mm256_castpd256_pd1285m256d(ptr noundef byval(%struct.m256d) align 16 %41)
  store <2 x double> %270, ptr %40, align 16, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %42) #6
  %271 = load ptr, ptr %12, align 8, !tbaa !5
  %272 = load i32, ptr %15, align 4, !tbaa !15
  %273 = mul nsw i32 0, %272
  %274 = load i32, ptr %14, align 4, !tbaa !15
  %275 = add nsw i32 %273, %274
  %276 = mul nsw i32 2, %275
  %277 = add nsw i32 %276, 1
  %278 = sext i32 %277 to i64
  %279 = getelementptr inbounds %struct.m256d, ptr %271, i64 %278
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %43, ptr align 16 %279, i64 32, i1 false), !tbaa.struct !18
  %280 = call noundef <2 x double> @_ZL21mm256_castpd256_pd1285m256d(ptr noundef byval(%struct.m256d) align 16 %43)
  store <2 x double> %280, ptr %42, align 16, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %44) #6
  %281 = load ptr, ptr %12, align 8, !tbaa !5
  %282 = load i32, ptr %15, align 4, !tbaa !15
  %283 = mul nsw i32 0, %282
  %284 = load i32, ptr %14, align 4, !tbaa !15
  %285 = add nsw i32 %283, %284
  %286 = mul nsw i32 2, %285
  %287 = add nsw i32 %286, 0
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds %struct.m256d, ptr %281, i64 %288
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %45, ptr align 16 %289, i64 32, i1 false), !tbaa.struct !18
  %290 = call noundef <2 x double> @_ZL20mm256_extractf128_pd5m256di(ptr noundef byval(%struct.m256d) align 16 %45, i32 noundef 1)
  store <2 x double> %290, ptr %44, align 16, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %46) #6
  %291 = load ptr, ptr %12, align 8, !tbaa !5
  %292 = load i32, ptr %15, align 4, !tbaa !15
  %293 = mul nsw i32 0, %292
  %294 = load i32, ptr %14, align 4, !tbaa !15
  %295 = add nsw i32 %293, %294
  %296 = mul nsw i32 2, %295
  %297 = add nsw i32 %296, 1
  %298 = sext i32 %297 to i64
  %299 = getelementptr inbounds %struct.m256d, ptr %291, i64 %298
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %47, ptr align 16 %299, i64 32, i1 false), !tbaa.struct !18
  %300 = call noundef <2 x double> @_ZL20mm256_extractf128_pd5m256di(ptr noundef byval(%struct.m256d) align 16 %47, i32 noundef 1)
  store <2 x double> %300, ptr %46, align 16, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 32, ptr %48) #6
  %301 = load <2 x double>, ptr %40, align 16, !tbaa !19
  %302 = load <2 x double>, ptr %44, align 16, !tbaa !19
  %303 = shufflevector <2 x double> %301, <2 x double> %302, <2 x i32> <i32 0, i32 2>
  call void @_ZL21mm256_castpd128_pd256Dv2_d(ptr dead_on_unwind writable sret(%struct.m256d) align 16 %49, <2 x double> noundef %303)
  %304 = load <2 x double>, ptr %42, align 16, !tbaa !19
  %305 = load <2 x double>, ptr %46, align 16, !tbaa !19
  %306 = shufflevector <2 x double> %304, <2 x double> %305, <2 x i32> <i32 0, i32 2>
  call void @_ZL21mm256_insertf128_pd_15m256dDv2_d(ptr dead_on_unwind writable sret(%struct.m256d) align 16 %48, ptr noundef byval(%struct.m256d) align 16 %49, <2 x double> noundef %306)
  call void @llvm.lifetime.start.p0(i64 32, ptr %50) #6
  %307 = load <2 x double>, ptr %40, align 16, !tbaa !19
  %308 = load <2 x double>, ptr %44, align 16, !tbaa !19
  %309 = shufflevector <2 x double> %307, <2 x double> %308, <2 x i32> <i32 1, i32 3>
  call void @_ZL21mm256_castpd128_pd256Dv2_d(ptr dead_on_unwind writable sret(%struct.m256d) align 16 %51, <2 x double> noundef %309)
  %310 = load <2 x double>, ptr %42, align 16, !tbaa !19
  %311 = load <2 x double>, ptr %46, align 16, !tbaa !19
  %312 = shufflevector <2 x double> %310, <2 x double> %311, <2 x i32> <i32 1, i32 3>
  call void @_ZL21mm256_insertf128_pd_15m256dDv2_d(ptr dead_on_unwind writable sret(%struct.m256d) align 16 %50, ptr noundef byval(%struct.m256d) align 16 %51, <2 x double> noundef %312)
  %313 = load ptr, ptr %13, align 8, !tbaa !5
  %314 = load i32, ptr %14, align 4, !tbaa !15
  %315 = mul nsw i32 %314, 8
  %316 = add nsw i32 %315, 1
  %317 = sext i32 %316 to i64
  %318 = getelementptr inbounds %struct.m256d, ptr %313, i64 %317
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %318, ptr align 16 %50, i64 32, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 32, ptr %50) #6
  %319 = load ptr, ptr %13, align 8, !tbaa !5
  %320 = load i32, ptr %14, align 4, !tbaa !15
  %321 = mul nsw i32 %320, 8
  %322 = add nsw i32 %321, 0
  %323 = sext i32 %322 to i64
  %324 = getelementptr inbounds %struct.m256d, ptr %319, i64 %323
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %324, ptr align 16 %48, i64 32, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 32, ptr %48) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %46) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %52) #6
  %325 = load ptr, ptr %12, align 8, !tbaa !5
  %326 = load i32, ptr %15, align 4, !tbaa !15
  %327 = mul nsw i32 2, %326
  %328 = load i32, ptr %14, align 4, !tbaa !15
  %329 = add nsw i32 %327, %328
  %330 = mul nsw i32 2, %329
  %331 = add nsw i32 %330, 0
  %332 = sext i32 %331 to i64
  %333 = getelementptr inbounds %struct.m256d, ptr %325, i64 %332
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %53, ptr align 16 %333, i64 32, i1 false), !tbaa.struct !18
  %334 = call noundef <2 x double> @_ZL21mm256_castpd256_pd1285m256d(ptr noundef byval(%struct.m256d) align 16 %53)
  store <2 x double> %334, ptr %52, align 16, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %54) #6
  %335 = load ptr, ptr %12, align 8, !tbaa !5
  %336 = load i32, ptr %15, align 4, !tbaa !15
  %337 = mul nsw i32 2, %336
  %338 = load i32, ptr %14, align 4, !tbaa !15
  %339 = add nsw i32 %337, %338
  %340 = mul nsw i32 2, %339
  %341 = add nsw i32 %340, 1
  %342 = sext i32 %341 to i64
  %343 = getelementptr inbounds %struct.m256d, ptr %335, i64 %342
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %55, ptr align 16 %343, i64 32, i1 false), !tbaa.struct !18
  %344 = call noundef <2 x double> @_ZL21mm256_castpd256_pd1285m256d(ptr noundef byval(%struct.m256d) align 16 %55)
  store <2 x double> %344, ptr %54, align 16, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %56) #6
  %345 = load ptr, ptr %12, align 8, !tbaa !5
  %346 = load i32, ptr %15, align 4, !tbaa !15
  %347 = mul nsw i32 2, %346
  %348 = load i32, ptr %14, align 4, !tbaa !15
  %349 = add nsw i32 %347, %348
  %350 = mul nsw i32 2, %349
  %351 = add nsw i32 %350, 0
  %352 = sext i32 %351 to i64
  %353 = getelementptr inbounds %struct.m256d, ptr %345, i64 %352
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %57, ptr align 16 %353, i64 32, i1 false), !tbaa.struct !18
  %354 = call noundef <2 x double> @_ZL20mm256_extractf128_pd5m256di(ptr noundef byval(%struct.m256d) align 16 %57, i32 noundef 1)
  store <2 x double> %354, ptr %56, align 16, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %58) #6
  %355 = load ptr, ptr %12, align 8, !tbaa !5
  %356 = load i32, ptr %15, align 4, !tbaa !15
  %357 = mul nsw i32 2, %356
  %358 = load i32, ptr %14, align 4, !tbaa !15
  %359 = add nsw i32 %357, %358
  %360 = mul nsw i32 2, %359
  %361 = add nsw i32 %360, 1
  %362 = sext i32 %361 to i64
  %363 = getelementptr inbounds %struct.m256d, ptr %355, i64 %362
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %59, ptr align 16 %363, i64 32, i1 false), !tbaa.struct !18
  %364 = call noundef <2 x double> @_ZL20mm256_extractf128_pd5m256di(ptr noundef byval(%struct.m256d) align 16 %59, i32 noundef 1)
  store <2 x double> %364, ptr %58, align 16, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 32, ptr %60) #6
  %365 = load <2 x double>, ptr %52, align 16, !tbaa !19
  %366 = load <2 x double>, ptr %56, align 16, !tbaa !19
  %367 = shufflevector <2 x double> %365, <2 x double> %366, <2 x i32> <i32 0, i32 2>
  call void @_ZL21mm256_castpd128_pd256Dv2_d(ptr dead_on_unwind writable sret(%struct.m256d) align 16 %61, <2 x double> noundef %367)
  %368 = load <2 x double>, ptr %54, align 16, !tbaa !19
  %369 = load <2 x double>, ptr %58, align 16, !tbaa !19
  %370 = shufflevector <2 x double> %368, <2 x double> %369, <2 x i32> <i32 0, i32 2>
  call void @_ZL21mm256_insertf128_pd_15m256dDv2_d(ptr dead_on_unwind writable sret(%struct.m256d) align 16 %60, ptr noundef byval(%struct.m256d) align 16 %61, <2 x double> noundef %370)
  call void @llvm.lifetime.start.p0(i64 32, ptr %62) #6
  %371 = load <2 x double>, ptr %52, align 16, !tbaa !19
  %372 = load <2 x double>, ptr %56, align 16, !tbaa !19
  %373 = shufflevector <2 x double> %371, <2 x double> %372, <2 x i32> <i32 1, i32 3>
  call void @_ZL21mm256_castpd128_pd256Dv2_d(ptr dead_on_unwind writable sret(%struct.m256d) align 16 %63, <2 x double> noundef %373)
  %374 = load <2 x double>, ptr %54, align 16, !tbaa !19
  %375 = load <2 x double>, ptr %58, align 16, !tbaa !19
  %376 = shufflevector <2 x double> %374, <2 x double> %375, <2 x i32> <i32 1, i32 3>
  call void @_ZL21mm256_insertf128_pd_15m256dDv2_d(ptr dead_on_unwind writable sret(%struct.m256d) align 16 %62, ptr noundef byval(%struct.m256d) align 16 %63, <2 x double> noundef %376)
  %377 = load ptr, ptr %13, align 8, !tbaa !5
  %378 = load i32, ptr %14, align 4, !tbaa !15
  %379 = mul nsw i32 %378, 8
  %380 = add nsw i32 %379, 5
  %381 = sext i32 %380 to i64
  %382 = getelementptr inbounds %struct.m256d, ptr %377, i64 %381
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %382, ptr align 16 %62, i64 32, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 32, ptr %62) #6
  %383 = load ptr, ptr %13, align 8, !tbaa !5
  %384 = load i32, ptr %14, align 4, !tbaa !15
  %385 = mul nsw i32 %384, 8
  %386 = add nsw i32 %385, 4
  %387 = sext i32 %386 to i64
  %388 = getelementptr inbounds %struct.m256d, ptr %383, i64 %387
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %388, ptr align 16 %60, i64 32, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 32, ptr %60) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %58) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %56) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %54) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %52) #6
  br label %389

389:                                              ; preds = %260
  %390 = load i32, ptr %14, align 4, !tbaa !15
  %391 = add nsw i32 %390, 1
  store i32 %391, ptr %14, align 4, !tbaa !15
  br label %256, !llvm.loop !22

392:                                              ; preds = %256
  %393 = load i32, ptr %15, align 4, !tbaa !15
  %394 = load ptr, ptr %6, align 8, !tbaa !5
  %395 = load i32, ptr %10, align 4, !tbaa !15
  %396 = sdiv i32 %395, 4
  %397 = sext i32 %396 to i64
  %398 = getelementptr inbounds double, ptr %394, i64 %397
  %399 = load ptr, ptr %7, align 8, !tbaa !5
  %400 = load i32, ptr %10, align 4, !tbaa !15
  %401 = sext i32 %400 to i64
  %402 = getelementptr inbounds double, ptr %399, i64 %401
  %403 = getelementptr inbounds double, ptr %402, i64 -24
  call void @_ZL15unreversed_copyiPK5m256dPS_i(i32 noundef %393, ptr noundef %398, ptr noundef %403, i32 noundef -8)
  %404 = load i32, ptr %15, align 4, !tbaa !15
  %405 = load ptr, ptr %6, align 8, !tbaa !5
  %406 = load i32, ptr %10, align 4, !tbaa !15
  %407 = mul nsw i32 3, %406
  %408 = sdiv i32 %407, 4
  %409 = sext i32 %408 to i64
  %410 = getelementptr inbounds double, ptr %405, i64 %409
  %411 = load ptr, ptr %7, align 8, !tbaa !5
  %412 = load i32, ptr %10, align 4, !tbaa !15
  %413 = sext i32 %412 to i64
  %414 = getelementptr inbounds double, ptr %411, i64 %413
  %415 = getelementptr inbounds double, ptr %414, i64 -8
  call void @_ZL15unreversed_copyiPK5m256dPS_i(i32 noundef %404, ptr noundef %410, ptr noundef %415, i32 noundef -8)
  br label %416

416:                                              ; preds = %392, %239
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %555

417:                                              ; preds = %104
  %418 = load i32, ptr %8, align 4, !tbaa !9
  %419 = icmp eq i32 %418, 0
  br i1 %419, label %420, label %487

420:                                              ; preds = %417
  store i32 0, ptr %9, align 4, !tbaa !15
  br label %421

421:                                              ; preds = %483, %420
  %422 = load i32, ptr %9, align 4, !tbaa !15
  %423 = load i32, ptr %11, align 4, !tbaa !15
  %424 = icmp slt i32 %422, %423
  br i1 %424, label %425, label %486

425:                                              ; preds = %421
  call void @llvm.lifetime.start.p0(i64 4, ptr %64) #6
  %426 = load i32, ptr %9, align 4, !tbaa !15
  %427 = sdiv i32 %426, 4
  %428 = load i32, ptr %9, align 4, !tbaa !15
  %429 = srem i32 %428, 4
  %430 = load i32, ptr %11, align 4, !tbaa !15
  %431 = sdiv i32 %430, 4
  %432 = mul nsw i32 %429, %431
  %433 = add nsw i32 %427, %432
  store i32 %433, ptr %64, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 16, ptr %65) #6
  %434 = load ptr, ptr %12, align 8, !tbaa !5
  %435 = load i32, ptr %9, align 4, !tbaa !15
  %436 = mul nsw i32 %435, 2
  %437 = sext i32 %436 to i64
  %438 = getelementptr inbounds %struct.m256d, ptr %434, i64 %437
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %66, ptr align 16 %438, i64 32, i1 false), !tbaa.struct !18
  %439 = call noundef <2 x double> @_ZL21mm256_castpd256_pd1285m256d(ptr noundef byval(%struct.m256d) align 16 %66)
  store <2 x double> %439, ptr %65, align 16, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %67) #6
  %440 = load ptr, ptr %12, align 8, !tbaa !5
  %441 = load i32, ptr %9, align 4, !tbaa !15
  %442 = mul nsw i32 %441, 2
  %443 = add nsw i32 %442, 1
  %444 = sext i32 %443 to i64
  %445 = getelementptr inbounds %struct.m256d, ptr %440, i64 %444
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %68, ptr align 16 %445, i64 32, i1 false), !tbaa.struct !18
  %446 = call noundef <2 x double> @_ZL21mm256_castpd256_pd1285m256d(ptr noundef byval(%struct.m256d) align 16 %68)
  store <2 x double> %446, ptr %67, align 16, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %69) #6
  %447 = load ptr, ptr %12, align 8, !tbaa !5
  %448 = load i32, ptr %9, align 4, !tbaa !15
  %449 = mul nsw i32 %448, 2
  %450 = sext i32 %449 to i64
  %451 = getelementptr inbounds %struct.m256d, ptr %447, i64 %450
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %70, ptr align 16 %451, i64 32, i1 false), !tbaa.struct !18
  %452 = call noundef <2 x double> @_ZL20mm256_extractf128_pd5m256di(ptr noundef byval(%struct.m256d) align 16 %70, i32 noundef 1)
  store <2 x double> %452, ptr %69, align 16, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %71) #6
  %453 = load ptr, ptr %12, align 8, !tbaa !5
  %454 = load i32, ptr %9, align 4, !tbaa !15
  %455 = mul nsw i32 %454, 2
  %456 = add nsw i32 %455, 1
  %457 = sext i32 %456 to i64
  %458 = getelementptr inbounds %struct.m256d, ptr %453, i64 %457
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %72, ptr align 16 %458, i64 32, i1 false), !tbaa.struct !18
  %459 = call noundef <2 x double> @_ZL20mm256_extractf128_pd5m256di(ptr noundef byval(%struct.m256d) align 16 %72, i32 noundef 1)
  store <2 x double> %459, ptr %71, align 16, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 32, ptr %73) #6
  %460 = load <2 x double>, ptr %65, align 16, !tbaa !19
  %461 = load <2 x double>, ptr %67, align 16, !tbaa !19
  %462 = shufflevector <2 x double> %460, <2 x double> %461, <2 x i32> <i32 0, i32 2>
  call void @_ZL21mm256_castpd128_pd256Dv2_d(ptr dead_on_unwind writable sret(%struct.m256d) align 16 %74, <2 x double> noundef %462)
  %463 = load <2 x double>, ptr %65, align 16, !tbaa !19
  %464 = load <2 x double>, ptr %67, align 16, !tbaa !19
  %465 = shufflevector <2 x double> %463, <2 x double> %464, <2 x i32> <i32 1, i32 3>
  call void @_ZL21mm256_insertf128_pd_15m256dDv2_d(ptr dead_on_unwind writable sret(%struct.m256d) align 16 %73, ptr noundef byval(%struct.m256d) align 16 %74, <2 x double> noundef %465)
  call void @llvm.lifetime.start.p0(i64 32, ptr %75) #6
  %466 = load <2 x double>, ptr %69, align 16, !tbaa !19
  %467 = load <2 x double>, ptr %71, align 16, !tbaa !19
  %468 = shufflevector <2 x double> %466, <2 x double> %467, <2 x i32> <i32 0, i32 2>
  call void @_ZL21mm256_castpd128_pd256Dv2_d(ptr dead_on_unwind writable sret(%struct.m256d) align 16 %76, <2 x double> noundef %468)
  %469 = load <2 x double>, ptr %69, align 16, !tbaa !19
  %470 = load <2 x double>, ptr %71, align 16, !tbaa !19
  %471 = shufflevector <2 x double> %469, <2 x double> %470, <2 x i32> <i32 1, i32 3>
  call void @_ZL21mm256_insertf128_pd_15m256dDv2_d(ptr dead_on_unwind writable sret(%struct.m256d) align 16 %75, ptr noundef byval(%struct.m256d) align 16 %76, <2 x double> noundef %471)
  %472 = load ptr, ptr %13, align 8, !tbaa !5
  %473 = load i32, ptr %64, align 4, !tbaa !15
  %474 = mul nsw i32 %473, 2
  %475 = add nsw i32 %474, 1
  %476 = sext i32 %475 to i64
  %477 = getelementptr inbounds %struct.m256d, ptr %472, i64 %476
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %477, ptr align 16 %75, i64 32, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 32, ptr %75) #6
  %478 = load ptr, ptr %13, align 8, !tbaa !5
  %479 = load i32, ptr %64, align 4, !tbaa !15
  %480 = mul nsw i32 %479, 2
  %481 = sext i32 %480 to i64
  %482 = getelementptr inbounds %struct.m256d, ptr %478, i64 %481
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %482, ptr align 16 %73, i64 32, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 32, ptr %73) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %71) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %69) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %67) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %65) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %64) #6
  br label %483

483:                                              ; preds = %425
  %484 = load i32, ptr %9, align 4, !tbaa !15
  %485 = add nsw i32 %484, 1
  store i32 %485, ptr %9, align 4, !tbaa !15
  br label %421, !llvm.loop !23

486:                                              ; preds = %421
  br label %554

487:                                              ; preds = %417
  store i32 0, ptr %9, align 4, !tbaa !15
  br label %488

488:                                              ; preds = %550, %487
  %489 = load i32, ptr %9, align 4, !tbaa !15
  %490 = load i32, ptr %11, align 4, !tbaa !15
  %491 = icmp slt i32 %489, %490
  br i1 %491, label %492, label %553

492:                                              ; preds = %488
  call void @llvm.lifetime.start.p0(i64 4, ptr %77) #6
  %493 = load i32, ptr %9, align 4, !tbaa !15
  %494 = sdiv i32 %493, 4
  %495 = load i32, ptr %9, align 4, !tbaa !15
  %496 = srem i32 %495, 4
  %497 = load i32, ptr %11, align 4, !tbaa !15
  %498 = sdiv i32 %497, 4
  %499 = mul nsw i32 %496, %498
  %500 = add nsw i32 %494, %499
  store i32 %500, ptr %77, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 16, ptr %78) #6
  %501 = load ptr, ptr %12, align 8, !tbaa !5
  %502 = load i32, ptr %77, align 4, !tbaa !15
  %503 = mul nsw i32 %502, 2
  %504 = sext i32 %503 to i64
  %505 = getelementptr inbounds %struct.m256d, ptr %501, i64 %504
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %79, ptr align 16 %505, i64 32, i1 false), !tbaa.struct !18
  %506 = call noundef <2 x double> @_ZL21mm256_castpd256_pd1285m256d(ptr noundef byval(%struct.m256d) align 16 %79)
  store <2 x double> %506, ptr %78, align 16, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %80) #6
  %507 = load ptr, ptr %12, align 8, !tbaa !5
  %508 = load i32, ptr %77, align 4, !tbaa !15
  %509 = mul nsw i32 %508, 2
  %510 = add nsw i32 %509, 1
  %511 = sext i32 %510 to i64
  %512 = getelementptr inbounds %struct.m256d, ptr %507, i64 %511
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %81, ptr align 16 %512, i64 32, i1 false), !tbaa.struct !18
  %513 = call noundef <2 x double> @_ZL21mm256_castpd256_pd1285m256d(ptr noundef byval(%struct.m256d) align 16 %81)
  store <2 x double> %513, ptr %80, align 16, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %82) #6
  %514 = load ptr, ptr %12, align 8, !tbaa !5
  %515 = load i32, ptr %77, align 4, !tbaa !15
  %516 = mul nsw i32 %515, 2
  %517 = sext i32 %516 to i64
  %518 = getelementptr inbounds %struct.m256d, ptr %514, i64 %517
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %83, ptr align 16 %518, i64 32, i1 false), !tbaa.struct !18
  %519 = call noundef <2 x double> @_ZL20mm256_extractf128_pd5m256di(ptr noundef byval(%struct.m256d) align 16 %83, i32 noundef 1)
  store <2 x double> %519, ptr %82, align 16, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %84) #6
  %520 = load ptr, ptr %12, align 8, !tbaa !5
  %521 = load i32, ptr %77, align 4, !tbaa !15
  %522 = mul nsw i32 %521, 2
  %523 = add nsw i32 %522, 1
  %524 = sext i32 %523 to i64
  %525 = getelementptr inbounds %struct.m256d, ptr %520, i64 %524
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %85, ptr align 16 %525, i64 32, i1 false), !tbaa.struct !18
  %526 = call noundef <2 x double> @_ZL20mm256_extractf128_pd5m256di(ptr noundef byval(%struct.m256d) align 16 %85, i32 noundef 1)
  store <2 x double> %526, ptr %84, align 16, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 32, ptr %86) #6
  %527 = load <2 x double>, ptr %78, align 16, !tbaa !19
  %528 = load <2 x double>, ptr %82, align 16, !tbaa !19
  %529 = shufflevector <2 x double> %527, <2 x double> %528, <2 x i32> <i32 0, i32 2>
  call void @_ZL21mm256_castpd128_pd256Dv2_d(ptr dead_on_unwind writable sret(%struct.m256d) align 16 %87, <2 x double> noundef %529)
  %530 = load <2 x double>, ptr %80, align 16, !tbaa !19
  %531 = load <2 x double>, ptr %84, align 16, !tbaa !19
  %532 = shufflevector <2 x double> %530, <2 x double> %531, <2 x i32> <i32 0, i32 2>
  call void @_ZL21mm256_insertf128_pd_15m256dDv2_d(ptr dead_on_unwind writable sret(%struct.m256d) align 16 %86, ptr noundef byval(%struct.m256d) align 16 %87, <2 x double> noundef %532)
  call void @llvm.lifetime.start.p0(i64 32, ptr %88) #6
  %533 = load <2 x double>, ptr %78, align 16, !tbaa !19
  %534 = load <2 x double>, ptr %82, align 16, !tbaa !19
  %535 = shufflevector <2 x double> %533, <2 x double> %534, <2 x i32> <i32 1, i32 3>
  call void @_ZL21mm256_castpd128_pd256Dv2_d(ptr dead_on_unwind writable sret(%struct.m256d) align 16 %89, <2 x double> noundef %535)
  %536 = load <2 x double>, ptr %80, align 16, !tbaa !19
  %537 = load <2 x double>, ptr %84, align 16, !tbaa !19
  %538 = shufflevector <2 x double> %536, <2 x double> %537, <2 x i32> <i32 1, i32 3>
  call void @_ZL21mm256_insertf128_pd_15m256dDv2_d(ptr dead_on_unwind writable sret(%struct.m256d) align 16 %88, ptr noundef byval(%struct.m256d) align 16 %89, <2 x double> noundef %538)
  %539 = load ptr, ptr %13, align 8, !tbaa !5
  %540 = load i32, ptr %9, align 4, !tbaa !15
  %541 = mul nsw i32 %540, 2
  %542 = add nsw i32 %541, 1
  %543 = sext i32 %542 to i64
  %544 = getelementptr inbounds %struct.m256d, ptr %539, i64 %543
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %544, ptr align 16 %88, i64 32, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 32, ptr %88) #6
  %545 = load ptr, ptr %13, align 8, !tbaa !5
  %546 = load i32, ptr %9, align 4, !tbaa !15
  %547 = mul nsw i32 %546, 2
  %548 = sext i32 %547 to i64
  %549 = getelementptr inbounds %struct.m256d, ptr %545, i64 %548
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %549, ptr align 16 %86, i64 32, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 32, ptr %86) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %84) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %82) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %80) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %78) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %77) #6
  br label %550

550:                                              ; preds = %492
  %551 = load i32, ptr %9, align 4, !tbaa !15
  %552 = add nsw i32 %551, 1
  store i32 %552, ptr %9, align 4, !tbaa !15
  br label %488, !llvm.loop !24

553:                                              ; preds = %488
  br label %554

554:                                              ; preds = %553, %486
  br label %555

555:                                              ; preds = %554, %416
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  ret void
}

; 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 nounwind uwtable
declare hidden void @_ZL13reversed_copyiPK5m256diPS_(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #5

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

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 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 #6 = { nounwind }
attributes #7 = { 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, !13, i64 0}
!12 = !{!"_ZTS12PFFFTD_Setup", !13, i64 0, !13, i64 4, !7, i64 8, !14, i64 68, !6, i64 72, !6, i64 80, !6, i64 88}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTS17pffft_transform_t", !7, i64 0}
!15 = !{!13, !13, i64 0}
!16 = !{!12, !13, i64 4}
!17 = !{!12, !14, i64 68}
!18 = !{i64 0, i64 32, !19}
!19 = !{!7, !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = distinct !{!23, !21}
!24 = distinct !{!24, !21}


; 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.1 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [86 x i8], align 1
@__PRETTY_FUNCTION__.pffftd_zreorder = external hidden unnamed_addr constant [82 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 nounwind uwtable
define dso_local void @pffftd_zreorder(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #1 {
  %5 = alloca %struct.m256d, align 16
  %6 = alloca %struct.m256d, align 16
  %7 = alloca %struct.m256d, 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
  %16 = alloca %struct.m256d, align 16
  %17 = alloca %struct.m256d, align 16
  %18 = alloca %struct.m256d, align 16
  %19 = alloca %struct.m256d, align 16
  %20 = alloca %struct.m256d, align 16
  %21 = alloca %struct.m256d, align 16
  %22 = alloca %struct.m256d, align 16
  %23 = alloca %struct.m256d, align 16
  %24 = alloca %struct.m256d, align 16
  %25 = alloca %struct.m256d, align 16
  %26 = alloca %struct.m256d, align 16
  %27 = alloca %struct.m256d, align 16
  %28 = alloca %struct.m256d, align 16
  %29 = load i32, ptr %0, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %0, i64 4
  %31 = load i32, ptr %30, align 4, !tbaa !12
  %.not = icmp eq ptr %1, %2
  br i1 %.not, label %32, label %33

32:                                               ; preds = %4
  tail call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 1341, ptr noundef nonnull @__PRETTY_FUNCTION__.pffftd_zreorder) #5
  unreachable

33:                                               ; preds = %4
  %34 = getelementptr inbounds i8, ptr %0, i64 68
  %35 = load i32, ptr %34, align 4, !tbaa !13
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %37, label %129

37:                                               ; preds = %33
  %38 = sdiv i32 %29, 32
  %39 = icmp eq i32 %3, 0
  %40 = icmp sgt i32 %29, 31
  br i1 %39, label %.preheader, label %.preheader185

.preheader185:                                    ; preds = %37
  br i1 %40, label %.lr.ph193, label %._crit_edge

.lr.ph193:                                        ; preds = %.preheader185
  %41 = shl nuw nsw i32 %38, 2
  %42 = zext nneg i32 %41 to i64
  %wide.trip.count207 = zext nneg i32 %38 to i64
  br label %85

.preheader:                                       ; preds = %37
  br i1 %40, label %.lr.ph195, label %._crit_edge196

.lr.ph195:                                        ; preds = %.preheader
  %43 = shl nuw nsw i32 %38, 2
  %44 = zext nneg i32 %43 to i64
  %wide.trip.count212 = zext nneg i32 %38 to i64
  br label %45

45:                                               ; preds = %.lr.ph195, %45
  %indvars.iv209 = phi i64 [ 0, %.lr.ph195 ], [ %indvars.iv.next210, %45 ]
  %46 = shl nsw i64 %indvars.iv209, 3
  %47 = getelementptr inbounds %struct.m256d, ptr %1, i64 %46
  %48 = call noundef <2 x double> @_ZL21mm256_castpd256_pd1285m256d(ptr noundef nonnull byval(%struct.m256d) align 16 %47)
  %49 = or disjoint i64 %46, 1
  %50 = getelementptr inbounds %struct.m256d, ptr %1, i64 %49
  %51 = call noundef <2 x double> @_ZL21mm256_castpd256_pd1285m256d(ptr noundef nonnull byval(%struct.m256d) align 16 %50)
  %52 = call noundef <2 x double> @_ZL20mm256_extractf128_pd5m256di(ptr noundef nonnull byval(%struct.m256d) align 16 %47, i32 noundef 1)
  %53 = call noundef <2 x double> @_ZL20mm256_extractf128_pd5m256di(ptr noundef nonnull byval(%struct.m256d) align 16 %50, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #6
  %54 = shufflevector <2 x double> %48, <2 x double> %51, <2 x i32> <i32 0, i32 2>
  call void @_ZL21mm256_castpd128_pd256Dv2_d(ptr dead_on_unwind nonnull writable sret(%struct.m256d) align 16 %6, <2 x double> noundef %54)
  %55 = shufflevector <2 x double> %48, <2 x double> %51, <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 %5, ptr noundef nonnull byval(%struct.m256d) align 16 %6, <2 x double> noundef %55)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #6
  %56 = shufflevector <2 x double> %52, <2 x double> %53, <2 x i32> <i32 0, i32 2>
  call void @_ZL21mm256_castpd128_pd256Dv2_d(ptr dead_on_unwind nonnull writable sret(%struct.m256d) align 16 %8, <2 x double> noundef %56)
  %57 = shufflevector <2 x double> %52, <2 x double> %53, <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 %7, ptr noundef nonnull byval(%struct.m256d) align 16 %8, <2 x double> noundef %57)
  %58 = shl nuw nsw i64 %indvars.iv209, 1
  %59 = or disjoint i64 %58, 1
  %60 = getelementptr inbounds %struct.m256d, ptr %2, i64 %59
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %60, ptr noundef nonnull align 16 dereferenceable(32) %7, i64 32, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  %61 = getelementptr inbounds %struct.m256d, ptr %2, i64 %58
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %61, ptr noundef nonnull align 16 dereferenceable(32) %5, i64 32, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  %62 = or disjoint i64 %46, 4
  %63 = getelementptr inbounds %struct.m256d, ptr %1, i64 %62
  %64 = call noundef <2 x double> @_ZL21mm256_castpd256_pd1285m256d(ptr noundef nonnull byval(%struct.m256d) align 16 %63)
  %65 = or disjoint i64 %46, 5
  %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 = call noundef <2 x double> @_ZL20mm256_extractf128_pd5m256di(ptr noundef nonnull byval(%struct.m256d) align 16 %63, i32 noundef 1)
  %69 = call noundef <2 x double> @_ZL20mm256_extractf128_pd5m256di(ptr noundef nonnull byval(%struct.m256d) align 16 %66, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #6
  %70 = shufflevector <2 x double> %64, <2 x double> %67, <2 x i32> <i32 0, i32 2>
  call void @_ZL21mm256_castpd128_pd256Dv2_d(ptr dead_on_unwind nonnull writable sret(%struct.m256d) align 16 %10, <2 x double> noundef %70)
  %71 = shufflevector <2 x double> %64, <2 x double> %67, <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 %9, ptr noundef nonnull byval(%struct.m256d) align 16 %10, <2 x double> noundef %71)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #6
  %72 = shufflevector <2 x double> %68, <2 x double> %69, <2 x i32> <i32 0, i32 2>
  call void @_ZL21mm256_castpd128_pd256Dv2_d(ptr dead_on_unwind nonnull writable sret(%struct.m256d) align 16 %12, <2 x double> noundef %72)
  %73 = shufflevector <2 x double> %68, <2 x double> %69, <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 %11, ptr noundef nonnull byval(%struct.m256d) align 16 %12, <2 x double> noundef %73)
  %74 = add nuw nsw i64 %58, %44
  %75 = or disjoint i64 %74, 1
  %76 = getelementptr inbounds %struct.m256d, ptr %2, i64 %75
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %76, ptr noundef nonnull align 16 dereferenceable(32) %11, i64 32, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #6
  %77 = getelementptr inbounds %struct.m256d, ptr %2, i64 %74
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %77, ptr noundef nonnull align 16 dereferenceable(32) %9, i64 32, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  %indvars.iv.next210 = add nuw nsw i64 %indvars.iv209, 1
  %exitcond213.not = icmp eq i64 %indvars.iv.next210, %wide.trip.count212
  br i1 %exitcond213.not, label %._crit_edge196, label %45, !llvm.loop !16

._crit_edge196:                                   ; preds = %45, %.preheader
  %78 = getelementptr inbounds i8, ptr %1, i64 64
  %79 = sdiv i32 %29, 2
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds double, ptr %2, i64 %80
  call void @_ZL13reversed_copyiPK5m256diPS_(i32 noundef %38, ptr noundef nonnull %78, i32 noundef 8, ptr noundef %81)
  %82 = getelementptr inbounds i8, ptr %1, i64 192
  %83 = sext i32 %29 to i64
  %84 = getelementptr inbounds double, ptr %2, i64 %83
  call void @_ZL13reversed_copyiPK5m256diPS_(i32 noundef %38, ptr noundef nonnull %82, i32 noundef 8, ptr noundef %84)
  br label %.loopexit

85:                                               ; preds = %.lr.ph193, %85
  %indvars.iv204 = phi i64 [ 0, %.lr.ph193 ], [ %indvars.iv.next205, %85 ]
  %86 = shl nuw nsw i64 %indvars.iv204, 1
  %87 = getelementptr inbounds %struct.m256d, ptr %1, i64 %86
  %88 = call noundef <2 x double> @_ZL21mm256_castpd256_pd1285m256d(ptr noundef nonnull byval(%struct.m256d) align 16 %87)
  %89 = or disjoint i64 %86, 1
  %90 = getelementptr inbounds %struct.m256d, ptr %1, i64 %89
  %91 = call noundef <2 x double> @_ZL21mm256_castpd256_pd1285m256d(ptr noundef nonnull byval(%struct.m256d) align 16 %90)
  %92 = call noundef <2 x double> @_ZL20mm256_extractf128_pd5m256di(ptr noundef nonnull byval(%struct.m256d) align 16 %87, i32 noundef 1)
  %93 = call noundef <2 x double> @_ZL20mm256_extractf128_pd5m256di(ptr noundef nonnull byval(%struct.m256d) align 16 %90, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #6
  %94 = shufflevector <2 x double> %88, <2 x double> %92, <2 x i32> <i32 0, i32 2>
  call void @_ZL21mm256_castpd128_pd256Dv2_d(ptr dead_on_unwind nonnull writable sret(%struct.m256d) align 16 %14, <2 x double> noundef %94)
  %95 = shufflevector <2 x double> %91, <2 x double> %93, <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 %13, ptr noundef nonnull byval(%struct.m256d) align 16 %14, <2 x double> noundef %95)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #6
  %96 = shufflevector <2 x double> %88, <2 x double> %92, <2 x i32> <i32 1, i32 3>
  call void @_ZL21mm256_castpd128_pd256Dv2_d(ptr dead_on_unwind nonnull writable sret(%struct.m256d) align 16 %16, <2 x double> noundef %96)
  %97 = shufflevector <2 x double> %91, <2 x double> %93, <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 %15, ptr noundef nonnull byval(%struct.m256d) align 16 %16, <2 x double> noundef %97)
  %98 = shl nsw i64 %indvars.iv204, 3
  %99 = or disjoint i64 %98, 1
  %100 = getelementptr inbounds %struct.m256d, ptr %2, i64 %99
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %100, ptr noundef nonnull align 16 dereferenceable(32) %15, i64 32, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #6
  %101 = getelementptr inbounds %struct.m256d, ptr %2, i64 %98
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %101, ptr noundef nonnull align 16 dereferenceable(32) %13, i64 32, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #6
  %102 = add nuw nsw i64 %86, %42
  %103 = getelementptr inbounds %struct.m256d, ptr %1, i64 %102
  %104 = call noundef <2 x double> @_ZL21mm256_castpd256_pd1285m256d(ptr noundef nonnull byval(%struct.m256d) align 16 %103)
  %105 = or disjoint i64 %102, 1
  %106 = getelementptr inbounds %struct.m256d, ptr %1, i64 %105
  %107 = call noundef <2 x double> @_ZL21mm256_castpd256_pd1285m256d(ptr noundef nonnull byval(%struct.m256d) align 16 %106)
  %108 = call noundef <2 x double> @_ZL20mm256_extractf128_pd5m256di(ptr noundef nonnull byval(%struct.m256d) align 16 %103, i32 noundef 1)
  %109 = call noundef <2 x double> @_ZL20mm256_extractf128_pd5m256di(ptr noundef nonnull byval(%struct.m256d) align 16 %106, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #6
  %110 = shufflevector <2 x double> %104, <2 x double> %108, <2 x i32> <i32 0, i32 2>
  call void @_ZL21mm256_castpd128_pd256Dv2_d(ptr dead_on_unwind nonnull writable sret(%struct.m256d) align 16 %18, <2 x double> noundef %110)
  %111 = shufflevector <2 x double> %107, <2 x double> %109, <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 %17, ptr noundef nonnull byval(%struct.m256d) align 16 %18, <2 x double> noundef %111)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #6
  %112 = shufflevector <2 x double> %104, <2 x double> %108, <2 x i32> <i32 1, i32 3>
  call void @_ZL21mm256_castpd128_pd256Dv2_d(ptr dead_on_unwind nonnull writable sret(%struct.m256d) align 16 %20, <2 x double> noundef %112)
  %113 = shufflevector <2 x double> %107, <2 x double> %109, <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 %19, ptr noundef nonnull byval(%struct.m256d) align 16 %20, <2 x double> noundef %113)
  %114 = or disjoint i64 %98, 5
  %115 = getelementptr inbounds %struct.m256d, ptr %2, i64 %114
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %115, ptr noundef nonnull align 16 dereferenceable(32) %19, i64 32, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #6
  %116 = or disjoint i64 %98, 4
  %117 = getelementptr inbounds %struct.m256d, ptr %2, i64 %116
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %117, ptr noundef nonnull align 16 dereferenceable(32) %17, i64 32, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #6
  %indvars.iv.next205 = add nuw nsw i64 %indvars.iv204, 1
  %exitcond208.not = icmp eq i64 %indvars.iv.next205, %wide.trip.count207
  br i1 %exitcond208.not, label %._crit_edge, label %85, !llvm.loop !18

._crit_edge:                                      ; preds = %85, %.preheader185
  %118 = sdiv i32 %29, 4
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds double, ptr %1, i64 %119
  %121 = sext i32 %29 to i64
  %122 = getelementptr inbounds double, ptr %2, i64 %121
  %123 = getelementptr inbounds i8, ptr %122, i64 -192
  call void @_ZL15unreversed_copyiPK5m256dPS_i(i32 noundef %38, ptr noundef %120, ptr noundef nonnull %123, i32 noundef -8)
  %124 = mul nsw i32 %29, 3
  %125 = sdiv i32 %124, 4
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds double, ptr %1, i64 %126
  %128 = getelementptr inbounds i8, ptr %122, i64 -64
  call void @_ZL15unreversed_copyiPK5m256dPS_i(i32 noundef %38, ptr noundef %127, ptr noundef nonnull %128, i32 noundef -8)
  br label %.loopexit

129:                                              ; preds = %33
  %130 = icmp eq i32 %3, 0
  %131 = icmp sgt i32 %31, 0
  br i1 %130, label %.preheader186, label %.preheader187

.preheader187:                                    ; preds = %129
  br i1 %131, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %.preheader187
  %132 = lshr i32 %31, 2
  %wide.trip.count = zext nneg i32 %31 to i64
  br label %158

.preheader186:                                    ; preds = %129
  br i1 %131, label %.lr.ph191, label %.loopexit

.lr.ph191:                                        ; preds = %.preheader186
  %133 = lshr i32 %31, 2
  %wide.trip.count202 = zext nneg i32 %31 to i64
  br label %134

134:                                              ; preds = %.lr.ph191, %134
  %indvars.iv199 = phi i64 [ 0, %.lr.ph191 ], [ %indvars.iv.next200, %134 ]
  %135 = trunc nuw nsw i64 %indvars.iv199 to i32
  %136 = lshr i32 %135, 2
  %137 = and i32 %135, 3
  %138 = mul nuw nsw i32 %137, %133
  %139 = add nuw nsw i32 %138, %136
  %140 = shl nuw nsw i64 %indvars.iv199, 1
  %141 = getelementptr inbounds %struct.m256d, ptr %1, i64 %140
  %142 = call noundef <2 x double> @_ZL21mm256_castpd256_pd1285m256d(ptr noundef nonnull byval(%struct.m256d) align 16 %141)
  %143 = or disjoint i64 %140, 1
  %144 = getelementptr inbounds %struct.m256d, ptr %1, i64 %143
  %145 = call noundef <2 x double> @_ZL21mm256_castpd256_pd1285m256d(ptr noundef nonnull byval(%struct.m256d) align 16 %144)
  %146 = call noundef <2 x double> @_ZL20mm256_extractf128_pd5m256di(ptr noundef nonnull byval(%struct.m256d) align 16 %141, i32 noundef 1)
  %147 = call noundef <2 x double> @_ZL20mm256_extractf128_pd5m256di(ptr noundef nonnull byval(%struct.m256d) align 16 %144, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %21) #6
  %148 = shufflevector <2 x double> %142, <2 x double> %145, <2 x i32> <i32 0, i32 2>
  call void @_ZL21mm256_castpd128_pd256Dv2_d(ptr dead_on_unwind nonnull writable sret(%struct.m256d) align 16 %22, <2 x double> noundef %148)
  %149 = shufflevector <2 x double> %142, <2 x double> %145, <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 %21, ptr noundef nonnull byval(%struct.m256d) align 16 %22, <2 x double> noundef %149)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %23) #6
  %150 = shufflevector <2 x double> %146, <2 x double> %147, <2 x i32> <i32 0, i32 2>
  call void @_ZL21mm256_castpd128_pd256Dv2_d(ptr dead_on_unwind nonnull writable sret(%struct.m256d) align 16 %24, <2 x double> noundef %150)
  %151 = shufflevector <2 x double> %146, <2 x double> %147, <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 %23, ptr noundef nonnull byval(%struct.m256d) align 16 %24, <2 x double> noundef %151)
  %152 = shl nuw nsw i32 %139, 1
  %153 = or disjoint i32 %152, 1
  %154 = zext nneg i32 %153 to i64
  %155 = getelementptr inbounds %struct.m256d, ptr %2, i64 %154
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %155, ptr noundef nonnull align 16 dereferenceable(32) %23, i64 32, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #6
  %156 = zext nneg i32 %152 to i64
  %157 = getelementptr inbounds %struct.m256d, ptr %2, i64 %156
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %157, ptr noundef nonnull align 16 dereferenceable(32) %21, i64 32, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #6
  %indvars.iv.next200 = add nuw nsw i64 %indvars.iv199, 1
  %exitcond203.not = icmp eq i64 %indvars.iv.next200, %wide.trip.count202
  br i1 %exitcond203.not, label %.loopexit, label %134, !llvm.loop !19

158:                                              ; preds = %.lr.ph, %158
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %158 ]
  %159 = trunc nuw nsw i64 %indvars.iv to i32
  %160 = lshr i32 %159, 2
  %161 = and i32 %159, 3
  %162 = mul nuw nsw i32 %161, %132
  %163 = add nuw nsw i32 %162, %160
  %164 = shl nuw nsw i32 %163, 1
  %165 = zext nneg i32 %164 to i64
  %166 = getelementptr inbounds %struct.m256d, ptr %1, i64 %165
  %167 = call noundef <2 x double> @_ZL21mm256_castpd256_pd1285m256d(ptr noundef nonnull byval(%struct.m256d) align 16 %166)
  %168 = or disjoint i32 %164, 1
  %169 = zext nneg i32 %168 to i64
  %170 = getelementptr inbounds %struct.m256d, ptr %1, i64 %169
  %171 = call noundef <2 x double> @_ZL21mm256_castpd256_pd1285m256d(ptr noundef nonnull byval(%struct.m256d) align 16 %170)
  %172 = call noundef <2 x double> @_ZL20mm256_extractf128_pd5m256di(ptr noundef nonnull byval(%struct.m256d) align 16 %166, i32 noundef 1)
  %173 = call noundef <2 x double> @_ZL20mm256_extractf128_pd5m256di(ptr noundef nonnull byval(%struct.m256d) align 16 %170, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %25) #6
  %174 = shufflevector <2 x double> %167, <2 x double> %172, <2 x i32> <i32 0, i32 2>
  call void @_ZL21mm256_castpd128_pd256Dv2_d(ptr dead_on_unwind nonnull writable sret(%struct.m256d) align 16 %26, <2 x double> noundef %174)
  %175 = shufflevector <2 x double> %171, <2 x double> %173, <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 %25, ptr noundef nonnull byval(%struct.m256d) align 16 %26, <2 x double> noundef %175)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %27) #6
  %176 = shufflevector <2 x double> %167, <2 x double> %172, <2 x i32> <i32 1, i32 3>
  call void @_ZL21mm256_castpd128_pd256Dv2_d(ptr dead_on_unwind nonnull writable sret(%struct.m256d) align 16 %28, <2 x double> noundef %176)
  %177 = shufflevector <2 x double> %171, <2 x double> %173, <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 %27, ptr noundef nonnull byval(%struct.m256d) align 16 %28, <2 x double> noundef %177)
  %178 = shl nuw nsw i64 %indvars.iv, 1
  %179 = or disjoint i64 %178, 1
  %180 = getelementptr inbounds %struct.m256d, ptr %2, i64 %179
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %180, ptr noundef nonnull align 16 dereferenceable(32) %27, i64 32, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %27) #6
  %181 = getelementptr inbounds %struct.m256d, ptr %2, i64 %178
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %181, ptr noundef nonnull align 16 dereferenceable(32) %25, i64 32, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #6
  %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 %158, !llvm.loop !20

.loopexit:                                        ; preds = %158, %134, %.preheader187, %.preheader186, %._crit_edge196, %._crit_edge
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL15unreversed_copyiPK5m256dPS_i(i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { noreturn nounwind }
attributes #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!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 = !{!6, !7, i64 4}
!13 = !{!6, !10, i64 68}
!14 = !{i64 0, i64 32, !15}
!15 = !{!8, !8, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass