	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function fft_ref_init
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.space	4
	.space	4
LCPI0_1:
	.quad	0x8000000000000000              ## double -0
	.quad	0x8000000000000000              ## double -0
LCPI0_2:
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_fft_ref_init:                          ## @fft_ref_init
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ecx
	movl	$1, %r12d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r12d
	movl	%esi, %r14d
	movl	%r12d, %ebx
	shrl	$31, %ebx
	addl	%r12d, %ebx
	sarl	%ebx
	movl	%ebx, %edi
	movl	$16, %esi
	callq	_av_malloc_array
	movq	%rax, %r15
	movq	_exptab@GOTPCREL(%rip), %rax
	movq	%r15, (%rax)
	testq	%r15, %r15
	je	LBB0_14
## %bb.1:
	cmpl	$2, %r12d
	jl	LBB0_13
## %bb.2:
	movq	_M_PI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	cvtsi2ss	%eax, %xmm0
	cvtsi2ss	%r12d, %xmm1
	movl	%ebx, %r12d
	cmpl	$2, %ebx
	movaps	%xmm0, -144(%rbp)               ## 16-byte Spill
	movaps	%xmm1, -128(%rbp)               ## 16-byte Spill
	jae	LBB0_4
## %bb.3:
	xorl	%r13d, %r13d
	jmp	LBB0_9
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_4:
	movl	%r12d, %r13d
	andl	$-2, %r13d
	movsldup	%xmm0, %xmm0                    ## xmm0 = xmm0[0,0,2,2]
	movaps	%xmm0, -112(%rbp)               ## 16-byte Spill
	movsldup	%xmm1, %xmm0                    ## xmm0 = xmm1[0,0,2,2]
	movaps	%xmm0, -96(%rbp)                ## 16-byte Spill
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rbx
	shlq	$4, %rbx
	andq	$-32, %rbx
	movaps	LCPI0_0(%rip), %xmm2            ## xmm2 = <0,1,u,u>
	xorl	%r12d, %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movdqa	-80(%rbp), %xmm2                ## 16-byte Reload
	movaps	-64(%rbp), %xmm3                ## 16-byte Reload
	movlhps	%xmm0, %xmm1                    ## xmm1 = xmm1[0],xmm0[0]
	blendps	$12, %xmm0, %xmm3               ## xmm3 = xmm3[0,1],xmm0[2,3]
	movups	%xmm3, 16(%r15,%r12)
	movups	%xmm1, (%r15,%r12)
	paddd	LCPI0_2(%rip), %xmm2
	addq	$32, %r12
	cmpq	%r12, %rbx
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movaps	%xmm2, -80(%rbp)                ## 16-byte Spill
	cvtdq2ps	%xmm2, %xmm0
	mulps	-112(%rbp), %xmm0               ## 16-byte Folded Reload
	divps	-96(%rbp), %xmm0                ## 16-byte Folded Reload
	cvtps2pd	%xmm0, %xmm0
	movaps	%xmm0, -160(%rbp)               ## 16-byte Spill
	movhlps	%xmm0, %xmm0                    ## xmm0 = xmm0[1,1]
	callq	___sincos_stret
	movaps	%xmm0, -176(%rbp)               ## 16-byte Spill
	movaps	%xmm1, -64(%rbp)                ## 16-byte Spill
	movaps	-160(%rbp), %xmm0               ## 16-byte Reload
	callq	___sincos_stret
	unpcklpd	-176(%rbp), %xmm0               ## 16-byte Folded Reload
                                        ## xmm0 = xmm0[0],mem[0]
	testl	%r14d, %r14d
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorps	LCPI0_1(%rip), %xmm0
	jmp	LBB0_7
LBB0_8:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	cmpq	%r12, %r13
	jne	LBB0_9
