; LLVM IR from clangen/musikcube :: src/plugins/supereqdsp/supereq (Fftsg_fl)

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

; 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: nounwind uwtable
define dso_local void @cftf040(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca float, align 4
  %4 = alloca float, align 4
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #2
  %11 = load ptr, ptr %2, align 8, !tbaa !5
  %12 = getelementptr inbounds float, ptr %11, i64 0
  %13 = load float, ptr %12, align 4, !tbaa !9
  %14 = load ptr, ptr %2, align 8, !tbaa !5
  %15 = getelementptr inbounds float, ptr %14, i64 4
  %16 = load float, ptr %15, align 4, !tbaa !9
  %17 = fadd float %13, %16
  store float %17, ptr %3, align 4, !tbaa !9
  %18 = load ptr, ptr %2, align 8, !tbaa !5
  %19 = getelementptr inbounds float, ptr %18, i64 1
  %20 = load float, ptr %19, align 4, !tbaa !9
  %21 = load ptr, ptr %2, align 8, !tbaa !5
  %22 = getelementptr inbounds float, ptr %21, i64 5
  %23 = load float, ptr %22, align 4, !tbaa !9
  %24 = fadd float %20, %23
  store float %24, ptr %4, align 4, !tbaa !9
  %25 = load ptr, ptr %2, align 8, !tbaa !5
  %26 = getelementptr inbounds float, ptr %25, i64 0
  %27 = load float, ptr %26, align 4, !tbaa !9
  %28 = load ptr, ptr %2, align 8, !tbaa !5
  %29 = getelementptr inbounds float, ptr %28, i64 4
  %30 = load float, ptr %29, align 4, !tbaa !9
  %31 = fsub float %27, %30
  store float %31, ptr %5, align 4, !tbaa !9
  %32 = load ptr, ptr %2, align 8, !tbaa !5
  %33 = getelementptr inbounds float, ptr %32, i64 1
  %34 = load float, ptr %33, align 4, !tbaa !9
  %35 = load ptr, ptr %2, align 8, !tbaa !5
  %36 = getelementptr inbounds float, ptr %35, i64 5
  %37 = load float, ptr %36, align 4, !tbaa !9
  %38 = fsub float %34, %37
  store float %38, ptr %6, align 4, !tbaa !9
  %39 = load ptr, ptr %2, align 8, !tbaa !5
  %40 = getelementptr inbounds float, ptr %39, i64 2
  %41 = load float, ptr %40, align 4, !tbaa !9
  %42 = load ptr, ptr %2, align 8, !tbaa !5
  %43 = getelementptr inbounds float, ptr %42, i64 6
  %44 = load float, ptr %43, align 4, !tbaa !9
  %45 = fadd float %41, %44
  store float %45, ptr %7, align 4, !tbaa !9
  %46 = load ptr, ptr %2, align 8, !tbaa !5
  %47 = getelementptr inbounds float, ptr %46, i64 3
  %48 = load float, ptr %47, align 4, !tbaa !9
  %49 = load ptr, ptr %2, align 8, !tbaa !5
  %50 = getelementptr inbounds float, ptr %49, i64 7
  %51 = load float, ptr %50, align 4, !tbaa !9
  %52 = fadd float %48, %51
  store float %52, ptr %8, align 4, !tbaa !9
  %53 = load ptr, ptr %2, align 8, !tbaa !5
  %54 = getelementptr inbounds float, ptr %53, i64 2
  %55 = load float, ptr %54, align 4, !tbaa !9
  %56 = load ptr, ptr %2, align 8, !tbaa !5
  %57 = getelementptr inbounds float, ptr %56, i64 6
  %58 = load float, ptr %57, align 4, !tbaa !9
  %59 = fsub float %55, %58
  store float %59, ptr %9, align 4, !tbaa !9
  %60 = load ptr, ptr %2, align 8, !tbaa !5
  %61 = getelementptr inbounds float, ptr %60, i64 3
  %62 = load float, ptr %61, align 4, !tbaa !9
  %63 = load ptr, ptr %2, align 8, !tbaa !5
  %64 = getelementptr inbounds float, ptr %63, i64 7
  %65 = load float, ptr %64, align 4, !tbaa !9
  %66 = fsub float %62, %65
  store float %66, ptr %10, align 4, !tbaa !9
  %67 = load float, ptr %3, align 4, !tbaa !9
  %68 = load float, ptr %7, align 4, !tbaa !9
  %69 = fadd float %67, %68
  %70 = load ptr, ptr %2, align 8, !tbaa !5
  %71 = getelementptr inbounds float, ptr %70, i64 0
  store float %69, ptr %71, align 4, !tbaa !9
  %72 = load float, ptr %4, align 4, !tbaa !9
  %73 = load float, ptr %8, align 4, !tbaa !9
  %74 = fadd float %72, %73
  %75 = load ptr, ptr %2, align 8, !tbaa !5
  %76 = getelementptr inbounds float, ptr %75, i64 1
  store float %74, ptr %76, align 4, !tbaa !9
  %77 = load float, ptr %3, align 4, !tbaa !9
  %78 = load float, ptr %7, align 4, !tbaa !9
  %79 = fsub float %77, %78
  %80 = load ptr, ptr %2, align 8, !tbaa !5
  %81 = getelementptr inbounds float, ptr %80, i64 4
  store float %79, ptr %81, align 4, !tbaa !9
  %82 = load float, ptr %4, align 4, !tbaa !9
  %83 = load float, ptr %8, align 4, !tbaa !9
  %84 = fsub float %82, %83
  %85 = load ptr, ptr %2, align 8, !tbaa !5
  %86 = getelementptr inbounds float, ptr %85, i64 5
  store float %84, ptr %86, align 4, !tbaa !9
  %87 = load float, ptr %5, align 4, !tbaa !9
  %88 = load float, ptr %10, align 4, !tbaa !9
  %89 = fsub float %87, %88
  %90 = load ptr, ptr %2, align 8, !tbaa !5
  %91 = getelementptr inbounds float, ptr %90, i64 2
  store float %89, ptr %91, align 4, !tbaa !9
  %92 = load float, ptr %6, align 4, !tbaa !9
  %93 = load float, ptr %9, align 4, !tbaa !9
  %94 = fadd float %92, %93
  %95 = load ptr, ptr %2, align 8, !tbaa !5
  %96 = getelementptr inbounds float, ptr %95, i64 3
  store float %94, ptr %96, align 4, !tbaa !9
  %97 = load float, ptr %5, align 4, !tbaa !9
  %98 = load float, ptr %10, align 4, !tbaa !9
  %99 = fadd float %97, %98
  %100 = load ptr, ptr %2, align 8, !tbaa !5
  %101 = getelementptr inbounds float, ptr %100, i64 6
  store float %99, ptr %101, align 4, !tbaa !9
  %102 = load float, ptr %6, align 4, !tbaa !9
  %103 = load float, ptr %9, align 4, !tbaa !9
  %104 = fsub float %102, %103
  %105 = load ptr, ptr %2, align 8, !tbaa !5
  %106 = getelementptr inbounds float, ptr %105, i64 7
  store float %104, ptr %106, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #2
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}


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

; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) uwtable
define dso_local void @cftf040(ptr nocapture noundef %0) local_unnamed_addr #0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 16
  %3 = getelementptr inbounds i8, ptr %0, i64 8
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  %5 = load <2 x float>, ptr %0, align 4, !tbaa !5
  %6 = shufflevector <2 x float> %5, <2 x float> poison, <4 x i32> <i32 0, i32 1, i32 0, i32 1>
  %7 = load <2 x float>, ptr %2, align 4, !tbaa !5
  %8 = shufflevector <2 x float> %7, <2 x float> poison, <4 x i32> <i32 0, i32 1, i32 0, i32 1>
  %9 = fadd <4 x float> %6, %8
  %10 = fsub <4 x float> %6, %8
  %11 = shufflevector <4 x float> %9, <4 x float> %10, <4 x i32> <i32 0, i32 1, i32 6, i32 7>
  %12 = load <2 x float>, ptr %3, align 4, !tbaa !5
  %13 = shufflevector <2 x float> %12, <2 x float> poison, <4 x i32> <i32 0, i32 1, i32 1, i32 0>
  %14 = load <2 x float>, ptr %4, align 4, !tbaa !5
  %15 = shufflevector <2 x float> %14, <2 x float> poison, <4 x i32> <i32 0, i32 1, i32 1, i32 0>
  %16 = fadd <4 x float> %13, %15
  %17 = fsub <4 x float> %13, %15
  %18 = shufflevector <4 x float> %16, <4 x float> %17, <4 x i32> <i32 0, i32 1, i32 6, i32 7>
  %19 = fadd <4 x float> %11, %18
  %20 = fsub <4 x float> %11, %18
  %21 = shufflevector <4 x float> %19, <4 x float> %20, <4 x i32> <i32 0, i32 1, i32 6, i32 3>
  store <4 x float> %21, ptr %0, align 4, !tbaa !5
  %22 = shufflevector <4 x float> %20, <4 x float> %19, <4 x i32> <i32 0, i32 1, i32 6, i32 3>
  store <4 x float> %22, ptr %2, align 4, !tbaa !5
  ret void
}

attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) 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" }

!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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass