	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function qdm2_calculate_fft
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__literal8,8byte_literals
	.p2align	2
LCPI0_1:
	.long	0x3f800000                      ## float 1
	.long	0x3f000000                      ## float 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_qdm2_calculate_fft:                    ## @qdm2_calculate_fft
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	cmpl	$1, (%rdi)
	jne	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	cmpl	$2, 4(%r15)
	sete	%al
	leaq	LCPI0_1(%rip), %rcx
	movss	(%rcx,%rax,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	jmp	LBB0_3
LBB0_1:
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
LBB0_3:
	movss	%xmm0, -36(%rbp)                ## 4-byte Spill
	movq	8(%r15), %rbx
	movq	16(%r15), %rax
	movslq	%esi, %r14
	movq	(%rax,%r14,8), %rsi
	movss	(%rsi), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	addss	%xmm0, %xmm0
	movss	%xmm0, (%rsi)
	movl	$0, 4(%rsi)
	leaq	32(%r15), %rdi
	callq	*32(%r15)
	movl	24(%r15), %edi
	movl	$8, %esi
	callq	_FFALIGN
	testl	%eax, %eax
	movss	-36(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	jle	LBB0_6
## %bb.4:
	leaq	(%rbx,%r14,4), %rbx
	xorl	%r12d, %r12d
	movss	%xmm1, -36(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movq	(%rax,%r14,8), %rax
	movss	(%rax,%r12,8), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm0
	addss	(%rbx), %xmm0
	movss	%xmm0, (%rbx)
	movslq	(%r15), %rcx
	movss	4(%rax,%r12,8), %xmm0           ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm0
	addss	(%rbx,%rcx,4), %xmm0
	movss	%xmm0, (%rbx,%rcx,4)
	leaq	(%rbx,%rcx,8), %rbx
	incq	%r12
	movl	24(%r15), %edi
	movl	$8, %esi
	callq	_FFALIGN
	movss	-36(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	cltq
	cmpq	%rax, %r12
	jl	LBB0_5
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_qdm2_calculate_fft
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qdm2_calculate_fft
_qdm2_calculate_fft:                    ; @qdm2_calculate_fft
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-80]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset b8, -72
	.cfi_offset b9, -80
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
	fmov	s8, #1.00000000
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x19, #4]
	cmp	w8, #2
	fmov	s0, #1.00000000
	fmov	s1, #0.50000000
	fcsel	s8, s1, s0, eq
LBB0_2:
	mov	x21, x19
	ldr	x8, [x21, #32]!
	ldp	x23, x9, [x21, #-24]
	ldr	x1, [x9, w20, sxtw #3]
	ldr	s0, [x1]
	fadd	s0, s0, s0
	str	s0, [x1]
	str	wzr, [x1, #4]
	mov	x0, x21
	blr	x8
	ldur	w0, [x21, #-8]
	mov	w1, #8
	bl	_FFALIGN
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x21, #0
	mov	x22, #0
	sxtw	x20, w20
	add	x23, x23, x20, lsl #2
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x20, lsl #3]
	add	x8, x8, x21
	ldr	s0, [x8]
	ldr	s1, [x23]
	fmadd	s0, s0, s8, s1
	str	s0, [x23]
	ldr	s0, [x8, #4]
	ldrsw	x8, [x19]
	lsl	x9, x8, #2
	ldr	s1, [x23, x9]
	fmadd	s0, s0, s8, s1
	str	s0, [x23, x9]
	add	x23, x23, x8, lsl #3
	add	x22, x22, #1
	ldr	w0, [x19, #24]
	mov	w1, #8
	bl	_FFALIGN
	add	x21, x21, #8
	cmp	x22, w0, sxtw
	b.lt	LBB0_4
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_qdm2_calculate_fft
.subsections_via_symbols
