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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

@.str.1 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@__PRETTY_FUNCTION__._Z14pffft_zreorderPK11PFFFT_SetupPKfPf17pffft_direction_t = external hidden unnamed_addr constant [84 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z14pffft_zreorderPK11PFFFT_SetupPKfPf17pffft_direction_t(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  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
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  %22 = icmp ne ptr %20, %21
  br i1 %22, label %23, label %24

23:                                               ; preds = %4
  br label %26

24:                                               ; preds = %4
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 1937, ptr noundef @__PRETTY_FUNCTION__._Z14pffft_zreorderPK11PFFFT_SetupPKfPf17pffft_direction_t) #6
  unreachable

25:                                               ; No predecessors!
  br label %26

26:                                               ; preds = %25, %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.PFFFT_Setup, ptr %27, i32 0, i32 0
  %29 = load i32, ptr %28, align 64, !tbaa !11
  %30 = zext i32 %29 to i64
  store i64 %30, ptr %9, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.PFFFT_Setup, ptr %31, i32 0, i32 1
  %33 = load i32, ptr %32, align 4, !tbaa !19
  %34 = zext i32 %33 to i64
  store i64 %34, ptr %10, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %35, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %36, ptr %12, align 8, !tbaa !5
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.PFFFT_Setup, ptr %37, i32 0, i32 3
  %39 = load i32, ptr %38, align 4, !tbaa !20
  %40 = icmp eq i32 %39, 0
  br i1 %40, label %41, label %220

41:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %42 = load i64, ptr %9, align 8, !tbaa !18
  %43 = udiv i64 %42, 32
  store i64 %43, ptr %13, align 8, !tbaa !18
  %44 = load i32, ptr %8, align 4, !tbaa !9
  %45 = icmp eq i32 %44, 0
  br i1 %45, label %46, label %128

46:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  store i64 0, ptr %14, align 8, !tbaa !18
  br label %47

47:                                               ; preds = %109, %46
  %48 = load i64, ptr %14, align 8, !tbaa !18
  %49 = load i64, ptr %13, align 8, !tbaa !18
  %50 = icmp ult i64 %48, %49
  br i1 %50, label %52, label %51

51:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %112

52:                                               ; preds = %47
  %53 = load ptr, ptr %11, align 8, !tbaa !5
  %54 = load i64, ptr %14, align 8, !tbaa !18
  %55 = mul i64 %54, 8
  %56 = add i64 %55, 0
  %57 = getelementptr inbounds <4 x float>, ptr %53, i64 %56
  %58 = load <4 x float>, ptr %57, align 16, !tbaa !21
  %59 = load ptr, ptr %11, align 8, !tbaa !5
  %60 = load i64, ptr %14, align 8, !tbaa !18
  %61 = mul i64 %60, 8
  %62 = add i64 %61, 1
  %63 = getelementptr inbounds <4 x float>, ptr %59, i64 %62
  %64 = load <4 x float>, ptr %63, align 16, !tbaa !21
  %65 = load ptr, ptr %12, align 8, !tbaa !5
  %66 = load i64, ptr %13, align 8, !tbaa !18
  %67 = mul i64 0, %66
  %68 = load i64, ptr %14, align 8, !tbaa !18
  %69 = add i64 %67, %68
  %70 = mul i64 2, %69
  %71 = add i64 %70, 0
  %72 = getelementptr inbounds <4 x float>, ptr %65, i64 %71
  %73 = load ptr, ptr %12, align 8, !tbaa !5
  %74 = load i64, ptr %13, align 8, !tbaa !18
  %75 = mul i64 0, %74
  %76 = load i64, ptr %14, align 8, !tbaa !18
  %77 = add i64 %75, %76
  %78 = mul i64 2, %77
  %79 = add i64 %78, 1
  %80 = getelementptr inbounds <4 x float>, ptr %73, i64 %79
  call void @_ZN12_GLOBAL__N_111interleave2EDv4_fS0_RS0_S1_(<4 x float> noundef %58, <4 x float> noundef %64, ptr noundef nonnull align 16 dereferenceable(16) %72, ptr noundef nonnull align 16 dereferenceable(16) %80) #7
  %81 = load ptr, ptr %11, align 8, !tbaa !5
  %82 = load i64, ptr %14, align 8, !tbaa !18
  %83 = mul i64 %82, 8
  %84 = add i64 %83, 4
  %85 = getelementptr inbounds <4 x float>, ptr %81, i64 %84
  %86 = load <4 x float>, ptr %85, align 16, !tbaa !21
  %87 = load ptr, ptr %11, align 8, !tbaa !5
  %88 = load i64, ptr %14, align 8, !tbaa !18
  %89 = mul i64 %88, 8
  %90 = add i64 %89, 5
  %91 = getelementptr inbounds <4 x float>, ptr %87, i64 %90
  %92 = load <4 x float>, ptr %91, align 16, !tbaa !21
  %93 = load ptr, ptr %12, align 8, !tbaa !5
  %94 = load i64, ptr %13, align 8, !tbaa !18
  %95 = mul i64 2, %94
  %96 = load i64, ptr %14, align 8, !tbaa !18
  %97 = add i64 %95, %96
  %98 = mul i64 2, %97
  %99 = add i64 %98, 0
  %100 = getelementptr inbounds <4 x float>, ptr %93, i64 %99
  %101 = load ptr, ptr %12, align 8, !tbaa !5
  %102 = load i64, ptr %13, align 8, !tbaa !18
  %103 = mul i64 2, %102
  %104 = load i64, ptr %14, align 8, !tbaa !18
  %105 = add i64 %103, %104
  %106 = mul i64 2, %105
  %107 = add i64 %106, 1
  %108 = getelementptr inbounds <4 x float>, ptr %101, i64 %107
  call void @_ZN12_GLOBAL__N_111interleave2EDv4_fS0_RS0_S1_(<4 x float> noundef %86, <4 x float> noundef %92, ptr noundef nonnull align 16 dereferenceable(16) %100, ptr noundef nonnull align 16 dereferenceable(16) %108) #7
  br label %109

109:                                              ; preds = %52
  %110 = load i64, ptr %14, align 8, !tbaa !18
  %111 = add i64 %110, 1
  store i64 %111, ptr %14, align 8, !tbaa !18
  br label %47, !llvm.loop !22

112:                                              ; preds = %51
  %113 = load i64, ptr %13, align 8, !tbaa !18
  %114 = load ptr, ptr %11, align 8, !tbaa !5
  %115 = getelementptr inbounds <4 x float>, ptr %114, i64 2
  %116 = load ptr, ptr %12, align 8, !tbaa !5
  %117 = load i64, ptr %9, align 8, !tbaa !18
  %118 = udiv i64 %117, 4
  %119 = udiv i64 %118, 2
  %120 = getelementptr inbounds <4 x float>, ptr %116, i64 %119
  call void @_ZN12_GLOBAL__N_113reversed_copyEmPKDv4_fiPS0_(i64 noundef %113, ptr noundef %115, i32 noundef 8, ptr noundef %120)
  %121 = load i64, ptr %13, align 8, !tbaa !18
  %122 = load ptr, ptr %11, align 8, !tbaa !5
  %123 = getelementptr inbounds <4 x float>, ptr %122, i64 6
  %124 = load ptr, ptr %12, align 8, !tbaa !5
  %125 = load i64, ptr %9, align 8, !tbaa !18
  %126 = udiv i64 %125, 4
  %127 = getelementptr inbounds <4 x float>, ptr %124, i64 %126
  call void @_ZN12_GLOBAL__N_113reversed_copyEmPKDv4_fiPS0_(i64 noundef %121, ptr noundef %123, i32 noundef 8, ptr noundef %127)
  br label %219

128:                                              ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  store i64 0, ptr %15, align 8, !tbaa !18
  br label %129

129:                                              ; preds = %191, %128
  %130 = load i64, ptr %15, align 8, !tbaa !18
  %131 = load i64, ptr %13, align 8, !tbaa !18
  %132 = icmp ult i64 %130, %131
  br i1 %132, label %134, label %133

133:                                              ; preds = %129
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %194

134:                                              ; preds = %129
  %135 = load ptr, ptr %11, align 8, !tbaa !5
  %136 = load i64, ptr %13, align 8, !tbaa !18
  %137 = mul i64 0, %136
  %138 = load i64, ptr %15, align 8, !tbaa !18
  %139 = add i64 %137, %138
  %140 = mul i64 2, %139
  %141 = add i64 %140, 0
  %142 = getelementptr inbounds <4 x float>, ptr %135, i64 %141
  %143 = load <4 x float>, ptr %142, align 16, !tbaa !21
  %144 = load ptr, ptr %11, align 8, !tbaa !5
  %145 = load i64, ptr %13, align 8, !tbaa !18
  %146 = mul i64 0, %145
  %147 = load i64, ptr %15, align 8, !tbaa !18
  %148 = add i64 %146, %147
  %149 = mul i64 2, %148
  %150 = add i64 %149, 1
  %151 = getelementptr inbounds <4 x float>, ptr %144, i64 %150
  %152 = load <4 x float>, ptr %151, align 16, !tbaa !21
  %153 = load ptr, ptr %12, align 8, !tbaa !5
  %154 = load i64, ptr %15, align 8, !tbaa !18
  %155 = mul i64 %154, 8
  %156 = add i64 %155, 0
  %157 = getelementptr inbounds <4 x float>, ptr %153, i64 %156
  %158 = load ptr, ptr %12, align 8, !tbaa !5
  %159 = load i64, ptr %15, align 8, !tbaa !18
  %160 = mul i64 %159, 8
  %161 = add i64 %160, 1
  %162 = getelementptr inbounds <4 x float>, ptr %158, i64 %161
  call void @_ZN12_GLOBAL__N_113uninterleave2EDv4_fS0_RS0_S1_(<4 x float> noundef %143, <4 x float> noundef %152, ptr noundef nonnull align 16 dereferenceable(16) %157, ptr noundef nonnull align 16 dereferenceable(16) %162) #7
  %163 = load ptr, ptr %11, align 8, !tbaa !5
  %164 = load i64, ptr %13, align 8, !tbaa !18
  %165 = mul i64 2, %164
  %166 = load i64, ptr %15, align 8, !tbaa !18
  %167 = add i64 %165, %166
  %168 = mul i64 2, %167
  %169 = add i64 %168, 0
  %170 = getelementptr inbounds <4 x float>, ptr %163, i64 %169
  %171 = load <4 x float>, ptr %170, align 16, !tbaa !21
  %172 = load ptr, ptr %11, align 8, !tbaa !5
  %173 = load i64, ptr %13, align 8, !tbaa !18
  %174 = mul i64 2, %173
  %175 = load i64, ptr %15, align 8, !tbaa !18
  %176 = add i64 %174, %175
  %177 = mul i64 2, %176
  %178 = add i64 %177, 1
  %179 = getelementptr inbounds <4 x float>, ptr %172, i64 %178
  %180 = load <4 x float>, ptr %179, align 16, !tbaa !21
  %181 = load ptr, ptr %12, align 8, !tbaa !5
  %182 = load i64, ptr %15, align 8, !tbaa !18
  %183 = mul i64 %182, 8
  %184 = add i64 %183, 4
  %185 = getelementptr inbounds <4 x float>, ptr %181, i64 %184
  %186 = load ptr, ptr %12, align 8, !tbaa !5
  %187 = load i64, ptr %15, align 8, !tbaa !18
  %188 = mul i64 %187, 8
  %189 = add i64 %188, 5
  %190 = getelementptr inbounds <4 x float>, ptr %186, i64 %189
  call void @_ZN12_GLOBAL__N_113uninterleave2EDv4_fS0_RS0_S1_(<4 x float> noundef %171, <4 x float> noundef %180, ptr noundef nonnull align 16 dereferenceable(16) %185, ptr noundef nonnull align 16 dereferenceable(16) %190) #7
  br label %191

191:                                              ; preds = %134
  %192 = load i64, ptr %15, align 8, !tbaa !18
  %193 = add i64 %192, 1
  store i64 %193, ptr %15, align 8, !tbaa !18
  br label %129, !llvm.loop !24

194:                                              ; preds = %133
  %195 = load i64, ptr %13, align 8, !tbaa !18
  %196 = load ptr, ptr %11, align 8, !tbaa !5
  %197 = load i64, ptr %9, align 8, !tbaa !18
  %198 = udiv i64 %197, 4
  %199 = udiv i64 %198, 4
  %200 = getelementptr inbounds <4 x float>, ptr %196, i64 %199
  %201 = load ptr, ptr %12, align 8, !tbaa !5
  %202 = load i64, ptr %9, align 8, !tbaa !18
  %203 = udiv i64 %202, 4
  %204 = getelementptr inbounds <4 x float>, ptr %201, i64 %203
  %205 = getelementptr inbounds <4 x float>, ptr %204, i64 -6
  call void @_ZN12_GLOBAL__N_115unreversed_copyEmPKDv4_fPS0_i(i64 noundef %195, ptr noundef %200, ptr noundef %205, i32 noundef -8)
  %206 = load i64, ptr %13, align 8, !tbaa !18
  %207 = load ptr, ptr %11, align 8, !tbaa !5
  %208 = call noundef i64 @_Zli3_uzy(i64 noundef 3) #7
  %209 = load i64, ptr %9, align 8, !tbaa !18
  %210 = mul i64 %208, %209
  %211 = udiv i64 %210, 4
  %212 = udiv i64 %211, 4
  %213 = getelementptr inbounds <4 x float>, ptr %207, i64 %212
  %214 = load ptr, ptr %12, align 8, !tbaa !5
  %215 = load i64, ptr %9, align 8, !tbaa !18
  %216 = udiv i64 %215, 4
  %217 = getelementptr inbounds <4 x float>, ptr %214, i64 %216
  %218 = getelementptr inbounds <4 x float>, ptr %217, i64 -2
  call void @_ZN12_GLOBAL__N_115unreversed_copyEmPKDv4_fPS0_i(i64 noundef %206, ptr noundef %213, ptr noundef %218, i32 noundef -8)
  br label %219

219:                                              ; preds = %194, %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %302

220:                                              ; preds = %26
  %221 = load i32, ptr %8, align 4, !tbaa !9
  %222 = icmp eq i32 %221, 0
  br i1 %222, label %223, label %262

223:                                              ; preds = %220
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  store i64 0, ptr %16, align 8, !tbaa !18
  br label %224

224:                                              ; preds = %258, %223
  %225 = load i64, ptr %16, align 8, !tbaa !18
  %226 = load i64, ptr %10, align 8, !tbaa !18
  %227 = icmp ult i64 %225, %226
  br i1 %227, label %229, label %228

228:                                              ; preds = %224
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %261

229:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %230 = load i64, ptr %16, align 8, !tbaa !18
  %231 = udiv i64 %230, 4
  %232 = load i64, ptr %16, align 8, !tbaa !18
  %233 = urem i64 %232, 4
  %234 = load i64, ptr %10, align 8, !tbaa !18
  %235 = udiv i64 %234, 4
  %236 = mul i64 %233, %235
  %237 = add i64 %231, %236
  store i64 %237, ptr %17, align 8, !tbaa !18
  %238 = load ptr, ptr %11, align 8, !tbaa !5
  %239 = load i64, ptr %16, align 8, !tbaa !18
  %240 = mul i64 %239, 2
  %241 = getelementptr inbounds <4 x float>, ptr %238, i64 %240
  %242 = load <4 x float>, ptr %241, align 16, !tbaa !21
  %243 = load ptr, ptr %11, align 8, !tbaa !5
  %244 = load i64, ptr %16, align 8, !tbaa !18
  %245 = mul i64 %244, 2
  %246 = add i64 %245, 1
  %247 = getelementptr inbounds <4 x float>, ptr %243, i64 %246
  %248 = load <4 x float>, ptr %247, align 16, !tbaa !21
  %249 = load ptr, ptr %12, align 8, !tbaa !5
  %250 = load i64, ptr %17, align 8, !tbaa !18
  %251 = mul i64 %250, 2
  %252 = getelementptr inbounds <4 x float>, ptr %249, i64 %251
  %253 = load ptr, ptr %12, align 8, !tbaa !5
  %254 = load i64, ptr %17, align 8, !tbaa !18
  %255 = mul i64 %254, 2
  %256 = add i64 %255, 1
  %257 = getelementptr inbounds <4 x float>, ptr %253, i64 %256
  call void @_ZN12_GLOBAL__N_111interleave2EDv4_fS0_RS0_S1_(<4 x float> noundef %242, <4 x float> noundef %248, ptr noundef nonnull align 16 dereferenceable(16) %252, ptr noundef nonnull align 16 dereferenceable(16) %257) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %258

258:                                              ; preds = %229
  %259 = load i64, ptr %16, align 8, !tbaa !18
  %260 = add i64 %259, 1
  store i64 %260, ptr %16, align 8, !tbaa !18
  br label %224, !llvm.loop !25

261:                                              ; preds = %228
  br label %301

262:                                              ; preds = %220
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  store i64 0, ptr %18, align 8, !tbaa !18
  br label %263

263:                                              ; preds = %297, %262
  %264 = load i64, ptr %18, align 8, !tbaa !18
  %265 = load i64, ptr %10, align 8, !tbaa !18
  %266 = icmp ult i64 %264, %265
  br i1 %266, label %268, label %267

267:                                              ; preds = %263
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %300

268:                                              ; preds = %263
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %269 = load i64, ptr %18, align 8, !tbaa !18
  %270 = udiv i64 %269, 4
  %271 = load i64, ptr %18, align 8, !tbaa !18
  %272 = urem i64 %271, 4
  %273 = load i64, ptr %10, align 8, !tbaa !18
  %274 = udiv i64 %273, 4
  %275 = mul i64 %272, %274
  %276 = add i64 %270, %275
  store i64 %276, ptr %19, align 8, !tbaa !18
  %277 = load ptr, ptr %11, align 8, !tbaa !5
  %278 = load i64, ptr %19, align 8, !tbaa !18
  %279 = mul i64 %278, 2
  %280 = getelementptr inbounds <4 x float>, ptr %277, i64 %279
  %281 = load <4 x float>, ptr %280, align 16, !tbaa !21
  %282 = load ptr, ptr %11, align 8, !tbaa !5
  %283 = load i64, ptr %19, align 8, !tbaa !18
  %284 = mul i64 %283, 2
  %285 = add i64 %284, 1
  %286 = getelementptr inbounds <4 x float>, ptr %282, i64 %285
  %287 = load <4 x float>, ptr %286, align 16, !tbaa !21
  %288 = load ptr, ptr %12, align 8, !tbaa !5
  %289 = load i64, ptr %18, align 8, !tbaa !18
  %290 = mul i64 %289, 2
  %291 = getelementptr inbounds <4 x float>, ptr %288, i64 %290
  %292 = load ptr, ptr %12, align 8, !tbaa !5
  %293 = load i64, ptr %18, align 8, !tbaa !18
  %294 = mul i64 %293, 2
  %295 = add i64 %294, 1
  %296 = getelementptr inbounds <4 x float>, ptr %292, i64 %295
  call void @_ZN12_GLOBAL__N_113uninterleave2EDv4_fS0_RS0_S1_(<4 x float> noundef %281, <4 x float> noundef %287, ptr noundef nonnull align 16 dereferenceable(16) %291, ptr noundef nonnull align 16 dereferenceable(16) %296) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %297

297:                                              ; preds = %268
  %298 = load i64, ptr %18, align 8, !tbaa !18
  %299 = add i64 %298, 1
  store i64 %299, ptr %18, align 8, !tbaa !18
  br label %263, !llvm.loop !26

300:                                              ; preds = %267
  br label %301

301:                                              ; preds = %300, %261
  br label %302

302:                                              ; preds = %301, %219
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN12_GLOBAL__N_113reversed_copyEmPKDv4_fiPS0_(i64 noundef, ptr noundef, i32 noundef, ptr noalias noundef) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN12_GLOBAL__N_115unreversed_copyEmPKDv4_fPS0_i(i64 noundef, ptr noundef, ptr noalias noundef, i32 noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Zli3_uzy(i64 noundef) #5

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 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 #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { noreturn nounwind }
attributes #7 = { 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 = !{!"_ZTS11PFFFT_Setup", !13, i64 0, !13, i64 4, !14, i64 8, !15, i64 68, !6, i64 72, !16, i64 80, !7, i64 128}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTSSt5arrayIjLm15EE", !7, i64 0}
!15 = !{!"_ZTS17pffft_transform_t", !7, i64 0}
!16 = !{!"_ZTSN2al4spanIDv4_fLm18446744073709551615EEE", !6, i64 0, !17, i64 8}
!17 = !{!"long", !7, i64 0}
!18 = !{!17, !17, i64 0}
!19 = !{!12, !13, i64 4}
!20 = !{!12, !15, i64 68}
!21 = !{!7, !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = distinct !{!25, !23}
!26 = distinct !{!26, !23}


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

@.str.1 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@__PRETTY_FUNCTION__._Z14pffft_zreorderPK11PFFFT_SetupPKfPf17pffft_direction_t = external hidden unnamed_addr constant [84 x i8], align 1

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z14pffft_zreorderPK11PFFFT_SetupPKfPf17pffft_direction_t(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #1 {
  %.not = icmp eq ptr %1, %2
  br i1 %.not, label %5, label %6

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

6:                                                ; preds = %4
  %7 = load i32, ptr %0, align 64, !tbaa !5
  %8 = zext i32 %7 to i64
  %9 = getelementptr inbounds i8, ptr %0, i64 4
  %10 = load i32, ptr %9, align 4, !tbaa !15
  %11 = zext i32 %10 to i64
  %12 = getelementptr inbounds i8, ptr %0, i64 68
  %13 = load i32, ptr %12, align 4, !tbaa !16
  %14 = icmp eq i32 %13, 0
  br i1 %14, label %15, label %80

15:                                               ; preds = %6
  %16 = lshr i64 %8, 5
  %17 = icmp eq i32 %3, 0
  %.not124 = icmp ult i32 %7, 32
  br i1 %17, label %.preheader, label %.preheader109

.preheader109:                                    ; preds = %15
  br i1 %.not124, label %._crit_edge, label %.lr.ph117

.lr.ph117:                                        ; preds = %.preheader109
  %18 = shl nuw nsw i64 %16, 2
  br label %58

.preheader:                                       ; preds = %15
  br i1 %.not124, label %._crit_edge120, label %.lr.ph119

.lr.ph119:                                        ; preds = %.preheader
  %19 = shl nuw nsw i64 %16, 2
  br label %26

._crit_edge120:                                   ; preds = %26, %.preheader
  %20 = getelementptr inbounds i8, ptr %1, i64 32
  %21 = lshr i64 %8, 2
  %22 = lshr i64 %8, 3
  %23 = getelementptr inbounds <4 x float>, ptr %2, i64 %22
  tail call void @_ZN12_GLOBAL__N_113reversed_copyEmPKDv4_fiPS0_(i64 noundef %16, ptr noundef nonnull %20, i32 noundef 8, ptr noundef %23)
  %24 = getelementptr inbounds i8, ptr %1, i64 96
  %25 = getelementptr inbounds <4 x float>, ptr %2, i64 %21
  tail call void @_ZN12_GLOBAL__N_113reversed_copyEmPKDv4_fiPS0_(i64 noundef %16, ptr noundef nonnull %24, i32 noundef 8, ptr noundef %25)
  br label %.loopexit

26:                                               ; preds = %.lr.ph119, %26
  %.0118 = phi i64 [ 0, %.lr.ph119 ], [ %47, %26 ]
  %27 = shl nuw nsw i64 %.0118, 3
  %28 = getelementptr inbounds <4 x float>, ptr %1, i64 %27
  %29 = load <4 x float>, ptr %28, align 16, !tbaa !17
  %30 = or disjoint i64 %27, 1
  %31 = getelementptr inbounds <4 x float>, ptr %1, i64 %30
  %32 = load <4 x float>, ptr %31, align 16, !tbaa !17
  %33 = shl nuw nsw i64 %.0118, 1
  %34 = getelementptr inbounds <4 x float>, ptr %2, i64 %33
  %35 = or disjoint i64 %33, 1
  %36 = getelementptr inbounds <4 x float>, ptr %2, i64 %35
  tail call void @_ZN12_GLOBAL__N_111interleave2EDv4_fS0_RS0_S1_(<4 x float> noundef %29, <4 x float> noundef %32, ptr noundef nonnull align 16 dereferenceable(16) %34, ptr noundef nonnull align 16 dereferenceable(16) %36) #5
  %37 = or disjoint i64 %27, 4
  %38 = getelementptr inbounds <4 x float>, ptr %1, i64 %37
  %39 = load <4 x float>, ptr %38, align 16, !tbaa !17
  %40 = or disjoint i64 %27, 5
  %41 = getelementptr inbounds <4 x float>, ptr %1, i64 %40
  %42 = load <4 x float>, ptr %41, align 16, !tbaa !17
  %43 = add nuw nsw i64 %33, %19
  %44 = getelementptr inbounds <4 x float>, ptr %2, i64 %43
  %45 = or disjoint i64 %43, 1
  %46 = getelementptr inbounds <4 x float>, ptr %2, i64 %45
  tail call void @_ZN12_GLOBAL__N_111interleave2EDv4_fS0_RS0_S1_(<4 x float> noundef %39, <4 x float> noundef %42, ptr noundef nonnull align 16 dereferenceable(16) %44, ptr noundef nonnull align 16 dereferenceable(16) %46) #5
  %47 = add nuw nsw i64 %.0118, 1
  %exitcond128.not = icmp eq i64 %47, %16
  br i1 %exitcond128.not, label %._crit_edge120, label %26, !llvm.loop !18

._crit_edge:                                      ; preds = %58, %.preheader109
  %48 = lshr i64 %8, 2
  %49 = lshr i64 %8, 4
  %50 = getelementptr inbounds <4 x float>, ptr %1, i64 %49
  %51 = getelementptr inbounds <4 x float>, ptr %2, i64 %48
  %52 = getelementptr inbounds i8, ptr %51, i64 -96
  tail call void @_ZN12_GLOBAL__N_115unreversed_copyEmPKDv4_fPS0_i(i64 noundef %16, ptr noundef %50, ptr noundef nonnull %52, i32 noundef -8)
  %53 = tail call noundef i64 @_Zli3_uzy(i64 noundef 3) #5
  %54 = mul i64 %53, %8
  %55 = lshr i64 %54, 4
  %56 = getelementptr inbounds <4 x float>, ptr %1, i64 %55
  %57 = getelementptr inbounds i8, ptr %51, i64 -32
  tail call void @_ZN12_GLOBAL__N_115unreversed_copyEmPKDv4_fPS0_i(i64 noundef %16, ptr noundef %56, ptr noundef nonnull %57, i32 noundef -8)
  br label %.loopexit

58:                                               ; preds = %.lr.ph117, %58
  %.0102116 = phi i64 [ 0, %.lr.ph117 ], [ %79, %58 ]
  %59 = shl nuw nsw i64 %.0102116, 1
  %60 = getelementptr inbounds <4 x float>, ptr %1, i64 %59
  %61 = load <4 x float>, ptr %60, align 16, !tbaa !17
  %62 = or disjoint i64 %59, 1
  %63 = getelementptr inbounds <4 x float>, ptr %1, i64 %62
  %64 = load <4 x float>, ptr %63, align 16, !tbaa !17
  %65 = shl nuw nsw i64 %.0102116, 3
  %66 = getelementptr inbounds <4 x float>, ptr %2, i64 %65
  %67 = or disjoint i64 %65, 1
  %68 = getelementptr inbounds <4 x float>, ptr %2, i64 %67
  tail call void @_ZN12_GLOBAL__N_113uninterleave2EDv4_fS0_RS0_S1_(<4 x float> noundef %61, <4 x float> noundef %64, ptr noundef nonnull align 16 dereferenceable(16) %66, ptr noundef nonnull align 16 dereferenceable(16) %68) #5
  %69 = add nuw nsw i64 %59, %18
  %70 = getelementptr inbounds <4 x float>, ptr %1, i64 %69
  %71 = load <4 x float>, ptr %70, align 16, !tbaa !17
  %72 = or disjoint i64 %69, 1
  %73 = getelementptr inbounds <4 x float>, ptr %1, i64 %72
  %74 = load <4 x float>, ptr %73, align 16, !tbaa !17
  %75 = or disjoint i64 %65, 4
  %76 = getelementptr inbounds <4 x float>, ptr %2, i64 %75
  %77 = or disjoint i64 %65, 5
  %78 = getelementptr inbounds <4 x float>, ptr %2, i64 %77
  tail call void @_ZN12_GLOBAL__N_113uninterleave2EDv4_fS0_RS0_S1_(<4 x float> noundef %71, <4 x float> noundef %74, ptr noundef nonnull align 16 dereferenceable(16) %76, ptr noundef nonnull align 16 dereferenceable(16) %78) #5
  %79 = add nuw nsw i64 %.0102116, 1
  %exitcond127.not = icmp eq i64 %79, %16
  br i1 %exitcond127.not, label %._crit_edge, label %58, !llvm.loop !20

80:                                               ; preds = %6
  %81 = icmp eq i32 %3, 0
  %.not122 = icmp eq i32 %10, 0
  br i1 %81, label %.preheader110, label %.preheader111

.preheader111:                                    ; preds = %80
  br i1 %.not122, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader111
  %82 = lshr i64 %11, 2
  br label %100

.preheader110:                                    ; preds = %80
  br i1 %.not122, label %.loopexit, label %.lr.ph115

.lr.ph115:                                        ; preds = %.preheader110
  %83 = lshr i64 %11, 2
  br label %84

84:                                               ; preds = %.lr.ph115, %84
  %.0103114 = phi i64 [ 0, %.lr.ph115 ], [ %99, %84 ]
  %85 = lshr i64 %.0103114, 2
  %86 = and i64 %.0103114, 3
  %87 = mul nuw nsw i64 %86, %83
  %88 = add nuw nsw i64 %87, %85
  %89 = shl nuw nsw i64 %.0103114, 1
  %90 = getelementptr inbounds <4 x float>, ptr %1, i64 %89
  %91 = load <4 x float>, ptr %90, align 16, !tbaa !17
  %92 = or disjoint i64 %89, 1
  %93 = getelementptr inbounds <4 x float>, ptr %1, i64 %92
  %94 = load <4 x float>, ptr %93, align 16, !tbaa !17
  %95 = shl nuw nsw i64 %88, 1
  %96 = getelementptr inbounds <4 x float>, ptr %2, i64 %95
  %97 = or disjoint i64 %95, 1
  %98 = getelementptr inbounds <4 x float>, ptr %2, i64 %97
  tail call void @_ZN12_GLOBAL__N_111interleave2EDv4_fS0_RS0_S1_(<4 x float> noundef %91, <4 x float> noundef %94, ptr noundef nonnull align 16 dereferenceable(16) %96, ptr noundef nonnull align 16 dereferenceable(16) %98) #5
  %99 = add nuw nsw i64 %.0103114, 1
  %exitcond126.not = icmp eq i64 %99, %11
  br i1 %exitcond126.not, label %.loopexit, label %84, !llvm.loop !21

100:                                              ; preds = %.lr.ph, %100
  %.0101113 = phi i64 [ 0, %.lr.ph ], [ %115, %100 ]
  %101 = lshr i64 %.0101113, 2
  %102 = and i64 %.0101113, 3
  %103 = mul nuw nsw i64 %102, %82
  %104 = add nuw nsw i64 %103, %101
  %105 = shl nuw nsw i64 %104, 1
  %106 = getelementptr inbounds <4 x float>, ptr %1, i64 %105
  %107 = load <4 x float>, ptr %106, align 16, !tbaa !17
  %108 = or disjoint i64 %105, 1
  %109 = getelementptr inbounds <4 x float>, ptr %1, i64 %108
  %110 = load <4 x float>, ptr %109, align 16, !tbaa !17
  %111 = shl nuw nsw i64 %.0101113, 1
  %112 = getelementptr inbounds <4 x float>, ptr %2, i64 %111
  %113 = or disjoint i64 %111, 1
  %114 = getelementptr inbounds <4 x float>, ptr %2, i64 %113
  tail call void @_ZN12_GLOBAL__N_113uninterleave2EDv4_fS0_RS0_S1_(<4 x float> noundef %107, <4 x float> noundef %110, ptr noundef nonnull align 16 dereferenceable(16) %112, ptr noundef nonnull align 16 dereferenceable(16) %114) #5
  %115 = add nuw nsw i64 %.0101113, 1
  %exitcond.not = icmp eq i64 %115, %11
  br i1 %exitcond.not, label %.loopexit, label %100, !llvm.loop !22

.loopexit:                                        ; preds = %100, %84, %.preheader111, %.preheader110, %._crit_edge120, %._crit_edge
  ret void
}

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Zli3_uzy(i64 noundef) local_unnamed_addr #3

attributes #0 = { 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 #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn nounwind }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTS11PFFFT_Setup", !7, i64 0, !7, i64 4, !10, i64 8, !11, i64 68, !12, i64 72, !13, i64 80, !8, i64 128}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt5arrayIjLm15EE", !8, i64 0}
!11 = !{!"_ZTS17pffft_transform_t", !8, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"_ZTSN2al4spanIDv4_fLm18446744073709551615EEE", !12, i64 0, !14, i64 8}
!14 = !{!"long", !8, i64 0}
!15 = !{!6, !7, i64 4}
!16 = !{!6, !11, i64 68}
!17 = !{!8, !8, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}
!22 = distinct !{!22, !19}


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