LBB0_13:
	xorl	%eax, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r13, %rax
	shlq	$4, %rax
	leaq	(%r15,%rax), %rbx
	addq	$8, %rbx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movsd	%xmm1, -8(%rbx)
	movsd	%xmm0, (%rbx)
	incq	%r13
	addq	$16, %rbx
	cmpq	%r13, %r12
	je	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r13d, %xmm0
	mulss	-144(%rbp), %xmm0               ## 16-byte Folded Reload
	divss	-128(%rbp), %xmm0               ## 16-byte Folded Reload
	cvtss2sd	%xmm0, %xmm0
	callq	___sincos_stret
	testl	%r14d, %r14d
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	xorps	LCPI0_1(%rip), %xmm0
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_exptab,8,3                     ## @exptab
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_M_PI,4,2                       ## @M_PI
	.no_dead_strip	_fft_ref_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function fft_ref_init
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_fft_ref_init:                          ; @fft_ref_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	d11, d10, [sp, #112]            ; 16-byte Folded Spill
	stp	d9, d8, [sp, #128]              ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	.cfi_offset b10, -88
	.cfi_offset b11, -96
	mov	x19, x1
	mov	w8, #1
	lsl	w22, w8, w0
	cmp	w22, #0
	cinc	w8, w22, lt
	asr	w20, w8, #1
	mov	x0, x20
	mov	w1, #16
	bl	_av_malloc_array
Lloh0:
	adrp	x8, _exptab@GOTPAGE
Lloh1:
	ldr	x8, [x8, _exptab@GOTPAGEOFF]
Lloh2:
	str	x0, [x8]
	cbz	x0, LBB0_4
; %bb.1:
	cmp	w22, #2
	b.lt	LBB0_10
; %bb.2:
	mov	x21, x0
Lloh3:
	adrp	x8, _M_PI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _M_PI@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w8, w8, #1
	scvtf	s1, w8
	scvtf	s0, w22
	cmp	w20, #2
	str	q1, [sp, #96]                   ; 16-byte Folded Spill
	str	q0, [sp, #16]                   ; 16-byte Folded Spill
	b.hs	LBB0_5
; %bb.3:
	mov	x22, #0
	mov.16b	v2, v0
	b	LBB0_8
LBB0_4:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #128]              ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	b	_AVERROR
LBB0_5:
	and	x22, x20, #0xfffffffe
	dup.2s	v8, v0[0]
Lloh9:
	adrp	x8, lCPI0_0@PAGE
Lloh10:
	ldr	d9, [x8, lCPI0_0@PAGEOFF]
	fmov	s0, w19
	str	q0, [sp]                        ; 16-byte Folded Spill
	movi.2s	v10, #2
	mov	x23, x22
	mov	x24, x21
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	fmov	s0, wzr
	ldr	q2, [sp]                        ; 16-byte Folded Reload
	cmeq.4s	v0, v2, v0
	dup.4s	v0, v0[0]
	str	q0, [sp, #80]                   ; 16-byte Folded Spill
	scvtf.2s	v0, v9
	fmul.2s	v0, v0, v1[0]
	fdiv.2s	v0, v0, v8
	fcvtl	v0.2d, v0.2s
	str	q0, [sp, #32]                   ; 16-byte Folded Spill
	mov	d0, v0[1]
	bl	___sincos_stret
	stp	q0, q1, [sp, #48]               ; 32-byte Folded Spill
	ldr	q0, [sp, #32]                   ; 16-byte Folded Reload
                                        ; kill: def $d0 killed $d0 killed $q0
	bl	___sincos_stret
                                        ; kill: def $d0 killed $d0 def $q0
                                        ; kill: def $d1 killed $d1 def $q1_q2
	ldr	q3, [sp, #48]                   ; 16-byte Folded Reload
	mov.d	v0[1], v3[0]
	fneg.2d	v3, v0
	ldr	q4, [sp, #80]                   ; 16-byte Folded Reload
	mov.16b	v2, v4
	bsl.16b	v2, v3, v0
	ldr	q0, [sp, #64]                   ; 16-byte Folded Reload
	mov.d	v1[1], v0[0]
	st2.2d	{ v1, v2 }, [x24], #32
	ldr	q1, [sp, #96]                   ; 16-byte Folded Reload
	add.2s	v9, v9, v10
	subs	x23, x23, #2
	b.ne	LBB0_6
; %bb.7:
	cmp	x22, x20
	ldr	q2, [sp, #16]                   ; 16-byte Folded Reload
	b.eq	LBB0_10
LBB0_8:
	add	x8, x21, x22, lsl #4
	add	x21, x8, #8
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	scvtf	s0, w22
	fmul	s0, s0, s1
	fdiv	s0, s0, s2
	fcvt	d0, s0
	bl	___sincos_stret
	fneg	d2, d0
	cmp	w19, #0
	fcsel	d0, d2, d0, eq
	ldr	q2, [sp, #16]                   ; 16-byte Folded Reload
	stp	d1, d0, [x21, #-8]
	ldr	q1, [sp, #96]                   ; 16-byte Folded Reload
	add	x22, x22, #1
	add	x21, x21, #16
	cmp	x20, x22
	b.ne	LBB0_9
LBB0_10:
	mov	w0, #0
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #128]              ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdr	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_exptab,8,3                     ; @exptab
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_M_PI,4,2                       ; @M_PI
	.no_dead_strip	_fft_ref_init
.subsections_via_symbols
