	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function ff_adx_calculate_coeffs
LCPI0_0:
	.quad	0xbff0000000000000              ## double -1
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_1:
	.quad	0x8000000000000000              ## double -0
	.quad	0x8000000000000000              ## double -0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ff_adx_calculate_coeffs
	.p2align	4, 0x90
_ff_adx_calculate_coeffs:               ## @ff_adx_calculate_coeffs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rcx, %rbx
	movl	%edx, %r14d
	movq	_M_SQRT2@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	movsd	%xmm0, -32(%rbp)                ## 8-byte Spill
	movq	_M_PI@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	addsd	%xmm1, %xmm1
	xorps	%xmm0, %xmm0
	cvtsi2sd	%edi, %xmm0
	mulsd	%xmm1, %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2sd	%esi, %xmm1
	divsd	%xmm1, %xmm0
	callq	_cos
	movsd	-32(%rbp), %xmm3                ## 8-byte Reload
                                        ## xmm3 = mem[0],zero
	movapd	%xmm3, %xmm2
	subsd	%xmm0, %xmm2
	addsd	LCPI0_0(%rip), %xmm3
	movapd	%xmm3, %xmm0
	addsd	%xmm2, %xmm0
	movapd	%xmm2, %xmm1
	subsd	%xmm3, %xmm1
	mulsd	%xmm0, %xmm1
	xorps	%xmm0, %xmm0
	sqrtsd	%xmm1, %xmm0
	subsd	%xmm0, %xmm2
	divsd	%xmm3, %xmm2
	movapd	%xmm2, -32(%rbp)                ## 16-byte Spill
	movapd	%xmm2, %xmm0
	movl	$1, %eax
	movl	%r14d, %ecx
	shll	%cl, %eax
	addsd	%xmm2, %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	movsd	%xmm1, -40(%rbp)                ## 8-byte Spill
	mulsd	%xmm1, %xmm0
	callq	_lrintf
	movl	%eax, (%rbx)
	movapd	LCPI0_1(%rip), %xmm0            ## xmm0 = [-0.0E+0,-0.0E+0]
	movapd	-32(%rbp), %xmm1                ## 16-byte Reload
	xorpd	%xmm1, %xmm0
	mulsd	%xmm1, %xmm0
	mulsd	-40(%rbp), %xmm0                ## 8-byte Folded Reload
	callq	_lrintf
	movl	%eax, 4(%rbx)
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_SQRT2,8,3                    ## @M_SQRT2
	.comm	_M_PI,8,3                       ## @M_PI
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_adx_calculate_coeffs        ; -- Begin function ff_adx_calculate_coeffs
	.p2align	2
_ff_adx_calculate_coeffs:               ; @ff_adx_calculate_coeffs
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-48]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset b8, -40
	.cfi_offset b9, -48
	mov	x19, x3
	mov	x20, x2
Lloh0:
	adrp	x8, _M_SQRT2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_SQRT2@GOTPAGEOFF]
Lloh2:
	ldr	d8, [x8]
Lloh3:
	adrp	x8, _M_PI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _M_PI@GOTPAGEOFF]
Lloh5:
	ldr	d0, [x8]
	fadd	d0, d0, d0
	scvtf	d1, w0
	fmul	d0, d0, d1
	scvtf	d1, w1
	fdiv	d0, d0, d1
	bl	_cos
	fsub	d0, d8, d0
	fmov	d1, #-1.00000000
	fadd	d1, d8, d1
	fadd	d2, d1, d0
	fsub	d3, d0, d1
	fmul	d2, d2, d3
	fsqrt	d2, d2
	fsub	d0, d0, d2
	fdiv	d8, d0, d1
	fadd	d0, d8, d8
	mov	w8, #1
	lsl	w8, w8, w20
	scvtf	d9, w8
	fmul	d0, d0, d9
	bl	_lrintf
	str	w0, [x19]
	fneg	d0, d8
	fmul	d0, d8, d0
	fmul	d0, d0, d9
	bl	_lrintf
	str	w0, [x19, #4]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_M_SQRT2,8,3                    ; @M_SQRT2
	.comm	_M_PI,8,3                       ; @M_PI
.subsections_via_symbols
